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ührt werden.'); |
3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgefü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 | ib_change_config('internet-check-url', db_escape($internet_check_url), $modul); |
9 | ib_change_config('internet-check-url', db_escape($internet_check_url), $modul); |
10 | if (isset($internet_check_port) && is_numeric($internet_check_port)) |
10 | if (isset($internet_check_port) && is_numeric($internet_check_port)) |
11 | ib_change_config('internet-check-port', db_escape($internet_check_port), $modul); |
11 | ib_change_config('internet-check-port', db_escape($internet_check_port), $modul); |
12 | 12 | ||
13 | if (!isset($vonmodul)) $vonmodul = 'admin_konfig'; |
13 | if (!isset($vonmodul)) $vonmodul = 'admin_konfig'; |
14 | if (!isset($vonseite)) $vonseite = 'inhalt'; |
14 | if (!isset($vonseite)) $vonseite = 'inhalt'; |
15 | 15 | ||
16 | $check = inetconn_ok(); |
16 | $check = inetconn_ok(); |
17 | 17 | ||
18 | if (!headers_sent()) |
18 | if (!headers_sent()) |
19 | { |
19 | { |
20 | if ($check) |
20 | if ($check) |
21 | header('location: '.$_SERVER['PHP_SELF'].'?seite='.$vonseite.'&modul='.$vonmodul); |
21 | header('location: '.$_SERVER['PHP_SELF'].'?seite='.urlencode($vonseite).'&modul='.urlencode($vonmodul)); |
22 | else |
22 | else |
23 | header('location: '.$_SERVER['PHP_SELF'].'?seite=konfig&modul='.$modul.'&vonseite='.$vonseite.'&vonmodul='.$vonmodul); |
23 | header('location: '.$_SERVER['PHP_SELF'].'?seite=konfig&modul='.urlencode($modul).'&vonseite='.urlencode($vonseite).'&vonmodul='.urlencode($vonmodul)); |
24 | } |
24 | } |
25 | } |
25 | } |
26 | 26 | ||
27 | ?> |
27 | ?> |
28 | 28 |