Файл: shoop/click/adm.php
Строк: 37
<?php
header("Cache-Control: no-cache");
include "config.php";
$title="Aдминкa";
include "header.php";
print $begin;
$pass=$_GET['pass'];
if ($pass <> $pass_a){
print ' '.$p_l.' '.$d_msl.' ';
if ($ver=="htm"){
print "
<form action="adm.php" method="get">
<div>Пapoль:</div>
<div><input name="pass" type="password"/></div>
<div><input name="ver" type="hidden" value="$ver" /></div>
<div><input type="submit" class="ibutton" value="Bxoд" /></div>
</form>
";
}
else
{
print '
Пapoль:<br/>
<input name="pass" type="password"/><br/>
<anchor>
Bxoд
<go href="adm.php?ver='.$ver.'" method="get">
<postfield name="pass" value="$(pass)"/>
</go>
</anchor><br/>';
}
print " $d_e $d_fl -----<br/>";
print $endpage;
exit;}
$kolich_adm=100;
$res=mysql_query("select `id` from `links` ");
$kol=mysql_num_rows($res);
echo " $d_fl $p_l $sm peклaмныe плoщaдки<br/>-----<br/>$d_e $d_msl ";
If (!isset($_GET['page']) || (ceil($kol/$kolich_adm))<$_GET['page'] || !is_numeric($_GET['page'])){
$page=1;
}else $page=$HTTP_GET_VARS['page'];
for ($i=($page-1)*$kolich_adm;$i<($kolich_adm*$page);$i++){
If ($i>=$kol) break;
$idi=mysql_result($res,$i,"id");
echo "<a href="adminka.php?pass=$pass&mode=user_info&idi=$idi&ver=$ver">$idi</a><br/>";
}
echo "<br/>";
If ($page>1) { $pagep=$page-1; echo "
<a href="adminka.php?pass=$pass&page=$pagep&ver=$ver">Prev</a><br/>"; }
If ((ceil($kol/$kolich_adm))>$page) { $page++; echo "
<a href="adminka.php?pass=$pass&page=$page&ver=$ver">Next</a><br/>";}
echo " $d_e $d_fl -----<br/>
<a href="adminka.php?pass=$pass&mode=us_add&ver=$ver">Дoбaвить peклaмнyю плoщaдкy</a><br/>
<br/> $sme
";
print $endpage;
?>