Esempio n. 1
0
 function XmobilePicoPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $mydirname = basename(__FILE__, '.php');
     if (!preg_match('/^[a-zA-Z0-9_-]+$/', $mydirname)) {
         trigger_error('invalid plugin name', E_USER_ERROR);
     }
     // module parameters
     $this->mydirname = $mydirname;
     $this->moduleDir = $mydirname;
     $this->categoryTableName = $mydirname . '_categories';
     $this->itemTableName = $mydirname . '_contents';
     // category parameters
     $this->category_id_fld = 'cat_id';
     $this->category_pid_fld = 'pid';
     $this->category_title_fld = 'cat_title';
     $this->category_order_fld = 'cat_weight';
     $this->category_criteria = null;
     // item parameters
     $this->item_id_fld = 'content_id';
     $this->item_cid_fld = 'cat_id';
     $this->item_title_fld = 'subject';
     $this->item_description_fld = 'body';
     $this->item_order_fld = 'weight';
     $this->item_date_fld = 'created_time';
     $this->item_uid_fld = 'poster_uid';
     $this->item_hits_fld = 'viewed';
     $this->item_comments_fld = 'comments_count';
     $this->item_extra_fld = array();
     $this->item_order_sort = 'ASC';
     $this->item_criteria = null;
 }
Esempio n. 2
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. 4
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;
     }
 }
Esempio n. 5
0
 function XmobileTinydPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $pluginName = strtolower(basename(__FILE__, '.php'));
     if (!preg_match("/^\\w+\$/", $pluginName)) {
         trigger_error('Invalid pluginName');
         exit;
     }
     $this->moduleDir = $pluginName;
     if (preg_match("/^\\w+(\\d)\$/", $pluginName, $matches)) {
         $number = $matches[1];
         $this->itemTableName = $this->itemTableName . $number;
     }
     $this->modulePath = XOOPS_ROOT_PATH . '/modules/' . $this->moduleDir;
     $this->moduleUrl = XOOPS_URL . '/modules/' . $this->moduleDir;
     include $this->modulePath . '/include/constants.inc.php';
     include $this->modulePath . '/class/tinyd.textsanitizer.php';
     if (!defined('MB_RENDER_FUNCTIONS_INCLUDED')) {
         define('MB_RENDER_FUNCTIONS_INCLUDED', 1);
     }
 }
Esempio n. 6
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();
 }
 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. 10
0
 function XmobileEguidePluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     $this->ticket = new XoopsGTicket();
 }
Esempio n. 11
0
 function XmobileAnalyzerPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 12
0
 function XmobileXoopsPollPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
     //		include_once XOOPS_ROOT_PATH.'/modules/xmobile/class/gtickets.php';
     $this->ticket = new XoopsGTicket();
 }
Esempio n. 13
0
 function XmobileXhnewbbPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 14
0
 function XmobileWordpressPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 15
0
 function XmobileDefaultPluginHandler($db)
 {
     XmobilePluginHandler::XmobilePluginHandler($db);
 }
Esempio n. 16
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');
 }