init
This commit is contained in:
18
119/index.php
Normal file
18
119/index.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php //var_dump($url);echo "<br>FD=",F_D,"<br>lnk=",$lnk,"<br>"; //phpinfo();
|
||||
$url = explode('/', $_SERVER['REQUEST_URI']);
|
||||
if(isset($url[1])) { $lnk=$url[2]; $lnk2 = explode('?', $lnk); }
|
||||
include("config/_config.php");
|
||||
include("_header.php");
|
||||
|
||||
// echo $lnk.".php";
|
||||
if( (isset($_SESSION['email'])) && ($_SESSION['shop']==SHOP_ID)) {
|
||||
include("_navbar.php");
|
||||
|
||||
if($lnk=="" || $lnk=="index" || $lnk=="index.php" || $lnk=="_home.php" || $lnk2[0]=="") include("_home.php");
|
||||
elseif(file_exists(__DIR__."/".$lnk.".php")) include($lnk.".php");
|
||||
elseif(isset($lnk2[1]) && file_exists(__DIR__."/".$lnk2[0].".php") ) include($lnk2[0].".php");
|
||||
else include("_404.php");
|
||||
} else include("login.php");
|
||||
|
||||
|
||||
include("_footer.php");
|
||||
Reference in New Issue
Block a user