|
From: <be...@us...> - 2013-02-27 09:41:54
|
Revision: 11117
http://sourceforge.net/p/xoops/svn/11117
Author: beckmi
Date: 2013-02-27 09:41:47 +0000 (Wed, 27 Feb 2013)
Log Message:
-----------
Version 1.51 Beta 1: Updating to XOOPS 2.5.5 Admin GUI
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/about.php
XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
XoopsModules/lexikon/trunk/lexikon/admin/category.php
XoopsModules/lexikon/trunk/lexikon/admin/entry.php
XoopsModules/lexikon/trunk/lexikon/admin/functions.php
XoopsModules/lexikon/trunk/lexikon/admin/importdictionary.php
XoopsModules/lexikon/trunk/lexikon/admin/importglossaire.php
XoopsModules/lexikon/trunk/lexikon/admin/importwiwimod.php
XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php
XoopsModules/lexikon/trunk/lexikon/admin/importxwords.php
XoopsModules/lexikon/trunk/lexikon/admin/index.php
XoopsModules/lexikon/trunk/lexikon/admin/menu.php
XoopsModules/lexikon/trunk/lexikon/admin/myblocksadmin.php
XoopsModules/lexikon/trunk/lexikon/admin/myblocksadmin2.php
XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
XoopsModules/lexikon/trunk/lexikon/admin/statistics.php
XoopsModules/lexikon/trunk/lexikon/admin/submissions.php
XoopsModules/lexikon/trunk/lexikon/include/blocksadmin.inc.php
XoopsModules/lexikon/trunk/lexikon/include/comment_functions.php
XoopsModules/lexikon/trunk/lexikon/include/functions.php
XoopsModules/lexikon/trunk/lexikon/include/sitemap.plugin.php
XoopsModules/lexikon/trunk/lexikon/include/waiting.plugin.php
XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
XoopsModules/lexikon/trunk/lexikon/language/english/main.php
XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php
XoopsModules/lexikon/trunk/lexikon/language/german/admin.php
XoopsModules/lexikon/trunk/lexikon/rss.php
XoopsModules/lexikon/trunk/lexikon/xoops_version.php
Added Paths:
-----------
XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php
XoopsModules/lexikon/trunk/lexikon/docs/
XoopsModules/lexikon/trunk/lexikon/docs/Backup-credits.txt
XoopsModules/lexikon/trunk/lexikon/docs/Backup-readme.txt
XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt
XoopsModules/lexikon/trunk/lexikon/docs/credits.txt
XoopsModules/lexikon/trunk/lexikon/docs/index.html
XoopsModules/lexikon/trunk/lexikon/docs/install.txt
XoopsModules/lexikon/trunk/lexikon/docs/lang_diff.txt
XoopsModules/lexikon/trunk/lexikon/docs/license.txt
XoopsModules/lexikon/trunk/lexikon/docs/readme.txt
XoopsModules/lexikon/trunk/lexikon/language/english/help/
XoopsModules/lexikon/trunk/lexikon/language/english/help/help.html
XoopsModules/lexikon/trunk/lexikon/language/english/help/index.html
XoopsModules/lexikon/trunk/lexikon/language/german/help/
XoopsModules/lexikon/trunk/lexikon/language/german/help/help.html
XoopsModules/lexikon/trunk/lexikon/language/german/help/index.html
Removed Paths:
-------------
XoopsModules/lexikon/trunk/lexikon/changelog.txt
XoopsModules/lexikon/trunk/lexikon/gpl.txt
XoopsModules/lexikon/trunk/lexikon/lang.diff
XoopsModules/lexikon/trunk/lexikon/readme.txt
Modified: XoopsModules/lexikon/trunk/lexikon/admin/about.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/about.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/about.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -1,159 +1,30 @@
-<?php
-/**
- * $Id: about.php v 1.5 23 August 2004 hsalazar Exp $
- * Module: Lexikon - glossary module
- * Version: v 1.5
- * Release Date:
- * Author: hsalazar
- * License: GNU
- */
-
-include 'admin_header.php';
-$myts =& MyTextSanitizer::getInstance();
-
-xoops_cp_header();
-
-$module_handler =& xoops_gethandler('module');
-$versioninfo =& $module_handler->get($xoopsModule->getVar('mid'));
-echo "
- <style type=\"text/css\">
- label,text {
- display: block;
- float: left;
- margin-bottom: 2px;
- margin-top: 2px;
- }
- label {
- text-align: right;
- width: 150px;
- padding-right: 20px;
- }
- br {
- clear: left;
- }
-</style>";
-/**
- * display module info
- */
-
-function about() {
- $op = 'default';
- global $xoopsConfig, $xoopsModuleConfig, $xoopsModule, $versioninfo;
-
- echo "<br clear=\"all\" />";
- echo "<img src='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/".$versioninfo->getInfo('image')."' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px; '>";
- 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')." v. ".$versioninfo->getInfo('version')."</div>";
- if ($versioninfo->getInfo('author_realname') != '') {
- $author_name = $versioninfo->getInfo('author')." (".$versioninfo->getInfo('author_realname').")";
- } else {
- $author_name = $versioninfo->getInfo('author');
- }
- echo "<br clear=\"all\" /><BR />";
-
- echo "<div style='padding: 8px;'>";
- echo "<table width='100%' cellspacing='2' cellpadding='2' border='0' class='outer'>";
- echo "<tr>";
- echo "<td colspan='2' class='even' align='left'><b>" . $versioninfo->getInfo( 'name' ) . " " . $versioninfo->getInfo( 'version' ) . "</b></td>";
- echo "</tr></table>";
- echo "<br clear=\"all\" />";
-
- echo "<label>" . _AM_LX_ABOUT_RELEASEDATE . ":</label><text>" . $versioninfo->getInfo( 'release' ) . "</text><br />";
- echo "<label>" . _AM_LX_ABOUT_AUTHOR . ":</label><text>" . $versioninfo->getInfo( 'author' ) . "</text><br />";
- //echo "<label>" . _AM_LX_ABOUT_LICENSE . ":</label><text><a href=\"".$versioninfo->getInfo( 'license_file' )."\" target=\"_blank\" >" . $versioninfo->getInfo( 'license' ) . "</a></text>\n";
- echo "<label>" . _AM_LX_ABOUT_LICENSE . ":</label><text><a href=\"".$versioninfo->getInfo( 'license_file' )."\" target=\"_blank\" >" . $versioninfo->getInfo( 'license' ) . "</a></text>\n";
- echo "</div>";
- echo "<br clear=\"all\" />";
-
- // information
- echo "<div style='padding: 8px;'>";
- echo "<table width='100%' cellspacing='2' cellpadding='2' border='0' class='outer'>";
- echo "<tr>";
- echo "<td colspan='2' class='even' align='left'><b>". _AM_LX_ABOUT_MODULE_INFO ."</b></td>";
- echo "</tr></table>";
-
- echo "<label>" . _AM_LX_ABOUT_MODULE_STATUS . ":</label><text>" . $versioninfo->getInfo( 'module_status' ) . "</text><br />";
- echo "<label>" . _AM_LX_ABOUT_WEBSITE . ":</label><text>" . "<a href='" . $versioninfo->getInfo( 'module_website_url' ) . "' target='_blank'>" . $versioninfo->getInfo( 'module_website_name' ) . "</a>" . "</text><br />";
-
- If ($versioninfo->getInfo('submit_bug') != '') {
- echo "<label>" . _AM_LX_ABOUT_SUBMIT_BUG . "</label><text><a href='" . $versioninfo->getInfo('submit_bug') . "' target='blank'>" . _AM_LX_ABOUT_SUBMIT_BUG_TEXT . "</a></text><BR />";
- }
- If ($versioninfo->getInfo('submit_feature') != '') {
- echo "<label>" . _AM_LX_ABOUT_SUBMIT_FEATURE . "</label><text'><a href='" . $versioninfo->getInfo('submit_feature') . "' target='blank'>" . _AM_LX_ABOUT_SUBMIT_FEATURE_TEXT . "</a></text><BR />";
- }
- echo "</div>";
- echo "<br clear=\"all\" />";
-
-
- echo "<div style='padding: 8px;'>";
- echo "<table width='100%' cellspacing='2' cellpadding='2' border='0' class='outer'>";
- echo "<tr>";
- echo "<td colspan='2' class='even' align='left'><b>". _AM_LX_ABOUT_DISCLAIMER ."</b></td>";
- echo "</tr></table>";
- echo "<div>". _AM_LX_ABOUT_DISCLAIMER_TEXT . "</div>";
- echo "</div>";
- echo "<br clear=\"all\" />";
- $file = XOOPS_ROOT_PATH. "/modules/" . $xoopsModule->dirname()."/changelog.txt";
- if ( is_readable( $file ) ) {
- echo "<div style='padding: 8px;'>";
- echo "<table width='100%' cellspacing='2' cellpadding='2' border='0' class='outer'>";
- echo "<tr>";
- echo "<td colspan='2' class='even' align='left'><b>". _AM_LX_ABOUT_CHANGELOG ."</b></td>";
- echo "</tr></table>";
-
- echo "". implode("<br />", file( $file )) . "";
- echo "</div>";
-
- echo "<br clear=\"all\" />";
- }
-
-}
-
-/**
- * readme file
- */
-
-function readme() {
- global $xoopsConfig, $xoopsModuleConfig, $xoopsModule, $versioninfo;
-
- echo "<br clear=\"all\" />";
- echo "<img src='".XOOPS_URL."/modules/".$xoopsModule->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')." v. ".$versioninfo->getInfo('version')."</div>";
- if ($versioninfo->getInfo('author_realname') != '') {
- $author_name = $versioninfo->getInfo('author')." (".$versioninfo->getInfo('author_realname').")";
- } else {
- $author_name = $versioninfo->getInfo('author');
- }
- echo "<br clear=\"all\" /><BR />";
-
-
- $file = XOOPS_ROOT_PATH. "/modules/" . $xoopsModule->dirname()."/readme.txt";
- if ( is_readable( $file ) ) {
- echo "<div style='padding: 8px;'>";
- echo "<table width='100%' cellspacing='2' cellpadding='2' border='0' class='outer'>";
- echo "<tr>";
- echo "<td colspan='2' class='even' align='left'><b>". _AM_LX_ABOUT_README ."</b></td>";
- echo "</tr></table>";
-
-
- echo "". implode("<br />", file( $file )) . "";
- echo "</div>";
- echo "<br clear=\"all\" />";
- }
-
-}
-
-/* -- Available operations -- */
-$op = isset($_GET['op']) ? $_GET['op'] : (isset($_POST['op']) ? $_POST['op'] : '');
-switch ( $op ) {
- case "readme":
- lx_adminMenu(47);
- readme();
- break;
- case "about":
- default:
- lx_adminMenu(11);
- about();
- break;
-}
-xoops_cp_footer();
-?>
\ No newline at end of file
+<?php
+/*
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
+
+include 'admin_footer.php';
\ No newline at end of file
Added: XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php (rev 0)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -0,0 +1,28 @@
+<?php
+/*
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+echo "<div class='adminfooter'>\n"
+ ." <div style='text-align: center;'>\n"
+ ." <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
+ ." </div>\n"
+ ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
+ ."</div>";
+
+xoops_cp_footer();
\ No newline at end of file
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -1,38 +1,51 @@
-<?php
-/**
- * $Id: admin_header.php v 1.0 8 May 2004 hsalazar Exp $
- * Module: Lexikon - glossary module
- * Version: v 1.00
- * Release Date: 8 May 2004
- * Author: hsalazar
- * Licence: GNU
- */
-
-include("../../../mainfile.php");
-include '../../../include/cp_header.php';
-
-if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
- include "../language/".$xoopsConfig['language']."/main.php";
-} else {
- include "../language/english/main.php";
-}
-include_once XOOPS_ROOT_PATH."/modules/lexikon/include/functions.php";
-include_once XOOPS_ROOT_PATH."/modules/lexikon/admin/functions.php";
-include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php";
-include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
-include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
-include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
-$myts =& MyTextSanitizer::getInstance();
-
-if ( is_object( $xoopsUser) ) {
- $xoopsModule = XoopsModule::getByDirname("lexikon");
- if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) {
- redirect_header(XOOPS_URL."/",1,_NOPERM);
- exit();
- }
-} else {
- redirect_header(XOOPS_URL."/",1,_NOPERM);
- exit();
-}
-
-?>
\ No newline at end of file
+<?php
+/*
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+$path = dirname(dirname(dirname(dirname(__FILE__))));
+include_once $path . '/mainfile.php';
+include_once $path . '/include/cp_functions.php';
+require_once $path . '/include/cp_header.php';
+
+global $xoopsModule;
+
+$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+
+//if functions.php file exist
+require_once dirname(dirname(__FILE__)) . '/include/functions.php';
+//include_once XOOPS_ROOT_PATH."/modules/lexikon/include/functions.php";
+include_once dirname(dirname(__FILE__)). "/admin/functions.php";
+include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php";
+include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
+include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
+include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
+
+
+// Load language files
+xoops_loadLanguage('admin', $thisModuleDir);
+xoops_loadLanguage('modinfo', $thisModuleDir);
+xoops_loadLanguage('main', $thisModuleDir);
+
+$pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
+$pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
+
+include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
+
+$myts =& MyTextSanitizer::getInstance();
\ No newline at end of file
Modified: XoopsModules/lexikon/trunk/lexikon/admin/category.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -29,7 +29,7 @@
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID;
$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(1, _AM_LX_CATS);
+// lx_adminMenu(1, _AM_LX_CATS);
$result01 = $xoopsDB -> query( "SELECT COUNT(*)
FROM " . $xoopsDB -> prefix( "lxcategories" ) . " " );
list( $totalcategories ) = $xoopsDB -> fetchRow( $result01 );
@@ -166,13 +166,13 @@
exit();
}
//$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(1, _AM_LX_CATS);
+// lx_adminMenu(1, _AM_LX_CATS);
echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_CATSHEADER . "</h3>";
$sform = new XoopsThemeForm( _AM_LX_MODCAT . ": $name" , "op", xoops_getenv( 'PHP_SELF' ) );
} else {
//$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(1, _AM_LX_CATS);
+// lx_adminMenu(1, _AM_LX_CATS);
$groups = true;
echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_CATSHEADER . "</h3>";
$sform = new XoopsThemeForm( _AM_LX_NEWCAT, "op", xoops_getenv( 'PHP_SELF' ) );
Modified: XoopsModules/lexikon/trunk/lexikon/admin/entry.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -24,7 +24,7 @@
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID;
include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- lx_adminMenu(2, _AM_LX_ENTRIES);
+// lx_adminMenu(2, _AM_LX_ENTRIES);
$startentry = isset( $_GET['startentry'] ) ? intval( $_GET['startentry'] ) : 0;
$startcat = isset( $_GET['startcat'] ) ? intval( $_GET['startcat'] ) : 0;
@@ -185,7 +185,7 @@
}
$term = $myts->stripSlashesGPC($myts->htmlSpecialChars($term));
- lx_adminMenu(2, _AM_LX_ADMINENTRYMNGMT);
+// lx_adminMenu(2, _AM_LX_ADMINENTRYMNGMT);
echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_ADMINENTRYMNGMT . "</h3>";
$sform = new XoopsThemeForm( _AM_LX_MODENTRY . ": $term" , "op", xoops_getenv( 'PHP_SELF' ) );
@@ -197,7 +197,7 @@
redirect_header( "index.php", 1, _AM_LX_NEEDONECOLUMN );
exit();
}
- lx_adminMenu(2, _AM_LX_ADMINENTRYMNGMT);
+// lx_adminMenu(2, _AM_LX_ADMINENTRYMNGMT);
$uid = $xoopsUser->getVar('uid');
echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_ADMINENTRYMNGMT . "</h3>";
$sform = new XoopsThemeForm( _AM_LX_NEWENTRY, "op", xoops_getenv( 'PHP_SELF' ) );
Modified: XoopsModules/lexikon/trunk/lexikon/admin/functions.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/functions.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/functions.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -45,7 +45,7 @@
include 'menu.php';
- $tpl =& new XoopsTpl();
+ $tpl = new XoopsTpl();
$tpl->assign( array(
'headermenu' => $headermenu,
'adminmenu' => $adminmenu,
@@ -249,11 +249,11 @@
*/
function lx_GetStatistics($limit){
$ret=array();
- $db =& Database::getInstance();
+ $db =& XoopsDatabaseFactory::getDatabaseConnection();
$tbls=$db->prefix('lxentries');
$tblt=$db->prefix('lxcategories');
- $db =& Database::getInstance();
+ $db =& XoopsDatabaseFactory::getDatabaseConnection();
// Number of Definitions per Category, including offline and submitted terms
$ret2=array();
$sql="SELECT count(s.entryID) as cpt, s.categoryID, t.name FROM $tbls s, $tblt t WHERE s.categoryID=t.categoryID GROUP BY s.categoryID ORDER BY t.name";
Modified: XoopsModules/lexikon/trunk/lexikon/admin/importdictionary.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/importdictionary.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/importdictionary.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -35,7 +35,7 @@
xoops_cp_header();
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(9, _AM_LX_IMPORT);
+// lx_adminMenu(9, _AM_LX_IMPORT);
}
/****
* Start Import
Modified: XoopsModules/lexikon/trunk/lexikon/admin/importglossaire.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/importglossaire.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/importglossaire.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -37,7 +37,7 @@
xoops_cp_header();
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID;
$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(9, _AM_LX_IMPORT);
+// lx_adminMenu(9, _AM_LX_IMPORT);
}
/****
Modified: XoopsModules/lexikon/trunk/lexikon/admin/importwiwimod.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/importwiwimod.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/importwiwimod.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -35,7 +35,7 @@
xoops_cp_header();
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(9, _AM_LX_IMPORT);
+// lx_adminMenu(9, _AM_LX_IMPORT);
}
/****
Modified: XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -35,7 +35,7 @@
xoops_cp_header();
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(9, _AM_LX_IMPORT);
+// lx_adminMenu(9, _AM_LX_IMPORT);
}
/****
Modified: XoopsModules/lexikon/trunk/lexikon/admin/importxwords.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/importxwords.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/importxwords.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -37,7 +37,7 @@
xoops_cp_header();
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
$myts =& MyTextSanitizer::getInstance();
- lx_adminMenu(9, _AM_LX_IMPORT);
+// lx_adminMenu(9, _AM_LX_IMPORT);
}
/****
* Start Import
Modified: XoopsModules/lexikon/trunk/lexikon/admin/index.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/index.php 2013-02-27 09:15:29 UTC (rev 11116)
+++ XoopsModules/lexikon/trunk/lexikon/admin/index.php 2013-02-27 09:41:47 UTC (rev 11117)
@@ -1,315 +1,32 @@
-<?php
-/**
- * $Id: main.php v 1.0 8 May 2011 yerres Exp $
- * Module: Lexikon - glossary module
- * Version: v 1.00
- * Release Date: 18 Dec 2011
- * Author: yerres
- * Licence: GNU
- */
-
-include( "admin_header.php" );
-xoops_cp_header();
-$myts =& MyTextSanitizer::getInstance();
-global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule, $entryID;
-
-lx_adminMenu(0, _AM_LX_INVENTORY);
-//include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
-include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
-
-$startentry = isset( $_GET['startentry'] ) ? intval( $_GET['startentry'] ) : 0;
-$entryID = isset($_POST['entryID']) ? intval($_POST['entryID']) : 0;
-$pick = isset($_GET['pick']) ? intval($_GET['pick']) : 0;
-$pick = isset($_POST['pick']) ? intval($_POST['pick']) : $pick;
-
-$statussel = isset($_GET['statussel']) ? intval($_GET['statussel']) : 0;
-$statussel = isset($_POST['statussel']) ? intval($_POST['statussel']) : $statussel;
-
-$sortsel = isset($_GET['sortsel']) ? $_GET['sortsel'] : 'entryID';
-$sortsel = isset($_POST['sortsel']) ? $_POST['sortsel'] : $sortsel;
-
-$ordersel = isset($_GET['ordersel']) ? $_GET['ordersel'] : 'DESC';
-$ordersel = isset($_POST['ordersel']) ? $_POST['ordersel'] : $ordersel;
-
-//--- inventory
-$result = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxcategories" ) . " " );
-list( $totalcategories ) = $xoopsDB -> fetchRow( $result );
-
-$result01 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- " );
-list( $totalterms ) = $xoopsDB -> fetchRow( $result01 );
-
-$result02 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE offline = 0 AND submit = 0 AND request = 0 " );
-list( $totalpublished ) = $xoopsDB -> fetchRow( $result02 );
-
-$result03 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE submit = '1' AND request = '0' " );
-list( $totalsubmitted ) = $xoopsDB -> fetchRow( $result03 );
-
-$result04 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE submit = '1' AND request = '1' " );
-list( $totalrequested ) = $xoopsDB -> fetchRow( $result04 );
-
-$result05 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE offline = '1' " );
-list( $totaloffline ) = $xoopsDB -> fetchRow( $result05 );
-
-// Adapted from Smartsection
-echo "<table width='100%' class='outer' style=\"margin-top: 6px; clear:both;\" ; cellspacing='2' cellpadding='3' border='0' ><tr>";
-echo "<td class='odd'>" . _AM_LX_TOTALENTRIES . "</td><td align='center' class='even'>" . $totalpublished . "</td>";
-if ($xoopsModuleConfig['multicats'] == 1) {
- echo "<td class='odd'>" . _AM_LX_TOTALCATS . "</td><td align='center' class='even'>" . $totalcategories . "</td>";
-}
-echo "<td class='odd'>" . _AM_LX_TOTALSUBM . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>";
-echo "<td class='odd'>" . _AM_LX_TOTALREQ . "</td><td align='center' class='even'>" . $totalrequested . "</td>";
-echo "</tr></table>";
-echo "<br /><br />";
-//--- category dropdown
-if ($xoopsModuleConfig['multicats'] == 1) {
- $cattree = new XoopsTree( $xoopsDB->prefix("lxcategories"), "categoryID", "0" );
- echo "<table class='outer' width='100%'><tr ><td colspan=\"2\" class='even'><strong>" . _AM_LX_INVENTORY . "</strong></td></tr>";
- echo "<tr class=\"odd\" ><td width=\"30%\" align=\"left\">";
- echo '<form method=get action=\"category.php\">';
- $cattree -> makeMySelBox("name", "weight DESC",0,1,"",'window.location="category.php?op=mod&categoryID="+this.value');
- echo "</form>";
- echo "</td><td align=\"left\">";
- echo "<input type='button' name='button' onClick=\"location='category.php?op=addcat'\" value=' " . _AM_LX_CREATECAT . "' > ";
- echo "<input type='button' name='button' onclick=\"location='entry.php?op=add'\" value='" . _AM_LX_CREATEENTRY . "'> ";
- echo "</td></tr>";
- echo "</table><P><br/>";
-} else {
- //--- create button
- echo "<form><div style=\"margin-bottom: 12px;\">";
- echo "<input type='button' name='button' onclick=\"location='entry.php?op=add'\" value='" . _AM_LX_CREATEENTRY . "'> ";
- echo "</div></form>";
- echo "<br/><span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \"><b>" . _AM_LX_ALLITEMSMSG . "</b></span>";
-}
-// database update
-if (!lx_FieldExists('logourl',$xoopsDB->prefix('lxcategories')) || (lx_FieldExists('parent',$xoopsDB->prefix('lxcategories')))) {
- $i++;
- echo "<table><tr><td style='border-bottom: 1px dotted #cfcfcf; line-height: 16px;'><img src='".XOOPS_URL."/modules/".$xoopsModule->getVar('dirname')."/images/dialog-important.png"."' alt='' hspace='0' vspace='0' align='left' style='margin-right: 10px; '><A href='upgrade.php'>" . _AM_LX_PLEASE_UPGRADE. "</A></td></tr></table></P>";
-}
-
-//--- navigation bar
-$showingtxt = '';
-$selectedtxt = '';
-$cond = "";
-$selectedtxt0 = '';
-$selectedtxt1 = '';
-$selectedtxt2 = '';
-$selectedtxt3 = '';
-$selectedtxt4 = '';
-
-$sorttxtterm = "";
-$sorttxtcreated = "";
-$sorttxtauthor = "";
-$sorttxtentryID = "";
-$sorttxtcats = "";
-
-$ordertxtasc='';
-$ordertxtdesc='';
-
-switch ($sortsel) {
- case 'term':
- $sorttxtterm = "selected='selected'";
- break;
-
- case 'datesub':
- $sorttxtcreated = "selected='selected'";
- break;
-
- case 'uid':
- $sorttxtauthor = "selected='selected'";
- break;
-
- case 'categoryID':
- $sorttxtcats = "selected='selected'";
- break;
-
- default :
- $sorttxtentryID = "selected='selected'";
- break;
-}
-
-switch ($ordersel) {
- case 'ASC':
- $ordertxtasc = "selected='selected'";
- break;
-
- default :
- $ordertxtdesc = "selected='selected'";
- break;
-}
-
-switch ($statussel) {
- case '0' :
- //default:
- $selectedtxt0 = "selected='selected'";
- $caption = _ALL;
- $cond = "";
- $status_explanation = _AM_LX_ALL_EXP;
- break;
-
- case '1' :
- $selectedtxt1 = "selected='selected'";
- $caption = _AM_LX_SUBMITTED;
- $cond = " WHERE submit = 1 AND request = 0 ";
- $status_explanation = _AM_LX_SUBMITTED_EXP;
- break;
-
- case '2' :
- $selectedtxt2 = "selected='selected'";
- $caption = _AM_LX_PUBLISHED;
- $cond = " WHERE offline = 0 ";
- $status_explanation = _AM_LX_PUBLISHED_EXP;
- break;
-
- case '3' :
- $selectedtxt3 = "selected='selected'";
- $caption = _AM_LX_SHOWOFFLINE;
- $cond = " WHERE offline = 1 ";
- $status_explanation = _AM_LX_OFFLINE_EXP;
- break;
-
- case '4' :
- $selectedtxt4 = "selected='selected'";
- $caption ...
[truncated message content] |
|
From: <be...@us...> - 2013-02-27 21:09:32
|
Revision: 11119
http://sourceforge.net/p/xoops/svn/11119
Author: beckmi
Date: 2013-02-27 21:09:27 +0000 (Wed, 27 Feb 2013)
Log Message:
-----------
Updating icons and help files
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/category.php
XoopsModules/lexikon/trunk/lexikon/admin/entry.php
XoopsModules/lexikon/trunk/lexikon/admin/main.php
XoopsModules/lexikon/trunk/lexikon/admin/submissions.php
XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php
XoopsModules/lexikon/trunk/lexikon/include/functions.php
XoopsModules/lexikon/trunk/lexikon/language/german/help/help.html
Modified: XoopsModules/lexikon/trunk/lexikon/admin/category.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-02-27 21:09:27 UTC (rev 11119)
@@ -26,7 +26,7 @@
$startsub = isset( $_GET['startsub'] ) ? intval( $_GET['startsub'] ) : 0;
$datesub = isset( $_GET['datesub'] ) ? intval( $_GET['datesub'] ) : 0;
- global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID;
+ global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID, $pathIcon16;
$myts =& MyTextSanitizer::getInstance();
// lx_adminMenu(1, _AM_LX_CATS);
@@ -95,8 +95,8 @@
{
$name = $myts -> htmlSpecialChars( $name );
$description = $myts -> htmlSpecialChars(xoops_substr( strip_tags( $description ),0,60));
- $modify = "<a href='category.php?op=mod&categoryID=" . $categoryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif width='24' height='24' ALT='"._AM_LX_EDITCAT."'></a>";
- $delete = "<a href='category.php?op=del&categoryID=" . $categoryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif width='24' height='24' ALT='"._AM_LX_DELETECAT."'></a>";
+ $modify = "<a href='category.php?op=mod&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITCAT."'></a>";
+ $delete = "<a href='category.php?op=del&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETECAT."'></a>";
echo "<tr>
<td class='even' align='center'>" . $categoryID . "</td>
Modified: XoopsModules/lexikon/trunk/lexikon/admin/entry.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2013-02-27 21:09:27 UTC (rev 11119)
@@ -21,7 +21,7 @@
error_reporting(E_ERROR | E_WARNING | E_PARSE);
/* -- Available operations -- */
function entryDefault() {
- global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID;
+ global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID, $pathIcon16;
include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
// lx_adminMenu(2, _AM_LX_ENTRIES);
@@ -109,8 +109,8 @@
$catname = $myts -> htmlSpecialChars( $name );
$term = $myts -> htmlSpecialChars( $term );
$created= formatTimestamp( $created, 's' );
- $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif width='24' height='24' ALT='"._AM_LX_EDITENTRY."'></a>";
- $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif width='24' height='24' ALT='"._AM_LX_DELETEENTRY."'></a>";
+ $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITENTRY."'></a>";
+ $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETEENTRY."'></a>";
if ( $offline == 0 ) {
$status = "<img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/on.gif alt='"._AM_LX_ENTRYISON."'>";
Modified: XoopsModules/lexikon/trunk/lexikon/admin/main.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/main.php 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/admin/main.php 2013-02-27 21:09:27 UTC (rev 11119)
@@ -248,8 +248,8 @@
$sentby = xoops_getLinkedUnameFromId($uid);
$term = $myts -> htmlSpecialChars( $term );
$created= formatTimestamp( $created, 's' );
- $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif width='24' height='24' ALT='"._AM_LX_EDITENTRY."'></a> ";
- $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif width='24' height='24' ALT='"._AM_LX_DELETEENTRY."'></a>";
+ $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITENTRY."'></a> ";
+ $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETEENTRY."'></a>";
for ( $i = 0; $i < $totalItemsOnPage; $i++ ) {
$approve = '';
switch ($items) {
Modified: XoopsModules/lexikon/trunk/lexikon/admin/submissions.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/submissions.php 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/admin/submissions.php 2013-02-27 21:09:27 UTC (rev 11119)
@@ -114,8 +114,8 @@
$catname = $myts -> htmlSpecialChars( $name );
$term = $myts -> htmlSpecialChars( $term );
$created = formatTimestamp( $created, 's' );
- $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif width='24' height='24' ALT='"._AM_LX_EDITSUBM."'></a>";
- $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif width='24' height='24' ALT='"._AM_LX_DELETESUBM."'></a>";
+ $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITSUBM."'></a>";
+ $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETESUBM."'></a>";
//$approve = "<a href='entry.php?op=add&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/approve.gif width='20' height='20' ALT='"._AM_LX_APPROVESUBM."'></a>";
echo "<tr>
@@ -188,8 +188,8 @@
$catname = $myts -> htmlSpecialChars( $name );
$term = $myts -> htmlSpecialChars( $term );
$created = formatTimestamp( $created, 's' );
- $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif width='24' height='24' ALT='"._AM_LX_EDITSUBM."'></a>";
- $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif width='24' height='24' ALT='"._AM_LX_DELETESUBM."'></a>";
+ $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITSUBM."'></a>";
+ $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETESUBM."'></a>";
echo "<tr>";
echo "<td class='even' align='center'>" . $entryID . "</td>";
@@ -260,8 +260,8 @@
$catname = $myts -> htmlSpecialChars( $name );
$term = $myts -> htmlSpecialChars( $term );
$created = formatTimestamp( $created, 's' );
- $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif width='24' height='24' ALT='"._AM_LX_EDITSUBM."'></a>";
- $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif width='24' height='24' ALT='"._AM_LX_DELETESUBM."'></a>";
+ $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITSUBM."'></a>";
+ $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETESUBM."'></a>";
echo "<tr>";
echo "<td class='even' align='center'>" . $entryID . "</td>";
Modified: XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php 2013-02-27 21:09:27 UTC (rev 11119)
@@ -14,6 +14,11 @@
global $xoopsDB, $xoopsUser, $xoopsConfig;
$myts =& MyTextSanitizer::getInstance();
+ $module_handler = xoops_gethandler('module');
+ $moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+ $pathIcon16 = $xoopsModule->getInfo('icons16');
+
+
$module_handler = &xoops_gethandler('module');
$lexikon = &$module_handler->getByDirname('lexikon');
@@ -62,7 +67,7 @@
// Functional links
if ( $xoopsUser ) {
if ( $xoopsUser->isAdmin() ) {
- $adminlinks = "<a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=mod&entryID=".$entryID."\" target=\"_blank\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/edit.gif\" border=\"0\" alt=\""._MB_LX_EDITTERM."\" width=\"15\" height=\"11\"></a> <a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=del&entryID=".$entryID."\" target=\"_self\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/delete.gif\" border=\"0\" alt=\""._MB_LX_DELTERM."\" width=\"15\" height=\"11\"></a> ";
+ $adminlinks = "<a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=mod&entryID=".$entryID."\" target=\"_blank\"><img src=\"" . $pathIcon16. "/edit.png\" border=\"0\" alt=\""._MB_LX_EDITTERM."\" width=\"15\" height=\"11\"></a> <a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=del&entryID=".$entryID."\" target=\"_self\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/delete.gif\" border=\"0\" alt=\""._MB_LX_DELTERM."\" width=\"15\" height=\"11\"></a> ";
}
}
$userlinks = "<a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/print.php?entryID=".$entryID."\" target=\"_blank\"><img src=\"".XOOPS_URL."/modules/".$lexikon->dirname()."/images/print.gif\" border=\"0\" alt=\""._MB_LX_PRINTTERM."\" width=\"16\" height=\"16\"></a> <a href=\"mailto:?subject=".sprintf(_MB_LX_INTENTRY,$xoopsConfig["sitename"])."&body=".sprintf(_MB_LX_INTENTRYFOUND, $xoopsConfig['sitename']).": ".XOOPS_URL."/modules/" .$lexikon->dirname(). "/entry.php?entryID=".$entryID." \" target=\"_blank\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/friend.gif\" border=\"0\" alt=\""._MB_LX_SENDTOFRIEND."\" width=\"16\" height=\"16\"></a> ";
Modified: XoopsModules/lexikon/trunk/lexikon/include/functions.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/include/functions.php 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/include/functions.php 2013-02-27 21:09:27 UTC (rev 11119)
@@ -198,14 +198,21 @@
// Functional links
function lx_serviceLinks ( $variable ) {
global $xoopsUser, $xoopsDB, $xoopsModule, $xoopsModuleConfig, $xoopsConfig, $entrytype;
+
+
+ $module_handler = xoops_gethandler('module');
+ $moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+ $pathIcon16 = $xoopsModule->getInfo('icons16');
+
+
$srvlinks = "";
if ( $xoopsUser ) {
if ( $xoopsUser->isAdmin() ) {
- $srvlinks .= "<a TITLE=\""._EDIT."\" href=\"admin/entry.php?op=mod&entryID=".$variable['id']."\" target=\"_blank\"><img src=\"images/edit.gif\" border=\"0\" alt=\""._MD_LX_EDITTERM."\" width=\"15\" height=\"11\"></a> <a TITLE=\""._DELETE."\" href=\"admin/entry.php?op=del&entryID=".$variable['id']."\" target=\"_self\"><img src=\"images/delete.gif\" border=\"0\" alt=\""._MD_LX_DELTERM."\" width=\"15\" height=\"11\"></a> ";
+ $srvlinks .= "<a TITLE=\""._EDIT."\" href=\"admin/entry.php?op=mod&entryID=".$variable['id']."\" target=\"_blank\"><img src=\"" . $pathIcon16. "/edit.png\" border=\"0\" alt=\""._MD_LX_EDITTERM."\" width=\"16\" height=\"16\"></a> <a TITLE=\""._DELETE."\" href=\"admin/entry.php?op=del&entryID=".$variable['id']."\" target=\"_self\"><img src=\"" . $pathIcon16. "/delete.png\" border=\"0\" alt=\""._MD_LX_DELTERM."\" width=\"16\" height=\"16\"></a> ";
}
}
if ( $entrytype != "1" ) {
- $srvlinks .= "<a TITLE=\""._MD_LX_PRINTTERM."\" href=\"print.php?entryID=".$variable['id']."\" target=\"_blank\"><img src=\"images/print.gif\" border=\"0\" alt=\""._MD_LX_PRINTTERM."\" width=\"16\" height=\"16\"></a> <a TITLE=\""._MD_LX_SENDTOFRIEND."\" href=\"mailto:?subject=".sprintf(_MD_LX_INTENTRY,$xoopsConfig["sitename"])."&body=".sprintf(_MD_LX_INTENTRYFOUND, $xoopsConfig['sitename']).": ".XOOPS_URL."/modules/".$xoopsModule->dirname()."/entry.php?entryID=".$variable['id']." \" target=\"_blank\"><img src=\"images/friend.gif\" border=\"0\" alt=\""._MD_LX_SENDTOFRIEND."\" width=\"16\" height=\"16\"></a> ";
+ $srvlinks .= "<a TITLE=\""._MD_LX_PRINTTERM."\" href=\"print.php?entryID=".$variable['id']."\" target=\"_blank\"><img src=\"" . $pathIcon16. "/printer.png\" border=\"0\" alt=\""._MD_LX_PRINTTERM."\" width=\"16\" height=\"16\"></a> <a TITLE=\""._MD_LX_SENDTOFRIEND."\" href=\"mailto:?subject=".sprintf(_MD_LX_INTENTRY,$xoopsConfig["sitename"])."&body=".sprintf(_MD_LX_INTENTRYFOUND, $xoopsConfig['sitename']).": ".XOOPS_URL."/modules/".$xoopsModule->dirname()."/entry.php?entryID=".$variable['id']." \" target=\"_blank\"><img src=\"" . $pathIcon16. "/mail_replay.png\" border=\"0\" alt=\""._MD_LX_SENDTOFRIEND."\" width=\"16\" height=\"16\"></a> ";
if (( $xoopsModuleConfig['com_rule'] != 0 ) && (!empty($xoopsModuleConfig['com_anonpost']) || is_object($xoopsUser))) {
$srvlinks .= "<a TITLE=\""._COMMENTS."?\" href=\"comment_new.php?com_itemid=".$variable['id']."\" target=\"_parent\"><img src=\"images/comments.gif\" border=\"0\" alt=\"" ._COMMENTS. "?\" width=\"16\" height=\"16\"></a> ";
}
Modified: XoopsModules/lexikon/trunk/lexikon/language/german/help/help.html
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/language/german/help/help.html 2013-02-27 09:43:09 UTC (rev 11118)
+++ XoopsModules/lexikon/trunk/lexikon/language/german/help/help.html 2013-02-27 21:09:27 UTC (rev 11119)
@@ -1,20 +1,20 @@
<div id="help-template" class="outer">
<h1 class="head">Help:
- <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/lexikon/admin/index.php"
- title="Back to the administration of Lexikon"> Lexikon
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/mymodule/admin/index.php"
+ title="Back to the administration of Mymodule"> Mymodule
<img src="<{xoAdminIcons home.png}>"
- alt="Back to the Administration of Lexikon"/>
+ alt="Back to the Administration of Mymodule"/>
</a></h1>
<h4 class="odd">Description</h4>
- <p class="even">Lexikon is designed as a user-friendly glossary application for XOOPS. <br /> <br />
+ <p class="even">This module is ....<br /> <br />
</p>
<h4 class="odd">Install/uninstall</h4>
<p class="even">No special measures necessary, follow the standard installation process –
- extract the module folder into the ../modules directory. Then install the
+ extract the module folder into the ../modules directory. Install the
module through Admin -> System Module -> Modules.<br /> <br />
Detailed instructions on installing modules are available in the
<a href="http://goo.gl/adT2i">XOOPS Operations Manual</a> </p>
|
|
From: <txm...@us...> - 2013-03-10 12:16:27
|
Revision: 11192
http://sourceforge.net/p/xoops/svn/11192
Author: txmodxoops
Date: 2013-03-10 12:16:24 +0000 (Sun, 10 Mar 2013)
Log Message:
-----------
Fixed bug for defines and constant _LX_IMPORT
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/menu.php
XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php
Modified: XoopsModules/lexikon/trunk/lexikon/admin/menu.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/menu.php 2013-03-10 10:13:50 UTC (rev 11191)
+++ XoopsModules/lexikon/trunk/lexikon/admin/menu.php 2013-03-10 12:16:24 UTC (rev 11192)
@@ -26,37 +26,34 @@
$adminmenu = array();
$i=0;
-$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME;
+$adminmenu[$i]["title"] = _MI_LX_ADMENU1;
$adminmenu[$i]['link'] = "admin/index.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/home.png';
$i++;
-$adminmenu[$i]['title'] = _MI_LX_ADMENU1;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU2;
$adminmenu[$i]['link'] = "admin/main.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/manage.png';
$i++;
-$adminmenu[$i]['title'] = _MI_LX_ADMENU2;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU3;
$adminmenu[$i]['link'] = "admin/category.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/category.png';
$i++;
-$adminmenu[$i]['title'] = _MI_LX_ADMENU3;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU4;
$adminmenu[$i]['link'] = "admin/entry.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/add.png';
$i++;
-$adminmenu[$i]['title'] = _MI_LX_ADMENU12;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU5;
$adminmenu[$i]['link'] = "admin/statistics.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/stats.png';
$i++;
-$adminmenu[$i]['title'] = _MI_LX_ADMENU9;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU6;
$adminmenu[$i]['link'] = "admin/permissions.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/permissions.png';
-
$i++;
-$adminmenu[$i]['title'] = _AM_LX_IMPORT;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU7;
$adminmenu[$i]['link'] = "/admin/importwordbook.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/compfile.png';
-
-
$i++;
-$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT;
+$adminmenu[$i]['title'] = _MI_LX_ADMENU8;
$adminmenu[$i]["link"] = "admin/about.php";
$adminmenu[$i]["icon"] = $pathIcon32 . '/about.png';
\ No newline at end of file
Modified: XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php 2013-03-10 10:13:50 UTC (rev 11191)
+++ XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php 2013-03-10 12:16:24 UTC (rev 11192)
@@ -174,13 +174,11 @@
define("_MI_LX_ADMENU0","Main");
define("_MI_LX_ADMENU1","Index");
-define("_MI_LX_ADMENU2","Categories");
-define("_MI_LX_ADMENU3","Entries");
-define("_MI_LX_ADMENU4","Blocks/Groups");
-define("_MI_LX_ADMENU5","Go to module");
-
+define("_MI_LX_ADMENU2","Main");
+define("_MI_LX_ADMENU3","Categories");
+define("_MI_LX_ADMENU4","Entries");
+define("_MI_LX_ADMENU5","Statistics");
//mondarse
-
define("_MI_LX_ADMENU6","Import");
define("_MI_LX_ADMENU7","Requests");
define("_MI_LX_ADMENU8","Submissions");
|
|
From: <be...@us...> - 2013-04-26 14:39:04
|
Revision: 11456
http://sourceforge.net/p/xoops/svn/11456
Author: beckmi
Date: 2013-04-26 14:38:58 +0000 (Fri, 26 Apr 2013)
Log Message:
-----------
Updating to Beta 2 (see changelog)
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/admin.php
XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
XoopsModules/lexikon/trunk/lexikon/admin/category.php
XoopsModules/lexikon/trunk/lexikon/admin/entry.php
XoopsModules/lexikon/trunk/lexikon/admin/functions.php
XoopsModules/lexikon/trunk/lexikon/admin/importdictionary.php
XoopsModules/lexikon/trunk/lexikon/admin/importglossaire.php
XoopsModules/lexikon/trunk/lexikon/admin/importwiwimod.php
XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php
XoopsModules/lexikon/trunk/lexikon/admin/importxwords.php
XoopsModules/lexikon/trunk/lexikon/admin/index.php
XoopsModules/lexikon/trunk/lexikon/admin/main.php
XoopsModules/lexikon/trunk/lexikon/admin/menu.php
XoopsModules/lexikon/trunk/lexikon/admin/myblockform.php
XoopsModules/lexikon/trunk/lexikon/admin/myblocksadmin.php
XoopsModules/lexikon/trunk/lexikon/admin/myblocksadmin2.php
XoopsModules/lexikon/trunk/lexikon/admin/mygrouppermform.php
XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
XoopsModules/lexikon/trunk/lexikon/admin/statistics.php
XoopsModules/lexikon/trunk/lexikon/admin/submissions.php
XoopsModules/lexikon/trunk/lexikon/admin/upgrade.php
XoopsModules/lexikon/trunk/lexikon/authorlist.php
XoopsModules/lexikon/trunk/lexikon/blocks/categories_block.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_authors.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_initial.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_new.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_scrolling.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_spot.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_top.php
XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php
XoopsModules/lexikon/trunk/lexikon/category.php
XoopsModules/lexikon/trunk/lexikon/content.php
XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt
XoopsModules/lexikon/trunk/lexikon/docs/lang_diff.txt
XoopsModules/lexikon/trunk/lexikon/entry.php
XoopsModules/lexikon/trunk/lexikon/include/functions.php
XoopsModules/lexikon/trunk/lexikon/include/requestform.php
XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php
XoopsModules/lexikon/trunk/lexikon/include/syndication.inc.php
XoopsModules/lexikon/trunk/lexikon/index.php
XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
XoopsModules/lexikon/trunk/lexikon/language/english/blocks.php
XoopsModules/lexikon/trunk/lexikon/language/english/main.php
XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php
XoopsModules/lexikon/trunk/lexikon/language/german/admin.php
XoopsModules/lexikon/trunk/lexikon/language/german/blocks.php
XoopsModules/lexikon/trunk/lexikon/language/german/main.php
XoopsModules/lexikon/trunk/lexikon/language/german/modinfo.php
XoopsModules/lexikon/trunk/lexikon/letter.php
XoopsModules/lexikon/trunk/lexikon/popup.php
XoopsModules/lexikon/trunk/lexikon/print.php
XoopsModules/lexikon/trunk/lexikon/profile.php
XoopsModules/lexikon/trunk/lexikon/request.php
XoopsModules/lexikon/trunk/lexikon/rss.php
XoopsModules/lexikon/trunk/lexikon/search.php
XoopsModules/lexikon/trunk/lexikon/submit.php
XoopsModules/lexikon/trunk/lexikon/templates/blocks/entries_spot.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_authorlist.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_bookmark.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_category.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_content.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_entry.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_header.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_index.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_letter.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_profile.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_request.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_search.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_submit.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_syndication.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_topten.html
XoopsModules/lexikon/trunk/lexikon/xoops_version.php
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin.php 2013-04-26 09:16:47 UTC (rev 11455)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin.php 2013-04-26 14:38:58 UTC (rev 11456)
@@ -41,7 +41,7 @@
// include "../../mainfile.php"; GIJ
include XOOPS_ROOT_PATH."/include/cp_functions.php";
-include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php";
+include_once XOOPS_ROOT_PATH."/kernel/module.php";
include_once "../include/gtickets.php" ;// GIJ
$admintest = 0;
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2013-04-26 09:16:47 UTC (rev 11455)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2013-04-26 14:38:58 UTC (rev 11456)
@@ -31,7 +31,7 @@
require_once dirname(dirname(__FILE__)) . '/include/functions.php';
//include_once XOOPS_ROOT_PATH."/modules/lexikon/include/functions.php";
include_once dirname(dirname(__FILE__)). "/admin/functions.php";
-include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php";
+include_once XOOPS_ROOT_PATH."/kernel/module.php";
include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
Modified: XoopsModules/lexikon/trunk/lexikon/admin/category.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-04-26 09:16:47 UTC (rev 11455)
+++ XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-04-26 14:38:58 UTC (rev 11456)
@@ -12,6 +12,11 @@
include( "admin_header.php" );
$myts =& MyTextSanitizer::getInstance();
xoops_cp_header();
+xoops_load('XoopsUserUtility');
+$indexAdmin = new ModuleAdmin();
+echo $indexAdmin->addNavigation('category.php');
+$indexAdmin->addItemButton(_AM_LEXIKON_CREATECAT, 'category.php?op=addcat', 'add');
+echo $indexAdmin->renderButton('left');
$op = '';
/* -- Available operations -- */
@@ -29,7 +34,7 @@
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID, $pathIcon16;
$myts =& MyTextSanitizer::getInstance();
-// lx_adminMenu(1, _AM_LX_CATS);
+// lx_adminMenu(1, _AM_LEXIKON_CATS);
$result01 = $xoopsDB -> query( "SELECT COUNT(*)
FROM " . $xoopsDB -> prefix( "lxcategories" ) . " " );
list( $totalcategories ) = $xoopsDB -> fetchRow( $result01 );
@@ -49,26 +54,25 @@
WHERE submit = '1' AND request = '1' " );
list( $totalrequested ) = $xoopsDB -> fetchRow( $result04 );
- echo "<table width='100%' class='outer' style=\"margin-top: 6px; clear:both;\" cellspacing='2' cellpadding='3' border='0' ><tr>";
- echo "<td class='odd'>" . _AM_LX_TOTALENTRIES . "</td><td align='center' class='even'>" . $totalpublished . "</td>";
- if ($xoopsModuleConfig['multicats'] == 1) {
- echo "<td class='odd'>" . _AM_LX_TOTALCATS . "</td><td align='center' class='even'>" . $totalcategories . "</td>";
- }
- echo "<td class='odd'>" . _AM_LX_TOTALSUBM . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>
- <td class='odd'>" . _AM_LX_TOTALREQ . "</td><td align='center' class='even'>" . $totalrequested . "</td>
- </tr></table>
- <br /><br />";
+// echo "<table width='100%' class='outer' style=\"margin-top: 6px; clear:both;\" cellspacing='2' cellpadding='3' border='0' ><tr>";
+// echo "<td class='odd'>" . _AM_LEXIKON_TOTALENTRIES . "</td><td align='center' class='even'>" . $totalpublished . "</td>";
+// if ($xoopsModuleConfig['multicats'] == 1) {
+// echo "<td class='odd'>" . _AM_LEXIKON_TOTALCATS . "</td><td align='center' class='even'>" . $totalcategories . "</td>";
+// }
+// echo "<td class='odd'>" . _AM_LEXIKON_TOTALSUBM . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>
+// <td class='odd'>" . _AM_LEXIKON_TOTALREQ . "</td><td align='center' class='even'>" . $totalrequested . "</td>
+// </tr></table>
+// <br /><br />";
if ($xoopsModuleConfig['multicats'] == 1) {
/**
* Code to show existing categories
**/
- echo" <A href='category.php?op=addcat'>"._AM_LX_CREATECAT."</a><br /><br />
- <table class='outer' width='100%' border='0'>
+ echo" <table class='outer' width='100%' border='0'>
<tr>
<td colspan='7' class='odd'>
- <strong>". _AM_LX_SHOWCATS . ' (' . $totalcategories . ')'. "</strong></td></TR>";
+ <strong>". _AM_LEXIKON_SHOWCATS . ' (' . $totalcategories . ')'. "</strong></td></TR>";
echo "<tr>";
// create existing columns table //doppio
$resultC1 = $xoopsDB -> query( "SELECT COUNT(*)
@@ -80,14 +84,16 @@
ORDER BY weight";
$resultC2 = $xoopsDB -> query( $sql, $xoopsModuleConfig['perpage'], $startcat );
- echo "<td width='40' class='odd' align='center'><b>" . _AM_LX_ID . "</b></td>
- <td class='odd' align='center'><b>" . _AM_LX_WEIGHT . "</b></td>
- <td width='30%' class='odd' align='center'><b>" . _AM_LX_CATNAME . "</b></td>
- <td width='10' class='odd' align='center'><b>" . _AM_LX_ENTRIES . "</b></td>
- <td width='*' class='odd' align='center'><b>" . _AM_LX_DESCRIP . "</b></td>
- <td width='60' class='odd' align='center'><b>" . _AM_LX_ACTION . "</b></td>
+ echo "<th width='40' align='center'><b>" . _AM_LEXIKON_ID . "</b></td>
+ <th align='center'><b>" . _AM_LEXIKON_WEIGHT . "</b></td>
+ <th width='30%' align='center'><b>" . _AM_LEXIKON_CATNAME . "</b></td>
+ <th width='10' align='center'><b>" . _AM_LEXIKON_ENTRIES . "</b></td>
+ <th width='*' align='center'><b>" . _AM_LEXIKON_DESCRIP . "</b></td>
+ <th width='60' align='center'><b>" . _AM_LEXIKON_ACTION . "</b></td>
</tr>";
+
+ $class = "odd";
if ( $numrows > 0 ) // That is, if there ARE columns in the system
{
while ( list( $categoryID, $name, $description, $total, $weight ) = $xoopsDB -> fetchrow( $resultC2 ) )
@@ -95,23 +101,26 @@
{
$name = $myts -> htmlSpecialChars( $name );
$description = $myts -> htmlSpecialChars(xoops_substr( strip_tags( $description ),0,60));
- $modify = "<a href='category.php?op=mod&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITCAT."'></a>";
- $delete = "<a href='category.php?op=del&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETECAT."'></a>";
+ $modify = "<a href='category.php?op=mod&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LEXIKON_EDITCAT."'></a>";
+ $delete = "<a href='category.php?op=del&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LEXIKON_DELETECAT."'></a>";
- echo "<tr>
- <td class='even' align='center'>" . $categoryID . "</td>
- <td class='odd' width='10' align='center'>" . $weight . "</td>
- <td class='odd' align='left'><a href='../category.php?categoryID=" . $categoryID . "'>" . $name . "</td>
- <td class='odd' align='left'>" . $total . "</td>
- <td class='odd' align='left'>" . $description . "</td>
- <td class='even' align='center'> $modify $delete </td>
+ echo "<tr class='" . $class . "'>";
+ $class = ($class == "even") ? "odd" : "even";
+
+ echo "
+ <td align='center'>" . $categoryID . "</td>
+ <td width='10' align='center'>" . $weight . "</td>
+ <td align='left'><a href='../category.php?categoryID=" . $categoryID . "'>" . $name . "</td>
+ <td align='left'>" . $total . "</td>
+ <td align='left'>" . $description . "</td>
+ <td align='center'> $modify $delete </td>
</tr></DIV>";
}
}
else // that is, $numrows = 0, there's no columns yet
{
echo "<tr>";
- echo "<td class='odd' align='center' colspan= '7'>"._AM_LX_NOCATS."</td>";
+ echo "<td class='odd' align='center' colspan= '7'>"._AM_LEXIKON_NOCATS."</td>";
echo "</tr></DIV>";
$categoryID = '0';
}
@@ -121,7 +130,7 @@
echo "<br /><br />\n";
echo "</div>";
} else {
- redirect_header( "index.php", 1, sprintf( _AM_LX_SINGLECAT, '' ) );
+ redirect_header( "index.php", 1, sprintf( _AM_LEXIKON_SINGLECAT, '' ) );
}
}
@@ -158,47 +167,47 @@
$groups = $gperm_handler -> getGroupIds("lexikon_view", $categoryID, $xoopsModule -> getVar('mid'));
$groups = $groups;
if ( $xoopsDB -> getRowsNum( $result ) == 0 ) {
- redirect_header( "index.php", 1, _AM_LX_NOCATTOEDIT );
+ redirect_header( "index.php", 1, _AM_LEXIKON_NOCATTOEDIT );
exit();
}
if ( $xoopsDB -> getRowsNum( $result ) == 0 ) {
- redirect_header( "index.php", 1, _AM_LX_NOCATTOEDIT );
+ redirect_header( "index.php", 1, _AM_LEXIKON_NOCATTOEDIT );
exit();
}
//$myts =& MyTextSanitizer::getInstance();
-// lx_adminMenu(1, _AM_LX_CATS);
+// lx_adminMenu(1, _AM_LEXIKON_CATS);
- echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_CATSHEADER . "</h3>";
- $sform = new XoopsThemeForm( _AM_LX_MODCAT . ": $name" , "op", xoops_getenv( 'PHP_SELF' ) );
+ echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LEXIKON_CATSHEADER . "</h3>";
+ $sform = new XoopsThemeForm( _AM_LEXIKON_MODCAT . ": $name" , "op", xoops_getenv( 'PHP_SELF' ) );
} else {
//$myts =& MyTextSanitizer::getInstance();
-// lx_adminMenu(1, _AM_LX_CATS);
+// lx_adminMenu(1, _AM_LEXIKON_CATS);
$groups = true;
- echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_CATSHEADER . "</h3>";
- $sform = new XoopsThemeForm( _AM_LX_NEWCAT, "op", xoops_getenv( 'PHP_SELF' ) );
+ echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LEXIKON_CATSHEADER . "</h3>";
+ $sform = new XoopsThemeForm( _AM_LEXIKON_NEWCAT, "op", xoops_getenv( 'PHP_SELF' ) );
}
$sform -> setExtra( 'enctype="multipart/form-data"' );
- $sform -> addElement( new XoopsFormText( _AM_LX_CATNAME, 'name', 50, 80, $name ), true );
+ $sform -> addElement( new XoopsFormText( _AM_LEXIKON_CATNAME, 'name', 50, 80, $name ), true );
- $editor = lx_getWysiwygForm( _AM_LX_CATDESCRIPT, 'description', $description, 7, 60 );
+ $editor = lx_getWysiwygForm( _AM_LEXIKON_CATDESCRIPT, 'description', $description, 7, 60 );
$sform -> addElement( $editor,true );
unset($editor);
- $sform -> addElement( new XoopsFormText( _AM_LX_CATPOSIT, 'weight', 4, 4, $weight ), true );
+ $sform -> addElement( new XoopsFormText( _AM_LEXIKON_CATPOSIT, 'weight', 4, 4, $weight ), true );
$sform -> addElement( new XoopsFormHidden( 'categoryID', $categoryID ) );
//CategoryImage
if ($xoopsModuleConfig['useshots'] == 1) {
//CategoryImage :: Common querys from Article module by phppp
- $image_option_tray = new XoopsFormElementTray("<b>"._AM_LX_CATIMGUPLOAD."</b>", "<br />");
+ $image_option_tray = new XoopsFormElementTray("<b>"._AM_LEXIKON_CATIMGUPLOAD."</b>", "<br />");
$image_option_tray->addElement(new XoopsFormFile("", "userfile",""));
$sform->addElement($image_option_tray);
unset($image_tray);
unset($image_option_tray);
$path_catimg = "modules/".$xoopsModule->getVar('dirname')."/images/uploads";
- $image_option_tray = new XoopsFormElementTray(_AM_LX_CATIMAGE."<br />"._AM_LX_CATIMG_DSC."<br />".$path_catimg, "<br />");
- //$image_option_tray = new XoopsFormElementTray(_AM_LX_CATIMAGE.'');
+ $image_option_tray = new XoopsFormElementTray(_AM_LEXIKON_CATIMAGE."<br />"._AM_LEXIKON_CATIMG_DSC."<br />".$path_catimg, "<br />");
+ //$image_option_tray = new XoopsFormElementTray(_AM_LEXIKON_CATIMAGE.'');
$image_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/".$path_catimg."/");
array_unshift($image_array, _NONE);
@@ -215,7 +224,7 @@
$image_option_tray->addElement($image_tray);
$sform->addElement($image_option_tray);
}
- $sform -> addElement(new XoopsFormSelectGroup(_AM_LX_CAT_GROUPSVIEW, "groups", true, $groups, 5, true));
+ $sform -> addElement(new XoopsFormSelectGroup(_AM_LEXIKON_CAT_GROUPSVIEW, "groups", true, $groups, 5, true));
$button_tray = new XoopsFormElementTray( '', '' );
$hidden = new XoopsFormHidden( 'op', 'addcategory' );
@@ -223,23 +232,23 @@
// No ID for column -- then it's new column, button says 'Create'
if ( !$categoryID ) {
- $butt_create = new XoopsFormButton( '', '', _AM_LX_CREATE, 'submit' );
+ $butt_create = new XoopsFormButton( '', '', _AM_LEXIKON_CREATE, 'submit' );
$butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"');
$button_tray->addElement( $butt_create );
- $butt_clear = new XoopsFormButton( '', '', _AM_LX_CLEAR, 'reset' );
+ $butt_clear = new XoopsFormButton( '', '', _AM_LEXIKON_CLEAR, 'reset' );
$button_tray->addElement( $butt_clear );
- $butt_cancel = new XoopsFormButton( '', '', _AM_LX_CANCEL, 'button' );
+ $butt_cancel = new XoopsFormButton( '', '', _AM_LEXIKON_CANCEL, 'button' );
$butt_cancel->setExtra('onclick="history.go(-1)"');
$button_tray->addElement( $butt_cancel );
} else // button says 'Update'
{
- $butt_create = new XoopsFormButton( '', '', _AM_LX_MODIFY, 'submit' );
+ $butt_create = new XoopsFormButton( '', '', _AM_LEXIKON_MODIFY, 'submit' );
$butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"');
$button_tray->addElement( $butt_create );
- $butt_cancel = new XoopsFormButton( '', '', _AM_LX_CANCEL, 'button' );
+ $butt_cancel = new XoopsFormButton( '', '', _AM_LEXIKON_CANCEL, 'button' );
$butt_cancel->setExtra('onclick="history.go(-1)"');
$button_tray->addElement( $butt_cancel );
}
@@ -287,11 +296,11 @@
xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'global', $categoryID);
xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'category', $categoryID);
- redirect_header("category.php",1,sprintf( _AM_LX_CATISDELETED, $name ) );
+ redirect_header("category.php",1,sprintf( _AM_LEXIKON_CATISDELETED, $name ) );
exit();
} else {
//xoops_cp_header();
- xoops_confirm(array('op' => 'del', 'categoryID' => $categoryID, 'ok' => 1, 'name' => $name ), 'category.php', _AM_LX_DELETETHISCAT . "<br /><br>" . $name, _AM_LX_DELETE );
+ xoops_confirm(array('op' => 'del', 'categoryID' => $categoryID, 'ok' => 1, 'name' => $name ), 'category.php', _AM_LEXIKON_DELETETHISCAT . "<br /><br>" . $name, _AM_LEXIKON_DELETE );
}
}
@@ -323,7 +332,7 @@
if (!$uploader->upload()) {
echo $uploader->getErrors();
} else {
- echo '<h4>'._AM_LX_FILESUCCESS.'</h4>';
+ echo '<h4>'._AM_LEXIKON_FILESUCCESS.'</h4>';
$logourl = $uploader->getSavedFileName();
}
} else {
@@ -360,10 +369,10 @@
$notification_handler->triggerEvent( 'global', 0, 'new_category', $tags);
}
lx_save_Permissions($groups, $categoryID, "lexikon_view");
- redirect_header( "category.php", 1, _AM_LX_CATCREATED );
+ redirect_header( "category.php", 1, _AM_LEXIKON_CATCREATED );
exit();
} else {
- redirect_header( "index.php", 1, _AM_LX_NOTUPDATED );
+ redirect_header( "index.php", 1, _AM_LEXIKON_NOTUPDATED );
exit();
}
} else {
@@ -372,10 +381,10 @@
SET name = '$name', description = '$description', weight = '$weight' , logourl = '$logourl'
WHERE categoryID = '$categoryID'" ) ) {
lx_save_Permissions($groups, $categoryID, "lexikon_view");
- redirect_header( "category.php", 1, _AM_LX_CATMODIFIED );
+ redirect_header( "category.php", 1, _AM_LEXIKON_CATMODIFIED );
exit();
} else {
- redirect_header( "index.php", 1, _AM_LX_NOTUPDATED );
+ redirect_header( "index.php", 1, _AM_LEXIKON_NOTUPDATED );
exit();
}
}
Modified: XoopsModules/lexikon/trunk/lexikon/admin/entry.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2013-04-26 09:16:47 UTC (rev 11455)
+++ XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2013-04-26 14:38:58 UTC (rev 11456)
@@ -13,6 +13,10 @@
include( "admin_header.php" );
$myts =& MyTextSanitizer::getInstance();
xoops_cp_header();
+$indexAdmin = new ModuleAdmin();
+echo $indexAdmin->addNavigation('entry.php');
+$indexAdmin->addItemButton(_AM_LEXIKON_CREATEENTRY, 'entry.php?op=add', 'add');
+echo $indexAdmin->renderButton('left');
$op = '';
#if ( isset( $_GET['op'] ) ) $op = $_GET['op'];
@@ -24,7 +28,8 @@
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID, $pathIcon16;
include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
-// lx_adminMenu(2, _AM_LX_ENTRIES);
+ xoops_load('XoopsUserUtility');
+// lx_adminMenu(2, _AM_LEXIKON_ENTRIES);
$startentry = isset( $_GET['startentry'] ) ? intval( $_GET['startentry'] ) : 0;
$startcat = isset( $_GET['startcat'] ) ? intval( $_GET['startcat'] ) : 0;
@@ -52,16 +57,16 @@
WHERE submit = '1' AND request = '1' " );
list( $totalrequested ) = $xoopsDB -> fetchRow( $result04 );
- echo "<table width='100%' class='outer' style=\"margin-top: 6px; clear:both;\" cellspacing='2' cellpadding='3' border='0' ><tr>";
- echo "<td class='odd'>" . _AM_LX_TOTALENTRIES . "</td><td align='center' class='even'>" . $totalpublished . "</td>";
- if ($xoopsModuleConfig['multicats'] == 1) {
- echo "<td class='odd'>" . _AM_LX_TOTALCATS . "</td><td align='center' class='even'>" . $totalcategories . "</td>";
- }
- echo "<td class='odd'>" . _AM_LX_TOTALSUBM . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>
- <td class='odd'>" . _AM_LX_TOTALREQ . "</td><td align='center' class='even'>" . $totalrequested . "</td>
- </tr></table>
- <br /><br />";
-
+// echo "<table width='100%' class='outer' style=\"margin-top: 6px; clear:both;\" cellspacing='2' cellpadding='3' border='0' ><tr>";
+// echo "<td class='odd'>" . _AM_LEXIKON_TOTALENTRIES . "</td><td align='center' class='even'>" . $totalpublished . "</td>";
+// if ($xoopsModuleConfig['multicats'] == 1) {
+// echo "<td class='odd'>" . _AM_LEXIKON_TOTALCATS . "</td><td align='center' class='even'>" . $totalcategories . "</td>";
+// }
+// echo "<td class='odd'>" . _AM_LEXIKON_TOTALSUBM . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>
+// <td class='odd'>" . _AM_LEXIKON_TOTALREQ . "</td><td align='center' class='even'>" . $totalrequested . "</td>
+// </tr></table>
+// <br /><br />";
+//
/**
* Code to show existing terms
**/
@@ -79,25 +84,25 @@
$resultA2 = $xoopsDB -> query( $sql, $xoopsModuleConfig['perpage'], $startentry );
$result = $xoopsDB->query($sql, $xoopsModuleConfig['perpage']);
- echo " <A href='entry.php?op=add'>". _AM_LX_CREATEENTRY ."</A><br /><br/>
- <table class='outer' width='100%' border='0'>
+ echo " <table class='outer' width='100%' border='0'>
<tr>
<td colspan='7' class='odd'>
- <strong>". _AM_LX_SHOWENTRIES . ' (' . $totalpublished . ')'. "</strong></td></TR>";
+ <strong>". _AM_LEXIKON_SHOWENTRIES . ' (' . $totalpublished . ')'. "</strong></td></TR>";
echo "<tr>";
- echo "<td width='40' class='odd' align='center'><b>" . _AM_LX_ENTRYID . "</A></b></td>";
+ echo "<th width='40' align='center'><b>" . _AM_LEXIKON_ENTRYID . "</A></b></td>";
if ($xoopsModuleConfig['multicats'] == 1) {
- echo "<td width='20%' class='odd' align='center'><b>" . _AM_LX_ENTRYCATNAME . "</b></td>";
+ echo "<th width='20%' align='center'><b>" . _AM_LEXIKON_ENTRYCATNAME . "</b></td>";
}
- echo "<td width='*' class='odd' align='center'><b>" . _AM_LX_ENTRYTERM . "</b></td>
- <td width='90' class='odd' align='center'><b>" . _AM_LX_SUBMITTER . "</b></td>
- <td width='90' class='odd' align='center'><b>" . _AM_LX_ENTRYCREATED . "</b></td>
- <td width='30' class='odd' align='center'><b>" . _AM_LX_STATUS . "</b></td>
- <td width='60' class='odd' align='center'><b>" . _AM_LX_ACTION . "</b></td>
+ echo "<th width='*' align='center'><b>" . _AM_LEXIKON_ENTRYTERM . "</b></td>
+ <th width='90' align='center'><b>" . _AM_LEXIKON_SUBMITTER . "</b></td>
+ <th width='90' align='center'><b>" . _AM_LEXIKON_ENTRYCREATED . "</b></td>
+ <th width='30' align='center'><b>" . _AM_LEXIKON_STATUS . "</b></td>
+ <th width='60' align='center'><b>" . _AM_LEXIKON_ACTION . "</b></td>
</tr>";
+ $class = "odd";
+ if ( $numrows > 0 ) // That is, if there ARE entries in the system
- if ( $numrows > 0 ) // That is, if there ARE entries in the system
{
while ( list( $entryID, $categoryID, $term, $uid, $created, $offline ) = $xoopsDB -> fetchrow( $resultA2 ) ) {
$resultA3 = $xoopsDB -> query( "SELECT name
@@ -105,21 +110,23 @@
WHERE categoryID = '$categoryID'" );
list( $name ) = $xoopsDB -> fetchrow( $resultA3 );
- $sentby = xoops_getLinkedUnameFromId($uid);
+ $sentby = XoopsUserUtility::getUnameFromId($uid);
$catname = $myts -> htmlSpecialChars( $name );
$term = $myts -> htmlSpecialChars( $term );
$created= formatTimestamp( $created, 's' );
- $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LX_EDITENTRY."'></a>";
- $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LX_DELETEENTRY."'></a>";
+ $modify = "<a href='entry.php?op=mod&entryID=" . $entryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LEXIKON_EDITENTRY."'></a>";
+ $delete = "<a href='entry.php?op=del&entryID=" . $entryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LEXIKON_DELETEENTRY."'></a>";
if ( $offline == 0 ) {
- $status = "<img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/on.gif alt='"._AM_LX_ENTRYISON."'>";
+ $status = "<img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/on.gif alt='"._AM_LEXIKON_ENTRYISON."'>";
} else {
- $status = "<img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/off.gif alt='"._AM_LX_ENTRYISOFF."'>";
+ $status = "<img src=" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/off.gif alt='"._AM_LEXIKON_ENTRYISOFF."'>";
}
- echo "<tr>";
- echo "<td class='even' align='center'>" . $entryID . "</td>";
+ echo "<tr class='" . $class . "'>";
+ $class = ($class == "even") ? "odd" : "even";
+ echo "<td align='center'>" . $entryID . "</td>";
+
if ($xoopsModuleConfig['multicats'] == 1) {
echo "<td class='odd' align='left'>" . $catname . "</td>";
}
@@ -135,7 +142,7 @@
else // that is, $numrows = 0, there's no entries yet
{
echo "<tr>";
- echo "<td class='odd' align='center' colspan= '7'>"._AM_LX_NOTERMS."</td>";
+ echo "<td class='odd' align='center' colspan= '7'>"._AM_LEXIKON_NOTERMS."</td>";
echo "</tr></DIV>";
}
echo "</table>\n";
@@ -165,7 +172,7 @@
if(!isset($term)) { $term = ""; }
if(!isset($init)) { $init = ""; }
if (!isset($definition)) {
- $definition = _AM_LX_WRITEHERE;
+ $definition = _AM_LEXIKON_WRITEHERE;
}
if(!isset($ref)) { $ref = ""; }
if(!isset($url)) { $url = ""; }
@@ -180,34 +187,34 @@
list( $categoryID, $term, $init, $definition, $ref, $url, $uid, $submit, $datesub, $html, $smiley, $xcodes, $breaks, $block, $offline, $notifypub, $request ) = $xoopsDB -> fetchrow( $result );
if ( !$xoopsDB -> getRowsNum( $result ) ) {
- redirect_header( "index.php", 1, _AM_LX_NOENTRYTOEDIT );
+ redirect_header( "index.php", 1, _AM_LEXIKON_NOENTRYTOEDIT );
exit();
}
$term = $myts->stripSlashesGPC($myts->htmlSpecialChars($term));
-// lx_adminMenu(2, _AM_LX_ADMINENTRYMNGMT);
+// lx_adminMenu(2, _AM_LEXIKON_ADMINENTRYMNGMT);
- echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LX_ADMINENTRYMNGMT . "</h3>";
- $sform = new XoopsThemeFo...
[truncated message content] |
|
From: <be...@us...> - 2013-04-26 14:45:16
|
Revision: 11457
http://sourceforge.net/p/xoops/svn/11457
Author: beckmi
Date: 2013-04-26 14:45:13 +0000 (Fri, 26 Apr 2013)
Log Message:
-----------
Updating lang_diff.txt file
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/docs/lang_diff.txt
XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
Modified: XoopsModules/lexikon/trunk/lexikon/docs/lang_diff.txt
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/docs/lang_diff.txt 2013-04-26 14:38:58 UTC (rev 11456)
+++ XoopsModules/lexikon/trunk/lexikon/docs/lang_diff.txt 2013-04-26 14:45:13 UTC (rev 11457)
@@ -8,8 +8,7 @@
Lexikon 1.5
--------------------------------------------------------------------------------
-
-admin.php :
+admin.php :
- _AM_LEXIKON_OPTS
+ _AM_LEXIKON_CONFIGURATION
+ _AM_LEXIKON_PLEASE_UPGRADEDSC
@@ -191,4 +190,15 @@
+ _MI_LEXIKON_TERM_APPROVE_NOTIFYCAP
+ _MI_LEXIKON_TERM_APPROVE_NOTIFYDSC
+ _MI_LEXIKON_TERM_APPROVE_NOTIFYSBJ
---------------------------------------------------------------------------------
\ No newline at end of file
+
+
+--------------------------------------------------------------------------------
+Lexikon 1.51
+--------------------------------------------------------------------------------
+
+admin.php :
++ _AM_LEXIKON_SUMMARY
++ _AM_LEXIKON_TOTALENTRIES2
++ _AM_LEXIKON_TOTALCATS2
++ _AM_LEXIKON_TOTALSUBM2
++ _AM_LEXIKON_TOTALREQ2
\ No newline at end of file
Modified: XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/language/english/admin.php 2013-04-26 14:38:58 UTC (rev 11456)
+++ XoopsModules/lexikon/trunk/lexikon/language/english/admin.php 2013-04-26 14:45:13 UTC (rev 11457)
@@ -226,7 +226,6 @@
//1.51
define("_AM_LEXIKON_SUMMARY","Lexikon Summary");
-//define("_AM_LEXIKON_CREATE","Existing petitions: %s");
define("_AM_LEXIKON_TOTALENTRIES2","Published entries: <span style=' font-weight: bold'> %s </span> ");
define("_AM_LEXIKON_TOTALCATS2","Categories available: <span style=' font-weight: bold'> %s </span> ");
define("_AM_LEXIKON_TOTALSUBM2","Submitted entries: <span style=' font-weight: bold'> %s </span> ");
|
|
From: <be...@us...> - 2013-04-26 19:26:01
|
Revision: 11459
http://sourceforge.net/p/xoops/svn/11459
Author: beckmi
Date: 2013-04-26 19:25:57 +0000 (Fri, 26 Apr 2013)
Log Message:
-----------
Updating icons
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php
XoopsModules/lexikon/trunk/lexikon/images/delete.gif
XoopsModules/lexikon/trunk/lexikon/images/edit.gif
Modified: XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php 2013-04-26 15:45:01 UTC (rev 11458)
+++ XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php 2013-04-26 19:25:57 UTC (rev 11459)
@@ -11,7 +11,7 @@
if( ! defined( 'XOOPS_ROOT_PATH' ) ) die( 'XOOPS root path not defined' ) ;
function b_lxentries_random_show() {
- global $xoopsDB, $xoopsUser, $xoopsConfig, $pathIcon16;
+ global $xoopsDB, $xoopsUser, $xoopsConfig, $xoopsModule;
$myts =& MyTextSanitizer::getInstance();
$module_handler = &xoops_gethandler('module');
@@ -59,19 +59,20 @@
list( $categoryID, $name ) = $xoopsDB->fetchRow($result_cat);
$categoryname = $myts->displayTarea($name);
- // Functional links
+//TODO switch to central icons repository
+
if ( $xoopsUser ) {
if ( $xoopsUser->isAdmin() ) {
- $adminlinks = "<a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=mod&entryID=".$entryID."\" target=\"_blank\"><img src=\"" . $pathIcon16. "/edit.png\" border=\"0\" alt=\""._MB_LEXIKON_EDITTERM."\" width=\"15\" height=\"11\"></a> <a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=del&entryID=".$entryID."\" target=\"_self\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/delete.gif\" border=\"0\" alt=\""._MB_LEXIKON_DELTERM."\" width=\"15\" height=\"11\"></a> ";
+ $adminlinks = "<a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=mod&entryID=".$entryID."\" target=\"_blank\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/edit.gif\" border=\"0\" alt=\""._MB_LEXIKON_EDITTERM."\" width=\"16\" height=\"16\"></a> <a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/admin/entry.php?op=del&entryID=".$entryID."\" target=\"_self\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/delete.gif\" border=\"0\" alt=\""._MB_LEXIKON_DELTERM."\" width=\"16\" height=\"16\"></a> ";
}
}
$userlinks = "<a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/print.php?entryID=".$entryID."\" target=\"_blank\"><img src=\"".XOOPS_URL."/modules/".$lexikon->dirname()."/images/print.gif\" border=\"0\" alt=\""._MB_LEXIKON_PRINTTERM."\" width=\"16\" height=\"16\"></a> <a href=\"mailto:?subject=".sprintf(_MB_LEXIKON_INTENTRY,$xoopsConfig["sitename"])."&body=".sprintf(_MB_LEXIKON_INTENTRYFOUND, $xoopsConfig['sitename']).": ".XOOPS_URL."/modules/" .$lexikon->dirname(). "/entry.php?entryID=".$entryID." \" target=\"_blank\"><img src=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/images/friend.gif\" border=\"0\" alt=\""._MB_LEXIKON_SENDTOFRIEND."\" width=\"16\" height=\"16\"></a> ";
if ($lxConfig['multicats'] == 1) {
$block['content'] = "<div style=\"font-size: 12px; font-weight: bold; background-color: #ccc; padding: 4px; margin: 0;\"><a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/category.php?categoryID=$categoryID\">$categoryname</a></div>";
- $block['content'] .= "<div style=\"padding: 4px 0 0 0; color: #456;\"><h5 style=\"margin: 0;\">$adminlinks $userlinks <a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/entry.php?entryID=$entryID\">$term</a></h5><div>$definition</div>";
+ $block['content'] .= "<div style=\"padding: 4px 0 0 0; color: #456;\"><h5 style=\"margin: 0;\">$adminlinks $userlinks <a href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/entry.php?entryID=$entryID\">$term</a></h5>$definition</div>";
} else {
- $block['content'] = "<div style=\"padding: 4px; color: #456;\"><h5 style=\"margin: 0;\">$adminlinks $userlinks <a style=\"margin: 0;\" href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/entry.php?entryID=$entryID\">$term</a></h5>$definition";
+ $block['content'] = "<div style=\"padding: 4px; color: #456;\"><h5 style=\"margin: 0;\">$adminlinks $userlinks <a style=\"margin: 0;\" href=\"".XOOPS_URL."/modules/" .$lexikon->dirname(). "/entry.php?entryID=$entryID\">$term</a></h5>$definition</div>";
}
}
Modified: XoopsModules/lexikon/trunk/lexikon/images/delete.gif
===================================================================
(Binary files differ)
Modified: XoopsModules/lexikon/trunk/lexikon/images/edit.gif
===================================================================
(Binary files differ)
|
|
From: <be...@us...> - 2013-07-11 22:26:28
|
Revision: 11826
http://sourceforge.net/p/xoops/svn/11826
Author: beckmi
Date: 2013-07-11 22:26:24 +0000 (Thu, 11 Jul 2013)
Log Message:
-----------
Updating to 1.5.1 Final
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/category.php
XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt
XoopsModules/lexikon/trunk/lexikon/docs/credits.txt
XoopsModules/lexikon/trunk/lexikon/xoops_version.php
Modified: XoopsModules/lexikon/trunk/lexikon/admin/category.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-07-10 19:53:48 UTC (rev 11825)
+++ XoopsModules/lexikon/trunk/lexikon/admin/category.php 2013-07-11 22:26:24 UTC (rev 11826)
@@ -100,7 +100,8 @@
//while ( list( $categoryID, $name, $description, $total, $weight, ) = $xoopsDB -> fetchrow( $resultC2 ) )
{
$name = $myts -> htmlSpecialChars( $name );
- $description = $myts -> htmlSpecialChars(xoops_substr( strip_tags( $description ),0,60));
+// $description = $myts -> htmlSpecialChars(xoops_substr( strip_tags( $description ),0,60));
+ $description = strip_tags(htmlspecialchars_decode($description));
$modify = "<a href='category.php?op=mod&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LEXIKON_EDITCAT."'></a>";
$delete = "<a href='category.php?op=del&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LEXIKON_DELETECAT."'></a>";
Modified: XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt 2013-07-10 19:53:48 UTC (rev 11825)
+++ XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt 2013-07-11 22:26:24 UTC (rev 11826)
@@ -1,4 +1,11 @@
---------------------------------------
+1.51 Final 2013-07-11
+---------------------------------------
+
+- changed to standard Editor selection
+- added removal of HTML special characters/tags in Category list
+
+---------------------------------------
1.51 Beta 2 2013-04-26
---------------------------------------
@@ -6,7 +13,7 @@
- changed tables look & feel to follow XOOPS Standards
- extracted summary to Dashboard
- fixed deprecated notices
--
+-
---------------------------------------
1.51 Beta 1 2013-02-27
Modified: XoopsModules/lexikon/trunk/lexikon/docs/credits.txt
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/docs/credits.txt 2013-07-10 19:53:48 UTC (rev 11825)
+++ XoopsModules/lexikon/trunk/lexikon/docs/credits.txt 2013-07-11 22:26:24 UTC (rev 11826)
@@ -1,9 +1,11 @@
Credits and Thanks
-----------------------------------------------------------------------
-This module is based on his module Wordbook written by hsalazar.
+This module has been developed by Yerres.
+
+It is based on Wordbook module written by hsalazar.
Wordbook again is based on Soapbox (by him as well) which is
in turn based on Catzwolf's module called WF-FAQ.
-Thanks to Herv\xE9 Instant-Zero, Eric Juden & ackbarr Project XHelp,
+Thanks to Herve Instant-Zero, Eric Juden & ackbarr Project XHelp,
phppp, marcan The Smartfactory, frankblack, Zoullou, Aiba Kanpyo.net,
WF-Downloads Team, tcnet, BitC3R0 Xoops-Mexico and many others.
Of course thanks to anyone else who has contributed to this module
Modified: XoopsModules/lexikon/trunk/lexikon/xoops_version.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/xoops_version.php 2013-07-10 19:53:48 UTC (rev 11825)
+++ XoopsModules/lexikon/trunk/lexikon/xoops_version.php 2013-07-11 22:26:24 UTC (rev 11826)
@@ -136,7 +136,7 @@
$myts = & MyTextSanitizer ::getInstance();
$sql = $xoopsDB->query( "SELECT categoryID, name FROM " . $xoopsDB->prefix( "lxcategories" ) . " ORDER BY weight ASC" );
while ( list( $categoryID, $name ) = $xoopsDB->fetchRow( $sql ) ) {
- if ($gperm_handler->checkRight('lexikon_view', $catID, $groups, $lexikon->getVar('mid'))) {
+ if ($gperm_handler->checkRight('lexikon_view', $categoryID, $groups, $lexikon->getVar('mid'))) {
$name = $myts->htmlSpecialChars($name);
$categoryID = intval($categoryID);
$modversion['sub'][$i]['name'] = $name;
@@ -451,16 +451,19 @@
'default' => 'dhtml');
*/
// WYSIWYG - Form-Options for XOOPS
-include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
-$modversion['config'][] = array(
- 'name' => 'form_options',
- 'title' => '_MI_LEXIKON_FORM_OPTIONS',
- 'description' => '_MI_LEXIKON_FORM_OPTIONSDSC',
- 'formtype' => 'select',
- 'valuetype' => 'text',
- 'options' => XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . "/class/xoopseditor"),
- 'default' => 'dhtml');
+xoops_load('XoopsEditorHandler');
+$editor_handler = XoopsEditorHandler::getInstance();
+$editorList = array_flip($editor_handler->getList());
+$modversion['config'][] = array('name' => 'form_options',
+ 'title' => '_MI_LEXIKON_FORM_OPTIONS',
+ 'description' => '_MI_LEXIKON_FORM_OPTIONSDSC',
+ 'formtype' => 'select',
+ 'valuetype' => 'text',
+ 'options' => $editorList,
+ 'default' => 'dhtmltextarea');
+
+
$modversion['config'][] = array(
'name' => 'wysiwyg_guests',
'title' => '_MI_LEXIKON_EDIGUEST',
|
|
From: <ce...@us...> - 2014-03-08 06:23:03
|
Revision: 12352
http://sourceforge.net/p/xoops/svn/12352
Author: cesag
Date: 2014-03-08 06:22:58 +0000 (Sat, 08 Mar 2014)
Log Message:
-----------
Fixed various bugs by lionhell
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
XoopsModules/lexikon/trunk/lexikon/admin/entry.php
XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php
XoopsModules/lexikon/trunk/lexikon/admin/main.php
XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
XoopsModules/lexikon/trunk/lexikon/admin/statistics.php
XoopsModules/lexikon/trunk/lexikon/category.php
XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt
XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php
XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
XoopsModules/lexikon/trunk/lexikon/sql/mysql.sql
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -32,7 +32,8 @@
//include_once XOOPS_ROOT_PATH."/modules/lexikon/include/functions.php";
include_once dirname(dirname(__FILE__)). "/admin/functions.php";
include_once XOOPS_ROOT_PATH."/kernel/module.php";
-include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
+//include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; -- LionHell
+include_once XOOPS_ROOT_PATH."/modules/lexikon/class/xoopstree.php"; // -- LionHell
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
Modified: XoopsModules/lexikon/trunk/lexikon/admin/entry.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/entry.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -213,7 +213,8 @@
$sform -> setExtra( 'enctype="multipart/form-data"' );
// Category selector
if ($xoopsModuleConfig['multicats'] == 1) {
- $mytree = new XoopsTree( $xoopsDB->prefix( "lxcategories" ), "categoryID" , "0" );
+ // $mytree = new XoopsTree( $xoopsDB->prefix( "lxcategories" ), "categoryID" , "0" );
+ $mytree = new LexikonTree( $xoopsDB->prefix( "lxcategories" ), "categoryID" , "0" );
$categoryselect = new XoopsFormSelect(_AM_LEXIKON_CATNAME, 'categoryID', $categoryID);
$tbl = array();
$tbl = $mytree->getChildTreeArray(0,'name');
@@ -349,8 +350,13 @@
$smiley = isset($_POST['smiley']) ? intval($_POST['smiley']) : intval($_GET['smiley']);
$xcodes = isset($_POST['xcodes']) ? intval($_POST['xcodes']) : intval($_GET['xcodes']);
$offline = isset($_POST['offline']) ? intval($_POST['offline']) : intval($_GET['offline']);
- $init= $myts->addslashes($_POST['init']);
+ // $init= $myts->addslashes($_POST['init']); -- LionHell supprim\xE9 pour auto cf ligne 354
$term = $myts->addSlashes(xoops_trim($_POST['term']));
+ // LionHell pour initiale automatique
+ $init = substr($term, 0, 1);
+ $init = preg_match("/[a-zA-Z]/", $init) ? strtoupper($init) : '#';
+ // Fin LionHell
+
//$definition = $myts -> xoopsCodeDecode($_POST['definition'], $allowimage = 1);
//$ref = isset($_POST['ref']) ? $myts->addSlashes($_POST['ref']) : '';
$definition = $myts -> xoopsCodeDecode($myts->censorString($_POST['definition']), $allowimage = 1);
Modified: XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -276,7 +276,7 @@
<input type='button' name='cancel' value='"._CANCEL."' onclick='javascript:history.go(-1);'></td>";
echo "</TR></table><br />\n";
} else {
- echo "<BR><B><font color='red'>Module Wordbook not found on this site.</font></B><BR><A HREF='index.php'>Back</A><P>";
+ echo "<BR><B><font color='red'>"._AM_LEXIKON_MODULEWORDBOOKNOTFOUND."</font></B><BR><A HREF='index.php'>"._AM_LEXIKON_BACK."</A><P>";
}
xoops_cp_footer();
Modified: XoopsModules/lexikon/trunk/lexikon/admin/main.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/main.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/main.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -78,7 +78,8 @@
//echo "<br /><br />";
//--- category dropdown
if ($xoopsModuleConfig['multicats'] == 1) {
- $cattree = new XoopsTree( $xoopsDB->prefix("lxcategories"), "categoryID", "0" );
+ // $cattree = new XoopsTree( $xoopsDB->prefix("lxcategories"), "categoryID", "0" );
+ $cattree = new LexikonTree( $xoopsDB->prefix("lxcategories"), "categoryID", "0" );
echo "<table class='outer' width='100%'><tr ><td colspan=\"2\" class='even'><strong>" . _AM_LEXIKON_INVENTORY . "</strong></td></tr>";
echo "<tr class=\"odd\" ><td width=\"30%\" align=\"left\">";
echo '<form method=get action=\"category.php\">';
Modified: XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/permissions.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/permissions.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -27,7 +27,7 @@
// adapted from News 1.5
include( "admin_header.php" );
-include_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
+include_once XOOPS_ROOT_PATH.'/modules/lexikon/class/xoopstree.php'; // -- LionHell
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
$myts =& MyTextSanitizer::getInstance();
@@ -78,7 +78,8 @@
}
$modid = $xoopsModule->getVar('mid');
$permform = new XoopsGroupPermForm($title, $modid, $perm_name, $permdesc, "admin/permissions.php");
-$catstree = new XoopsTree($xoopsDB->prefix("lxcategories"), "categoryID", "");
+// $catstree = new XoopsTree($xoopsDB->prefix("lxcategories"), "categoryID", "");
+$catstree = new LexikonTree($xoopsDB->prefix("lxcategories"), "categoryID", "");
$catsresult=$xoopsDB->query("SELECT categoryID, name FROM ".$xoopsDB->prefix("lxcategories")." ORDER BY weight");
while($myrow = $xoopsDB->fetchArray($catsresult)) {
$catid = $myrow['categoryID'];
Modified: XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/preferences.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/preferences.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -9,7 +9,7 @@
include_once "../../../mainfile.php";
include_once XOOPS_ROOT_PATH . "/kernel/module.php";
-include_once XOOPS_ROOT_PATH . "/class/xoopstree.php";
+include_once XOOPS_ROOT_PATH . "/modules/lexikon/class/xoopstree.php"; // -- LionHell
include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
Modified: XoopsModules/lexikon/trunk/lexikon/admin/statistics.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/statistics.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/admin/statistics.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -43,6 +43,7 @@
global $xoopsModule, $xoopsConfig, $xoopsModuleConfig;
xoops_cp_header();
$myts =& MyTextSanitizer::getInstance();
+ xoops_load('XoopsUserUtility'); // LionHell
// lx_adminMenu(3, _INFO);
@@ -85,10 +86,10 @@
$totals[1]+=$views;
$totals[2]+=$offline;
$class = ($class == 'even') ? 'odd' : 'even';
- printf("<tr class='".$class."'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td><td align='right'>%u</td><td align='right'>%u</td><td align='right'>%u</td></tr>\n",$url,$myts->displayTarea($data['name']),$terms,$views,$offline,$authors);
+ printf("<tr class='".$class."'><td align='center'><a href='%s' target ='_blank'>%s</a></td><td align='center'>%u</td><td align='center'>%u</td><td align='center'>%u</td><td align='center'>%u</td></tr>\n",$url,$myts->displayTarea($data['name']),$terms,$views,$offline,$authors);
}
$class = ($class == 'even') ? 'odd' : 'even';
- printf("<tr class='".$class."'><td align='center'><b>%s</b></td><td align='right'><b>%u</b></td><td align='right'><b>%u</b></td><td align='right'><b>%u</b></td><td> </td>\n",_AM_LEXIKON_STATS2,$totals[0],$totals[1],$totals[2]);
+ printf("<tr class='".$class."'><td align='center'><b>%s</b></td><td align='center'><b>%u</b></td><td align='center'><b>%u</b></td><td align='center'><b>%u</b></td><td> </td>\n",_AM_LEXIKON_STATS2,$totals[0],$totals[1],$totals[2]);
echo '</table></div><br /><br /><br />';
// Second part of the stats, everything about reads
Modified: XoopsModules/lexikon/trunk/lexikon/category.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/category.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/category.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -129,7 +129,7 @@
$singlecat['dir'] = $xoopsModule->dirname();
$singlecat['id'] = $categoryID;
$singlecat['name'] = $myts -> htmlSpecialChars( $name );
- $singlecat['description'] = $myts -> displayTarea( $description, 1, 1, 1, 1, 1 );
+ $singlecat['description'] = html_entity_decode($myts -> displayTarea( $description, 1, 1, 1, 1, 1 )); // LionHell ajout html_entity ...
$singlecat['image'] = $myts -> htmlSpecialChars( $logourl );
// Total entries in this category
Modified: XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/docs/changelog.txt 2014-03-08 06:22:58 UTC (rev 12352)
@@ -1,4 +1,25 @@
---------------------------------------
+1.51.8 2014-03-07
+---------------------------------------
+
+- Fixed XoopsTree deprecated, following Trabis dirty method found on xoops.org
+
+Remaining bugs: Tags keywords not saved on item creation. Must be re-entered on item edit.
+
+---------------------------------------
+1.51.7 2014-03-07
+---------------------------------------
+
+- Filter by letter (initial) fixed.
+- French translation by LionHell.
+- Replaced text by language constant in importwordbook.php
+- Category image by default fixed.
+- HTML bug on category startpage fixed.
+- XoopsUserUtlity bug in statistics.php fixed.
+
+Remaining bugs: XoopsTree deprecated , tags keywords not saved on item creation. Must be re-entered on item edit.
+
+---------------------------------------
1.51 Final 2013-07-11
---------------------------------------
Modified: XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -11,13 +11,13 @@
global $term, $definition, $ref, $url, $xoopsUser, $xoopsModule, $xoopsModuleConfig;
-include_once XOOPS_ROOT_PATH . "/class/xoopstree.php";
+include_once XOOPS_ROOT_PATH . "/modules/lexikon/class/xoopstree.php"; // -- LionHell
include XOOPS_ROOT_PATH . "/class/xoopslists.php";
include XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
$guesteditoruse = $xoopsModuleConfig['wysiwyg_guests'];
$myts =& MyTextSanitizer::getInstance();
-$mytree = new XoopsTree( $xoopsDB -> prefix( "lxcategories" ), "categoryID", "0" );
+$mytree = new LexikonTree( $xoopsDB -> prefix( "lxcategories" ), "categoryID", "0" );
$sform = new XoopsThemeForm( _MD_LEXIKON_SUB_SMNAME, "storyform", xoops_getenv( 'PHP_SELF' ) );
if ($xoopsModuleConfig['multicats'] == '1') {
@@ -26,7 +26,7 @@
$gperm_handler =& xoops_gethandler('groupperm');
$allowed_cats =& $gperm_handler->getItemIds("lexikon_submit", $groups, $xoopsModule->getVar('mid'));
if (is_array($allowed_cats)) {
- $mytree = new XoopsTree( $xoopsDB->prefix( "lxcategories" ), "categoryID" , "0" );
+ $mytree = new LexikonTree( $xoopsDB->prefix( "lxcategories" ), "categoryID" , "0" );
$categoryselect = new XoopsFormSelect(_MD_LEXIKON_ENTRYCATEGORY, 'categoryID', $allowed_cats);
$tbl = array();
$tbl = $mytree->getChildTreeArray(0,'name');
Modified: XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/language/english/admin.php 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/language/english/admin.php 2014-03-08 06:22:58 UTC (rev 12352)
@@ -16,6 +16,7 @@
define("_AM_LEXIKON_AUTHENTRY","Authorize submission");
define("_AM_LEXIKON_AUTHOR","Author");
define("_AM_LEXIKON_AUTHORIZE","Authorize");
+define("_AM_LEXIKON_BACK","Back");
define("_AM_LEXIKON_BACK2IDX","Cancelled. Taking you back to the index");
define("_AM_LEXIKON_BLOCK"," Add to entries block?");
define("_AM_LEXIKON_BLOCKS","Blocks");
@@ -154,6 +155,7 @@
define("_AM_LEXIKON_IMPORTDELWB","delete entries before Import ?");
define("_AM_LEXIKON_OTHERMODS","To select the module you wish to import please click the corresponding image.");
define("_AM_LEXIKON_NOOTHERMODS","No corresponding modules could be located!");
+define("_AM_LEXIKON_MODULEWORDBOOKNOTFOUND","Module Wordbook not found on this site.");
// upgrade
define("_AM_LEXIKON_PLEASE_UPGRADE","<font color='#FF0000'>Please update the module !</font></a>");
Modified: XoopsModules/lexikon/trunk/lexikon/sql/mysql.sql
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/sql/mysql.sql 2014-03-08 06:02:32 UTC (rev 12351)
+++ XoopsModules/lexikon/trunk/lexikon/sql/mysql.sql 2014-03-08 06:22:58 UTC (rev 12352)
@@ -27,7 +27,7 @@
UNIQUE KEY columnID (`categoryID`)
) ENGINE=MyISAM;
-INSERT INTO lxcategories (categoryID, name, description, total, weight, logourl ) VALUES (1, 'Xoops', 'XOOPS is an extensible, OO (Object Oriented), easy to use dynamic web content management system written in PHP. XOOPS is the ideal tool for developing small to large dynamic community websites, intra company portals, corporate portals, weblogs and much more.', 0, 1, '');
+INSERT INTO lxcategories (categoryID, name, description, total, weight, logourl ) VALUES (1, 'Xoops', 'XOOPS est un système de gestion de contenu sur le web écrit en PHP, extensible, orienté objet et facile à utiliser. XOOPS est l outil idéal pour développer des sites web communautaires petits ou grands, des portails intranet pour les sociétés ou corporations, des weblogs et plus encore.', 0, 1, '');
#
# Dumping data for table `lxcategories`
|
|
From: <be...@us...> - 2014-03-08 12:38:54
|
Revision: 12365
http://sourceforge.net/p/xoops/svn/12365
Author: beckmi
Date: 2014-03-08 12:38:48 +0000 (Sat, 08 Mar 2014)
Log Message:
-----------
Adding missing lexikontree.php
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php
Added Paths:
-----------
XoopsModules/lexikon/trunk/lexikon/class/lexikontree.php
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2014-03-08 10:42:48 UTC (rev 12364)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin_header.php 2014-03-08 12:38:48 UTC (rev 12365)
@@ -32,8 +32,8 @@
//include_once XOOPS_ROOT_PATH."/modules/lexikon/include/functions.php";
include_once dirname(dirname(__FILE__)). "/admin/functions.php";
include_once XOOPS_ROOT_PATH."/kernel/module.php";
-//include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; -- LionHell
-include_once XOOPS_ROOT_PATH."/modules/lexikon/class/xoopstree.php"; // -- LionHell
+//include_once XOOPS_ROOT_PATH."/class/lexikontree.php"; -- LionHell
+include_once XOOPS_ROOT_PATH."/modules/lexikon/class/lexikontree.php"; // -- LionHell
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
@@ -49,4 +49,4 @@
include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
-$myts =& MyTextSanitizer::getInstance();
\ No newline at end of file
+$myts =& MyTextSanitizer::getInstance();
Modified: XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/permissions.php 2014-03-08 10:42:48 UTC (rev 12364)
+++ XoopsModules/lexikon/trunk/lexikon/admin/permissions.php 2014-03-08 12:38:48 UTC (rev 12365)
@@ -27,7 +27,7 @@
// adapted from News 1.5
include( "admin_header.php" );
-include_once XOOPS_ROOT_PATH.'/modules/lexikon/class/xoopstree.php'; // -- LionHell
+include_once XOOPS_ROOT_PATH.'/modules/lexikon/class/lexikontree.php'; // -- LionHell
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
$myts =& MyTextSanitizer::getInstance();
@@ -83,13 +83,13 @@
$catsresult=$xoopsDB->query("SELECT categoryID, name FROM ".$xoopsDB->prefix("lxcategories")." ORDER BY weight");
while($myrow = $xoopsDB->fetchArray($catsresult)) {
$catid = $myrow['categoryID'];
- $cattitle = $myts->htmlSpecialChars($myrow['name']);
+ $cattitle = $myts->htmlSpecialChars($myrow['name']);
$permform->addItem($catid, $cattitle);
-}
-
+}
+
echo $permform->render();
unset ($permform);
-xoops_cp_footer();
-?>
\ No newline at end of file
+xoops_cp_footer();
+?>
Modified: XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/preferences.php 2014-03-08 10:42:48 UTC (rev 12364)
+++ XoopsModules/lexikon/trunk/lexikon/admin/preferences.php 2014-03-08 12:38:48 UTC (rev 12365)
@@ -9,7 +9,7 @@
include_once "../../../mainfile.php";
include_once XOOPS_ROOT_PATH . "/kernel/module.php";
-include_once XOOPS_ROOT_PATH . "/modules/lexikon/class/xoopstree.php"; // -- LionHell
+include_once XOOPS_ROOT_PATH . "/modules/lexikon/class/lexikontree.php"; // -- LionHell
include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
@@ -32,7 +32,7 @@
function addAdminMenu($buf) {
global $btnsbar;
-
+
$pattern = array(
"#admin.php?#",
"#(<div class='content'>)#",
@@ -43,7 +43,7 @@
);
$html = preg_replace($pattern,$replace,$buf);
return $html;
-
+
// ereg("(.*)(<div class='content'>.*)",$buf,$regs);
// return $regs[1].$btnsbar.$regs[2];
}
@@ -60,4 +60,4 @@
ob_start("addAdminMenu");
include XOOPS_ROOT_PATH."/modules/system/admin.php";
ob_end_flush();
-?>
\ No newline at end of file
+?>
Added: XoopsModules/lexikon/trunk/lexikon/class/lexikontree.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/class/lexikontree.php (rev 0)
+++ XoopsModules/lexikon/trunk/lexikon/class/lexikontree.php 2014-03-08 12:38:48 UTC (rev 12365)
@@ -0,0 +1,352 @@
+<?php
+/**
+ * XOOPS tree handler
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package kernel
+ * @since 2.0.0
+ * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
+ * @version $Id$
+ */
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+/**
+ * Abstract base class for forms
+ *
+ * @author Kazumi Ono <on...@xo...>
+ * @author John Neill <cat...@xo...>
+ * @copyright copyright (c) XOOPS.org
+ * @package kernel
+ * @subpackage LexikonTree
+ * @access public
+ */
+class LexikonTree
+{
+ var $table; //table with parent-child structure
+ var $id; //name of unique id for records in table $table
+ var $pid; // name of parent id used in table $table
+ var $order; //specifies the order of query results
+ var $title; // name of a field in table $table which will be used when selection box and paths are generated
+ var $db;
+
+ //constructor of class LexikonTree
+ //sets the names of table, unique id, and parend id
+ /**
+ * @param $table_name
+ * @param $id_name
+ * @param $pid_name
+ */
+ function LexikonTree($table_name, $id_name, $pid_name)
+ {
+// $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated, check 'XoopsObjectTree' in tree.php");
+ $this->db = &XoopsDatabaseFactory::getDatabaseConnection();;
+ $this->table = $table_name;
+ $this->id = $id_name;
+ $this->pid = $pid_name;
+ }
+
+ // returns an array of first child objects for a given id($sel_id)
+ /**
+ * @param $sel_id
+ * @param string $order
+ *
+ * @return array
+ */
+ function getFirstChild($sel_id, $order = "")
+ {
+ $sel_id = intval($sel_id);
+ $arr = array();
+ $sql = "SELECT * FROM " . $this->table . " WHERE " . $this->pid . "=" . $sel_id . "";
+ if ($order != "") {
+ $sql .= " ORDER BY $order";
+ }
+ $result = $this->db->query($sql);
+ $count = $this->db->getRowsNum($result);
+ if ($count == 0) {
+ return $arr;
+ }
+ while ($myrow = $this->db->fetchArray($result)) {
+ array_push($arr, $myrow);
+ }
+
+ return $arr;
+ }
+
+ // returns an array of all FIRST child ids of a given id($sel_id)
+ /**
+ * @param $sel_id
+ *
+ * @return array
+ */
+ function getFirstChildId($sel_id)
+ {
+ $sel_id = intval($sel_id);
+ $idarray = array();
+ $result = $this->db->query("SELECT " . $this->id . " FROM " . $this->table . " WHERE " . $this->pid . "=" . $sel_id . "");
+ $count = $this->db->getRowsNum($result);
+ if ($count == 0) {
+ return $idarray;
+ }
+ while (list ($id) = $this->db->fetchRow($result)) {
+ array_push($idarray, $id);
+ }
+
+ return $idarray;
+ }
+
+ //returns an array of ALL child ids for a given id($sel_id)
+ /**
+ * @param $sel_id
+ * @param string $order
+ * @param array $idarray
+ *
+ * @return array
+ */
+ function getAllChildId($sel_id, $order = "", $idarray = array())
+ {
+ $sel_id = intval($sel_id);
+ $sql = "SELECT " . $this->id . " FROM " . $this->table . " WHERE " . $this->pid . "=" . $sel_id . "";
+ if ($order != "") {
+ $sql .= " ORDER BY $order";
+ }
+ $result = $this->db->query($sql);
+ $count = $this->db->getRowsNum($result);
+ if ($count == 0) {
+ return $idarray;
+ }
+ while (list ($r_id) = $this->db->fetchRow($result)) {
+ array_push($idarray, $r_id);
+ $idarray = $this->getAllChildId($r_id, $order, $idarray);
+ }
+
+ return $idarray;
+ }
+
+ //returns an array of ALL parent ids for a given id($sel_id)
+ /**
+ * @param $sel_id
+ * @param string $order
+ * @param array $idarray
+ *
+ * @return array
+ */
+ function getAllParentId($sel_id, $order = "", $idarray = array())
+ {
+ $sel_id = intval($sel_id);
+ $sql = "SELECT " . $this->pid . " FROM " . $this->table . " WHERE " . $this->id . "=" . $sel_id . "";
+ if ($order != "") {
+ $sql .= " ORDER BY $order";
+ }
+ $result = $this->db->query($sql);
+ list ($r_id) = $this->db->fetchRow($result);
+ if ($r_id == 0) {
+ return $idarray;
+ }
+ array_push($idarray, $r_id);
+ $idarray = $this->getAllParentId($r_id, $order, $idarray);
+
+ return $idarray;
+ }
+
+ //generates path from the root id to a given id($sel_id)
+ // the path is delimetered with "/"
+ /**
+ * @param $sel_id
+ * @param $title
+ * @param string $path
+ *
+ * @return string
+ */
+ function getPathFromId($sel_id, $title, $path = "")
+ {
+ $sel_id = intval($sel_id);
+ $result = $this->db->query("SELECT " . $this->pid . ", " . $title . " FROM " . $this->table . " WHERE " . $this->id . "=$sel_id");
+ if ($this->db->getRowsNum($result) == 0) {
+ return $path;
+ }
+ list ($parentid, $name) = $this->db->fetchRow($result);
+ $myts = MyTextSanitizer::getInstance();
+ $name = $myts->htmlspecialchars($name);
+ $path = "/" . $name . $path . "";
+ if ($parentid == 0) {
+ return $path;
+ }
+ $path = $this->getPathFromId($parentid, $title, $path);
+
+ return $path;
+ }
+
+ //makes a nicely ordered selection box
+ //$preset_id is used to specify a preselected item
+ //set $none to 1 to add a option with value 0
+ /**
+ * @param $title
+ * @param string $order
+ * @param int $preset_id
+ * @param int $none
+ * @param string $sel_name
+ * @param string $onchange
+ */
+ function makeMySelBox($title, $order = "", $preset_id = 0, $none = 0, $sel_name = "", $onchange = "")
+ {
+ if ($sel_name == "") {
+ $sel_name = $this->id;
+ }
+ $myts = MyTextSanitizer::getInstance();
+ echo "<select name='" . $sel_name . "'";
+ if ($onchange != "") {
+ echo " onchange='" . $onchange . "'";
+ }
+ echo ">\n";
+ $sql = "SELECT " . $this->id . ", " . $title . " FROM " . $this->table . " WHERE " . $this->pid . "=0";
+ if ($order != "") {
+ $sql .= " ORDER BY $order";
+ }
+ $result = $this->db->query($sql);
+ if ($none) {
+ echo "<option value='0'>----</option>\n";
+ }
+ while (list ($catid, $name) = $this->db->fetchRow($result)) {
+ $sel = "";
+ if ($catid == $preset_id) {
+ $sel = " selected='selected'";
+ }
+ echo "<option value='$catid'$sel>$name</option>\n";
+ $sel = "";
+ $arr = $this->getChildTreeArray($catid, $order);
+ foreach ($arr as $option) {
+ $option['prefix'] = str_replace(".", "--", $option['prefix']);
+ $catpath = $option['prefix'] . " " . $myts->htmlspecialchars($option[$title]);
+ if ($option[$this->id] == $preset_id) {
+ $sel = " selected='selected'";
+ }
+ echo "<option value='" . $option[$this->id] . "'$sel>$catpath</option>\n";
+ $sel = "";
+ }
+ }
+ echo "</select>\n";
+ }
+
+ //generates nicely formatted linked path from the root id to a given id
+ /**
+ * @param $sel_id
+ * @param $title
+ * @param $funcURL
+ * @param string $path
+ *
+ * @return string
+ */
+ function getNicePathFromId($sel_id, $title, $funcURL, $path = "")
+ {
+ $path = ! empty($path) ? " : " . $path : $path;
+ $sel_id = intval($sel_id);
+ $sql = "SELECT " . $this->pid . ", " . $title . " FROM " . $this->table . " WHERE " . $this->id . "=$sel_id";
+ $result = $this->db->query($sql);
+ if ($this->db->getRowsNum($result) == 0) {
+ return $path;
+ }
+ list ($parentid, $name) = $this->db->fetchRow($result);
+ $myts = MyTextSanitizer::getInstance();
+ $name = $myts->htmlspecialchars($name);
+ $path = "<a href='" . $funcURL . "&" . $this->id . "=" . $sel_id . "'>" . $name . "</a>" . $path . "";
+ if ($parentid == 0) {
+ return $path;
+ }
+ $path = $this->getNicePathFromId($parentid, $title, $funcURL, $path);
+
+ return $path;
+ }
+
+ //generates id path from the root id to a given id
+ // the path is delimetered with "/"
+ /**
+ * @param $sel_id
+ * @param string $path
+ *
+ * @return string
+ */
+ function getIdPathFromId($sel_id, $path = "")
+ {
+ $sel_id = intval($sel_id);
+ $result = $this->db->query("SELECT " . $this->pid . " FROM " . $this->table . " WHERE " . $this->id . "=$sel_id");
+ if ($this->db->getRowsNum($result) == 0) {
+ return $path;
+ }
+ list ($parentid) = $this->db->fetchRow($result);
+ $path = "/" . $sel_id . $path . "";
+ if ($parentid == 0) {
+ return $path;
+ }
+ $path = $this->getIdPathFromId($parentid, $path);
+
+ return $path;
+ }
+
+ /**
+ * Enter description here...
+ *
+ * @param int|\unknown_type $sel_id
+ * @param string|\unknown_type $order
+ * @param array|\unknown_type $parray
+ *
+ * @return unknown
+ */
+ function getAllChild($sel_id = 0, $order = "", $parray = array())
+ {
+ $sel_id = intval($sel_id);
+ $sql = "SELECT * FROM " . $this->table . " WHERE " . $this->pid . "=" . $sel_id . "";
+ if ($order != "") {
+ $sql .= " ORDER BY $order";
+ }
+ $result = $this->db->query($sql);
+ $count = $this->db->getRowsNum($result);
+ if ($count == 0) {
+ return $parray;
+ }
+ while ($row = $this->db->fetchArray($result)) {
+ array_push($parray, $row);
+ $parray = $this->getAllChild($row[$this->id], $order, $parray);
+ }
+
+ return $parray;
+ }
+
+ /**
+ * Enter description here...
+ *
+ * @param int|\unknown_type $sel_id
+ * @param string|\unknown_type $order
+ * @param array|\unknown_type $parray
+ * @param string|\unknown_type $r_prefix
+ * @return unknown
+ */
+ function getChildTreeArray($sel_id = 0, $order = "", $parray = array(), $r_prefix = "")
+ {
+ $sel_id = intval($sel_id);
+ $sql = "SELECT * FROM " . $this->table . " WHERE " . $this->pid . "=" . $sel_id . "";
+ if ($order != "") {
+ $sql .= " ORDER BY $order";
+ }
+ $result = $this->db->query($sql);
+ $count = $this->db->getRowsNum($result);
+ if ($count == 0) {
+ return $parray;
+ }
+ while ($row = $this->db->fetchArray($result)) {
+ $row['prefix'] = $r_prefix . ".";
+ array_push($parray, $row);
+ $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
+ }
+
+ return $parray;
+ }
+}
Property changes on: XoopsModules/lexikon/trunk/lexikon/class/lexikontree.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php 2014-03-08 10:42:48 UTC (rev 12364)
+++ XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php 2014-03-08 12:38:48 UTC (rev 12365)
@@ -11,7 +11,7 @@
global $term, $definition, $ref, $url, $xoopsUser, $xoopsModule, $xoopsModuleConfig;
-include_once XOOPS_ROOT_PATH . "/modules/lexikon/class/xoopstree.php"; // -- LionHell
+include_once XOOPS_ROOT_PATH . "/modules/lexikon/class/lexikontree.php"; // -- LionHell
include XOOPS_ROOT_PATH . "/class/xoopslists.php";
include XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
@@ -35,7 +35,7 @@
if ($oneline['prefix']=='.') {
$oneline['prefix']='';
}
-
+
$oneline['prefix'] = str_replace('.','-',$oneline['prefix']);
//if (in_array($oneline['categoryID'], $allowed_cats)) {
$categoryselect->addOption($oneline['categoryID'], $oneline['prefix'].' '.$oneline['name']);
@@ -109,4 +109,4 @@
unset( $hidden );
-?>
\ No newline at end of file
+?>
|
|
From: <be...@us...> - 2014-03-09 09:53:24
|
Revision: 12368
http://sourceforge.net/p/xoops/svn/12368
Author: beckmi
Date: 2014-03-09 09:53:17 +0000 (Sun, 09 Mar 2014)
Log Message:
-----------
Cosmetic code changes related to PSR-2
Modified Paths:
--------------
XoopsModules/lexikon/trunk/lexikon/admin/about.php
XoopsModules/lexikon/trunk/lexikon/admin/admin.php
XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php
XoopsModules/lexikon/trunk/lexikon/admin/category.php
XoopsModules/lexikon/trunk/lexikon/admin/entry.php
XoopsModules/lexikon/trunk/lexikon/admin/functions.php
XoopsModules/lexikon/trunk/lexikon/admin/importdictionary.php
XoopsModules/lexikon/trunk/lexikon/admin/importglossaire.php
XoopsModules/lexikon/trunk/lexikon/admin/importwiwimod.php
XoopsModules/lexikon/trunk/lexikon/admin/importwordbook.php
XoopsModules/lexikon/trunk/lexikon/admin/importxwords.php
XoopsModules/lexikon/trunk/lexikon/admin/index.php
XoopsModules/lexikon/trunk/lexikon/admin/main.php
XoopsModules/lexikon/trunk/lexikon/admin/menu.php
XoopsModules/lexikon/trunk/lexikon/admin/myblockform.php
XoopsModules/lexikon/trunk/lexikon/admin/myblocksadmin.php
XoopsModules/lexikon/trunk/lexikon/admin/myblocksadmin2.php
XoopsModules/lexikon/trunk/lexikon/admin/mygroupperm.php
XoopsModules/lexikon/trunk/lexikon/admin/mygrouppermform.php
XoopsModules/lexikon/trunk/lexikon/admin/permissions.php
XoopsModules/lexikon/trunk/lexikon/admin/preferences.php
XoopsModules/lexikon/trunk/lexikon/admin/statistics.php
XoopsModules/lexikon/trunk/lexikon/admin/submissions.php
XoopsModules/lexikon/trunk/lexikon/admin/upgrade.php
XoopsModules/lexikon/trunk/lexikon/authorlist.php
XoopsModules/lexikon/trunk/lexikon/blocks/categories_block.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_authors.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_initial.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_new.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_scrolling.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_spot.php
XoopsModules/lexikon/trunk/lexikon/blocks/entries_top.php
XoopsModules/lexikon/trunk/lexikon/blocks/random_term.php
XoopsModules/lexikon/trunk/lexikon/category.php
XoopsModules/lexikon/trunk/lexikon/class/keyhighlighter.class.php
XoopsModules/lexikon/trunk/lexikon/comment_delete.php
XoopsModules/lexikon/trunk/lexikon/comment_edit.php
XoopsModules/lexikon/trunk/lexikon/comment_new.php
XoopsModules/lexikon/trunk/lexikon/comment_post.php
XoopsModules/lexikon/trunk/lexikon/comment_reply.php
XoopsModules/lexikon/trunk/lexikon/content.php
XoopsModules/lexikon/trunk/lexikon/entry.php
XoopsModules/lexikon/trunk/lexikon/header.php
XoopsModules/lexikon/trunk/lexikon/include/blocksadmin.inc.php
XoopsModules/lexikon/trunk/lexikon/include/comment_functions.php
XoopsModules/lexikon/trunk/lexikon/include/common.inc.php
XoopsModules/lexikon/trunk/lexikon/include/functions.php
XoopsModules/lexikon/trunk/lexikon/include/gtickets.php
XoopsModules/lexikon/trunk/lexikon/include/install_function.php
XoopsModules/lexikon/trunk/lexikon/include/notification.inc.php
XoopsModules/lexikon/trunk/lexikon/include/onupdate.inc.php
XoopsModules/lexikon/trunk/lexikon/include/plugin.tag.php
XoopsModules/lexikon/trunk/lexikon/include/requestform.php
XoopsModules/lexikon/trunk/lexikon/include/search.inc.php
XoopsModules/lexikon/trunk/lexikon/include/sitemap.plugin.php
XoopsModules/lexikon/trunk/lexikon/include/storyform.inc.php
XoopsModules/lexikon/trunk/lexikon/include/syndication.inc.php
XoopsModules/lexikon/trunk/lexikon/include/updateblock.inc.php
XoopsModules/lexikon/trunk/lexikon/include/waiting.plugin.php
XoopsModules/lexikon/trunk/lexikon/index.php
XoopsModules/lexikon/trunk/lexikon/language/english/admin.php
XoopsModules/lexikon/trunk/lexikon/language/english/blocks.php
XoopsModules/lexikon/trunk/lexikon/language/english/main.php
XoopsModules/lexikon/trunk/lexikon/language/english/modinfo.php
XoopsModules/lexikon/trunk/lexikon/letter.php
XoopsModules/lexikon/trunk/lexikon/list.tag.php
XoopsModules/lexikon/trunk/lexikon/notification_update.php
XoopsModules/lexikon/trunk/lexikon/popup.php
XoopsModules/lexikon/trunk/lexikon/print.php
XoopsModules/lexikon/trunk/lexikon/profile.php
XoopsModules/lexikon/trunk/lexikon/request.php
XoopsModules/lexikon/trunk/lexikon/rss.php
XoopsModules/lexikon/trunk/lexikon/search.php
XoopsModules/lexikon/trunk/lexikon/submit.php
XoopsModules/lexikon/trunk/lexikon/syndication.php
XoopsModules/lexikon/trunk/lexikon/templates/blocks/entries_scrolling.html
XoopsModules/lexikon/trunk/lexikon/templates/lx_rss.xml
XoopsModules/lexikon/trunk/lexikon/view.tag.php
XoopsModules/lexikon/trunk/lexikon/xoops_version.php
Modified: XoopsModules/lexikon/trunk/lexikon/admin/about.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/about.php 2014-03-08 23:43:58 UTC (rev 12367)
+++ XoopsModules/lexikon/trunk/lexikon/admin/about.php 2014-03-09 09:53:17 UTC (rev 12368)
@@ -27,4 +27,4 @@
echo $aboutAdmin->addNavigation('about.php');
echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
-include 'admin_footer.php';
\ No newline at end of file
+include 'admin_footer.php';
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin.php 2014-03-08 23:43:58 UTC (rev 12367)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin.php 2014-03-09 09:53:17 UTC (rev 12368)
@@ -1,160 +1,158 @@
-<?php
-// $Id: admin.php,v 1.7 2003/04/11 13:00:53 okazu Exp $
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as published by //
-// the Free Software Foundation; either version 2 of the License, or //
-// (at your option) any later version. //
-// //
-// 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. See the //
-// GNU General Public License for more details. //
-// //
-// You should have received a copy of the GNU General Public License //
-// along with this program; if not, write to the Free Software //
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
-// ------------------------------------------------------------------------ //
-// Author: Kazumi Ono (AKA onokazu) //
-// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ //
-// Project: The XOOPS Project //
-// ------------------------------------------------------------------------- //
-
-$admin_mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
-
-$fct = empty( $_POST['fct'] ) ? '' : trim( $_POST['fct'] ) ;
-$fct = empty( $_GET['fct'] ) ? $fct : trim( $_GET['fct'] ) ;
-if( empty( $fct ) ) $fct = 'preferences' ;
-//if (isset($fct) && $fct == "users") {
-// $xoopsOption['pagetype'] = "user";
-//}
-include "../../../mainfile.php";
-// include "../../mainfile.php"; GIJ
-include XOOPS_ROOT_PATH."/include/cp_functions.php";
-
-include_once XOOPS_ROOT_PATH."/kernel/module.php";
-include_once "../include/gtickets.php" ;// GIJ
-
-$admintest = 0;
-
-if (is_object($xoopsUser)) {
- $xoopsModule =& XoopsModule::getByDirname("system");
- if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) {
- redirect_header(XOOPS_URL.'/user.php',3,_NOPERM);
- exit();
- }
- $admintest=1;
-} else {
- redirect_header(XOOPS_URL.'/user.php',3,_NOPERM);
- exit();
-}
-
-// include system category definitions
-include_once XOOPS_ROOT_PATH."/modules/system/constants.php";
-$error = false;
-if ($admintest != 0) {
- if (isset($fct) && $fct != '') {
- if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/xoops_version.php")) {
-
- if ( file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php") ) {
- include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php";
- } else {
- include XOOPS_ROOT_PATH."/modules/system/language/english/admin.php";
- }
-
- if (file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin/".$fct.".php")) {
- include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin/".$fct.".php";
- } elseif (file_exists(XOOPS_ROOT_PATH."/modules/system/language/english/admin/".$fct.".php")) {
- 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');
- $category = !empty($modversion['category']) ? intval($modversion['category']) : 0;
- unset($modversion);
- if ($category > 0) {
- $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
- if (file_exists("../include/{$fct}.inc.php")) {
- include_once "../include/{$fct}.inc.php" ;
- } else {
- $error = true;
- }
- } else {
- $error = true;
- }
- } elseif ($fct == 'version') {
- if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/version/main.php")) {
- include_once XOOPS_ROOT_PATH."/modules/system/admin/version/main.php";
- } else {
- $error = true;
- }
- } else {
- $error = true;
- }
- } else {
- $error = true;
- }
- } else {
- $error = true;
- }
-}
-
-if (false != $error) {
- xoops_cp_header();
- echo "<h4>System Configuration</h4>";
- echo '<table class="outer" cellpadding="4" cellspacing="1">';
- echo '<tr>';
- $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);
- } else {
- $all_ok = true;
- }
- $admin_dir = XOOPS_ROOT_PATH."/modules/system/admin";
- $handle = opendir($admin_dir);
- $counter = 0;
- $class = 'even';
- while ($file = readdir($handle)) {
- if (strtolower($file) != 'cvs' && !preg_match("/[.]/", $file) && is_dir($admin_dir.'/'.$file)) {
- include $admin_dir.'/'.$file.'/xoops_version.php';
- if ($modversion['hasAdmin']) {
- $category = isset($modversion['category']) ? intval($modversion['category']) : 0;
- if (false != $all_ok || in_array($modversion['category'], $ok_syscats)) {
- echo "<td class='$class' align='center' valign='bottom' width='19%'>";
- echo "<a href='".XOOPS_URL."/modules/system/admin.php?fct=".$file."'><b>" .trim($modversion['name'])."</b></a>\n";
- echo "</td>";
- $counter++;
- $class = ($class == 'even') ? 'odd' : 'even';
- }
- if ( $counter > 4 ) {
- $counter = 0;
- echo "</tr>";
- echo "<tr>";
- }
- }
- unset($modversion);
- }
- }
- while ($counter < 5) {
- echo '<td class="'.$class.'"> </td>';
- $class = ($class == 'even') ? 'odd' : 'even';
- $counter++;
- }
- echo '</tr></table>';
- xoops_cp_footer();
-}
-
-?>
\ No newline at end of file
+<?php
+// $Id: admin.php,v 1.7 2003/04/11 13:00:53 okazu Exp $
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 XOOPS.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// 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. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// Author: Kazumi Ono (AKA onokazu) //
+// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ //
+// Project: The XOOPS Project //
+// ------------------------------------------------------------------------- //
+
+$admin_mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+
+$fct = empty( $_POST['fct'] ) ? '' : trim( $_POST['fct'] ) ;
+$fct = empty( $_GET['fct'] ) ? $fct : trim( $_GET['fct'] ) ;
+if( empty( $fct ) ) $fct = 'preferences' ;
+//if (isset($fct) && $fct == "users") {
+// $xoopsOption['pagetype'] = "user";
+//}
+include '../../../mainfile.php';
+// include "../../mainfile.php"; GIJ
+include XOOPS_ROOT_PATH."/include/cp_functions.php";
+
+include_once XOOPS_ROOT_PATH."/kernel/module.php";
+include_once '../include/gtickets.php';// GIJ
+
+$admintest = 0;
+
+if (is_object($xoopsUser)) {
+ $xoopsModule =& XoopsModule::getByDirname("system");
+ if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) {
+ redirect_header(XOOPS_URL.'/user.php',3,_NOPERM);
+ exit();
+ }
+ $admintest=1;
+} else {
+ redirect_header(XOOPS_URL.'/user.php',3,_NOPERM);
+ exit();
+}
+
+// include system category definitions
+include_once XOOPS_ROOT_PATH."/modules/system/constants.php";
+$error = false;
+if ($admintest != 0) {
+ if (isset($fct) && $fct != '') {
+ if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/xoops_version.php")) {
+
+ if ( file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php") ) {
+ include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php";
+ } else {
+ include XOOPS_ROOT_PATH."/modules/system/language/english/admin.php";
+ }
+
+ if (file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin/".$fct.".php")) {
+ include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin/".$fct.".php";
+ } elseif (file_exists(XOOPS_ROOT_PATH."/modules/system/language/english/admin/".$fct.".php")) {
+ 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');
+ $category = !empty($modversion['category']) ? intval($modversion['category']) : 0;
+ unset($modversion);
+ if ($category > 0) {
+ $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
+ if (file_exists("../include/{$fct}.inc.php")) {
+ include_once "../include/{$fct}.inc.php" ;
+ } else {
+ $error = true;
+ }
+ } else {
+ $error = true;
+ }
+ } elseif ($fct == 'version') {
+ if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/version/main.php")) {
+ include_once XOOPS_ROOT_PATH."/modules/system/admin/version/main.php";
+ } else {
+ $error = true;
+ }
+ } else {
+ $error = true;
+ }
+ } else {
+ $error = true;
+ }
+ } else {
+ $error = true;
+ }
+}
+
+if (false != $error) {
+ xoops_cp_header();
+ echo "<h4>System Configuration</h4>";
+ echo '<table class="outer" cellpadding="4" cellspacing="1">';
+ echo '<tr>';
+ $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);
+ } else {
+ $all_ok = true;
+ }
+ $admin_dir = XOOPS_ROOT_PATH."/modules/system/admin";
+ $handle = opendir($admin_dir);
+ $counter = 0;
+ $class = 'even';
+ while ($file = readdir($handle)) {
+ if (strtolower($file) != 'cvs' && !preg_match("/[.]/", $file) && is_dir($admin_dir.'/'.$file)) {
+ include $admin_dir.'/'.$file.'/xoops_version.php';
+ if ($modversion['hasAdmin']) {
+ $category = isset($modversion['category']) ? intval($modversion['category']) : 0;
+ if (false != $all_ok || in_array($modversion['category'], $ok_syscats)) {
+ echo "<td class='$class' align='center' valign='bottom' width='19%'>";
+ echo "<a href='".XOOPS_URL."/modules/system/admin.php?fct=".$file."'><b>" .trim($modversion['name'])."</b></a>\n";
+ echo "</td>";
+ $counter++;
+ $class = ($class == 'even') ? 'odd' : 'even';
+ }
+ if ($counter > 4) {
+ $counter = 0;
+ echo "</tr>";
+ echo "<tr>";
+ }
+ }
+ unset($modversion);
+ }
+ }
+ while ($counter < 5) {
+ echo '<td class="'.$class.'"> </td>';
+ $class = ($class == 'even') ? 'odd' : 'even';
+ $counter++;
+ }
+ echo '</tr></table>';
+ xoops_cp_footer();
+}
Modified: XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php 2014-03-08 23:43:58 UTC (rev 12367)
+++ XoopsModules/lexikon/trunk/lexikon/admin/admin_footer.php 2014-03-09 09:53:17 UTC (rev 12368)
@@ -25,4 +25,4 @@
." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
."</div>";
-xoops_cp_footer();
\ No newline at end of file
+xoops_cp_footer();
Modified: XoopsModules/lexikon/trunk/lexikon/admin/category.php
===================================================================
--- XoopsModules/lexikon/trunk/lexikon/admin/category.php 2014-03-08 23:43:58 UTC (rev 12367)
+++ XoopsModules/lexikon/trunk/lexikon/admin/category.php 2014-03-09 09:53:17 UTC (rev 12368)
@@ -1,434 +1,430 @@
-<?php
-/**
- * $Id: category.php v 1.0 8 May 2004 hsalazar Exp $
- * Module: Lexikon - glossary module
- * Version: v 1.00
- * Release Date: 8 May 2004
- * Author: hsalazar
- * Licence: GNU
- */
-
-// -- General Stuff -- //
-include( "admin_header.php" );
-$myts =& MyTextSanitizer::getInstance();
-xoops_cp_header();
-xoops_load('XoopsUserUtility');
-$indexAdmin = new ModuleAdmin();
-echo $indexAdmin->addNavigation('category.php');
-$indexAdmin->addItemButton(_AM_LEXIKON_CREATECAT, 'category.php?op=addcat', 'add');
-echo $indexAdmin->renderButton('left');
-$op = '';
-
-/* -- Available operations -- */
-
-function categoryDefault() {
- $op = 'default';
- include_once XOOPS_ROOT_PATH . "/class/xoopslists.php";
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
-
- $startentry = isset( $_GET['startentry'] ) ? intval( $_GET['startentry'] ) : 0;
- $startcat = isset( $_GET['startcat'] ) ? intval( $_GET['startcat'] ) : 0;
- $startsub = isset( $_GET['startsub'] ) ? intval( $_GET['startsub'] ) : 0;
- $datesub = isset( $_GET['datesub'] ) ? intval( $_GET['datesub'] ) : 0;
-
- global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $entryID, $pathIcon16;
-
- $myts =& MyTextSanitizer::getInstance();
-// lx_adminMenu(1, _AM_LEXIKON_CATS);
- $result01 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxcategories" ) . " " );
- list( $totalcategories ) = $xoopsDB -> fetchRow( $result01 );
-
- $result02 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE submit = 0" );
- list( $totalpublished ) = $xoopsDB -> fetchRow( $result02 );
-
- $result03 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE submit = '1' AND request = '0' " );
- list( $totalsubmitted ) = $xoopsDB -> fetchRow( $result03 );
-
- $result04 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxentries" ) . "
- WHERE submit = '1' AND request = '1' " );
- list( $totalrequested ) = $xoopsDB -> fetchRow( $result04 );
-
-// echo "<table width='100%' class='outer' style=\"margin-top: 6px; clear:both;\" cellspacing='2' cellpadding='3' border='0' ><tr>";
-// echo "<td class='odd'>" . _AM_LEXIKON_TOTALENTRIES . "</td><td align='center' class='even'>" . $totalpublished . "</td>";
-// if ($xoopsModuleConfig['multicats'] == 1) {
-// echo "<td class='odd'>" . _AM_LEXIKON_TOTALCATS . "</td><td align='center' class='even'>" . $totalcategories . "</td>";
-// }
-// echo "<td class='odd'>" . _AM_LEXIKON_TOTALSUBM . "</td><td align='center' class='even'>" . $totalsubmitted . "</td>
-// <td class='odd'>" . _AM_LEXIKON_TOTALREQ . "</td><td align='center' class='even'>" . $totalrequested . "</td>
-// </tr></table>
-// <br /><br />";
-
- if ($xoopsModuleConfig['multicats'] == 1) {
- /**
- * Code to show existing categories
- **/
-
- echo" <table class='outer' width='100%' border='0'>
- <tr>
- <td colspan='7' class='odd'>
- <strong>". _AM_LEXIKON_SHOWCATS . ' (' . $totalcategories . ')'. "</strong></td></TR>";
- echo "<tr>";
- // create existing columns table //doppio
- $resultC1 = $xoopsDB -> query( "SELECT COUNT(*)
- FROM " . $xoopsDB -> prefix( "lxcategories" ) . " " );
- list( $numrows ) = $xoopsDB -> fetchRow( $resultC1 );
-
- $sql = "SELECT *
- FROM " . $xoopsDB -> prefix( "lxcategories" ) . "
- ORDER BY weight";
- $resultC2 = $xoopsDB -> query( $sql, $xoopsModuleConfig['perpage'], $startcat );
-
- echo "<th width='40' align='center'><b>" . _AM_LEXIKON_ID . "</b></td>
- <th align='center'><b>" . _AM_LEXIKON_WEIGHT . "</b></td>
- <th width='30%' align='center'><b>" . _AM_LEXIKON_CATNAME . "</b></td>
- <th width='10' align='center'><b>" . _AM_LEXIKON_ENTRIES . "</b></td>
- <th width='*' align='center'><b>" . _AM_LEXIKON_DESCRIP . "</b></td>
- <th width='60' align='center'><b>" . _AM_LEXIKON_ACTION . "</b></td>
- </tr>";
-
-
- $class = "odd";
- if ( $numrows > 0 ) // That is, if there ARE columns in the system
- {
- while ( list( $categoryID, $name, $description, $total, $weight ) = $xoopsDB -> fetchrow( $resultC2 ) )
- //while ( list( $categoryID, $name, $description, $total, $weight, ) = $xoopsDB -> fetchrow( $resultC2 ) )
- {
- $name = $myts -> htmlSpecialChars( $name );
-// $description = $myts -> htmlSpecialChars(xoops_substr( strip_tags( $description ),0,60));
- $description = strip_tags(htmlspecialchars_decode($description));
- $modify = "<a href='category.php?op=mod&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/edit.png width='16' height='16' ALT='"._AM_LEXIKON_EDITCAT."'></a>";
- $delete = "<a href='category.php?op=del&categoryID=" . $categoryID . "'><img src=" . $pathIcon16."/delete.png width='16' height='16' ALT='"._AM_LEXIKON_DELETECAT."'></a>";
-
- echo "<tr class='" . $class . "'>";
- $class = ($class == "even") ? "odd" : "even";
-
- echo "
- <td align='center'>" . $categoryID . "</td>
- <td width='10' align='center'>" . $weight . "</td>
- <td align='left'><a href='../category.php?categoryID=" . $categoryID . "'>" . $name . "</td>
- <td align='left'>" . $total . "</td>
- <td align='left'>" . $description . "</td>
- <td align='center'> $modify $delete </td>
- </tr></DIV>";
- }
- }
- else // that is, $numrows = 0, there's no columns yet
- {
- echo "<tr>";
- echo "<td class='odd' align='center' colspan= '7'>"._AM_LEXIKON_NOCATS."</td>";
- echo "</tr></DIV>";
- $categoryID = '0';
- }
- echo "</table>\n";
- $pagenav = new XoopsPageNav( $numrows, $xoopsModuleConfig['perpage'], $startcat, 'startcat' );
- echo '<div style="text-align:right;">' . $pagenav -> renderNav(8) . '</div>';
- echo "<br /><br />\n";
- echo "</div>";
- } else {
- redirect_header( "index.php", 1, sprintf( _AM_LEXIKON_SINGLECAT, '' ) );
- }
-}
-
-/**
- * Code to edit categories
- **/
-function categoryEdit( $categoryID = '' ) {
- include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
- include_once XOOPS_ROOT_PATH."/class/uploader.php";
- include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
-
- $weight = 1;
- $name = '';
- $description = '';
- $logourl = '';
-
- Global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule;
-
- // If there is a parameter, and the id exists, retrieve data: we're editing a column
- if ( $categoryID ) {
- $result = $xoopsDB -> query( "
- SELECT categoryID, name, description, total, weight,logourl
- FROM " . $xoopsDB -> prefix( "lxcategories" ) . "
- WHERE categoryID = '$categoryID'" );
-
- list( $categoryID, $name, $description, $total, $weight, $logourl ) = $xoopsDB -> fetchrow( $result );
- $myts =& MyTextSanitizer::getInstance();
- $name = $myts->htmlSpecialChars($name);
- //permissions
- $member_handler = & xoops_gethandler('member');
- $group_list = & $member_handler -> getGroupList();
- $gperm_handler = & xoops_gethandler('groupperm');
-
- $groups = $gperm_handler -> getGroupIds("lexikon_view", $categoryID, $xoopsModule -> getVar('mid'));
- $groups = $groups;
- if ( $xoopsDB -> getRowsNum( $result ) == 0 ) {
- redirect_header( "index.php", 1, _AM_LEXIKON_NOCATTOEDIT );
- exit();
- }
- if ( $xoopsDB -> getRowsNum( $result ) == 0 ) {
- redirect_header( "index.php", 1, _AM_LEXIKON_NOCATTOEDIT );
- exit();
- }
- //$myts =& MyTextSanitizer::getInstance();
-// lx_adminMenu(1, _AM_LEXIKON_CATS);
-
- echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LEXIKON_CATSHEADER . "</h3>";
- $sform = new XoopsThemeForm( _AM_LEXIKON_MODCAT . ": $name" , "op", xoops_getenv( 'PHP_SELF' ) );
- } else {
- //$myts =& MyTextSanitizer::getInstance();
-// lx_adminMenu(1, _AM_LEXIKON_CATS);
- $groups = true;
- echo "<h3 style=\"color: #2F5376; margin-top: 6px; \">" . _AM_LEXIKON_CATSHEADER . "</h3>";
- $sform = new XoopsThemeForm( _AM_LEXIKON_NEWCAT, "op", xoops_getenv( 'PHP_SELF' ) );
- }
-
- $sform -> setExtr...
[truncated message content] |