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

Размер файла: 709B
  1. <?php
  2. include '../wap/config.php';
  3. if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) {
  4. echo ("пЫЙВЛБ РПДЛМАЮЕОЙС Л вд!\n");
  5. };
  6. pg_query($conn,"delete from wapgbk where uid='$id';");
  7. pg_query($conn,"delete from chat where fr_u='$id' or to_u='$id';");
  8. pg_query($conn,"delete from downloads where uid='$id';");
  9. pg_query($conn,"delete from users_ignore where uid='$id' or who='$id';");
  10. pg_query($conn,"delete from users where id='$id';");
  11. pg_query($conn,"update site_var set v_num=(select v_num from site_var where id=2)-1 where id=2;");
  12. pg_close($conn);
  13. $link=sprintf("Location: users.php?p=%d", $p);
  14. header($link);
  15. ?>