Просмотр файла katrinka.ru/admin/users_ignore.php

Размер файла: 1.11Kb
  1. <html>
  2. <head><title>Ignore list</title></head>
  3. <body>
  4. <center><h1>лФП Х ЛПЗП Ч ЙЗОПТЕ</h1>
  5. <table>
  6. <tr align="center" bgcolor="e0e0e0"><td><b>лФП</b></td><td><b>х ЛПЗП</b>
  7. <?php
  8. include '../wap/config.php';
  9. if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) {
  10. echo ("пЫЙВЛБ РПДЛМАЮЕОЙС Л вд!\n");
  11. };
  12. pg_query($conn, "SET CLIENT_ENCODING TO 'KOI8';");
  13. $res=pg_query($conn,"select users.login,users_ignore.who,users_ignore.uid from users,users_ignore where users.id=users_ignore.who order by users_ignore.who;");
  14. $rows=pg_numrows($res);
  15. $who=0;
  16. for ($i=0; $i<$rows; $i++) {
  17. if (pg_result($res,$i,1)!=$who) {
  18. print "</td></tr><tr align=\"center\" bgcolor=\"f0f0f0\"><td>\n";
  19. $who=pg_result($res,$i,1);
  20. print "<a href=\"user_edit.php?id=".pg_result($res,$i,1)."&amp;l=3\">".pg_result($res,$i,0)."</a></td><td>";
  21. }
  22. $id=pg_result($res,$i,2);
  23. $res_u=pg_query($conn,"select login from users where id='$id';");
  24. print "<a href=\"user_edit.php?id=".$id."&amp;l=3\">".pg_result($res_u,0,0)."</a> \n";
  25. }
  26. pg_close($conn);
  27. ?>
  28. </table>
  29. </center>
  30. </body>
  31. </html>