Просмотр файла eforum25/admin.php

Размер файла: 5.6Kb
  1. <?php
  2.  
  3. include "config.php";
  4. include "incl/pss.inc";
  5. include "incl/head.inc";
  6.  
  7. if(!isset($go)){$go=0;}else{$go=(int)$go;}
  8. $go_forward=$go+$topics_per_page;
  9. if($go>$topics_per_page){$go_back=$go-$topics_per_page;}
  10. else{$go_back=0;}
  11.  
  12. ?><title>ADMIN: <?php $temp_var=$go+1;print "$lang[21] ($temp_var-$go_forward)";?></title>
  13. </head><body><?php include "incl/cust-top.inc";?>
  14. <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="q">
  15. <table width="100%" border="0" cellspacing="1" cellpadding="<?php print $cellpadding;?>">
  16. <tr class="c"><td colspan="6"><table width="100%" cellpadding="2" cellspacing="0"><tr><td nowrap="nowrap"><span class="c"><a href="admin.php" id="lnk" title="<?php print $lang[0];?>" style="color:#ffffff;text-decoration:none" onmouseover="start_impress();return true" onmouseout="stop_impress();return true" onclick="pp=Math.round(999999*Math.random());window.location='admin.php?f=<?php print $f;?>'+amp+'n='+pp;return false"><?php print $forum_name[$f];?></a></span></td><td align="right" nowrap="nowrap"><b style="color:white">ADMIN</b></td></tr></table></td></tr>
  17. <tr class="z"><td class="f" width="4"></td><td class="f" width="60%" nowrap="nowrap">&nbsp;<?php print $lang[21];?>&nbsp;</td><td class="f" width="10%" nowrap="nowrap">&nbsp;<?php print $lang[23];?>&nbsp;</td><td class="f" width="10%" nowrap="nowrap">&nbsp;<?php print $lang[24];?>&nbsp;</td><td class="f" width="4%" nowrap="nowrap">&nbsp;<?php print $lang[25];?>&nbsp;</td><td class="f" width="12%" nowrap="nowrap">&nbsp;<?php print $lang[33];?>&nbsp;</td></tr>
  18. <?php
  19.  
  20. $temp_var=0;
  21. $fs=open_file($log);
  22. $fs=explode("\n",$fs);
  23.  
  24. if(isset($delete)){
  25. $temp_var=1;
  26. file_allowed($delete);
  27. unlink("$data/$delete");
  28. for($i=0;$i<count($fs);$i++){
  29. $row=explode(":|:",$fs[$i]);
  30. if($row[0]==$delete){$fs[$i]='';break;}
  31. }}
  32.  
  33. elseif(count($fs)>$topics_max){
  34. $temp_var=1;
  35. for($i=$topics_max;$i<count($fs);$i++){
  36. $row=explode(":|:",$fs[$i]);
  37. $old="$data/$row[0]";
  38. if(is_file($old)){unlink($old);$fs[$i]='';}
  39. }}
  40.  
  41. if($temp_var==1){
  42. $fr=implode("\n",$fs);
  43. save_file($log,$fr,0);}
  44.  
  45. for($i=$go;$i<$go_forward;$i++){
  46. if(isset($fs[$i])&&strlen($fs[$i])>5){
  47. $row=explode(":|:",$fs[$i]);
  48.  
  49. $pic_number=explode(".gif",$row[4]);
  50. $pic_number=substr($pic_number[0],-1);
  51. if(!strstr($row[1],' ')){$row[1]=time_offset($row[1]);}
  52.  
  53. print "<tr class=\"$row_bg\"><td><img src=\"pics/t$pic_number.gif\" $size_img[2] alt=\"\" hspace=\"2\" vspace=\"2\" /></td>";
  54. print "<td><a href=\"adminsh.php?f=$f&amp;topic=$row[0]&amp;u=$row[5]\" class=\"v\"><b>$row[2]</b></a><div class=\"s\">$row[3]</div></td>";
  55. print "\n<td nowrap=\"nowrap\"><b>$row[4]</b></td>";
  56. print "<td class=\"s\" nowrap=\"nowrap\">$row[1]</td>";
  57. print "<td class=\"s\">$row[5]</td>";
  58. print "<td class=\"s\" nowrap=\"nowrap\"><a href=\"#\" onclick=\"window.open('move.php?f=$f'+amp+'topic=$row[0]','mov','height=250,width=250,resizable=1,scrollbars=1');return false\">$lang[76]</a> <a href=\"admin.php?f=$f&amp;go=$go&amp;delete=$row[0]\" onclick=\"return no_undo('$lang[35]')\">$lang[34]</a></td></tr>\n";
  59. switch_row_bg();}}
  60.  
  61. print "<tr class=\"$row_bg\"><td colspan=\"3\" class=\"r\"><img src=\"pics/rpr.gif\" width=\"15\" height=\"9\" alt=\"$lang[55]\" title=\"$lang[55]\" onclick=\"qw=confirm('$lang[54]');if(qw){window.open('repair.php?f=$f')}\" /></td>";
  62. print "<td class=\"r\" align=\"center\">";
  63. print "<a href=\"admin.php?f=$f&amp;go=$go_back\" title=\"&lt;&lt;\"><img src=\"pics/la.png\" width=\"10\" height=\"9\" hspace=\"0\" vspace=\"0\" border=\"0\" alt=\"&lt;&lt;\" onmouseover=\"this.src='pics/lb.png'\" onmouseout=\"this.src='pics/la.png'\" /></a>";
  64.  
  65. for($i=0;$i<5;$i++){
  66. if(is_integer($i/2)){$hspace=1;}else{$hspace=0;}
  67. if($go!=($i*$topics_per_page)){set_navbar($i+1,0);
  68.  
  69. print "<a href=\"admin.php?f=$f&amp;go=$nav2temp\" title=\"$lang[21]: $nav3temp-$nav1temp\"><img src=\"pics/of.png\" width=\"10\" height=\"9\" hspace=\"$hspace\" vspace=\"0\" border=\"0\" alt=\"$lang[21]: $nav3temp-$nav1temp\" onmouseover=\"this.src='pics/ou.png'\" onmouseout=\"this.src='pics/of.png'\" /></a>";}
  70. else{print "<img src=\"pics/on.png\" width=\"10\" height=\"9\" hspace=\"$hspace\" vspace=\"0\" alt=\"\" />";}}
  71.  
  72. print "<a href=\"admin.php?f=$f&amp;go=$go_forward\" title=\"&gt;&gt;\"><img src=\"pics/ra.png\" width=\"10\" height=\"9\" hspace=\"0\" vspace=\"0\" border=\"0\" alt=\"&gt;&gt;\" onmouseover=\"this.src='pics/rb.png'\" onmouseout=\"this.src='pics/ra.png'\" /></a>";
  73. ?></td>
  74. <td class="r" align="center" colspan="2">
  75. <a href="#" onclick="yu=window.open('backup.php?f=<?php print $f;?>','bjp','height=120,width=250,resizable=1,scrollbars=1');yu.focus();return false" title="<?php print $lang[51];?>"><img src="pics/backup.gif" border="0" hspace="2" vspace="2" width="13" height="14" alt="<?php print $lang[51];?>" /></a>
  76. <a href="#" onclick="zz=window.open('adminus.php','dlu','width=600,height=620,resizable=1,scrollbars=1,status=1');zz.focus();return false" title="<?php print $lang[63];?>"><img src="pics/log.gif" width="24" border="0" hspace="2" vspace="2" height="14" alt="<?php print $lang[63];?>" /></a>
  77. <a href="#" onclick="pp=Math.round(99999*Math.random());ban(<?php print $f;?>,pp);return false" title="<?php print $lang[47];?>"><img src="pics/banned.gif" border="0" hspace="2" vspace="2" width="17" height="14" alt="<?php print $lang[47];?>" /></a>
  78. </td></tr></table></td></tr></table><table border="0" width="100%" cellpadding="0" cellspacing="0">
  79. <tr><td class="f"><?php $end_time=time_to_run();$total_time=substr(($end_time-$start_time),0,5);print "$total_time $lang[31]";?></td>
  80. <td><?php include "incl/rate.inc";?>
  81. </td></tr></table><?php include "incl/cust-bot.inc";?>
  82. </body></html>