Example #1
0
<?php

/*
  Das Elm@r-Modul fuer osCommerce
  Unterstuetzung des shopinfo.xml-Standards
  http://projekt.wifo.uni-mannheim.de/elmar/nav/osCommerce
  Copyright (c) 2004-2005 Dr. Stefan Kuhlins, http://kuhlins.de/
  Released under the GNU General Public License
  $Id: backupfile.php 64 2005-12-19 18:07:20Z Michael $
*/
if (@(include_once 'checkstart.inc.php')) {
    checkstart(basename('backup.php'));
}
require ELMAR_PATH . 'backup.inc.php';
require ELMAR_PATH . 'tools/zip.lib.php';
$zipfile = new zipfile();
$backupcounter = 0;
for ($i = 0, $n = sizeof($files); $i < $n; $i++) {
    // entspricht PHP4: foreach($files as $file)
    $file = $files[$i];
    $fn = $file->path . $file->name;
    if ($file->paramcheck && file_exists($fn)) {
        $fs = filesize($fn);
        if ($fs > MAX_FILE_SIZE) {
            error_log(date(PHP_DATE_TIME_FORMAT) . " Elm@r-osCommerce-Modul: Die Datei {$fn} ist mit {$fs} Bytes zu gross fuer ein On-the-fly-Backup.", 0);
            //trigger_error("Die Datei $fn ist mit $fs Bytes zu gro&szlig; f&uuml;r ein On-the-fly-Backup.", E_USER_NOTICE);
        } else {
            $handle = fopen($fn, 'rb');
            $data = fread($handle, $fs);
            fclose($handle);
            $fn = $file->path() . $file->name;
Example #2
0
<?php

/*
  Das Elm@r-Modul fuer osCommerce
  Unterstuetzung des shopinfo.xml-Standards
  http://projekt.wifo.uni-mannheim.de/elmar/nav/osCommerce
  Copyright (c) 2004-2005 Dr. Stefan Kuhlins, http://kuhlins.de/
  Released under the GNU General Public License
  $Id: sysinfo.php 64 2005-12-19 18:07:20Z Michael $
*/
if (@(include_once 'checkstart.inc.php')) {
    checkstart(basename($_SERVER['PHP_SELF']));
}
?>

<h1>Systeminformationen</h1>
<div class="middleCell" style="width:600px">
<p>Die aufgef&uuml;hrten Werte werden in der Konfigurationsdatei <code>php.ini</code> vom Adminstrator des Webservers eingestellt. Unter Umst&auml;nden f&uuml;hren einige Einstellungen zu Beschr&auml;nkungen in der Funktionalit&auml;t des Elm@r-Moduls. Wenn der Webadmin nicht bereit ist, die Einstellungen zu &auml;ndern, m&uuml;ssen Sie mit diesen Beschr&auml;nkungen leider leben. Soweit das technisch m&ouml;glich ist, versucht das Elm@r-Modul die Probleme auf Kosten des Komforts zu umgehen.</p>

<dl>
<?php 
if (ini_get('safe_mode')) {
    ?>
  <dt><span class="error"><code>safe_mode</code> ist aktiv.</span></dt>
  <dd>Das Elm@r-Modul kann u.&nbsp;a. die Ausf&uuml;hrungszeit seiner PHP-Skripten nicht verl&auml;ngern, sofern dies bei gro&szlig;en Produktdateien erforderlich sein sollte.</dd>
<?php 
}
?>

<?php 
$max_execution_time = (int) ini_get('max_execution_time');
Example #3
0
<?php

/*
  Das Elm@r-Modul fuer osCommerce
  Unterstuetzung des shopinfo.xml-Standards
  http://projekt.wifo.uni-mannheim.de/elmar/nav/osCommerce
  Copyright (c) 2004-2005 Dr. Stefan Kuhlins, http://kuhlins.de/
  Released under the GNU General Public License
  $Id: login.php 64 2005-12-19 18:07:20Z Michael $
*/
if (@(include_once 'checkstart.inc.php')) {
    checkstart(basename('index.php'));
}
$elmar_password_time = isset($_REQUEST['elmar_password_time']) ? $_REQUEST['elmar_password_time'] : 0;
if (isset($_REQUEST['elmar_password_input'])) {
    ?>
  <h1 class="error">Fehler</h1>
  <div class="errorCell">
  <p>Das eingegebene Passwort stimmt nicht.</p>
  </div>
<?php 
}
?>

<SCRIPT TYPE="text/javascript" SRC="<?php 
echo ELMAR_PATH;
?>
check.js"></SCRIPT>

<h1>Login</h1>
<div class="middleCell">