Пример #1
0
 public function __construct()
 {
     parent::__construct();
     # CONFIGURE TABLE WITH PREFIX
     //$db_config = Config::get_database();
     //$prefix = $db_config['prefix'] == '' ? '' : $db_config['prefix'];
     $this->table = 'photonews_detail';
     //$prefix . "_photonews_detail";
     $this->news_table = "news";
     //"news_" . date('Y'); //$prefix . "_news_" . date('Y');
     $this->news_rubric = 'news_rubrics';
     //$prefix ."_news_rubrics";
     $this->taq_news = 'tag_news';
     //$prefix ."_tag_news";
     $this->keyword = 'news_keywords';
     //$prefix ."_news_keywords";
     $this->user_table = 'users';
     //$prefix ."_users";
     $this->photo_table = 'photo';
     //$prefix ."_photo";
     $this->photonews_detail = 'photonews_detail';
     //$prefix ."_photonews_detail";
     # END CONFIGURE
     mysql_query("SET time_zone='+07:00';");
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     # CONFIGURE TABLE WITH PREFIX
     //$db_config = Config::get_database();
     //$prefix = $db_config['prefix'] == '' ? '' : $db_config['prefix'];
     $this->table = 'photo';
     //$prefix . "_photo";
     # END CONFIGURE
     mysql_query("SET time_zone='+07:00';");
 }
Пример #3
0
 function __construct()
 {
     parent::__construct();
 }