model.php 456 B

12345678910
  1. <?php
  2. defined('IN_PHPCMS') or exit('Access Denied');
  3. defined('UNINSTALL') or exit('Access Denied');
  4. $comment_table_db = pc_base::load_model('comment_table_model');
  5. $tablelist = $comment_table_db->select('', 'tableid');
  6. foreach($tablelist as $k=>$v) {
  7. $comment_table_db->query("DROP TABLE IF EXISTS `".$comment_table_db->db_tablepre."comment_data_".$v['tableid']."`;");
  8. }
  9. return array('comment', 'comment_check', 'comment_setting', 'comment_table');
  10. ?>