Subversion Repositories personal-webbase

Rev

Rev 4 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 8
1
<?php
1
<?php
2
 
2
 
3
if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
3
if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
4
 
4
 
5
if ($ib_user_type < 2) die('Keine Zugriffsberechtigung');
5
if ($ib_user_type < 2) die('Keine Zugriffsberechtigung');
6
 
6
 
7
  if ($aktion == 'changekonfig')
7
  if ($aktion == 'changekonfig')
8
  {
8
  {
9
    if ((!isset($gastaktivierung)) || (($gastaktivierung == '') || (($gastaktivierung != '') && ($gastaktivierung != '1')))) $gastaktivierung = 0;
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;
10
    if ((!isset($wipe_gastkonto)) || (($wipe_gastkonto == '') || (($wipe_gastkonto != '') && ($wipe_gastkonto != '1')))) $wipe_gastkonto = 0;
11
 
11
 
12
    ib_change_config('enable_gast', $gastaktivierung, $modul);
12
    ib_change_config('enable_gast', $gastaktivierung, $modul);
13
    ib_change_config('gast_username', $gastuser, $modul);
13
    ib_change_config('gast_username', $gastuser, $modul);
14
    ib_change_config('gast_passwort', $gastpassword, $modul);
14
    ib_change_config('gast_passwort', $gastpassword, $modul);
15
    ib_change_config('wipe_gastkonto', $wipe_gastkonto, $modul);
15
    ib_change_config('wipe_gastkonto', $wipe_gastkonto, $modul);
16
 
16
 
17
    if ((isset($wipe_uhrzeit1)) && (is_numeric($wipe_uhrzeit1)) && (isset($wipe_uhrzeit2)) && (is_numeric($wipe_uhrzeit2)) && (isset($wipe_uhrzeit3)) && (is_numeric($wipe_uhrzeit3)))
17
    if ((isset($wipe_uhrzeit1)) && (is_numeric($wipe_uhrzeit1)) && (isset($wipe_uhrzeit2)) && (is_numeric($wipe_uhrzeit2)) && (isset($wipe_uhrzeit3)) && (is_numeric($wipe_uhrzeit3)))
18
    {
18
    {
19
      if (($wipe_uhrzeit1 >= 0) && ($wipe_uhrzeit1 <= 24) && ($wipe_uhrzeit2 >= 0) && ($wipe_uhrzeit2 <= 60) && ($wipe_uhrzeit3 >= 0) && ($wipe_uhrzeit3 <= 60))
19
      if (($wipe_uhrzeit1 >= 0) && ($wipe_uhrzeit1 <= 24) && ($wipe_uhrzeit2 >= 0) && ($wipe_uhrzeit2 <= 60) && ($wipe_uhrzeit3 >= 0) && ($wipe_uhrzeit3 <= 60))
20
      {
20
      {
21
        if (strlen($wipe_uhrzeit1) == 1) $wipe_uhrzeit1 = '0'.$wipe_uhrzeit1;
21
        if (strlen($wipe_uhrzeit1) == 1) $wipe_uhrzeit1 = '0'.$wipe_uhrzeit1;
22
        if (strlen($wipe_uhrzeit2) == 1) $wipe_uhrzeit2 = '0'.$wipe_uhrzeit2;
22
        if (strlen($wipe_uhrzeit2) == 1) $wipe_uhrzeit2 = '0'.$wipe_uhrzeit2;
23
        if (strlen($wipe_uhrzeit3) == 1) $wipe_uhrzeit3 = '0'.$wipe_uhrzeit3;
23
        if (strlen($wipe_uhrzeit3) == 1) $wipe_uhrzeit3 = '0'.$wipe_uhrzeit3;
24
 
24
 
25
        $wipe_uhrzeit = $wipe_uhrzeit1.':'.$wipe_uhrzeit2.':'.$wipe_uhrzeit3;
25
        $wipe_uhrzeit = $wipe_uhrzeit1.':'.$wipe_uhrzeit2.':'.$wipe_uhrzeit3;
26
 
26
 
27
        ib_change_config('wipe_uhrzeit', $wipe_uhrzeit, $modul);
27
        ib_change_config('wipe_uhrzeit', $wipe_uhrzeit, $modul);
28
      }
28
      }
29
    }
29
    }
30
 
30
 
31
    if (!isset($vonmodul)) $vonmodul = 'admin_konfig';
31
    if (!isset($vonmodul)) $vonmodul = 'admin_konfig';
32
    if (!isset($vonseite)) $vonseite = 'inhalt';
32
    if (!isset($vonseite)) $vonseite = 'inhalt';
33
 
33
 
34
    if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite='.$vonseite.'&modul='.$vonmodul);
34
    if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite='.urlencode($vonseite).'&modul='.urlencode($vonmodul));
35
  }
35
  }
36
 
36
 
37
?>
37
?>
38
 
38