-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglav.php
39 lines (39 loc) · 797 Bytes
/
glav.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
<?php
session_start();
header("Content-Type: text/html;charset=windows-1251");
if($_SESSION['id']=="")
{ header('location: login.php');
}
else
{$lnk=$_GET['lnk'];
if($lnk=="")
{ $lnk="glavnaya.php";
}
else
{ $lnk.=".php";
if(! file_exists($lnk))
{ $lnk="glavnaya.php";
}
else
{ //none
}
}
include("config.php");
print "<html>\n";
print "<head>\n";
print "<script language='javascript' src='scripts/script.js'></script>";
print "<link rel='stylesheet' href='style/style.css' type='text/css'>\n";
print "<title>TestProg</title>\n";
print "</head>\n";
print "<body>\n";
print "<div id='logo'></div>\n";
print "<div id='left'>";
include("leftmenu.php");
print "</div>\n";
print "<div id='center'>";
include($lnk);
print "</div>\n";
print "</body>\n";
print "</html>\n";
}
?>