Initial commit
[2ch-be.git] / dev-test / old / choose.php
blob0923e60d327bb6444e2531be74b0e9fe8503b7d8
1 <center>
2 <?php
3 if (!isset($_COOKIE['DMDM']) && !isset($_COOKIE['MDMD'])) {
4 header('location:index.php');
5 exit;
7 $ico = file('ico.txt');
8 $c = count($ico)/20;
9 if(strpos($c,".")>0)
10 $c = $c+1;
11 $p = (isset($_GET['p'])&&is_numeric($_GET['p']))?($_GET['p']*20):20;
12 $s = (isset($_GET['p'])&&is_numeric($_GET['p']))?$p-20:0;
13 print "<div style=\"margin-top:100px\">";
14 for ($i=$s; $i < $p; $i++)
15 if(isset($ico[$i]))
16 echo "<a href=\"status.php?ico=".$ico[$i]."\"><img src=\"http://204.63.8.28/ico/".$ico[$i]."\" height=\"30\" style=\"margin:5px;\"></a>";
17 print "</div>";
18 print "<div style=\"max-width:500px;margin-top:30px;text-align:center\">";
19 for($t=1;$t<=$c;$t++)
20 print "<a href=\"choose.php?p=$t\" style=\"margin:5px;padding:5px;display:inline-block\">$t</a>";
21 print "</div>";
23 </center>