|
From: <luc...@us...> - 2014-03-24 19:17:08
|
Revision: 12404
http://sourceforge.net/p/xoops/svn/12404
Author: luciorota
Date: 2014-03-24 19:16:59 +0000 (Mon, 24 Mar 2014)
Log Message:
-----------
fixed minor errors and standardization
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/admin/categories.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/downloads.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/mimetypes.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/permissions.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php
XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php
XoopsModules/wfdownloads/trunk/wfdownloads/class/category.php
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt
XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php
XoopsModules/wfdownloads/trunk/wfdownloads/index.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php
XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php
XoopsModules/wfdownloads/trunk/wfdownloads/newlist.php
XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php
XoopsModules/wfdownloads/trunk/wfdownloads/review.php
XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php
XoopsModules/wfdownloads/trunk/wfdownloads/submit.php
XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_singlefile.html
XoopsModules/wfdownloads/trunk/wfdownloads/topten.php
XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php
XoopsModules/wfdownloads/trunk/wfdownloads/visit.php
XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/categories.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/categories.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/categories.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -241,7 +241,7 @@
$sorted_categories = wfdownloads_sortCategories();
$GLOBALS['xoopsTpl']->assign('sorted_categories', $sorted_categories);
$GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() );
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_categorieslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_categorieslist.html");
} else {
redirect_header("{$currentFile}?op=category.add", 1, _AM_WFDOWNLOADS_CCATEGORY_NOEXISTS);
}
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/downloads.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/downloads.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/downloads.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -602,7 +602,7 @@
$start_expired = WfdownloadsRequest::getInt('start_expired', 0);
$start_offline = WfdownloadsRequest::getInt('start_offline', 0);
- $totalcats = wfdownloads_categoriesCount();
+ $totalCategoriesCount = wfdownloads_categoriesCount();
$categories = $wfdownloads->getHandler('category')->getObjects(null, true, false);
$totalDownloadsCount = $wfdownloads->getHandler('download')->getCount();
@@ -654,6 +654,7 @@
$publishedDownloads = $wfdownloads->getHandler('download')->getActiveDownloads($criteria);
$publishedDownloadsCount = $wfdownloads->getHandler('download')->getActiveCount();
$GLOBALS['xoopsTpl']->assign('published_downloads_count', $publishedDownloadsCount);
+
if ($publishedDownloadsCount > 0) {
foreach ($publishedDownloads as $publishedDownload) {
$publishedDownload_array = $publishedDownload->toArray();
@@ -670,7 +671,16 @@
$GLOBALS['xoopsTpl']->assign('filter_title_condition', $filter_title_condition);
$GLOBALS['xoopsTpl']->assign('filter_category_title', $filter_category_title);
$GLOBALS['xoopsTpl']->assign('filter_category_title_condition', $filter_category_title_condition);
- $submitter_select = new XoopsFormSelectUser(null, 'filter_submitter', true, $filter_submitter, 5, true);
+ $submitters = array();
+ $downloadsSubmitters_array = $wfdownloads->getHandler('download')->getAll(null, array('submitter'), false, false);
+ foreach ($downloadsSubmitters_array as $downloadSubmitters_array) {
+ $submitters[$downloadSubmitters_array['submitter']] = XoopsUserUtility::getUnameFromId($downloadSubmitters_array['submitter']);
+ }
+ asort($submitters);
+ $submitter_select = new XoopsFormSelect('', 'filter_submitter', $filter_submitter, (count($submitters) > 5) ? 5 : count($submitters), true);
+ foreach ($submitters as $submitter_uid => $submitter_uname) {
+ $submitter_select->addOption($submitter_uid, $submitter_uname);
+ }
$GLOBALS['xoopsTpl']->assign('filter_submitter_select', $submitter_select->render());
$date_select = new XoopsFormDateTime (null, 'filter_date', 15, time(), false);
$GLOBALS['xoopsTpl']->assign('filter_date_select', $date_select->render());
@@ -780,7 +790,7 @@
} else {
// NOP
}
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_downloadslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_downloadslist.html");
include 'admin_footer.php';
break;
@@ -846,7 +856,7 @@
}
}
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_ip_logslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_ip_logslist.html");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/mimetypes.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/mimetypes.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/mimetypes.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -218,7 +218,7 @@
$GLOBALS['xoopsTpl']->assign('allowAdminMimetypes', $allowAdminMimetypes);
$GLOBALS['xoopsTpl']->assign('allowUserMimetypes', $allowUserMimetypes);
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_mimetypeslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_mimetypeslist.html");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -190,7 +190,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_mirrorslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_mirrorslist.html");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/permissions.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/permissions.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/permissions.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -45,6 +45,6 @@
$GLOBALS['xoopsTpl']->assign('down_cat_form', $down_cat_form->render());
$GLOBALS['xoopsTpl']->assign('up_cat_form', $up_cat_form->render());
-$GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_permissions.html");
+$GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_permissions.html");
include 'admin_footer.php';
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -83,7 +83,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_ratingslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_ratingslist.html");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -202,7 +202,7 @@
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
- $GLOBALS['xoopsTpl']->display("db:" . $wfdownloads->getModule()->dirname() . "_admin_reviewslist.html");
+ $GLOBALS['xoopsTpl']->display("db:{$wfdownloads->getModule()->dirname()}_admin_reviewslist.html");
include 'admin_footer.php';
break;
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/brokenfile.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -120,7 +120,7 @@
}
}
} else {
- $xoopsOption['template_main'] = 'wfdownloads_brokenfile.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_brokenfile.html";
include XOOPS_ROOT_PATH . '/header.php';
// Begin Main page Heading etc
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/category.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/category.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/category.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -130,12 +130,15 @@
'description',
'e'
), 15, 60);
+ $description_textarea->setDescription(_AM_WFDOWNLOADS_FCATEGORY_DESCRIPTION_DESC);
$form->addElement($description_textarea, true);
// category: summary
$summary_textarea = new XoopsFormTextArea(_AM_WFDOWNLOADS_FCATEGORY_SUMMARY, 'summary', $this->getVar('summary'), 10, 60);
+ $summary_textarea->setDescription(_AM_WFDOWNLOADS_FCATEGORY_SUMMARY_DESC);
$form->addElement($summary_textarea);
// category: dohtml, dosmiley, doxcode, doimage, dobr
- $options_tray = new XoopsFormElementTray(_AM_WFDOWNLOADS_TEXTOPTIONS, '<br />');
+ $options_tray = new XoopsFormElementTray(_AM_WFDOWNLOADS_TEXTOPTIONS, ' ');
+ $options_tray->setDescription(_AM_WFDOWNLOADS_TEXTOPTIONS_DESC);
$html_checkbox = new XoopsFormCheckBox('', 'dohtml', $this->getVar('dohtml'));
$html_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWHTML);
$options_tray->addElement($html_checkbox);
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -575,21 +575,22 @@
$description_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_DESCRIPTION_DESC);
$sform->addElement($description_dhtmltextarea, true);
// download: dohtml, dosmiley, doxcode, doimage, dobr
- $options_tray = new XoopsFormElementTray(_AM_WFDOWNLOADS_TEXTOPTIONS, '<br />');
+ $options_tray = new XoopsFormElementTray(_MD_WFDOWNLOADS_TEXTOPTIONS, '<br />');
+ $options_tray->setDescription(_MD_WFDOWNLOADS_TEXTOPTIONS_DESC);
$html_checkbox = new XoopsFormCheckBox('', 'dohtml', $this->getVar('dohtml'));
- $html_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWHTML);
+ $html_checkbox->addOption(1, _MD_WFDOWNLOADS_ALLOWHTML);
$options_tray->addElement($html_checkbox);
$smiley_checkbox = new XoopsFormCheckBox('', 'dosmiley', $this->getVar('dosmiley'));
- $smiley_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWSMILEY);
+ $smiley_checkbox->addOption(1, _MD_WFDOWNLOADS_ALLOWSMILEY);
$options_tray->addElement($smiley_checkbox);
$xcodes_checkbox = new XoopsFormCheckBox('', 'doxcode', $this->getVar('doxcode'));
- $xcodes_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWXCODE);
+ $xcodes_checkbox->addOption(1, _MD_WFDOWNLOADS_ALLOWXCODE);
$options_tray->addElement($xcodes_checkbox);
$noimages_checkbox = new XoopsFormCheckBox('', 'doimage', $this->getVar('doimage'));
- $noimages_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWIMAGES);
+ $noimages_checkbox->addOption(1, _MD_WFDOWNLOADS_ALLOWIMAGES);
$options_tray->addElement($noimages_checkbox);
$breaks_checkbox = new XoopsFormCheckBox('', 'dobr', $this->getVar('dobr'));
- $breaks_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWBREAK);
+ $breaks_checkbox->addOption(1, _MD_WFDOWNLOADS_ALLOWBREAK);
$options_tray->addElement($breaks_checkbox);
$sform->addElement($options_tray);
// download: features
@@ -658,14 +659,14 @@
$button_tray = new XoopsFormElementTray('', '');
if ($this->isNew()) {
$button_tray->addElement(new XoopsFormHidden('op', 'download.save'));
- $button_submit = new XoopsFormButton('', '', _SUBMIT, 'submit');
- $button_submit->setExtra('onclick="this.form.elements.op.value=\'download.save\'"');
+ $button_submit = new XoopsFormButton('', '', _SUBMIT, 'submit');
+ //$button_submit->setExtra('onclick="this.form.elements.op.value=\'download.save\'"');
$button_tray->addElement($button_submit);
} else {
$button_tray->addElement(new XoopsFormHidden('lid', (int)$this->getVar('lid')));
$button_tray->addElement(new XoopsFormHidden('op', 'download.save'));
- $button_submit = new XoopsFormButton('', '', _SUBMIT, 'submit');
- $button_submit->setExtra('onclick="this.form.elements.op.value=\'download.save\'"');
+ $button_submit = new XoopsFormButton('', '', _SUBMIT, 'submit');
+ //$button_submit->setExtra('onclick="this.form.elements.op.value=\'download.save\'"');
$button_tray->addElement($button_submit);
}
$button_reset = new XoopsFormButton('', '', _RESET, 'reset');
@@ -836,7 +837,8 @@
$description_tray->setDescription(_MD_WFDOWNLOADS_DESCRIPTION_DESC);
$sform->addElement($description_tray);
// download: dohtml, dosmiley, doxcode, doimage, dobr
- $options_tray = new XoopsFormElementTray(_AM_WFDOWNLOADS_TEXTOPTIONS, '<br />');
+ $options_tray = new XoopsFormElementTray(_AM_WFDOWNLOADS_TEXTOPTIONS, ' ');
+ $options_tray->setDescription(_AM_WFDOWNLOADS_TEXTOPTIONS_DESC);
$html_checkbox = new XoopsFormCheckBox('', 'dohtml', $this->getVar('dohtml'));
$html_checkbox->addOption(1, _AM_WFDOWNLOADS_ALLOWHTML);
$options_tray->addElement($html_checkbox);
@@ -1063,11 +1065,11 @@
} else {
$button_tray->addElement(new XoopsFormHidden('status', _WFDOWNLOADS_STATUS_UPDATED));
$button_tray->addElement(new XoopsFormHidden('lid', (int)$this->getVar('lid')));
- $button_submit = new XoopsFormButton('', '', _SUBMIT, 'submit');
- $button_submit->setExtra('onclick="this.form.elements.op.value=\'download.save\'"');
+ $button_submit = new XoopsFormButton('', '', _SUBMIT, 'submit');
+ $button_submit->setExtra('onclick="this.form.elements.op.value=\'download.save\'"');
$button_tray->addElement($button_submit);
- $button_delete = new XoopsFormButton('', '', _DELETE, 'submit');
- $button_delete->setExtra('onclick="this.form.elements.op.value=\'download.delete\'"');
+ $button_delete = new XoopsFormButton('', '', _DELETE, 'submit');
+ $button_delete->setExtra('onclick="this.form.elements.op.value=\'download.delete\'"');
$button_tray->addElement($button_delete);
}
$button_reset = new XoopsFormButton('', '', _RESET, 'reset');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2014-03-24 19:16:59 UTC (rev 12404)
@@ -1,4 +1,4 @@
-<b><u>=> Version 3.23 Beta (2014-02-14)</u></b>
+<b><u>=> Version 3.23 Beta (2014-03-12)</u></b>
- update jQuery Thickbox plugin to 3.1 (luciorota)
- fixed: jQuery bug in templates (luciorota)
- standardization of English language files (cesag)
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -374,16 +374,11 @@
$wfdownloads = WfdownloadsWfdownloads::getInstance();
static $wfdownloads_isAdmin;
-
if (isset($wfdownloads_isAdmin)) {
return $wfdownloads_isAdmin;
}
- if (!$xoopsUser) {
- $wfdownloads_isAdmin = false;
- } else {
- $wfdownloads_isAdmin = $xoopsUser->isAdmin($wfdownloads->getModule()->getVar('mid'));
- }
+ $wfdownloads_isAdmin = (!is_object($xoopsUser)) ? false : $xoopsUser->isAdmin($wfdownloads->getModule()->getVar('mid'));
return $wfdownloads_isAdmin;
}
@@ -1203,10 +1198,10 @@
}
$uploadDirectory = $uploadDirectory . '/';
- $file_name = $_FILES['userfile']['name'];
+ $file_name = $_FILES['userfile']['name'];
- $maxFileSize = $wfdownloads->getConfig('maxfilesize');
- $maxImageWidth = $wfdownloads->getConfig('maximgwidth');
+ $maxFileSize = $wfdownloads->getConfig('maxfilesize');
+ $maxImageWidth = $wfdownloads->getConfig('maximgwidth');
$maxImageHeight = $wfdownloads->getConfig('maximgheight');
// TO DO: use Xoops XoopsMediaUploader class
@@ -1235,9 +1230,8 @@
// $file['url'] = XOOPS_URL . '/' . $uploadDirectory . '/';
$file['filename'] = strtolower($uploader->savedFileName);
$file['filetype'] = $_FILES['userfile']['type'];
- $file['size'] = filesize($uploadDirectory . strtolower($uploader->savedFileName));
+ $file['size'] = filesize($uploadDirectory . strtolower($uploader->savedFileName));
}
-
return $file;
}
}
@@ -1332,11 +1326,11 @@
{
if ($considerHtml) {
// if the plain text is shorter than the maximum length, return the whole text
- if (strlen(preg_replace('/<.*?>/', '', $text)) <= $length) {
+ if (strlen(preg_replace('/<.*?'.'>/', '', $text)) <= $length) {
return $text;
}
// splits all html-tags to scanable lines
- preg_match_all('/(<.+?>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
+ preg_match_all('/(<.+?'.'>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
$total_length = strlen($ending);
$open_tags = array();
$truncate = '';
@@ -1358,7 +1352,7 @@
unset($open_tags[$pos]);
}
// if tag is an opening tag
- } elseif (preg_match('/^<\s*([^\s>!]+).*?>$/s', $line_matchings[1], $tag_matchings)) {
+ } elseif (preg_match('/^<\s*([^\s>!]+).*?'.'>$/s', $line_matchings[1], $tag_matchings)) {
// add tag to the beginning of $open_tags list
array_unshift($open_tags, strtolower($tag_matchings[1]));
}
@@ -1443,32 +1437,30 @@
*/
function wfdownloads_swishe_config()
{
- // IN PROGRESS
- // IN PROGRESS
- // IN PROGRESS
- global $xoopsUser;
$wfdownloads = WfdownloadsWfdownloads::getInstance();
// Get the path to the repository
// IN PROGRESS
- $doc_path = $wfdownloads->getConfig('swishe_doc_path');
+ // IN PROGRESS
+ // IN PROGRESS
+ $swisheDocPath = $wfdownloads->getConfig('swishe_doc_path'); // IN PROGRESS WFDOWNLOADS REPOSITORY PATH
// Create _binfilter.sh
- //$file = $doc_path."/_binfilter.sh";
- //$fp = fopen($file,'w') or die("<BR><BR>Unable to open $file");
-
- //fputs($fp,"strings \"\$1\" - 2>/dev/null\n");
+ // IN PROGRESS
+ // IN PROGRESS
+ // IN PROGRESS
+ //$file = "{$swisheDocPath}/_binfilter.sh";
+ //$fp = fopen($file, 'w') or die("<BR><BR>Unable to open $file");
+ //fputs($fp, "strings \"\$1\" - 2>/dev/null\n");
//fclose($fp);
+ //chmod($file, 0755);
- //chmod($file,0755);
-
// Create swish-e.conf
- $file = $doc_path . "/swish-e.conf";
+ $file = "{$swisheDocPath}/swish-e.conf";
$fp = fopen($file, 'w') or die("<BR><BR>Unable to open {$file}");
-
- $line = "IndexDir " . $doc_path . "/\n";
+ $line = "IndexDir {$swisheDocPath}/\n";
fputs($fp, $line);
- $line = "IndexFile " . $doc_path . "/index.swish-e\n";
+ $line = "IndexFile {$swisheDocPath}/index.swish-e\n";
fputs($fp, $line);
//$line = "TruncateDocSize 100000\n";
//fputs($fp,$line);
@@ -1476,17 +1468,18 @@
fputs($fp, $line);
$line = "IndexContents TXT* .dat\n";
fputs($fp, $line);
- //$line = "FileFilter .dat \"".$doc_path."/_binfilter.sh\" \"'%p'\"\n";
+ //$line = "FileFilter .dat \"{$swisheDocPath}/_binfilter.sh\" \"'%p'\"\n";
//fputs($fp,$line);
$line = "IndexOnly .dat\n";
fputs($fp, $line);
$line = "MinWordLimit 3\n";
fputs($fp, $line);
-
fclose($fp);
-
chmod($file, 0755);
+ // IN PROGRESS
+ // IN PROGRESS
+ // IN PROGRESS
print("<SCRIPT LANGUAGE='Javascript'>\r");
print("location='config_main.php';");
print("</SCRIPT>");
@@ -1494,16 +1487,18 @@
function wfdownloads_swishe_search($search_query)
{
+ $wfdownloads = WfdownloadsWfdownloads::getInstance();
+
// IN PROGRESS
// IN PROGRESS
// IN PROGRESS
- global $xoopsUser;
- $wfdownloads = WfdownloadsWfdownloads::getInstance();
-
$search_query = stripslashes($search_query);
if (((strlen($search_query) > 2) && ($last_query != $search_query)) && ($page == false)) {
//print "<BR>SEARCH!";
// Get the first word in $search_query and use it for the $summary_query.
+ // IN PROGRESS
+ // IN PROGRESS
+ // IN PROGRESS
$summary_query = str_replace("\"", " ", $search_query);
$summary_query = trim($summary_query);
$summary_query_e = explode(" ", $summary_query);
@@ -1513,23 +1508,35 @@
//print "<BR>SQ: ".$summary_query;
// Get the location of the document repository (the index files are located in the root)
- $repository_root = $dms_config['doc_path'];
- $repository_root_strlen = strlen($dms_config['doc_path']);
+ // IN PROGRESS
+ // IN PROGRESS
+ // IN PROGRESS
+ $swisheDocPath = $wfdownloads->getConfig('swishe_doc_path'); // IN PROGRESS WFDOWNLOADS REPOSITORY PATH
+ $swisheDocPath_strlen = strlen($wfdownloads->getConfig('swishe_doc_path'));
// Get the location of the SWISH-E executable
- $swish_e_path = $dms_config['swish-e_path'];
+ // IN PROGRESS
+ // IN PROGRESS
+ // IN PROGRESS
+ $swisheExePath = $wfdownloads->getConfig('swishe_exe_path');
// Get the search_limit to limit the search to X number of entries
- $search_limit = $dms_config['search_limit'];
+ // IN PROGRESS
+ // IN PROGRESS
+ // IN PROGRESS
+ $search_limit = $wfdownloads->getConfig('search_limit');
//print "<BR>Query: ".$search_query;
+
+ // Get search query
$search_query = EscapeShellCmd($search_query); // escape potentially malicious shell commands
$search_query = stripslashes($search_query); // remove backslashes from search query
$search_query = preg_replace('#("|\')#', '', $search_query); // remove quotes from search query
- $swish = $swish_e_path . "/swish-e"; // path of swish-e command
- $search_index = $repository_root . "/index.swish-e"; // path of swish-e index file
- $search_params = "-H1 -m" . $search_limit; // Additional search parameters
+ $swish = "{$swisheExePath}/swish-e"; // path of swish-e command
+ $search_index = "{$swisheDocPath}/index.swish-e"; // path of swish-e index file
+ $search_params = "-H1 -m{$search_limit}"; // Additional search parameters
- $pipe_handler = popen("$swish -w $search_query -f $search_index $search_params", "r")
+ // Opens a pipe to swish-e
+ $pipe_handler = popen("{$swish} -w {$search_query} -f {$search_index} {$search_params}", "r")
or die("The search request generated an error...Please try again.");
//print "$swish -w $search_query -f $search_index $search_params<BR>";
@@ -1565,7 +1572,7 @@
$relevance = $relevance / 10; // format relevance as a percentage for search results
$full_path_and_file = $result_url;
- $result_url = trim(substr($result_url, ($repository_root_strlen - 1), strlen($result_url)));
+ $result_url = trim(substr($result_url, ($swisheDocPath_strlen - 1), strlen($result_url)));
$file_path = strright($result_url, (strlen($result_url) - 2));
$query = "SELECT * ";
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/index.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/index.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/index.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -45,7 +45,7 @@
$allowedDownCategoriesIds = $gperm_handler->getItemIds('WFDownCatPerm', $groups, $wfdownloads->getModule()->mid());
$allowedUpCategoriesIds = $gperm_handler->getItemIds('WFUpCatPerm', $groups, $wfdownloads->getModule()->mid());
-$xoopsOption['template_main'] = 'wfdownloads_index.html';
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_index.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -638,4 +638,9 @@
define('_AM_WFDOWNLOADS_MOD_FORMULIZE_IDREQ', "Formulize Form ID");
// 3.23
define('_AM_WFDOWNLOADS_MOD_APPROVE', "Approve and delete modification request");
-define('_AM_WFDOWNLOADS_MOD_SAVE', "Save");
\ No newline at end of file
+define('_AM_WFDOWNLOADS_MOD_SAVE', "Save");
+
+define('_AM_WFDOWNLOADS_TEXTOPTIONS_DESC', "Description and Summary text options");
+define('_AM_WFDOWNLOADS_FCATEGORY_DESCRIPTION_DESC', "");
+define('_AM_WFDOWNLOADS_FCATEGORY_SUMMARY_DESC', "");
+define('_AM_WFDOWNLOADS_TEXTOPTIONS_DESC', "Description and Summary text options");
\ No newline at end of file
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/common.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -32,4 +32,4 @@
define('_CO_WFDOWNLOADS_ACTIONS', "Actions");
define('_CO_WFDOWNLOADS_LEGEND', "Legend");
define('_CO_WFDOWNLOADS_ERROR_NOCATEGORY', "Error: non-existent category");
-define('_CO_WFDOWNLOADS_ERROR_NODOWNLOAD', "Error: non-existent download");
\ No newline at end of file
+define('_CO_WFDOWNLOADS_ERROR_NODOWNLOAD', "Error: non-existent download");
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -347,3 +347,15 @@
define('_MD_WFDOWNLOADS_SUBCATEGORIESLISTING', "Subcategories listing");
define('_MD_WFDOWNLOADS_DOWNLOADSLISTING', "Downloads listing");
define('_MD_WFDOWNLOADS_SORTDOWNLOADSBY', "Sort downloads by");
+// Other Options
+define('_MD_WFDOWNLOADS_TEXTOPTIONS', "Text options");
+define('_MD_WFDOWNLOADS_TEXTOPTIONS_DESC', "Description and Summary text options");
+define('_MD_WFDOWNLOADS_ALLOWHTML', " Allow HTML tags");
+define('_MD_WFDOWNLOADS_ALLOWSMILEY', " Allow Smiley icons");
+define('_MD_WFDOWNLOADS_ALLOWXCODE', " Allow XOOPS codes");
+define('_MD_WFDOWNLOADS_ALLOWIMAGES', " Allow images");
+define('_MD_WFDOWNLOADS_ALLOWBREAK', " Use XOOPS line break conversion");
+define('_MD_WFDOWNLOADS_UPLOADFILE', "File uploaded successfully");
+define('_MD_WFDOWNLOADS_NOMENUITEMS', "No menu items within the menu");
+//singlefile.php
+define('_MD_WFDOWNLOADS_PREVIEW', "Preview");
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/mirror.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -68,7 +68,7 @@
case "list" : // this case is not removed for backward compatibility issues
$start = WfdownloadsRequest::getInt('start', 0);
- $xoopsOption['template_main'] = 'wfdownloads_mirrors.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_mirrors.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/newlist.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/newlist.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/newlist.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -21,7 +21,7 @@
$currentFile = basename(__FILE__);
include 'header.php';
-$xoopsOption['template_main'] = 'wfdownloads_newlistindex.html';
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_newlistindex.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/ratefile.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -116,7 +116,7 @@
echo $rating->getHtmlErrors();
}
} else {
- $xoopsOption['template_main'] = 'wfdownloads_ratefile.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_ratefile.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/review.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/review.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/review.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -68,7 +68,7 @@
case "list" : // this care is not removed for backward compatibility issues
$start = WfdownloadsRequest::getInt('start', 0);
- $xoopsOption['template_main'] = 'wfdownloads_reviews.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_reviews.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/singlefile.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -58,7 +58,7 @@
}
// Load Template
-$xoopsOption['template_main'] = 'wfdownloads_singlefile.html';
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_singlefile.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
@@ -195,7 +195,20 @@
$xoopsTpl->assign('shotheight', $wfdownloads->getConfig('shotheight'));
$xoopsTpl->assign('show_screenshot', true);
}
+// Get file url
+$fullFilename = trim($downloadInfo['filename']);
+if ((!$downloadInfo['url'] == '' && !$downloadInfo['url'] == 'http://') || $fullFilename == '') {
+ $fileUrl = $myts->htmlSpecialChars(preg_replace('/javascript:/si', 'javascript:', $downloadInfo['url']), ENT_QUOTES);
+} else {
+ $mimeType = $downloadInfo['filetype'];
+ $file = strrev($fullFilename);
+ $tempFilename = strtolower(strrev(substr($file, 0, strpos($file, '--'))));
+ $filename = ($tempFilename == '') ? $fullFilename : $tempFilename;
+ $fileUrl = XOOPS_URL . str_replace(XOOPS_ROOT_PATH, '', $wfdownloads->getConfig('uploaddir')) . '/' . stripslashes(trim($fullFilename));
+}
+$xoopsTpl->assign('file_url', $fileUrl);
+
// Breadcrumb
include_once XOOPS_ROOT_PATH . '/class/tree.php';
$categoriesTree = new XoopsObjectTree($wfdownloads->getHandler('category')->getObjects(), 'cid', 'pid');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/submit.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/submit.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/submit.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -72,7 +72,7 @@
switch ($op) {
case "download.disclaimer" :
// Show disclaimers
- $xoopsOption['template_main'] = 'wfdownloads_disclaimer.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_disclaimer.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
@@ -212,7 +212,7 @@
$title = trim($_POST['title']);
} else {
$isAdmin = wfdownloads_userIsAdmin();
- $down = wfdownloads_uploading($_FILES, $wfdownloads->getConfig('uploaddir'), '', $currentFile, 0, true, $isAdmin);
+ $down = wfdownloads_uploading($_FILES, $wfdownloads->getConfig('uploaddir'), '', $currentFile, 0, false, $isAdmin);
$url = ($_POST['url'] != "http://") ? $_POST['url'] : '';
$size = $down['size'];
$filename = $down['filename'];
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_singlefile.html
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_singlefile.html 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/templates/wfdownloads_singlefile.html 2014-03-24 19:16:59 UTC (rev 12404)
@@ -32,6 +32,7 @@
<br/>
<div><b><{$smarty.const._MD_WFDOWNLOADS_FILESIZE}>:</b> <{$download.size}></div>
+ <div><b><{$smarty.const._MD_WFDOWNLOADS_UPLOAD_FILETYPE}>:</b> <{$download.filetype}></div>
<b><{$smarty.const._MD_WFDOWNLOADS_DOWNTIMES}></b>
<div style="margin-left: 4px;">
@@ -44,6 +45,38 @@
<br/>
+ <{if @in_array($download.filetype, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png'))}>
+ <div style="margin-left: 10px; margin-right: 10px; padding: 4px; background-color:#e6e6e6; border-color:#999999;" class="outer">
+ <b><{$smarty.const._MD_WFDOWNLOADS_PREVIEW}></b>
+ <br/>
+ <img style="width:100%; height:auto;" src="<{$file_url}>" />
+ </div>
+ <br/>
+ <{elseif @in_array($download.filetype, array('audio/mpeg'))}>
+ <div style="margin-left: 10px; margin-right: 10px; padding: 4px; background-color:#e6e6e6; border-color:#999999;" class="outer">
+ <b><{$smarty.const._MD_WFDOWNLOADS_PREVIEW}></b>
+ <br/>
+ AUDIO PLAYER // IN PROGRESS
+ </div>
+ <br/>
+ <{elseif @in_array($download.filetype, array('application/pdf'))}>
+ <div style="margin-left: 10px; margin-right: 10px; padding: 4px; background-color:#e6e6e6; border-color:#999999;" class="outer">
+ <b><{$smarty.const._MD_WFDOWNLOADS_PREVIEW}></b>
+ <br/>
+ <iframe style="width:100%; height: auto;" src="<{$file_url}>">
+ <p>Your browser does not support iframes.</p>
+ </iframe>
+ </div>
+ <br/>
+ <{elseif @in_array($download.filetype, array('video/flv', 'application/octet-stream', 'video/x-flv'))}>
+ <div style="margin-left: 10px; margin-right: 10px; padding: 4px; background-color:#e6e6e6; border-color:#999999;" class="outer">
+ <b><{$smarty.const._MD_WFDOWNLOADS_PREVIEW}></b>
+ <br/>
+ VIDEO PLAYER // IN PROGRESS
+ </div>
+ <br/>
+ <{/if}>
+
<{if $download.use_ratings == 1}>
<div style="margin-left: 10px; margin-right: 10px; padding: 4px; background-color:#e6e6e6; border-color:#999999;" class="outer">
<div><b><{$smarty.const._MD_WFDOWNLOADS_RATINGC}></b> <img src="images/icon/<{$download.rateimg}>"
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/topten.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/topten.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/topten.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -21,7 +21,7 @@
$currentFile = basename(__FILE__);
include 'header.php';
-$xoopsOption['template_main'] = 'wfdownloads_topten.html';
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_topten.html";
// Check permissions
if (($_GET['list'] == 'rate') && $wfdownloads->getConfig('enable_ratings') == false && !wfdownloads_userIsAdmin()) {
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/viewcat.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -68,7 +68,7 @@
$allowedDownCategoriesIds = $gperm_handler->getItemIds('WFDownCatPerm', $groups, $wfdownloads->getModule()->mid());
$allowedUpCategoriesIds = $gperm_handler->getItemIds('WFUpCatPerm', $groups, $wfdownloads->getModule()->mid());
-$xoopsOption['template_main'] = 'wfdownloads_viewcat.html';
+$xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_viewcat.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/visit.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/visit.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/visit.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -81,7 +81,7 @@
}
if ($wfdownloads->getConfig('showDowndisclaimer') && $agreed == false) {
- $xoopsOption['template_main'] = 'wfdownloads_disclaimer.html';
+ $xoopsOption['template_main'] = "{$wfdownloads->getModule()->dirname()}_disclaimer.html";
include XOOPS_ROOT_PATH . '/header.php';
$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php 2014-03-23 20:03:14 UTC (rev 12403)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php 2014-03-24 19:16:59 UTC (rev 12404)
@@ -42,9 +42,9 @@
$modversion['onUpdate'] = 'include/module.php';
$modversion['onUninstall'] = 'include/module.php';
-$modversion['date'] = '2014-02-14';
-$modversion['release_date'] = '2014/02/14';
-$modversion['releasedate'] = '2014-02-14';
+$modversion['date'] = '2014-03-12';
+$modversion['release_date'] = '2014/03/12';
+$modversion['releasedate'] = '2014-03-12';
$modversion['status'] = 'BETA 2';
$modversion['teammembers'] = "Bender, David, FrankBlack, Xpider, M0nty, Mithrandir, Marcan, felix[fx2024], Sudhaker, Jegelstaff";
@@ -219,8 +219,8 @@
$modversion['comments']['extraParams'] = array('cid');
// Comment callback functions
$modversion['comments']['callbackFile'] = 'include/comment_functions.php';
-$modversion['comments']['callback']['approve'] = 'wfdownloads_com_approve';
-$modversion['comments']['callback']['update'] = 'wfdownloads_com_update';
+$modversion['comments']['callback']['approve'] = $modversion['dirname'] . '_com_approve';
+$modversion['comments']['callback']['update'] = $modversion['dirname'] . '_com_update';
// Templates
@@ -1036,7 +1036,7 @@
// Notification
$modversion['hasNotification'] = true;
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
-$modversion['notification']['lookup_func'] = 'wfdownloads_notify_iteminfo';
+$modversion['notification']['lookup_func'] = $modversion['dirname'] . '_notify_iteminfo';
$i = 0;
$modversion['notification']['category'][$i]['name'] = 'global';
|