PHP:
<?php
include '_inc.php';
include 'config.php';
session_start();
if($user->isAuthorized() && $user->getGroup()->isAdmin()) {
$query = mysql_query("SELECT * FROM `blanka` ORDER BY id DESC")or die(mysql_error()."<br />??????: ".__LINE__);
while($row = mysql_fetch_array($query)){
$id = $row['id'];
$profile = $row['profile'];
$display_name = $row['display_name'];
$desc = $row['desc'];
$added = $row['added'];
$ip = $row['ip'];
echo "Video: <a href='{$row['desc']}'>{$row['desc']}</a>";
echo "Added by: <a href='{$row['profile']}'>{$row['display_name']}</a>";
echo "IP: $ip";
echo "Date: $data";
}}
else { echo "You're not authorized user! "; }
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>