- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
function get_section(){
if(ifGet('section')){
if($this->get_file('./applications/app.'.$this->section.'.php')){
switch (Get('section')){
case ''.$this->section.'':
$m = new $this->section();
break;
}
} else {
switch (Get('section'))
{
default:
include_once('./applications/sys.pages.php');
$m = new pages();
break;
}
}
}else{
switch (Get('section'))
{
default:
include_once('./applications/sys.home.php');
$m = new home();
break;
}
}
if(isset($m) && is_object($m)) {
$this->output = $m->output;
$this->title = $m->title;
$this->crumbs = $m->crumbs;
}
}
Lure Of Chaos 30.03.2011 13:38 # 0
Impossible 30.03.2011 13:40 # 0
function ifGet($q){
return ((isset($_GET[$q]) AND trim($_GET[$q])) ? true : false);
}
Lure Of Chaos 30.03.2011 13:44 # 0
rO_ot 30.03.2011 21:14 # 0
PS Все равно говно
nethak 30.03.2011 14:56 # −1
Impossible 30.03.2011 14:58 # 0