Plz How can i add a pagging tag here plz add it for me
PHP Code:
{
$name=translit($glob_file[$i]);
$filesize=filesize($glob_file[$i]);
if($filesize>1024)
$filesize=round($filesize/1024, 2).' Kb';
else
$filesize.=' b';
/*if(r($glob_file[$i])=='txt')
{
$text=file($glob_file[$i]);
$name=$text[1];
$opis=$text[2].$text[3].$text[4].$text[5];
}*/
echo "";
$basename=basename($glob_file[$i]);
if($p and file_exists('skrin/'.$basename.'.gif'))
{
print '<img src="pic.php?file=skrin/'.$basename.'.gif" alt="" />';
}
elseif($p and file_exists('skrin/'.$basename.'.jpg'))
{
print '<img src="pic.php?file=skrin/'.$basename.'.jpg" alt="" />';
}
elseif($p and file_exists('skrin/'.$basename.'.png'))
{
print '<img src="pic.php?file=skrin/'.$basename.'.png" alt="" />';
}
if((r($glob_file[$i])=='jpg' or r($glob_file[$i])=='gif' or r($glob_file[$i])=='png') and $p)
print '<img src="pic.php?file='.$glob_file[$i].'" alt="" />';
if((r($glob_file[$i])=='3gp' or r($glob_file[$i])=='mp4' or r($glob_file[$i])=='avi') and $p)
print '<img src="pre.php?file='.$glob_file[$i].'" alt="" />';
if((r($glob_file[$i])=='nth' or r($glob_file[$i])=='thm') and $p)
print '<img src="theme.php?file='.$glob_file[$i].'" alt="" />';
print '<div class="borderw"><a href="file.php?p='.$p.'&file='.$glob_file[$i].'&sort='.$sort.'"><table cellspacing="0" class="block"> <tbody> <tr> <td class="img"> </td>';
print '<td><img src="ar.gif" alt="" />'.$name.'<br/><font color="#282828"> <img src="ar.gif" alt="" />'.$filesize.'<br/></font> </td> </tr> </tbody> </table> </a></div>';
//////////if(file_exists('opis/'.$basename.'.txt'))
////////$opis=htmlspecialchars(file_get_contents('opis/'.$basename.'.txt'));
////////elseif(!isset($opis))
////////$opis=false;
//////if($opis)
////////print nl2br(htmlspecialchars($opis)).'<br />';
//////if(trim(r($glob_file[$i])=='jar'))
//{
//}
/////////////elseif(trim(r($glob_file[$i]))=='txt')
///////////print '<a href="txt.php?p='.$p.'&file='.$glob_file[$i].'&sort='.$sort.'">Read</a><br />';
/*else
echo '<object type="applzication/x-shockwave-flash" data="musiqs.swf?mp3='.$glob_file[$i].'" width="60" height="20">
<param name="FlashVars" value="musiqs.swf?mp3='.$glob_file[$i].'" />
</object>';*/
$dirkomm=str_replace('/', 'D', str_replace('.', 'T', $glob_file[$i]));
if(!file_exists('komm/'.$dirkomm))
$countkomm=0;
else
$countkomm=count(file('komm/'.$dirkomm));
}
}
?>
Comment