-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
50 lines (45 loc) · 1.14 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* @copyright Copyright (c) 2005 - 2008 kele China Inc. (http://www.xixihe.com)
* @author zhumingվ (www.xixihe.com)
* @package kelecms
* @subpackage kelecms
* @version $Id: index.php 2008--@zhuming$
*/
if(defined('kele_start'))return false;
class kelecms{
public $area;
public $power;
public function kelecms(){
error_reporting(0);
$this->area = 'index';
$this->power = 'member';
define('kele_start',true);
define('kele_debug',false);
$http_dir="http://".$_SERVER ['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
define('http_dir',$http_dir.'/');
define('kele_dir', dirname(__FILE__).'/');
define('tpl_dir','tpl/default/');
require(kele_dir.'app/index.php');
new kele($this->area,$this->power);
//$this->cking();
}
/*
public function cking(){
if(!is_readable(kele_dir.'static/config/config.php')){
$this->goto();
}else{
$this->index();
}
}
public function index(){
require(kele_dir.'app/index.php');
new kele($this->action,$this->power);
}
public function goto(){
require(kele_dir.'install/index.php');
new install();
}*/
}
new kelecms();
?>