예제 #1
0
파일: windid.php 프로젝트: fanqimeng/4tweb
<?php

error_reporting(E_ERROR | E_PARSE);
require './src/wekit.php';
$components = array('router' => array());
Wekit::run('inform', $components);
예제 #2
0
파일: admin.php 프로젝트: fanqimeng/4tweb
<?php

error_reporting(E_ERROR | E_PARSE);
require './src/wekit.php';
$components = array('router' => array());
Wekit::run('pwadmin', $components);
예제 #3
0
파일: api.php 프로젝트: hubs/yuncms
<?php

/**
 * api.php class file.
 *
 * @author Tongle Xu <*****@*****.**>
 * @link http://www.tintsoft.com/
 * @copyright Copyright &copy; 2009-2013 TintSoft Development Co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id: api.php 623 2013-07-29 03:40:03Z 85825770@qq.com $
 */
error_reporting(E_ALL);
//开发
//Error_reporting(E_ERROR | E_WARNING | E_PARSE);//线上
require_once 'src/wekit.php';
Wekit::run('Api');
예제 #4
0
파일: index.php 프로젝트: sanzhumu/nextwind
<?php

error_reporting(E_ALL ^ E_NOTICE | E_STRICT);
require '../../src/wekit.php';
$components = array('router' => array());
Wekit::run('windid', $components);
예제 #5
0
<?php

session_start();
error_reporting(E_ERROR | E_PARSE);
if (isset($_SESSION['op'])) {
    $op = $_SESSION['op'];
    $user = $_SESSION['user'];
}
require './src/wekit.php';
$_SESSION['op'] = $op;
$_SESSION['user'] = $user;
$components = array('router' => array());
Wekit::run('windidnotify', $components);
예제 #6
0
<?php

/*
* used to calculate shop sales everyday
*/
error_reporting(E_ERROR | E_PARSE);
$_SERVER['REQUEST_URI'] = 'schedule';
$_SERVER['HTTP_X_REWRITE_URL'] = 'schedule';
$_SERVER['ORIG_PATH_INFO'] = 'schedule';
$_SERVER['HTTP_HOST'] = 'www.diancanyo.com';
define('TT', dirname(__FILE__) . DIRECTORY_SEPARATOR);
include TT . '../src/wekit.php';
Wekit::run('phpwind');
$startDate = '2013-08-01';
$isfirstrun = false;
//if it is first time run, then need to calculate the data from start date
date_default_timezone_set('Asia/Shanghai');
$today = date('Y-m-d H:i:s');
echo "today:" . $today;
if ($isfirstrun) {
    while ($startDate < $today) {
        calDailySale($startDate);
        //prepare next day
        $fromDateArray = getdate(strtotime($startDate));
        $nextday = mktime(0, 0, 0, $fromDateArray['mon'], $fromDateArray['mday'] + 1, $fromDateArray['year']);
        $startDate = date('Y-m-d', $nextday);
    }
} else {
    //if it is not first time run, then just cal previous
    $fromDateArray = getdate(strtotime($today));
    $nextday = mktime(0, 0, 0, $fromDateArray['mon'], $fromDateArray['mday'] - 1, $fromDateArray['year']);
예제 #7
0
<?php

error_reporting(E_ERROR | E_PARSE);
require '../../src/wekit.php';
Wekit::run('windidadmin', array('router' => array()));
예제 #8
0
파일: leapsc.php 프로젝트: hubs/yuncms
<?php

/**
 * command.php class file.
 *
 * @author Tongle Xu <*****@*****.**>
 * @link http://www.tintsoft.com/
 * @copyright Copyright &copy; 2009-2013 TintSoft Development Co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id: leapsc.php 620 2013-07-29 03:32:10Z 85825770@qq.com $
 */
error_reporting(E_ALL);
//开发
//Error_reporting(E_ERROR | E_WARNING | E_PARSE);//线上
require_once 'src/wekit.php';
Wekit::run('Command');
예제 #9
0
파일: index.php 프로젝트: hubs/yuncms
<?php

/**
 * 入口文件
 *
 * @author Tongle Xu <*****@*****.**>
 * @link http://www.tintsoft.com/
 * @copyright Copyright &copy; 2009-2013 TintSoft Development Co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id: index.php 623 2013-07-29 03:40:03Z 85825770@qq.com $
 */
error_reporting(E_ALL);
//开发
//Error_reporting(E_ERROR | E_WARNING | E_PARSE);//线上
require_once 'src/wekit.php';
Wekit::run('Web');
예제 #10
0
<?php

error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
require '../src/wekit.php';
Wekit::run('install');
예제 #11
0
파일: admin.php 프로젝트: fanqimeng/4tweb
<?php

error_reporting(E_ERROR | E_PARSE);
require '.././src/wekit.php';
$components = array('router' => array());
Wekit::run('windidadmin', $components);