View file fnc/down/download.php

File size: 712B
<?php
include"../../sys/fnc.php";




$page_down=$_GET['page_down'];



if(empty($page_down)){$page_down=0;}
$res=$db->query("select * from `down` order by `id` DESC  LIMIT ".$page_down." ,".$str."");
while($pole = $res->fetch_array())
{
	echo'<p><b>'.$pole[name].'</b><br/>'.$pole[opis].'<br/><a href="'.$pole[pach].'">Скачать</a>';
	if($user[leval]==4){echo' | <a href="javascript:download_del('.$pole[id].')">Удалить файл</a>';}
	echo'<br/>..........................................</p>';
}
if($res->num_rows==0)
{
	echo'Загрузок пока нет :)';
}
$res->close();
$dop_down="";
mess_str("down",$page_down,$dop_down);



?>

<?include"../sch2.php";?>