Просмотр файла jokemaster/system/choice.php

Размер файла: 1.29Kb
<?php if (isset($j)): $pu='pages'; $gor=opq($pu); $om=sizeof($gor); $om2=ceil($om/10); $lom="<p align='left'><b>Нет такой страницы!</b></p><br>"; if (ereg("^([0-9]+)$",$_GET['c']) and $_GET['c']<=$om2 and $_GET['c']>0): $c=$_GET['c']; print "<p align='center'><b>Приколы</b></p><br><p align='left'>Страница: $c</p><br><p align='center'>"; for ($wm=$c*10-10;$wm<=$c*10-1 and $wm<=$om-1;$wm++): $luk=str_replace('.pg','',$gor[$wm]); print "<a href='index.php?q=$luk'><b>$luk</b></a><br>*  *  *<br>"; endfor; print "</p><br>"; if ($c>1): $w=$c-1; $nazad="<a href='index.php?c=$w'><b>&lt;===</b></a>"; else: $nazad="<b>&lt;===</b>"; endif; if ($c<$om2): $w=$c+1; $dalee="<a href='index.php?c=$w'><b>===&gt;</b></a>"; else: $dalee="<b>===&gt;</b>"; endif; $per="<p align='center'>$nazad ________ $dalee<br><b>назад</b> _____ <b>далее</b></p><br><form action='' method='get'><p align='left'><b>*Перейти к странице (1-$om2):</b><br><input name='c' type='text' rows='1' size='3'><input type='submit' value=' Перейти '></p><br></form>"; if ($om2>1): print $per; endif; else: print $lom; endif; print "<p align='center'><a href='index.php'><b>&#187;Случайный список вопросов&#171;</b></a></p><br>"; else: header("Location: index.php"); endif; ?>