posthistory.php 917 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. define('IN_SMT', true);
  3. define('IN_MYMPS', true);
  4. define('CURSCRIPT', 'posthistory');
  5. require_once dirname(__FILE__) . '/include/global.php';
  6. require_once dirname(__FILE__) . '/data/config.php';
  7. require_once MYMPS_DATA . '/config.db.php';
  8. require_once MYMPS_INC . '/db.class.php';
  9. if (!is_file(MYMPS_DATA . '/install.lock')) {
  10. write_msg('', 'install/index.php');
  11. }
  12. if (!$tel) {
  13. write_msg('您要查找的电话不能为空!', 'olmsg');
  14. }
  15. $tel_decode = addslashes(base64_decode($tel));
  16. $info = mymps_get_infos(15, NULL, NULL, NULL, NULL, NULL, NULL, $tel_decode);
  17. $numtotal = $db->getOne('SELECT COUNT(id) FROM `' . $db_mymps . 'information` WHERE tel = \'' . $tel_decode . '\'');
  18. $numtotal = $numtotal < 16 ? $numtotal : 15;
  19. $loc = get_location('posthistory', '', '查看发贴记录');
  20. $page_title = $loc['page_title'];
  21. globalassign();
  22. include mymps_tpl(CURSCRIPT);
  23. is_object($db) && $db->Close();
  24. ?>