From: <ja...@us...> - 2012-08-14 20:21:23
|
Revision: 10070 http://xoops.svn.sourceforge.net/xoops/?rev=10070&view=rev Author: jagibu Date: 2012-08-14 20:21:14 +0000 (Tue, 14 Aug 2012) Log Message: ----------- removed clas/about.php removed =& admin menu fix (temp solution) show all in partners.php fixed mysql.sql other Modified Paths: -------------- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/about.php XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/admin.php XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/category.php XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/import.php XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/index.php XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/partner.php XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/xoopspartners.php XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php.tortoise.removed XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/random_partner.php XoopsModules/smartpartner/branches/jagibu/smartpartner/class/category.php XoopsModules/smartpartner/branches/jagibu/smartpartner/class/object.php XoopsModules/smartpartner/branches/jagibu/smartpartner/class/partner.php XoopsModules/smartpartner/branches/jagibu/smartpartner/class/smartdbupdater.php XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt XoopsModules/smartpartner/branches/jagibu/smartpartner/include/blocksadmin.inc.php XoopsModules/smartpartner/branches/jagibu/smartpartner/include/common.php XoopsModules/smartpartner/branches/jagibu/smartpartner/include/displayitems.php XoopsModules/smartpartner/branches/jagibu/smartpartner/include/functions.php XoopsModules/smartpartner/branches/jagibu/smartpartner/include/metagen.php XoopsModules/smartpartner/branches/jagibu/smartpartner/include/search.inc.php XoopsModules/smartpartner/branches/jagibu/smartpartner/join.php XoopsModules/smartpartner/branches/jagibu/smartpartner/language/english/mail_template/global_partner_submitted.tpl XoopsModules/smartpartner/branches/jagibu/smartpartner/language/english/mail_template/partner_approved.tpl XoopsModules/smartpartner/branches/jagibu/smartpartner/language/polish/admin.php XoopsModules/smartpartner/branches/jagibu/smartpartner/language/polish/common.php XoopsModules/smartpartner/branches/jagibu/smartpartner/language/polish/mail_template/global_offer_new.tpl XoopsModules/smartpartner/branches/jagibu/smartpartner/language/polish/mail_template/global_partner_new.tpl XoopsModules/smartpartner/branches/jagibu/smartpartner/language/polish/mail_template/global_partner_submitted.tpl XoopsModules/smartpartner/branches/jagibu/smartpartner/language/polish/mail_template/partner_approved.tpl XoopsModules/smartpartner/branches/jagibu/smartpartner/makepdf.php XoopsModules/smartpartner/branches/jagibu/smartpartner/sql/mysql.sql XoopsModules/smartpartner/branches/jagibu/smartpartner/xoops_version.php Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/about.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/about.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/about.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -1,17 +1,35 @@ <?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. + */ /** -* $Id: about.php,v 1.8 2006/01/27 16:20:53 malanciault Exp $ -* Module: SmartPartner -* Author: The SmartFactory <www.smartfactory.ca> -* Licence: GNU -*/ + * @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("admin_header.php"); -include_once(SMARTPARTNER_ROOT_PATH . "class/about.php"); -$aboutObj = new SmartpartnerAbout(_AM_SPARTNER_ABOUT); -$aboutObj->render(); +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 Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/admin.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/admin.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/admin.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -47,7 +47,7 @@ $admintest = 0; if (is_object($xoopsUser)) { - $xoopsModule =& XoopsModule::getByDirname("system"); + $xoopsModule = XoopsModule::getByDirname("system"); if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { redirect_header(XOOPS_URL.'/user.php',3,_NOPERM); exit(); @@ -77,11 +77,11 @@ include XOOPS_ROOT_PATH."/modules/system/language/english/admin/".$fct.".php"; } include XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/xoops_version.php"; - $sysperm_handler =& xoops_gethandler('groupperm'); + $sysperm_handler = xoops_gethandler('groupperm'); $category = !empty($modversion['category']) ? intval($modversion['category']) : 0; unset($modversion); if ($category > 0) { - $groups =& $xoopsUser->getGroups(); + $groups = $xoopsUser->getGroups(); if (in_array(XOOPS_GROUP_ADMIN, $groups) || false != $sysperm_handler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))){ // if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/main.php")) { // include_once XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/main.php"; GIJ @@ -118,8 +118,8 @@ $groups = $xoopsUser->getGroups(); $all_ok = false; if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { - $sysperm_handler =& xoops_gethandler('groupperm'); - $ok_syscats =& $sysperm_handler->getItemIds('system_admin', $groups); + $sysperm_handler = xoops_gethandler('groupperm'); + $ok_syscats = $sysperm_handler->getItemIds('system_admin', $groups); } else { $all_ok = true; } Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/category.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/category.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/category.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -102,14 +102,17 @@ $image_select = new XoopsFormSelect( '', 'image', $categoryObj->image() ); $image_select -> addOption ('-1', '---------------'); $image_select -> addOptionArray( $image_array ); + $image_select -> setExtra( "onchange='showImgSelected(\"image3\", \"image\", \"" . 'uploads/smartpartner/images/category/' . "\", \"\", \"" . XOOPS_URL . "\")'" ); - $image_tray = new XoopsFormElementTray( _AM_SPARTNER_CATEGORY_IMAGE, ' ' ); + + $image_tray = new XoopsFormElementTray( _AM_SPARTNER_CATEGORY_IMAGE, ' ' ); $image_tray -> addElement( $image_select ); $image_tray -> addElement( new XoopsFormLabel( '', "<br /><br /><img src='" . smartpartner_getImageDir('category', false) .$categoryObj->image() . "' name='image3' id='image3' alt='' />" ) ); $image_tray->setDescription(_AM_SPARTNER_CATEGORY_IMAGE_DSC); $sform -> addElement( $image_tray ); - // IMAGE UPLOAD + // TODO options size + // IMAGE UPLOAD $max_size = 5000000; $file_box = new XoopsFormFile(_AM_SPARTNER_CATEGORY_IMAGE_UPLOAD, "image_file", $max_size); $file_box->setExtra( "size ='45'") ; @@ -308,8 +311,11 @@ $max_size = $xoopsModuleConfig['maximum_imagesize']; $max_imgwidth = $xoopsModuleConfig['img_max_width']; $max_imgheight = $xoopsModuleConfig['img_max_height']; - $allowed_mimetypes = smartpartner_getAllowedImagesTypes(); + // FIXME mimetypes + //$allowed_mimetypes = smartpartner_getAllowedImagesTypes(); + $allowed_mimetypes = null; + include_once(XOOPS_ROOT_PATH."/class/uploader.php"); if( $_FILES[$filename]['tmp_name'] == "" || ! is_readable( $_FILES[$filename]['tmp_name'] ) ) { @@ -387,7 +393,7 @@ // smartpartner_xoops_cp_header(); - $categoryObj =& $smartpartner_category_handler->create(); + $categoryObj = $smartpartner_category_handler->create(); $categoryObj->setVar('name', $_POST['name']); $categoryObj->setVar('description', $_POST['description']); $categoryObj->setVar('weight', $_POST['weight']); @@ -428,7 +434,7 @@ } else { // no confirm: show deletion condition $categoryid = (isset($_GET['categoryid'])) ? intval($_GET['categoryid']) : 0; - xoops_cp_header(); +// xoops_cp_header(); xoops_confirm(array('op' => 'del', 'categoryid' => $categoryObj->categoryid(), 'confirm' => 1, 'name' => $categoryObj->name()), 'category.php', _AM_SPARTNER_CATEGORY_DELETE . " '" . $categoryObj->name() . "'. <br /> <br />" . _AM_SPARTNER_CATEGORY_DELETE_CONFIRM, _AM_SPARTNER_DELETE); xoops_cp_footer(); } @@ -485,7 +491,6 @@ break; } -smartpartner_modFooter(); -xoops_cp_footer(); +include 'admin_footer.php'; ?> \ No newline at end of file Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/import.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/import.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/import.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -61,7 +61,7 @@ include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; - $module_handler =& xoops_gethandler ('module'); + $module_handler = xoops_gethandler ('module'); If ($module_handler->getByDirname('xoopspartners')) { $importfile_select_array["xoopspartners"] = _AM_SPARTNER_IMPORT_XOOPSPARTNERS_110; } Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/index.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/index.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/index.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -6,11 +6,87 @@ xoops_cp_header(); $indexAdmin = new ModuleAdmin(); -echo $indexAdmin->addNavigation('index.php'); -echo $indexAdmin->renderIndex(); -smartpartner_modFooter(); +$folder = array( + XOOPS_ROOT_PATH . '/uploads/smartpartner/images/', + XOOPS_ROOT_PATH . '/uploads/smartpartner/images/category/', +); +//--------------------- +// Creating the Partner handler object +$smartpartner_partner_handler =& smartpartner_gethandler('partner'); + +//smartpartner_adminMenu(0, _AM_SPARTNER_INDEX); + +// Total Partners -- includes everything on the table +$totalpartners = $smartpartner_partner_handler->getPartnerCount(_SPARTNER_STATUS_ALL); + +// Total Submitted Partners +$totalsubmitted = $smartpartner_partner_handler->getPartnerCount(_SPARTNER_STATUS_SUBMITTED); + +// Total active Partners +$totalactive = $smartpartner_partner_handler->getPartnerCount(_SPARTNER_STATUS_ACTIVE); + +// Total inactive Partners +$totalinactive = $smartpartner_partner_handler->getPartnerCount(_SPARTNER_STATUS_INACTIVE); + +// Total rejected Partners +$totalrejected = $smartpartner_partner_handler->getPartnerCount(_SPARTNER_STATUS_REJECTED); + +//create info block +$indexAdmin->addInfoBox(_AM_SPARTNER_INVENTORY); + +if ($totalsubmitted > 0) { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . '<a href="partner.php">' . _AM_SPARTNER_TOTAL_SUBMITTED . '</a>' + . " %s </infolabel>", $totalsubmitted, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . _AM_SPARTNER_TOTAL_SUBMITTED . " %s </infolabel>", 0, 'Green' + ); +} +if ($totalactive > 0) { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . '<a href="partner.php">' . _AM_SPARTNER_TOTAL_ACTIVE . '</a>' + . " %s </infolabel>", $totalactive, 'Green', 'default' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" ._AM_SPARTNER_TOTAL_ACTIVE . " %s </infolabel>", 0, 'Green' + ); +} +if ($totalrejected > 0) { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . '<a href="partner.php">' . _AM_SPARTNER_TOTAL_REJECTED . '</a>' + . " %s </infolabel>", $totalrejected, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . _AM_SPARTNER_TOTAL_REJECTED . " %s </infolabel>", 0, 'Green' + ); +} +if ($totalinactive > 0) { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . '<a href="partner.php">' . _AM_SPARTNER_TOTAL_INACTIVE . '</a>' + . " %s </infolabel>", $totalinactive, 'Green' + ); +} else { + $indexAdmin->addInfoBoxLine( + _AM_SPARTNER_INVENTORY, "<infolabel>" . _AM_SPARTNER_TOTAL_INACTIVE . " %s </infolabel>", 0, 'Green' + ); +} +//--------------------- + +foreach (array_keys( $folder) as $i) { + $indexAdmin->addConfigBoxLine($folder[$i], 'folder'); + $indexAdmin->addConfigBoxLine(array($folder[$i], '777'), 'chmod'); +} + + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + include 'admin_footer.php'; Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/partner.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/partner.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/partner.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -19,7 +19,7 @@ { global $xoopsDB, $smartpartner_partner_handler, $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule; if (!isset($smartpartner_partner_handler)) { - $smartpartner_partner_handler =& smartpartner_gethandler('partner'); + $smartpartner_partner_handler = smartpartner_gethandler('partner'); } include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; // If there is a parameter, and the id exists, retrieve data: we're editing a partner @@ -84,7 +84,7 @@ smartpartner_collapsableBar('editpartner', 'editpartmericon', $page_title, $page_info); } else { // there's no parameter, so we're adding a partner - $partnerObj =& $smartpartner_partner_handler->create(); + $partnerObj = $smartpartner_partner_handler->create(); $breadcrumb_action1 = _AM_SPARTNER_PARTNERS; $breadcrumb_action2 = _AM_SPARTNER_CREATE; $button_caption = _AM_SPARTNER_CREATE; @@ -258,32 +258,24 @@ $startpartner = isset($_GET['startpartner']) ? intval($_GET['startpartner']) : 0; if (!isset($smartpartner_partner_handler)) { - $smartpartner_partner_handler =& smartpartner_gethandler('partner'); + $smartpartner_partner_handler = smartpartner_gethandler('partner'); } /* -- Available operations -- */ switch ($op) { case "add": - -// xoops_cp_header(); include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; - editpartner(true, 0); break; case "mod": - Global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule; $id = (isset($_GET['id'])) ? $_GET['id'] : 0; - -// xoops_cp_header(); include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; - editpartner(true, $id); break; case "addpartner": global $xoopsUser; - if (!$xoopsUser) { if ($xoopsModuleConfig['anonpost'] == 1) { $uid = 0; @@ -314,12 +306,15 @@ $max_size = 10000000; $max_imgwidth = $xoopsModuleConfig['img_max_width']; $max_imgheight = $xoopsModuleConfig['img_max_height']; - //$allowed_mimetypes = smartpartner_getAllowedMimeTypes(); + // FIXME + // $allowed_mimetypes = smartpartner_getAllowedMimeTypes(); + $allowed_mimetypes = null ; + include_once(XOOPS_ROOT_PATH."/class/uploader.php"); if( $_FILES[$filename]['tmp_name'] == "" || ! is_readable( $_FILES[$filename]['tmp_name'] ) ) { - redirect_header( 'javascript:history.go(-1)' , 2, _CO_SPARTNER_FILE_UPLOAD_ERROR ) ; + redirect_header( 'javascript:history.go(-1)' , 10, _CO_SPARTNER_FILE_UPLOAD_ERROR ) ; exit ; } @@ -333,7 +328,7 @@ $partnerObj->setVar('image', $uploader->getSavedFileName()); } else { - redirect_header( 'javascript:history.go(-1)' , 2, _CO_SPARTNER_FILE_UPLOAD_ERROR . $uploader->getErrors() ) ; + redirect_header( 'javascript:history.go(-1)' , 10, _CO_SPARTNER_FILE_UPLOAD_ERROR . $uploader->getErrors() ) ; exit ; } } @@ -401,7 +396,6 @@ } else { // no confirm: show deletion condition $id = (isset($_GET['id'])) ? intval($_GET['id']) : 0; - // xoops_cp_header(); xoops_confirm(array('op' => 'del', 'id' => $partnerObj->id(), 'confirm' => 1, 'name' => $partnerObj->title()), 'partner.php', _AM_SPARTNER_DELETETHISP . " <br />'" . $partnerObj->title() . "' <br /> <br />", _AM_SPARTNER_DELETE); xoops_cp_footer(); } @@ -411,9 +405,7 @@ case "default": default: -// smartpartner_xoops_cp_header(); -// smartpartner_adminMenu(2, _AM_SPARTNER_PARTNERS); echo "<br />\n"; echo "<form><div style=\"margin-bottom: 12px;\">"; @@ -430,8 +422,12 @@ // Get the total number of published PARTNER $totalpartners = $smartpartner_partner_handler->getPartnerCount(_SPARTNER_STATUS_ACTIVE); + // creating the partner objects that are published - $partnersObj = $smartpartner_partner_handler->getPartners($xoopsModuleConfig['perpage_admin'], $startpartner); +// $partnersObj = $smartpartner_partner_handler->getPartners($xoopsModuleConfig['perpage_admin'], $startpartner); + // TODO oddzielne tabele wg statusu partnera + $partnersObj = $smartpartner_partner_handler->getPartners( $xoopsModuleConfig['perpage_admin'], $startpartner, _SPARTNER_STATUS_ALL ); + $totalPartnersOnPage = count($partnersObj); echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'>"; @@ -472,7 +468,7 @@ break; } -smartpartner_modFooter(); -xoops_cp_footer(); +include 'admin_footer.php'; + ?> \ No newline at end of file Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/xoopspartners.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/xoopspartners.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/admin/xoopspartners.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -67,7 +67,7 @@ $cnt_imported_partner = 0; - $smartpartner_partner_handler =& smartpartner_gethandler('partner'); + $smartpartner_partner_handler = smartpartner_gethandler('partner'); @@ -77,7 +77,7 @@ extract ($arrPartners, EXTR_PREFIX_ALL, 'xpartner'); // insert partner into SmartPartner - $partnerObj =& $smartpartner_partner_handler->create(); + $partnerObj = $smartpartner_partner_handler->create(); if ($xpartner_status == 0) { $xpartner_status = _SPARTNER_STATUS_INACTIVE; Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -15,11 +15,11 @@ include_once (XOOPS_ROOT_PATH."/modules/smartpartner/include/common.php"); // Creating the partner handler object - $smartpartner_partner_handler =& smartpartner_gethandler('partner'); - $smartpartner_category_handler =& smartpartner_gethandler('category'); + $smartpartner_partner_handler = smartpartner_gethandler('partner'); + $smartpartner_category_handler = smartpartner_gethandler('category'); // Randomize - $partnersObj =& $smartpartner_partner_handler->getPartners(0, 0, _SPARTNER_STATUS_ACTIVE); + $partnersObj = $smartpartner_partner_handler->getPartners(0, 0, _SPARTNER_STATUS_ACTIVE); If (count($partnersObj) > 1) { $key_arr = array_keys($partnersObj); $key_rand = array_rand($key_arr,count($key_arr)); @@ -54,7 +54,7 @@ } else { $partner['title'] = ''; } - $smartConfig =& smartpartner_getModuleConfig(); + $smartConfig = smartpartner_getModuleConfig(); $image_info = smartpartner_imageResize($partnersObj[$i]->getImagePath(), $smartConfig['img_max_width'], $smartConfig['img_max_height']); $partner['img_attr'] = $image_info[3]; $partner['extendedInfo'] = $partnersObj[$i]->extentedInfo(); Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php.tortoise.removed =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php.tortoise.removed 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/partners_list.php.tortoise.removed 2012-08-14 20:21:14 UTC (rev 10070) @@ -20,11 +20,11 @@ // Creating the partner handler object - $smartpartner_partner_handler =& smartpartner_gethandler('partner'); + $smartpartner_partner_handler = smartpartner_gethandler('partner'); if ($options[2]) { // Randomize - $partnersObj =& $smartpartner_partner_handler->getPartners(0, 0, _SPARTNER_STATUS_ACTIVE); + $partnersObj = $smartpartner_partner_handler->getPartners(0, 0, _SPARTNER_STATUS_ACTIVE); If (count($partnersObj) > 1) { $key_arr = array_keys($partnersObj); $key_rand = array_rand($key_arr,count($key_arr)); @@ -36,7 +36,7 @@ } } else { - $partnersObj =& $smartpartner_partner_handler->getPartners($options[3], 0, _SPARTNER_STATUS_ACTIVE, $options[5], $options[6]); + $partnersObj = $smartpartner_partner_handler->getPartners($options[3], 0, _SPARTNER_STATUS_ACTIVE, $options[5], $options[6]); If ((count($partnersObj) > 1) && ($options[2] == 1)) { $key_arr = array_keys($partnersObj); $key_rand = array_rand($key_arr,count($key_arr)); @@ -60,7 +60,7 @@ } else { $partner['title'] = ''; } - $smartConfig =& smartpartner_getModuleConfig(); + $smartConfig = smartpartner_getModuleConfig(); $image_info = smartpartner_imageResize($partnersObj[$i]->getImagePath(), $smartConfig['img_max_width'], $smartConfig['img_max_height']); $partner['img_attr'] = $image_info[3]; $partner['extendedInfo'] = $partnersObj[$i]->extentedInfo(); Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/random_partner.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/random_partner.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/blocks/random_partner.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -12,11 +12,11 @@ include_once (XOOPS_ROOT_PATH."/modules/smartpartner/include/common.php"); // Creating the partner handler object - $partner_handler =& smartpartner_gethandler('partner'); + $partner_handler = smartpartner_gethandler('partner'); // Randomize - $partnersObj =& $partner_handler->getPartners(0, 0, _SPARTNER_STATUS_ACTIVE); + $partnersObj = $partner_handler->getPartners(0, 0, _SPARTNER_STATUS_ACTIVE); If (count($partnersObj) > 0) { $key_arr = array_keys($partnersObj); $key_rand = array_rand($key_arr,1); @@ -37,7 +37,7 @@ } else { $partner['title'] = ''; } - $smartConfig =& smartpartner_getModuleConfig(); + $smartConfig = smartpartner_getModuleConfig(); $image_info = smartpartner_imageResize($partnerObj->getImagePath(), $smartConfig['img_max_width'], $smartConfig['img_max_height']); $partner['img_attr'] = $image_info[3]; $partner['extendedInfo'] = $partnerObj->extentedInfo(); Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/class/category.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/class/category.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/class/category.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -125,7 +125,7 @@ $parentid = $this->parentid(); global $smartpartner_category_handler; if ($parentid != 0) { - $parentObj =& $smartpartner_category_handler->get($parentid); + $parentObj = $smartpartner_category_handler->get($parentid); if ($parentObj->notLoaded()) { exit; } @@ -163,11 +163,11 @@ function sendNotifications() { - $hModule =& xoops_gethandler('module'); - $smartModule =& $hModule->getByDirname('smartpartner'); + $hModule = xoops_gethandler('module'); + $smartModule = $hModule->getByDirname('smartpartner'); $module_id = $smartModule->getVar('mid'); - $myts =& MyTextSanitizer::getInstance(); + $myts = MyTextSanitizer::getInstance(); $notification_handler = &xoops_gethandler('notification'); $tags = array(); @@ -218,10 +218,10 @@ // Deleting the partners global $smartpartner_partner_handler; if (!isset($smartpartner_partner_handler)) { - $smartpartner_partner_handler =& smartpartner_gethandler('partner'); + $smartpartner_partner_handler = smartpartner_gethandler('partner'); } $criteria = new Criteria('category', $category->categoryid()); - $partners =& $smartpartner_partner_handler->getObjects($criteria); + $partners = $smartpartner_partner_handler->getObjects($criteria); If ($partners) { foreach ($partners as $partner) { $smartpartner_partner_handler->delete($partner); @@ -229,7 +229,7 @@ } // Deleteing the sub categories - $subcats =& $this->getCategories(0, 0, $category->categoryid()); + $subcats = $this->getCategories(0, 0, $category->categoryid()); foreach ($subcats as $subcat) { $this->delete($subcat); } Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/class/object.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/class/object.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/class/object.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -154,11 +154,11 @@ function convertResultSet($result, $id_as_key = false, $as_object = true) { $ret = array(); while ($myrow = $this->db->fetchArray($result)) { - $obj =& $this->create(false); + $obj = $this->create(false); $obj->assignVars($myrow); if (!$id_as_key) { if ($as_object) { - $ret[] =& $obj; + $ret[] = $obj; } else { $row = array(); @@ -170,7 +170,7 @@ } } else { if ($as_object) { - $ret[$myrow[$this->keyName]] =& $obj; + $ret[$myrow[$this->keyName]] = $obj; } else { $row = array(); @@ -224,7 +224,7 @@ return $ret; } - $myts =& MyTextSanitizer::getInstance(); + $myts = MyTextSanitizer::getInstance(); while ($myrow = $this->db->fetchArray($result)) { //identifiers should be textboxes, so sanitize them like that $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/class/partner.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/class/partner.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/class/partner.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -29,7 +29,7 @@ function SmartpartnerPartner($id = null) { - $this->_db =& XoopsDatabaseFactory::getDatabaseConnection(); + $this->_db = XoopsDatabaseFactory::getDatabaseConnection(); $this->initVar("id", XOBJ_DTYPE_INT, 0, false); $this->initVar("categoryid", XOBJ_DTYPE_INT, 0, false); $this->initVar("datesub", XOBJ_DTYPE_INT, 0, false); @@ -55,7 +55,7 @@ if (isset($id)) { $smartpartner_partner_handler = new SmartpartnerPartnerHandler($this->_db); - $partner =& $smartpartner_partner_handler->get($id); + $partner = $smartpartner_partner_handler->get($id); foreach ($partner->vars as $k => $v) { $this->assignVar($k, $v['value']); } @@ -346,10 +346,10 @@ function sendNotifications($notifications=array()) { - $smartModule =& smartpartner_getModuleInfo(); + $smartModule = smartpartner_getModuleInfo(); $module_id = $smartModule->getVar('mid'); - $myts =& MyTextSanitizer::getInstance(); + $myts = MyTextSanitizer::getInstance(); $notification_handler = &xoops_gethandler('notification'); $tags = array(); @@ -548,7 +548,7 @@ $highlight = true; if($highlight && isset($_GET['keywords'])) { - $myts =& MyTextSanitizer::getInstance(); + $myts = MyTextSanitizer::getInstance(); $keywords=$myts->htmlSpecialChars(trim(urldecode($_GET['keywords']))); $h= new SmartpartnerKeyhighlighter ($keywords, true , 'smartpartner_highlighter'); $partner['title'] = $h->highlight($partner['title']); @@ -736,7 +736,7 @@ */ function delete(&$partner, $force = false) { - $partnerModule =& smartpartner_getModuleInfo(); + $partnerModule = smartpartner_getModuleInfo(); $module_id = $partnerModule->getVar('mid'); if (strtolower(get_class($partner)) != $this->classname) { @@ -798,9 +798,9 @@ $partner->assignVars($myrow); if (!$id_as_key) { - $ret[] =& $partner; + $ret[] = $partner; } else { - $ret[$myrow['id']] =& $partner; + $ret[$myrow['id']] = $partner; } unset($partner); } @@ -929,7 +929,7 @@ $criteria->setStart($start); $criteria->setSort($sort); $criteria->setOrder($order); - $ret =& $this->getObjects($criteria); + $ret = $this->getObjects($criteria); return $ret; } @@ -952,7 +952,7 @@ } $criteria->setSort($sort); $criteria->setOrder($order); - $ret =& $this->getObjects($criteria); + $ret = $this->getObjects($criteria); return $ret; } @@ -968,9 +968,9 @@ $totalPartners = $totalPartners - 1; mt_srand((double)microtime() * 1000000); $entrynumber = mt_rand(0, $totalPartners); - $partner =& $this->getPartners(1, $entrynumber, $status); + $partner = $this->getPartners(1, $entrynumber, $status); If ($partner) { - $ret =& $partner[0]; + $ret = $partner[0]; } } return $ret; @@ -1063,9 +1063,9 @@ $ret = array(); - $hModule =& xoops_gethandler('module'); - $hModConfig =& xoops_gethandler('config'); - $smartModule =& $hModule->getByDirname('smartfaq'); + $hModule = xoops_gethandler('module'); + $hModConfig = xoops_gethandler('config'); + $smartModule = $hModule->getByDirname('smartfaq'); $module_id = $smartModule->getVar('mid'); $gperm_handler = &xoops_gethandler('groupperm'); @@ -1169,7 +1169,7 @@ while ($myrow = $this->_db->fetchArray($result)) { $faq = new sfFaq($myrow['faqid']); - $ret[] =& $faq; + $ret[] = $faq; unset($faq); } return $ret; Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/class/smartdbupdater.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/class/smartdbupdater.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/class/smartdbupdater.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -15,7 +15,7 @@ $bRetVal = false; //Verifies that a MySQL table exists - $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); + $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection(); $realname = $xoopsDB->prefix($table); $ret = mysql_list_tables(XOOPS_DB_NAME, $xoopsDB->conn); while (list($m_table)=$xoopsDB->fetchRow($ret)) { Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt 2012-08-14 20:21:14 UTC (rev 10070) @@ -1,260 +1,4 @@ -<b><u>=> Version 3.21 Beta 1 (2012-07-30)</u></b> +<b><u>=> Version 1.5 RC 2 (2012-08-14)</u></b> -Converted to XOOPS 2.5.5 Admin GUI (mamba) +Converted to XOOPS 2.5.5 Admin GUI (jagi) -<b><u>=> Version 3.2 RC2 (2007-04-23)</u></b> - -Fixed: Fixes in Formulize integration thanks to jegelstaff (malanciault) -Fixed: issue causing invalid links in the RSS script (rss.php). (thanks to rasme) -Fixed: issue with $xoopsUser->getGroups. replaced with $xoopsUser->getGroups() : array(0=>XOOPS_GROUP_ANONYMOUS); (thanks to Jegelstaff) -Fixed: issue with getNicePath (ImpressCMS Only), XOOPS requires patching class/xoopstree. (Skenow / m0nty) -Fixed: bug when user modification of download. "formulize_idreq" field was not found in the mysql table for wfdownloads_mod. (m0nty) -Fixed: Issue with filenames containing multiple periods(.), protector module disallows the upload. -- option added to header.php to disable multiple dot protection if necessary (read important notes in docs folder). (m0nty) -Fixed: user submissions were not being displayed on userinfo.php page, problem in search.inc.php. (marcan & jegelstaff) -Fixed: Bug in submit.php (disclaimer now uses full url for button (agree) instead of a relative url. (thanks to xavhmn) -Fixed: Bug which (under certain server & user browser configurations created 0byte downloads with large files (over 10mb). (m0nty) -Fixed: version types field was missing from forms (defined in preferences). (m0nty) -Fixed: Screenshot thumbnails weren't displayed with correct aspect ratio. (m0nty & mithrandir) -Fixed: #75 new files/recent files blocks not respecting group permissions. (m0nty) -Added: Category Images now display in viewcat page for subcats (if image exists). (m0nty) -Added: Making the category image and title available in the viewcat and singlefile templates (marcan) -Added: wfdownloads_disclaimer.html template for download/submission disclaimer page. (m0nty) -Added: $xoTheme->addStylesheet to allow templates to use module.css makes easier w3c validation. (m0nty) -Added: JS effects & lightbox effects to templates. (m0nty, aphex & thanks to Kris_fr) -Added: Automated Category Selection on submit process (RLankford) -Added: Addition of a downloads by top category block (malanciault) -Changed: submit & mirrors should now accept FTP:// uri's aswell as http:// (m0nty) - - -<b><u>=> Version 3.2 RC1 (2007-04-23)</u></b> - -Fixed: line break logic on index page was inverted. (m0nty) -Fixed: expired downloads not being displayed in admin index. (thanks to skenow) -Fixed: sql error on updating indexpage. MySQL 5 only issue.. removed extra space at end of '$indexheaderalign' update query (thanks to xavhmn) -Fixed: Global notifications were being sent with a 'cid' value which makes them not work correctly. (Jegelstaff) -Fixed: Download icon on index page was not showing correctly depending on downloads.. (Jegelstaff) -Fixed: file count now counts subcats and subsubcats. (Jegelstaff) -Fixed: .png image files were not being allowed for screenshots both userside & admin. (m0nty) -Fixed: Users were still allowed to submit new downloads regardless of groups selected in preferences. (m0nty) -Fixed: Category description only allowed 255 chars. changed from varchar(255) to Text in SQL. (m0nty) -Fixed: #39 Broken downloads not being removed when using xoops 2.2.x (Mithrandir) -Added: RSS feeds all feeds and category based (if permissions granted on that category) (Mithrandir) -Added: Ability to select upto 4 screenshots to be uploaded. (m0nty) -Added: You can now select which groups can upload files to the server aswell as submit downloads. (m0nty) -Added: Ability to create custom forms providing you have formulize 2.2RC1 or later installed. (Jegelstaff) -Added: Display of WF-Downloads Meta version in server stats section on admin/index page. (m0nty) -Added: Import scripts to import from pd-downloads 1.2 & wmpdownloads. (m0nty) -Added: filesize to header() in visit.php & changed method of download from fpassthru to print(), seems more stable with cross browser support. (m0nty) -Added: 3 new notification events - File Modified (file), File Modified (category) & File Modified (global). (thanks to RLankford) -Changed: Category image display sizes can now be set in module preferences independantly of shot images. (m0nty) -Changed: if user uploads is set to no (in preferences), you can now no longer submit files *and* screenshots. (m0nty) -Changed: #14 category title not long enough. (now 255 chars) m0nty -Changed: Download Title not long enough. (now 255 chars) m0nty -Changed: redirect viewcat.php & singlefile.php redirects to user.php if anonymous permission not granted. (m0nty) - -<b><u>=> Version 3.1 FINAL (2006-05-25)</u></b> - -Fixed: blank page when ignoring a modification request. (m0nty) -Fixed: users can modify any download whether author or not by typing URL directly in browser (m0nty) -Fixed: error code given (no file was uploaded) when modifying download (userside) (m0nty) -Fixed: warnings about missing templates wfdownloads_modfile.html & viewlist.html on install. reference removed from xoops_version.php (m0nty) -Fixed: Bug in admin/mirror.php, downurl was saving as location (m0nty) -Fixed: typo in recent downloads block, donwload changed to download (m0nty) -Fixed: #20 file remained on server when uploaded. denied by mimetype (if filename contained spaces) (m0nty) -Fixed: #30 Downloads marked as offline were still being listed in the top/recent downloads blocks. (m0nty) -Fixed: #3389: parent category did not count all files in the subcats. (Jegelstaff) -Removed: subsubcat list if subcats deeper than 2 levels, display issues in viewcat template. (m0nty) - -<b><u>=> Version 3.1 RC 2 (2006-05-01)</u></b> - -Fixed: #4 can no longer modify a category and set it as a subcategory of itself (mithrandir) -Fixed: approving reviews and mirrors approved all instead of just the selected. (m0nty, marcan) -Fixed: Bug in Admin brokendownoads, unable to set confirmed and acknowledged status of broken download (m0nty) -Fixed: #16 Allow HTML logic inverted on index management (m0nty) -Fixed: #15 Sort order did not respect weight settings of the categories (mithrandir) -Fixed: files submitted in admin couldn't be manually added if the file was uploaded via FTP due to filename not being editable. (m0nty) -Fixed: Uploads from userside not submitting correct filename/filetype to db. (m0nty) -Fixed: Screenshots not displaying when submitted from userside. (m0nty) -Fixed: Submitters name changed to admin name when editing a download in admin.. uid element added to modify code, admins can now change user id of submitter if they wish. (m0nty) -Fixed: Fatal error when reporting a broken link (marcan) -Fixed: Download does not exists when reporting a broken link (marcan) -Fixed: Download does not exists when rating a file (marcan) -Fixed: Download does not exists when adding a review (marcan) -Fixed: Download does not exists when adding a mirror (marcan) -Fixed: When seeing downloads by Letter, the navigation bar was not working properly (marcan) -Changed: New images pack thanks to Xpider (xpider) -Removed: Sample category images removed (bender) - -<b><u>=> Version 3.1 RC1 (2006-04-11)</u></b> - -Fixed: When the Sub-categories config option was set to Yes, the Index page display was screwed up (marcan) -Fixed: When wrong mimetype, the uploaded file was not deleted from the upload directory (mithrandir + marcan) -Fixed: Notice [PHP]: Undefined variable: cid in in mirror.php line 18 when creating a new mirror (marcan + m0nty) -Fixed: Notice [PHP]: Undefined variable: cid in file review.php line 18 when creating a new review (marcan) -Fixed: The submit link under the alphabetical navigation was displayed for anonymous even if they did not have this permission (marcan) -Fixed: Fatal error: Call to a member function on a non-object in mirror.php on line 134 (marcan) -Fixed: Fatal error: On View Account - Call to undefined function: wfdownloads_getmoduleinfo() in class\download.php on line 572 (marcan) -Fixed: #3640 File Doesn't get deleted on failed submission (M0nty) -Fixed: #3269 category list in topten.php showing as object instead of category name. (Mithrandir) -Fixed: #3270 Files not able to be filtered by date in newlist.php (thanks to kiang) -Fixed: #3537 file list in admin now shows recent submissions 1st. (thanks to Kiang) -Fixed: #3441 Newly added file has no date value, file list in admin now shows recent submissions 1st. (thanks to kiang) -Fixed: #3269 Category title shown as object instead of title name.. (Mithrandir) -Fixed: Sort Options on category pages now function correctly. (thanks to Kiang) -Fixed: #3426 Download counter does not work (Marcan) -Fixed: #3406 Review Approve in admin didn't work (m0nty) -Fixed: #3408 Review list in admin section broken (m0nty) -Fixed: #3407 Reviews cannot be displayed (Xoops 2.0.x only bug) (mithrandir/m0nty) -Fixed: #3391 Search feature was not returning to correct amount of results + some problems were fixed in the search criterias (marcan) -Fixed: #3388 cant ignore a broken file. Button was missing (bender) -Fixed: #3387 foreach ($_POST as $k => $v) in admin files. not critical but could be possible security issue. now gone.. (mithrandir) -Fixed: #3378 Search function does not work (marcan) -Fixed: #3376 permissions bug, pasting direct address "http://localhost/modules/wfdownloads/viewcat.php?cid=1", can access the category and all the files stored in it. same with singlefile.php. (m0nty, mithrandir) -Fixed: #3374 Array Bug, when there were sub categories of subcategories then the category name displayed array and not the correct name. (marcan) -Fixed: #3441 Newly added file has no date value (marcan) -Fixed: #3307 Be the first person to review (ackbarr) -Fixed: Submitter/Author always anonymous on submitted reviews list. problem related to the uid not being passed on the submit form. (m0nty) -Fixed: When submitting a download - Notice [PHP]: Undefined variable: filename in file submit.php line 129 (marcan) -Fixed: When submitting a download - Notice [PHP]: Undefined variable: filetype in file submit.php line 130 (marcan) -Fixed: When submitting a download - Notice [PHP]: Undefined variable: screenshot in file submit.php line 134 (marcan) -Fixed: When submitting a download - Notice [PHP]: Undefined index: mirror in file submit.php line 141 (marcan) -Fixed: Wrong redirect message when user submitted a downloads without auto-approve (marcan) -Added: New mirror system (mirror.php) multiple mirrors per download, users can also submit new mirrors. (language definitions added/edited) (m0nty) -Added: Mirrors tab in the AdminMenu (marcan) -Added: Module CSS file (marcan) -Added: Header template (marcan) -Added: Footer template (marcan) -Added: Administrative Section link for admins in the footer of all pages (marcan) -Added: Breadcrumb in the template header, like the other SmartModules (marcan) -Added: Reviews Tab on admin section (marcan) -Added: A new feature is now cloaking the download file path so undesired user cannot download files they don't have access to (m0nty) -Added: Link to the Help docs on the admin menu (marcan) -Changed: Updated the readme and instructions. (bender) -Changed: review userside template cleaned up, now has cat path visible for easy navigation back to category without the need for browser back button. (m0nty) -Changed: Review list in admin now shows waiting reviews and also list of published reviews (it's easy to edit and delete reviews now) (m0nty) -Changed: DB storage of file name.. Only the filename is stored in the DB now along with the FileType also. URL field is now used for remote file locations only. (M0nty) -Changed: Permission system on reviews.php, can now view reviews, but only submit if permission granted. (m0nty) -Changed: wf-sections reference to smartfactory site in update.php (m0nty) -Changed: Now using a template for the adminMenu, like the other SmartModules (marcan) -Changed: Some $HTTP_VARS were still in the code. They have been changed with the proper $_POST, $_GET, etc... (marcan) -Changed: Removing the Check Tables link in admin and replacing it by Import (marcan) -Changed: When failling to insert a mirror or a review, the TriggerError was changed for a simple redirect_header with a more comprehensive message (marcan) -Changed: The "View Full Details" of a download in summary view has been reformated to be displayed after the description, aligned right (marcan) -Changed: Formating changes in wfdownloads_mirrors.html template (marcan) -Changed: Allowing HTML in visit.php disclaimer (marcan) -Changed: Allowing HTML in submit.php disclaimer (marcan) -Changed: New module logo, thanks to Xpider (marcan) -Removed: Unnecessary files in folder update/ as well as admin/updrade.php (marcan) -Removed: The Weight option in the Default download Order config option (marcan) -Removed: The Modify category on the admin index (marcan) - -<b><u>=> Version 3.0 RC 1 (2005-12-24)</u></b> - -Fixed: #3293 Image upload now working (m0nty) -Fixed: #3306 Download description always cut off (ignoring orig. length) now working (m0nty) -Fixed: #3303 screenshot image not displayed now working (m0nty) -Fixed: #3308 Upgrade DB script now fully working (m0nty) -Fixed: #3353 Edited language file to say "files moved" instead of files moved and cat deleted (categories arent deleted when moving files.) \wfdownloads\language\english\admin.php line 0076 _AM_WFD_CCATEGORY_MODIFY_MOVED (m0nty) -Fixed: #3304 screenshot image doesn't display when submitted from userside via submit.php. problem was in submit.php the scrrenshot var was not passed to the sql query. (m0nty) -Fixed: typo in uploader.php line 164: $_FILES[$media_name]['error'][$index] instead of $_FILES[$media_name]['errir'][$index] (m0nty) -Fixed: bug in user submission submit.php when users submitted, the file wasn't displayed in the cat list.. caused by the cat select (cid) variable not being submitted to the sql query on submission. (m0nty) -Fixed: #3322 changed layout of download now, mirror links. title now takes you to view full details, moved view full details link to end of summary, if mirror field is empty the icon and download mirror link will not be displayed. also other fields will not be displayed if empty (m0nty) -Fixed: #3295: Uploading with a filename already used will overwrite the original file. The bug was in mediauploader class in the function _copyFile (ackbarr) -Fixed: #3306 Summary data was not being displayed when auto summary disabled. (m0nty) -Fixed: Download history was never showing (thanks for this fix to machenzy) -Fixed: Parse error in topten.php (m0nty) -Fixed: Language definitions in indexpage manager (m0nty) -Fixed: xoopstree missing in admin section for create causing errors (m0nty) -Fixed: Deleting a download in admin was buggy. In fact the download was not deleted at all (marcan) -Fixed: Undefined $title when approving a download (marcan) -Fixed: When a download is submitted, the cid is set to 0 when approving the file (marcan) -Fixed: Code changes towards an OO structure (Mithrandir) -Fixed: Remove SQL queries from controller files (browser-accessed files) (Mithrandir) -Added: Summary table to category listing of each download, so u don't get long pages of text. Auto summary enable/disable, ability to set character length (rounds to the nearest word instead of actually splitting a word) (m0nty) -Added: Ability to set downloads/uploads based on post count. (m0nty) -Added: WfdownloadBaseObject to have a toarray() method to use in Category, Dowload, Mimetype, Rating, Report, Review. These classes are now extending WfdowloadBaseObject (marcan) -Added: modules/wfdownloads/docs --> HTML readme for installing, updating and converting. (bender) -Changed: in language file: in admin.php for _AM_WFD_FILE_SHOTIMAGE added: 'Note that screenshots will only be displayed if activated in module preferences' (bender) -Removed: outdated help link from admin section (bender) -Removed: Per-file permissions since they slowed down the module extensively (Mithrandir) -Removed: Forum links (since they were dependant on newbb/cbb). (Mithrandir) -Removed: News link (since it was depending on the news module) (Mithrandir) - - -<b><u>=> Version 2.0.5 b (2005-09-05)</u></b> - -Fixed bug that "Latest Listings" shows the latetest submitted files again (gladiac) -Sort licenses in the select box (gladiac) -Fixed select category bug in File Management (Xoops 2.2.x compability) (gladiac) -Fixed bug in Category Management to get the right cid (Xoops 2.2.x compability) (gladiac) -Fixed bug in Category Management to be able to modify a category (gladiac) -Fixed bug in Recent downloads block to really show the most recent downloaded files (karedokx) -Removed languagefile fallback in two files (taken from mithrandirs 2.x modulepack) -Fixed "Headers already sent" with different visit.php which has been around in the forum for a while (SMD) - - -<b><u>=> Version 2.0.5 (2005-07-26)</u></b> - -Fixed New/update icon bug. -Fixed $mtys must be $myts typo on reviews. -Fixed upload issue both in admin and user submission. -Fixed two missing language defines. -Added file exists check on upload -Changed version number to 2.0.5a to save confussion. - - -<b><u>=> Version 2.0.5 (2004-07-12)</u></b> - -Fixed Bug: Fatal error: Call to undefined function: gd_info() when GD library not installed on server (MadFish). -Fixed: Group Permission setting. Invalid default for file submission in xoops_version.php. (FrankBlack) -Add: Added a check to update files, cannot access them directly now and can only be executed from the update script. -Fixed bug: File spaces where not converted when uploading to server. -Fixed bug: Fixed invalid path for forum link. -Fixed bug: Review was not approved when editing and then clicking approve. -Added broken information to broken files report. -Fixed bug: Fixed icon bug in broken download reports. -Many other small bug fixes or changes to the module - - -<b><u>=> Version 2.0.4 (2004-07-4)</u></b> - -Fixed catgeory ordering in to show by title and not ID in admin main index category selection box. -Removed duplicate Lang defines in module/wf-download/index.php -Removed alt text defines on Legend images. -Removed <p></p> tags from wfdownloads_index.html as it caused alignment problems in template. -Fixed Bugs when user submits a broken file report. -Fixed grouppermission bug when displaying sub categories in viewcat.php -Fixed category count bug in main index listings. -Fixed Bug where Xoops Sort bar would show even if no files where available. -Fixed Bug where sub-categories would be displayed when viewing downloads by alphabetical listing. -Fixed Bug where sub-categories listing would show incorrectly when listed. -Fixed Bug in wf-downloads block that would show incorrect path. -Fixed Permissions form in admin for both Category and files. -Fixed Bug where permission where not set of topten items -Fixed Bug where category heading displayed the wrong category description for each category in viewcat.php. -Fixed Bug categories are now ordered by their weight and not title. -Fixed Bug PHP related issue, not all servers have PHP math functions enabled so we did a little workaround on this. -Fixed Bug displaying logo in singlefile page. -Fixed Bug where other files by would show incorrect and also show offline files. -Fixed Bug: Any user could use the update script. A big NO NO! This has been restricted to admin users only. -Fixed Bug: New submission to webmaster displayed the wrong link (Taken to the wrong link when clicking to view new -submission. -Fixed Bug: Duplicate code for image list array in image uploader.php. -Fixed Bug: Group Permissions where not included within WF-Downloads search function. - Every file was shown whether a user had permission to see them or not. -Fixed Bug: Change language Page Published/Expire Date to File Published/Expire date. -Fixed Bug: Block Language define change _MB_MYDOWNLOADS_LENGTH to _MB_WFDOWNLOADS_LENGTH -Fixed Bug: Filenames with spaces where broken, this has been corrected. -Fixed Bug: Fixed allowed File URL Input size to 255 chars when entering File URL in admin. -Fixed Bug: Fixed allowed File URL mirror input size to 255 chars when entering File mirror in admin. -Fixed Bug: Fixed allowed File URL title input size to 255 chars when entering File title in admin. -Fixed Bug: Server Uploads Status displayed incorrect php_ini setting. Should have been file_uploads and not enable_dl. - -Added: Alphabetical listing to top ten items. -Added: The ability to create News Story from submitted download (admin only). -Added: Recording user uploader IP address for security reasons. -Added: Url/File check at download stage for broken files. Will redirect user to state file is broken and not a -404 The page cannot be found. Not fully tested yet but seems to be working. -Temporary Removed Spotlight items from category form. Will add in a future version. -Changed Category listing templates for more ordered look. Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/include/blocksadmin.inc.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/include/blocksadmin.inc.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/include/blocksadmin.inc.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -85,7 +85,7 @@ $block['name'] = $myblock->getVar('name'); } - $myts =& MyTextSanitizer::getInstance(); + $myts = MyTextSanitizer::getInstance(); $myblock->setVar('title', $myts->stripSlashesGPC($btitle)); $myblock->setVar('content', $myts->stripSlashesGPC($bcontent)); // $dummyhtml = '<html><head><meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" /><meta http-equiv="content-language" content="'._LANGCODE.'" /><title>'.$xoopsConfig['sitename'].'</title><link rel="stylesheet" type="text/css" media="all" href="'.getcss($xoopsConfig['theme_set']).'" /></head><body><table><tr><th>'.$myblock->getVar('title').'</th></tr><tr><td>'.$myblock->getContent('S', $bctype).'</td></tr></table></body></html>'; @@ -102,7 +102,7 @@ $block['visible'] = $bvisible; $block['title'] = $myblock->getVar('title', 'E'); $block['content'] = $myblock->getVar('content','n'); - $block['modules'] =& $bmodule; + $block['modules'] = $bmodule; $block['ctype'] = isset($bctype) ? $bctype : $myblock->getVar('c_type'); $block['is_custom'] = true; $block['cachetime'] = intval($bcachetime); @@ -291,8 +291,8 @@ } $myblock->delete(); if ($myblock->getVar('template') != '' && ! defined('XOOPS_ORETEKI') ) { - $tplfile_handler =& xoops_gethandler('tplfile'); - $btemplate =& $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid); + $tplfile_handler = xoops_gethandler('tplfile'); + $btemplate = $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid); if (count($btemplate) > 0) { $tplman->delete($btemplate[0]); } @@ -329,7 +329,7 @@ // edit_block($bid); GIJ imported from blocksadmin.php $myblock = new XoopsBlock($bid); - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db = XoopsDatabaseFactory::getDatabaseConnection(); $sql = 'SELECT module_id FROM '.$db->prefix('block_module_link').' WHERE block_id='.intval($bid); $result = $db->query($sql); $modules = array(); @@ -353,7 +353,7 @@ xoops_cp_header(); $myblock = new XoopsBlock($bid); - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db = XoopsDatabaseFactory::getDatabaseConnection(); $sql = 'SELECT module_id FROM '.$db->prefix('block_module_link').' WHERE block_id='.intval($bid); $result = $db->query($sql); $modules = array(); @@ -390,14 +390,14 @@ else $options = explode( '|' , $_POST['options'] ) ; // for backward compatibility - // $cblock =& $block->clone(); or $cblock =& $block->xoopsClone(); + // $cblock = $block->clone(); or $cblock = $block->xoopsClone(); $cblock = new XoopsBlock() ; foreach( $block->vars as $k => $v ) { $cblock->assignVar( $k , $v['value'] ) ; } $cblock->setNew(); - $myts =& MyTextSanitizer::getInstance(); + $myts = MyTextSanitizer::getInstance(); $cblock->setVar('side', $_POST['bside']); $cblock->setVar('weight', $_POST['bweight']); $cblock->setVar('visible', $_POST['bvisible']); @@ -420,16 +420,16 @@ exit(); } /* if ($cblock->getVar('template') != '') { - $tplfile_handler =& xoops_gethandler('tplfile'); - $btemplate =& $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid); + $tplfile_handler = xoops_gethandler('tplfile'); + $btemplate = $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid); if (count($btemplate) > 0) { - $tplclone =& $btemplate[0]->clone(); + $tplclone = $btemplate[0]->clone(); $tplclone->setVar('tpl_id', 0); $tplclone->setVar('tpl_refid', $newid); $tplman->insert($tplclone); } } */ - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db = XoopsDatabaseFactory::getDatabaseConnection(); $bmodule = (isset($_POST['bmodule']) && is_array($_POST['bmodule'])) ? $_POST['bmodule'] : array(-1) ; // GIJ + foreach( $bmodule as $bmid ) { $sql = 'INSERT INTO '.$db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newid.', '.$bmid.')'; @@ -437,7 +437,7 @@ } /* global $xoopsUser; - $groups =& $xoopsUser->getGroups(); + $groups = $xoopsUser->getGroups(); $count = count($groups); for ($i = 0; $i < $count; $i++) { $sql = "INSERT INTO ".$db->prefix('group_permission')." (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (".$groups[$i].", ".$newid.", 1, 'block_read')"; @@ -497,7 +497,7 @@ } $msg = _AM_DBUPDATED; if ($myblock->store() != false) { - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db = XoopsDatabaseFactory::getDatabaseConnection(); $sql = sprintf("DELETE FROM %s WHERE block_id = %u", $db->prefix('block_module_link'), $bid); $db->query($sql); foreach ($bmodule as $bmid) { @@ -534,16 +534,16 @@ { global $xoopsDB ; - $instance_handler =& xoops_gethandler('blockinstance'); - $block_handler =& xoops_gethandler('block') ; + $instance_handler = xoops_gethandler('blockinstance'); + $block_handler = xoops_gethandler('block') ; if ($id > 0) { // update - $instance =& $instance_handler->get($id); + $instance = $instance_handler->get($id); if( $bside >= 0 ) $instance->setVar('side', $bside); if( ! empty($options) ) $instance->setVar('options', $options); } else { // insert - $instance =& $instance_handler->create(); + $instance = $instance_handler->create(); $instance->setVar( 'bid' , $bid ) ; $instance->setVar('side', $bside); $block = $block_handler->get( $bid ) ; Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/include/common.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/include/common.php 2012-08-14 18:37:15 UTC (rev 10069) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/include/common.php 2012-08-14 20:21:14 UTC (rev 10070) @@ -29,7 +29,7 @@ include_onc... [truncated message content] |
From: <ja...@us...> - 2012-08-14 20:29:31
|
Revision: 10071 http://xoops.svn.sourceforge.net/xoops/?rev=10071&view=rev Author: jagibu Date: 2012-08-14 20:29:24 +0000 (Tue, 14 Aug 2012) Log Message: ----------- changelog.txt -> blue Modified Paths: -------------- XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt Removed Paths: ------------- XoopsModules/smartpartner/branches/jagibu/smartpartner/changelog.txt XoopsModules/smartpartner/branches/jagibu/smartpartner/class/about.php Deleted: XoopsModules/smartpartner/branches/jagibu/smartpartner/changelog.txt =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/changelog.txt 2012-08-14 20:21:14 UTC (rev 10070) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/changelog.txt 2012-08-14 20:29:24 UTC (rev 10071) @@ -1,77 +0,0 @@ -<b><u>=> Version 1.4 RC 1 (2007-03-02)</u></b> - -- Addition of the email, phone and adress private flag, thank to M0nty -- A few fixes -- Adding the SmartDBUpdater process - -<b><u>=> Version 1.31 RC 1 (forum release)</u></b> - -- Addition of a datesub field in the partners class -- Addition of privacy settings, 3 new tickboxes on submission form for email, phone & address. users can now select if they want - their details to be viewed by users or not. m0nty -- Fixed Error number: 1054 Error message: Unknown column 'uid' in 'where clause': (bug in class/partner.php) m0nty - -<b><u>=> Version 1.2 Beta 1 (2006-02-11)</u></b> - -- Addition of categories management -- A new block has been added - -<b><u>=> Version 1.1 Beta 1 (2005-08-24)</u></b> - -- Supports XOOPS 2.2.x and php5 - -<b><u>=> Version 1.0.2 Final (2005-05-09)</u></b> - -- Keyword highlighting added in the search function -- A few bugs from 1.0.1 were fixed - -<b><u>=> Version 1.0.1 Final (2005-05-09)</u></b> - -- A bug was found in the logo url display, on the index and partner's page -- Undefined constants fixed -- The View All link on the partners block was not pointing to the partners page -- A bug was found when uploading a logo from the user side -- An error was fixed in the partner's template - -<b><u>=> Version 1.0.1 Beta 1 (2005-03-28)</u></b> - -- Keyword highlighting added in the search function -- A bug was causing a fatal error in the user profile -- The search feature had some bugs that are now fixed -- The index page was not displaying the logo properly under IE -- The upload of a jpg file is now fixed -- The code of the module has been improve to facilitate the renaming of the module folder (see changing_directory.txt) - -<b><u>=> Version 1.0 Final (2005-02-28)</u></b> - -- The images folder was changed to xoops_root/uploads/smartpartner, for permissions reason. -- A search feature with keywords highlighting has been introduced -- Jpeg files upload has been fixed -- Errors fixed in the admin index sort options -- Anonymous submit bug fixed - -<b><u>=> Version 1.0 RC1 (2004-12-22)</u></b> - -- The partners block random functionnality now works perfectly. -- Error fixed when updating notification options on partner.php. -- If only the 'summary' field is completed, the partner will be considered as a basic partner and will not have a 'partner' page. Links on the partner logo will reflect this behavior. -- <h2> and <h3> tags have been replaced by custom classes. -- Any color definition has been removed from the module. -- New config option to display a 'Back to partners index' link. -- Changing the About page to use a class that create the page. - -<b><u>=> Version 0.9 Beta 2 (2004-12-01)</u></b> - -- When creating a new partner in the admin side, the status select box was not displayed, causing the partner's status to be incorrectly set. This has been fixed. - -<b><u>=> Version 0.9 Beta 1 (2004-11-30)</u></b> - -- As usual a lot of little bugs have been fixed. -- The status of a partner can now be set in the EditPartner form. -- Each partner now has a page on the public side displaying the partners info + some contact informations. -- The logo upload files are now held in xoops_root_path/uploads/smartpartner. -- The webmaster can create this folder directly in the admin side of the module (thanks to Newbb2 team:-) ) - -<b><u>=> Version 0.8 Beta 1 (2004-11-10)</u></b> - -- First public release of the module. \ No newline at end of file Deleted: XoopsModules/smartpartner/branches/jagibu/smartpartner/class/about.php =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/class/about.php 2012-08-14 20:21:14 UTC (rev 10070) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/class/about.php 2012-08-14 20:29:24 UTC (rev 10071) @@ -1,257 +0,0 @@ -<?php - -/** -* $Id: about.php,v 1.4 2007/03/01 11:53:25 malanciault Exp $ -* Module: SmartSection -* Author: The SmartFactory <www.smartfactory.ca> -* Licence: GNU -*/ - -if (!defined("XOOPS_ROOT_PATH")) { -die("XOOPS root path not defined"); -} - -/** -* Class About is a simple class that lets you build an about page -* @author The SmartFactory <www.smartfactory.ca> -*/ - -class SmartPartnerAbout -{ - var $_lang_aboutTitle; - var $_lang_author_info; - var $_lang_developer_lead; - var $_lang_developer_contributor; - var $_lang_developer_website; - var $_lang_developer_email; - var $_lang_developer_credits; - var $_lang_module_info; - var $_lang_module_status; - var $_lang_module_release_date; - var $_lang_module_demo; - var $_lang_module_support; - var $_lang_module_bug; - var $_lang_module_submit_bug; - var $_lang_module_feature; - var $_lang_module_submit_feature; - var $_lang_module_disclaimer; - var $_lang_author_word; - var $_lang_version_history; - var $_lang_by; - - function SmartPartnerAbout($aboutTitle='About') - { - global $xoopsModule, $xoopsConfig; - $fileName = XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/modinfo.php'; - if (file_exists($fileName)) { - include_once $fileName; - } else { - include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . '/language/english/modinfo.php'; - } - $this->_aboutTitle = $aboutTitle; - $this->_lang_author_info = _MI_SPARTNER_AUTHOR_INFO; - $this->_lang_developer_lead = _MI_SPARTNER_DEVELOPER_LEAD; - $this->_lang_developer_contributor = _MI_SPARTNER_DEVELOPER_CONTRIBUTOR; - $this->_lang_developer_website = _MI_SPARTNER_DEVELOPER_WEBSITE; - $this->_lang_developer_email = _MI_SPARTNER_DEVELOPER_EMAIL; - $this->_lang_developer_credits = _MI_SPARTNER_DEVELOPER_CREDITS; - $this->_lang_module_info = _MI_SPARTNER_MODULE_INFO; - $this->_lang_module_status = _MI_SPARTNER_MODULE_STATUS; - $this->_lang_module_release_date =_MI_SPARTNER_MODULE_RELEASE_DATE ; - $this->_lang_module_demo = _MI_SPARTNER_MODULE_DEMO; - $this->_lang_module_support = _MI_SPARTNER_MODULE_SUPPORT; - $this->_lang_module_bug = _MI_SPARTNER_MODULE_BUG; - $this->_lang_module_submit_bug = _MI_SPARTNER_MODULE_SUBMIT_BUG; - $this->_lang_module_feature = _MI_SPARTNER_MODULE_FEATURE; - $this->_lang_module_submit_feature = _MI_SPARTNER_MODULE_SUBMIT_FEATURE; - $this->_lang_module_disclaimer = _MI_SPARTNER_MODULE_DISCLAIMER; - $this->_lang_author_word = _MI_SPARTNER_AUTHOR_WORD; - $this->_lang_version_history = _MI_SPARTNER_VERSION_HISTORY; - $this->_lang_by = _MI_SPARTNER_BY; - } - - function render() - { - - $myts = &MyTextSanitizer::getInstance(); - - Global $xoopsModule; - - xoops_cp_header(); - - $module_handler = &xoops_gethandler('module'); - $versioninfo = &$module_handler->get($xoopsModule->getVar('mid')); - - $adminMenu = $versioninfo->getInfo('adminMenu'); - - if (false != $adminMenu && trim($adminMenu) != '') { - if (function_exists($adminMenu)) { - $func = $adminMenu; - if (!$func(-1, $this->_aboutTitle . " " . $versioninfo->getInfo('name'))) { - } - } - } - - // Left headings... - echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/" . $versioninfo->getInfo('image') . "' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px;'/></a>"; - echo "<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') . " (" . $versioninfo->getInfo('status_version') . ")</div>"; - if ($versioninfo->getInfo('author_realname') != '') { - $author_name = $versioninfo->getInfo('author') . " (" . $versioninfo->getInfo('author_realname') . ")"; - } else { - $author_name = $versioninfo->getInfo('author'); - } - - echo "<div style = 'line-height: 16px; font-weight: bold; display: block;'>" . $this->_lang_by . " " . $author_name; - echo "</div>"; - echo "<div style = 'line-height: 16px; display: block;'>" . $versioninfo->getInfo('license') . "</div>\n"; - - // Developers Information - echo "<br /><table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; - echo "<tr>"; - echo "<td colspan='2' class='bg3' align='left'><b>" . $this->_lang_author_info . "</b></td>"; - echo "</tr>"; - - if ($versioninfo->getInfo('developer_lead') != '') { - echo "<tr>"; - echo "<td class='head' width = '150px' align='left'>" . $this->_lang_developer_lead . "</td>"; - echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_lead') . "</td>"; - echo "</tr>"; - } - if ($versioninfo->getInfo('developer_contributor') != '') { - echo "<tr>"; - echo "<td class='head' width = '150px' align='left'>" . $this->_lang_developer_contributor . "</td>"; - echo "<td class='even' align='left'>" . $versioninfo->getInfo('developer_contributor') . "</td>"; - echo "</tr>"; - } - if ($versioninfo->getInfo('developer_website_url') != '') { - echo "<tr>"; - echo "<td class='head' width = '150px' align='left'>" . $this->_lang_developer_website . "</td>"; - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('developer_website_url') . "' target='blank'>" . $versioninfo->getInfo('developer_website_name') . "</a></td>"; - echo "</tr>"; - } - if ($versioninfo->getInfo('developer_email') != '') { - echo "<tr>"; - echo "<td class='head' width = '150px' align='left'>" . $this->_lang_developer_email . "</td>"; - echo "<td class='even' align='left'><a href='mailto:" . $versioninfo->getInfo('developer_email') . "'>" . $versioninfo->getInfo('developer_email') . "</a></td>"; - echo "</tr>"; - } - - - echo "</table>"; - echo "<br />\n"; - // Module Developpment information - echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; - echo "<tr>"; - echo "<td colspan='2' class='bg3' align='left'><b>" . $this->_lang_module_info . "</b></td>"; - echo "</tr>"; - - if ($versioninfo->getInfo('date') != '') { - echo "<tr>"; - echo "<td class='head' width = '200' align='left'>" . $this->_lang_module_release_date . "</td>"; - echo "<td class='even' align='left'>" . $versioninfo->getInfo('date') . "</td>"; - echo "</tr>"; - } - - - if ($versioninfo->getInfo('status') != '') { - echo "<tr>"; - echo "<td class='head' width = '200' align='left'>" . $this->_lang_module_status . "</td>"; - echo "<td class='even' align='left'>" . $versioninfo->getInfo('status') . "</td>"; - echo "</tr>"; - } - - if ($versioninfo->getInfo('demo_site_url') != '') { - echo "<tr>"; - echo "<td class='head' align='left'>" . $this->_lang_module_demo . "</td>"; - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('demo_site_url') . "' target='blank'>" . $versioninfo->getInfo('demo_site_name') . "</a></td>"; - echo "</tr>"; - } - - if ($versioninfo->getInfo('support_site_url') != '') { - echo "<tr>"; - echo "<td class='head' align='left'>" . $this->_lang_module_support . "</td>"; - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('support_site_url') . "' target='blank'>" . $versioninfo->getInfo('support_site_name') . "</a></td>"; - echo "</tr>"; - } - - if ($versioninfo->getInfo('submit_bug') != '') { - echo "<tr>"; - echo "<td class='head' align='left'>" . $this->_lang_module_bug . "</td>"; - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . $this->_lang_module_submit_bug . "</a></td>"; - echo "</tr>"; - } - if ($versioninfo->getInfo('submit_feature') != '') { - echo "<tr>"; - echo "<td class='head' align='left'>" . $this->_lang_module_feature . "</td>"; - echo "<td class='even' align='left'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . $this->_lang_module_submit_feature . "</a></td>"; - echo "</tr>"; - } - - echo "</table>"; - // Warning - if ($versioninfo->getInfo('warning') != '') { - echo "<br />\n"; - echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; - echo "<tr>"; - echo "<td class='bg3' align='left'><b>" . $this->_lang_module_disclaimer . "</b></td>"; - echo "</tr>"; - - echo "<tr>"; - echo "<td class='even' align='left'>" . $versioninfo->getInfo('warning') . "</td>"; - echo "</tr>"; - - echo "</table>"; - } - // Author's note - if ($versioninfo->getInfo('author_word') != '') { - echo "<br />\n"; - echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; - echo "<tr>"; - echo "<td class='bg3' align='left'><b>" . $this->_lang_author_word . "</b></td>"; - echo "</tr>"; - - echo "<tr>"; - echo "<td class='even' align='left'>" . $versioninfo->getInfo('author_word') . "</td>"; - echo "</tr>"; - - echo "</table>"; - } - - - // For changelog thanks to 3Dev - $filename = SMARTPARTNER_ROOT_PATH . "changelog.txt"; - if(is_file($filename)){ - - echo "<br />\n"; - echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; - echo "<tr>"; - echo "<td class='bg3' align='left'><b>" . $this->_lang_version_history . "</b></td>"; - echo "</tr>"; - - echo "<tr>"; - $filesize = filesize($filename); - $handle = fopen($filename, 'r'); - echo "<td class='even' align='left'><div style='line-height: 18px;'>".$myts->displayTarea(fread($handle, $filesize), true)."</div></td>"; - fclose($handle); - echo "</tr>"; - - echo "</table>"; - - } - echo "<br />"; - - $modFooter = $versioninfo->getInfo('modFooter'); - - if (false != $adminMenu && trim($modFooter) != '') { - if (function_exists($modFooter)) { - $func = $modFooter; - echo "<div align='center'>" . $func() . "</div>"; - } - } - - xoops_cp_footer(); - } - -} - -?> \ No newline at end of file Modified: XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt =================================================================== --- XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt 2012-08-14 20:21:14 UTC (rev 10070) +++ XoopsModules/smartpartner/branches/jagibu/smartpartner/docs/changelog.txt 2012-08-14 20:29:24 UTC (rev 10071) @@ -2,3 +2,81 @@ Converted to XOOPS 2.5.5 Admin GUI (jagi) +<b><u>=> Version 1.4 RC 1 (2007-03-02)</u></b> + +- Addition of the email, phone and adress private flag, thank to M0nty +- A few fixes +- Adding the SmartDBUpdater process + +<b><u>=> Version 1.31 RC 1 (forum release)</u></b> + +- Addition of a datesub field in the partners class +- Addition of privacy settings, 3 new tickboxes on submission form for email, phone & address. users can now select if they want + their details to be viewed by users or not. m0nty +- Fixed Error number: 1054 Error message: Unknown column 'uid' in 'where clause': (bug in class/partner.php) m0nty + +<b><u>=> Version 1.2 Beta 1 (2006-02-11)</u></b> + +- Addition of categories management +- A new block has been added + +<b><u>=> Version 1.1 Beta 1 (2005-08-24)</u></b> + +- Supports XOOPS 2.2.x and php5 + +<b><u>=> Version 1.0.2 Final (2005-05-09)</u></b> + +- Keyword highlighting added in the search function +- A few bugs from 1.0.1 were fixed + +<b><u>=> Version 1.0.1 Final (2005-05-09)</u></b> + +- A bug was found in the logo url display, on the index and partner's page +- Undefined constants fixed +- The View All link on the partners block was not pointing to the partners page +- A bug was found when uploading a logo from the user side +- An error was fixed in the partner's template + +<b><u>=> Version 1.0.1 Beta 1 (2005-03-28)</u></b> + +- Keyword highlighting added in the search function +- A bug was causing a fatal error in the user profile +- The search feature had some bugs that are now fixed +- The index page was not displaying the logo properly under IE +- The upload of a jpg file is now fixed +- The code of the module has been improve to facilitate the renaming of the module folder (see changing_directory.txt) + +<b><u>=> Version 1.0 Final (2005-02-28)</u></b> + +- The images folder was changed to xoops_root/uploads/smartpartner, for permissions reason. +- A search feature with keywords highlighting has been introduced +- Jpeg files upload has been fixed +- Errors fixed in the admin index sort options +- Anonymous submit bug fixed + +<b><u>=> Version 1.0 RC1 (2004-12-22)</u></b> + +- The partners block random functionnality now works perfectly. +- Error fixed when updating notification options on partner.php. +- If only the 'summary' field is completed, the partner will be considered as a basic partner and will not have a 'partner' page. Links on the partner logo will reflect this behavior. +- <h2> and <h3> tags have been replaced by custom classes. +- Any color definition has been removed from the module. +- New config option to display a 'Back to partners index' link. +- Changing the About page to use a class that create the page. + +<b><u>=> Version 0.9 Beta 2 (2004-12-01)</u></b> + +- When creating a new partner in the admin side, the status select box was not displayed, causing the partner's status to be incorrectly set. This has been fixed. + +<b><u>=> Version 0.9 Beta 1 (2004-11-30)</u></b> + +- As usual a lot of little bugs have been fixed. +- The status of a partner can now be set in the EditPartner form. +- Each partner now has a page on the public side displaying the partners info + some contact informations. +- The logo upload files are now held in xoops_root_path/uploads/smartpartner. +- The webmaster can create this folder directly in the admin side of the module (thanks to Newbb2 team:-) ) + +<b><u>=> Version 0.8 Beta 1 (2004-11-10)</u></b> + +- First public release of the module. + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |