Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
if($_SESSION['id']) {
?>
<a href='index.php'> Начало </a>
<?php
if ( $id[admin] == 1 ) {
echo " <a href=\"admin/index.php>Адмен панел</a>
";
}
} else {
?>
<a href='index.php'> Начало </a>
<?php
}
?>
<?php
require "conn.php"; //config-а ти
$select=mysql_fetch_array(mysql_query("SELECT level FROM users WHERE username='$_SESSION[username]'"));
$level=$select['userlevel'];
if($level!=1){
exit;
}
?>