Beispiel #1
0
         if (empty($optiondefault)) {
             $optiondefault = '&tab=theme';
         }
         $subtabs[gettext("theme")] = 'admin-options.php?page=options&tab=theme';
     }
     $zenphoto_tabs['options'] = array('text' => gettext("options"), 'link' => WEBPATH . "/" . ZENFOLDER . '/admin-options.php?page=options' . $optiondefault, 'subtabs' => $subtabs, 'default' => 'gallery');
 }
 if ($_zp_loggedin & THEMES_RIGHTS) {
     $zenphoto_tabs['themes'] = array('text' => gettext("themes"), 'link' => WEBPATH . "/" . ZENFOLDER . '/admin-themes.php', 'subtabs' => NULL);
 }
 if ($_zp_loggedin & ADMIN_RIGHTS) {
     list($subtabs, $default) = getPluginTabs();
     $zenphoto_tabs['plugins'] = array('text' => gettext("plugins"), 'link' => WEBPATH . "/" . ZENFOLDER . '/admin-plugins.php', 'subtabs' => $subtabs, 'default' => $default);
 }
 if ($_zp_loggedin & ADMIN_RIGHTS) {
     list($subtabs, $default, $new) = getLogTabs();
     $zenphoto_tabs['logs'] = array('text' => gettext("logs"), 'link' => WEBPATH . "/" . ZENFOLDER . '/admin-logs.php?page=logs', 'subtabs' => $subtabs, 'alert' => $new, 'default' => $default);
 }
 if (!$_zp_current_admin_obj->getID()) {
     $filelist = safe_glob(SERVERPATH . "/" . BACKUPFOLDER . '/*.zdb');
     if (count($filelist) > 0) {
         $zenphoto_tabs['restore'] = array('text' => gettext("Restore"), 'link' => WEBPATH . "/" . ZENFOLDER . '/utilities/backup_restore.php?page=backup', 'subtabs' => NULL);
     }
 }
 $zenphoto_tabs = zp_apply_filter('admin_tabs', $zenphoto_tabs);
 foreach ($zenphoto_tabs as $tab => $value) {
     if (is_null($value)) {
         unset($zenphoto_tabs[$tab]);
     }
 }
 //	so as to make it generally available as we make much use of it
Beispiel #2
0
                        readfile($zipname);
                        // remove zip file from temp path
                        unlink($zipname);
                        exit;
                    } else {
                        include_once SERVERPATH . '/' . ZENFOLDER . '/lib-zipStream.php';
                        $zip = new ZipStream($zipname);
                        $zip->add_file_from_path(internalToFilesystem(basename($file)), internalToFilesystem($file));
                        $zip->finish();
                    }
                }
                break;
        }
    }
}
list($subtabs, $default) = getLogTabs();
$zenphoto_tabs['logs'] = array('text' => gettext("logs"), 'link' => WEBPATH . "/" . ZENFOLDER . '/admin-logs.php?page=logs', 'subtabs' => $subtabs, 'default' => $default);
printAdminHeader('logs', $default);
echo "\n</head>";
?>

<body>

	<?php 
printLogoAndLinks();
?>
	<div id="main">
		<?php 
printTabs();
?>
		<div id="content">