index of myCMS

 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
<?php
ini_set("display_errors","1");
ini_set ('error_reporting', E_ALL);
require_once "requirements.php";
if(!isset($section))$page_content = $page_header = $page_title = 'первая сатринца';
elseif( "newsfeed" == $section
or "news" == $section
or "blog" == $section
or "album" == $section
){
require_once "lib/url_blog.php";
}
elseif( "user" == $section
or "obj" == $section
or "mail" == $section
){
require_once "lib/url_obj.php";
}
elseif( "page" == $section
or "undo" == $section
){
require_once "lib/url_page.php";
}
elseif( "dm" == $section
){
require_once "lib/url_dm.php";
}
$htm = '';
if(isset($section))require "$section.php";
if(isset($path))$path = make_path($path, $url_path_separator);else$path='';
$page_title = strip_tags($path);
$page_title = str_replace($url_path_separator,'. ',$page_title);
if(!isset($g['rss']))require_once "tpl/page.php";
?>