Пример #1
0
// deconnection already included in Validation
$dbobj = new dbconnection();
$vobj = new Validation();
session_start();
if (!isset($_SESSION['uid'])) {
    echo "You are not authoriezed to enter this page. You have to login first";
    exit;
}
$uid = $_SESSION['uid'];
if (!$vobj->ifSuperUserId($uid)) {
    echo "You are not authoriezed to enter this page. Only for admins.";
    exit;
}
$_products_img = "../images/product/";
$_users_img = "../images/user/";
$productsArr = $dbobj->getActiveProductsRecords();
$_controller = "../controller/";
$_layout = "../layout/";
$_add_product = "../layout/add_product.php";
$uname = $dbobj->SelectColumn('uname', 'user', 'uid', $uid);
$uname = $uname[0];
$img = $_users_img . $uname . ".jpeg";
include "common/header.php";
?>
<html>
<head>
	<title></title>
	
</head>
<body>
	<div class="container">