Размер файла: 986B
<?php
session_start();
include "file/db.php";
include "file/config.php";
include "file/them.php";
echo "</center><div class='menu'><center>Правила<br/></center></div><div class='tab'>";
$r = mysql_query('SELECT * FROM `pravila`;');
if(mysql_affected_rows()==0)
{
echo "<center>Правил нет...</center><br/>";
}
else
{
$i = 1;
while ($setpr = mysql_fetch_array($r))
{
print ''.$i++.') '.base64_decode($setpr['msg']).'<br /> За нарушение <font color="red">'.base64_decode($setpr['nakaz']).'</font><div class="hr"></div>';
}
}
if ($autorize)
{
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><br/><div class='hr'></div>";
}
else
{
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"index.php\">Главная</a><br/><div class='hr'></div>";
}
print "</div>";
include "style/".$wap_skin."/foot2.php";
?>