예제 #1
0
         $zip = new ZipArchive();
         $res = $zip->open($tmpfile);
         if ($res === TRUE) {
             $zip->extractTo(ROOT_PATH . '/');
             $zip->close();
             $uploadzip = "OK";
         } else {
             $uploadzip = "ERR";
         }
     } else {
         $uploadzip = "ERR";
     }
 }
 if (isset($_GET['deftheme']) && is_dir(ROOT_PATH . '/themes/' . $_GET['deftheme'])) {
     $config['portal_theme'] = $_GET['deftheme'];
     $altmess = ConfigEditor::write('config.php', $config);
 }
 if (isset($_REQUEST['action']) && $_REQUEST['action'] == "themes") {
     $pagetitle = "Themes Manager";
     $viewname = "themes";
 } else {
     if (isset($_REQUEST['action']) && $_REQUEST['action'] == "themestore") {
         $pagetitle = "Themes Store";
         $viewname = "themestore";
     } else {
         if (isset($_REQUEST['action']) && $_REQUEST['action'] == "pluginstore") {
             $pagetitle = "Plugins Store";
             $viewname = "pluginstore";
         } else {
             if (isset($_REQUEST['action']) && $_REQUEST['action'] == "appearance") {
                 $pagetitle = "Appearance Settings";