- 1
- 2
- 3
if((!$_SERVER["REQUEST_URI"]) || ($_SERVER["REQUEST_URI"] == "/") && !$_SESSION['user']) {$smarty->display(dirname(__FILE__).'/system/template/index.html'); exit;}
if ($_SESSION['user']['login'] && (!$_SERVER["REQUEST_URI"]) || ($_SERVER["REQUEST_URI"] == "/")) {require './system/modules/info/main.php';$smarty->assign('c',$_SESSION['user']); $smarty->display(dirname(__FILE__).'/system/template/home/index.html');}
if((!$_SERVER["REQUEST_URI"]) || ($_SERVER["REQUEST_URI"] == "/") && !$_SESSION['user']) {$smarty->display(dirname(__FILE__).'/system/template/home/guest.html');}
Fike 05.01.2015 03:53 # +4
( соцсеть )
╰ ◟◞ ͜ ◟ ◞ ͜ ◟◞ ╯
〇
O
o
_ ∧_∧_
| (-ω-)|
/⌒⌒⌒⌒⌒/|
/⌒⌒⌒⌒⌒//
|⌒⌒⌒⌒⌒|
Fike 05.01.2015 03:53 # 0
yanislavb 05.01.2015 23:50 # 0
guest 16.01.2015 16:59 # 0
Анонимус 16.01.2015 22:20 # 0