$module_manager = new module_manager(); $yclass = new yclass(); $yclass->init_template(); $yclass->init_validation(); $ytemplate = new ytemplate(); $ytemplate->admin_set_base(); $ytemplate->build_name(); $ytemplate->zen_admin_set_path(); switch ($_GET['action']) { case 'list_modules': $modules = $module_manager->list_modules(); $ytemplate->set('modules', $modules); break; case 'update_module': $module_manager->update_module($_GET['ID']); $ytemplate->set_name('tpl_index.php'); break; case 'install_modules': $modules = $module_manager->list_modules(); $installed_modules = array(); if (is_array($modules)) { foreach ($modules as $module) { $installed_modules[] = $module['module_code']; } } $new_modules = $module_manager->get_new_modules($installed_modules); foreach ($new_modules as $new_module) { $module_manager->set_module($new_module); $module_manager->upgrade_module(); } $ytemplate->set('counter', count($new_modules));
require_once DIR_WS_CLASSES . 'module_installer.php'; require_once DIR_WS_CLASSES . 'ssu.php'; $module_installer = new module_installer(); $module_installer->set_module('yellow1912_ssu'); $module_installer->upgrade_module(); $yclass = new yclass(); $yclass->init_template(); $yclass->init_validation(); $ytemplate = new ytemplate(); $ytemplate->admin_set_base(); $ytemplate->build_name(); $ytemplate->zen_admin_set_path(); switch ($_GET['action']) { case 'reset_cache': $ytemplate->set('file_counter', SSUManager::resetCache($_GET['folder'])); $ytemplate->set_name('tpl_reset_cache_folder.php'); break; case 'link_aliases': SSUAlias::retrieveAliases(); $ytemplate->set('link_aliases', retrieve_aliases()); break; } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;