Rev 12 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12 | Rev 14 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
4 | 4 | ||
5 | if ($ib_user_type < 2) die('Keine Zugriffsberechtigung'); |
5 | if ($wb_user_type < 2) die('Keine Zugriffsberechtigung'); |
6 | 6 | ||
7 | function ftp_rmdir_rec($handle, $path) |
7 | function ftp_rmdir_rec($handle, $path) |
8 | { |
8 | { |
9 | if (!@ftp_delete($handle, $path)) |
9 | if (!@ftp_delete($handle, $path)) |
10 | { |
10 | { |
11 | $list = @ftp_nlist($handle, $path); |
11 | $list = @ftp_nlist($handle, $path); |
12 | if(!empty($list)) |
12 | if(!empty($list)) { |
13 | foreach($list as $value) |
13 | foreach($list as $value) { |
14 | ftp_rmdir_rec($handle, $value); |
14 | ftp_rmdir_rec($handle, $value); |
15 | } |
15 | } |
- | 16 | } |
|
- | 17 | } |
|
16 | 18 | ||
17 | if(@ftp_rmdir($handle, $path)) |
19 | if(@ftp_rmdir($handle, $path)) { |
18 | return true; |
20 | return true; |
19 | else |
21 | } else { |
20 | return false; |
22 | return false; |
21 | } |
23 | } |
- | 24 | } |
|
22 | 25 | ||
23 | if (($aktion == 'delete') || ($aktion == 'install')) |
26 | if (($aktion == 'delete') || ($aktion == 'install')) |
24 | { |
27 | { |
25 | // Funktioniert FTP-Zugang? |
28 | // Funktioniert FTP-Zugang? |
26 | 29 | ||
27 | if ($konfiguration['core_directftp']['ftp-server'] == '') { |
30 | if ($konfiguration['core_directftp']['ftp-server'] == '') { |
28 | $conn_id = null; |
31 | $conn_id = null; |
29 | $login_result = false; |
32 | $login_result = false; |
30 | } else { |
33 | } else { |
31 | $conn_id = @ftp_connect($konfiguration['core_directftp']['ftp-server'], $konfiguration['core_directftp']['ftp-port']); |
34 | $conn_id = @ftp_connect($konfiguration['core_directftp']['ftp-server'], $konfiguration['core_directftp']['ftp-port']); |
32 | $login_result = @ftp_login ($conn_id, $konfiguration['core_directftp']['ftp-username'], $konfiguration['core_directftp']['ftp-passwort']); |
35 | $login_result = @ftp_login ($conn_id, $konfiguration['core_directftp']['ftp-username'], $konfiguration['core_directftp']['ftp-passwort']); |
33 | } |
36 | } |
34 | 37 | ||
35 | $fehler = 0; |
38 | $fehler = 0; |
36 | 39 | ||
37 | if ((!$conn_id) || (!$login_result)) |
40 | if ((!$conn_id) || (!$login_result)) |
38 | $fehler = 1; |
41 | $fehler = 1; |
39 | 42 | ||
40 | if ((@ftp_size($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.'desdir.txt') == -1) || (@ftp_size($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.'moddir.txt') == -1) || (substr($konfiguration['core_directftp']['ftp-verzeichnis'], 0, 1) != '/') || (substr($konfiguration['core_directftp']['ftp-verzeichnis'], strlen($konfiguration['core_directftp']['ftp-verzeichnis'])-1, 1) != '/')) |
43 | if ((@ftp_size($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.'desdir.txt') == -1) || (@ftp_size($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.'moddir.txt') == -1) || (substr($konfiguration['core_directftp']['ftp-verzeichnis'], 0, 1) != '/') || (substr($konfiguration['core_directftp']['ftp-verzeichnis'], strlen($konfiguration['core_directftp']['ftp-verzeichnis'])-1, 1) != '/')) |
41 | $fehler = 1; |
44 | $fehler = 1; |
42 | 45 | ||
43 | if ($fehler) |
46 | if ($fehler) |
44 | die($header.'<b>Fehler</b><br><br>Fehlkonfiguration im FTP-Direktzugriff-Kernmodul! FTP-Zugangsdaten oder -Verzeichnis fehlerhaft bzw. zu geringe Zugriffsrechte! Bitte <a href="'.$_SERVER['PHP_SELF'].'?modul=core_directftp&seite=konfig&vonmodul='.urlencode($modul).'">Konfigurationswerte</a> einsehen.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
47 | die($header.'<b>Fehler</b><br><br>Fehlkonfiguration im FTP-Direktzugriff-Kernmodul! FTP-Zugangsdaten oder -Verzeichnis fehlerhaft bzw. zu geringe Zugriffsrechte! Bitte <a href="'.$_SERVER['PHP_SELF'].'?modul=core_directftp&seite=konfig&vonmodul='.urlencode($modul).'">Konfigurationswerte</a> einsehen.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
45 | } |
48 | } |
46 | 49 | ||
47 | // Los gehts! |
50 | // Los gehts! |
48 | 51 | ||
49 | if ($aktion == 'delete') |
52 | if ($aktion == 'delete') |
50 | { |
53 | { |
51 | // Nun Design über FTP löschen! |
54 | // Nun Design über FTP löschen! |
52 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($entfernen)); |
55 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($entfernen)); |
53 | if ($conn_id) @ftp_quit($conn_id); |
56 | if ($conn_id) @ftp_quit($conn_id); |
54 | 57 | ||
55 | // Info: MySQL-Daten löschen sich über Autostart automatisch |
58 | // Info: MySQL-Daten löschen sich über Autostart automatisch |
56 | if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul)); |
59 | if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul)); |
57 | } |
60 | } |
58 | 61 | ||
59 | if ($aktion == 'install') |
62 | if ($aktion == 'install') |
60 | { |
63 | { |
61 | // Temp-Verzeichnisnamen finden |
64 | // Temp-Verzeichnisnamen finden |
62 | $uid = 'temp_'.zufall(10); |
65 | $uid = 'temp_'.zufall(10); |
63 | 66 | ||
64 | // Datei in unser Verzeichnis kopieren, sodass wir darauf zugreifen können (für Safe-Mode) |
67 | // Datei in unser Verzeichnis kopieren, sodass wir darauf zugreifen können (für Safe-Mode) |
65 | if (!@ftp_put($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip', $_FILES['dfile']['tmp_name'], FTP_BINARY)) |
68 | if (!@ftp_put($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip', $_FILES['dfile']['tmp_name'], FTP_BINARY)) |
66 | { |
69 | { |
67 | if ($conn_id) @ftp_quit($conn_id); |
70 | if ($conn_id) @ftp_quit($conn_id); |
68 | die($header.'<b>Fehler</b><br><br>Konnte ZIP-Datei nicht in temporäres Verzeichnis des Modules hineinkopieren (FTP)!.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
71 | die($header.'<b>Fehler</b><br><br>Konnte ZIP-Datei nicht in temporäres Verzeichnis des Modules hineinkopieren (FTP)!.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
69 | } |
72 | } |
70 | @ftp_site($conn_id, 'CHMOD 0644 '.$konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip'); |
73 | @ftp_site($conn_id, 'CHMOD 0644 '.$konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip'); |
71 | 74 | ||
72 | // Temporäres Verzeichnis für Extraktion erstellen |
75 | // Temporäres Verzeichnis für Extraktion erstellen |
73 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
76 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
74 | @ftp_mkdir($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
77 | @ftp_mkdir($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
75 | @ftp_site($conn_id, 'CHMOD 0755 '.$konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
78 | @ftp_site($conn_id, 'CHMOD 0755 '.$konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
76 | 79 | ||
77 | // Entpacken zum Personal WebBase-Temp-Verzeichnis |
80 | // Entpacken zum Personal WebBase-Temp-Verzeichnis |
78 | if (file_exists('modules/'.wb_dir_escape($modul).'/dUnzip2.inc.php')) |
81 | if (file_exists('modules/'.wb_dir_escape($modul).'/dUnzip2.inc.php')) |
79 | include('modules/'.wb_dir_escape($modul).'/dUnzip2.inc.php'); |
82 | include('modules/'.wb_dir_escape($modul).'/dUnzip2.inc.php'); |
80 | $zip = new dUnzip2('modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip'); |
83 | $zip = new dUnzip2('modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip'); |
81 | $zip->unzipAll('modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/', '', true); |
84 | $zip->unzipAll('modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/', '', true); |
82 | $zip->close(); |
85 | $zip->close(); |
83 | 86 | ||
84 | // Temporäre Daten löschen |
87 | // Temporäre Daten löschen |
85 | @ftp_delete($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip'); |
88 | @ftp_delete($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'.zip'); |
86 | 89 | ||
87 | // Wenn Verzeichnis leer ist, lässt es sich löschen. -> Fehler |
90 | // Wenn Verzeichnis leer ist, lässt es sich löschen. -> Fehler |
88 | $verzinh = @ftp_nlist($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
91 | $verzinh = @ftp_nlist($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
89 | if (count($verzinh) == 0) |
92 | if (count($verzinh) == 0) |
90 | { |
93 | { |
91 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
94 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
92 | if ($conn_id) @ftp_quit($conn_id); |
95 | if ($conn_id) @ftp_quit($conn_id); |
93 | die($header.'<b>Fehler</b><br><br>Dekompression entweder komplett misslungen oder ZIP-Datei war leer.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
96 | die($header.'<b>Fehler</b><br><br>Dekompression entweder komplett misslungen oder ZIP-Datei war leer.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
94 | } |
97 | } |
95 | 98 | ||
96 | // Verzeichnis verschieben |
99 | // Verzeichnis verschieben |
97 | if (!@ftp_rename($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/', $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($uid).'/')) |
100 | if (!@ftp_rename($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/', $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($uid).'/')) |
98 | { |
101 | { |
99 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
102 | @ftp_rmdir_rec($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'modules/'.wb_dir_escape($modul).'/temp/'.wb_dir_escape($uid).'/'); |
100 | if ($conn_id) @ftp_quit($conn_id); |
103 | if ($conn_id) @ftp_quit($conn_id); |
101 | die($header.'<b>Fehler</b><br><br>Das Verschieben des Verzeichnisses ist misslungen!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
104 | die($header.'<b>Fehler</b><br><br>Das Verschieben des Verzeichnisses ist misslungen!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
102 | } |
105 | } |
103 | 106 | ||
104 | // Richtigen Dateinamen finden |
107 | // Richtigen Dateinamen finden |
105 | $fn = 'design/'.wb_dir_escape($uid).'/ordnername.txt'; |
108 | $fn = 'design/'.wb_dir_escape($uid).'/ordnername.txt'; |
106 | $fp = @fopen($fn, 'r'); |
109 | $fp = @fopen($fn, 'r'); |
107 | $inhalt = @fread($fp, @filesize($fn)); |
110 | $inhalt = @fread($fp, @filesize($fn)); |
108 | @fclose($fp); |
111 | @fclose($fp); |
109 | 112 | ||
110 | // Datei ordnername.txt im Zielmodul löschen |
113 | // Datei ordnername.txt im Zielmodul löschen |
111 | @ftp_delete ($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($uid).'/ordnername.txt'); |
114 | @ftp_delete ($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($uid).'/ordnername.txt'); |
112 | 115 | ||
113 | if ($inhalt != '') |
116 | if ($inhalt != '') |
114 | { |
117 | { |
115 | // Schutzverletzung im Ordnernamen? |
118 | // Schutzverletzung im Ordnernamen? |
116 | if (strpos($inhalt, '..')) |
119 | if (strpos($inhalt, '..')) |
117 | { |
120 | { |
118 | if ($conn_id) @ftp_quit($conn_id); |
121 | if ($conn_id) @ftp_quit($conn_id); |
119 | die($header.'<b>Fehler</b><br><br>Das Design konnte zwar installiert werden, jedoch gab es bei der Umbenennung des Ordners eine Schutzverletzung!'.$footer); |
122 | die($header.'<b>Fehler</b><br><br>Das Design konnte zwar installiert werden, jedoch gab es bei der Umbenennung des Ordners eine Schutzverletzung!'.$footer); |
120 | } |
123 | } |
121 | 124 | ||
122 | // Gibt es schon ein Design mit dem Titel? Dann Alternativenamen finden |
125 | // Gibt es schon ein Design mit dem Titel? Dann Alternativenamen finden |
123 | if (@ftp_chdir($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($inhalt).'/')) |
126 | if (@ftp_chdir($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($inhalt).'/')) |
124 | { |
127 | { |
125 | @ftp_cdup($conn_id); |
128 | @ftp_cdup($conn_id); |
126 | $zusatz = 2; |
129 | $zusatz = 2; |
127 | $problem = true; |
130 | $problem = true; |
128 | while (@ftp_chdir($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($inhalt).$zusatz.'/')) |
131 | while (@ftp_chdir($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($inhalt).$zusatz.'/')) |
129 | { |
132 | { |
130 | @ftp_cdup($conn_id); |
133 | @ftp_cdup($conn_id); |
131 | $zusatz++; |
134 | $zusatz++; |
132 | } |
135 | } |
133 | } |
136 | } |
134 | else |
137 | else |
135 | { |
138 | { |
136 | $problem = false; |
139 | $problem = false; |
137 | $zusatz = ''; |
140 | $zusatz = ''; |
138 | } |
141 | } |
139 | 142 | ||
140 | // Ordner umbenennen |
143 | // Ordner umbenennen |
141 | $erfolg = @ftp_rename ($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($uid), $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($inhalt).$zusatz); |
144 | $erfolg = @ftp_rename ($conn_id, $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($uid), $konfiguration['core_directftp']['ftp-verzeichnis'].'design/'.wb_dir_escape($inhalt).$zusatz); |
142 | 145 | ||
143 | // FTP-Verbindung trennen |
146 | // FTP-Verbindung trennen |
144 | if ($conn_id) @ftp_quit($conn_id); |
147 | if ($conn_id) @ftp_quit($conn_id); |
145 | 148 | ||
146 | // Wurde der Ordner nicht umbenannt? (z.B. Wenn der Ordnertitel nicht für Dateisystem zulässig war) |
149 | // Wurde der Ordner nicht umbenannt? (z.B. Wenn der Ordnertitel nicht für Dateisystem zulässig war) |
147 | if (!$erfolg) |
150 | if (!$erfolg) |
148 | die($header.'<b>Information</b><br><br>Das Design konnte zwar installiert werden, jedoch gab es bei der Umbenennung des Ordners einen Fehler!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
151 | die($header.'<b>Information</b><br><br>Das Design konnte zwar installiert werden, jedoch gab es bei der Umbenennung des Ordners einen Fehler!<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
149 | 152 | ||
150 | // Wurde nur der Ordner nicht korrekt umbenannt? (z.B. wenn es ein Design mit dem selben Namen noch gibt) |
153 | // Wurde nur der Ordner nicht korrekt umbenannt? (z.B. wenn es ein Design mit dem selben Namen noch gibt) |
151 | if ($problem) |
154 | if ($problem) |
152 | die($header.'<b>Information</b><br><br>Es existiert bereits ein Design mit dem Namen "'.$inhalt.'". Das Design wurde trotzdem unter dem alternativen Namen "'.$inhalt.$zusatz.'" installiert.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
155 | die($header.'<b>Information</b><br><br>Es existiert bereits ein Design mit dem Namen "'.$inhalt.'". Das Design wurde trotzdem unter dem alternativen Namen "'.$inhalt.$zusatz.'" installiert.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
153 | } |
156 | } |
154 | else |
157 | else |
155 | { |
158 | { |
156 | // Kein Dateiname angegeben? |
159 | // Kein Dateiname angegeben? |
157 | if ($conn_id) @ftp_quit($conn_id); |
160 | if ($conn_id) @ftp_quit($conn_id); |
158 | die($header.'<b>Information</b><br><br>Das Design wurde unter dem Namen "'.$uid.'" angelegt, da in der Designdatei keine Namensangabe vorhanden war.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
161 | die($header.'<b>Information</b><br><br>Das Design wurde unter dem Namen "'.$uid.'" angelegt, da in der Designdatei keine Namensangabe vorhanden war.<br><br><a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a>'.$footer); |
159 | } |
162 | } |
160 | 163 | ||
161 | // Alles OK? Dann zurück! |
164 | // Alles OK? Dann zurück! |
162 | if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul)); |
165 | if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul)); |
163 | } |
166 | } |
164 | 167 | ||
165 | if ($aktion == 'changekonfig') |
168 | if ($aktion == 'changekonfig') |
166 | { |
169 | { |
167 | ib_change_config('design', $newdesign, $modul); |
170 | ib_change_config('design', $newdesign, $modul); |
168 | echo '<script language="JavaScript" type="text/javascript"> |
171 | echo '<script language="JavaScript" type="text/javascript"> |
169 | <!-- |
172 | <!-- |
170 | 173 | ||
171 | parent.location.href = \'index.php?prv_modul='.urlencode($vonmodul).'&prv_seite='.urlencode($vonseite).'\'; |
174 | parent.location.href = \'index.php?prv_modul='.urlencode($vonmodul).'&prv_seite='.urlencode($vonseite).'\'; |
172 | 175 | ||
173 | // --> |
176 | // --> |
174 | </script>'; |
177 | </script>'; |
175 | 178 | ||
176 | // Funktioniert nicht für eine Designänderung: if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite=inhalt&modul=admin_konfig'); |
179 | // Funktioniert nicht für eine Designänderung: if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite=inhalt&modul=admin_konfig'); |
177 | } |
180 | } |
178 | 181 | ||
179 | ?> |
182 | ?> |
180 | 183 |