Файл: test.zfarm.mobi/mystylereg/mystyleindex.php
Строк: 16
<?php
if(isset($_GET['mystylereg']) && num($_GET['mystylereg'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_registration` WHERE `type` = '".num($_GET['mystylereg'])."' LIMIT 1"),0)!=0){
echo '<div class="body">
<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Выбирай любого зомби. <br/> Какой тебе больше нравится?</span>
</div>';
echo '<div style="clear: both;"></div></div><div class="body nobr">';
$q=mysql_query("SELECT * FROM `mystyle_registration` WHERE `type` = '".num($_GET['mystylereg'])."' LIMIT 3");
while($posts=mysql_fetch_array($q))
{
echo '<div class="fl" style="margin-left:8px; text-align: center; width:30%;">
<a href="?mystylere='.$posts['id'].'"><img alt="o" src="images/mystyle_zombi/'.$posts['img'].'.png"/></a><br/>
</div>';
}
echo '<div style="clear:both;"></div></div>';
}else{
header("Location: ./");
exit;
}
?>