示例#1
0
文件: caiji.php 项目: h3len/Project
    public static function deleteDomain()
    {
        $domain = self::$input['domain'];
        if (!is_array($domain)) {
            $domain = array($domain);
        }
        foreach ($domain as $d) {
            @unlink(self::file($d));
        }
    }
    public static function file($domain)
    {
        return self::$cacheDir . $domain . '.json';
    }
}
$result = main::init();
?>

<?php 
if (in_array($_REQUEST['a'], array('config', 'domain'))) {
    ?>
<!doctype html>
<html>
    <head>
        <title>规则配置</title>
        <link rel="stylesheet" href="static/reset.css"/>
        <script src="static/jquery.min.js"></script>
        <script src="static/jquery-ui.js"></script>
        <script src="static/jquery.tmpl.min.js"></script>
        <script src="static/tip.js"></script>
    </head>
示例#2
0
<?php

/*
Plugin Name: Amazon S3 Backup
Description: Amazon S3 Backup Plugin to create Amazon S3 Full Backup (Files + Database)
Version: 1.0.4
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'libs' . DIRECTORY_SEPARATOR . "main.php";
main::setPluginDir(dirname(__FILE__));
main::setPluginName('amazon-s3-backup');
main::init();
add_action('init', array('main', 'run'));
add_action('admin_print_scripts', array('main', 'include_admins_script'));
示例#3
0
文件: index.php 项目: SjayLiFe/CTRev
    $converted = false;
    include ROOT . 'install/include/convert.php';
    $main = new convert($converted);
    if ($converted) {
        $page = end($pages);
        $pages = array($page);
    }
} else {
    include ROOT . 'install/include/main.php';
    $main = new main();
}
if (!$page) {
    if (!in_array($_GET['page'], $pages)) {
        $page = reset($pages);
    } else {
        $page = $_GET['page'];
    }
}
define('INSTALL_PAGE', $page);
define('CONTENT_PATH', 'install/style/content/');
define('IMAGES_PATH', 'install/style/content/images/');
define('JS_PAGES', '["' . implode('", "', array_map('addslashes', $pages)) . '"]');
if ($_GET['page']) {
    $main->init();
} else {
    include 'include/classes/class.input.php';
    tpl::o()->assign('pages', $pages);
    tpl::o()->assign('clang', $lng);
    tpl::o()->assign('input', input::o());
    tpl::o()->display('contents');
}