From: <be...@us...> - 2011-12-26 21:05:59
|
Revision: 8566 http://xoops.svn.sourceforge.net/xoops/?rev=8566&view=rev Author: beckmi Date: 2011-12-26 21:05:51 +0000 (Mon, 26 Dec 2011) Log Message: ----------- Final adjustments Modified Paths: -------------- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/about.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_footer.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_header.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/index.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/menu.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/xoopspoll.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspoll.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolllog.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolloption.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/changelog.txt XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/lang_diff.txt XoopsModules/xoopspoll/branches/mamba/xoopspoll/index.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/admin.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/modinfo.php XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/french_utf8/help/help.html XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/nederlands/help/help.html XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/spanish/help/help.html XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/swedish/help/help.html XoopsModules/xoopspoll/branches/mamba/xoopspoll/xoops_version.php Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/about.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/about.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/about.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -17,16 +17,13 @@ * @version $Id $ **/ -include '../../../include/cp_header.php'; -include '../../../class/xoopsformloader.php'; -include 'admin_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); -$module_info =& $module_handler->get($xoopsModule->getVar("mid")); - $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_footer.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_footer.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_footer.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -11,14 +11,16 @@ * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package XoopsPoll + * @package xoopspoll * @since 2.5.0 - * @author Mamba (www.xoops.org) + * @author XOOPS Module Team * @version $Id $ **/ -global $pathImageAdmin; - -echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src=" . $pathImageAdmin.'/xoopsmicrobutton.gif'.' '." alt='XOOPS' title='XOOPS'></a></div>"; -echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"; +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_XOOPSPOLL_ADMIN_FOOTER . "\n" + ."</div>"; xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_header.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_header.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/admin_header.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -1,6 +1,6 @@ <?php /** - * XoopsPartners module + * XoopsPoll module * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code @@ -9,52 +9,34 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license:: http://www.fsf.org/copyleft/gpl.html GNU public license - * @package:: XoopsPartners - * @subpackage:: admin - * @since:: 2.5.0 - * @author:: XOOPS Team - * @version:: $Id $ -**/ + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xoopspoll + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ + **/ -require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; -require_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; -require '../../../include/cp_header.php'; +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; -if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); - //return true; - }else{ - echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); - //return false; - } +global $xoopsModule; -$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); -$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); -$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); -$myts =& MyTextSanitizer::getInstance(); +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); -if ($xoopsUser) { - $moduleperm_handler =& xoops_gethandler('groupperm'); - if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { - redirect_header(XOOPS_URL, 1, _NOPERM); - exit(); - } -} else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - exit(); -} +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); -if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { - include_once(XOOPS_ROOT_PATH."/class/template.php"); - $xoopsTpl = new XoopsTpl(); -} - -//xoops_cp_header(); - -//Load languages -xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); -xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); -xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); \ No newline at end of file +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/index.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/index.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/index.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -24,17 +24,9 @@ // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // -include '../../../include/cp_header.php'; -include XOOPS_ROOT_PATH."/modules/xoopspoll/include/constants.php"; -include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; -include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; -include_once XOOPS_ROOT_PATH."/class/xoopsblock.php"; -include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspoll.php"; -include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspolloption.php"; -include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspolllog.php"; -include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php"; -include 'admin_header.php'; +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/menu.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/menu.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/menu.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -25,32 +25,35 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // -$module_handler =& xoops_gethandler('module'); -$xoopsModule =& XoopsModule::getByDirname('xoopspoll'); -$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); -$pathImageAdmin = $moduleInfo->getInfo('icons32'); +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +//xoops_loadLanguage('admin', $dirname); + $adminmenu = array(); $i = 1; $adminmenu[$i]["title"] = _AM_POLLS_HOME; $adminmenu[$i]["link"] = "admin/index.php"; //$adminmenu[$i]["desc"] = _POLLS_ADMIN_HOME_DESC; -$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/home.png'; +$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; $i++; $adminmenu[$i]["title"] = _AM_POLLS_ADMENU1; $adminmenu[$i]["link"] = "admin/xoopspoll.php"; //$adminmenu[$i]["desc"] = _POLLS_ADMIN_MENU1_DESC; -$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/poll.png'; +$adminmenu[$i]["icon"] = $pathIcon32.'/poll.png'; $i++; $adminmenu[$i]['title'] = _AM_POLLS_ADMENU2; $adminmenu[$i]['link'] = "admin/xoopspoll.php?op=add"; //$adminmenu[$i]["desc"] = _POLLS_ADMIN_MENU2_DESC; -$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/add.png'; +$adminmenu[$i]["icon"] = $pathIcon32.'/add.png'; $i++; $adminmenu[$i]["title"] = _AM_POLLS_ADMIN_ABOUT; $adminmenu[$i]["link"] = "admin/about.php"; //$adminmenu[$i]["desc"] = _POLLS_ADMIN_ABOUT_DESC; -$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/about.png'; +$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; ?> \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/xoopspoll.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/xoopspoll.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/admin/xoopspoll.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -35,8 +35,19 @@ include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php"; include_once 'admin_header.php'; + +function gethostbyaddr_with_cache($a) { + global $dns_cache; + if (isset ($dns_cache[$a])) { + return $dns_cache[$a]; + } else { + $temp = gethostbyaddr($a); + $dns_cache[$a] = $temp; + return $temp; + } +} + $moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); -$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); $op = "list"; @@ -93,12 +104,12 @@ <td class='$class' align='center'> <a href='xoopspoll.php?op=edit&poll_id=".$polls_arr[$i]->getVar("poll_id") - ."'><img src=". $pathImageIcon .'/edit.png'.' '. "alt='"._AM_EDITPOLL."' title='"._AM_EDITPOLL."'></a> + ."'><img src=". $pathIcon16 .'/edit.png'.' '. "alt='"._AM_EDITPOLL."' title='"._AM_EDITPOLL."'></a> <a href='xoopspoll.php?op=delete&poll_id=".$polls_arr[$i]->getVar("poll_id") - ."'><img src=". $pathImageIcon .'/delete.png'.' '."alt='"._DELETE."' title='"._DELETE."'></a> + ."'><img src=". $pathIcon16 .'/delete.png'.' '."alt='"._DELETE."' title='"._DELETE."'></a> <a href='xoopspoll.php?op=log&poll_id=".$polls_arr[$i]->getVar("poll_id") - ."'><img src=". $pathImageIcon .'/search.png'.' '." alt='"._AM_VIEWLOG."' title='"._AM_VIEWLOG."'></a></td> + ."'><img src=". $pathIcon16 .'/search.png'.' '." alt='"._AM_VIEWLOG."' title='"._AM_VIEWLOG."'></a></td> </tr>"; $class = ($class == 'odd') ? 'even' : 'odd'; @@ -532,8 +543,8 @@ $logs_arr =& XoopsPollLog::getAllByPollId($poll_id, $orderby." ".$orderdir); $logs_count = count($logs_arr); - $arrow_up = $pathImageIcon .'/up.gif'; - $arrow_down = $pathImageIcon .'/down.gif'; + $arrow_up = $pathIcon16 .'/up.gif'; + $arrow_down = $pathIcon16 .'/down.gif'; $sorthref = "xoopspoll.php?op=log&poll_id=".$poll_id."&orderby="; $class = 'even'; if ( is_array($logs_arr) && $logs_count > 0) { Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspoll.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspoll.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspoll.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -28,7 +28,7 @@ // URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // -include_once XOOPS_ROOT_PATH."/class/xoopsobject.php"; +include_once XOOPS_ROOT_PATH."/kernel/object.php"; class XoopsPoll extends XoopsObject { @@ -37,7 +37,7 @@ //constructor function XoopsPoll($id=null) { - $this->db =& Database::getInstance(); + $this->db =& XoopsDatabaseFactory::getDatabaseConnection(); $this->initVar("poll_id", XOBJ_DTYPE_INT, null, false); $this->initVar("question", XOBJ_DTYPE_TXTBOX, null, true, 255); $this->initVar("description", XOBJ_DTYPE_TXTBOX, null, false, 255); @@ -132,7 +132,7 @@ // private, static function &getAll($criteria=array(), $asobject=true, $orderby="end_time DESC", $limit=0, $start=0) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $ret = array(); $where_query = ""; if ( is_array($criteria) && count($criteria) > 0 ) { @@ -211,7 +211,7 @@ function getcomments($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $module_handler =& xoops_gethandler('module'); $pollmod = $module_handler->getByDirname('xoopspoll'); $sql= "SELECT count(com_id) FROM ".$db->prefix('xoopscomments')." WHERE com_modid = '".$pollmod->getVar('mid')."' AND com_itemid = '".$poll_id."'"; Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolllog.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolllog.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolllog.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -28,7 +28,7 @@ // URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // -include_once XOOPS_ROOT_PATH."/class/xoopsobject.php"; +include_once XOOPS_ROOT_PATH."/kernel/object.php"; class XoopsPollLog extends XoopsObject { @@ -37,7 +37,7 @@ // constructor function XoopsPollLog($id=null) { - $this->db =& Database::getInstance(); + $this->db =& XoopsDatabaseFactory::getDatabaseConnection(); $this->initVar("log_id", XOBJ_DTYPE_INT, 0); $this->initVar("poll_id", XOBJ_DTYPE_INT, null, true); $this->initVar("option_id", XOBJ_DTYPE_INT, null, true); @@ -93,7 +93,7 @@ // public static function &getAllByPollId($poll_id, $orderby="time ASC") { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $ret = array(); $sql = "SELECT * FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id=".intval($poll_id)." ORDER BY $orderby"; $result = $db->query($sql); @@ -135,7 +135,7 @@ // Only remaining option is only limit by ip, then only check for ip $filter .= ' AND ip ="'.$ip.'"'; } - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = "SELECT COUNT(*) FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id=".intval($poll_id).$filter; list($count) = $db->fetchRow($db->query($sql)); if ( $count > 0 ) { @@ -150,7 +150,7 @@ // public static function deleteByPollId($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = sprintf("DELETE FROM %s WHERE poll_id = %u", $db->prefix("xoopspoll_log"), intval($poll_id)); if ( !$db->query($sql) ) { return false; @@ -161,7 +161,7 @@ // public static function deleteByOptionId($option_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = sprintf("DELETE FROM %s WHERE option_id = %u", $db->prefix("xoopspoll_log"), intval($option_id)); if ( !$db->query($sql) ) { return false; @@ -172,7 +172,7 @@ // public static function getTotalVotersByPollId($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = "SELECT DISTINCT user_id FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id=".intval($poll_id)." AND user_id > 0"; $users = $db->getRowsNum($db->query($sql)); $sql = "SELECT DISTINCT ip FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id=".intval($poll_id)." AND user_id=0"; @@ -183,7 +183,7 @@ // public static function getTotalVotesByPollId($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = "SELECT COUNT(*) FROM ".$db->prefix("xoopspoll_log")." WHERE poll_id = ".intval($poll_id); list($votes) = $db->fetchRow($db->query($sql)); return $votes; @@ -192,7 +192,7 @@ // public static function getTotalVotesByOptionId($option_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = "SELECT COUNT(*) FROM ".$db->prefix("xoopspoll_log")." WHERE option_id = ".intval($option_id); list($votes) = $db->fetchRow($db->query($sql)); return $votes; Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolloption.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolloption.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/class/xoopspolloption.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -28,7 +28,7 @@ // URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // -include_once XOOPS_ROOT_PATH."/class/xoopsobject.php"; +include_once XOOPS_ROOT_PATH."/kernel/object.php"; class XoopsPollOption extends XoopsObject { @@ -37,7 +37,7 @@ // constructor function XoopsPollOption($id=null) { - $this->db =& Database::getInstance(); + $this->db =& XoopsDatabaseFactory::getDatabaseConnection(); $this->initVar("option_id", XOBJ_DTYPE_INT, null, false); $this->initVar("poll_id", XOBJ_DTYPE_INT, null, false); $this->initVar("option_text", XOBJ_DTYPE_TXTBOX, null, true, 255); @@ -107,7 +107,7 @@ // public static function &getAllByPollId($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $ret = array(); $sql = "SELECT * FROM ".$db->prefix("xoopspoll_option")." WHERE poll_id=".intval($poll_id)." ORDER BY option_id"; $result = $db->query($sql); @@ -121,7 +121,7 @@ // public static function deleteByPollId($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = sprintf("DELETE FROM %s WHERE poll_id = %u", $db->prefix("xoopspoll_option"), intval($poll_id)); if ( !$db->query($sql) ) { return false; @@ -132,7 +132,7 @@ // public static function resetCountByPollId($poll_id) { - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = "UPDATE ".$db->prefix("xoopspoll_option")." SET option_count=0 WHERE poll_id=".intval($poll_id); if ( !$db->query($sql) ) { return false; Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/changelog.txt =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/changelog.txt 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/changelog.txt 2011-12-26 21:05:51 UTC (rev 8566) @@ -1,4 +1,4 @@ -v1.33 (Mamba) 2011/06/08 +v1.33 (Mamba) 2011/12/12 ================================= - removed all icons files and point them to /Frameworks/moduleclasses - updated to the latest ModuleAdmin Class Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/lang_diff.txt =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/lang_diff.txt 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/docs/lang_diff.txt 2011-12-26 21:05:51 UTC (rev 8566) @@ -27,11 +27,6 @@ // text in admin footer define("_AM_XOOPSPOLL_ADMIN_FOOTER", "<div class='right smallsmall italic pad5'><b>" . $xoopsModule->getVar("name") . "</b> is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); -// Configuration -define("_AM_XOOPSPOLL_CONFIG_CHECK","Configuration Check"); -define("_AM_XOOPSPOLL_CONFIG_PHP","Minimum PHP required: %s (your version is %s)"); -define("_AM_XOOPSPOLL_CONFIG_XOOPS","Minimum XOOPS required: %s (your version is %s)"); - //xoopspoll.php define("_AM_ACTIONS","Actions"); Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/index.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/index.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/index.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -38,8 +38,9 @@ } elseif (!empty($_GET['poll_id'])) { $poll_id = intval($_GET['poll_id']); } +if (isset($_POST['url'])) { $url = $_POST['url']; - +} if ( empty($poll_id) ) { $xoopsOption['template_main'] = 'xoopspoll_index.html'; include XOOPS_ROOT_PATH."/header.php"; Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/admin.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/admin.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/admin.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -57,7 +57,8 @@ define("_AM_XOOPSPOLL_ADMIN_ABOUT", "About"); // text in admin footer -define("_AM_XOOPSPOLL_ADMIN_FOOTER", "<div class='right smallsmall italic pad5'><b>" . $xoopsModule->getVar("name") . "</b> is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); +define("_AM_XOOPSPOLL_ADMIN_FOOTER", "<div class='center smallsmall italic pad5'>XOOPS Poll is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); +//define("_AM_XOOPSPOLL_ADMIN_FOOTER", "<div class='center smallsmall italic pad5'><b>" . $xoopsModule->getVar("name") . "</b> is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); // Configuration define("_AM_XOOPSPOLL_CONFIG_CHECK","Configuration Check"); Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/modinfo.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/modinfo.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/english/modinfo.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -3,7 +3,7 @@ // Module Info // The name of this module -define("_MI_POLLS_NAME","XOOPS Polls"); +define("_MI_POLLS_NAME","XOOPS Poll"); // A brief description of this module define("_MI_POLLS_DESC","Shows a poll/survey block"); @@ -28,5 +28,7 @@ define("_AM_POLLS_ADMIN_ABOUT", "About"); define("_AM_XOOPSPOLLS_ADMIN_HELP", "Help"); - -?> \ No newline at end of file +//1.33 +// lookup host +define("_MI_POLLS_LOOKUPHOST","Show hostname instead of IP address"); +define("_MI_POLLS_LOOKUPHOSTDESC","List host names instead of IP addresses in viewing poll log. Since nslookup is used, It might take longer to show names."); \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/french_utf8/help/help.html =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/french_utf8/help/help.html 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/french_utf8/help/help.html 2011-12-26 21:05:51 UTC (rev 8566) @@ -1,32 +1,49 @@ <div id="help-template" class="outer"> <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/xoopspoll/admin/index.php" - title="Back to the administration of XOOPS Poll"> XOOPS Poll <img src="<{xoAdminIcons home.png}>" - alt="Back to the Administration of XOOPS Poll"/> + title="Back to the administration of XOOPS Poll"> XOOPS Poll + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of XOOPS Poll"/> </a></h1> - <!-- -----Help Content ---------- --> - <h4 class="odd">Description</h4> + <h4 class="odd">Description</h4><br/> - <p class="even"> - The Polls module can be used to display interactive survey forms on your site. Each poll can display a question on which visitors can ‘vote’. This can be a valuable way to collect feedback from your community. Polls can be configured to allow single or multiple choices and visitors can view the ‘results’ to date.<br /><br /> - <h4 class="odd">Install/uninstall</h4> -No special measures necessary, follow the standard installation process – extract the xoopspolls folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. <br /><br /> -Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> </p> + The Polls module can be used to display interactive survey forms on your + site. Each poll can display a question on which visitors can ‘vote’. This + can be a valuable way to collect feedback from your community. Polls can be + configured to allow single or multiple choices and visitors can view the + ‘results’ to date.<br/><br/> - <h4 class="odd">Operating instructions</h4> - <p class="even"> + <h4 class="odd">Install/uninstall</h4><br/> -The Polls module is very simple to configure and use. Basically you need to:<br /><br /> -i) Create one or more polls for people to vote on (Polls administration -> Add poll)<br /><br /> -ii) Display the Polls block somewhere on your website (not strictly necessary – people can also access them through the ‘Polls’ link in the main menu – but displaying the polls block in a prominent location will encourage people to vote)<br /><br /> -iii) Ensure that relevant user groups have access rights to a) the Polls module and b) the Polls block so that they can see it and vote. Detailed instructions on configuring the access rights for user groups are available in the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br /><br /> -iv) Most management functions for existing polls are found in Polls administration -> List polls.</p> -<h4 class="odd">Tutorial</h4> - <p class="even"> - You can find a more detailed Tutorial <a href="http://goo.gl/bxYAI">here</a> + No special measures necessary, follow the standard installation process – + extract the xoopspolls folder into the ../modules directory. Install the + module through Admin -> System Module -> Modules. <br/><br/> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> <br/><br/> - <!-- -----Help Content ---------- --> + <h4 class="odd">Operating instructions</h4><br/> + The Polls module is very simple to configure and use. Basically you need + to:<br/><br/> + i) Create one or more polls for people to vote on (Polls administration + -> Add poll)<br/><br/> + ii) Display the Polls block somewhere on your website (not strictly + necessary – people can also access them through the ‘Polls’ link in the + main menu – but displaying the polls block in a prominent location will + encourage people to vote)<br/><br/> + iii) Ensure that relevant user groups have access rights to a) the Polls + module and b) the Polls block so that they can see it and vote. Detailed + instructions on configuring the access rights for user groups are + available in the <a href="http://goo.gl/adT2i">XOOPS Operations + Manual</a><br/><br/> + iv) Most management functions for existing polls are found in Polls + administration -> List polls.<br/><br/> + + <h4 class="odd">Tutorial</h4><br/> + + You can find a more detailed Tutorial + <a href="http://goo.gl/bxYAI">here</a><br/> + </div> \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/nederlands/help/help.html =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/nederlands/help/help.html 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/nederlands/help/help.html 2011-12-26 21:05:51 UTC (rev 8566) @@ -1,32 +1,49 @@ <div id="help-template" class="outer"> <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/xoopspoll/admin/index.php" - title="Back to the administration of XOOPS Poll"> XOOPS Poll <img src="<{xoAdminIcons home.png}>" - alt="Back to the Administration of XOOPS Poll"/> + title="Back to the administration of XOOPS Poll"> XOOPS Poll + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of XOOPS Poll"/> </a></h1> - <!-- -----Help Content ---------- --> - <h4 class="odd">Description</h4> + <h4 class="odd">Description</h4><br/> - <p class="even"> - The Polls module can be used to display interactive survey forms on your site. Each poll can display a question on which visitors can ‘vote’. This can be a valuable way to collect feedback from your community. Polls can be configured to allow single or multiple choices and visitors can view the ‘results’ to date.<br /><br /> - <h4 class="odd">Install/uninstall</h4> -No special measures necessary, follow the standard installation process – extract the xoopspolls folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. <br /><br /> -Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> </p> + The Polls module can be used to display interactive survey forms on your + site. Each poll can display a question on which visitors can ‘vote’. This + can be a valuable way to collect feedback from your community. Polls can be + configured to allow single or multiple choices and visitors can view the + ‘results’ to date.<br/><br/> - <h4 class="odd">Operating instructions</h4> - <p class="even"> + <h4 class="odd">Install/uninstall</h4><br/> -The Polls module is very simple to configure and use. Basically you need to:<br /><br /> -i) Create one or more polls for people to vote on (Polls administration -> Add poll)<br /><br /> -ii) Display the Polls block somewhere on your website (not strictly necessary – people can also access them through the ‘Polls’ link in the main menu – but displaying the polls block in a prominent location will encourage people to vote)<br /><br /> -iii) Ensure that relevant user groups have access rights to a) the Polls module and b) the Polls block so that they can see it and vote. Detailed instructions on configuring the access rights for user groups are available in the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br /><br /> -iv) Most management functions for existing polls are found in Polls administration -> List polls.</p> -<h4 class="odd">Tutorial</h4> - <p class="even"> - You can find a more detailed Tutorial <a href="http://goo.gl/bxYAI">here</a> + No special measures necessary, follow the standard installation process – + extract the xoopspolls folder into the ../modules directory. Install the + module through Admin -> System Module -> Modules. <br/><br/> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> <br/><br/> - <!-- -----Help Content ---------- --> + <h4 class="odd">Operating instructions</h4><br/> + The Polls module is very simple to configure and use. Basically you need + to:<br/><br/> + i) Create one or more polls for people to vote on (Polls administration + -> Add poll)<br/><br/> + ii) Display the Polls block somewhere on your website (not strictly + necessary – people can also access them through the ‘Polls’ link in the + main menu – but displaying the polls block in a prominent location will + encourage people to vote)<br/><br/> + iii) Ensure that relevant user groups have access rights to a) the Polls + module and b) the Polls block so that they can see it and vote. Detailed + instructions on configuring the access rights for user groups are + available in the <a href="http://goo.gl/adT2i">XOOPS Operations + Manual</a><br/><br/> + iv) Most management functions for existing polls are found in Polls + administration -> List polls.<br/><br/> + + <h4 class="odd">Tutorial</h4><br/> + + You can find a more detailed Tutorial + <a href="http://goo.gl/bxYAI">here</a><br/> + </div> \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/spanish/help/help.html =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/spanish/help/help.html 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/spanish/help/help.html 2011-12-26 21:05:51 UTC (rev 8566) @@ -1,32 +1,49 @@ <div id="help-template" class="outer"> <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/xoopspoll/admin/index.php" - title="Back to the administration of XOOPS Poll"> XOOPS Poll <img src="<{xoAdminIcons home.png}>" - alt="Back to the Administration of XOOPS Poll"/> + title="Back to the administration of XOOPS Poll"> XOOPS Poll + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of XOOPS Poll"/> </a></h1> - <!-- -----Help Content ---------- --> - <h4 class="odd">Description</h4> + <h4 class="odd">Description</h4><br/> - <p class="even"> - The Polls module can be used to display interactive survey forms on your site. Each poll can display a question on which visitors can ‘vote’. This can be a valuable way to collect feedback from your community. Polls can be configured to allow single or multiple choices and visitors can view the ‘results’ to date.<br /><br /> - <h4 class="odd">Install/uninstall</h4> -No special measures necessary, follow the standard installation process – extract the xoopspolls folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. <br /><br /> -Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> </p> + The Polls module can be used to display interactive survey forms on your + site. Each poll can display a question on which visitors can ‘vote’. This + can be a valuable way to collect feedback from your community. Polls can be + configured to allow single or multiple choices and visitors can view the + ‘results’ to date.<br/><br/> - <h4 class="odd">Operating instructions</h4> - <p class="even"> + <h4 class="odd">Install/uninstall</h4><br/> -The Polls module is very simple to configure and use. Basically you need to:<br /><br /> -i) Create one or more polls for people to vote on (Polls administration -> Add poll)<br /><br /> -ii) Display the Polls block somewhere on your website (not strictly necessary – people can also access them through the ‘Polls’ link in the main menu – but displaying the polls block in a prominent location will encourage people to vote)<br /><br /> -iii) Ensure that relevant user groups have access rights to a) the Polls module and b) the Polls block so that they can see it and vote. Detailed instructions on configuring the access rights for user groups are available in the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br /><br /> -iv) Most management functions for existing polls are found in Polls administration -> List polls.</p> -<h4 class="odd">Tutorial</h4> - <p class="even"> - You can find a more detailed Tutorial <a href="http://goo.gl/bxYAI">here</a> + No special measures necessary, follow the standard installation process – + extract the xoopspolls folder into the ../modules directory. Install the + module through Admin -> System Module -> Modules. <br/><br/> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> <br/><br/> - <!-- -----Help Content ---------- --> + <h4 class="odd">Operating instructions</h4><br/> + The Polls module is very simple to configure and use. Basically you need + to:<br/><br/> + i) Create one or more polls for people to vote on (Polls administration + -> Add poll)<br/><br/> + ii) Display the Polls block somewhere on your website (not strictly + necessary – people can also access them through the ‘Polls’ link in the + main menu – but displaying the polls block in a prominent location will + encourage people to vote)<br/><br/> + iii) Ensure that relevant user groups have access rights to a) the Polls + module and b) the Polls block so that they can see it and vote. Detailed + instructions on configuring the access rights for user groups are + available in the <a href="http://goo.gl/adT2i">XOOPS Operations + Manual</a><br/><br/> + iv) Most management functions for existing polls are found in Polls + administration -> List polls.<br/><br/> + + <h4 class="odd">Tutorial</h4><br/> + + You can find a more detailed Tutorial + <a href="http://goo.gl/bxYAI">here</a><br/> + </div> \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/swedish/help/help.html =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/swedish/help/help.html 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/language/swedish/help/help.html 2011-12-26 21:05:51 UTC (rev 8566) @@ -1,28 +1,49 @@ <div id="help-template" class="outer"> <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/xoopspoll/admin/index.php" - title="Back to the administration of XOOPS Poll"> XOOPS Poll <img src="<{xoAdminIcons home.png}>" - alt="Back to the Administration of XOOPS Poll"/> + title="Back to the administration of XOOPS Poll"> XOOPS Poll + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of XOOPS Poll"/> </a></h1> - <!-- -----Help Content ---------- --> - <h4 class="odd">Description</h4> + <h4 class="odd">Description</h4><br/> - <p class="even"> - The Polls module can be used to display interactive survey forms on your site. Each poll can display a question on which visitors can ‘vote’. This can be a valuable way to collect feedback from your community. Polls can be configured to allow single or multiple choices and visitors can view the ‘results’ to date.</br></br> - <h4 class="odd">Install/uninstall</h4> -No special measures necessary, follow the standard installation process – extract the Polls folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. If you need detailed instructions on installing modules see the <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a>.</br></br></p> + The Polls module can be used to display interactive survey forms on your + site. Each poll can display a question on which visitors can ‘vote’. This + can be a valuable way to collect feedback from your community. Polls can be + configured to allow single or multiple choices and visitors can view the + ‘results’ to date.<br/><br/> - <h4 class="odd">Operating instructions</h4> - <p class="even"> + <h4 class="odd">Install/uninstall</h4><br/> -The Polls module is very simple to configure and use. Basically you need to:</br></br> -i) Create one or more polls for people to vote on (Polls administration -> Add poll)</br></br> -ii) Display the Polls block somewhere on your website (not strictly necessary – people can also access them through the ‘Polls’ link in the main menu – but displaying the polls block in a prominent location will encourage people to vote) and</br></br> -iii) Ensure that relevant user groups have access rights to a) the Polls module and b) the Polls block so that they can see it and vote.</br></br> -iv) Most management functions for existing polls are found in Polls administration -> List polls.</p> + No special measures necessary, follow the standard installation process – + extract the xoopspolls folder into the ../modules directory. Install the + module through Admin -> System Module -> Modules. <br/><br/> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> <br/><br/> - <!-- -----Help Content ---------- --> + <h4 class="odd">Operating instructions</h4><br/> + The Polls module is very simple to configure and use. Basically you need + to:<br/><br/> + i) Create one or more polls for people to vote on (Polls administration + -> Add poll)<br/><br/> + ii) Display the Polls block somewhere on your website (not strictly + necessary – people can also access them through the ‘Polls’ link in the + main menu – but displaying the polls block in a prominent location will + encourage people to vote)<br/><br/> + iii) Ensure that relevant user groups have access rights to a) the Polls + module and b) the Polls block so that they can see it and vote. Detailed + instructions on configuring the access rights for user groups are + available in the <a href="http://goo.gl/adT2i">XOOPS Operations + Manual</a><br/><br/> + iv) Most management functions for existing polls are found in Polls + administration -> List polls.<br/><br/> + + <h4 class="odd">Tutorial</h4><br/> + + You can find a more detailed Tutorial + <a href="http://goo.gl/bxYAI">here</a><br/> + </div> \ No newline at end of file Modified: XoopsModules/xoopspoll/branches/mamba/xoopspoll/xoops_version.php =================================================================== --- XoopsModules/xoopspoll/branches/mamba/xoopspoll/xoops_version.php 2011-12-26 18:44:21 UTC (rev 8565) +++ XoopsModules/xoopspoll/branches/mamba/xoopspoll/xoops_version.php 2011-12-26 21:05:51 UTC (rev 8566) @@ -39,21 +39,23 @@ $modversion['official'] = 1; $modversion['image'] = "images/xoopspoll_slogo.png"; $modversion['dirname'] = "xoopspoll"; -$modversion['dirmoduleadmin'] = 'Frameworks/moduleclasses'; -$modversion['icons16'] = 'Frameworks/moduleclasses/icons/16'; -$modversion['icons32'] = 'Frameworks/moduleclasses/icons/32'; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; //about $modversion['demo_site_url'] = ""; $modversion['demo_site_name'] = ""; $modversion['module_website_url'] = "http://xoops.org"; $modversion['module_website_name'] = "XOOPS"; -$modversion['release_date'] = "2011/04/02"; -$modversion['module_status'] = "RC"; +$modversion['release_date'] = "2011/12/12"; +$modversion['module_status'] = "Final"; $modversion["author_website_url"] = "http://www.myweb.ne.jp"; $modversion["author_website_name"] = "Kazumi Ono"; $modversion['min_php']='5.2'; $modversion['min_xoops']="2.5.0"; +$modversion['min_admin']='1.1'; +$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) @@ -127,7 +129,18 @@ 'options' => array() ) ; +// Config options +$modversion['config'][2] = array( + 'name' => 'lookuphost' , + 'title' => '_MI_POLLS_LOOKUPHOST' , + 'description' => '_MI_POLLS_LOOKUPHOSTDESC' , + 'formtype' => 'yesno' , + 'valuetype' => 'int' , + 'default' => '0' , + 'options' => array() +) ; + // Menu $modversion['hasMain'] = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |