/trunk/modules/core_debugger/pages/.htaccess |
---|
0,0 → 1,2 |
Order Deny,Allow |
Deny from all |
/trunk/modules/core_debugger/pages/index.html |
---|
--- konfig.inc.php (nonexistent) |
+++ konfig.inc.php (revision 12) |
@@ -0,0 +1,42 @@ |
+<?php |
+ |
+if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
+ |
+if ($ib_user_type < 2) die('Keine Zugriffsberechtigung'); |
+ |
+ echo $header; |
+ |
+ if (!isset($vonmodul)) $vonmodul = $modul; |
+ if (!isset($vonseite)) $vonseite = 'inhalt'; |
+ |
+if ($modulueberschrift == '') $modulueberschrift = $modul; |
+echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
+ echo 'Hier können Sie Konfigurationen des Modules vornehmen.<br><br>'; |
+ |
+ echo '<form action="'.$_SERVER['PHP_SELF'].'" method="POST" name="mainform" id="mainform"> |
+<input type="hidden" name="seite" value="kraftsetzung"> |
+<input type="hidden" name="aktion" value="changekonfig"> |
+<input type="hidden" name="modul" value="'.$modul.'"> |
+<input type="hidden" name="vonseite" value="'.$vonseite.'"> |
+<input type="hidden" name="vonmodul" value="'.$vonmodul.'">'; |
+ |
+if ($konfiguration[$modul]['debug'] == '1') |
+ $zus = 'checked'; |
+else |
+ $zus = ''; |
+ |
+?> |
+ |
+<input type="checkbox" name="enabledebug" value="1"<?php echo $zus; ?>> Debugmodus aktivieren<br><br> |
+ |
+ <input type="button" onclick="document.location.href='<?php echo $_SERVER['PHP_SELF']; ?>?modul=<?php echo $vonmodul; ?>&seite=<?php echo $vonseite; ?>';" class="button" onmouseover="this.className='button_act';" onmouseout="this.className='button';" value="Zurück"> |
+ |
+ <input type="submit" value="Ändern" class="button" onmouseover="this.className='button_act';" onmouseout="this.className='button';"> |
+ |
+ </form> |
+ |
+<?php |
+ |
+ echo $footer; |
+ |
+?> |
/trunk/modules/core_debugger/pages/kraftsetzung.inc.php |
---|
0,0 → 1,24 |
<?php |
if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
if ($ib_user_type < 2) die('Keine Zugriffsberechtigung'); |
if ($aktion == 'changekonfig') |
{ |
if ((!isset($enabledebug)) || (($enabledebug == '') || (($enabledebug != '') && ($enabledebug != '1')))) $enabledebug = 0; |
if (!isset($vonmodul)) $vonmodul = 'admin_konfig'; |
if (!isset($vonseite)) $vonseite = 'inhalt'; |
if ($enabledebug) |
$enabledebug = '1'; |
else |
$enabledebug = '0'; |
ib_change_config('debug', $enabledebug, $modul); |
if (!headers_sent()) header('location: '.$_SERVER['PHP_SELF'].'?seite='.urlencode($vonseite).'&modul='.urlencode($vonmodul).''); |
} |
?> |