示例#1
0
/**
 * Simple SEO URL
 * $Author: yellow1912 $
 * $Rev: 213 $
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
require 'includes/application_top.php';
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">
<?php

/**
 * Module Manager
 * @Version: 
 * @Authour: yellow1912
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
require 'includes/application_top.php';
require_once DIR_WS_CLASSES . 'module_manager.php';
$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)) {
示例#3
0
/**
 * Simple SEO URL
 * $Author: yellow1912 $
 * $Rev: 213 $
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
require 'includes/application_top.php';
require_once DIR_WS_CLASSES . 'module_installer.php';
$module_installer = new module_installer();
$module_installer->set_module('yellow1912_sc');
$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', SimpleCacheManager::resetCache());
        break;
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>