advertisement.php 498 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: advertisement.php 25246 2011-11-02 03:34:53Z zhangguosheng $
  7. */
  8. header('Expires: '.gmdate('D, d M Y H:i:s', time() + 60).' GMT');
  9. if(!defined('IN_API')) {
  10. exit('document.write(\'Access Denied\')');
  11. }
  12. loadcore();
  13. $adid = $_GET['adid'];
  14. $data = adshow($adid);
  15. echo 'document.write(\''.preg_replace("/\r\n|\n|\r/", '\n', addcslashes($data, "'\\")).'\');';
  16. ?>