diff --git a/registration-system/config.inc.php b/registration-system/config.inc.php index b332ff21ad7d2cac2ef39b1b1999034c36a44757..f15dec53e118cfe5cf70cae83f77f0c0141cb9e7 100644 --- a/registration-system/config.inc.php +++ b/registration-system/config.inc.php @@ -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", diff --git a/registration-system/index.php b/registration-system/index.php index 74af71e0b4a0250672a3ccb4d4e8f888e920a78f..338043cb35949362863e26f9a1b017a40be9fdc9 100644 --- a/registration-system/index.php +++ b/registration-system/index.php @@ -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