From: <be...@us...> - 2012-07-31 22:44:35
|
Revision: 9967 http://xoops.svn.sourceforge.net/xoops/?rev=9967&view=rev Author: beckmi Date: 2012-07-31 22:44:26 +0000 (Tue, 31 Jul 2012) Log Message: ----------- Version 3.21 Beta 1 (conversion to XOOPS 2.5.5 GUI) Modified Paths: -------------- XoopsModules/wfdownloads/trunk/wfdownloads/admin/about.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/brokendown.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/category.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/import.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/index.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/indexpage.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/ip_log.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/menu.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/mimetypes.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirror.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/modifications.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/newdownloads.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/permissions.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/review.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/update.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/upload.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/votedata.php XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php XoopsModules/wfdownloads/trunk/wfdownloads/docs/english/__changelog.html XoopsModules/wfdownloads/trunk/wfdownloads/docs/english/__support.html XoopsModules/wfdownloads/trunk/wfdownloads/docs/english/__version.html XoopsModules/wfdownloads/trunk/wfdownloads/docs/index.html XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php XoopsModules/wfdownloads/trunk/wfdownloads/sql/wfdownloads.sql XoopsModules/wfdownloads/trunk/wfdownloads/submit.php XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_mirrors.html XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php Added Paths: ----------- XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_footer.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header2.php XoopsModules/wfdownloads/trunk/wfdownloads/admin/main.php XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt XoopsModules/wfdownloads/trunk/wfdownloads/docs/credits.txt XoopsModules/wfdownloads/trunk/wfdownloads/docs/install.txt XoopsModules/wfdownloads/trunk/wfdownloads/docs/lang_diff.txt XoopsModules/wfdownloads/trunk/wfdownloads/docs/license.txt XoopsModules/wfdownloads/trunk/wfdownloads/docs/readme.txt XoopsModules/wfdownloads/trunk/wfdownloads/images/icon/ignore.png XoopsModules/wfdownloads/trunk/wfdownloads/images/icon/link.png XoopsModules/wfdownloads/trunk/wfdownloads/images/icon/statistics.png XoopsModules/wfdownloads/trunk/wfdownloads/images/icon/world_link.png XoopsModules/wfdownloads/trunk/wfdownloads/images/module_logo.png XoopsModules/wfdownloads/trunk/wfdownloads/language/english/help/ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/help/help.html XoopsModules/wfdownloads/trunk/wfdownloads/language/english/help/index.html Removed Paths: ------------- XoopsModules/wfdownloads/trunk/wfdownloads/changelog.txt XoopsModules/wfdownloads/trunk/wfdownloads/readme.txt Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/about.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/about.php 2012-07-31 22:41:41 UTC (rev 9966) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/about.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -1,102 +1,30 @@ -<?php -/** - * $Id: about.php,v 1.6 2007/08/10 20:59:33 m0nty_ Exp $ - * Module: WF-Downloads - * Version: v2.0.5a - * Release Date: 26 july 2004 - * Author: WF-Sections - * Licence: GNU - */ - -include 'admin_header.php'; -$myts = & MyTextSanitizer :: getInstance(); - -global $xoopsModule; - -wfdownloads_xoops_cp_header(); - -$versioninfo =& $xoopsModule; - -wfdownloads_adminMenu(-1, _AM_WFD_ABOUT); -// Left headings... - echo " - <img src='" . XOOPS_URL . "/modules/wfdownloads/" . $versioninfo -> getInfo('image') . "' alt='' title='' hspace='10' vspace='0' /></a>\n - <div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo -> getInfo('name') . " version " . $versioninfo -> getInfo('version') . "</div>\n - <div>\n"; -if ($versioninfo -> getInfo('author_realname') != '') -{ - $author_name = $versioninfo -> getInfo('author'); -} -else -{ - $author_name = $versioninfo -> getInfo('author'); -} - echo " - </div>\n - <div>" . _MI_WFD_RELEASE . " " . $versioninfo -> getInfo('releasedate') . "</div>\n - <div>" . _AM_WFD_BY . " " . $author_name . "</div>\n - <div>" . $versioninfo -> getInfo('license') . "</div><br />\n"; -// Author Information -$sform = new XoopsThemeForm(_MI_WFD_AUTHOR_INFO, "", ""); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_AUTHOR_NAME, $author_name)); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_AUTHOR_WEBSITE, "<a href='" . $versioninfo -> getInfo('author_website_url') . "' target='_blank'>" . $versioninfo -> getInfo('author_website_name') . "</a>")); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_AUTHOR_EMAIL, "<a href='mailto:" . $versioninfo -> getInfo('author_email') . "'>" . $versioninfo -> getInfo('author_email') . "</a>")); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_AUTHOR_DEVTEAM, $versioninfo -> getInfo('teammembers'))); -$sform -> display(); -// Author Information -$sform = new XoopsThemeForm(_MI_WFD_MODULE_INFO, "", ""); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_MODULE_STATUS, $versioninfo -> getInfo('status'))); - -//$sform -> addElement(new XoopsFormLabel(_MI_WFD_MODULE_DEMO, "<a href='" . $versioninfo -> getInfo('support_site_url') . "' target='_blank'>" . $versioninfo -> getInfo('support_site_name') . "</a>")); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_MODULE_SUPPORT, "<a href='" . $versioninfo -> getInfo('support_site_url') . "' target='_blank'>" . $versioninfo -> getInfo('support_site_name') . "</a>")); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_MODULE_BUG, "<a href='" . $versioninfo -> getInfo('submit_bug') . "' target='_blank'>" . "Submit a Bug" . "</a>")); - -$sform -> addElement(new XoopsFormLabel(_MI_WFD_MODULE_FEATURE, "<a href='" . $versioninfo -> getInfo('submit_feature') . "' target='_blank'>" . "Request a new feature" . "</a>")); -$sform -> display(); -// Author Information - -$sform = new XoopsThemeForm(_MI_WFD_MODULE_DISCLAIMER, "", ""); -ob_start(); -echo "<div class='even'>" . $versioninfo -> getInfo('warning') . "</div>"; -$sform -> addElement(new XoopsFormLabel('', ob_get_contents(), 0)); -ob_end_clean(); -$sform -> display(); - -$sform = new XoopsThemeForm(_MI_WFD_AUTHOR_CREDITS, "", ""); -ob_start(); -echo "<div class='even'>" . $versioninfo -> getInfo('author_credits') . "</div>"; -$sform -> addElement(new XoopsFormLabel('', ob_get_contents(), 0)); -ob_end_clean(); -$sform -> display(); - -global $myts; - -$file = '../changelog.txt'; -if (@file_exists($file)) -{ - $fp = @fopen($file, "r"); - $bugtext = @fread($fp, filesize($file)); - @fclose($file); -} - -$sform = new XoopsThemeForm(_MI_WFD_AUTHOR_BUGFIXES, "", ""); -ob_start(); -echo "<div class='even'>".$myts->displayTarea($bugtext, true)."</div>"; -$sform -> addElement(new XoopsFormLabel('', ob_get_contents(), 0)); -ob_end_clean(); -$sform -> display(); -unset($file); - - echo " - <div align = 'center'>" . _MI_WFD_COPYRIGHTIMAGE . "</div>\n - "; -xoops_cp_footer(); - -?> \ No newline at end of file +<?php +/* + * 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 + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * 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 GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_footer.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_footer.php (rev 0) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_footer.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -0,0 +1,28 @@ +<?php +/* + * 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 + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * 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 GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header.php 2012-07-31 22:41:41 UTC (rev 9966) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -1,38 +1,73 @@ -<?php -/** - * $Id: admin_header.php,v 1.5 2007/08/10 20:59:33 m0nty_ Exp $ - * Module: WF-Downloads - * Version: v2.0.5a - * Release Date: 26 july 2004 - * Author: WF-Sections - * Licence: GNU - */ - -include '../../../include/cp_header.php'; -include_once(XOOPS_ROOT_PATH . '/modules/wfdownloads/include/functions.php'); -include_once(XOOPS_ROOT_PATH . '/modules/wfdownloads/include/common.php'); - -include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; - -$myts = &MyTextSanitizer::getInstance(); - -$imagearray = array( - 'editimg' => "<img src='../images/icon/edit.gif' alt='" . _AM_WFD_ICO_EDIT . "' title='" . _AM_WFD_ICO_EDIT . "' align='middle'>", - 'deleteimg' => "<img src='../images/icon/delete.gif' alt='" . _AM_WFD_ICO_DELETE . "' title='" . _AM_WFD_ICO_DELETE . "' align='middle'>", - 'online' => "<img src='../images/icon/on.gif' alt='" . _AM_WFD_ICO_ONLINE . "' title='" . _AM_WFD_ICO_ONLINE . "' align='middle'>", - 'offline' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_OFFLINE . "' title='" . _AM_WFD_ICO_OFFLINE . "' align='middle'>", - 'approved' => "<img src='../images/icon/on.gif' alt=''" . _AM_WFD_ICO_APPROVED . "' title=''" . _AM_WFD_ICO_APPROVED . "' align='middle'>", - 'notapproved' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_NOTAPPROVED . "' title='" . _AM_WFD_ICO_NOTAPPROVED . "' align='middle'>", - 'relatedfaq' => "<img src='../images/icon/link.gif' alt='" . _AM_WFD_ICO_LINK . "' title='" . _AM_WFD_ICO_LINK . "' align='middle'>", - 'relatedurl' => "<img src='../images/icon/urllink.gif' alt='" . _AM_WFD_ICO_URL . "' title='" . _AM_WFD_ICO_URL . "' align='middle'>", - 'addfaq' => "<img src='../images/icon/add.gif' alt='" . _AM_WFD_ICO_ADD . "' title='" . _AM_WFD_ICO_ADD . "' align='middle'>", - 'approve' => "<img src='../images/icon/approve.gif' alt='" . _AM_WFD_ICO_APPROVE . "' title='" . _AM_WFD_ICO_APPROVE . "' align='middle'>", - 'statsimg' => "<img src='../images/icon/stats.gif' alt='" . _AM_WFD_ICO_STATS . "' title='" . _AM_WFD_ICO_STATS . "' align='middle'>", - 'ignore' => "<img src='../images/icon/ignore.gif' alt='" . _AM_WFD_ICO_IGNORE . "' title='" . _AM_WFD_ICO_IGNORE . "' align='middle'>", - 'ack_yes' => "<img src='../images/icon/on.gif' alt='" . _AM_WFD_ICO_ACK . "' title='" . _AM_WFD_ICO_ACK . "' align='middle'>", - 'ack_no' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_REPORT . "' title='" . _AM_WFD_ICO_REPORT . "' align='middle'>", - 'con_yes' => "<img src='../images/icon/on.gif' alt='" . _AM_WFD_ICO_CONFIRM . "' title='" . _AM_WFD_ICO_CONFIRM . "' align='middle'>", - 'con_no' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_CONBROKEN . "' title='" . _AM_WFD_ICO_CONBROKEN . "' align='middle'>" - ); - -?> \ No newline at end of file +<?php +/* + * 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 + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * 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 GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + +$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'; + +include_once(XOOPS_ROOT_PATH . '/modules/wfdownloads/include/functions.php'); +include_once(XOOPS_ROOT_PATH . '/modules/wfdownloads/include/common.php'); + +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; + +$myts = &MyTextSanitizer::getInstance(); + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +$imagearray = array( + 'editimg' => "<img src='". $pathIcon16 .'/edit.png'."' alt='" . _AM_WFD_ICO_EDIT . "' title='" . _AM_WFD_ICO_EDIT . "' align='middle'>", + 'deleteimg' => "<img src='". $pathIcon16 .'/delete.png'."' alt='" . _AM_WFD_ICO_DELETE . "' title='" . _AM_WFD_ICO_DELETE . "' align='middle'>", + 'online' => "<img src='". $pathIcon16 .'/1.png'."' alt='" . _AM_WFD_ICO_ONLINE . "' title='" . _AM_WFD_ICO_ONLINE . "' align='middle'>", + 'offline' => "<img src='". $pathIcon16 .'/0.png'."' alt='" . _AM_WFD_ICO_OFFLINE . "' title='" . _AM_WFD_ICO_OFFLINE . "' align='middle'>", + 'approved' => "<img src='". $pathIcon16 .'/on.png'."' alt=''" . _AM_WFD_ICO_APPROVED . "' title=''" . _AM_WFD_ICO_APPROVED . "' align='middle'>", + 'notapproved' => "<img src='". $pathIcon16 .'/off.png'."' alt='" . _AM_WFD_ICO_NOTAPPROVED . "' title='" . _AM_WFD_ICO_NOTAPPROVED . "' align='middle'>", + 'relatedfaq' => "<img src='../images/icon/link.png' alt='" . _AM_WFD_ICO_LINK . "' title='" . _AM_WFD_ICO_LINK . "' align='middle'>", + 'relatedurl' => "<img src='../images/icon/world_link.png' alt='" . _AM_WFD_ICO_URL . "' title='" . _AM_WFD_ICO_URL . "' align='middle'>", + 'addfaq' => "<img src='". $pathIcon16 .'/add.png'."' alt='" . _AM_WFD_ICO_ADD . "' title='" . _AM_WFD_ICO_ADD . "' align='middle'>", + 'approve' => "<img src='". $pathIcon16 .'/on.png'."' alt='" . _AM_WFD_ICO_APPROVE . "' title='" . _AM_WFD_ICO_APPROVE . "' align='middle'>", + 'statsimg' => "<img src='../images/icon/statistics.png' alt='" . _AM_WFD_ICO_STATS . "' title='" . _AM_WFD_ICO_STATS . "' align='middle'>", + 'ignore' => "<img src='../images/icon/ignore.png' alt='" . _AM_WFD_ICO_IGNORE . "' title='" . _AM_WFD_ICO_IGNORE . "' align='middle'>", + 'ack_yes' => "<img src='". $pathIcon16 .'/on.png'."' alt='" . _AM_WFD_ICO_ACK . "' title='" . _AM_WFD_ICO_ACK . "' align='middle'>", + 'ack_no' => "<img src='". $pathIcon16 .'/off.png'."' alt='" . _AM_WFD_ICO_REPORT . "' title='" . _AM_WFD_ICO_REPORT . "' align='middle'>", + 'con_yes' => "<img src='". $pathIcon16 .'/on.png'."' alt='" . _AM_WFD_ICO_CONFIRM . "' title='" . _AM_WFD_ICO_CONFIRM . "' align='middle'>", + 'con_no' => "<img src='". $pathIcon16 .'/off.png'."' alt='" . _AM_WFD_ICO_CONBROKEN . "' title='" . _AM_WFD_ICO_CONBROKEN . "' align='middle'>" + ); + + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_BIRTHDAY_MODULEADMIN_MISSING, false); + } \ No newline at end of file Added: XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header2.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header2.php (rev 0) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/admin_header2.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -0,0 +1,38 @@ +<?php +/** + * $Id: admin_header.php,v 1.5 2007/08/10 20:59:33 m0nty_ Exp $ + * Module: WF-Downloads + * Version: v2.0.5a + * Release Date: 26 july 2004 + * Author: WF-Sections + * Licence: GNU + */ + +include '../../../include/cp_header.php'; +include_once(XOOPS_ROOT_PATH . '/modules/wfdownloads/include/functions.php'); +include_once(XOOPS_ROOT_PATH . '/modules/wfdownloads/include/common.php'); + +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; + +$myts = &MyTextSanitizer::getInstance(); + +$imagearray = array( + 'editimg' => "<img src='../images/icon/edit.gif' alt='" . _AM_WFD_ICO_EDIT . "' title='" . _AM_WFD_ICO_EDIT . "' align='middle'>", + 'deleteimg' => "<img src='../images/icon/delete.gif' alt='" . _AM_WFD_ICO_DELETE . "' title='" . _AM_WFD_ICO_DELETE . "' align='middle'>", + 'online' => "<img src='../images/icon/on.gif' alt='" . _AM_WFD_ICO_ONLINE . "' title='" . _AM_WFD_ICO_ONLINE . "' align='middle'>", + 'offline' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_OFFLINE . "' title='" . _AM_WFD_ICO_OFFLINE . "' align='middle'>", + 'approved' => "<img src='../images/icon/on.gif' alt=''" . _AM_WFD_ICO_APPROVED . "' title=''" . _AM_WFD_ICO_APPROVED . "' align='middle'>", + 'notapproved' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_NOTAPPROVED . "' title='" . _AM_WFD_ICO_NOTAPPROVED . "' align='middle'>", + 'relatedfaq' => "<img src='../images/icon/link.gif' alt='" . _AM_WFD_ICO_LINK . "' title='" . _AM_WFD_ICO_LINK . "' align='middle'>", + 'relatedurl' => "<img src='../images/icon/urllink.gif' alt='" . _AM_WFD_ICO_URL . "' title='" . _AM_WFD_ICO_URL . "' align='middle'>", + 'addfaq' => "<img src='../images/icon/add.gif' alt='" . _AM_WFD_ICO_ADD . "' title='" . _AM_WFD_ICO_ADD . "' align='middle'>", + 'approve' => "<img src='../images/icon/approve.gif' alt='" . _AM_WFD_ICO_APPROVE . "' title='" . _AM_WFD_ICO_APPROVE . "' align='middle'>", + 'statsimg' => "<img src='../images/icon/stats.gif' alt='" . _AM_WFD_ICO_STATS . "' title='" . _AM_WFD_ICO_STATS . "' align='middle'>", + 'ignore' => "<img src='../images/icon/ignore.gif' alt='" . _AM_WFD_ICO_IGNORE . "' title='" . _AM_WFD_ICO_IGNORE . "' align='middle'>", + 'ack_yes' => "<img src='../images/icon/on.gif' alt='" . _AM_WFD_ICO_ACK . "' title='" . _AM_WFD_ICO_ACK . "' align='middle'>", + 'ack_no' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_REPORT . "' title='" . _AM_WFD_ICO_REPORT . "' align='middle'>", + 'con_yes' => "<img src='../images/icon/on.gif' alt='" . _AM_WFD_ICO_CONFIRM . "' title='" . _AM_WFD_ICO_CONFIRM . "' align='middle'>", + 'con_no' => "<img src='../images/icon/off.gif' alt='" . _AM_WFD_ICO_CONBROKEN . "' title='" . _AM_WFD_ICO_CONBROKEN . "' align='middle'>" + ); + +?> \ No newline at end of file Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/brokendown.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/brokendown.php 2012-07-31 22:41:41 UTC (rev 9966) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/brokendown.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -78,8 +78,9 @@ wfdownloads_xoops_cp_header(); - wfdownloads_adminMenu(3, _AM_WFD_BROKEN_FILE); + //wfdownloads_adminMenu(3, _AM_WFD_BROKEN_FILE); + echo " <fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_WFD_BROKEN_REPORTINFO . "</legend>\n <div style='padding: 8px;'>" . _AM_WFD_BROKEN_REPORTSNO . " <b>$totalbrokendownloads</b><div>\n @@ -145,7 +146,7 @@ $lid = intval($download->getVar('lid')); $ingnore_link = "<a href='".WFDOWNLOADS_URL."admin/brokendown.php?op=ignoreBrokenDownloads&lid=".$lid."' alt='" . _AM_WFD_BROKEN_IGNORE_ALT . "' title='" . _AM_WFD_BROKEN_IGNORE_ALT . "'>" . $imagearray['ignore'] . "</a>"; - $edit_link = "<a href='".WFDOWNLOADS_URL."admin/index.php?op=Download&lid=".$lid."' alt='" . _AM_WFD_BROKEN_EDIT_ALT . "' title='" . _AM_WFD_BROKEN_EDIT_ALT . "'> " . $imagearray['editimg'] . " </a>"; + $edit_link = "<a href='".WFDOWNLOADS_URL."admin/main.php?op=Download&lid=".$lid."' alt='" . _AM_WFD_BROKEN_EDIT_ALT . "' title='" . _AM_WFD_BROKEN_EDIT_ALT . "'> " . $imagearray['editimg'] . " </a>"; $delete_link = "<a href='".WFDOWNLOADS_URL."admin/brokendown.php?op=delBrokenDownloads&lid=".$lid."' alt='" . _AM_WFD_BROKEN_DELETE_ALT . "' title='" . _AM_WFD_BROKEN_DELETE_ALT . "'>" . $imagearray['deleteimg'] . "</a>"; $ack_image = ($reports[$i]->getVar('acknowledged')) ? $imagearray['ack_yes'] : $imagearray['ack_no']; $ack_link = "<a href='".WFDOWNLOADS_URL."admin/brokendown.php?op=updateNotice&lid=".$lid."&ack=".$reports[$i]->getVar('acknowledged')."' alt='" . _AM_WFD_BROKEN_ACK_ALT . "' title='" . _AM_WFD_BROKEN_ACK_ALT . "'>" . $ack_image . "</a>"; @@ -184,6 +185,5 @@ } echo"</table>"; } -xoops_cp_footer(); - -?> \ No newline at end of file +//xoops_cp_footer(); +include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/category.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/category.php 2012-07-31 22:41:41 UTC (rev 9966) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/category.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -44,7 +44,7 @@ $cid = (isset($_POST['cid'])) ? intval($_POST['cid']) : intval($_GET['cid']); wfdownloads_xoops_cp_header(); - wfdownloads_adminMenu(2, _AM_WFD_MCATEGORY); + //wfdownloads_adminMenu(2, _AM_WFD_MCATEGORY); include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; $sform = new XoopsThemeForm(_AM_WFD_CCATEGORY_MOVE, "move", xoops_getenv('PHP_SELF')); @@ -240,7 +240,7 @@ case "modCat": $cid = (isset($_POST['cid'])) ? intval($_POST['cid']) : 0; wfdownloads_xoops_cp_header(); - wfdownloads_adminMenu(2, _AM_WFD_MCATEGORY); + //wfdownloads_adminMenu(2, _AM_WFD_MCATEGORY); createcat($cid); xoops_cp_footer(); break; @@ -249,8 +249,11 @@ default: wfdownloads_xoops_cp_header(); - wfdownloads_adminMenu(2, _AM_WFD_MCATEGORY); + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('category.php'); + //wfdownloads_adminMenu(2, _AM_WFD_MCATEGORY); + include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; $totalcats = wfd_totalcategory(); @@ -278,8 +281,7 @@ } createcat(0); - xoops_cp_footer(); +//xoops_cp_footer(); +include 'admin_footer.php'; break; -} - -?> \ No newline at end of file +} \ No newline at end of file Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/import.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/import.php 2012-07-31 22:41:41 UTC (rev 9966) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/import.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -32,7 +32,9 @@ include_once('admin_header.php'); include_once(WFDOWNLOADS_ROOT_PATH."include/update.php"); wfdownloads_xoops_cp_header(); -wfdownloads_adminMenu(-1, "Import"); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('import.php'); +//wfdownloads_adminMenu(-1, "Import"); // ========================================================================================= // This function imports data from mydownloads into wf-downloads @@ -376,6 +378,5 @@ $form->display(); break; } -wfdownloads_modFooter(); -xoops_cp_footer(); -?> \ No newline at end of file +//xoops_cp_footer(); +include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/index.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/index.php 2012-07-31 22:41:41 UTC (rev 9966) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/index.php 2012-07-31 22:44:26 UTC (rev 9967) @@ -1,761 +1,129 @@ -<?php -/** - * $Id: index.php,v 1.23 2007/09/30 12:39:13 m0nty_ Exp $ - * Module: WF-Downloads - * Version: v2.0.5a - * Release Date: 26 july 2004 - * Author: WF-Sections - * Licence: GNU - */ - -include 'admin_header.php'; -include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; -include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; -include_once WFDOWNLOADS_ROOT_PATH.'class/wfd_lists.php'; -include_once XOOPS_ROOT_PATH.'/class/tree.php'; -include_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; - -$mytree = new XoopsTree($xoopsDB -> prefix('wfdownloads_cat'), "cid", "pid"); - -function Download() -{ - - $lid = isset($_REQUEST['lid']) ? intval($_REQUEST['lid']) : 0; - - $category_handler = xoops_getmodulehandler('category'); - $numrows = $category_handler->getCount(); - if ($numrows) - { - wfdownloads_xoops_cp_header(); - - wfdownloads_adminMenu(3, _AM_WFD_MDOWNLOADS); - - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_WFD_FILE_ALLOWEDAMIME . "</legend>\n - <div style='padding: 8px;'>\n"; - - $mime_handler = xoops_getmodulehandler('mimetype'); - $criteria = new Criteria("mime_admin", 1); - $mimetypes = $mime_handler->getList($criteria); - $allowmimetypes = implode(' | ', $mimetypes); - echo $allowmimetypes; - echo "</div>\n - </fieldset><br />\n - "; - - $download_handler = xoops_getmodulehandler('download'); - if ($lid) - { - $download = $download_handler->get($lid); - $title = _AM_WFD_FILE_MODIFYFILE; - // added - start - March 4 2006 - jpc - $cid = intval($download->getVar('cid')); - $category = $category_handler->get($cid); - // added - end - March 4 2006 - jpc - - // changed - start - April 22 2006 - jwe - //$title = _AM_WFD_FILE_MODIFYFILE; - $title = ereg_replace("{category}", $category->getVar('title'), _AM_WFD_FFS_EDITDOWNLOADTITLE); - // changed - end - April 22 2006 - jwe - - } - else - { - $download = $download_handler->create(); - $title = _AM_WFD_FILE_CREATENEWFILE; - // added - start - March 4 2006 - jpc - $cid = (!empty($_POST['cid'])) ? intval($_POST['cid']) : 0 ; - $download->setVar('cid', $cid); - $category = $category_handler->get($cid); - // added - end - March 4 2006 - jpc - - // changed - start - April 22 2006 - jwe - //$title = _AM_WFD_FILE_CREATENEWFILE; - $title = ereg_replace("{category}", $category->getVar('title'), _AM_WFD_FFS_DOWNLOADTITLE); - // changed - end - April 22 2006 - jwe - - } - - // changed - start - March 4 2006 - jpc - if ((isset($_POST['submit_category']) && !empty($_POST['submit_category'])) || $lid) - { - - $fid = $category->getVar('formulize_fid'); - $customArray = array(); - if($fid) - { - global $xoopsUser; - include_once XOOPS_ROOT_PATH . "/modules/formulize/include/formdisplay.php"; - include_once XOOPS_ROOT_PATH . "/modules/formulize/include/functions.php"; - - $customArray['fid'] = $fid; - $customArray['formulize_mgr'] =& xoops_getmodulehandler('elements', 'formulize'); - $customArray['groups'] = $xoopsUser ? $xoopsUser->getGroups() : array(0=>XOOPS_GROUP_ANONYMOUS); - $customArray['prevEntry'] = getEntryValues($download->getVar('formulize_idreq'), $customArray['formulize_mgr'], $customArray['groups'], $fid); - $customArray['entry'] = $download->getVar('formulize_idreq'); - $customArray['go_back'] = ""; - $customArray['parentLinks'] = ""; - - $owner = getEntryOwner($entry); - $member_handler =& xoops_gethandler('member'); - $owner_groups =& $member_handler->getGroupsByUser($owner, FALSE); - - $customArray['owner_groups'] = $owner_groups; - } - $sform = $download->getAdminForm($title, $customArray); - } - elseif(file_exists(XOOPS_ROOT_PATH . "/modules/formulize/include/functions.php")) - { - $sform = $download->getCategoryForm(); - } - else - { - $sform = $download->getAdminForm($title); - } - $sform->display(); - // changed - end - March 4 2006 - jpc - } - else - { - redirect_header(WFDOWNLOADS_URL.'admin/category.php?', 1, _AM_WFD_CCATEGORY_NOEXISTS); - exit(); - } - - if ($lid) - { - global $imagearray; - // Vote data - $rating_handler = xoops_getmodulehandler('rating'); - $totalvotes = $rating_handler->getCount(); - - $reg_criteria = new CriteriaCompo(new Criteria('lid', $lid)); - $reg_criteria->add(new Criteria("ratinguser", 0, ">")); - $votesreg = $rating_handler->getCount($reg_criteria); - $reg_criteria->setSort("ratingtimestamp"); - $reg_criteria->setOrder("DESC"); - $regvotes = $rating_handler->getObjects($reg_criteria); - - $anon_criteria = new CriteriaCompo(new Criteria('lid', $lid)); - $anon_criteria->add(new Criteria("ratinguser", 0, ">")); - $votesanon = $rating_handler->getCount($anon_criteria); - $anon_criteria->setSort("ratingtimestamp"); - $anon_criteria->setOrder("DESC"); - - echo " - <fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_WFD_VOTE_RATINGINFOMATION . "</legend>\n - <div style='padding: 8px;'><b>" . _AM_WFD_VOTE_TOTALVOTES . "</b>" . $totalvotes . "<br /><br />\n - "; - - printf(_AM_WFD_VOTE_REGUSERVOTES, $votesreg); - - echo "<br />"; - - printf(_AM_WFD_VOTE_ANONUSERVOTES, $votesanon); - - echo " - </div>\n - <table width='100%' cellspacing='1' cellpadding='2' class='outer'>\n - <tr>\n - <th align='center'>" . _AM_WFD_VOTE_USER . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_IP . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_RATING . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_USERAVG . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_TOTALRATE . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_DATE . "</td>\n - <th align='center'>" . _AM_WFD_MINDEX_ACTION . "</td>\n - </tr>\n - "; - - if ($votesreg == 0) - { - echo "<tr><td align='center' colspan='7' class='even'><b>" . _AM_WFD_VOTE_NOREGVOTES . "</b></td></tr>"; - } - else { - foreach (array_keys($regvotes) as $i) { - $uids[] = $regvotes[$i]->getVar('ratinguser'); - } - - $criteria = new Criteria("uid", "(".implode(',', $uids).")", "IN"); - $criteria->setGroupby("uid"); - $userratings = $rating_handler->getUserAverage($criteria); - - - foreach (array_keys($regvotes) as $i) { - $formatted_date = formatTimestamp($regvotes[$i]->getVar('ratingtimestamp'), $xoopsModuleConfig['dateformat']); - $useravgrating = isset($userratings[$regvotes[$i]->getVar('ratinguser')]) ? $userratings[$regvotes[$i]->getVar('ratinguser')]["avg"] : 0; - $uservotes = isset($userratings[$regvotes[$i]->getVar('ratinguser')]) ? $userratings[$regvotes[$i]->getVar('ratinguser')]["count"] : 0; - $ratinguname = XoopsUser :: getUnameFromId($regvotes[$i]->getVar('ratinguser')); - - echo " - <tr><td align='center' class='head'>$ratinguname</td>\n - <td align='center' class='even'>".$regvotes[$i]->getVar('ratinghostname')."</th>\n - <td align='center' class='even'>".$regvotes[$i]->getVar('rating')."</th>\n - <td align='center' class='even'>$useravgrating</th>\n - <td align='center' class='even'>$uservotes</th>\n - <td align='center' class='even'>$formatted_date</th>\n - <td align='center' class='even'>\n - <a href='".WFDOWNLOADS_URL."admin/index.php?op=delVote&lid=" . $lid . "&rid=" . $regvotes[$i]->getVar('ratingid') . "'>" . $imagearray['deleteimg'] . "</a>\n - </th></tr>\n - "; - } - } - echo " - </table>\n - <br />\n - <table width='100%' cellspacing='1' cellpadding='2' class='outer'>\n - <tr>\n - <th align='center'>" . _AM_WFD_VOTE_USER . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_IP . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_RATING . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_USERAVG . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_TOTALRATE . "</td>\n - <th align='center'>" . _AM_WFD_VOTE_DATE . "</td>\n - <th align='center'>" . _AM_WFD_MINDEX_ACTION . "</td>\n - </tr>\n - "; - if ($votesanon == 0) - { - echo "<tr><td colspan='7' align='center' class='even'><b>" . _AM_WFD_VOTE_NOUNREGVOTES . "</b></td></tr>"; - } - else { - $criteria = new Criteria("uid", 0); - $userratings = $rating_handler->getUserAverage($criteria); - - - foreach (array_keys($regvotes) as $i) { - $formatted_date = formatTimestamp($regvotes[$i]->getVar('ratingtimestamp'), $xoopsModuleConfig['dateformat']); - $useravgrating = isset($userratings['avg']) ? $userratings["avg"] : 0; - $uservotes = isset($userratings['count']) ? $userratings["count"] : 0; - - $ratinguname = $GLOBALS['xoopsConfig']['anonymous']; - - echo " - <tr><td align='center' class='head'>$ratinguname</td>\n - <td align='center' class='even'>".$regvotes[$i]->getVar('ratinghostname')."</th>\n - <td align='center' class='even'>".$regvotes[$i]->getVar('rating')."</th>\n - <td align='center' class='even'>$useravgrating</th>\n - <td align='center' class='even'>$uservotes</th>\n - <td align='center' class='even'>$formatted_date</th>\n - <td align='center' class='even'>\n - <a href='".WFDOWNLOADS_URL."admin/index.php?op=delVote&lid=" . $lid . "&rid=" . $regvotes[$i]->getVar('ratingid') . "'>" . $imagearray['deleteimg'] . "</a>\n - </th></tr>\n - "; - } - } - echo " - </table>\n - </fieldset>\n - "; - } - xoops_cp_footer(); -} - -function delVote() -{ - global $_GET; - $rating_handler = xoops_getmodulehandler('rating'); - $rating = $rating_handler->get($_GET['rid']); - if ($rating_handler->delete($rating, true)) { - wfd_updaterating(intval($rating->getVar('lid'))); - } - redirect_header(WFDOWNLOADS_URL.'admin/index.php', 1, _AM_WFD_VOTE_VOTEDELETED); -} - -function addDownload() -{ - global $xoopsUser, $xoopsModuleConfig; - - $lid = (!empty($_POST['lid'])) ? intval($_POST['lid']) : 0; - $cid = (!empty($_POST['cid'])) ? intval($_POST['cid']) : 0; - $status = (!empty($_POST['status'])) ? intval($_POST['status']) : 2; - - $download_handler = xoops_getmodulehandler('download'); - if ($lid > 0) { - $thisIsANewRecord = false; /* Added by Lankford on 2007/3/21 */ - - $download = $download_handler->get($lid); - } - else { - $thisIsANewRecord = true; /* Added by Lankford on 2007/3/21 */ - - $download = $download_handler->create(); - } - - /** - * Define URL - */ - if (empty($_FILES['userfile']['name'])) - { - if ($_POST["url"] && $_POST["url"] != "" && $_POST["url"] != "http://") - { - $url = ($_POST["url"] != "http://") ? $_POST["url"] : ''; - $filename = ''; - $filetype = ''; - } else { - $url = ($_POST["url"] != "http://") ? $_POST["url"] : ''; - $filename = $_POST['filename']; - $filetype = $_POST['filetype']; - } - $size = ((empty($_POST["size"]) || !is_numeric($_POST["size"]))) ? 0 : intval($_POST["size"]); - $title = trim($_POST["title"]); - $download->setVar('filename', $filename); - $download->setVar('filetype', $filetype); - } - else - { - global $_FILES; - - $down = wfd_uploading($_FILES, $xoopsModuleConfig['uploaddir'], "", "index.php", 0, 0); - $url = ($_POST["url"] != "http://") ? $_POST["url"] : ''; - $size = $down['size']; - $title = $_FILES['userfile']['name']; - $ext = rtrim(strrchr($title, '.'), '.'); - $title = str_replace($ext, '', $title); - $title = (isset($_POST["title_checkbox"]) && $_POST["title_checkbox"] == 1) ? $title : trim($_POST["title"]); - - $filename = $down['filename']; - $filetype = $_FILES['userfile']['type']; - $download->setVar('filename', $filename); - $download->setVar('filetype', $filetype); - } - - /** - * Get data from form - */ - $screenshot = ($_POST["screenshot"] != "blank.png") ? $_POST["screenshot"] : ''; - $screenshot2 = ($_POST["screenshot2"] != "blank.png") ? $_POST["screenshot2"] : ''; - $screenshot3 = ($_POST["screenshot3"] != "blank.png") ? $_POST["screenshot3"] : ''; - $screenshot4 = ($_POST["screenshot4"] != "blank.png") ? $_POST["screenshot4"] : ''; - - if (!empty($_POST["homepage"]) || $_POST["homepage"] != "http://") - { - $download->setVar('homepage', trim($_POST["homepage"])); - $download->setVar('homepagetitle', trim($_POST["homepagetitle"])); - } - - $version = (!empty($_POST["version"])) ? trim($_POST["version"]) : 0; - - /* Added by Lankford on 2007/3/21 */ - // Here, I want to know if: - // a) Are they actually changing the value of version, or is it the same? - // b) Are they actually modifying the record, or is this a new one? - // If both conditions are true, then trigger all three notifications related to modified records. - if (!$thisIsANewRecord and ($download->getVar('version') != $version)) { - // Trigger the three events related to modified files (one for the file, category, and global event categories respectively) - $notification_handler = &xoops_gethandler('notification'); - $tags = array(); - $tags['FILE_NAME'] = $title; - $tags['FILE_URL'] = WFDOWNLOADS_URL.'singlefile.php?cid=' . $cid . '&lid=' . $lid; - $category_handler = xoops_getmodulehandler('category'); - $category = $category_handler->get($cid); - $tags['FILE_VERSION'] = $version; - $tags['CATEGORY_NAME'] = $category->getVar('title'); - $tags['CATEGORY_URL'] = WFDOWNLOADS_URL.'viewcat.php?cid=' . $cid; - - if ($xoopsModuleConfig['autoapprove'] == 2 || $xoopsModuleConfig['autoapprove'] == 4) - { // Then this change will be automatically approved, so the notification needs to go out. - $notification_handler->triggerEvent('global', 0, 'filemodified', $tags); - $notification_handler->triggerEvent('category', $cid, 'filemodified', $tags); - $notification_handler->triggerEvent('file', $lid, 'filemodified', $tags); - } - } - /* End add block */ - - $download->setVar('version', $version); - $download->setVar('url', $url); - $download->setVar('cid', $cid); - $download->setVar('title', $title); - $download->setVar('status', $status); - $download->setVar('size', $size); - $download->setVar('screenshot', $screenshot); - $download->setVar('screenshot2', $screenshot2); - $download->setVar('screenshot3', $screenshot3); - $download->setVar('screenshot4', $screenshot4); - $download->setVar('platform', trim($_POST["platform"])); - $download->setVar('summary', trim($_POST["summary"])); - $download->setVar('description', trim($_POST["description"])); - $download->setVar('submitter', trim($_POST["submitter"])); - $download->setVar('publisher', trim($_POST["publisher"])); - $download->setVar('price', trim($_POST["price"])); - if (!$xoopsModuleConfig['enable_mirrors']) { - $download->setVar('mirror', formatURL(trim($_POST["mirror"]))); - } - $download->setVar('license', trim($_POST["license"])); - $download->setVar('features', trim($_POST["features"])); - $download->setVar('requirements', trim($_POST["requirements"])); - $limitations = (isset($_POST["limitations"])) ? $_POST["limitations"] : ''; - $download->setVar('limitations', $limitations); - $versiontypes = (isset($_POST["versiontypes"])) ? $_POST["versiontypes"] : ''; - $download->setVar('versiontypes', $versiontypes); - - $dhistory = (isset($_POST["dhistory"])) ? $_POST["dhistory"] : ''; - $dhistoryhistory = (isset($_POST["dhistoryaddedd"])) ? $_POST["dhistoryaddedd"] : ''; - - if ($lid > 0 && !empty($dhistoryhistory)) - { - $dhistory = $dhistory . "\n\n"; - $time = time(); - $dhistory .= _AM_WFD_FILE_HISTORYVERS . $version . _AM_WFD_FILE_HISTORDATE . formatTimestamp($time, $xoopsModuleConfig['dateformat']) . "\n\n"; - $dhistory .= $dhistoryhistory; - } - $download->setVar('dhistory', $dhistory); - $download->setVar('dhistoryhistory', $dhistoryhistory); - - $updated = (isset($_POST['was_published']) && $_POST['was_published'] == 0) ? 0 : time(); - - if ($_POST['up_dated'] == 0) { - $updated = 0; - } - $download->setVar('updated', $updated); - - $offline = ($_POST['offline'] == 1) ? 1 : 0; - $download->setVar('offline', $offline); - $approved = (isset($_POST['approved']) && $_POST['approved'] == 1) ? 1 : 0; - $notifypub = (isset($_POST['notifypub']) && $_POST['notifypub'] == 1); - - $expiredate = 0; - if (!$lid) - { - $publishdate = time(); - } - else - { - $publishdate = $_POST['was_published']; - $expiredate = $_POST['was_expired']; - } - - if ($approved == 1 && empty($publishdate)) - { - $publishdate = time(); - } - - if (isset($_POST['publishdateactivate'])) - { - $publishdate = strtotime($_POST['published']['date']) + $_POST['published']['time']; - } - if ($_POST['clearpublish']) - { - $publishdate = $download->getVar('published'); - } - - if (isset($_POST['expiredateactivate'])) - { - $expiredate = strtotime($_POST['expired']['date']) + $_POST['expired']['time']; - } - if ($_POST['clearexpire']) - { - $expiredate = '0'; - } - - $download->setVar('expired', $expiredate); - $download->setVar('published', $publishdate); - $download->setVar('date', time()); - /** - * Update or insert download data into database - */ - if (!$lid) - { - $download->setVar('ipaddress', $_SERVER['REMOTE_ADDR']); - } - - - // added - start - March 4 2006 - jpc - $category_handler = xoops_getmodulehandler('category'); - $category = $category_handler->get($cid); - $fid = $category->getVar('formulize_fid'); - if($fid) { - global $xoopsUser; - include_once XOOPS_ROOT_PATH . "/modules/formulize/include/formread.php"; - include_once XOOPS_ROOT_PATH . "/modules/formulize/include/functions.php"; - - $formulize_mgr =& xoops_getmodulehandler('elements', 'formulize'); - - if ($lid) { - $entries[$fid][0] = $download->getVar('formulize_idreq'); - if($entries[$fid][0]) { - $owner = getEntryOwner($entries[$fid][0]); - } else { - print "no idreq"; - $entries[$fid][0] = ""; - $owner = ""; - } - $cid = $download->getVar('cid'); - } else { - $entries[$fid][0] = ""; - $owner = ""; - } - $member_handler =& xoops_gethandler('member'); - $owner_groups =& $member_handler->getGroupsByUser($owner, FALSE); - $uid = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0; - $groups = $xoopsUser ? $xoopsUser->getGroups() : array(0=>XOOPS_GROUP_ANONYMOUS); - $entries = handleSubmission($formulize_mgr, $entries, $uid, $owner, $fid, $owner_groups, $groups, "new"); // "new" causes xoops token check to be skipped, since WF-downloads should be doing that - - //if (!$lid) - if(!$owner) - { - $id_req = $entries[$fid][0]; - $download->setVar('formulize_idreq', $id_req); - } - } - // added - end - March 4 2006 - jpc - - - $download_handler->insert($download); - $newid = intval($download->getVar('lid')); - /** - * Send notifications - */ - if (!$lid) - { - $tags = array(); - $tags['FILE_NAME'] = $title; - $tags['FILE_URL'] = WFDOWNLOADS_URL.'singlefile.php?cid=' . $cid . '&lid=' . $newid; - - // changed - start - March 4 2006 - jpc - //$category_handler = xoops_getmodulehandler('category'); - //$category = $category_handler->get($cid); - // changed - end - March 4 2006 - jpc - $tags['CATEGORY_NAME'] = $category->getVar('title'); - $tags['CATEGORY_URL'] = WFDOWNLOADS_URL.'viewcat.php?cid=' . $cid; - $notification_handler = & xoops_gethandler('notification'); - $notification_handler -> triggerEvent('global', 0, 'new_file', $tags); - $notification_handler -> triggerEvent('category', $cid, 'new_file', $tags); - } - if ($lid && $approved && $notifypub) - { - $tags = array(); - $tags['FILE_NAME'] = $title; - $tags['FILE_URL'] = WFDOWNLOADS_URL.'singlefile.php?cid=' . $cid . '&lid=' . $lid; - $category_handler = xoops_getmodulehandler('category'); - $category = $category_handler->get($cid); - $tags['CATEGORY_NAME'] = $category->getVar('title'); - $tags['CATEGORY_URL'] = WFDOWNLOADS_URL.'viewcat.php?cid=' . $cid; - $notification_handler = & xoops_gethandler('notification'); - $notification_handler -> triggerEvent('global', 0, 'new_file', $tags); - $notification_handler -> triggerEvent('category', $cid, 'new_file', $tags); - $notification_handler -> triggerEvent('file', $lid, 'approve', $tags); - } - $message = (!$lid) ? _AM_WFD_FILE_NEWFILEUPLOAD : _AM_WFD_FILE_FILEMODIFIEDUPDATE ; - $message = ($lid && !$_POST['was_published'] && $approved) ? _AM_WFD_FILE_FILEAPPROVED : $message; - - redirect_header(WFDOWNLOADS_URL.'admin/index.php', 1, $message); -} -// Page start here - -$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'main'; - -switch ($op) -{ - case "addDownload": - addDownload(); - break; - - case "Download": - Download(); - break; - - case "delDownload": - - global $xoopsModule, $xoopsModuleConfig; - $confirm = (isset($_REQUEST['confirm'])) ? 1 : 0; - $lid = (isset($_GET['lid'])) ? intval($_GET['lid']) : 0; - $lid = (isset($_POST['lid'])) ? intval($_POST['lid']) : $lid; - $download_handler = xoops_getmodulehandler('download'); - $download = $download_handler->get($lid); - $title = $download->getVar('title'); - if ($confirm) - { - $file = $xoopsModuleConfig['uploaddir'] . "/" . $download->getVar('filename'); - if (is_file($file)) - { - @chmod($file, 0777); - @unlink($file); - } - $download_handler->delete($download); - redirect_header(WFDOWNLOADS_URL.'admin/index.php', 1, sprintf(_AM_WFD_FILE_FILEWASDELETED, $title)); - exit(); - } - else - { - wfdownloads_xoops_cp_header(); - xoops_confirm(array('op' => 'delDownload', 'lid' => $lid, 'confirm' => 1, 'title' => $title), 'index.php', _AM_WFD_FILE_REALLYDELETEDTHIS . "<br /><br>" . $title, _DELETE); - xoops_cp_footer(); - } - break; - case "delVote": - delVote(); - break; - - // added - start - March 4 2006 - jpc - case "patch_formulize": - patch_formulize(); - break; - // added - end - March 4 2006 - jpc - case 'main': - default: - - global $xoopsUser, $xoopsDB, $xoopsConfig; - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; - $start = isset($_GET['start']) ? intval($_GET['start']) : 0; - $start1 = isset($_GET['start1']) ? intval($_GET['start1']) : 0; - $start2 = isset($_GET['start2']) ? intval($_GET['start2']) : 0; - $start3 = isset($_GET['start3']) ? intval($_GET['start3']) : 0; - $start4 = isset($_GET['start4']) ? intval($_GET['start4']) : 0; - $totalcats = wfd_totalcategory(); - - $report_handler = xoops_getmodulehandler('report'); - $review_handler = xoops_getmodulehandler('review'); - $mirror_handler = xoops_getmodulehandler('mirror'); - $modification_handler = xoops_getmodulehandler('modification'); - $download_handler = xoops_getmodulehandler('download'); - - $totalbrokendownloads = $report_handler->getCount(); - $totalmodrequests = $modification_handler->getCount(); - $newreviews = $review_handler->getCount(); - $newmirrors = $mirror_handler->getCount(); - $totalnewdownloads = $download_handler->getCount(new Criteria("published", 0)); - $totaldownloads = $download_handler->getCount(new Criteria("published", 0, ">")); - - wfdownloads_xoops_cp_header(); - wfdownloads_adminMenu(0, _AM_WFD_BINDEX); - - echo " - <fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_WFD_MINDEX_DOWNSUMMARY . "</legend>\n - <div style='padding: 8px;'><small>\n - <a href='category.php'>" . _AM_WFD_SCATEGORY . "</a><b>" . $totalcats . "</b> | \n - <a href='index.php'>" . _AM_WFD_SFILES . "</a><b>" . $totaldownloads . "</b> | \n - <a href='newdownloads.php'>" . _AM_WFD_SNEWFILESVAL . "</a><b>" . $totalnewdownloads . "</b> | \n - <a href='modifications.php'>" . _AM_WFD_SMODREQUEST . "</a><b>" . $totalmodrequests . "</b> | \n - <a href='brokendown.php'>" . _AM_WFD_SBROKENSUBMIT . "</a><b>" . $totalbrokendownloads . "</b> | \n - <a href='review.php'>" . _AM_WFD_SREVIEWS . "</a><b>" . $newreviews . "</b> | \n - <a href='mirror.php'>" . _AM_WFD_SMIRRORS . "</a><b>" . $newmirrors . "</b>\n - </small></div></fieldset><br />\n - "; - wfd_serverstats(); - - if ($totaldownloads > 0) - { - $criteria = new CriteriaCompo(); - $criteria->setLimit($xoopsModuleConfig['admin_perpage']); - $criteria->setStart($start); - $criteria->setSort("published"); - $criteria->setOrder("DESC"); - $published_array = $download_handler->getActiveDownloads($criteria); - $published_array_count = $download_handler->getActiveCount(); - - wfd_downlistheader(_AM_WFD_MINDEX_PUBLISHEDDOWN); - if ($published_array_count > 0) - { - foreach (array_keys($published_array) as $i) - { - wfd_downlistbody($published_array[$i]->toArray()); - } - } - else - { - wfd_downlistfooter(); - } - wfd_downlistpagenav($published_array_count, $start, 'art'); - /** - * Auto Publish - */ - $criteria = new Criteria("published", time(), ">"); - $auto_publish_count = $download_handler->getCount($criteria); - $criteria->setSort("published"); - $criteria->setOrder("ASC"); - $criteria->setLimit($xoopsModuleConfig['admin_perpage']); - $criteria->setStart($start2); - $auto_published_array = $download_handler->getObjects($criteria); - - wfd_downlistheader(_AM_WFD_MINDEX_AUTOPUBLISHEDDOWN); - if ($auto_publish_count > 0) - { - foreach (array_keys($auto_published_array) as $i) - { - wfd_downlistbody($auto_published_array[$i]->toArray()); - } - } - else - { - wfd_downlistfooter(); - } - wfd_downlistpagenav($auto_publish_count, $start2, 'art2'); - /** - * Expired downloads - */ - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria("expired", time(), "<"), 'AND'); - $criteria->add(new Criteria("expired", 0, "<>"), 'AND'); - $expired_count = $download_handler->getCount($criteria); - $criteria->setSort("expired"); - $criteria->setOrder("ASC"); - $criteria->setLimit($xoopsModuleConfig['admin_perpage']); - $criteria->setStart($start3); - $expired_array = $download_handler->getObjects($criteria); - - wfd_downlistheader("Expired"); - if ($expired_count > 0) - { - foreach (array_keys($expired_array) as $i) - { - wfd_downlistbody($expired_array[$i]->toArray()); - } - } - else - { - wfd_downlistfooter(); - } - wfd_downlistpagenav($expired_count, $start3, 'art3'); - /** - * Offline download - */ - - $criteria = new Criteria("offline", 1); - $offline_count = $download_handler->getCount($criteria); - $criteria->setSort("published"); - $criteria->setOrder("ASC"); - $criteria->setLimit($xoopsModuleConfig['admin_perpage']); - $criteria->setStart($start4); - $offline_array = $download_handler->getObjects($criteria); - - wfd_downlistheader(_AM_WFD_MINDEX_OFFLINEDOWN); - if ($offline_count > 0) - { - foreach (array_keys($offline_array) as $i) - { - wfd_downlistbody($offline_array[$i]->toArray()); - } - } - else - { - wfd_downlistfooter(); - } - wfd_downlistpagenav($offline_count, $start4, 'art4'); - } - xoops_cp_footer(); - break; -} - - - -// added - start - March 4 2006 - jpc -function patch_formulize() -{ - if(!isset($_POST['patch_formulize'])) { - print "<form action=\"index.php?op=patch_formulize\" method=post>"; - print "<input type = submit name=patch_formulize value=\"Apply Patch for Formulize\">"; - print "</form>"; - } else { - global $xoopsDB; - - $sqls[] = "ALTER TABLE " . $xoopsDB->prefix("wfdownloads_cat") . " ADD formulize_fid int(5) NOT NULL default '0';"; - $sqls[] = "ALTER TABLE " . $xoopsDB->prefix("wfdownloads_downloads") . " ADD formulize_idreq int(5) NOT NULL default '0';"; - - foreach($sqls as $sql) - if(!$result = $xoopsDB->queryF($sql)) - exit("Error patching for Formulize.<br>SQL dump:<br>" . $sql . "<br>Please contact <a href=su...@fr...>Freeform Solutions</a> for assistance."); - - print "Patching for Formulize completed."; - } -} -// added - end - March 4 2006 - jpc -?> \ No newline at end of file +<?php +/* + * 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 + * which is considered copyrighted (c) material of the original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * 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 GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) + * @package + * @since + * @author XOOPS Development Team + * @version $Id $ + */ + + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); + +//-------------------------- +$report_handler = xoops_getmodulehandler('report'); + $review_handler = xoops_getmodulehandler('review'); + $mirror_handler = xoops_getmodulehandler('mirror'); + $modification_handler = xoops_getmodulehandler('modification'); + $download_handler = xoops_getmodulehandler('download'); + + +$totalcats = wfd_totalcategory(); + $totalbrokendownloads = $report_handler->getCount(); + $totalmodrequests = $modification_handler->getCount(); + $newreviews = $review_handler->getCount(); + $newmirrors = $mirror_handler->getCount(); + $totalnewdownloads = $download_handler->getCount(new Criteria("published", 0)); + $totaldownloads = $download_handler->getCount(new Criteria("published", 0, ">")); + +$indexAdmin->addInfoBox(_AM_WFD_MINDEX_DOWNSUMMARY); + +if ($totalcats > 0) { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . '<a href="category.php">' . _AM_WFD_SCATEGORY . '</a><b>' + . "</infolabel>", $totalcats, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . _AM_WFD_SCATEGORY . "</infolabel>", $totalcats, 'Green' + ); +} + +if ($totaldownloads > 0) { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . '<a href="main.php">' . _AM_WFD_SFILES . '</a><b>' + . "</infolabel>", $totaldownloads, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . _AM_WFD_SFILES . "</infolabel>", $totaldownloads, 'Green' + ); +} + +if ($totalnewdownloads > 0) { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . '<a href="newdownloads.php">' . _AM_WFD_SNEWFILESVAL . '</a><b>' + . "</infolabel>", $totalnewdownloads, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . _AM_WFD_SNEWFILESVAL . "</infolabel>", $totalnewdownloads, 'Green' + ); +} + +if ($totalmodrequests > 0) { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . '<a href="modifications.php">' . _AM_WFD_SMODREQUEST . '</a><b>' + . "</infolabel>", $totalmodrequests, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . _AM_WFD_SMODREQUEST . "</infolabel>", $totalmodrequests, 'Green' + ); +} + +if ($totalbrokendownloads > 0) { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . '<a href="brokendown.php">' . _AM_WFD_SBROKENSUBMIT . '</a><b>' + . "</infolabel>", $totalbrokendownloads, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . _AM_WFD_SBROKENSUBMIT . "</infolabel>", $totalbrokendownloads, 'Green' + ); +} + +if ($newreviews > 0) { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . '<a href="review.php">' . _AM_WFD_SREVIEWS . '</a><b>' + . "</infolabel>", $newreviews, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_WFD_MINDEX_DOWNSUMMARY, "<infolabel>" . ... [truncated message content] |
From: <be...@us...> - 2012-08-01 00:50:54
|
Revision: 9968 http://xoops.svn.sourceforge.net/xoops/?rev=9968&view=rev Author: beckmi Date: 2012-08-01 00:50:47 +0000 (Wed, 01 Aug 2012) Log Message: ----------- Updating language constants Modified Paths: -------------- XoopsModules/wfdownloads/trunk/wfdownloads/admin/menu.php XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/menu.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/admin/menu.php 2012-07-31 22:44:26 UTC (rev 9967) +++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/menu.php 2012-08-01 00:50:47 UTC (rev 9968) @@ -80,10 +80,10 @@ $adminmenu[$i]['link'] = "admin/import.php"; $adminmenu[$i]["icon"] = $pathIcon32 . '/add.png'; $i++; -$adminmenu[$i]['title'] = _AM_WFD_HELP; +$adminmenu[$i]['title'] = _MI_WFD_HELP; $adminmenu[$i]['link'] = "docs/english/readme.html"; $adminmenu[$i]["icon"] = $pathIcon32 . '/help.png'; $i++; -$adminmenu[$i]['title'] = _AM_WFD_ABOUT; +$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; $adminmenu[$i]['link'] = "admin/about.php"; $adminmenu[$i]["icon"] = $pathIcon32 . '/about.png'; \ No newline at end of file Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php 2012-07-31 22:44:26 UTC (rev 9967) +++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php 2012-08-01 00:50:47 UTC (rev 9968) @@ -307,4 +307,5 @@ //3.21 -define("_MI_WFD_DB_IMPORT", "Import"); \ No newline at end of file +define("_MI_WFD_DB_IMPORT", "Import"); +define("_MI_WFD_HELP", "Help"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-08-02 22:32:14
|
Revision: 9979 http://xoops.svn.sourceforge.net/xoops/?rev=9979&view=rev Author: beckmi Date: 2012-08-02 22:32:08 +0000 (Thu, 02 Aug 2012) Log Message: ----------- Bug fixing by Zyspec Modified Paths: -------------- XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt XoopsModules/wfdownloads/trunk/wfdownloads/index.php XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php Modified: XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2012-08-02 08:28:59 UTC (rev 9978) +++ XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2012-08-02 22:32:08 UTC (rev 9979) @@ -1,6 +1,8 @@ <b><u>=> Version 3.21 Beta 1 (2012-07-30)</u></b> -Converted to XOOPS 2.5.5 Admin GUI (mamba) +- Converted to XOOPS 2.5.5 Admin GUI (mamba) +- Fixed delete issue (jcweb/zyspec) +- Fixed RSS issue (jagibu/zyspec) <b><u>=> Version 3.2 RC2 (2007-04-23)</u></b> Modified: XoopsModules/wfdownloads/trunk/wfdownloads/index.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/index.php 2012-08-02 08:28:59 UTC (rev 9978) +++ XoopsModules/wfdownloads/trunk/wfdownloads/index.php 2012-08-02 22:32:08 UTC (rev 9979) @@ -149,8 +149,10 @@ if($xoopsModuleConfig['enablerss'] == 1) { - $rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php", _MD_WFD_LEGENDTEXTRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTRSS); - $xoopsTpl->assign('full_rssfeed_link', $rsslink); + //$rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php", _MD_WFD_LEGENDTEXTRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTRSS); $xoopsTpl->assign('full_rssfeed_link', $rsslink); + + $rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php", _MD_WFD_LEGENDTEXTRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTRSS, _MD_WFD_LEGENDTEXTRSS, '' ); //changed by Zyspec + } include 'footer.php'; Modified: XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php 2012-08-02 08:28:59 UTC (rev 9978) +++ XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php 2012-08-02 22:32:08 UTC (rev 9979) @@ -256,8 +256,8 @@ if($xoopsModuleConfig['enablerss'] == 1 && $total_numrows > 0) { - $rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border='0' alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php?cid=".intval($cid), _MD_WFD_LEGENDTEXTCATRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTCATRSS); - $xoopsTpl->assign('cat_rssfeed_link', $rsslink); + //$rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border='0' alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php?cid=".intval($cid), _MD_WFD_LEGENDTEXTCATRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTCATRSS); $xoopsTpl->assign('cat_rssfeed_link', $rsslink); + $rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border='0' alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php?cid=".intval($cid), _MD_WFD_LEGENDTEXTCATRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTCATRSS, '' ); //changed by Zyspec } $xoopsTpl->assign('module_home', wfdownloads_module_home(true)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |