Esempio n. 1
0
 function XmobileMyalbumPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     if (!preg_match("/^\\w+\$/", $pluginName)) {
         trigger_error('Invalid pluginName');
         exit;
     }
     $this->moduleDir = $pluginName;
     $this->categoryTableName = $pluginName . '_cat';
     $this->itemTableName = $pluginName . '_photos';
 }
 function XmobileWeblinksPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     if (!preg_match('/^(\\D+)(\\d?)$/', $pluginName, $regs)) {
         trigger_error('Invalid pluginName ' . htmlspecialchars($pluginName));
     } else {
         $dirnumber = $regs[2] === '' ? '' : intval($regs[2]);
     }
     $this->moduleDir = $pluginName;
     $this->categoryTableName = 'weblinks' . $dirnumber . '_category';
     $this->itemTableName = 'weblinks' . $dirnumber . '_link';
 }
Esempio n. 3
0
 function XmobilePicalPluginHandler($db)
 {
     global $xoopsConfig;
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     if (!preg_match("/^\\w+\$/", $pluginName)) {
         trigger_error('Invalid pluginName');
         exit;
     }
     $this->moduleDir = $pluginName;
     $this->categoryTableName = $pluginName . '_cat';
     $this->itemTableName = $pluginName . '_event';
     $fileName = XOOPS_ROOT_PATH . '/modules/' . $this->moduleDir . '/language/' . $xoopsConfig['language'] . '/pical_constants.php';
     if (file_exists($fileName)) {
         include_once $fileName;
     }
 }
 function XmobileBulletinPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     $this->moduleDir = $pluginName;
     $this->categoryTableName = $pluginName . '_topics';
     $this->itemTableName = $pluginName . '_stories';
 }
 function XmobileLogcounterxPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
 function XmobileXoopsFaqPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 7
0
 function getItemDetail()
 {
     //		$xoopsUser =& $this->sessionHandler->getUser();
     $show_reserve = intval($this->utils->getGet('show_reserve', 0));
     $detail4html = '';
     if ($show_reserve == 0) {
         $detail4html .= parent::getItemDetail();
     }
     $this->checkReserveStatus($this->item_id);
     $detail4html .= $this->reserve['status_word'];
     switch ($this->reserve_status) {
         case 1:
             $detail4html .= $this->getReservationForm($this->item_id);
             break;
         case 2:
             $detail4html .= $this->getReserveList($this->item_id);
             break;
         case 3:
             $detail4html .= _MD_RESERV_CLOSE;
             break;
     }
     //		unset($xoopsUser);
     return $detail4html;
 }
Esempio n. 8
0
 function XmobileContactPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $this->ticket = new XoopsGTicket();
 }
 function getDefaultView()
 {
     parent::getListView();
 }
Esempio n. 10
0
 function XmobileXhnewbbPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 11
0
 function XmobileWordpressPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 12
0
 function getCatList()
 {
     $cat_list = parent::getCatList();
     if (!is_array($cat_list)) {
         return $cat_list;
     }
     $ret = array();
     foreach ($cat_list as $cat) {
         if (preg_match('/cat_id\\=([0-9]+)$/', $cat['url'], $regs) && in_array($regs[1], $this->cat_ids_can_read)) {
             $ret[] = $cat;
         }
     }
     return $ret;
 }
Esempio n. 13
0
 function XmobileDefaultPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 14
0
 function addItemCriteria()
 {
     parent::addItemCriteria();
     switch ($this->controller->getViewState()) {
         case 'default':
             if (!$this->show_list) {
                 $this->item_criteria->add(new Criteria('submenu', 1));
             } else {
                 $this->item_criteria->add(new Criteria('submenu', 1));
                 //					$this->item_criteria->add(new Criteria('homepage',1));
                 $this->item_criteria->add(new Criteria('homepage', 1), 'OR');
             }
             break;
         case 'detail':
             if ($this->moduleConfig['tc_display_pagenav'] == 2) {
                 $this->item_criteria->add(new Criteria('submenu', 1));
             }
             if (isset($_GET['id'])) {
                 $this->item_id = intval($_GET['id']);
                 //					$this->item_criteria->add(new Criteria('homepage',1),'OR');
             }
             $this->item_criteria->add(new Criteria('homepage', 1), 'OR');
             break;
     }
 }
Esempio n. 15
0
 function XmobileAnalyzerPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 16
0
 function XmobileWeblogPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     if (!preg_match("/^\\w+\$/", $pluginName)) {
         trigger_error('Invalid pluginName');
         exit;
     }
     $this->moduleDir = $pluginName;
     $this->categoryTableName = $pluginName . '_category';
     $this->itemTableName = $pluginName;
     $this->ticket = new XoopsGTicket();
 }
Esempio n. 17
0
 function XmobileNewbbPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     if (!preg_match('/^(\\D+)(\\d?)$/', $pluginName, $regs)) {
         trigger_error('Invalid pluginName ' . htmlspecialchars($pluginName));
     } else {
         $dirnumber = $regs[2] === '' ? '' : intval($regs[2]);
     }
     $this->moduleDir = $pluginName;
     $this->categoryTableName = 'bb' . $dirnumber . '_topics';
     $this->itemTableName = 'bb' . $dirnumber . '_posts';
     $this->categoryTable = $this->db->prefix('bb_categories');
     $this->forumTable = $this->db->prefix('bb_forums');
     $this->topicTable = $this->db->prefix('bb_topics');
     $this->postTable = $this->db->prefix('bb_posts');
 }