Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
3 | daniel-mar | 3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
2 | daniel-mar | 4 | |
5 | if ($ib_user_type < 2) die('Keine Zugriffsberechtigung'); |
||
6 | |||
7 | if ($aktion == 'changekonfig') |
||
8 | { |
||
9 | if ((!isset($gastaktivierung)) || (($gastaktivierung == '') || (($gastaktivierung != '') && ($gastaktivierung != '1')))) $gastaktivierung = 0; |
||
10 | if ((!isset($wipe_gastkonto)) || (($wipe_gastkonto == '') || (($wipe_gastkonto != '') && ($wipe_gastkonto != '1')))) $wipe_gastkonto = 0; |
||
11 | |||
12 | ib_change_config('enable_gast', $gastaktivierung, $modul); |
||
13 | ib_change_config('gast_username', $gastuser, $modul); |
||
14 | ib_change_config('gast_passwort', $gastpassword, $modul); |
||
15 | ib_change_config('wipe_gastkonto', $wipe_gastkonto, $modul); |
||
16 | |||
17 | if ((isset($wipe_uhrzeit1)) && (is_numeric($wipe_uhrzeit1)) && (isset($wipe_uhrzeit2)) && (is_numeric($wipe_uhrzeit2)) && (isset($wipe_uhrzeit3)) && (is_numeric($wipe_uhrzeit3))) |
||
18 | { |
||
19 | if (($wipe_uhrzeit1 >= 0) && ($wipe_uhrzeit1 <= 24) && ($wipe_uhrzeit2 >= 0) && ($wipe_uhrzeit2 <= 60) && ($wipe_uhrzeit3 >= 0) && ($wipe_uhrzeit3 <= 60)) |
||
20 | { |
||
21 | if (strlen($wipe_uhrzeit1) == 1) $wipe_uhrzeit1 = '0'.$wipe_uhrzeit1; |
||
22 | if (strlen($wipe_uhrzeit2) == 1) $wipe_uhrzeit2 = '0'.$wipe_uhrzeit2; |
||
23 | if (strlen($wipe_uhrzeit3) == 1) $wipe_uhrzeit3 = '0'.$wipe_uhrzeit3; |
||
24 | |||
25 | $wipe_uhrzeit = $wipe_uhrzeit1.':'.$wipe_uhrzeit2.':'.$wipe_uhrzeit3; |
||
26 | |||
27 | ib_change_config('wipe_uhrzeit', $wipe_uhrzeit, $modul); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | if (!isset($vonmodul)) $vonmodul = 'admin_konfig'; |
||
32 | if (!isset($vonseite)) $vonseite = 'inhalt'; |
||
33 | |||
34 | if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite='.$vonseite.'&modul='.$vonmodul); |
||
35 | } |
||
36 | |||
3 | daniel-mar | 37 | ?> |