Skip to content
Snippets Groups Projects
Commit eeb0107a authored by Tim Repke's avatar Tim Repke
Browse files

randomise individual travel types in signup table list

parent bba3adbb
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,12 @@ $config_reisearten = array(
//,"mit Kamel"
);
$config_reisearten_destroyed = array(
"mit Kamel",
"mit Esel",
"mit Schlauchboot"
);
$config_admins = array(
// username => password
"george" => "peter",
......
......@@ -381,12 +381,19 @@ echo '<h2>Angemeldet</h2>';
<!--td>'.$d["studityp"].'</td-->
<td>'.$d["pseudo"].'</td>
<td>'.date('d.m.Y', $d["anday"]).'</td>
<td>'.$d["antyp"].'</td>
<td>'.index_show_signupTable_destroyTypes($d["antyp"]).'</td>
<td>'.date('d.m.Y', $d["abday"]).'</td>
<td>'.$d["abtyp"].'</td>
<td>'.index_show_signupTable_destroyTypes($d["abtyp"]).'</td>
<td>'.$d["comment"].'</td>
</tr>';
}
echo '</table>';
}
}
function index_show_signupTable_destroyTypes($anabtyp){
global $config_reisearten, $config_reisearten_destroyed;
if(array_search($anabtyp, $config_reisearten)>=2)
return $config_reisearten_destroyed[array_rand($config_reisearten_destroyed)];
return $anabtyp;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment