index.php 474 B

123456789101112131415161718192021
  1. <?php
  2. require("../../class/connect.php");
  3. $lid=(int)$_GET['lid'];
  4. if($lid)
  5. {
  6. include("../../class/db_sql.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. $r=$empire->fetch1("select lurl from {$dbtbpre}enewslink where lid='$lid'");
  11. if(empty($r[lurl]))
  12. {
  13. printerror("ErrorUrl","",1);
  14. }
  15. $sql=$empire->query("update {$dbtbpre}enewslink set onclick=onclick+1 where lid='$lid'");
  16. $url=$r[lurl];
  17. db_close();
  18. $empire=null;
  19. Header("Location:$url");
  20. }
  21. ?>