From: <du...@us...> - 2012-10-15 20:24:49
|
Revision: 10217 http://sourceforge.net/p/xoops/svn/10217 Author: dugris Date: 2012-10-15 20:24:45 +0000 (Mon, 15 Oct 2012) Log Message: ----------- update xoops_version for paypal donation Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/xoops_version.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -41,6 +41,13 @@ $modversion['min_xoops'] = '2.6.0'; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _MI_AVATARS_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + // Admin menu // Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -42,6 +42,13 @@ $modversion['min_xoops'] = '2.6.0'; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _MI_BANNERS_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + // Admin menu // Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -42,6 +42,12 @@ $modversion['min_xoops'] = '2.6.0'; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _MI_MAILUSERS_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; // $modversion['adminpath'] = 'admin.php?fct=mailusers'; // $modversion['category'] = XOOPS_SYSTEM_MAILU; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -48,6 +48,13 @@ $modversion['min_xoops'] = '2.6.0'; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _MI_MAINTENANCE_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + /* Admin menu Set to 1 if you want to display menu generated by system module Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -42,6 +42,13 @@ $modversion['min_xoops'] = "2.6.0"; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _PM_MI_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + // Admin menu // Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -43,6 +43,13 @@ $modversion['min_xoops'] = "2.6.0"; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _PROFILE_MI_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + // Admin menu // Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -48,6 +48,13 @@ $modversion['min_xoops'] = '2.6.0'; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _MI_SMILIES_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + /* Admin menu Set to 1 if you want to display menu generated by system module Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/xoops_version.php 2012-10-15 17:32:44 UTC (rev 10216) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/xoops_version.php 2012-10-15 20:24:45 UTC (rev 10217) @@ -47,6 +47,13 @@ $modversion['min_xoops'] = '2.6.0'; $modversion['min_db'] = array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'xoo...@gm...'; +$modversion['paypal']['item_name'] = 'Donation : ' . _MI_USERRANK_DESC; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'USD'; + /* Admin menu Set to 1 if you want to display menu generated by system module |
From: <du...@us...> - 2012-10-15 23:20:37
|
Revision: 10222 http://sourceforge.net/p/xoops/svn/10222 Author: dugris Date: 2012-10-15 23:20:34 +0000 (Mon, 15 Oct 2012) Log Message: ----------- remove test folder Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/TEST3/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/test/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/test2/ |
From: <du...@us...> - 2012-10-15 23:26:17
|
Revision: 10223 http://sourceforge.net/p/xoops/svn/10223 Author: dugris Date: 2012-10-15 23:26:13 +0000 (Mon, 15 Oct 2012) Log Message: ----------- xcaptcha 1.00 alpha (Xoops CAPTCHA configuration) System extensions for xoops 2.6.x Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/xcaptcha.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/moduladmin.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/blackglass.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/clean.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/red.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/white.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/xcaptcha_logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/recaptcha.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/text.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/recaptcha.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/text.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/about.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,30 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops->header(); +$xoops->theme->addStylesheet('modules/xcontact/css/moduladmin.css'); + +$admin_page = new XoopsModuleAdmin(); + +$admin_page->renderNavigation('about.php'); +$admin_page->renderAbout(); +$xoops->footer(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/about.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/footer.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/footer.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/footer.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,21 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +$xoops->footer(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/footer.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/header.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,41 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; + +$op = ''; +if ( isset( $_POST ) ){ + foreach ( $_POST as $k => $v ) { + ${$k} = $v; + } +} +if ( isset( $_GET ) ){ + foreach ( $_GET as $k => $v ) { + ${$k} = $v; + } +} + +XoopsLoad::load('system', 'system'); + +$xoops = Xoops::getInstance(); +$system = System::getInstance(); + +include_once dirname(dirname(__FILE__)) . '/class/xcaptcha.php'; +$xcaptcha_handler = new Xcaptcha(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/header.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,66 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +switch ( $op ) { + case 'save': + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ( $type == 'config' ) { + $config = $xcaptcha_handler->VerifyData(); + $xcaptcha_handler->writeConfig('captcha.config', $config ); + redirect_header('index.php?type=config', 5, _AM_XCAPTCHA_SAVED); + } else { + if ($xcaptcha_handler->loadPluginHandler( $type )) { + $config = $xcaptcha_handler->Pluginhandler->VerifyData(); + $xcaptcha_handler->writeConfig('captcha.config.' . $type, $config ); + redirect_header('index.php?type=' . $type, 5, _AM_XCAPTCHA_SAVED); + } + } + break; + + case 'default': + default: + $type = isset($type) ? $type : 'config'; + + $xoops->header(); + $xoops->theme->addStylesheet('modules/xcaptcha/css/moduladmin.css'); + + $admin_page = new XoopsModuleAdmin(); + if ( $type == 'config' ) { + $admin_page->renderNavigation('index.php?type=config'); + $admin_page->addInfoBox(_AM_XCAPTCHA_FORM); + $admin_page->addInfoBoxLine($xcaptcha_handler->getForm()); + } else { + if ($xcaptcha_handler->loadPluginHandler( $type )) { + $title = constant('_XCAPTCHA_FORM_' . strtoupper($type) ); + $admin_page->addInfoBox( $title ); + $admin_page->addInfoBoxLine($xcaptcha_handler->Pluginhandler->getForm()); + } else { + redirect_header('index.php', 5, _AM_XCAPTCHA_ERROR); + } + } + $admin_page->renderIndex(); + + break; +} +include dirname(__FILE__) . '/footer.php'; +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/menu.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,46 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +$cpt = 1; +$adminmenu[$cpt]['title'] = _MI_XCAPTCHA_INDEX; +$adminmenu[$cpt]['link'] = 'admin/index.php'; +$adminmenu[$cpt]['icon'] = 'home.png'; + +static $xcaptcha_handler; +if (!isset($xcaptcha_handler)) { + include_once dirname(dirname(__FILE__)) . '/class/xcaptcha.php'; + $xcaptcha_handler = new Xcaptcha(); +} + +$xoops = Xoops::getInstance(); + +foreach ( array_keys($xcaptcha_handler->getPluginList()) as $key ) { + $cpt++; + $xoops->loadLanguage($key, 'xcaptcha'); + + $adminmenu[$cpt]['title'] = constant('_MI_XCAPTCHA_ADMENU_' . strtoupper($key) ); + $adminmenu[$cpt]['link'] = 'admin/index.php?type=' . $key; + $adminmenu[$cpt]['icon'] = 'administration.png'; +} + +$cpt++; +$adminmenu[$cpt]['title'] = _MI_XCAPTCHA_ABOUT; +$adminmenu[$cpt]['link'] = 'admin/about.php'; +$adminmenu[$cpt]['icon'] = 'about.png'; +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/menu.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/xcaptcha.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/xcaptcha.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/xcaptcha.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,161 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class Xcaptcha extends XoopsCaptcha +{ + public $captchaHandler; + public $config = array(); + public $plugin_List = array(); + public $plugin_config = array(); + public $xcaptcha_path_plugin; + + public function __construct() + { + $this->captchaHandler = XoopsCaptcha::getInstance(); + $this->config = $this->loadConfig(); + $this->plugin_List = $this->getPluginList(); + $this->plugin_config = $this->loadConfigPlugin(); + $this->xcaptcha_path_plugin = XOOPS_ROOT_PATH . '/modules/xcaptcha/plugins'; + } + + public function Xcaptcha() + { + $this->__construct(); + } + + static function getInstance() + { + static $instance; + if (!isset($instance)) { + $class = __CLASS__; + $instance = new $class(); + } + return $instance; + } + + + public function loadConfig( $name = 'config') + { + return $this->captchaHandler->loadConfig( $name ); + } + + public function loadBasicConfig($filename = null) + { + return $this->captchaHandler->loadBasicConfig( $filename ); + } + + public function readConfig( $file = 'config') + { + return $this->captchaHandler->readConfig( $file ); + } + + public function writeConfig($file = 'config', $data) + { + return $this->captchaHandler->writeConfig( $file, $data ); + } + + public function getPluginList() + { + $ret = array(); + + foreach (glob($this->captchaHandler->path_basic . '/config.*.php') as $filename) { + $plugin_List = preg_replace('/(config\.)(.*)(\.php)/', '$2', basename($filename) ); + $ret[$plugin_List] = $plugin_List; + } + return $ret; + } + + public function loadConfigPlugin() + { + $config = array(); + foreach ($this->plugin_List as $key ) { + $config = $this->loadConfig( $key ); + } + return $config; + } + + public function getForm() + { + $captcha_form = new XoopsThemeForm('', 'xcaptchaform', 'index.php', 'post', true); + + $activate = new XoopsFormRadio(_AM_XCAPTCHA_ACTIVATE, 'disabled', $this->config['disabled'] ); + $activate->addOption(1, _AM_XCAPTCHA_ENABLE); + $activate->addOption(0, _AM_XCAPTCHA_DISABLE); + $captcha_form->addElement($activate, false); + + $plugin_List = new XoopsFormSelect(_AM_XCAPTCHA_PLUGINS, 'mode', $this->config['mode'] ); + $plugin_List->addOptionArray( $this->plugin_List ); + $captcha_form->addElement($plugin_List, false); + + $captcha_form->addElement(new XoopsFormText(_AM_XCAPTCHA_NAME, 'name', 50, 50, $this->config['name'] ), true); + + $skipmember = new XoopsFormRadio(_AM_XCAPTCHA_SKIPMEMBER, 'skipmember', $this->config['skipmember'] ); + $skipmember->addOption(1, _AM_XCAPTCHA_ENABLE); + $skipmember->addOption(0, _AM_XCAPTCHA_DISABLE); + $captcha_form->addElement($skipmember, false); + + $captcha_form->addElement(new XoopsFormText(_AM_XCAPTCHA_MAXATTEMPTS, 'maxattempts', 2, 2, $this->config['maxattempts'] ), true); + + + $captcha_form->addElement(new XoopsFormHidden('type', 'config' )); + + $button_tray = new XoopsFormElementTray('', ''); + $button_tray->addElement(new XoopsFormHidden('op', 'save')); + $button_tray->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', '', _CANCEL, 'submit')); + $captcha_form->addElement($button_tray); + + ob_start(); + $captcha_form->render(); + $ret = ob_get_contents(); + ob_end_clean(); + + return $ret; + } + + public function VerifyData() + { + global $system; + $config = array(); + $_POST['disabled'] = $system->CleanVars($_POST, 'disabled', false, 'boolean'); + $_POST['mode'] = $system->CleanVars($_POST, 'mode', 'image', 'string'); + $_POST['name'] = $system->CleanVars($_POST, 'name', 'xoopscaptcha', 'string'); + $_POST['skipmember'] = $system->CleanVars($_POST, 'skipmember', false, 'boolean'); + $_POST['maxattempts'] = $system->CleanVars($_POST, 'maxattempts', 10, 'int'); + foreach ( array_keys($this->config) as $key) { + $config[$key] = $_POST[$key]; + } + return $config; + } + + public function loadPluginHandler($name = null) + { + $name = empty($name) ? 'text' : $name; + $class = 'Xcaptcha' . ucfirst($name); + $this->Pluginhandler = null; + if (file_exists($file = $this->xcaptcha_path_plugin . '/' . $name . '.php')) { + require_once $file; + $this->Pluginhandler = new $class($this); + } + return $this->Pluginhandler; + } +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/xcaptcha.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/moduladmin.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/moduladmin.css (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/moduladmin.css 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,7 @@ +.xo-moduleadmin-icon { + width: 100%!important; + max-width:39%; +} +.xo-moduleadmin-box { + width: 60% !important; +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/moduladmin.css ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/changelog.txt =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/changelog.txt (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/changelog.txt 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ +xcaptcha 1.0 \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/changelog.txt ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/docs/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/logo_large.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/logo_large.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/logo_small.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/icons/logo_small.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/blackglass.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/blackglass.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/clean.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/clean.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/red.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/red.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/white.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/recaptcha/white.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/xcaptcha_logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/images/xcaptcha_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/admin.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/admin.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/admin.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,35 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +define('_AM_XCAPTCHA_INDEX', 'Configuration'); +define('_AM_XCAPTCHA_FORM', 'Configuration CAPTCHA'); +define('_AM_XCAPTCHA_SAVED', 'The configuration has been saved'); + +define('_AM_XCAPTCHA_ACTIVATE', 'Disable protection'); +define('_AM_XCAPTCHA_ENABLE', 'Yes'); +define('_AM_XCAPTCHA_DISABLE', 'No'); + +define('_AM_XCAPTCHA_PLUGINS', 'Method'); + +define('_AM_XCAPTCHA_NAME', 'CAPTCHA Variable name '); + +define('_AM_XCAPTCHA_SKIPMEMBER', 'Deactivate for members'); + +define('_AM_XCAPTCHA_MAXATTEMPTS', 'Maximum attempts'); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/admin.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/help.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/help/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/image.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/image.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/image.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,45 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +define('_MI_XCAPTCHA_ADMENU_IMAGE', 'Image'); + +if ( !defined('_XCAPTCHA_IMAGE') ) { + define('_XCAPTCHA_FORM_IMAGE', 'Configuration CAPTCHA : Image'); + + define('_XCAPTCHA_NUM_CHARS', 'Number of characters'); + define('_XCAPTCHA_CASESENSITIVE', 'Case insensitive'); + define('_XCAPTCHA_FONTSIZE_MIN', 'Minimum size of the font'); + define('_XCAPTCHA_FONTSIZE_MAX', 'Maximum size of the font'); + define('_XCAPTCHA_BACKGROUND_TYPE', 'Background type'); + + define('_XCAPTCHA_BACKGROUND_BAR', 'Bars'); + define('_XCAPTCHA_BACKGROUND_CIRCLE', 'Circles'); + define('_XCAPTCHA_BACKGROUND_LINE', 'Lines'); + define('_XCAPTCHA_BACKGROUND_RECTANGLE', 'Rectangles'); + define('_XCAPTCHA_BACKGROUND_ELLIPSE', 'Ellipses'); + define('_XCAPTCHA_BACKGROUND_POLYGONE', 'Polygons'); + define('_XCAPTCHA_BACKGROUND_IMAGE', 'Image'); + + define('_XCAPTCHA_BACKGROUND_NUM', 'Number of \"drawing\"'); + define('_XCAPTCHA_POLYGON_POINT', 'Number of points for the polygon'); + define('_XCAPTCHA_SKIP_CHARACTERS', 'Ignore characters'); + + define('_XCAPTCHA_IMAGE', true); +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/image.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/modinfo.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/modinfo.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,26 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +define('_MI_XCAPTCHA_NAME', 'Xcaptcha'); +define('_MI_XCAPTCHA_DESC', 'Xoops CAPTCHA configuration'); + +define('_MI_XCAPTCHA_INDEX', 'Index'); +define('_MI_XCAPTCHA_CONFIG', 'CAPTCHA configuration'); +define('_MI_XCAPTCHA_ABOUT', 'About this module'); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/recaptcha.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/recaptcha.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/recaptcha.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,32 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +define('_MI_XCAPTCHA_ADMENU_RECAPTCHA', 'Recaptcha'); + +if ( !defined('_XCAPTCHA_RECAPTCHA') ) { + define('_XCAPTCHA_FORM_RECAPTCHA', 'Configuration CAPTCHA : Recaptcha'); + + define('_XCAPTCHA_PRIVATE_KEY', 'Private key'); + define('_XCAPTCHA_PUBLIC_KEY', 'Public key'); + define('_XCAPTCHA_THEME', 'Theme'); + define('_XCAPTCHA_LANG', 'Language'); + + define('_XCAPTCHA_RECAPTCHA', true); +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/recaptcha.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/text.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/text.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/text.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,27 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ +define('_MI_XCAPTCHA_ADMENU_TEXT', 'Text'); + +if ( !defined('_XCAPTCHA_TEXT') ) { + define('_XCAPTCHA_FORM_TEXT', 'Configuration CAPTCHA : Texte'); + define('_XCAPTCHA_NUM_CHARS', 'Number of characters'); + + define('_XCAPTCHA_TEXT', true); +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/english/text.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/language/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/image.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/image.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/image.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,119 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XcaptchaImage extends Xcaptcha +{ + public $config = array(); + public $plugin; + + public function __construct() + { + $this->xcaptcha_handler = Xcaptcha::getInstance(); + $this->config = $this->xcaptcha_handler->loadConfig('image'); + $this->plugin = 'image'; + } + + public function XcaptchaImage() + { + $this->__construct(); + } + + public function getForm() + { + $captcha_form = new XoopsThemeForm('', 'xcaptchaform', 'index.php', 'post', true); + + $captcha_form->addElement(new XoopsFormText(_XCAPTCHA_NUM_CHARS, 'num_chars', 2, 2, $this->config['num_chars'] ), true); + + $captcha_form->addElement(new XoopsFormRadioYN(_XCAPTCHA_CASESENSITIVE, 'casesensitive', $this->config['casesensitive'], _YES, _NO)); + + $fontmin_form = new XoopsFormSelect(_XCAPTCHA_FONTSIZE_MIN, 'fontsize_min', $this->config['fontsize_min']); + for ($i = 10; $i <= 30; $i++) { + $fontmin_form->addOption($i, $i); + } + $captcha_form->addElement($fontmin_form, false); + + $fontmax_form = new XoopsFormSelect(_XCAPTCHA_FONTSIZE_MAX, 'fontsize_max', $this->config['fontsize_max']); + for ($i = 10; $i <= 30; $i++) { + $fontmax_form->addOption($i, $i); + } + $captcha_form->addElement($fontmax_form, false); + + $backtype_form = new XoopsFormSelect(_XCAPTCHA_BACKGROUND_TYPE, 'background_type', $this->config['background_type'], $size = 7); + $backtype_form->addOption(0, _XCAPTCHA_BACKGROUND_BAR); + $backtype_form->addOption(1, _XCAPTCHA_BACKGROUND_CIRCLE); + $backtype_form->addOption(2, _XCAPTCHA_BACKGROUND_LINE); + $backtype_form->addOption(3, _XCAPTCHA_BACKGROUND_RECTANGLE); + $backtype_form->addOption(4, _XCAPTCHA_BACKGROUND_ELLIPSE); + $backtype_form->addOption(5, _XCAPTCHA_BACKGROUND_POLYGONE); + $backtype_form->addOption(100, _XCAPTCHA_BACKGROUND_IMAGE); + $captcha_form->addElement($backtype_form, false); + + $backnum_form = new XoopsFormSelect(_XCAPTCHA_BACKGROUND_NUM, 'background_num', $this->config['background_num']); + for ($i = 10; $i <= 100; $i = $i+10) { + $backnum_form->addOption($i, $i); + } + $captcha_form->addElement($backnum_form, false); + + $polygon_point = new XoopsFormSelect(_XCAPTCHA_POLYGON_POINT, 'polygon_point', $this->config['polygon_point']); + for ($i = 3; $i <= 20; $i++) { + $polygon_point->addOption($i, $i); + } + $captcha_form->addElement($polygon_point, false); + + $value = implode('|', $this->config['skip_characters']); + $captcha_form->addElement(new XoopsFormTextarea(_XCAPTCHA_SKIP_CHARACTERS, 'skip_characters', $value, 5, 50 ), true); + + $captcha_form->addElement(new XoopsFormHidden('type', 'image' )); + + $button_tray = new XoopsFormElementTray('', ''); + $button_tray->addElement(new XoopsFormHidden('op', 'save')); + $button_tray->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', '', _CANCEL, 'submit')); + $captcha_form->addElement($button_tray); + + ob_start(); + $captcha_form->render(); + $ret = ob_get_contents(); + ob_end_clean(); + + return $ret; + } + + public function VerifyData() + { + global $system; + $config = array(); + $_POST['num_chars'] = $system->CleanVars($_POST, 'num_chars', 6, 'int'); + $_POST['casesensitive'] = $system->CleanVars($_POST, 'casesensitive', false, 'boolean'); + $_POST['fontsize_min'] = $system->CleanVars($_POST, 'fontsize_min', 10, 'int'); + $_POST['fontsize_max'] = $system->CleanVars($_POST, 'fontsize_max', 24, 'int'); + $_POST['background_type'] = $system->CleanVars($_POST, 'background_type', 0, 'int'); + $_POST['background_num'] = $system->CleanVars($_POST, 'background_num', 50, 'int'); + $_POST['polygon_point'] = $system->CleanVars($_POST, 'polygon_point', 3, 'int'); + $_POST['skip_characters'] = $system->CleanVars($_POST, 'skip_characters', 'o|0|i|l|1', 'string'); + $_POST['skip_characters'] = explode('|', $_POST['skip_characters']); + foreach ( array_keys($this->config) as $key) { + $config[$key] = $_POST[$key]; + } + return $config; + } +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/image.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/index.html 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/recaptcha.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/recaptcha.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/recaptcha.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,112 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XcaptchaRecaptcha extends Xcaptcha +{ + public $config = array(); + public $plugin; + + function __construct() + { + $this->xcaptcha_handler = Xcaptcha::getInstance(); + $this->config = $this->xcaptcha_handler->loadConfig('recaptcha'); + $this->plugin = 'recaptcha'; + } + + function XcaptchaRecaptcha() + { + $this->__construct(); + } + + function getForm() + { + $captcha_form = new XoopsThemeForm('', 'xcaptchaform', 'index.php', 'post', true); + + $captcha_form->addElement(new XoopsFormTextarea(_XCAPTCHA_PRIVATE_KEY, 'private_key', $this->config['private_key'], 5, 50 ), true); + $captcha_form->addElement(new XoopsFormTextarea(_XCAPTCHA_PUBLIC_KEY, 'public_key', $this->config['public_key'], 5, 50 ), true); + + $theme_form = new XoopsFormSelect(_XCAPTCHA_THEME, 'theme', $this->config['theme'], $size = 4); + $theme_form->addOptionArray($this->getThemes() ); + $captcha_form->addElement($theme_form, false); + + $lang_form = new XoopsFormSelect(_XCAPTCHA_LANG, 'lang', $this->config['lang'], $size = 4); + $lang_form->addOptionArray($this->getLanguages() ); + $captcha_form->addElement($lang_form, false); + + $captcha_form->addElement(new XoopsFormHidden('type', 'recaptcha' )); + + $button_tray = new XoopsFormElementTray('', ''); + $button_tray->addElement(new XoopsFormHidden('op', 'save')); + $button_tray->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', '', _CANCEL, 'submit')); + $captcha_form->addElement($button_tray); + + ob_start(); + $captcha_form->render(); + $ret = ob_get_contents(); + ob_end_clean(); + + return $ret; + } + + function VerifyData() + { + global $xoopsConfig; + $default_lang = array_search(ucfirst($xoopsConfig['language']), $this->getLanguages() ); + $default_lang = (!$default_lang) ? 'en' : $default_lang; + + global $system; + $config = array(); + $_POST['private_key'] = $system->CleanVars($_POST, 'private_key', 'Your private key', 'string'); + $_POST['public_key'] = $system->CleanVars($_POST, 'public_key', 'Your public key', 'string'); + $_POST['theme'] = $system->CleanVars($_POST, 'theme', 'red', 'string'); + $_POST['lang'] = $system->CleanVars($_POST, 'lang', $default_lang, 'string'); + foreach ( array_keys($this->config) as $key) { + $config[$key] = $_POST[$key]; + } + return $config; + } + + function getThemes() + { + return array( + 'red' => 'RED (default theme)', + 'white' => 'WHITE', + 'blackglass' => 'BLACKGLASS', + 'clean' => 'CLEAN', + ); + } + + function getLanguages() + { + return array( + 'en' => 'English', + 'nl' => 'Dutch', + 'fr' => 'French', + 'de' => 'German', + 'pt' => 'Portuguese', + 'ru' => 'Russian', + 'es' => 'Spanish', + 'tr' => 'Turkish', + ); + } +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/recaptcha.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/text.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/text.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/text.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,72 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xcaptcha + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XcaptchaText extends Xcaptcha +{ + public $config = array(); + public $plugin; + + function __construct() + { + $this->xcaptcha_handler = Xcaptcha::getInstance(); + $this->config = $this->xcaptcha_handler->loadConfig('text'); + $this->plugin = 'text'; + } + + function XcaptchaText() + { + $this->__construct(); + } + + function getForm() + { + $captcha_form = new XoopsThemeForm('', 'xcaptchaform', 'index.php', 'post', true); + + $captcha_form->addElement(new XoopsFormText(_XCAPTCHA_NUM_CHARS, 'num_chars', 2, 2, $this->config['num_chars'] ), true); + + $captcha_form->addElement(new XoopsFormHidden('type', 'text' )); + + $button_tray = new XoopsFormElementTray('', ''); + $button_tray->addElement(new XoopsFormHidden('op', 'save')); + $button_tray->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', '', _CANCEL, 'submit')); + $captcha_form->addElement($button_tray); + + ob_start(); + $captcha_form->render(); + $ret = ob_get_contents(); + ob_end_clean(); + + return $ret; + } + + function VerifyData() + { + global $system; + $config = array(); + $_POST['num_chars'] = $system->cleanVars($_POST, 'num_chars', 6, 'int'); + foreach ( array_keys($this->config) as $key) { + $config[$key] = $_POST[$key]; + } + return $config; + } +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/text.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-10-15 23:26:13 UTC (rev 10223) @@ -0,0 +1,67 @@ +<?php +/** + * Xcaptcha extension module + * + * You may not change or alter any porti... [truncated message content] |
From: <du...@us...> - 2012-10-25 13:38:25
|
Revision: 10234 http://sourceforge.net/p/xoops/svn/10234 Author: dugris Date: 2012-10-25 13:38:21 +0000 (Thu, 25 Oct 2012) Log Message: ----------- xlanguage 4.00 alpha (Xoops multi-Language Management) System extensions for xoops 2.6.x Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/api.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/xlanguage_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/xlanguage.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/block.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/moduladmin.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images/xlanguage_logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/autoload.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/vars.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/jquery/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/jquery/jquery.language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/jquery/jquery.language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/jquery/jquery.language/jquery.language.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/media/jquery/jquery.language/jquery.language.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/admin/xlanguage_admin_list.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block_bootstrap.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block_images.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block_jquery.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block_select.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block_text.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/about.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,30 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops->header(); +$xoops->theme->addStylesheet('modules/xcontact/css/moduladmin.css'); + +$admin_page = new XoopsModuleAdmin(); + +$admin_page->renderNavigation('about.php'); +$admin_page->renderAbout(); +$xoops->footer(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/about.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/footer.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/footer.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/footer.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,22 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +$admin_page->renderIndex(); +$xoops->footer(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/footer.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/header.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,46 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; + +$op = ''; +if ( isset( $_POST ) ){ + foreach ( $_POST as $k => $v ) { + ${$k} = $v; + } +} +if ( isset( $_GET ) ){ + foreach ( $_GET as $k => $v ) { + ${$k} = $v; + } +} + +XoopsLoad::load('system', 'system'); + +$xoops = Xoops::getInstance(); +$system = System::getInstance(); + +$xlanguage_handler = $xoops->getModuleHandler('xlanguage', 'xlanguage'); +$xlanguage_handler->loadConfig(); + +$xoops->header(); +$xoops->theme->addStylesheet('modules/xlanguage/css/moduladmin.css'); + +$admin_page = new XoopsModuleAdmin(); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/header.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,105 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops->header(); + +switch ( $op ) { + + case 'save': + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $xlanguage_id = $system->CleanVars($_POST, 'xlanguage_id', 0, 'int'); + if( isset($xlanguage_id) && $xlanguage_id > 0 ){ + $lang = $xlanguage_handler->get($xlanguage_id); + } else { + $lang = $xlanguage_handler->create(); + } + $lang->CleanVarsForDB(); + + if ($xlanguage_handler->insert($lang)) { + $xlanguage_handler->createConfig(); + redirect_header('index.php', 5, _AM_XLANGUAGE_SAVED); + } + break; + + case 'add': + $lang = $xlanguage_handler->create(); + $admin_page->addInfoBox(_MI_XLANGUAGE_ADD_LANG); + $admin_page->addInfoBoxLine($lang->getForm()); + break; + + case 'edit': + $xlanguage_id = $system->CleanVars($_REQUEST, 'xlanguage_id', 0, 'int'); + if( isset($xlanguage_id) && $xlanguage_id > 0 ){ + if ($lang = $xlanguage_handler->get($xlanguage_id) ) { + $admin_page->addInfoBox(_MI_XLANGUAGE_MODIFY); + $admin_page->addInfoBoxLine($lang->getForm()); + } else { + redirect_header('index.php', 5); + } + } else { + redirect_header('index.php', 5); + } + break; + + case 'del': + $xlanguage_id = $system->CleanVars($_REQUEST, 'xlanguage_id', 0, 'int'); + if( isset($xlanguage_id) && $xlanguage_id > 0 ){ + if ($lang = $xlanguage_handler->get($xlanguage_id) ) { + $delete = $system->CleanVars( $_POST, 'ok', 0, 'int' ); + if ($delete == 1) { + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + $xlanguage_handler->delete($lang); + $xlanguage_handler->createConfig(); + redirect_header('index.php', 5, _AM_XLANGUAGE_DELETED); + } else { + ob_start(); + $xoops->confirm(array('ok' => 1, 'xlanguage_id' => $xlanguage_id, 'op' => 'del'), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM . "<br /><b><span style='color : Red'> %s </span><br /><br />", $lang->getVar('xlanguage_name'))); + $confirm = '<div class="confirm">' . ob_get_contents() . '</div>'; + ob_end_clean(); + $admin_page->addInfoBox(_MI_XLANGUAGE_DELETE); + $admin_page->addInfoBoxLine($confirm); + } + } else { + redirect_header('index.php', 5); + } + } else { + redirect_header('index.php', 5); + } + break; + + case 'createconfig': + $xlanguage_handler->createConfig(); + redirect_header( 'index.php', 5, _AM_XLANGUAGE_CREATED ); + break; + + case 'default': + default: + $admin_page->addInfoBox(_AM_XLANGUAGE_LANGLIST); + $admin_page->addInfoBoxLine($xlanguage_handler->renderlist()); + break; +} +include dirname(__FILE__) . '/footer.php'; +?> Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/menu.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,39 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +$cpt = 0; +$adminmenu[$cpt]['title'] = _MI_XLANGUAGE_INDEX; +$adminmenu[$cpt]['link'] = 'admin/index.php'; +$adminmenu[$cpt]['icon'] = 'home.png'; + +$cpt++; +$adminmenu[$cpt]['title'] = _MI_XLANGUAGE_ADD_LANG; +$adminmenu[$cpt]['link'] = 'admin/index.php?op=add'; +$adminmenu[$cpt]['icon'] = 'add.png'; + +$cpt++; +$adminmenu[$cpt]['title'] = _MI_XLANGUAGE_CREATE_CONFIG; +$adminmenu[$cpt]['link'] = 'admin/index.php?op=createconfig'; +$adminmenu[$cpt]['icon'] = 'administration.png'; + +$cpt++; +$adminmenu[$cpt]['title'] = _MI_XLANGUAGE_ABOUT; +$adminmenu[$cpt]['link'] = 'admin/about.php'; +$adminmenu[$cpt]['icon'] = 'about.png'; +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/menu.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/api.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/api.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/api.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,84 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +global $xoops, $xlanguage; +include_once XOOPS_ROOT_PATH . '/modules/xlanguage/include/vars.php'; +include_once XOOPS_ROOT_PATH . '/modules/xlanguage/include/functions.php'; + +$cookie_var = XLANGUAGE_LANG_TAG; + +$xlanguage['action'] = false; +if (!empty($_GET[XLANGUAGE_LANG_TAG])) { + $cookie_path = '/'; + setcookie($cookie_var, $_GET[XLANGUAGE_LANG_TAG], time()+3600*24*30, $cookie_path, '', 0); + $xlanguage['lang'] = $_GET[XLANGUAGE_LANG_TAG]; +} elseif (!empty($_COOKIE[$cookie_var])) { + $xlanguage['lang'] = $_COOKIE[$cookie_var]; +} elseif ($lang = xlanguage_detectLang()) { + $xlanguage['lang'] = $lang; +} else { + $xlanguage['lang'] = $xoops->getConfig('language'); +} + +$xlanguage_handler = $xoops->getModuleHandler('xlanguage', 'xlanguage'); +$xlanguage_handler->loadConfig(); + +$lang = $xlanguage_handler->getByName($xlanguage['lang']); + +if ( is_array($lang) && strcasecmp($lang['xlanguage_name'], $xoops->getConfig('language')) ) { + $xoops->setConfig('language', $lang['xlanguage_name']); + if ( $lang['xlanguage_charset'] ) { + $xlanguage['charset'] = $lang['xlanguage_charset']; + } + if ( $lang['xlanguage_code'] ) { + $xlanguage['code'] = $lang['xlanguage_code']; + } +} +unset($lang); + +$GLOBALS['xlanguage_handler'] = $xlanguage_handler; + +if ( $xlanguage['action'] ) { + //if(CONV_REQUEST && (!empty($_GET)||!empty($_POST))){ + if ( !empty($_POST) ) { + $in_charset = $xlanguage['charset']; + $out_charset = $xlanguage['charset_base']; + + //$CONV_REQUEST_array=array('_GET', '_POST'); + $CONV_REQUEST_array=array('_POST'); + foreach ( $CONV_REQUEST_array as $HV ) { + if ( !empty(${$HV}) ) { + ${$HV} = xlanguage_convert_encoding(${$HV}, $out_charset, $in_charset); + } + $GLOBALS['HTTP' . $HV . '_VARS'] = ${$HV}; + } + } + ob_start('xlanguage_encoding'); +} else { + ob_start('xlanguage_ml'); +} + +/* + * hardcoded scripts for language switching in theme html files + * + * see include/vars.php + */ + + +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/api.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/index.html =================================================================== Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/xlanguage_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/xlanguage_blocks.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/xlanguage_blocks.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,86 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + + +function b_xlanguage_select_show($options) +{ + global $xlanguage; + $xoops = Xoops::getInstance(); + + $options[3] = $xoops->getModuleConfig('theme', 'xlanguage'); + + $block = array(); + $xlanguage_handler = $xoops->getModuleHandler('xlanguage', 'xlanguage'); + $xlanguage_handler->loadConfig(); + + if ( !is_array($xlanguage_handler->cached_config) || count($xlanguage_handler->cached_config)<1 ) { + return $block; + } + + $QUERY_STRING_array = array_filter(explode('&',$xoops->getEnv('QUERY_STRING'))); + $QUERY_STRING_new = array(); + foreach ( $QUERY_STRING_array as $QUERY ) { + if ( substr($QUERY, 0, (strlen(XLANGUAGE_LANG_TAG)+1)) != XLANGUAGE_LANG_TAG . '=' ) { + $vals = explode('=', $QUERY); + foreach ( array_keys($vals) as $key ) { + if ( preg_match('/^a-z0-9$/i', $vals[$key]) ) { + $vals[$key] = urlencode($vals[$key]); + } + } + $QUERY_STRING_new[] = implode('=', $vals); + } + } + + $block['display'] = $options[0]; + $block['delimitor'] = $options[1]; + $block['number'] = $options[2]; + + $block['selected'] = $xlanguage['lang']; + + if ( $options[0] == 'images' || $options[0] == 'text' ) { + $query_string = htmlSpecialChars(implode('&', $QUERY_STRING_new)); + $query_string .= empty($query_string) ? '' : '&'; + } else { + $query_string = implode('&', array_map('htmlspecialchars', $QUERY_STRING_new)); + $query_string .= empty($query_string) ? '' : '&'; + } + $block['url'] = $xoops->getEnv('PHP_SELF') . '?' . $query_string . XLANGUAGE_LANG_TAG . '='; + $block['languages'] = $xlanguage_handler->cached_config; + + return $block; +} + +function b_xlanguage_select_edit($options) +{ + $block_form = new XoopsFormElementTray(' ', '<br />'); + + $tmp = new XoopsFormSelect(_MB_XLANGUAGE_DISPLAY_METHOD . ' : ', 'options[0]', $options[0]); + $tmp->addOption('images', _MB_XLANGUAGE_DISPLAY_FLAGLIST); + $tmp->addOption('text', _MB_XLANGUAGE_DISPLAY_TEXTLIST); + $tmp->addOption('select', _MB_XLANGUAGE_DISPLAY_SELECT); + $tmp->addOption('jquery', _MB_XLANGUAGE_DISPLAY_JQUERY); + $tmp->addOption('bootstrap', _MB_XLANGUAGE_DISPLAY_BOOTSTRAP); + $block_form->addElement($tmp); + + $block_form->addElement(new XoopsFormText(_MB_XLANGUAGE_IMAGE_SEPARATOR . ' (' . _MB_XLANGUAGE_OPTIONAL . ') : ', 'options[1]', 5, 5, $options[1] )); + $block_form->addElement(new XoopsFormText(_MB_XLANGUAGE_IMAGE_PERROW . ' (' . _MB_XLANGUAGE_OPTIONAL . ') : ', 'options[2]', 2, 2, $options[2] )); + + return $block_form->render(); +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/xlanguage_blocks.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/index.html =================================================================== Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/xlanguage.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/xlanguage.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/xlanguage.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,216 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +include_once XOOPS_ROOT_PATH . '/modules/xlanguage/include/vars.php'; + +class Xlanguage extends XoopsObject +{ + public function __construct() + { + $this->initVar('xlanguage_id' , XOBJ_DTYPE_INT , 0 , false, 10); + $this->initVar('xlanguage_name' , XOBJ_DTYPE_TXTBOX , '' , false); + $this->initVar('xlanguage_description' , XOBJ_DTYPE_TXTBOX , '' , false); + $this->initVar('xlanguage_code' , XOBJ_DTYPE_TXTBOX , '' , false); + $this->initVar('xlanguage_charset' , XOBJ_DTYPE_TXTBOX , '' , false); + $this->initVar('xlanguage_image' , XOBJ_DTYPE_TXTBOX , 'english.png' , false); + $this->initVar('xlanguage_weight' , XOBJ_DTYPE_INT , 1 , false, 10); + } + + function Xlanguage() + { + $this->__construct(); + } + + function toArray() + { + global $xoops; + $ret = parent::toArray(); + $ret['xlanguage_image'] = XOOPS_URL . '/media/xoops/images/flags/' . $xoops->getModuleConfig('theme', 'xlanguage') . '/' . $this->getVar('xlanguage_image'); + return $ret; + } + + function CleanVarsForDB() + { + global $system; + foreach ( $this->getValues() as $k => $v ) { + if ( $k != 'dohtml' ) { + if ( $this->vars[$k]['data_type'] == XOBJ_DTYPE_STIME || $this->vars[$k]['data_type'] == XOBJ_DTYPE_MTIME || $this->vars[$k]['data_type'] == XOBJ_DTYPE_LTIME) { + $value = $system->CleanVars($_POST[$k], 'date', date('Y-m-d'), 'date') + $system->CleanVars($_POST[$k], 'time', date('u'), 'int'); + $this->setVar( $k, isset( $_POST[$k] ) ? $value : $v ); + } elseif ( $this->vars[$k]['data_type'] == XOBJ_DTYPE_INT ) { + $value = $system->CleanVars($_POST, $k, $v, 'int'); + $this->setVar( $k, $value ); + } elseif ( $this->vars[$k]['data_type'] == XOBJ_DTYPE_ARRAY ) { + $value = $system->CleanVars($_POST, $k, $v, 'array'); + $this->setVar( $k, $value ); + } else { + $value = $system->CleanVars($_POST, $k, $v, 'string'); + $this->setVar( $k, $value ); + } + } + } + } + + function getForm() + { + global $xoops; + + $xlanguage_form = new XoopsThemeForm('', 'langform', $xoops->getEnv('PHP_SELF'), 'post', true); + + // language name + $xlanguage_select = new XoopsFormSelect(_AM_XLANGUAGE_NAME, 'xlanguage_name', $this->getVar('xlanguage_name')); + $xlanguage_select->addOptionArray(XoopsLists::getLangList()); + $xlanguage_form->addElement($xlanguage_select, true); + + // language description + $xlanguage_form->addElement(new XoopsFormText(_AM_XLANGUAGE_DESCRIPTION, 'xlanguage_description', 5, 10, $this->getVar('xlanguage_description') ), true); + + // language charset + $autoload = XoopsLoad::loadConfig( 'xlanguage' ); + $charset_select = new XoopsFormSelect(_AM_XLANGUAGE_CHARSET, 'xlanguage_charset', $this->getVar('xlanguage_charset')); + $charset_select->addOptionArray($autoload['charset']); + $xlanguage_form->addElement($charset_select); + + // language code + $xlanguage_form->addElement(new XoopsFormText(_AM_XLANGUAGE_CODE, 'xlanguage_code', 5, 10, $this->getVar('xlanguage_code') ), true); + + // language weight + $xlanguage_form->addElement(new XoopsFormText(_AM_XLANGUAGE_WEIGHT, 'xlanguage_weight', 5, 10, $this->getVar('xlanguage_weight') )); + + // language image + $image_option_tray = new XoopsFormElementTray(_AM_XLANGUAGE_IMAGE, ''); + $image_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/media/xoops/images/flags/' . $xoops->getModuleConfig('theme', 'xlanguage') . '/'); + $image_select = new XoopsFormSelect('', 'xlanguage_image', $this->getVar('xlanguage_image')); + $image_select->addOptionArray($image_array); + $image_select->setExtra("onchange='showImgSelected(\"image\", \"xlanguage_image\", \"/media/xoops/images/flags/" . $xoops->getModuleConfig('theme', 'xlanguage') . "/\", \"\", \"" . XOOPS_URL . "\")'"); + $image_tray = new XoopsFormElementTray('', ' '); + $image_tray->addElement($image_select); + $image_tray->addElement(new XoopsFormLabel('', "<div style='padding: 8px;'><img style='width:24px; height:24px; ' src='" . XOOPS_URL . "/media/xoops/images/flags/" . $xoops->getModuleConfig('theme', 'xlanguage') . "/" . $this->getVar("xlanguage_image") . "' name='image' id='image' alt='' /></div>")); + $image_option_tray->addElement($image_tray); + $xlanguage_form->addElement($image_option_tray); + + $xlanguage_form->addElement(new XoopsFormHidden('xlanguage_id', $this->getVar('xlanguage_id') )); + + $button_tray = new XoopsFormElementTray('', ''); + $button_tray->addElement(new XoopsFormHidden('op', 'save')); + $button_tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', 'reset', _RESET, 'reset')); + $cancel_send = new XoopsFormButton('', 'cancel', _CANCEL, 'button'); + $cancel_send->setExtra("onclick='javascript:history.go(-1);'"); + $button_tray->addElement($cancel_send); + + $xlanguage_form->addElement($button_tray); + + ob_start(); + $xlanguage_form->render(); + $ret = ob_get_contents(); + ob_end_clean(); + + return $ret; + } +} + +class XlanguageXlanguageHandler extends XoopsPersistableObjectHandler +{ + + function __construct(&$db) + { + parent::__construct($db, 'xlanguage', 'Xlanguage', 'xlanguage_id', 'xlanguage_name'); + } + + function loadConfig() + { + $this->configPath = XOOPS_VAR_PATH . '/configs/'; + $this->configFile = XLANGUAGE_CONFIG_FILE; + $this->configFileExt = '.php'; + $this->cached_config = $this->loadFileConfig(); + } + + function loadFileConfig() + { + $cached_config = $this->readConfig(); + if (empty($cached_config)) { + $cached_config = $this->createConfig(); + } + return $cached_config; + } + + function readConfig() + { + $path_file = $this->configPath . $this->configFile . $this->configFileExt; + XoopsLoad::load('XoopsFile'); + $file = XoopsFile::getHandler('file', $path_file); + return eval(@$file->read()); + } + + function createConfig() + { + $cached_config = array(); + foreach ( $this->getAllLanguage( false ) as $key => $language ) { + $cached_config[$language['xlanguage_name']] = $language; + } + $this->writeConfig($cached_config); + return $cached_config; + } + + function writeConfig($data) + { + $path_file = $this->configPath . $this->configFile . $this->configFileExt; + XoopsLoad::load('XoopsFile'); + $file = XoopsFile::getHandler('file', $path_file); + return $file->write( "return " . var_export($data, true) . ";"); + } + + function getByName($name = null) + { + global $xoops; + $lang = empty($name) ? $xoops->getConfig('language') : strtolower($name); + + $file_config = XLANGUAGE_CONFIG_FILE; + if ( !file_exists($file_config) || !isset($this->cached_config)) { + $this->loadConfig(); + } + + if ( isset($this->cached_config[$name]) ) { + return $this->cached_config[$name]; + } + return null; + } + + + function getAllLanguage( $asobject = true ) + { + $criteria = new CriteriaCompo(); + $criteria->setSort( 'xlanguage_weight' ); + $criteria->setOrder( 'asc' ); + + return parent::getAll($criteria, null, $asobject, true); + } + + function renderlist() + { + global $xoops; + $xoops->tpl->assign('theme', $xoops->getModuleConfig('theme', 'xlanguage') ); + $xoops->tpl->assign('languages', $this->getAllLanguage(false) ); + return $xoops->tpl->fetch('db:xlanguage_admin_list.html'); + } +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/xlanguage.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/block.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/block.css (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/block.css 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,55 @@ +#xo-language { + background: transparent; + color: #999999; + margin: 0; + padding: 0 15px; +} + +.text { + padding-top: 10px !important; + line-height: 18px; +} + +.text a { + color: #999999; +} + +.text a:active, .text a:hover { + color: #ffffff; +} + +.images { + padding-top: 7px !important; +} +img.flag { + width: 32px; + max-width: 32px; + filter: alpha(opacity=1000); + -moz-opacity: 1; + opacity: 1; + -khtml-opacity: 1; +} + +img.flag:hover { + filter: alpha(opacity=50); + -moz-opacity: 0.5; + opacity: 0.5; + -khtml-opacity: 0.5; +} + +.select { + padding-top: 6px !important; +} + +.jquery { + padding-top: 6px !important; + padding-bottom: 6px !important; +} + +.bootstrap { +} + +.ico-language { + background-image: url('../icons/logo_small.png'); + background-position: 0 0; +} Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/index.html =================================================================== Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/moduladmin.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/moduladmin.css (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/moduladmin.css 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,19 @@ +.xo-moduleadmin-icon { + width: 100%!important; + max-width:39%; +} +.xo-moduleadmin-box { + width: 60% !important; +} + +.errorMsg,.confirmMsg, .resultMsg { padding: .8em; text-align:center; margin-bottom: 1em; border: 2px solid #ddd;} +.errorMsg { background-color: #FBE3E4; color: #D12F19; border-color: #FBC2C4; } +.confirmMsg { background-color: #FFF6BF; color: #817134; border-color: #FFD324; } +.resultMsg { background-color: #E6EFC2; color: #529214; border-color: #C6D880; } +.errorMsg a { background-color: transparent; color: #D12F19; } +.confirmMsg a { background-color: transparent; color: #817134; } +.successMsg a { background-color: transparent; color: #529214; } + +img.flag { + width:24px; +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/changelog.txt =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/changelog.txt (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/changelog.txt 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,26 @@ += CHANGES = + +<b>xlanguage 4.00</b> +- rewrite for Xoops 2.6.x Laurent JEN (aka DuGris) + +<b>xlanguage 3.02</b> +- xolanguage plugin added (see www.dugris.info) +- italian translation added (thanks to Lupin) + +<b>xlanguage 2.04</b> +- capable for different language cache, reported by suico @ xoops.org + +<b>xlanguage 2.03</b> +- "input" parse improvement, reported by irmtfan @ xoops.org + +<b>xlanguage 2.02</b> +- Thanks domifara @ dev.xoops.org + +<b>xlanguage 2.01</b> + +Credits: +1 - Adi Chiributa - web...@ar..., language handler +2 - wjue - http://www.wjue.org, ziling BIG5-GB2312 conversion +3 - GIJOE - http://www.peak.ne.jp, easiest multilanguage hack +4 - D.J.(phppp) - http://www.xoopsforge.com +5 - trabis - Xoops Module Developer \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/docs/index.html =================================================================== Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/index.html =================================================================== Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/logo_large.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/logo_large.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/logo_small.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/icons/logo_small.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images/index.html =================================================================== Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images/xlanguage_logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/images/xlanguage_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/autoload.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/autoload.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/autoload.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,50 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +return array ( + 'charset' => array( + 'big5' => 'big5', + 'euc-kr' => 'euc-kr', + 'iso-8859-1' => 'iso-8859-1', + 'iso-8859-2' => 'iso-8859-2', + 'iso-8859-3' => 'iso-8859-3', + 'iso-8859-4' => 'iso-8859-4', + 'iso-8859-5' => 'iso-8859-5', + 'iso-8859-6' => 'iso-8859-6', + 'iso-8859-7' => 'iso-8859-7', + 'iso-8859-8' => 'iso-8859-8', + 'koi8-r' => 'koi8-r', + 'shift-jis' => 'shift-jis', + 'x-euc' => 'x-euc', + 'utf-8' => 'utf-8', + 'windows-1250' => 'windows-1250', + 'windows-1251' => 'windows-1251', + 'windows-1252' => 'windows-1252', + 'windows-1253' => 'windows-1253', + 'windows-1254' => 'windows-1254', + 'windows-1255' => 'windows-1255', + 'windows-1256' => 'windows-1256', + 'windows-1257' => 'windows-1257', + 'windows-1258' => 'windows-1258', + 'windows-874' => 'windows-874' + ), +); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/autoload.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,225 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +function xlanguage_convert_encoding($value, $out_charset, $in_charset) +{ + if ( is_array($value) ) { + foreach ( $value as $key => $val ) { + $value[$key] = xlanguage_convert_encoding($val, $out_charset, $in_charset); + } + } else { + $value = xlanguage_convert_item($value, $out_charset, $in_charset); + } + return $value; +} + +function xlanguage_convert_item($value, $out_charset, $in_charset) +{ + if ( strtolower($in_charset) == strtolower($out_charset) ) { + return $value; + } + $xconv_handler = @xoops_getmodulehandler('xconv', 'xconv', true); + if ( is_object($xconv_handler) && $converted_value = @$xconv_handler->convert_encoding($value, $out_charset, $in_charset) ) { + return $converted_value; + } + if ( XOOPS_USE_MULTIBYTES && function_exists('mb_convert_encoding') ) { + $converted_value = @mb_convert_encoding($value, $out_charset, $in_charset); + } elseif ( function_exists('iconv') ) { + $converted_value = @iconv($in_charset, $out_charset, $value); + } + $value = empty($converted_value) ? $value : $converted_value; + + return $value; +} + +/** + * Analyzes some PHP environment variables to find the most probable language + * that should be used + * + * @param string $ string to analyze + * @param integer $ type of the PHP environment variable which value is $str + * @global array the list of available translations + * @global string the retained translation keyword + * @access private + */ +function xlanguage_lang_detect($str = '', $envType = '') +{ + foreach ( $GLOBALS['available_languages'] AS $key => $value ) { + // $envType = 1 for the 'HTTP_ACCEPT_LANGUAGE' environment variable, + // 2 for the 'HTTP_USER_AGENT' one + $expr = $value[0]; + if ( strpos($expr, '[-_]') === FALSE ) { + $expr = str_replace('|', '([-_][[:alpha:]]{2,3})?|', $expr); + } + if ( ($envType == 1 && preg_match('^(' . $expr . ')(;q=[0-9]\\.[0-9])?$^', $str) ) || ($envType == 2 && preg_match('(\(|\[|;[[:space:]])(' . $expr . ')(;|\]|\))', $str))) { + $lang = $key; + //if ( $lang != 'en' ) + break; + } + } + return $lang; +} + +function xlanguage_detectLang() +{ + global $available_languages,$_SERVER; + + if ( !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ) { + $HTTP_ACCEPT_LANGUAGE = $_SERVER['HTTP_ACCEPT_LANGUAGE']; + } + + if ( !empty($_SERVER['HTTP_USER_AGENT']) ) { + $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT']; + } + + $lang = ''; + $xoops_lang =''; + // 1. try to findout user's language by checking its HTTP_ACCEPT_LANGUAGE + // variable + if ( empty($lang) && !empty($HTTP_ACCEPT_LANGUAGE) ) { + $accepted = explode(',', $HTTP_ACCEPT_LANGUAGE); + $acceptedCnt = count($accepted); + reset($accepted); + for ($i = 0; $i < $acceptedCnt; $i++) { + $lang = xlanguage_lang_detect($accepted[$i], 1); + if ( strncasecmp($lang,'en',2) ) { + break; + } + } + } + // 2. try to findout user's language by checking its HTTP_USER_AGENT variable + if ( empty($lang) && !empty($HTTP_USER_AGENT) ) { + $lang = xlanguage_lang_detect($HTTP_USER_AGENT, 2); + } + // 3. If we catch a valid language, configure it + if ( !empty($lang) ) { + $xoops_lang = $available_languages[$lang][1]; + } + return $xoops_lang; +} + +function xlanguage_encoding($output) +{ + global $xlanguage; + $output = xlanguage_ml($output); + // escape XML doc + if ( preg_match("/^\<\?[\s]?xml[\s]+version=([\"'])[^\>]+\\1[\s]+encoding=([\"'])[^\>]+\\2[\s]?\?\>/i", $output) ) { + return $output; + } + $in_charset = $xlanguage['charset_base']; + $out_charset = $xlanguage['charset']; + + return $output = xlanguage_convert_encoding($output, $out_charset, $in_charset); +} + +function xlanguage_ml($s) +{ + global $xoops, $xlanguage_langs; + if ( !is_object($xoops) ) { + $xoops = Xoops::getInstance(); + } + $xoopsConfigLanguage = $xoops->getConfig('language'); + + if ( !isset($xlanguage_langs) ) { + $langs = $GLOBALS['xlanguage_handler']->cached_config; + foreach ( array_keys($langs) as $_lang ) { + $xlanguage_langs[$_lang] = $langs[$_lang]['xlanguage_code']; + } + unset($langs); + } + if ( empty($xlanguage_langs) || count($xlanguage_langs) ==0) { + return $s; + } + + // escape brackets inside of <code>...</code> + $patterns[] = "/(\<code>.*\<\/code>)/isU"; + + // escape brackets inside of <input type='...' value='...'> + $patterns[] = '/(\<input\b(?![^\>]*\btype=([\'"]?)(submit|image|reset|button))[^\>]*\>)/isU'; + + // escape brackets inside of <textarea></textarea> + $patterns[] = "/(\<textarea\b[^>]*>[^\<]*\<\/textarea>)/isU"; + + $s = preg_replace_callback( $patterns , 'xlanguage_ml_escape_bracket' , $s ) ; + + // create the pattern between language tags + $pqhtmltags = explode( ',' , preg_quote( XLANGUAGE_TAGS_RESERVED , '/' ) ) ; + $mid_pattern = '(?:(?!(' . implode( '|' , $pqhtmltags ) . ')).)*' ; + + $patterns = array(); + $replaces = array(); + /* */ + if ( isset($xlanguage_langs[$xoopsConfigLanguage]) ) { + $lang = $xlanguage_langs[$xoopsConfigLanguage]; + $patterns[] = '/(\[([^\]]*\|)?' . preg_quote($lang) . '(\|[^\]]*)?\])(' . $mid_pattern . ')(\[\/([^\]]*\|)?' . preg_quote($lang) . '(\|[^\]]*)?\])/isU'; + $replaces[] = '$4'; + } + /* */ + foreach ( array_keys($xlanguage_langs) as $_lang ) { + if ( $_lang == $xoopsConfigLanguage ) { + continue; + } + $name = $xlanguage_langs[$_lang]; + $patterns[] = '/(\[([^\]]*\|)?' . preg_quote($name) . '(\|[^\]]*)?\])(' . $mid_pattern . ')(\[\/([^\]]*\|)?' . preg_quote($name) . '(\|[^\]]*)?(\]\<br[\s]?[\/]?\>|\]))/isU'; + $replaces[] = ''; + } + if ( !empty($xoopsConfigLanguage) ) { + $s = preg_replace( '/\[[\/]?[\|]?' . preg_quote($xoopsConfigLanguage) . '[\|]?\](\<br \/\>)?/i' , '' , $s ) ; + } + if ( count($replaces)>0 ) { + $s = preg_replace( $patterns , $replaces , $s ) ; + } + + return $s ; +} + +function xlanguage_ml_escape_bracket( $matches ) +{ + global $xlanguage_langs; + $ret = $matches[1]; + if ( !empty($xlanguage_langs) ) { + $pattern = '/(\[([\/])?(' . implode('|',array_map('preg_quote', array_values($xlanguage_langs))) . ')([\|\]]))/isU'; + $ret = preg_replace($pattern, '[\\2\\3\\4', $ret); + } + return $ret; +} + + +function xlanguage_select_show($options = null) +{ + global $xoops; + if ( !constant(XLANGUAGE_THEME_ENABLE) ) { + return false; + } + + include_once XOOPS_ROOT_PATH . '/modules/xlanguage/blocks/xlanguage_blocks.php'; + if ( empty($options) ) { + $options[0] = 'images'; // display style: image, text, select + $options[1] = ' '; // delimitor + $options[2] = 5; // items per line + } + + $block = b_xlanguage_select_show($options); + $xoops->theme->addStylesheet('modules/xlanguage/css/block.css'); + $xoops->tpl->assign('block', $block ); + $xlanguage_switch_code = "<div id='xo-language' class='" . $options[0] . "'>" . $xoops->tpl->fetch('db:xlanguage_block.html') . "</div>"; + define('XLANGUAGE_SWITCH_CODE', $xlanguage_switch_code); + return true; +} +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/index.html =================================================================== Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/vars.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/vars.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/vars.php 2012-10-25 13:38:21 UTC (rev 10234) @@ -0,0 +1,120 @@ +<?php +/** + * Xlanguage extension module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 xlanguage + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +if ( !defined('XLANGUAGE_CONFIG_FILE') ) { + define('XLANGUAGE_CONFIG_FILE', 'xlanguage'); +} +if ( !defined('XLANGUAGE_LANG_TAG') ) { + define('XLANGUAGE_LANG_TAG', 'lang'); +} +if ( !defined('XLANGUAGE_TAGS_RESERVED') ) { + define('XLANGUAGE_TAGS_RESERVED', '</head>,</body>'); +} + +/* + * hardcoded scripts for language switching in theme html files + * + * To use it: + * 1 set '$xlanguage_theme_enable = true;' + * 2 config options "$options = array('images', ' ', 5); // display mode, delimitor, number per line"; Options for display mode: image - flag; text - text; dropdown - dropdown selection box with text + * 3 insert "<{$smarty.const.XLANGUAGE_SWITCH_CODE}>" into your theme html anywhere you would like to see it present + */ + +if ( !defined('XLANGUAGE_THEME_ENABLE') ) { + define('XLANGUAGE_THEME_ENABLE', 'true'); +} + +if ( !defined('XLANGUAGE_THEME_OPTIONS') ) { + define('XLANGUAGE_THEME_OPTIONS', 'bootstrap| |5' ); // display mode, delimitor, number per line +} + + +/** + * phpMyAdmin Language Loading File + */ + +/** + * All the supported languages have to be listed in the array below. + * 1. The key must be the "official" ISO 639 language code and, if required, + * the dialect code. It can also contains some informations about the + * charset (see the Russian case). + * 2. The first of the values associated to the key is used in a regular + * expression to find some keywords corresponding to the language inside two + * environment variables. + * These values contains: + * - the "official" ISO language code and, if required, the dialect code + * also ('bu' for Bulgarian, 'fr([-_][[:alpha:]]{2})?' for all French + * dialects, 'zh[-_]tw' for Chinese traditional...); + * - the '|' character (it means 'OR'); + * - the full language name. + * 3. The second values associated to the key is the name of the file to load + * without the '.php' extension. + * 4. The last values associated to the key is the language code as defined by + * the RFC1766. + * + * Beware that the sorting order (first values associated to keys by + * alphabetical reverse order in the array) is important: 'zh-tw' (chinese + * traditional) must be detected before 'zh' (chinese simplified) for + * example. + * + * When there are more than one charset for a language, we put the -utf-8 + * first. + */ +$GLOBALS['available_languages'] = array( + 'ar' => array('ar([-_][[:alpha:]]{2})?|arabic', 'arabic'), + 'bg' => array('bg|bulgarian', 'bulgarian'), + 'ca' => array('ca|catalan', 'catalan'), + 'cs' => array('cs|czech', 'czech'), + 'da' => array('da|danish', 'danish'), + 'de' => array('de([-_][[:alpha:]]{2})?|german', 'german'), + 'el' => array('el|greek', 'greek'), + 'en' => array('en([-_][[:alpha:]]{2})?|english', 'english'), + 'es' => array('es([-_][[:alpha:]]{2})?|spanish', 'spanish'), + 'et' => array('et|estonian', 'estonian'), + 'fi' => array('fi|finnish', 'finnish'), + 'fr' => array('fr([-_][[:alpha:]]{2})?|french', 'french'), + 'gl' => array('gl|galician', 'galician'), + 'he' => array('he|hebrew', 'hebrew'), + 'hr' => array('hr|croatian', 'croatian'), + 'hu' => array('hu|hungarian', 'hungarian'), + 'id' => array('id|indonesian', 'indonesian'), + 'it' => array('it|italian', 'italian'), + 'ja' => array('ja|japanese', 'japanese'), + 'ko' => array('ko|korean', 'koreano'), + 'ka' => array('ka|georgian', 'georgian'), + 'lt' => array('lt|lithuanian', 'lithuanian'), + 'lv' => array('lv|latvian', 'latvian'), + 'nl' => array('nl([-_][[:alpha:]]{2})?|dutch', 'dutch'), + 'no' => array('no|norwegian', 'norwegian'), + 'pl' => array('pl|polish', 'polish'), + 'pt-br' => array('pt[-_]br|brazilian portuguese', 'portuguesebr'), + 'pt' => array('pt([-_][[:alpha:]]{2})?|portuguese', 'portuguese'), + 'ro' => array('ro|romanian', 'romanian'), + 'ru' => array('ru|russian', 'russian'), + 'sk' => array('sk|slovak', 'slovak'), + 'sq' => array('sq|albanian', 'albanian'), + 'sr' => array('sr|serbian', 'serbian'), + 'sv' => array('sv|swedish', 'swedish'), + 'th' => array('th|thai', 'thai'), + 'tr' => array('tr|turkish', 'turkish'), + 'uk' => array('uk|ukrainian', 'ukrainian'), + 'zh-tw' => array('zh[-_]tw|chinese traditional', 'tchinese'), + 'zh-cn' => array('zh[-_]cn|chinese simplified', 'schinese'), + ); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/vars.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/index.html ===============... [truncated message content] |
From: <du...@us...> - 2012-10-26 01:43:55
|
Revision: 10235 http://sourceforge.net/p/xoops/svn/10235 Author: dugris Date: 2012-10-26 01:43:51 +0000 (Fri, 26 Oct 2012) Log Message: ----------- update $modversion['module_website_url'] Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-10-25 13:38:21 UTC (rev 10234) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-10-26 01:43:51 UTC (rev 10235) @@ -32,7 +32,7 @@ //about $modversion['release_date'] = '2012/10/01'; -$modversion['module_website_url'] = 'labs.xoofoo.org/modules/news/'; +$modversion['module_website_url'] = 'dugris.xoofoo.org'; $modversion['module_website_name'] = 'XooFoo.org - Laurent JEN'; $modversion['module_status'] = 'alpha'; $modversion['min_php'] = '5.2'; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php 2012-10-25 13:38:21 UTC (rev 10234) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php 2012-10-26 01:43:51 UTC (rev 10235) @@ -32,7 +32,7 @@ //about $modversion['release_date'] = '2012/10/01'; -$modversion['module_website_url'] = 'labs.xoofoo.org/modules/news/'; +$modversion['module_website_url'] = 'dugris.xoofoo.org'; $modversion['module_website_name'] = 'XooFoo.org - Laurent JEN'; $modversion['module_status'] = 'alpha'; $modversion['min_php'] = '5.2'; |
From: <ma...@us...> - 2012-10-26 17:37:22
|
Revision: 10236 http://sourceforge.net/p/xoops/svn/10236 Author: mageg Date: 2012-10-26 17:37:20 +0000 (Fri, 26 Oct 2012) Log Message: ----------- change redirect_header() by $xoops->redirect() in xcaptcha and xlanguage Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php 2012-10-26 01:43:51 UTC (rev 10235) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php 2012-10-26 17:37:20 UTC (rev 10236) @@ -22,17 +22,17 @@ switch ( $op ) { case 'save': if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + $xoops->redirect('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); } if ( $type == 'config' ) { $config = $xcaptcha_handler->VerifyData(); $xcaptcha_handler->writeConfig('captcha.config', $config ); - redirect_header('index.php?type=config', 5, _AM_XCAPTCHA_SAVED); + $xoops->redirect('index.php?type=config', 5, _AM_XCAPTCHA_SAVED); } else { if ($xcaptcha_handler->loadPluginHandler( $type )) { $config = $xcaptcha_handler->Pluginhandler->VerifyData(); $xcaptcha_handler->writeConfig('captcha.config.' . $type, $config ); - redirect_header('index.php?type=' . $type, 5, _AM_XCAPTCHA_SAVED); + $xoops->redirect('index.php?type=' . $type, 5, _AM_XCAPTCHA_SAVED); } } break; @@ -55,7 +55,7 @@ $admin_page->addInfoBox( $title ); $admin_page->addInfoBoxLine($xcaptcha_handler->Pluginhandler->getForm()); } else { - redirect_header('index.php', 5, _AM_XCAPTCHA_ERROR); + $xoops->redirect('index.php', 5, _AM_XCAPTCHA_ERROR); } } $admin_page->renderIndex(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php 2012-10-26 01:43:51 UTC (rev 10235) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php 2012-10-26 17:37:20 UTC (rev 10236) @@ -25,7 +25,7 @@ case 'save': if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + $xoops->redirect('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); } $xlanguage_id = $system->CleanVars($_POST, 'xlanguage_id', 0, 'int'); @@ -38,7 +38,7 @@ if ($xlanguage_handler->insert($lang)) { $xlanguage_handler->createConfig(); - redirect_header('index.php', 5, _AM_XLANGUAGE_SAVED); + $xoops->redirect('index.php', 5, _AM_XLANGUAGE_SAVED); } break; @@ -55,10 +55,10 @@ $admin_page->addInfoBox(_MI_XLANGUAGE_MODIFY); $admin_page->addInfoBoxLine($lang->getForm()); } else { - redirect_header('index.php', 5); + $xoops->redirect('index.php', 5); } } else { - redirect_header('index.php', 5); + $xoops->redirect('index.php', 5); } break; @@ -69,30 +69,30 @@ $delete = $system->CleanVars( $_POST, 'ok', 0, 'int' ); if ($delete == 1) { if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + $xoops->redirect('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); } $xlanguage_handler->delete($lang); $xlanguage_handler->createConfig(); - redirect_header('index.php', 5, _AM_XLANGUAGE_DELETED); + $xoops->redirect('index.php', 5, _AM_XLANGUAGE_DELETED); } else { ob_start(); - $xoops->confirm(array('ok' => 1, 'xlanguage_id' => $xlanguage_id, 'op' => 'del'), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM . "<br /><b><span style='color : Red'> %s </span><br /><br />", $lang->getVar('xlanguage_name'))); + $xoops->confirm(array('ok' => 1, 'xlanguage_id' => $xlanguage_id, 'op' => 'del'), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM . "<br /><b><span style='color : Red'> %s </span></b><br /><br />", $lang->getVar('xlanguage_name'))); $confirm = '<div class="confirm">' . ob_get_contents() . '</div>'; ob_end_clean(); $admin_page->addInfoBox(_MI_XLANGUAGE_DELETE); $admin_page->addInfoBoxLine($confirm); } } else { - redirect_header('index.php', 5); + $xoops->redirect('index.php', 5); } } else { - redirect_header('index.php', 5); + $xoops->redirect('index.php', 5); } break; case 'createconfig': $xlanguage_handler->createConfig(); - redirect_header( 'index.php', 5, _AM_XLANGUAGE_CREATED ); + $xoops->redirect( 'index.php', 5, _AM_XLANGUAGE_CREATED ); break; case 'default': |
From: <ma...@us...> - 2012-11-25 20:56:36
|
Revision: 10273 http://sourceforge.net/p/xoops/svn/10273 Author: mageg Date: 2012-11-25 20:56:32 +0000 (Sun, 25 Nov 2012) Log Message: ----------- first version of the module content (page) Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/content.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/permissions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/related.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/page_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/form/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/form/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/form/page_content.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/form/page_related.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/page.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/page_content.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/page_rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/page_related.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/css/rating.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/css/styles.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/install.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/lang_diff.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/licence.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/blank.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/comments.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/next.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/previous.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/rating/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/rating/delete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/images/rating/star.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/js/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/js/MetaData.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/js/jquery.rating.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/js/rating.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/js/rating.pack.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/admin/page_admin_content.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/admin/page_admin_permissions.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/admin/page_admin_related.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/page_blocks_hits.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/page_blocks_id.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/page_blocks_random.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/page_blocks_rating.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/blocks/page_blocks_recent.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/page_index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/page_navigation.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/templates/page_viewpage.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/viewpage.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/about.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,27 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +include dirname(__FILE__) . '/header.php'; +$xoops->header(); +$aboutAdmin = new XoopsModuleAdmin(); +$aboutAdmin->renderNavigation('about.php'); +$aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', true); +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/about.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/content.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/content.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/content.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,355 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +include dirname(__FILE__) . '/header.php'; +// Get main instance +$system = System::getInstance(); +// Check users rights +if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { + exit(_NOPERM); +} +// Parameters +$nb_content = $xoops->getModuleConfig('page_adminpager'); +// Get Action type +$op = $system->cleanVars($_REQUEST, 'op', 'default', 'string'); +// Get handler +$content_Handler = $xoops->getModuleHandler('page_content'); +$related_Handler = $xoops->getModuleHandler('page_related'); +$gperm_handler = $xoops->getHandler('groupperm'); +// Call header +$xoops->header('page_admin_content.html'); +// Get start pager +$start = $system->cleanVars($_REQUEST, 'start', 0, 'int'); + +$admin_page = new XoopsModuleAdmin(); +$admin_page->renderNavigation('content.php'); + +switch ($op) { + + case 'list': + default: + // Add Scripts + $xoops->theme->addScript('media/xoops/xoops.js'); + $admin_page->addTips(_AM_PAGE_CONTENT_TIPS); + $admin_page->addItemButton(_AM_PAGE_CONTENT_ADD, 'content.php?op=new', 'add'); + $admin_page->renderTips(); + $admin_page->renderButton(); + + // Criteria + $criteria = new CriteriaCompo(); + $criteria->setSort('content_weight ASC, content_title'); + $criteria->setOrder('ASC'); + $criteria->setStart($start); + $criteria->setLimit($nb_content); + $content_count = $content_Handler->getCount($criteria); + $content_arr = $content_Handler->getAll($criteria); + // Assign Template variables + $xoops->tpl->assign('content_count', $content_count); + if ($content_count > 0) { + foreach (array_keys($content_arr) as $i) { + $content_id = $content_arr[$i]->getVar('content_id'); + $content['id'] = $content_id; + $content['title'] = $content_arr[$i]->getVar('content_title'); + $content['maindisplay'] = $content_arr[$i]->getVar('content_maindisplay'); + $content['weight'] = $content_arr[$i]->getVar('content_weight'); + $content['status'] = $content_arr[$i]->getVar('content_status'); + $content['hits'] = $content_arr[$i]->getVar('content_hits'); + $content['rating'] = number_format($content_arr[$i]->getVar('content_rating'), 1); + $xoops->tpl->append_by_ref('content', $content); + unset($content); + } + // Display Page Navigation + if ($content_count > $nb_content) { + $nav = new XoopsPageNav($content_count, $nb_content, $start, 'start'); + $xoops->tpl->assign('nav_menu', $nav->renderNav(4)); + } + } else { + $xoops->tpl->assign('error_message', _AM_PAGE_CONTENT_ERROR_NOCONTENT); + } + break; + + case 'new': + $admin_page->addItemButton(_AM_PAGE_CONTENT_LIST, 'content.php', 'application-view-detail'); + $admin_page->renderButton(); + $obj = $content_Handler->create(); + $form = $xoops->getModuleForm($obj, 'page_content'); + $form->render(); + $xoops->tpl->assign('form', true); + break; + + case 'edit': + $admin_page->addItemButton(_AM_PAGE_CONTENT_LIST, 'content.php', 'application-view-detail'); + $admin_page->addItemButton(_AM_PAGE_CONTENT_ADD, 'content.php?op=new', 'add'); + $admin_page->renderButton(); + // Create form + $obj = $content_Handler->get($system->cleanVars($_REQUEST, 'id', 0, 'int')); + $form = $xoops->getModuleForm($obj, 'page_content'); + $form->render(); + $xoops->tpl->assign('form', true); + break; + + case 'save': + if (!$xoops->security->check()) { + $xoops->redirect("content.php", 3, implode(",", $xoops->security->getErrors())); + } + $content_id = $system->cleanVars($_REQUEST, 'content_id', 0, 'int'); + if ($content_id > 0) { + $obj = $content_Handler->get($content_id); + if ($_POST["date_update"] == 'Y'){ + $obj->setVar("content_create", strtotime($_POST["content_create"])); + } + } else { + $obj = $content_Handler->create(); + $obj->setVar("content_create", time()); + } + $error_message = ''; + $error = false; + + $obj->setVar("content_title", $_POST["content_title"]); + $obj->setVar("content_shorttext", $_POST["content_shorttext"]); + $obj->setVar("content_text", $_POST["content_text"]); + $obj->setVar("content_mkeyword", $_POST["content_mkeyword"]); + $obj->setVar("content_mdescription", $_POST["content_mdescription"]); + $obj->setVar("content_author", $_POST["content_author"]); + $obj->setVar("content_status", $_POST["content_status"]); + $obj->setVar("content_maindisplay", $_POST["content_maindisplay"]); + $obj->setVar("content_dopdf", 0); + $obj->setVar("content_doprint", 0); + $obj->setVar("content_domail", 0); + $obj->setVar("content_doauthor", 0); + $obj->setVar("content_dodate", 0); + $obj->setVar("content_dohits", 0); + $obj->setVar("content_dorating", 0); + $obj->setVar("content_doncoms", 0); + $obj->setVar("content_docoms", 0); + $obj->setVar("content_dosocial", 0); + $obj->setVar("content_dotitle", 0); + $obj->setVar("content_donotifications", 0); + if (isset($_POST["content_option"])) { + $content_option = $_POST["content_option"]; + foreach (array_keys($content_option) as $i) { + switch ($content_option[$i]) { + case 'pdf': + $obj->setVar("content_dopdf", 1); + break; + case 'print': + $obj->setVar("content_doprint", 1); + break; + case 'mail': + $obj->setVar("content_domail", 1); + break; + case 'author': + $obj->setVar("content_doauthor", 1); + break; + case 'date': + $obj->setVar("content_dodate", 1); + break; + case 'hits': + $obj->setVar("content_dohits", 1); + break; + case 'rating': + $obj->setVar("content_dorating", 1); + break; + case 'coms': + $obj->setVar("content_docoms", 1); + break; + case 'ncoms': + $obj->setVar("content_doncoms", 1); + break; + case 'social': + $obj->setVar("content_dosocial", 1); + break; + case 'title': + $obj->setVar("content_dotitle", 1); + break; + case 'notifications': + $obj->setVar("content_donotifications", 1); + break; + } + } + } + if (preg_match('/^\d+$/', $_POST["content_weight"]) == false){ + $error = true; + $error_message .= _AM_PAGE_CATEGORY_ERROR_WEIGHT . '<br />'; + $obj->setVar("content_weight", ''); + } else { + $obj->setVar("content_weight", $_POST["content_weight"]); + } + if ($error == true){ + $xoops->tpl->assign('error_message', $error_message); + } else { + if ($content_Handler->insert($obj)) { + $newcontent_id = $obj->get_new_id(); + $perm_id = isset($_REQUEST['content_id']) ? $content_id : $newcontent_id; + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $perm_id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'),'=')); + $criteria->add(new Criteria('gperm_name', 'page_view_item', '=')); + $gperm_handler->deleteAll($criteria); + //permissions view + if(isset($_POST['groups_view_item'])) { + foreach($_POST['groups_view_item'] as $onegroup_id) { + $gperm_handler->addRight('page_view_item', $perm_id, $onegroup_id, $xoopsModule->getVar('mid')); + } + } + $xoops->redirect("content.php", 2, _AM_PAGE_DBUPDATED); + } + $xoops->error($obj->getHtmlErrors()); + } + $form = $xoops->getModuleForm($obj, 'page_content'); + $form->render(); + $xoops->tpl->assign('form', true); + break; + + case 'delete': + $admin_page->addItemButton(_AM_PAGE_CONTENT_LIST, 'content.php', 'application-view-detail'); + $admin_page->addItemButton(_AM_PAGE_CONTENT_ADD, 'content.php?op=new', 'add'); + $admin_page->renderButton(); + // Define Stylesheet + $xoops->theme->addStylesheet('modules/system/css/admin.css'); + $content_id = $system->cleanVars($_REQUEST, 'id', 0, 'int'); + $obj = $content_Handler->get($content_id); + if (isset($_POST["ok"]) && $_POST["ok"] == 1) { + if (!$xoops->security->check()) { + $xoops->redirect("content.php", 3, implode(",", $xoops->security->getErrors())); + } + // Deleting the content + if ($content_Handler->delete($obj)) { + // deleting permissions + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $content_id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'),'=')); + $criteria->add(new Criteria('gperm_name', 'page_view_item', '=')); + $gperm_handler->deleteAll($criteria); + // deleting secondary + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', 0, '!=')); + $criteria->add(new Criteria('related_contentid', $content_id)); + $related_Handler->deleteAll($criteria); + // deleting main and secondary + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', 0)); + $criteria->add(new Criteria('related_contentid', $content_id)); + $related_arr = $related_Handler->getAll($criteria); + if (count($related_arr) > 0) { + foreach (array_keys($related_arr) as $i) { + $obj_related = $related_Handler->get($related_arr[$i]->getVar("related_id")); + $related_Handler->delete($obj_related); + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', $related_arr[$i]->getVar("related_id"))); + $related_Handler->deleteAll($criteria); + } + } + $xoops->redirect("content.php", 2, _AM_PAGE_DBUPDATED); + } else { + $xoops->error($obj->getHtmlErrors()); + } + } else { + // deleting main and secondary + $related_name = ''; + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', 0)); + $criteria->add(new Criteria('related_contentid', $content_id)); + $related_arr = $related_Handler->getAll($criteria); + if (count($related_arr) > 0) { + $related_name .= '<br />' . _AM_PAGE_RELATED_DELMAIN . '<br />'; + foreach (array_keys($related_arr) as $i) { + $related_name .= '<span style="color : Red">'; + $related_name .= $related_arr[$i]->getVar("related_name"); + $related_name .= '</span>'; + $related_name .= '<br />'; + } + } + $xoops->confirm(array("ok" => 1, "id" => $content_id, "op" => "delete"), 'content.php', sprintf(_AM_PAGE_SUREDEL, $obj->getvar('content_title')) . '<br />' . $related_name); + } + break; + + case 'update_status': + $content_id = $system->cleanVars($_POST, 'content_id', 0, 'int'); + if ($content_id > 0) { + $obj = $content_Handler->get($content_id); + $old = $obj->getVar('content_status'); + $obj->setVar('content_status', !$old); + if ($content_Handler->insert($obj)) { + exit; + } + echo $obj->getHtmlErrors(); + } + break; + + case 'update_display': + $content_id = $system->cleanVars($_POST, 'content_id', 0, 'int'); + if ($content_id > 0) { + $obj = $content_Handler->get($content_id); + $old = $obj->getVar('content_maindisplay'); + $obj->setVar('content_maindisplay', !$old); + if ($content_Handler->insert($obj)) { + exit; + } + echo $obj->getHtmlErrors(); + } + break; + + case 'clone': + $content_id = $system->cleanVars($_REQUEST, 'id', 0, 'int'); + $content = $content_Handler->get($content_id); + $obj = $content_Handler->create(); + $obj->setVar("content_title", _AM_PAGE_CONTENT_COPY . $content->getVar("content_title")); + $obj->setVar("content_weight", 0); + $obj->setVar("content_create", time()); + $obj->setVar("content_shorttext", $content->getVar("content_shorttext")); + $obj->setVar("content_text", $content->getVar("content_text")); + $obj->setVar("content_mkeyword", $content->getVar("content_mkeyword")); + $obj->setVar("content_mdescription", $content->getVar("content_mdescription")); + $obj->setVar("content_author", $content->getVar("content_author")); + $obj->setVar("content_status", $content->getVar("content_status")); + $obj->setVar("content_maindisplay", $content->getVar("content_maindisplay")); + $obj->setVar("content_dopdf", $content->getVar("content_dopdf")); + $obj->setVar("content_doprint", $content->getVar("content_doprint")); + $obj->setVar("content_domail", $content->getVar("content_domail")); + $obj->setVar("content_doauthor", $content->getVar("content_doauthor")); + $obj->setVar("content_dodate", $content->getVar("content_dodate")); + $obj->setVar("content_dohits", $content->getVar("content_dohits")); + $obj->setVar("content_dorating", $content->getVar("content_dorating")); + $obj->setVar("content_docoms", $content->getVar("content_docoms")); + $obj->setVar("content_doncoms", $content->getVar("content_doncoms")); + $obj->setVar("content_dosocial", $content->getVar("content_dosocial")); + $obj->setVar("content_dotitle", $content->getVar("content_dotitle")); + $obj->setVar("content_donotifications", $content->getVar("content_donotifications")); + if ($content_Handler->insert($obj)) { + $newcontent_id = $obj->get_new_id(); + $gperm_handler = $xoops->getHandler('groupperm'); + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $content_id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'),'=')); + $criteria->add(new Criteria('gperm_name', 'page_view_item', '=')); + $gperm_arr = $gperm_handler->getall($criteria); + //permissions view + foreach (array_keys($gperm_arr) as $i) { + $gperm_handler->addRight('page_view_item', $newcontent_id, $gperm_arr[$i]->getVar("gperm_groupid"), $xoopsModule->getVar('mid')); + } + $xoops->redirect("content.php", 2, _AM_PAGE_DBUPDATED); + } + $xoops->error($obj->getHtmlErrors()); + + break; +} +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/content.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/header.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,25 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; + +$xoops = Xoops::getInstance(); +XoopsLoad::load('system', 'system'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/header.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.html 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,58 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +include dirname(__FILE__) . '/header.php'; +// heaser +$xoops->header(); +// Get page handler +$content_Handler = $xoops->getModuleHandler('page_content'); + +// content not display +$criteria = new CriteriaCompo(); +$criteria->add(new Criteria('content_status', 0)); +$content_notdisplay = $content_Handler->getCount($criteria); +// content display +$criteria = new CriteriaCompo(); +$criteria->add(new Criteria('content_status', 0, '!=')); +$content_display = $content_Handler->getCount($criteria); + +// folder path +//$folder_path = XOOPS_ROOT_PATH . '/uploads/page'; + +$admin_page = new XoopsModuleAdmin(); +$admin_page->renderNavigation('index.php'); + +// content +$admin_page->addInfoBox(_MI_PAGE_CONTENT, 'content'); +$admin_page->addInfoBoxLine(sprintf(_AM_PAGE_INDEX_TOTALCONTENT, $content_notdisplay + $content_display), 'content'); +$admin_page->addInfoBoxLine(sprintf(_AM_PAGE_INDEX_TOTALDISPLAY, '<span class="green">' . $content_display . '</span>'), 'content'); +$admin_page->addInfoBoxLine(sprintf(_AM_PAGE_INDEX_TOTALNOTDISPLAY, '<span class="red">' . $content_notdisplay . '</span>'), 'content'); + +// configs +/*$admin_page->addConfigBoxLine($folder_path, 'folder'); +$admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod'); +$admin_page->addConfigBoxLine($folder_path . '/images', 'folder'); +$admin_page->addConfigBoxLine(array($folder_path . '/images', '777'), 'chmod'); +$admin_page->addConfigBoxLine($folder_path . '/images/category', 'folder'); +$admin_page->addConfigBoxLine(array($folder_path . '/images/category', '777'), 'chmod');*/ + +$admin_page->renderIndex(); +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/menu.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,43 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]['title'] = _MI_PAGE_INDEX; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['icon'] = 'home.png'; +$i++; +$adminmenu[$i]['title'] = _MI_PAGE_CONTENT; +$adminmenu[$i]['link'] = 'admin/content.php'; +$adminmenu[$i]['icon'] = 'content.png'; +$i++; +$adminmenu[$i]['title'] = _MI_PAGE_RELATED; +$adminmenu[$i]['link'] = 'admin/related.php'; +$adminmenu[$i]['icon'] = 'groupmod.png'; +$i++; +$adminmenu[$i]['title'] = _MI_PAGE_PERMISSIONS; +$adminmenu[$i]['link'] = 'admin/permissions.php'; +$adminmenu[$i]['icon'] = 'permissions.png'; +$i++; +$adminmenu[$i]['title'] = _MI_PAGE_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = 'about.png'; \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/menu.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/permissions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/permissions.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/permissions.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,141 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +include dirname(__FILE__) . '/header.php'; +// Get main instance +$system = System::getInstance(); +// Check users rights +if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { + exit(_NOPERM); +} +// Parameters +$nb_content = $xoops->getModuleConfig('page_adminpager'); +// Get Action type +$op = $system->cleanVars($_REQUEST, 'op', 'global', 'string'); +// Get handler +$content_Handler = $xoops->getModuleHandler('page_content'); +$gperm_handler = $xoops->getHandler('groupperm'); +// Call header +$xoops->header('page_admin_permissions.html'); + +// Get start pager +$start = $system->cleanVars($_REQUEST, 'start', 0, 'int'); + +$admin_page = new XoopsModuleAdmin(); +$admin_page->renderNavigation('permissions.php'); + +$opform = new XoopsSimpleForm('', 'opform', 'permissions.php', 'get'); +$op_select = new XoopsFormSelect("", 'op', $op); +$op_select->setExtra('onchange="document.forms.opform.submit()"'); +$op_select->addOption('global', _AM_PAGE_PERMISSIONS_GLOBAL); +$op_select->addOption('view', _AM_PAGE_PERMISSIONS_VIEW); +$opform->addElement($op_select); +$xoops->tpl->assign('form', $opform->render()); + +$module_id = $xoops->module->getVar('mid'); + +switch ($op) { + + case 'global': + default: + $global_perm_array = array('4' => _AM_PAGE_PERMISSIONS_GLOBAL_RATE); + $form = new XoopsGroupPermForm(_AM_PAGE_PERMISSIONS_GLOBAL, $module_id, "page_global", _AM_PAGE_PERMISSIONS_GLOBAL_DSC, 'admin/permissions.php', true); + foreach( $global_perm_array as $perm_id => $perm_name ) { + $form->addItem($perm_id , $perm_name) ; + } + echo $form->render(); + break; + + case 'view': + // View permission + + // Add Scripts + $xoops->theme->addScript('media/xoops/xoops.js'); + // Criteria + $criteria = new CriteriaCompo(); + $criteria->setSort('content_weight ASC, content_title'); + $criteria->setOrder('ASC'); + $criteria->setStart($start); + $criteria->setLimit($nb_content); + $content_count = $content_Handler->getCount($criteria); + $content_arr = $content_Handler->getAll($criteria); + // Assign Template variables + $xoops->tpl->assign('content_count', $content_count); + if ($content_count > 0) { + $member_handler = $xoops->getHandler('member'); + $group_list = $member_handler->getGroupList(); + + $module_id = $xoops->isModule() ? $xoops->module->getVar('mid', 'n') : 1; + + $xoops->tpl->assign('groups', $group_list); + foreach (array_keys($content_arr) as $i) { + $content_id = $content_arr[$i]->getVar("content_id"); + $perms = ''; + $groups_ids_view = $gperm_handler->getGroupIds('page_view_item', $content_id, $module_id); + $groups_ids_view = array_values($groups_ids_view); + foreach (array_keys($group_list) as $j) { + $perms .= '<img id="loading_display' . $content_id . '_' . $j .'" src="' . $xoops->url('media/xoops/images/spinner.gif') . '" style="display:none;" alt="' . _AM_SYSTEM_LOADING . '" />'; + if (in_array($j, $groups_ids_view)) { + $perms .= "<img class=\"cursorpointer\" id=\"display" . $content_id . "_" . $j . "\" onclick=\"Xoops.changeStatus( 'permissions.php', { op: 'update_view', content_id: " . $content_id . ", group: " . $j . ", status: 'no' }, 'display" . $content_id . "_" . $j ."', 'permissions.php' )\" src=\"" . $xoops->url('modules/system/images/icons/default/success.png') . "\" alt=\"" . _AM_PAGE_OFF . "\" title=\"" . _AM_PAGE_OFF . "\" />"; + } else { + $perms .= "<img class=\"cursorpointer\" id=\"display" . $content_id . "_" . $j . "\" onclick=\"Xoops.changeStatus( 'permissions.php', { op: 'update_view', content_id: " . $content_id . ", group: " . $j . ", status: 'yes' }, 'display" . $content_id . "_" . $j ."', 'permissions.php' )\" src=\"" . $xoops->url('modules/system/images/icons/default/cancel.png') . "\" alt=\"" . _AM_PAGE_ON . "\" title=\"" . _AM_PAGE_ON . "\" />"; + + } + $perms .= $group_list[$j] . '<br />'; + } + $content['id'] = $content_id; + $content['title'] = $content_arr[$i]->getVar("content_title"); + $content['permissions'] = $perms; + $xoops->tpl->append_by_ref('content', $content); + unset($content); + } + // Display Page Navigation + if ($content_count > $nb_content) { + $nav = new XoopsPageNav($content_count, $nb_content, $start, 'start', 'op=view'); + $xoops->tpl->assign('nav_menu', $nav->renderNav(4)); + } + } else { + $xoops->tpl->assign('error_message', _AM_PAGE_CONTENT_ERROR_NOCONTENT); + } + break; + + case 'update_view': + $content_id = $system->cleanVars($_REQUEST, 'content_id', 0, 'int'); + $group = $system->cleanVars($_REQUEST, 'group', 0, 'int'); + $status = $system->cleanVars($_REQUEST, 'status', '', 'string'); + if ($content_id > 0 && $group > 0 && $status != '') { + if ($status == 'no') { + // deleting permissions + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_groupid', $group, '=')); + $criteria->add(new Criteria('gperm_itemid', $content_id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'),'=')); + $criteria->add(new Criteria('gperm_name', 'page_view_item', '=')); + $gperm_handler->deleteAll($criteria); + } else { + // add permissions + $gperm_handler->addRight('page_view_item', $content_id, $group, $xoopsModule->getVar('mid')); + } + } + break; +} + +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/permissions.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/related.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/related.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/related.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,255 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +include dirname(__FILE__) . '/header.php'; +// Get main instance +$system = System::getInstance(); +// Check users rights +if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { + exit(_NOPERM); +} +// Parameters +$nb_related = $xoops->getModuleConfig('page_adminpager'); +// Get Action type +$op = $system->cleanVars($_REQUEST, 'op', 'default', 'string'); +// Get handler +$related_Handler = $xoops->getModuleHandler('page_related'); +$content_Handler = $xoops->getModuleHandler('page_content'); +// Call header +$xoops->header('page_admin_related.html'); +// Get start pager +$start = $system->cleanVars($_REQUEST, 'start', 0, 'int'); + +$admin_page = new XoopsModuleAdmin(); +$admin_page->renderNavigation('related.php'); + +switch ($op) { + + case 'list': + default: + // Define Stylesheet + $xoops->theme->addStylesheet('media/jquery/ui/' . $xoops->getModuleConfig('jquery_theme', 'system') . '/ui.all.css'); + // Define scripts + $xoops->theme->addScript('media/xoops/xoops.js'); + $xoops->theme->addScript($xoops->url('/media/jquery/ui/jquery.ui.js')); + $xoops->theme->addScript('modules/system/js/admin.js'); + + $admin_page->addTips(_AM_PAGE_RELATED_TIPS); + $admin_page->addItemButton(_AM_PAGE_RELATED_ADD, 'related.php?op=new', 'add'); + $admin_page->renderTips(); + $admin_page->renderButton(); + + //joint + $criteria = new CriteriaCompo(); + $criteria->setSort('related_name'); + $criteria->setOrder('ASC'); + $criteria->setStart($start); + $criteria->setLimit($nb_related); + $criteria->add(new Criteria('related_name', '/', '!=')); + $related_Handler->table_link = $related_Handler->db->prefix('page_content'); + $related_Handler->field_link = 'content_id'; // champ de la table en jointure + $related_Handler->field_object = 'related_contentid'; // champ de la table courante + $related_arr = $related_Handler->getByLink($criteria); + $related_count = $related_Handler->getCount($criteria); + // Assign Template variables + $xoops->tpl->assign('related_count', $related_count); + if ($related_count > 0) { + foreach (array_keys($related_arr) as $i) { + $related_id = $related_arr[$i]->getVar("related_id"); + $related['id'] = $related_id; + $related['name'] = $related_arr[$i]->getVar("related_name"); + $related['main_name'] = $related_arr[$i]->getVar("content_title"); + $related['main_contentid'] = $related_arr[$i]->getVar("related_contentid"); + $related['domenu'] = $related_arr[$i]->getVar("related_domenu"); + switch ($related_arr[$i]->getVar("related_navigation")) { + case 1: + default: + $related['navigation'] = _AM_PAGE_RELATED_NAVIGATION_OPTION1; + break; + case 2: + $related['navigation'] = _AM_PAGE_RELATED_NAVIGATION_OPTION2; + break; + case 3: + $related['navigation'] = _AM_PAGE_RELATED_NAVIGATION_OPTION3; + break; + case 4: + $related['navigation'] = _AM_PAGE_RELATED_NAVIGATION_OPTION4; + break; + case 5: + $related['navigation'] = _AM_PAGE_RELATED_NAVIGATION_OPTION5; + break; + } + //joint + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', $related_arr[$i]->getVar("related_contentid"))); + $criteria->setSort('related_weight'); + $criteria->setOrder('ASC'); + $related_Handler->table_link = $related_Handler->db->prefix('page_content'); + $related_Handler->field_link = 'content_id'; // champ de la table en jointure + $related_Handler->field_object = 'related_contentid'; // champ de la table courante + $secondary_arr = $related_Handler->getByLink($criteria); + $related['secondary'] = ''; + if (count($secondary_arr) != 0) { + + $related['secondary'] .= '<ul>'; + foreach (array_keys($secondary_arr) as $j) { + if ($secondary_arr[$j]->getVar("related_name") == '/') { + $related['secondary'] .= '<li><a href="content.php?op=edit&id=' . $secondary_arr[$j]->getVar("related_contentid") . '" title="' . _AM_PAGE_EDIT . '">' . $secondary_arr[$j]->getVar("content_title") . '</a></li>'; + } + } + $related['secondary'] .= '</ul>'; + } + $xoops->tpl->append_by_ref('related', $related); + $xoops->tpl->append_by_ref('popup_related', $related); + unset($related); + } + // Display Page Navigation + if ($related_count > $nb_related) { + $nav = new XoopsPageNav($related_count, $nb_related, $start, 'start'); + $xoops->tpl->assign('nav_menu', $nav->renderNav(4)); + } + } else { + $xoops->tpl->assign('error_message', _AM_PAGE_RELATED_ERROR_NORELATED); + } + break; + + case 'new': + if ($related_Handler->getCount() == $content_Handler->getCount()) { + $xoops->tpl->assign('error_message', _AM_PAGE_RELATED_ERROR_NOFREECONTENT); + } else { + $admin_page->addItemButton(_AM_PAGE_CONTENT_LIST, 'related.php', 'application-view-detail'); + $admin_page->renderButton(); + $obj = $related_Handler->create(); + $form = $xoops->getModuleForm($obj, 'page_related'); + $form->render(); + $xoops->tpl->assign('form', true); + } + break; + + case 'edit': + $admin_page->addItemButton(_AM_PAGE_CONTENT_LIST, 'related.php', 'application-view-detail'); + $admin_page->addItemButton(_AM_PAGE_CONTENT_ADD, 'related.php?op=new', 'add'); + $admin_page->renderButton(); + // Create form + $obj = $related_Handler->get($system->cleanVars($_REQUEST, 'id', 0, 'int')); + $form = $xoops->getModuleForm($obj, 'page_related'); + $form->render(); + $xoops->tpl->assign('form', true); + break; + + case 'save': + if (!$xoops->security->check()) { + $xoops->redirect("related.php", 3, implode(",", $xoops->security->getErrors())); + } + $related_id = $system->cleanVars($_REQUEST, 'related_id', 0, 'int'); + if ($related_id > 0) { + $obj = $related_Handler->get($related_id); + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', $obj->getVar('related_group'))); + $criteria->add(new Criteria('related_name', '/')); + $related_Handler->deleteAll($criteria); + } else { + $obj = $related_Handler->create(); + } + //main + $obj->setVar("related_name", $_POST["related_name"]); + $obj->setVar("related_group", $_POST["related_main"]); + $obj->setVar("related_contentid", $_POST["related_main"]); + $obj->setVar("related_domenu", $_POST["related_domenu"]); + $obj->setVar("related_navigation", $_POST["related_navigation"]); + if ($related_Handler->insert($obj)) { + //secondary + $secondary_max = 10; + for ($i = 1; $i <= $secondary_max; $i++) { + if ($_POST["related_secondary" . $i] != 0 && $_POST["related_secondary" . $i] != $_POST["related_main"]) { + $obj = $related_Handler->create(); + $obj->setVar("related_name", "/"); + $obj->setVar("related_group", $_POST["related_main"]); + $obj->setVar("related_contentid", $_POST["related_secondary" . $i]); + $obj->setVar("related_domenu", $_POST["related_domenu"]); + $obj->setVar("related_navigation", $_POST["related_navigation"]); + $obj->setVar("related_weight", $i); + $related_Handler->insert($obj); + unset($obj); + } + } + $xoops->redirect("related.php", 2, _AM_PAGE_DBUPDATED); + } else { + $xoops->error($obj->getHtmlErrors()); + } + $form = $xoops->getModuleForm($obj, 'page_related'); + $form->render(); + $xoops->tpl->assign('form', true); + break; + + case 'delete': + $admin_page->addItemButton(_AM_PAGE_CONTENT_LIST, 'related.php', 'application-view-detail'); + $admin_page->addItemButton(_AM_PAGE_CONTENT_ADD, 'related.php?op=new', 'add'); + $admin_page->renderButton(); + // Define Stylesheet + $xoops->theme->addStylesheet('modules/system/css/admin.css'); + $related_id = $system->cleanVars($_REQUEST, 'id', 0, 'int'); + $obj = $related_Handler->get($related_id); + if (isset($_POST["ok"]) && $_POST["ok"] == 1) { + if (!$xoops->security->check()) { + $xoops->redirect("related.php", 3, implode(",", $xoops->security->getErrors())); + } + // Deleting the related + if ($related_Handler->delete($obj)) { + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('related_group', $related_id)); + $related_Handler->deleteAll($criteria); + $xoops->redirect("related.php", 2, _AM_PAGE_DBUPDATED); + } else { + $xoops->error($obj->getHtmlErrors()); + } + } else { + $xoops->confirm(array("ok" => 1, "id" => $related_id, "op" => "delete"), 'related.php', sprintf(_AM_PAGE_SUREDEL, $obj->getvar('related_name') . '<br />')); + } + break; + + case 'update_status': + $related_id = $system->cleanVars($_POST, 'related_id', 0, 'int'); + if ($related_id > 0) { + $obj = $related_Handler->get($related_id); + $old = $obj->getVar('related_domenu'); + $obj->setVar('related_domenu', !$old); + if ($related_Handler->insert($obj)) { + exit; + } + echo $obj->getHtmlErrors(); + } + break; + + case 'view': + $related_id = $system->cleanVars($_POST, 'related_id', 0, 'int'); + if ($related_id > 0) { + $obj = $related_Handler->get($related_id); + $old = $obj->getVar('related_domenu'); + $obj->setVar('related_domenu', !$old); + if ($related_Handler->insert($obj)) { + exit; + } + echo $obj->getHtmlErrors(); + } + break; +} +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/related.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/index.html 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/page_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/page_blocks.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/page_blocks.php 2012-11-25 20:56:32 UTC (rev 10273) @@ -0,0 +1,92 @@ +<?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. +*/ + +/** + * page module + * + * @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 page + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ +function page_blocks_show($options) { + $xoops = Xoops::getInstance(); + // Get handler + $content_Handler = $xoops->getModuleHandler('page_content', 'page'); + $xoops->loadLanguage('main', 'page'); + $content = array(); + $xoops->theme->addStylesheet( $xoops->url('/modules/page/css/styles.css'), null ); + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('content_status', 0, '!=')); + + switch ($options[0]) { + case 'random': + $criteria->setSort('RAND()'); + break; + case 'id': + $criteria->setSort('RAND()'); + break; + case 'rating': + $criteria->setSort('content_rating'); + $criteria->setOrder('DESC'); + break; + case 'hits': + $criteria->setSort('content_hits'); + $criteria->setOrder('DESC'); + break; + case 'recent': + $criteria->setSort('content_create'); + $criteria->setOrder('DESC'); + break; + } + + if ($options[0] != 'id') { + $criteria->setLimit($options[1]); + $content_arr = $content_Handler->getAll($criteria); + foreach (array_keys($content_arr) as $i) { + $content_id = $content_arr[$i]->getVar('content_id'); + $content[$i]['id'] = $content_id; + $content[$i]['title'] = strlen($content_arr[$i]->getVar('content_title')) > $options[2] ? substr($content_arr[$i]->getVar('content_title'), 0, ($options[2])) . '...' : $content_arr[$i]->getVar('content_title'); + $content[$i]['shorttext'] = $content_arr[$i]->getVar('content_shorttext'); + if ($options[3] == true){ + $content[$i]['text'] = $content_arr[$i]->getVar('content_text'); + } + $content[$i]['authorid'] = $content_arr[$i]->getVar('content_author'); + $content[$i]['author'] = XoopsUser::getUnameFromId($content_arr[$i]->getVar('content_author')); + $content[$i]['date'] = XoopsLocal::formatTimestamp($content_arr[$i]->getVar('content_create'), $xoops->getModuleConfig('page_dateformat', 'page')); + $content[$i]['time'] = XoopsLocal::formatTimestamp($content_arr[$i]->getVar('content_create'), $xoops->getModuleConfig('page_timeformat', 'page')); + $content[$i]['hits'] = sprintf(_MD_PAGE_VIEWPAGE_HITS, $content_arr[$i]->getVar('content_hits')); + $content[$i]['rating'] = number_format($content_arr[$i]->getVar('content_rating'), 1); + $content[$i]['votes'] = $content_arr[$i]->getVar('content_votes'); + } + } + return $content; +} + +function page_blocks_edit($options) { + $form = ''; + $form .= _MB_PAGE_DISPLAY . " \n"; + $form .= "<input type=\"hidden\" name=\"options[0]\" value=\"" . $options[0] . "\" />\n"; + $form .= "<input class=\"span1\" name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" pattern=\"^\d+$\" /> " . _MB_PAGE_CONTENTS . "<br />\n"; + $form .= _MB_PAGE_TLENGTH . " <input class=\"span1\" name=\"options[2]\" size=\"5\" maxlength=\"255\" value=\"" . $options[2] . "\" type=\"text\" pattern=\"^\d+$\" /><br />\n"; + if ($options[3] == false){ + $checked_yes = ''; + $checked_no = 'checked="checked"'; + }else{ + $checked_yes = 'checked="checked"'; + $checked_no = ''; + } + $form .= _MB_PAGE_ALLCONTENT . ": <input name=\"options[3]\" value=\"1\" type=\"radio\" " . $checked_yes . "/>" . _YES . " \n"; + $form .= "<input name=\"options[3]\" value=\"0\" type=\"radio\" " . $checked_no . "/>" . _NO . "<br />\n"; + return $form; +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/page_blocks.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/form ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/form/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/fo... [truncated message content] |
From: <du...@us...> - 2012-12-06 01:25:12
|
Revision: 10324 http://sourceforge.net/p/xoops/svn/10324 Author: dugris Date: 2012-12-06 01:25:09 +0000 (Thu, 06 Dec 2012) Log Message: ----------- clean xoops_version.php remove templates in xlanguage fix css Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css 2012-12-06 01:25:09 UTC (rev 10324) @@ -41,5 +41,4 @@ .help-description { width: 100%; - } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-12-06 01:25:09 UTC (rev 10324) @@ -30,7 +30,6 @@ $modversion['image'] = 'images/xcaptcha_logo.png'; $modversion['dirname'] = 'xcaptcha'; - //about $modversion['release_date'] = '2012/10/01'; $modversion['module_website_url'] = 'dugris.xoofoo.org'; @@ -48,12 +47,9 @@ $modversion['paypal']['currency_code'] = 'EUR'; // Admin menu -// Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; -/* - Manage extension - */ +// Manage extension $modversion['extension'] = 1; $modversion['extension_module'][] = 'system'; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css 2012-12-06 01:25:09 UTC (rev 10324) @@ -16,7 +16,7 @@ } .help-item { margin-bottom: 20px; - display: blockj; + display: block; } .help-title { width: 80%; @@ -41,5 +41,4 @@ .help-description { width: 100%; - } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html 2012-12-06 01:25:09 UTC (rev 10324) @@ -1,13 +1,13 @@ <link rel="stylesheet" href="<{xoImgUrl modules/xlanguage/css/block.css}>" type="text/css" media="screen" /> <{if $block.display == "text"}> - <{include file="db:blocks/xlanguage_block_text.html"}> + <{include file="block:xlanguage|xlanguage_block_text.html"}> <{elseif $block.display == "select"}> - <{include file="db:blocks/xlanguage_block_select.html"}> + <{include file="block:xlanguage|xlanguage_block_select.html"}> <{elseif $block.display == "jquery"}> - <{include file="db:blocks/xlanguage_block_jquery.html"}> + <{include file="block:xlanguage|xlanguage_block_jquery.html"}> <{elseif $block.display == "bootstrap"}> - <{include file="db:blocks/xlanguage_block_bootstrap.html"}> + <{include file="block:xlanguage|xlanguage_block_bootstrap.html"}> <{else}> - <{include file="db:blocks/xlanguage_block_images.html"}> + <{include file="block:xlanguage|xlanguage_block_images.html"}> <{/if}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php 2012-12-06 01:25:09 UTC (rev 10324) @@ -47,12 +47,9 @@ $modversion['paypal']['currency_code'] = 'EUR'; // Admin menu -// Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; -/* - Manage extension - */ +// Manage extension $modversion['extension'] = 1; $modversion['extension_module'][] = 'system'; @@ -78,27 +75,6 @@ $modversion['blocks'][1]['options'] = 'images| |5'; $modversion['blocks'][1]['template'] = 'xlanguage_block.html'; -// Blocks templates -$cpt = 1; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_text.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_images.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_select.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_jquery.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_bootstrap.html'; -$modversion['templates'][$cpt]['description'] = ''; - // Config XoopsLoad::load('xoopslists'); |
From: <tr...@us...> - 2012-12-09 20:51:29
|
Revision: 10340 http://sourceforge.net/p/xoops/svn/10340 Author: trabis Date: 2012-12-09 20:51:26 +0000 (Sun, 09 Dec 2012) Log Message: ----------- adding codex module Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/xoops_version.php Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php (from rev 10329, XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/cache.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,58 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +if (isset($_GET['delete'])) { + Xoops_Cache::delete('mykey'); + Xoops_Cache::delete('mykey2', 'myfilesystem'); + Xoops_Cache::delete('mykey3', 'mymemcache'); +} + +$content = time(); + +//using 'default' cache file system +if (!$ret = Xoops_Cache::read('mykey')) { + Xoops_Cache::write('mykey', $content); + $ret = $content; +} +echo $ret . '<br />'; + +//setting new cache file system +Xoops_Cache::config('myfilesystem', array('engine' => 'file', 'duration' => 10)); +if (!$ret = Xoops_Cache::read('mykey2', 'myfilesystem')) { + $ret = Xoops_Cache::write('mykey2', $content, 'myfilesystem'); + $ret = $content; +} +echo $ret . '<br />'; + +//setting new cache memcache system +Xoops_Cache::config('mymemcache', array('engine' => 'memcache', 'duration' => 5)); +if (!$ret = Xoops_Cache::read('mykey3', 'mymemcache')) { + if(Xoops_Cache::write('mykey3', $content, 'mymemcache')) { + $ret = $content; + } else { + $ret = 'No Memcache, no bear'; + } +} +echo $ret . '<br />'; + +echo '<a href="?nodelete">Refresh</a> - <a href="?delete">Delete caches</a>'; +$xoops->footer(); Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php (from rev 10329, XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/form.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,140 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +// Form Horizontal +$form = new XoopsThemeForm('Form Horizontal', 'form_horizontal', 'testform.php', 'post', true, 'horizontal'); + +$code = new XoopsFormText('Code', 'code', 2, 25, '','Code...'); +$code->setDescription('Description code'); +$code->setPattern('^.{3,}$', 'You need at least 3 characters'); +$code->setDatalist(array('list 1','list 2','list 3')); +$form->addElement($code, true); + +$password = new XoopsFormPassword('Password', 'password', 3, 25, '', false, 'Your Password'); +$password->setDescription('Description password'); +$password->setPattern('^.{8,}$', 'You need at least 8 characters'); +$form->addElement($password, true); + +$description = new XoopsFormTextArea('Description', 'description', '', 5, 6, 'Your description'); +$description->setDescription('Put the description'); +$form->addElement($description, true); + +$description_2 = new XoopsFormDhtmlTextArea('Description_2', 'description_2', '', 6, 7); +$description_2->setDescription('Put the description_2'); +$form->addElement($description_2, true); + + +$form->addElement(new XoopsFormRadioYN('Yes or No', 'yesorno', 0), false); + +$radio_inline = new XoopsFormRadio('Radio Inline', 'radio_inline', 1, true); +$radio_inline->addOption(1, 'Radio Inline 1'); +$radio_inline->addOption(2, 'Radio Inline 2'); +$radio_inline->addOption(3, 'Radio Inline 3'); +$radio_inline->setDescription('Description Radio Inline'); +$form->addElement($radio_inline, false); + +$radio = new XoopsFormRadio('Radio', 'radio', 2, false); +$radio->addOption(1, 'Radio 1'); +$radio->addOption(2, 'Radio 2'); +$radio->addOption(3, 'Radio 3'); +$radio->setDescription('Description Radio'); +$form->addElement($radio, false); + +$checkbox_inline = new XoopsFormCheckbox('Checkbox Inline', 'checkbox_inline', 1, true); +$checkbox_inline->addOption(1, 'Checkbox Inline 1'); +$checkbox_inline->addOption(2, 'Checkbox Inline 2'); +$checkbox_inline->addOption(3, 'Checkbox Inline 3'); +$checkbox_inline->setDescription('Description Checkbox Inline'); +$form->addElement($checkbox_inline, true); + +$checkbox = new XoopsFormCheckbox('Checkbox', 'checkbox', 2, false); +$checkbox->addOption(1, 'Checkbox 1'); +$checkbox->addOption(2, 'Checkbox 2'); +$checkbox->addOption(3, 'Checkbox 3'); +$checkbox->setDescription('Description Checkbox'); +$form->addElement($checkbox, true); + +$label= new XoopsFormLabel('Label', 'label', 'label'); +$label->setDescription('Description Label'); +$form->addElement($label, true); + + +$color = new XoopsFormColorPicker('Color', 'color'); +$color->setDescription('Description Color'); +$form->addElement($color, true); + +$file = new XoopsFormFile('File', 'file', 500000); +$file->setDescription('Description File'); +$form->addElement($file, true); + +$select = new XoopsFormSelect('Select', 'select', '', 1, false); +$select->addOption(1, 'Select 1'); +$select->addOption(2, 'Select 2'); +$select->addOption(3, 'Select 3'); +$select->setDescription('Description Select'); +$select->setClass('span2'); +$form->addElement($select, true); + +$select_optgroup = new XoopsFormSelect('Select Optgroup', 'select_optgroup', '', 1, false); +$select_optgroup->addOptgroup('Swiss', array(1 => 'Geneva', 2 => 'Bern', 3 => 'Zurich')); +$select_optgroup->addOptgroup('France', array(4 => 'Paris', 5 => 'Lyon', 6 => 'Grenoble', 7 => 'Marseille')); +$select_optgroup->setDescription('Description Select Optgroup'); +$select_optgroup->setClass('span3'); +$form->addElement($select_optgroup, true); + +$date = new XoopsFormTextDateSelect('Date', 'date', 2,'','Date...'); +$date->setDescription('Description Date'); +$form->addElement($date, true); + +$date_time = new XoopsFormDateTime('Date time', 'date_time', 3,'','Date...'); +$date_time->setDescription('Description Date time'); +$form->addElement($date_time, true); + +$form->addElement(new XoopsFormCaptcha('Captcha', 'captcha', false), true); + +$testtray = new XoopsFormElementTray('Test tray'); +$select_tray = new XoopsFormSelect('Select_tray', 'select_tray', '', 4, true); +$select_tray->addOption(1, 'Select_tray 1'); +$select_tray->addOption(2, 'Select_tray 2'); +$select_tray->addOption(3, 'Select_tray 3'); +$select_tray->addOption(4, 'Select_tray 4'); +$select_tray->addOption(5, 'Select_tray 5'); +$select_tray->addOption(6, 'Select_tray 6'); +$select_tray->setDescription('Description Select_tray'); +$select_tray->setClass('span2'); +$testtray ->addElement($select_tray, true); +$testtray ->addElement($select_tray); +$form->addElement($testtray); + +$button = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); +$form->addElement($button); + +$button_2 = new XoopsFormButton('', 'reset', _RESET, 'reset'); +$button_2->setClass('btn btn-danger'); +$form->addElement($button_2); + +$button_tray = new XoopsFormButtonTray('button_tray', 'submit', _SUBMIT, '', true); +$button_tray->setClass('btn btn-inverse'); +$form->addElement($button_tray); + +$form->display(); +$xoops->footer(); \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,30 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +$files = XoopsLists::getFileListAsArray(dirname(__FILE__)); +foreach ($files as $file) { + if (!in_array($file, array('xoops_version.php', 'index.php'))) { + echo "<a href={$file}>{$file}</a><br/>"; + } +} + +$xoops->footer(); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,19 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,22 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +define('_MI_CODEX_NAME', 'Codex'); +define('_MI_CODEX_DSC', 'Code examples for developers'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6. |
From: <tr...@us...> - 2012-12-10 19:59:54
|
Revision: 10351 http://sourceforge.net/p/xoops/svn/10351 Author: trabis Date: 2012-12-10 19:59:49 +0000 (Mon, 10 Dec 2012) Log Message: ----------- Fixing protector problems with the new lazy instantiation of database Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/logger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/preloads/core.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/logger.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/logger.php 2012-12-10 19:39:25 UTC (rev 10350) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/logger.php 2012-12-10 19:59:49 UTC (rev 10351) @@ -52,10 +52,8 @@ { error_reporting(E_ALL | E_STRICT); $xoops = Xoops::getInstance(); - if (class_exists('XoopsDatabase', false)) { - if ($xoops->getModuleConfig('debug_mode', 'logger') == 2) { - $this->usePopup = true; - } + if ($xoops->getModuleConfig('debug_mode', 'logger') == 2) { + $this->usePopup = true; } $this->activated = true; $this->enableRendering(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck.inc.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck.inc.php 2012-12-10 19:39:25 UTC (rev 10350) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck.inc.php 2012-12-10 19:59:49 UTC (rev 10351) @@ -23,11 +23,6 @@ require_once dirname(__FILE__) . '/precheck_functions.php'; -if (class_exists('XoopsDatabase', false)) { - require dirname(__FILE__) . '/postcheck.inc.php'; - return; -} - define('PROTECTOR_PRECHECK_INCLUDED', 1); define('PROTECTOR_VERSION', file_get_contents(dirname(__FILE__) . '/version.txt')); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck_functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck_functions.php 2012-12-10 19:39:25 UTC (rev 10350) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/precheck_functions.php 2012-12-10 19:59:49 UTC (rev 10351) @@ -75,14 +75,6 @@ } } - // "DB Layer Trapper" - $force_override = strstr(@$_SERVER['REQUEST_URI'], 'protector/admin/index.php?page=advisory') ? true : false; - // $force_override = true ; - if ($force_override || !empty($conf['enable_dblayertrap'])) { - @define('PROTECTOR_ENABLED_ANTI_SQL_INJECTION', 1); - $protector->dblayertrap_init($force_override); - } - // "Big Umbrella" subset version if (!empty($conf['enable_bigumbrella'])) { @define('PROTECTOR_ENABLED_ANTI_XSS', 1); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/preloads/core.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/preloads/core.php 2012-12-10 19:39:25 UTC (rev 10350) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/preloads/core.php 2012-12-10 19:59:49 UTC (rev 10351) @@ -33,6 +33,7 @@ { /** * @static + * * @param $args */ static function eventCoreIncludeCommonStart($args) @@ -43,6 +44,7 @@ /** * @static + * * @param $args */ static function eventCoreIncludeCommonEnd($args) @@ -53,10 +55,24 @@ /** * @static + * * @param $args */ static function eventCoreClassDatabaseDatabasefactoryConnection($args) { + // Protector class + require_once dirname(dirname(__FILE__)) . '/class/protector.php'; + + // Protector object + $protector = Protector::getInstance(); + $conf = $protector->getConf(); + // "DB Layer Trapper" + $force_override = strstr(@$_SERVER['REQUEST_URI'], 'protector/admin/index.php?page=advisory') ? true : false; + //$force_override = true ; + if ($force_override || !empty($conf['enable_dblayertrap'])) { + @define('PROTECTOR_ENABLED_ANTI_SQL_INJECTION', 1); + $protector->dblayertrap_init($force_override); + } if (defined('XOOPS_DB_ALTERNATIVE') && class_exists(XOOPS_DB_ALTERNATIVE)) { $args[0] = XOOPS_DB_ALTERNATIVE; } |
From: <du...@us...> - 2012-12-11 02:59:33
|
Revision: 10354 http://sourceforge.net/p/xoops/svn/10354 Author: dugris Date: 2012-12-11 02:59:21 +0000 (Tue, 11 Dec 2012) Log Message: ----------- adding qrcode module Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/qrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/xoops_qrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode_colors.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/CHANGELOG XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/INSTALL XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/LICENSE XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/README XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/VERSION XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/bindings/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/bindings/tcpdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/bindings/tcpdf/qrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_10.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_10.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_11.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_11.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_12.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_12.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_13.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_13.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_14.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_14.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_15.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_15.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_16.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_16.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_17.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_17.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_18.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_18.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_19.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_19.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_20.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_20.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_21.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_21.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_22.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_22.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_23.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_23.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_24.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_24.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_25.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_25.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_26.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_26.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_27.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_27.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_28.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_28.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_29.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_29.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_30.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_30.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_31.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_31.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_32.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_32.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_33.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_33.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_34.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_34.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_35.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_35.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_36.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_36.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_37.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_37.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_38.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_38.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_39.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_39.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_4.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_40.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_40.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_5.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_6.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_7.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_8.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_8.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_9.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/frame_9.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_101_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_105_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_109_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_113_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_117_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_121_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_125_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_129_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_133_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_137_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_141_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_145_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_149_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_153_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_157_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_161_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_165_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_169_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_173_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_177_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_21_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_25_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_29_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_33_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_37_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_41_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_45_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_49_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_53_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_57_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_61_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_65_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_69_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_73_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_77_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_81_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_85_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_89_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_93_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_0/mask_97_0.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_101_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_105_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_109_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_113_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_117_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_121_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_125_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_129_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_133_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_137_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_141_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_145_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_149_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_153_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_157_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_161_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_165_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_169_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_173_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_177_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_21_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_25_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_29_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_33_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_37_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_41_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_45_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_49_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_53_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_57_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_61_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_65_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_69_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_73_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_77_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_81_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_85_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_89_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_93_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_1/mask_97_1.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_101_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_105_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_109_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_113_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_117_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_121_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_125_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_129_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_133_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_137_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_141_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_145_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_149_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_153_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_157_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_161_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_165_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_169_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_173_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_177_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_21_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_25_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_29_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_33_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_37_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_41_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_45_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_49_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_53_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_57_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_61_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_65_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_69_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_73_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_77_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_81_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_85_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_89_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_93_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_2/mask_97_2.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_101_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_105_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_109_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_113_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_117_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_121_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_125_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_129_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_133_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_137_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_141_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_145_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_149_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_153_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_157_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_161_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_165_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_169_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_173_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_177_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_21_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_25_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_29_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_33_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_37_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_41_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_45_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_49_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_53_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_57_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_61_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_65_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_69_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_73_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_77_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_81_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_85_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_89_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_93_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_3/mask_97_3.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_101_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_105_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_109_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_113_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_117_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_121_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_125_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_129_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_133_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_137_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_141_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_145_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_149_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_153_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_157_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_161_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_165_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_169_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_173_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_177_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_21_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_25_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_29_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_33_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_37_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_41_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_45_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_49_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_53_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_57_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_61_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_65_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_69_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_73_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_77_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_81_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_85_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_89_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_93_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_4/mask_97_4.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_101_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_105_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_109_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_113_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_117_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_121_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_125_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_129_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_133_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_137_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_141_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_145_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_149_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_153_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_157_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_161_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_165_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_169_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_173_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_177_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_21_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_25_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_29_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_33_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_37_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_41_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_45_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_49_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_53_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_57_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_61_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_65_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_69_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_73_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_77_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_81_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_85_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_89_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_93_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_5/mask_97_5.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_101_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_105_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_109_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_113_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_117_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_121_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_125_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_129_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_133_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_137_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_141_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_145_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_149_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_153_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_157_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_161_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_165_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_169_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_173_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_177_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_21_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_25_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_29_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_33_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_37_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_41_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_45_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_49_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_53_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_57_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_61_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_65_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_69_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_73_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_77_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_81_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_85_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_89_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_93_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_6/mask_97_6.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_101_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_105_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_109_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_113_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_117_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_121_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_125_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_129_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_133_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_137_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_141_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_145_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_149_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_153_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_157_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_161_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_165_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_169_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_173_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_177_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_21_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_25_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_29_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_33_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_37_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_41_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_45_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_49_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_53_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_57_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_61_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_65_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_69_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_73_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_77_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_81_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_85_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_89_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_93_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/cache/mask_7/mask_97_7.dat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/errors.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/phpqrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrbitstream.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrconfig.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrconst.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrencode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrimage.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrinput.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrlib.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrmask.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrrscode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrspec.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrsplit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrtools.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/qrvect.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/tools/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/tools/merge.bat XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/tools/merge.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/tools/merge.sh XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/tools/merged_config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/phpqrcode/tools/merged_header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/xoops_version.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/qrcode.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/qrcode.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/qrcode.php 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1,32 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Laurent JEN - aka DuGris + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); + +if ($xoops->isActiveModule('qrcode')) { + echo '<img src="' . $xoops->url('/modules/qrcode/include/qrcode.php') . '?url=http://www.xoops.org" title="http://www.xoops.org">'; +} else { + echo 'Oops, Please install qrcode module!'; +} +Xoops_Utils::dumpFile(__FILE__); +echo '<hr>'; +Xoops_Utils::dumpFile($xoops->path('/modules/qrcode/include/qrcode.php')); +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/qrcode.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/index.html 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/xoops_qrcode.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/xoops_qrcode.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/xoops_qrcode.php 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1,131 @@ +<?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. +*/ + +/** + * QRCode + * + * @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 class + * @since 2.6.0 + * @author Laurent JEN - aka DuGris + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +include dirname(dirname(__FILE__)) . '/phpqrcode/qrlib.php'; +include dirname(dirname(__FILE__)) . '/include/qrcode_colors.php'; + +class Xoops_qrcode extends QRcode +{ + private $outfile = false; + private $saveandprint = false; + public $format = 'png'; + public $eclevel = 0; + public $size = 3; + public $margin = 0; + public $back_color = 0xFFFFFF; + public $fore_color = 0x000000; + + /** + * class constructor + * + * @access public + */ + public function __construct() + { + $xoops = Xoops::getInstance(); + $xoops->disableErrorReporting(); + $this->setFormat(); + } + + /** + * Render format + */ + public function setFormat($format = 'png') + { + $this->format = (in_array($format, array('png', 'text', 'eps', 'svg', 'raw'))) ? $format : 'png'; + } + + /** + * level of error correction + * 0 - QR_ECLEVEL_L = Low + * 1 - QR_ECLEVEL_M = Medium + * 2 - QR_ECLEVEL_Q = Quartile + * 3 - QR_ECLEVEL_H = High + */ + public function setLevel($eclevel = QR_ECLEVEL_L) + { + $this->eclevel = (intval($eclevel)>=0 && intval($eclevel)<=3) ? intval($eclevel) : QR_ECLEVEL_L; + } + + /** + * define size of each of the barcode code squares measured in pixels + * Each code square (also named \x93pixels\x94 or \x93modules\x94) is 4\xD74px. + */ + public function setSize($size=4) + { + $this->size = intval($size); + } + + /** + * define size of margin in pixels + */ + public function setMargin($margin=0) + { + $this->margin = intval($margin); + } + + /** + * Set Background color + */ + public function setBackground($back_color=0xFFFFFF) + { + $this->back_color = $back_color; + } + + /** + * Set Foreground color + */ + public function setForeground($fore_color=0x000000) + { + $this->fore_color = $fore_color; + } + + /** + * Render QRcode + */ + public function render( $text ) + { + switch($this->format) { + case 'text': + parent::text($text, $this->outfile, $this->eclevel, $this->size, $this->margin, $this->saveandprint, $this->back_color, $this->fore_color); + break; + + case 'eps': + parent::eps($text, $this->outfile, $this->eclevel, $this->size, $this->margin, $this->saveandprint, $this->back_color, $this->fore_color); + break; + + case 'svg': + parent::svg($text, $this->outfile, $this->eclevel, $this->size, $this->margin, $this->saveandprint, $this->back_color, $this->fore_color); + break; + + case 'raw': + parent::raw($text, $this->outfile, $this->eclevel, $this->size, $this->margin, $this->saveandprint, $this->back_color, $this->fore_color); + break; + + default: + parent::png($text, $this->outfile, $this->eclevel, $this->size, $this->margin, $this->saveandprint, $this->back_color, $this->fore_color); + break; + } + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/class/xoops_qrcode.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/index.html 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/logo_large.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/logo_large.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/logo_small.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/icons/logo_small.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/index.html 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: svn:keywords + Author Date Id Revision URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/index.html 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode.php 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1,34 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Laurent JEN - aka DuGris + * @version $Id$ + */ + +include dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getinstance(); +if ($xoops->isActiveModule('qrcode') && $_GET['url']) { + $qrcode = new Xoops_qrcode(); + $qrcode->render( $_GET['url'] ); +} else { + $contents = ''; + $size = getimagesize($xoops->url('/images/blank.gif')); + $handle = fopen($xoops->url('/images/blank.gif'), "rb"); + while (!feof($handle)) { + $contents .= fread($handle, 1024); + } + fclose($handle); + echo $contents; +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode_colors.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode_colors.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode_colors.php 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1,36 @@ +<?php +/** + * Xoopartners module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 Xoopartners + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +define('_AQUA' , 0x00FFFF); +define('_BLACK' , 0x000000); +define('_BLUE' , 0x0000FF); +define('_FUCHSIA' , 0xFF00FF); +define('_GRAY' , 0x808080); +define('_GREEN' , 0x008000); +define('_LIME' , 0x00FF00); +define('_MAROON' , 0x800000); +define('_NAVY' , 0x000080); +define('_OLIVE' , 0x808000); +define('_PURPLE' , 0x800080); +define('_RED' , 0xFF0000); +define('_SILVER' , 0xC0C0C0); +define('_TEAL' , 0x008080); +define('_WHITE' , 0xFFFFFF); +define('_YELLOW' , 0xFFFF00); +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/include/qrcode_colors.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/index.html 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/index.html 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/index.html ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/qrcode/language/english/main.php 2012-12-11 02:59:21 UTC (rev 10354) @@ -0,0 +1,19 @@ +<?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.n... [truncated message content] |
From: <du...@us...> - 2012-12-12 13:47:00
|
Revision: 10370 http://sourceforge.net/p/xoops/svn/10370 Author: dugris Date: 2012-12-12 13:46:57 +0000 (Wed, 12 Dec 2012) Log Message: ----------- fix Users Synchronize post for installed modules Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php 2012-12-12 12:59:08 UTC (rev 10369) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php 2012-12-12 13:46:57 UTC (rev 10370) @@ -168,4 +168,9 @@ $modversion['config'][$i]['formtype'] = 'select'; $modversion['config'][$i]['valuetype'] = 'text'; $modversion['config'][$i]['options'] = array(date('H:i') => 'H:i', date('H:i:s') => 'H:i:s', date('H:i A') => 'H:i A' , date('H:i:s A ') => 'H:i:s A'); -$modversion['config'][$i]['default'] = 'H:i:s'; \ No newline at end of file +$modversion['config'][$i]['default'] = 'H:i:s'; + +// Users Synchronize post +$modversion['sync']['table_name'] = 'page_content'; +$modversion['sync']['uid_column'] = 'content_author'; +$modversion['sync']['criteria'] = new Criteria('content_status', 1); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php 2012-12-12 12:59:08 UTC (rev 10369) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php 2012-12-12 13:46:57 UTC (rev 10370) @@ -51,10 +51,16 @@ 'table_name' => 'xoopscomments', 'uid_column' => 'com_uid', 'criteria' => new Criteria('com_status', XOOPS_COMMENT_ACTIVE) ); - // Count forum posts - if ($module_handler->getByDirname("newbb")) { - $tables[] = array('table_name' => 'bb_posts', 'uid_column' => 'uid'); + + $system_module = new SystemModule(); + $list = $system_module->getModuleList(); + foreach ($list as $k => $v) { + $sync = $v->getInfo('sync'); + if ( isset($sync) && count($sync) >= 2 ) { + $tables[] = $sync; + } } + $uid = $system->cleanVars($_REQUEST, 'uid', 'int'); $total_posts = 0; foreach ($tables as $table) { Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php 2012-12-12 12:59:08 UTC (rev 10369) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php 2012-12-12 13:46:57 UTC (rev 10370) @@ -54,14 +54,15 @@ 'table_name' => 'xoopscomments', 'uid_column' => 'com_uid', 'criteria' => new Criteria('com_status', XOOPS_COMMENT_ACTIVE) ); - // Count Content posts - if ($module_handler->getByDirname("fmcontent")) { - $tables[] = array('table_name' => 'fmcontent_content', 'uid_column' => 'content_uid'); + + $system_module = new SystemModule(); + $list = $system_module->getModuleList(); + foreach ($list as $k => $v) { + $sync = $v->getInfo('sync'); + if ( isset($sync) && count($sync) >= 2 ) { + $tables[] = $sync; + } } - // Count forum posts - if ($module_handler->getByDirname("newbb")) { - $tables[] = array('table_name' => 'bb_posts', 'uid_column' => 'uid'); - } switch ($type) { case 'user': |
From: <tr...@us...> - 2012-12-12 23:47:20
|
Revision: 10375 http://sourceforge.net/p/xoops/svn/10375 Author: trabis Date: 2012-12-12 23:47:08 +0000 (Wed, 12 Dec 2012) Log Message: ----------- Committing first version of publisher Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/news.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/smartsection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/wfsection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import/xfsection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/import.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/mimetypes.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/pagewrap.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/permissions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/preferences.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/pw_delete_file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/pw_upload_file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/ajaxrating.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/archive.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/author_items.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/backend.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/category_items_sel.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/date_to_date.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_columns.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_new.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_random_item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_recent.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/items_spot.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/latest_files.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/latest_news.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/blocks/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/blockform.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/formdatetime.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/groupperm.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/metagen.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/mimetype.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/permission.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/publisher.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/request.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/session.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/themetabform.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/uploader.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/utils.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_delete.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_edit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_new.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_post.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/comment_reply.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_flat_0_aaaaaa_40x100.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_flat_75_ffffff_40x100.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_55_fbf9ee_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_65_ffffff_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_75_dadada_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_75_e6e6e6_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_glass_95_fef1ec_1x400.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_222222_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_2e83ff_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_454545_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_888888_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/images/ui-icons_cd0a0a_256x240.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/jquery-ui-1.7.1.custom.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/jquery.popeye.style.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/css/publisher.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/install.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/lang_diff.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/licence.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/sample.htaccess XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/extra/seo/seo.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/file.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/VeraBd.ttf XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/arrow-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/bg.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/blank.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/bullet.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/button_delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/button_edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/dot-grey.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/count-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/enlarge-1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/enlarge-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/loading.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/next-1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/next-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/next.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/prev-1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/prev-2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/gfx/prev.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/grad-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/approve.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/cat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/clone.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/close12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/delete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/doc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/edit.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/file.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/friend.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/newanswer.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/open12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/pdf.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/print.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon/subcat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/folder_txt.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/icon32/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/important-32.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/item_icon.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/left_both.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/approve.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/cat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/clone.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/close12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/delete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/doc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/edit.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/file.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/friend.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/newanswer.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/next.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/open12.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/pdf.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/previous.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/print.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/links/subcat.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/loadingbar.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/module_logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/no.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/on.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/bg1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/compact3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/enlarge3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/loading3.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/next3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/popeye/prev3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/right_both.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/rss.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/span-bg.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/starrating.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/transparent_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/images/working.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/ajax_rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/ajax_upload.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/comment_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/notification.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/plugin.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/search.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/seo.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/include/update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ajaxupload.3.9.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/behavior.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/cookies.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/funcs.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/jquery.easing.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/jquery.popeye-2.0.4.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/publisher.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/rating.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/script.easing.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ui.core.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/js/ui.tabs.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/category_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/category_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/global_item_category_created.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/global_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/global_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/item_approved.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/mail_template/item_rejected.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/category_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/category_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/global_item_category_created.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/global_item_published.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/global_item_submitted.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/item_approved.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/mail_template/item_rejected.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/french/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/list.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/makepdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/notification_update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/pop.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/print.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/rate.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/submit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/CHANGELOG.TXT XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/LICENSE.TXT XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/README.TXT XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/cache/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/cache/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/ar.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/de.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/en.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/fa.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/fr.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/lang/nl.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/config/tcpdf_config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/almohanad.ctg.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/almohanad.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/almohanad.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/dejavusans.ctg.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/dejavusans.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/dejavusans.z XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/fonts/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/htmlcolors.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/tcpdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/tcpdf/unicode_data.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_category_items_sel.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_date_to_date.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_columns.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_menu.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_new.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_random_item.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_recent.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_spot.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_latest_files.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_latest_news.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_search_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_addfile.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_archive.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_author_items.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_categories_table.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_full.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_list.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_summary.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_wfsection.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_footer.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_header.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_item.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_print.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_rss.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_search.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_singleitem.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_singleitem_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_submit.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/thumb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/view.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/visit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,31 @@ +<?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. +*/ + +/** + * Publisher + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package Publisher + * @since 1.0 + * @author Mage, Mamba + * @version $Id$ + */ + +include dirname(__FILE__) . '/admin_header.php'; +$xoops = Xoops::getInstance(); +$xoops->header(); + +$aboutAdmin = new XoopsModuleAdmin(); +$aboutAdmin->displayNavigation('about.php'); +$aboutAdmin->displayAbout('6KJ7RW5DR3VTJ', false); + +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/about.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,29 @@ +<?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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Publisher + * @since 1.0 + * @author trabis <lus...@gm...> + * @author The SmartFactory <www.smartfactory.ca> + * @version $Id$ + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; + +$xoops = Xoops::getInstance(); +$publisher = Publisher::getInstance(); +$publisher->loadLanguage('modinfo'); + +XoopsLoad::loadFile($xoops->path(dirname(dirname(__FILE__)) . '/include/common.php')); +XoopsLoad::loadFile($xoops->path(XOOPS_ROOT_PATH . '/include/cp_header.php')); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/admin_header.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,404 @@ +<?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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Publisher + * @since 1.0 + * @author trabis <lus...@gm...> + * @author The SmartFactory <www.smartfactory.ca> + * @version $Id$ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; + +$xoops = Xoops::getInstance(); +$op = PublisherRequest::getString('op'); + +$op = isset($_POST['editor']) ? 'mod' : $op; +if (isset($_POST['addcategory'])) { + $op = 'addcategory'; +} + +// Where do we start ? +$startcategory = PublisherRequest::getInt('startcategory'); +$categoryid = PublisherRequest::getInt('categoryid'); + +switch ($op) { + + case "del": + /* @var $categoryObj PublisherCategory */ + $categoryObj = $publisher->getCategoryHandler()->get($categoryid); + $confirm = (isset($_POST['confirm'])) ? $_POST['confirm'] : 0; + $name = (isset($_POST['name'])) ? $_POST['name'] : ''; + if ($confirm) { + if (!$publisher->getCategoryHandler()->delete($categoryObj)) { + $xoops->redirect("category.php", 1, _AM_PUBLISHER_DELETE_CAT_ERROR); + } + $xoops->redirect("category.php", 1, sprintf(_AM_PUBLISHER_COLISDELETED, $name)); + } else { + $xoops->header(); + $xoops->confirm(array('op' => 'del', 'categoryid' => $categoryObj->getVar('categoryid'), 'confirm' => 1, 'name' => $categoryObj->getVar('name')), 'category.php', _AM_PUBLISHER_DELETECOL . " '" . $categoryObj->getVar('name') . "'. <br /> <br />" . _AM_PUBLISHER_DELETE_CAT_CONFIRM, _AM_PUBLISHER_DELETE); + $xoops->footer(); + } + break; + + case "mod": + //Added by fx2024 + $nb_subcats = isset($_POST['nb_subcats']) ? intval($_POST['nb_subcats']) : 0; + $nb_subcats = $nb_subcats + (isset($_POST['nb_sub_yet']) ? intval($_POST['nb_sub_yet']) : 4); + //end of fx2024 code + + PublisherUtils::cpHeader(); + publisher_editCat(true, $categoryid, $nb_subcats); + break; + + case "addcategory": + global $modify; + + $parentid = PublisherRequest::getInt('parentid'); + /* @var $categoryObj PublisherCategory */ + if ($categoryid != 0) { + $categoryObj = $publisher->getCategoryHandler()->get($categoryid); + } else { + $categoryObj = $publisher->getCategoryHandler()->create(); + } + + // Uploading the image, if any + // Retreive the filename to be uploaded + if (isset($_FILES['image_file']['name']) && $_FILES['image_file']['name'] != "") { + $filename = $_POST["xoops_upload_file"][0]; + if (!empty($filename) || $filename != "") { + // TODO : implement publisher mimetype management + $max_size = $publisher->getConfig('maximum_filesize'); + $max_imgwidth = $publisher->getConfig('maximum_image_width'); + $max_imgheight = $publisher->getConfig('maximum_image_height'); + $allowed_mimetypes = PublisherUtils::getAllowedImagesTypes(); + + if ($_FILES[$filename]['tmp_name'] == "" || !is_readable($_FILES[$filename]['tmp_name'])) { + $xoops->redirect('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR); + } + + $uploader = new PublisherUploader(PublisherUtils::getImageDir('category'), $allowed_mimetypes, $max_size, $max_imgwidth, $max_imgheight); + if ($uploader->fetchMedia($filename) && $uploader->upload()) { + $categoryObj->setVar('image', $uploader->getSavedFileName()); + } else { + $xoops->redirect('javascript:history.go(-1)', 2, _AM_PUBLISHER_FILEUPLOAD_ERROR . $uploader->getErrors()); + } + } + } else { + if (isset($_POST['image'])) { + $categoryObj->setVar('image', $_POST['image']); + } + } + $categoryObj->setVar('parentid', (isset($_POST['parentid'])) ? intval($_POST['parentid']) : 0); + + $applyall = isset($_POST['applyall']) ? intval($_POST['applyall']) : 0; + $categoryObj->setVar('weight', isset($_POST['weight']) ? intval($_POST['weight']) : 1); + + // Groups and permissions + $grpread = isset($_POST['groups_read']) ? $_POST['groups_read'] : array(); + $grpsubmit = isset($_POST['groups_submit']) ? $_POST['groups_submit'] : array(); + $grpmoderation = isset($_POST['groups_moderation']) ? $_POST['groups_moderation'] : array(); + + + $categoryObj->setVar('name', $_POST['name']); + + //Added by skalpa: custom template support + if (isset($_POST['template'])) { + $categoryObj->setVar('template', $_POST['template']); + } + + if (isset($_POST['meta_description'])) { + $categoryObj->setVar('meta_description', $_POST['meta_description']); + } + if (isset($_POST['meta_keywords'])) { + $categoryObj->setVar('meta_keywords', $_POST['meta_keywords']); + } + if (isset($_POST['short_url'])) { + $categoryObj->setVar('short_url', $_POST['short_url']); + } + $categoryObj->setVar('moderator', intval($_POST['moderator'])); + $categoryObj->setVar('description', $_POST['description']); + + if (isset($_POST['header'])) { + $categoryObj->setVar('header', $_POST['header']); + } + + if ($categoryObj->isNew()) { + $redirect_msg = _AM_PUBLISHER_CATCREATED; + $redirect_to = 'category.php?op=mod'; + } else { + $redirect_msg = _AM_PUBLISHER_COLMODIFIED; + $redirect_to = 'category.php'; + } + + if (!$categoryObj->store()) { + $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_CATEGORY_SAVE_ERROR . PublisherUtils::formatErrors($categoryObj->getErrors())); + } + // TODO : put this function in the category class + PublisherUtils::saveCategoryPermissions($grpread, $categoryObj->getVar('categoryid'), 'category_read'); + PublisherUtils::saveCategoryPermissions($grpsubmit, $categoryObj->getVar('categoryid'), 'item_submit'); + PublisherUtils::saveCategoryPermissions($grpmoderation, $categoryObj->getVar('categoryid'), 'category_moderation'); + + + //Added by fx2024 + $parentCat = $categoryObj->getVar('categoryid'); + $sizeof = sizeof($_POST['scname']); + for ($i = 0; $i < $sizeof; $i++) { + if ($_POST['scname'][$i] != '') { + $categoryObj = $publisher->getCategoryHandler()->create(); + $categoryObj->setVar('name', $_POST['scname'][$i]); + $categoryObj->setVar('parentid', $parentCat); + + if (!$categoryObj->store()) { + $xoops->redirect("javascript:history.go(-1)", 3, _AM_PUBLISHER_SUBCATEGORY_SAVE_ERROR . PublisherUtils::formatErrors($categoryObj->getErrors())); + } + // TODO : put this function in the category class + PublisherUtils::saveCategoryPermissions($grpread, $categoryObj->getVar('categoryid'), 'category_read'); + PublisherUtils::saveCategoryPermissions($grpsubmit, $categoryObj->getVar('categoryid'), 'item_submit'); + PublisherUtils::saveCategoryPermissions($grpmoderation, $categoryObj->getVar('categoryid'), 'category_moderation'); + } + } + //end of fx2024 code + $xoops->redirect($redirect_to, 2, $redirect_msg); + break; + + //Added by fx2024 + + case "addsubcats": + $categoryid = 0; + $nb_subcats = intval($_POST['nb_subcats']) + $_POST['nb_sub_yet']; + + $categoryObj = $publisher->getCategoryHandler()->create(); + $categoryObj->setVar('name', $_POST['name']); + $categoryObj->setVar('description', $_POST['description']); + $categoryObj->setVar('weight', $_POST['weight']); + if (isset($parentCat)) { + $categoryObj->setVar('parentid', $parentCat); + } + + PublisherUtils::cpHeader(); + publisher_editCat(true, $categoryid, $nb_subcats, $categoryObj); + exit(); + + break; + //end of fx2024 code + + case "cancel": + $xoops->redirect("category.php", 1, sprintf(_AM_PUBLISHER_BACK2IDX, '')); + break; + case "default": + default: + PublisherUtils::cpHeader(); + //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES); + + echo "<br />\n"; + echo "<form><div style=\"margin-bottom: 12px;\">"; + echo "<input type='button' name='button' onclick=\"location='category.php?op=mod'\" value='" . _AM_PUBLISHER_CATEGORY_CREATE . "'> "; + //echo "<input type='button' name='button' onclick=\"location='item.php?op=mod'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; + echo "</div></form>"; + + // Creating the objects for top categories + $categoriesObj = $publisher->getCategoryHandler()->getCategories($publisher->getConfig('idxcat_perpage'), $startcategory, 0); + + PublisherUtils::openCollapsableBar('createdcategories', 'createdcategoriesicon', _AM_PUBLISHER_CATEGORIES_TITLE, _AM_PUBLISHER_CATEGORIES_DSC); + + echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; + echo "<tr>"; + echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCATEGORYNAME . "</strong></td>"; + echo "<td width='60' class='bg3' width='65' align='center'><strong>" . _CO_PUBLISHER_WEIGHT . "</strong></td>"; + echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; + echo "</tr>"; + $totalCategories = $publisher->getCategoryHandler()->getCategoriesCount(0); + if (count($categoriesObj) > 0) { + foreach ($categoriesObj as $key => $thiscat) { + publisher_displayCategory($thiscat); + } + } else { + echo "<tr>"; + echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOCAT . "</td>"; + echo "</tr>"; + $categoryid = '0'; + } + echo "</table>\n"; + $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_perpage'), $startcategory, 'startcategory'); + echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; + echo "<br />"; + PublisherUtils::closeCollapsableBar('createdcategories', 'createdcategoriesicon'); + echo "<br>"; + //editcat(false); + break; +} + +$xoops->footer(); + +function publisher_displayCategory(PublisherCategory $categoryObj, $level = 0) +{ + $publisher = Publisher::getInstance(); + + $description = $categoryObj->getVar('description'); + if (!XOOPS_USE_MULTIBYTES) { + if (strlen($description) >= 100) { + $description = substr($description, 0, (100 - 1)) . "..."; + } + } + $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->getVar('categoryid') . "&parentid=" . $categoryObj->getVar('parentid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>"; + $delete = "<a href='category.php?op=del&categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>"; + + $spaces = ''; + for ($j = 0; $j < $level; $j++) { + $spaces .= ' '; + } + + echo "<tr>"; + echo "<td class='even' align='left'>" . $spaces . "<a href='" . PUBLISHER_URL . "/category.php?categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/subcat.gif' alt='' /> " . $categoryObj->getVar('name') . "</a></td>"; + echo "<td class='even' align='center'>" . $categoryObj->getVar('weight') . "</td>"; + echo "<td class='even' align='center'> $modify $delete </td>"; + echo "</tr>"; + $subCategoriesObj = $publisher->getCategoryHandler()->getCategories(0, 0, $categoryObj->getVar('categoryid')); + if (count($subCategoriesObj) > 0) { + $level++; + foreach ($subCategoriesObj as $thiscat) { + publisher_displayCategory($thiscat, $level); + } + } + unset($categoryObj); +} + +function publisher_editCat($showmenu = false, $categoryid = 0, $nb_subcats = 4, $categoryObj = null) +{ + $xoops = Xoops::getInstance(); + $publisher = Publisher::getInstance(); + /* @var $categoryObj PublisherCategory */ + + // if there is a parameter, and the id exists, retrieve data: we're editing a category + if ($categoryid != 0) { + // Creating the category object for the selected category + $categoryObj = $publisher->getCategoryHandler()->get($categoryid); + if ($categoryObj->notLoaded()) { + $xoops->redirect("category.php", 1, _AM_PUBLISHER_NOCOLTOEDIT); + } + } else { + if (!$categoryObj) { + $categoryObj = $publisher->getCategoryHandler()->create(); + } + } + + if ($categoryid != 0) { + if ($showmenu) { + //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_EDITING); + } + echo "<br />\n"; + PublisherUtils::openCollapsableBar('edittable', 'edittableicon', _AM_PUBLISHER_EDITCOL, _AM_PUBLISHER_CATEGORY_EDIT_INFO); + } else { + if ($showmenu) { + //publisher_adminMenu(1, _AM_PUBLISHER_CATEGORIES . " > " . _AM_PUBLISHER_CREATINGNEW); + } + PublisherUtils::openCollapsableBar('createtable', 'createtableicon', _AM_PUBLISHER_CATEGORY_CREATE, _AM_PUBLISHER_CATEGORY_CREATE_INFO); + } + + /* @var $sform PublisherCategoryForm */ + $sform = $publisher->getForm($categoryObj, 'category'); + $sform->setSubCatsCount($nb_subcats); + $sform->display(); + + if (!$categoryid) { + PublisherUtils::closeCollapsableBar('createtable', 'createtableicon'); + } else { + PublisherUtils::closeCollapsableBar('edittable', 'edittableicon'); + } + + //Added by fx2024 + if ($categoryid) { + $sel_cat = $categoryid; + + PublisherUtils::openCollapsableBar('subcatstable', 'subcatsicon', _AM_PUBLISHER_SUBCAT_CAT, _AM_PUBLISHER_SUBCAT_CAT_DSC); + // Get the total number of sub-categories + $categoriesObj = $publisher->getCategoryHandler()->get($sel_cat); + $totalsubs = $publisher->getCategoryHandler()->getCategoriesCount($sel_cat); + // creating the categories objects that are published + $subcatsObj = $publisher->getCategoryHandler()->getCategories(0, 0, $categoriesObj->getVar('categoryid')); + + echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; + echo "<tr>"; + echo "<td width='60' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATID . "</strong></td>"; + echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_CATCOLNAME . "</strong></td>"; + echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_SUBDESCRIPT . "</strong></td>"; + echo "<td width='60' class='bg3' align='right'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; + echo "</tr>"; + if ($totalsubs > 0) { + /* @var $subcat PublisherCategory */ + foreach ($subcatsObj as $subcat) { + $modify = "<a href='category.php?op=mod&categoryid=" . $subcat->getVar('categoryid') . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_MODIFY . "' alt='" . _AM_PUBLISHER_MODIFY . "' /></a>"; + $delete = "<a href='category.php?op=del&categoryid=" . $subcat->getVar('categoryid') . "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETE . "' alt='" . _AM_PUBLISHER_DELETE . "' /></a>"; + echo "<tr>"; + echo "<td class='head' align='left'>" . $subcat->getVar('categoryid') . "</td>"; + echo "<td class='even' align='left'><a href='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/category.php?categoryid=" . $subcat->getVar('categoryid') . "&parentid=" . $subcat->getVar('parentid'). "'>" . $subcat->getVar('name') . "</a></td>"; + echo "<td class='even' align='left'>" . $subcat->getVar('description') . "</td>"; + echo "<td class='even' align='right'> {$modify} {$delete} </td>"; + echo "</tr>"; + } + } else { + echo "<tr>"; + echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOSUBCAT . "</td>"; + echo "</tr>"; + } + echo "</table>\n"; + echo "<br />\n"; + PublisherUtils::closeCollapsableBar('subcatstable', 'subcatsicon'); + + PublisherUtils::openCollapsableBar('bottomtable', 'bottomtableicon', _AM_PUBLISHER_CAT_ITEMS, _AM_PUBLISHER_CAT_ITEMS_DSC); + $startitem = PublisherRequest::getInt('startitem'); + // Get the total number of published ITEMS + $totalitems = $publisher->getItemHandler()->getItemsCount($sel_cat, array(_PUBLISHER_STATUS_PUBLISHED)); + // creating the items objects that are published + $itemsObj = $publisher->getItemHandler()->getAllPublished($publisher->getConfig('idxcat_perpage'), $startitem, $sel_cat); + $totalitemsOnPage = count($itemsObj); + $allcats = $publisher->getCategoryHandler()->getObjects(null, true); + echo "<table width='100%' cellspacing=1 cellpadding=3 border=0 class = outer>"; + echo "<tr>"; + echo "<td width='40' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ITEMID . "</strong></td>"; + echo "<td width='20%' class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMCOLNAME . "</strong></td>"; + echo "<td class='bg3' align='left'><strong>" . _AM_PUBLISHER_ITEMDESC . "</strong></td>"; + echo "<td width='90' class='bg3' align='center'><strong>" . _AM_PUBLISHER_CREATED . "</strong></td>"; + echo "<td width='60' class='bg3' align='center'><strong>" . _AM_PUBLISHER_ACTION . "</strong></td>"; + echo "</tr>"; + if ($totalitems > 0) { + for ($i = 0; $i < $totalitemsOnPage; $i++) { + $categoryObj =& $allcats[$itemsObj[$i]->getVar('categoryid')]; + $modify = "<a href='item.php?op=mod&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITITEM . "' alt='" . _AM_PUBLISHER_EDITITEM . "' /></a>"; + $delete = "<a href='item.php?op=del&itemid=" . $itemsObj[$i]->getVar('itemid'). "'><img src='" . XOOPS_URL . "/modules/" . $publisher->getModule()->dirname() . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETEITEM . "' alt='" . _AM_PUBLISHER_DELETEITEM . "'/></a>"; + echo "<tr>"; + echo "<td class='head' align='center'>" . $itemsObj[$i]->getVar('itemid'). "</td>"; + echo "<td class='even' align='left'>" . $categoryObj->getVar('name') . "</td>"; + echo "<td class='even' align='left'>" . $itemsObj[$i]->getitemLink() . "</td>"; + echo "<td class='even' align='center'>" . $itemsObj[$i]->datesub('s') . "</td>"; + echo "<td class='even' align='center'> $modify $delete </td>"; + echo "</tr>"; + } + } else { + echo "<tr>"; + echo "<td class='head' align='center' colspan= '7'>" . _AM_PUBLISHER_NOITEMS . "</td>"; + echo "</tr>"; + } + echo "</table>\n"; + echo "<br />\n"; + $parentid = PublisherRequest::getInt('parentid'); + $pagenav_extra_args = "op=mod&categoryid=$sel_cat&parentid=$parentid"; + $pagenav = new XoopsPageNav($totalitems, $publisher->getConfig('idxcat_perpage'), $startitem, 'startitem', $pagenav_extra_args); + echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; + echo "<input type='button' name='button' onclick=\"location='item.php?op=mod&categoryid=" . $sel_cat . "'\" value='" . _AM_PUBLISHER_CREATEITEM . "'> "; + echo "</div>"; + } + //end of fx2024 code +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/category.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/clone.php 2012-12-12 23:47:08 UTC (rev 10375) @@ -0,0 +1,164 @@ +<?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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Publisher + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include_once dirname(__FILE__) . "/admin_header.php"; + +$xoops = Xoops::getInstance(); +PublisherUtils::cpHeader(); +//publisher_adminMenu(-1, _AM_PUBLISHER_CLONE); +PublisherUtils::openCollapsableBar('clone', 'cloneicon', _AM_PUBLISHER_CLONE, _AM_PUBLISHER_CLONE_DSC); + +if (@$_POST['op'] == 'submit') { + + if (!$xoops->security()->check()) { + $xoops->redirect('clone.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + + $clone = $_POST['clone']; + + //check if name is valid + if (empty($clone) || preg_match('/[^a-zA-Z0-9\_\-]/', $clone)) { + $xoops->redirect('clone.php', 3, sprintf(_AM_PUBLISHER_CLONE_INVALIDNAME, $clone)); + exit(); + } + + // Check wether the cloned module exists or not + if ($clone && is_dir(XOOPS_ROOT_PATH . '/modules/' . $clone)) { + $xoops->redirect('clone.php', 3, sprintf(_AM_PUBLISHER_CLONE_EXISTS, $clone)); + } + + $patterns = array( + strtolower(PUBLISHER_DIRNAME) => strtolower($clone), + strtoupper(PUBLISHER_DIRNAME) => strtoupper($clone), + ucfirst(strtolower(PUBLISHER_DIRNAME)) => ucfirst(strtolower($clone)) + ); + + $patKeys = array_keys($patterns); + $patValues = array_values($patterns); + publisher_cloneFileFolder(PUBLISHER_ROOT_PATH); + $logocreated = publisher_createLogo(strtolower($clone)); + + $msg = ""; + if (is_dir(XOOPS_ROOT_PATH . '/modules/' . strtolower($clone))) { + $msg .= sprintf(_AM_PUBLISHER_CLONE_CONGRAT, "<a href='" . XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin'>" . ucfirst(strtolower($clone)) . "</a>") . "<br />\n"; + if (!$logocreated) { + $msg .= _AM_PUBLISHER_CLONE_IMAGEFAIL; + } + } else { + $msg .= _AM_PUBLISHER_CLONE_FAIL; + } + echo $msg; + +} else { + $form = new XoopsThemeForm(sprintf(_AM_PUBLISHER_CLONE_TITLE, $publisher->getModule()->getVar('name', 'E')), 'clone', 'clone.php', 'post', true); + $clone = new XoopsFormText(_AM_PUBLISHER_CLONE_NAME, 'clone', 20, 20, ''); + $clone->setDescription(_AM_PUBLISHER_CLONE_NAME_DSC); + $form->addElement($clone, true); + $form->addElement(new XoopsFormHidden('op', 'submit')); + $form->addElement(new XoopsFormButton('', '', _SUBMIT, 'submit')); + $form->display(); +} + +// End of collapsable bar +PublisherUtils::closeCollapsableBar('clone', 'cloneicon'); +$xoops->footer(); + +// work around for PHP < 5.0.x +if (!function_exists('file_put_contents')) { + function file_put_contents($filename, $data, $file_append = false) + { + if ($fp = fopen($filename, (!$file_append ? 'w+' : 'a+'))) { + fputs($fp, $data); + fclose($fp); + } + } +} + +// recursive clonning script +function publisher_cloneFileFolder($path) +{ + global $patKeys; + global $patValues; + + $newPath = str_replace($patKeys[0], $patValues[0], $path); + + if (is_dir($path)) { + // create new dir + mkdir($newPath); + + // check all files in dir, and process it + if ($handle = opendir($path)) { + while ($file = readdir($handle)) { + if ($file != '.' && $file != '..' && $file != '.svn') { + publisher_cloneFileFolder("{$path}/{$file}"); + } + } + closedir($handle); + } + } else { + + if (preg_match('/(.jpg|.gif|.png|.zip)$/i', $path)) { + // image + copy($path, $newPath); + } else { + // file, read it + $content = file_get_contents($path); + $content = str_replace($patKeys, $patValues, $content); + file_put_contents($newPath, $content); + } + } +} + +function publisher_createLogo($dirname) +{ + if (!extension_loaded("gd")) { + return false; + } else { + $required_functions = array("imagecreatetruecolor", "imagecolorallocate", "imagefilledrectangle", "imagejpeg", "imagedestroy", "imageftbbox"); + foreach ($required_functions as $func) { + if (!function_exists($func)) { + return false; + } + } + } + + if (!file_exists($imageBase = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/module_logo.png") || !file_exists($font = XOOPS_ROOT_PATH . "/modules/" . $dirname . "/images/VeraBd.ttf")) { + return false; + } + + $imageModule = imagecreatefrompng($imageBase); + + //Erase old text + $grey_color = imagecolorallocate($imageModule, 237, 237, 237); + imagefilledrectangle($imageModule, 5, 35, 85, 46, $grey_color); + + // Write text + $text_color = imagecolorallocate($imageModule, 0, 0, 0); + $space_to_border = (80 - strlen($dirname) * 6.5) / 2; + imagefttext($imageModule, 8.5, 0, $space_to_border, 45, $text_color, $font, ucfirst($dirname), array()); + + // Set transparency color + $white = imagecolorallocatealpha($imageModule, 255, 255, 255, 127); + imagefill($imageModule, 0, 0, $white);... [truncated message content] |
From: <tr...@us...> - 2012-12-14 00:27:01
|
Revision: 10388 http://sourceforge.net/p/xoops/svn/10388 Author: trabis Date: 2012-12-14 00:26:58 +0000 (Fri, 14 Dec 2012) Log Message: ----------- Use jquery theme selected in preferences Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form-tab.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/modulepreference.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form-tab.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form-tab.php 2012-12-14 00:12:33 UTC (rev 10387) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form-tab.php 2012-12-14 00:26:58 UTC (rev 10388) @@ -26,7 +26,8 @@ //tabtray is the tabs holder, //if you are using many tabtrays, or even nested tabtrays, you should use diferent ids -$tabtray = new XoopsFormTabTray('', 'uniqueid'); +//we are going to use the theme we have selected in system preferences +$tabtray = new XoopsFormTabTray('', 'uniqueid', $xoops->getModuleConfig('jquery_theme', 'system')); //Now we create our tabs //Tabs should also have unique ids Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/item.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/item.php 2012-12-14 00:12:33 UTC (rev 10387) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/form/item.php 2012-12-14 00:26:58 UTC (rev 10388) @@ -73,7 +73,7 @@ parent::__construct('title', 'form', $xoops->getEnv('PHP_SELF')); $this->setExtra('enctype="multipart/form-data"'); - $tabtray = new XoopsFormTabTray('', 'uniqueid'); + $tabtray = new XoopsFormTabTray('', 'uniqueid', $xoops->getModuleConfig('jquery_theme', 'system')); $mainTab = new XoopsFormTab(_CO_PUBLISHER_TAB_MAIN, 'maintab'); // Category Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/modulepreference.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/modulepreference.php 2012-12-14 00:12:33 UTC (rev 10387) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/modulepreference.php 2012-12-14 00:26:58 UTC (rev 10388) @@ -74,7 +74,7 @@ } } - $tabtray = new XoopsFormTabTray('', 'pref_tabtay','redmond' ); + $tabtray = new XoopsFormTabTray('', 'pref_tabtay', $xoops->getModuleConfig('jquery_theme', 'system')); $tabs = array(); foreach ($configCats as $name => $info) { $tabs[$name] = new XoopsFormTab($info['name'], 'pref_tab_' . $name); |
From: <tr...@us...> - 2012-12-16 00:34:54
|
Revision: 10399 http://sourceforge.net/p/xoops/svn/10399 Author: trabis Date: 2012-12-16 00:34:51 +0000 (Sun, 16 Dec 2012) Log Message: ----------- First implementation of search module. I'll need to implement a plugin mechanism now. Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/search.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/search.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/search.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/search.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,76 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class SearchSearchForm extends XoopsThemeForm +{ + /** + * We are not using this for objects but we need to override the constructor + * @param null $obj + */ + public function __construct($obj = null) + { + } + + public function getSearchFrom($andor, $queries,$mids, $mid) + { + $xoops = Xoops::getInstance(); + $search = Search::getInstance(); + // create form + parent::__construct(_MD_SEARCH, 'search', 'index.php', 'get'); + + // create form elements + $this->addElement(new XoopsFormText(_MD_SEARCH_KEYWORDS, 'query', 30, 255, htmlspecialchars(stripslashes(implode(' ', $queries)), ENT_QUOTES)), true); + $type_select = new XoopsFormSelect(_MD_SEARCH_TYPE, 'andor', $andor); + $type_select->addOptionArray(array( + 'AND' => _MD_SEARCH_ALL, 'OR' => _MD_SEARCH_ANY, 'exact' => _MD_SEARCH_EXACT + )); + $this->addElement($type_select); + if (!empty($mids)) { + $mods_checkbox = new XoopsFormCheckBox(_MD_SEARCH_SEARCHIN, 'mids[]', $mids); + } else { + $mods_checkbox = new XoopsFormCheckBox(_MD_SEARCH_SEARCHIN, 'mids[]', $mid); + } + if (empty($modules)) { + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('hassearch', 1)); + $criteria->add(new Criteria('isactive', 1)); + if (isset($available_modules) && !empty($available_modules)) { + $criteria->add(new Criteria('mid', '(' . implode(',', $available_modules) . ')', 'IN')); + } + $module_handler = $xoops->getHandlerModule(); + $mods_checkbox->addOptionArray($module_handler->getNameList($criteria)); + } else { + /* @var $module XoopsModule */ + $module_array = array(); + foreach ($modules as $mid => $module) { + $module_array[$mid] = $module->getVar('name'); + } + $mods_checkbox->addOptionArray($module_array); + } + $this->addElement($mods_checkbox); + if ($search->getConfig('keyword_min') > 0) { + $this->addElement(new XoopsFormLabel(_MD_SEARCH_SEARCHRULE, sprintf(_MD_SEARCH_KEYIGNORE, $search->getConfig('keyword_min')))); + } + $this->addElement(new XoopsFormHidden('action', 'results')); + $this->addElement(new XoopsFormHiddenToken('id')); + $this->addElement(new XoopsFormButton('', 'submit', _MD_SEARCH, 'submit')); + return $this; + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/form/search.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/search.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/search.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/search.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,32 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +class Search extends Xoops_Module_Abstract +{ + /** + * Init the module + * + * @return null|void + */ + public function init() + { + $this->setDirname('search'); + } +} Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/class/search.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/logo_large.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/logo_large.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/logo_small.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/icons/logo_small.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/index.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,298 @@ +<?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. +*/ + +/** + * XOOPS global search + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL) + * @package core + * @since 2.0.0 + * @author Kazumi Ono (AKA onokazu) + * @author Taiwen Jiang <ph...@us...> + * @version $Id$ + * @todo Modularize; Both search algorithms and interface will be redesigned + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$search = Search::getInstance(); + +if (!$search->getConfig('enable_search')) { + header('Location: ' . XOOPS_URL . '/index.php'); + exit(); +} +$action = "search"; +if (!empty($_GET['action'])) { + $action = trim(strip_tags($_GET['action'])); +} else { + if (!empty($_POST['action'])) { + $action = trim(strip_tags($_POST['action'])); + } +} +$query = ""; +if (!empty($_GET['query'])) { + $query = trim(strip_tags($_GET['query'])); +} else { + if (!empty($_POST['query'])) { + $query = trim(strip_tags($_POST['query'])); + } +} +$andor = "AND"; +if (!empty($_GET['andor'])) { + $andor = trim(strip_tags($_GET['andor'])); +} else { + if (!empty($_POST['andor'])) { + $andor = trim(strip_tags($_POST['andor'])); + } +} +$mid = $uid = $start = 0; +if (!empty($_GET['mid'])) { + $mid = intval($_GET['mid']); +} else { + if (!empty($_POST['mid'])) { + $mid = intval($_POST['mid']); + } +} +if (!empty($_GET['uid'])) { + $uid = intval($_GET['uid']); +} else { + if (!empty($_POST['uid'])) { + $uid = intval($_POST['uid']); + } +} +if (!empty($_GET['start'])) { + $start = intval($_GET['start']); +} else { + if (!empty($_POST['start'])) { + $start = intval($_POST['start']); + } +} + +$queries = array(); +$mids = array(); + +if ($action == "results") { + if ($query == "") { + $xoops->redirect("index.php", 1, _MD_SEARCH_PLZENTER); + } +} else { + if ($action == "showall") { + if ($query == "" || empty($mid)) { + $xoops->redirect("index.php", 1, _MD_SEARCH_PLZENTER); + } + } else { + if ($action == "showallbyuser") { + if (empty($mid) || empty($uid)) { + $xoops->redirect("index.php", 1, _MD_SEARCH_PLZENTER); + } + } + } +} + +$gperm_handler = $xoops->getHandlerGroupperm(); +$available_modules = $gperm_handler->getItemIds('module_read', $search->getUserGroups()); +if ($action == 'search') { + $xoops->header(); + + /* @var $formHandler SearchForm */ + $formHandler = $search->getForm(null, 'search'); + $form = $formHandler->getSearchFrom($andor, $queries,$mids, $mid); + $form->display(); + + $xoops->footer(); +} +if ($andor != "OR" && $andor != "exact" && $andor != "AND") { + $andor = "AND"; +} +$ignored_queries = array(); // holds kewords that are shorter than allowed minmum length +$myts = MyTextSanitizer::getInstance(); +if ($action != 'showallbyuser') { + if ($andor != "exact") { + $temp_queries = preg_split('/[\s,]+/', $query); + foreach ($temp_queries as $q) { + $q = trim($q); + if (strlen($q) >= $search->getConfig('keyword_min')) { + $queries[] = $myts->addSlashes($q); + $queries_pattern[] = '~(' . $q . ')~sUi'; + } else { + $ignored_queries[] = $myts->addSlashes($q); + } + } + if (count($queries) == 0) { + $xoops->redirect('index.php', 2, sprintf(_MD_SEARCH_KEYTOOSHORT, $search->getConfig('keyword_min'))); + } + } else { + $query = trim($query); + if (strlen($query) < $search->getConfig('keyword_min')) { + $xoops->redirect('index.php', 2, sprintf(_MD_SEARCH_KEYTOOSHORT, $search->getConfig('keyword_min'))); + } + $queries = array($myts->addSlashes($query)); + $queries_pattern[] = '~(' . $myts->addSlashes($query) . ')~sUi'; + } +} + +switch ($action) { + case "results": + $module_handler = $xoops->getHandlerModule(); + $criteria = new CriteriaCompo(new Criteria('hassearch', 1)); + $criteria->add(new Criteria('isactive', 1)); + $criteria->add(new Criteria('mid', "(" . implode(',', $available_modules) . ")", 'IN')); + $modules = $module_handler->getObjectsArray($criteria, true); + $mids = isset($_REQUEST['mids']) ? $_REQUEST['mids'] : array(); + if (empty($mids) || !is_array($mids)) { + unset($mids); + $mids = array_keys($modules); + } + $xoops->header('module:search|search.html'); + $nomatch = true; + $xoops->tpl()->assign('search', true); + $xoops->tpl()->assign('queries', $queries); + $xoops->tpl()->assign('ignored_words', sprintf(_MD_SEARCH_IGNOREDWORDS, $search->getConfig('keyword_min'))); + $xoops->tpl()->assign('ignored_queries', $ignored_queries); + + $modules_result = array(); + foreach ($mids as $mid) { + $mid = intval($mid); + if (in_array($mid, $available_modules)) { + /* @var $module XoopsModule */ + $module = $modules[$mid]; + $results = $module->search($queries, $andor, 5, 0); + $count = count($results); + $mid = $module->getVar('mid'); + + $res = array(); + if (is_array($results) && $count > 0) { + $nomatch = false; + $modules_result[$mid]['name'] = $module->getVar('name'); + $modules_result[$mid]['image'] = 'modules/' . $module->getVar('dirname') . '/icons/logo_large.png'; + + $res = array(); + for ($i = 0; $i < $count; $i++) { + if (isset($results[$i]['image']) && $results[$i]['image'] != "") { + $res[$i]['image'] = 'modules/' . $module->getVar('dirname') . '/' . $results[$i]['image']; + } else { + $res[$i]['image'] = 'images/icons/posticon2.gif'; + } + if (!preg_match("/^http[s]*:\/\//i", $results[$i]['link'])) { + $res[$i]['link'] = 'modules/' . $module->getVar('dirname') . '/' . $results[$i]['link']; + } + $res[$i]['title'] = $myts->htmlspecialchars($results[$i]['title']); + $res[$i]['title_highligh'] = preg_replace( $queries_pattern, "<span class='searchHighlight'>$1</span>", $myts->htmlspecialchars($results[$i]['title'])); + if ( !empty($results[$i]['uid']) ) { + $res[$i]['uid'] = intval($results[$i]['uid']); + $res[$i]['uname'] = XoopsUser::getUnameFromId($results[$i]['uid'], true); + } + $res[$i]['time'] = !empty($results[$i]['time']) ? XoopsLocal::formatTimestamp(intval($results[$i]['time'])) : ""; + $res[$i]['content'] = empty($results[$i]['content']) ? "" : preg_replace( $queries_pattern, "<span class='searchHighlight'>$1</span>", $results[$i]['content']); + } + if ($count >= 5) { + $search_url = $search->url('index.php?query=' . urlencode(stripslashes(implode(' ', $queries)))); + $search_url .= "&mid={$mid}&action=showall&andor={$andor}"; + $modules_result[$mid]['search_url'] = htmlspecialchars($search_url); + } + } + if ( count($res) > 0 ) { + $modules_result[$mid]['result'] = $res; + } + } + unset($results); + unset($module); + } + $xoops->tpl()->assign('modules', $modules_result); + + /* @var $formHandler SearchForm */ + $formHandler = $search->getForm(null, 'search'); + $form = $formHandler->getSearchFrom($andor, $queries,$mids, $mid); + $form->display(); + break; + + case "showall": + case 'showallbyuser': + $xoops->header('module:search|search.html'); + $xoops->tpl()->assign('search', true); + $xoops->tpl()->assign('queries', $queries); + $xoops->tpl()->assign('ignored_words', sprintf(_MD_SEARCH_IGNOREDWORDS, $search->getConfig('keyword_min'))); + $xoops->tpl()->assign('ignored_queries', $ignored_queries); + + $module_handler = $xoops->getHandlerModule(); + $module = $module_handler->getById($mid); + $results = $module->search($queries, $andor, 20, $start, $uid); + + $modules_result[$mid]['name'] = $module->getVar('name'); + $modules_result[$mid]['image'] = 'modules/' . $module->getVar('dirname') . '/icons/logo_large.png'; + + $count = count($results); + if (is_array($results) && $count > 0) { + $next_results = $module->search($queries, $andor, 1, $start + 20, $uid); + $next_count = count($next_results); + $has_next = false; + if (is_array($next_results) && $next_count == 1) { + $has_next = true; + } + $xoops->tpl()->assign('sr_showing', sprintf(_MD_SEARCH_SHOWING, $start + 1, $start + $count)); + $res = array(); + for ($i = 0; $i < $count; $i++) { + if (isset($results[$i]['image']) && $results[$i]['image'] != "") { + $res[$i]['image'] = 'modules/' . $module->getVar('dirname') . '/' . $results[$i]['image']; + } else { + $res[$i]['image'] = 'images/icons/posticon2.gif'; + } + if (!preg_match("/^http[s]*:\/\//i", $results[$i]['link'])) { + $res[$i]['link'] = 'modules/' . $module->getVar('dirname') . '/' . $results[$i]['link']; + } + if (!preg_match("/^http[s]*:\/\//i", $results[$i]['link'])) { + $res[$i]['link'] = 'modules/' . $module->getVar('dirname') . '/' . $results[$i]['link']; + } + $res[$i]['title'] = $myts->htmlspecialchars($results[$i]['title']); + if (isset($queries_pattern)) { + $res[$i]['title_highligh'] = preg_replace( $queries_pattern, "<span class='searchHighlight'>$1</span>", $myts->htmlspecialchars($results[$i]['title'])); + } else { + $res[$i]['title_highligh'] = $myts->htmlspecialchars($results[$i]['title']); + } + if ( !empty($results[$i]['uid']) ) { + $res[$i]['uid'] = @intval($results[$i]['uid']); + $res[$i]['uname'] = XoopsUser::getUnameFromId($results[$i]['uid'], true); + } + $res[$i]['time'] = !empty($results[$i]['time']) ? " (" . XoopsLocal::formatTimestamp(intval($results[$i]['time'])) . ")" : ""; + $res[$i]['content'] = empty($results[$i]['content']) ? "" : preg_replace( $queries_pattern, "<span class='searchHighlight'>$1</span>", $results[$i]['content']); + } + if (count($res) > 0) { + $modules_result[$mid]['result'] = $res; + } + + $search_url = $search->url('index.php?query=' . urlencode(stripslashes(implode(' ', $queries)))); + $search_url .= "&mid={$mid}&action={$action}&andor={$andor}"; + if ($action == 'showallbyuser') { + $search_url .= "&uid={$uid}"; + } + if ($start > 0) { + $prev = $start - 20; + $search_url_prev = $search_url . "&start={$prev}"; + $modules_result[$mid]['prev'] = htmlspecialchars($search_url_prev); + + } + if (false != $has_next) { + $next = $start + 20; + $search_url_next = $search_url . "&start={$next}"; + $modules_result[$mid]['next'] = htmlspecialchars($search_url_next); + } + $xoops->tpl()->assign('modules', $modules_result); + } + + /* @var $formHandler SearchForm */ + $formHandler = $search->getForm(null, 'search'); + $form = $formHandler->getSearchFrom($andor, $queries,$mids, $mid); + $form->display(); + break; +} +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/main.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,39 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +define('_MD_SEARCH', 'Search'); +define('_MD_SEARCH_PLZENTER', 'Please enter all required data!'); +define('_MD_SEARCH_SEARCHRESULTS', 'Search Results'); +define('_MD_SEARCH_NOMATCH', 'No Match Found for your Query'); +define('_MD_SEARCH_FOUND', 'Found <strong>%s</strong> match(es)'); +define('_MD_SEARCH_SHOWING', '(Showing %d - %d)'); +define('_MD_SEARCH_ANY', 'Any (OR)'); +define('_MD_SEARCH_ALL', 'All (AND)'); +define('_MD_SEARCH_EXACT', 'Exact Match'); +define('_MD_SEARCH_SHOWALLR', 'Show all results'); +define('_MD_SEARCH_NEXT', 'Next >>'); +define('_MD_SEARCH_PREVIOUS', '<< Previous'); +define('_MD_SEARCH_KEYWORDS', 'Keyword(s)'); +define('_MD_SEARCH_TYPE', 'Type'); +define('_MD_SEARCH_SEARCHIN', 'Search in'); +define('_MD_SEARCH_KEYTOOSHORT', 'Keywords must be at least <strong>%s</strong> characters long'); +define('_MD_SEARCH_KEYIGNORE', 'Keywords shorter than <strong>%s</strong> characters will be ignored'); +define('_MD_SEARCH_SEARCHRULE', 'Search Rule'); +define('_MD_SEARCH_IGNOREDWORDS', 'The following words are shorter than allowed minmum length (%u chars) and were not included in your search:'); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/main.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +define('_MI_SEARCH_NAME', 'Search'); +define('_MI_SEARCH_DSC', 'Provides search ability for modules'); + +define("_MI_SEARCH_DOSEARCH", "Enable global searches?"); +define("_MI_SEARCH_DOSEARCHDSC", "Allow searching for posts/items within your site."); +define("_MI_SEARCH_MINSEARCH", "Minimum keyword length"); +define("_MI_SEARCH_MINSEARCHDSC", "Enter the minimum keyword length that users are required to enter to perform search"); + Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/core.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/core.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/core.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,38 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package publisher + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Search core preloads + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + */ +class SearchCorePreload extends XoopsPreloadItem +{ + static function eventCoreIncludeCommonEnd($args) + { + $path = dirname(dirname(__FILE__)); + XoopsLoad::addMap(array( + 'search' => $path . '/class/search.php', + )); + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/core.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/preloads/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/index.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/search.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/search.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/search.html 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,81 @@ +<fieldset> + <{if $search}> + <legend><{$smarty.const._MD_SEARCH_SEARCHRESULTS}></legend> + <div> + <{$smarty.const._MD_SEARCH_KEYWORDS}> : + <span class="bold"> + <{foreachq from=$queries item=query name=foo}> + <{$query}><{if !$smarty.foreach.foo.last}>,<{/if}> + <{/foreach}> + </span> + <{if $sr_showing}> + <br /> + <{$sr_showing}> + <{/if}> + </div> + <{if count($ignored_queries) != 0}> + <div> + <{$ignored_words}> : + <span class="bold"> + <{foreachq from=$ignored_queries item=query name=foo}> + <{$query}><{if !$smarty.foreach.foo.last}>,<{/if}> + <{/foreach}> + </span> + </div> + <{/if}> + <{/if}> + + <{if count($modules) > 0}> + <{foreachq from=$modules item=module name=foo}> + <div class="searchModule"> + <div class="searchIcon floatleft"> + <img src="<{$module.image}>" alt="<{$module.name}>"> + </div> + <div class="searchTitle floatleft"> + <{$module.name}> + </div> + <{if $module.search_url}> + <div class="floatright"> + <a href="<{$module.search_url}>" title="<{$smarty.const._MD_SEARCH_SHOWALLR}>"><{$smarty.const._MD_SEARCH_SHOWALLR}></a> + </div> + <{/if}> + <div class="clear"></div> + + <{foreach from=$module.result item=result}> + <div class="searchItem"> + <div class="bold"><a href="<{$result.link}>" title="<{$result.title}>"><{$result.title_highligh}></a></div> + <div><{$result.content}></div> + <span class='x-small'> + <{if $result.uid}> + <a href="<{$xoops_url}>/userinfo.php?uid=<{$result.uid}>" title="<{$result.uname}>"><{$result.uname}></a> + <{/if}> + <{if $result.time}> + (<{$result.time}>) + <{/if}> + </span> + </div> + <{/foreach}> + </div> + + <!-- prev / next --> + <{if $module.prev || $module.next}> + <div> + <{if $module.prev}> + <div class="floatleft"> + <a href="<{$module.prev}>" title="<{$smarty.const._MD_SEARCH_PREVIOUS}>"><{$smarty.const._MD_SEARCH_PREVIOUS}></a> + </div> + <{/if}> + <{if $module.next}> + <div class="floatright"> + <a href="<{$module.next}>" title="<{$smarty.const._MD_SEARCH_NEXT}>"><{$smarty.const._MD_SEARCH_NEXT}></a> + </div> + <{/if}> + </div> + <{/if}> + <{/foreach}> + <{else}> + <div class="searchModule bold"> + <{$smarty.const._MD_SEARCH_NOMATCH}> + </div> + <{/if}> +</fieldset> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php 2012-12-16 00:34:51 UTC (rev 10399) @@ -0,0 +1,88 @@ +<?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 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package logger + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +$modversion = array(); +$modversion['name'] = _MI_SEARCH_NAME; +$modversion['description'] = _MI_SEARCH_DSC; +$modversion['version'] = 0.1; +$modversion['author'] = 'Trabis'; +$modversion['nickname'] = 'trabis'; +$modversion['credits'] = 'The XOOPS Project'; +$modversion['license'] = 'GNU GPL 2.0'; +$modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/'; +$modversion['official'] = 1; +//$modversion['help'] = 'page=help'; +$modversion['image'] = 'images/logo.png'; +$modversion['dirname'] = 'search'; + +//about +$modversion['release_date'] = '2012/11/25'; +$modversion['module_website_url'] = 'http://www.xoops.org/'; +$modversion['module_website_name'] = 'XOOPS'; +$modversion['module_status'] = 'ALPHA 1'; +$modversion['min_php'] = '5.2'; +$modversion['min_xoops'] = '2.6.0'; +$modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7'); + +// paypal +$modversion['paypal'] = array(); +$modversion['paypal']['business'] = 'lus...@gm...'; +$modversion['paypal']['item_name'] = ''; +$modversion['paypal']['amount'] = 0; +$modversion['paypal']['currency_code'] = 'EUR'; + +// Admin menu +// Set to 1 if you want to display menu generated by system module +$modversion['system_menu'] = 1; + +/* + Manage extension + */ +$modversion['extension'] = 0; + +// Admin things +$modversion['hasAdmin'] = 0; + +// Menu +$modversion['hasMain'] = 1; + +// Search +$modversion['hasSearch'] = 0; + +/* + Blocks +*/ +$modversion['blocks'] = array(); + +// Preferences +$i = 0; +$modversion['config'][$i]['name'] = 'enable_search'; +$modversion['config'][$i]['title'] = '_MI_SEARCH_DOSEARCH'; +$modversion['config'][$i]['description'] = '_MI_SEARCH_DOSEARCHDSC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; + +$i++; +$modversion['config'][$i]['name'] = 'keyword_min'; +$modversion['config'][$i]['title'] = '_MI_SEARCH_MINSEARCH'; +$modversion['config'][$i]['description'] = '_MI_SEARCH_MINSEARCHDSC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 5; \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native |
From: <be...@us...> - 2012-12-16 19:12:00
|
Revision: 10415 http://sourceforge.net/p/xoops/svn/10415 Author: beckmi Date: 2012-12-16 19:11:53 +0000 (Sun, 16 Dec 2012) Log Message: ----------- Adding News module Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/amsimport.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/groupperms.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/upgrade.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/archive.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/article.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/backendt.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_archives.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_bigstory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_block_tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_moderate.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_randomnews.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_top.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topics.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topicsnav.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/blacklist.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/class.mimetype.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/class.newsstory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/class.newstopic.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/class.sfiles.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/keyhighlighter.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/news_stories.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/news_topics.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/registryfile.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/tree.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/Canvas.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/Dimension.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/Exception.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/FileMapperFactory.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/Image.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/OpFactory.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/PaletteImage.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/TrueColorImage.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/WideImage.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/fonts/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/fonts/Font_GDF.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/fonts/Font_TTF.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/mappers/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/mappers/ImageFileMapper_GD.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/mappers/ImageFileMapper_GD2.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/mappers/ImageFileMapper_GIF.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/mappers/ImageFileMapper_JPEG.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/mappers/ImageFileMapper_PNG.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/ApplyConvolution.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/ApplyFilter.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/ApplyMask.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/AsGrayscale.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/CopyChannelsPalette.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/CopyChannelsTrueColor.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/CorrectGamma.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Crop.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Flip.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/GetMask.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Merge.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Mirror.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Resize.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Rotate.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/wideimage/operations/Unsharp.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/xoopsstory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/xoopstopic.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/class/xoopstree.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/comment_delete.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/comment_edit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/comment_new.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/comment_post.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/comment_reply.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/css/print.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/css/style.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/install.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/lang.diff XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/lang_diff.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/licence.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/docs/upgrade.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/extra/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/extra/modules/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/extra/modules/tag/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/extra/modules/tag/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/extra/modules/tag/plugin/news.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/chinese.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/ex.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/courier.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/helvetica.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/helveticab.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/helveticabi.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/helveticai.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1250.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1251.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1252.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1253.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1254.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1255.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1257.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp1258.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/cp874.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-1.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-11.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-15.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-16.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-2.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-4.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-5.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-7.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/iso-8859-9.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/koi8-r.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/koi8-u.map XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/makefont/makefont.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/symbol.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/times.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/timesb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/timesbi.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/timesi.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/font/zapfdingbats.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/fpdf.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/fpdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/gif.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/japanese.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/korean.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/english.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/french.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/japanese.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/korean.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/schinese.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/language/tchinese.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/makepdf_class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/fpdf/makepdf_config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/active.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/articles.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/export.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/help.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/home.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/maintain.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/metagen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/newsletter.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/options.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/permissions.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/purge.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/statistics.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/topics.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/dojo/update.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/hover.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/left_both.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/news.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/news_slogo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/right_both.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/selected.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/selectedEnd.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/selectedStart.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/selected_left_F90.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/selected_right_F90.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/topics/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/topics/blank.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/topics/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/topics/xoops.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/unselected.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/unselectedEnd.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/unselected_left.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/images/unselected_right.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/comment_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/install_function.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/notification.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/pagenav.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/search.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/storyform.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/storyform.original.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/update_function.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/dojo.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/a11y.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/color.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/common.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/display.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/iframe.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/layout.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/metrics.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/selection.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/shadow.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/style.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/html/util.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/array.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/assert.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/common.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/declare.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/extras.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/func.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/repr.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/timing/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/timing/Streamer.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/timing/Timer.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/timing/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lang/type.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/Animation.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/extras.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/html.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/rounded.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/shadow.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/lfx/toggle.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/ns.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/uri/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/uri/Uri.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/uri/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/DomWidget.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/FisheyeList.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/HtmlWidget.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/Manager.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/Parse.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/Widget.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/templates/FisheyeList.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/templates/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/widget/templates/images/tab_close.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/xml/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/xml/Parse.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/xml/XslTransform.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/js/src/xml/__package__.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/category_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/global_newcategory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/global_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/global_storysubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/story_approve_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/mail_template/topic_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/english/newsletter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/category_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/global_newcategory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/global_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/global_storysubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/story_approve_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/mail_template/topic_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/englishUTF8/newsletter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/category_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/global_newcategory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/global_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/global_storysubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/story_approve_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/mail_template/topic_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/french/newsletter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/category_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/global_newcategory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/global_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/global_storysubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/story_approve_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/mail_template/topic_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/frenchUTF8/newsletter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/category_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/global_newcategory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/global_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/global_storysubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/story_approve_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/mail_template/topic_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/german/newsletter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/aggiornamento.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/global_newcategory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/global_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/global_storysubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/story_approve_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/mail_template/topic_newstory_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/language/italian/newsletter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/list.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/makepdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/micro_summary.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/newsbythisauthor.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/notification_update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/print.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/ratenews.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/seo/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/seo/.htaccess XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/seo/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/submit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_archives.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_bigstory.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_moderate.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_randomnews.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_top.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_topicnav.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_block_topics.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_cloud.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_top.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_archive.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_article.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_by_this_author.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_by_topic.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_item.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_ratenews.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_rss.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_topics_directory.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_whos_who.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/topics_directory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/view.tag.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/visit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/whoswho.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/xoops_version.php Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/about.php 2012-12-16 19:11:53 UTC (rev 10415) @@ -0,0 +1,30 @@ +<?php +/** + * News module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package News + * @since 2.5.0 + * @author XOOPS Development Team + * @version $Id $ + **/ +include_once dirname(__FILE__) . '/admin_header.php'; + +//xoops_cp_header(); +//$xoops->header($xoops->getOption('template_main')); +$xoops->header('template_main'); + +$aboutAdmin = new XoopsModuleAdmin(); + +echo $aboutAdmin->renderNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/about.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_footer.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_footer.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_footer.php 2012-12-16 19:11:53 UTC (rev 10415) @@ -0,0 +1,25 @@ +<?php +/** + * News module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package News + * @since 1.6.7 + * @author Mamba (www.xoops.org) + * @version $Id $ +**/ + +echo"<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" + . " <a href='http://www.xoops.org' rel='external'><img src=" . XOOPS_URL . "/media/xoops/images/xoopsmicrobutton.gif alt='XOOPS' title='XOOPS'></a>\n" + . " </div>\n" . " " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . "</div>"; + +//$xoops->footer($xoops->getOption('template_main')); +$xoops->footer('template_main'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_footer.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_header.php 2012-12-16 19:11:53 UTC (rev 10415) @@ -0,0 +1,71 @@ +<?php +/** + * News module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package news + * @since 1.6.7 + * @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'); +$thisModulePath = dirname(dirname(__FILE__)); + +//if functions.php file exist +require_once dirname(dirname(__FILE__)) . '/include/functions.php'; +//require_once $thisModulePath . '/include/functions.php'; + +// Load language files +$xoops = Xoops::getInstance(); +$xoops->loadLanguage('admin', $thisModuleDir); +$xoops->loadLanguage('modinfo', $thisModuleDir); +$xoops->loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) { + include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); +} else { + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, FALSE); +} + + +$topicsHandler= $xoops->getModuleHandler('news_topics','news'); +$storiesHandler= $xoops->getModuleHandler('news_stories','news'); + +$myts = MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler = $xoops->getHandlerGroupperm(); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathIcon16', $pathIcon16); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/admin_header.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/amsimport.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/amsimport.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/amsimport.php 2012-12-16 19:11:53 UTC (rev 10415) @@ -0,0 +1,257 @@ +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +/** + * AMS Import + * + * This script will import topics, articles, files, links, ratings, comments and notifications from AMS 2.41 + * + * @package News + * @author Herv\xE9 Thouzard (http://www.herve-thouzard.com) + * @copyright 2005, 2006 - Herv\xE9 Thouzard + * @version 1.0 + */ + +include_once '../../../include/cp_header.php'; +//xoops_cp_header(); +//$xoops->header($xoops->getOption('template_main')); +$xoops->header('template_main'); +include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.sfiles.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newstopic.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; + +if (is_object($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid())) { + if(!isset($_POST['go']) ) { + echo '<h1>Welcome to the AMS 2.41 import script</h1>'; + echo '<br /><br />Select the import options you wan to use :'; + echo "<form method='post' action='amsimport.php'>"; + echo "<br /><input type='checkbox' name='useforum' value='1' /> Import forums links inside news (at the bottom of the news)"; + echo "<br /><input type='checkbox' name='useextlinks' value='1' /> Import external links inside news (at the bottom of the news)"; + echo "<br /><br /><input type='submit' name='go' value='Import' />"; + echo '</form>'; + echo "<br /><br />If you check the two last options then the forum's link and all the external links will be added at the end of the body text."; + } else { + // Launch the import + if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php')) { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php'; + } else { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/main.php'; + } + if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php')) { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php'; + } else { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/admin.php'; + } + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + // User's choices + $use_forum = (isset($_POST['useforum']) && $_POST['useforum']==1) ? 1 : 0; + $use_extlinks = (isset($_POST['useextlinks']) && $_POST['useextlinks']==1) ? 1 : 0; + // Retreive News module's ID + $module_handler = $xoops->getHandlerGroupperm(); + + $newsModule = $module_handler->getByDirname('news'); + $news_mid = $newsModule->getVar('mid'); + // Retreive AMS module's ID + $AmsModule = $module_handler->getByDirname('AMS'); + $ams_mid = $AmsModule->getVar('mid'); + + // Retreive AMS tables names + $ams_topics = $xoopsDB->prefix('ams_topics'); + $ams_articles = $xoopsDB->prefix('ams_article'); + $ams_text = $xoopsDB->prefix('ams_text'); + $ams_files = $xoopsDB->prefix('ams_files'); + $ams_links = $xoopsDB->prefix('ams_link'); + $ams_rating = $xoopsDB->prefix('ams_rating'); + // Retreive News tables names + $news_stories_votedata = $xoopsDB->prefix('stories_votedata'); + // Misc + $comment_handler =& xoops_gethandler('comment'); + $notification_handler =& xoops_gethandler('notification'); + $ams_news_topics=array(); // Key => AMS Id, Value => News ID + + // The import by itself + // Read topics by their order + $mytree = new XoopsTree($ams_topics,'topic_id','topic_pid'); + $ams_topics = $mytree->getChildTreeArray(0,'weight'); + foreach($ams_topics as $one_amstopic) { + // First we create the topic + $topicpid=0; + if($one_amstopic['topic_pid']!=0) { // Search for its the parent + if(array_key_exists($one_amstopic['topic_pid'],$ams_news_topics)) { + $topicpid=$ams_news_topics[$one_amstopic['topic_pid']]; + } + } + $news_topic = new NewsTopic(); + $news_topic->setTopicPid($topicpid); + $news_topic->setTopicTitle($one_amstopic['topic_title']); + $news_topic->setTopicImgurl($one_amstopic['topic_imgurl']); + $news_topic->setMenu(0); + $news_topic->setTopicFrontpage(1); + $news_topic->Settopic_rssurl(''); + $news_topic->setTopicDescription(''); + $news_topic->setTopic_color('000000'); + $news_topic->store(); + echo '<br>- The following topic was imported : '.$news_topic->topic_title(); + $ams_topicid = $one_amstopic['topic_id']; + $news_topicid = $news_topic->topic_id(); + $ams_news_topics[$ams_topicid] = $news_topicid; + + // Then we insert all its articles + $result = $db->query('SELECT * FROM '.$ams_articles.' WHERE topicid='.$ams_topicid.' ORDER BY created'); + while ( $article = $db->fetchArray($result) ) { + $ams_newsid = $article['storyid']; + + // We search for the last version + $result2 = $db->query('SELECT * FROM '.$ams_text.' WHERE storyid='.$ams_newsid.' AND current=1'); + $text_lastversion = $db->fetchArray($result2); + + // We search for the number of votes + $result3 = $db->query('SELECT count(*) as cpt FROM '.$ams_rating.' WHERE storyid='.$ams_newsid); + $votes = $db->fetchArray($result3); + + // The links + $links=''; + if($use_extlinks) { + $result7 = $db->query('SELECT * FROM '.$ams_links.' WHERE storyid='.$ams_newsid.' ORDER BY linkid'); + while ( $link = $db->fetchArray($result7) ) { + if(trim($links)=='') { + $links="\n\n"._AMS_NW_RELATEDARTICLES."\n\n"; + } + $links .= _AMS_NW_EXTERNALLINK.' [url='.$link['link_link'].']'.$link['link_title'].'[/url]'."\n"; + } + } + + // The forum + $forum=''; + if($use_forum && $one_amstopic['forum_id']!=0) { + $forum = "\n\n".'[url='.XOOPS_URL.'/modules/newbb/viewforum.php?forum='.$one_amstopic['forum_id'].']'._AMS_AM_LINKEDFORUM.'[/url]'."\n"; + } + + // We create the story + $news = new NewsStory(); + $news->setUid($text_lastversion['uid']); + $news->setTitle($article['title']); + $news->created=$article['created']; + $news->setPublished($article['published']); + $news->setExpired($article['expired']); + $news->setHostname($article['hostname']); + $news->setNohtml($article['nohtml']); + $news->setNosmiley($article['nosmiley']); + $news->setHometext($text_lastversion['hometext']); + $news->setBodytext($text_lastversion['bodytext'].$links.$forum); + $news->setKeywords(''); + $news->setDescription(''); + $news->counter=$article['counter']; + $news->setTopicId($news_topicid); + $news->setIhome($article['ihome']); + $news->setNotifyPub($article['notifypub']); + $news->story_type=$article['story_type']; + $news->setTopicdisplay($article['topicdisplay']); + $news->setTopicalign($article['topicalign']); + $news->setComments($article['comments']); + $news->rating=$article['rating']; + $news->votes=$votes['cpt']; + $approved = $article['published']>0 ? true : false; + $news->approved=$approved; + $news->store($approved); + echo '<br> This story was imported : '.$news->title(); + $news_newsid=$news->storyid(); // ******************** + + // The files + $result4 = $db->query('SELECT * FROM '.$ams_files.' WHERE storyid='.$ams_newsid); + while ( $file = $db->fetchArray($result4) ) { + $sfile = new sFiles(); + $sfile->setFileRealName($file['filerealname']); + $sfile->setStoryid($news_newsid); + $sfile->date=$file['date']; + $sfile->setMimetype($file['mimetype']); + $sfile->setDownloadname($file['downloadname']); + $sfile->counter=$file['counter']; + $sfile->store(); + echo '<br> This file was imported : '.$sfile->getDownloadname(); + $news_fileid=$sfile->fileid; + } + + // The ratings + $result5 = $db->query('SELECT * FROM '.$ams_rating.' WHERE storyid='.$ams_newsid); + while ( $ratings = $db->fetchArray($result5) ) { + $result6 = $db->queryF('INSERT INTO '.$news_stories_votedata." (storyid, ratinguser, rating, ratinghostname, ratingtimestamp) VALUES (".$news_newsid.','.$ratings['ratinguser'].','.$ratings['rating'].','.$ratings['ratinghostname'].','.$ratings['ratingtimestamp'].')'); + } + + // The comments + $comments =& $comment_handler->getByItemId($ams_mid, $ams_newsid, 'ASC'); + if(is_array($comments) && count($comments)>0) { + foreach($comments as $onecomment) { + $onecomment->setNew(); + $onecomment->setVar('com_modid',$news_mid); + $onecomment->setVar('com_itemid',$news_newsid); + $comment_handler->insert($onecomment); + } + } + unset($comments); + + // The notifications of this news + //$notifications =& $notification_handler->getByItemId($ams_mid, $ams_newsid, 'ASC'); + $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid)); + $criteria->add(new Criteria('not_itemid', $ams_newsid)); + $criteria->setOrder('ASC'); + $notifications = $notification_handler->getObjects($criteria); + if(is_array($notifications) && count($notifications)>0) { + foreach($notifications as $onenotification) { + $onenotification->setNew(); + $onenotification->setVar('not_modid',$news_mid); + $onenotification->setVar('not_itemid',$news_newsid); + $notification_handler->insert($onenotification); + } + } + unset($notifications); + } + } + // Finally, import all the globals notifications + $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid)); + $criteria->add(new Criteria('not_category', 'global')); + $criteria->setOrder('ASC'); + $notifications = $notification_handler->getObjects($criteria); + if(is_array($notifications) && count($notifications)>0) { + foreach($notifications as $onenotification) { + $onenotification->setNew(); + $onenotification->setVar('not_modid',$news_mid); + $onenotification->setVar('not_itemid',$news_newsid); + $notification_handler->insert($onenotification); + } + } + unset($notifications); + echo "<p><a href='".XOOPS_URL."/modules/news/admin/groupperms.php'>The import is finished, don't forget to verify and set the topics permissions !</a></p>"; + } +} else { + redirect_header(XOOPS_URL.'/modules/news/index.php', 3, _NOPERM); + exit(); +} +//$xoops->footer($xoops->getOption('template_main')); +$xoops->footer('template_main'); +?> Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/amsimport.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/functions.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/functions.php 2012-12-16 19:11:53 UTC (rev 10415) @@ -0,0 +1,86 @@ +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +/** + * Function used to display a menu similar to the launcher on OS X + * + * Enable webmasters to navigate thru the module's features. + * Each time you select an option in the admin panel of the news module, this option is highlighted in this menu + * + * NOTE : Please give credits if you copy this code ! + * + * @package News + * @author Herv\xE9 Thouzard (http://www.herve-thouzard.com) & Dojo Javscript Toolkit + * @copyright (c) Herv\xE9 Thouzard (http://www.herve-thouzard.com) + */ + +function news_collapsableBar($tablename = '', $iconname = '') +{ + + ?> + <script type="text/javascript"><!-- + function goto_URL(object) + { + window.location.href = object.options[object.selectedIndex].value; + } + + function toggle(id) + { + if (document.getElementById) { obj = document.getElementById(id); } + if (document.all) { obj = document.all[id]; } + if (document.layers) { obj = document.layers[id]; } + if (obj) { + if (obj.style.display == "none") { + obj.style.display = ""; + } else { + obj.style.display = "none"; + } + } + return false; + } + + var iconClose = new Image(); + iconClose.src = '../images/icons/close12.gif'; + var iconOpen = new Image(); + iconOpen.src = '../images/icons/open12.gif'; + + function toggleIcon ( iconName ) + { + if ( document.images[iconName].src == window.iconOpen.src ) { + document.images[iconName].src = window.iconClose.src; + } else if ( document.images[iconName].src == window.iconClose.src ) { + document.images[iconName].src = window.iconOpen.src; + } + return; + } + + //--> + </script> + <?php +echo "<h4 style=\"color: #2F5376; margin: 6px 0 0 0; \"><a href='#' onClick=\"toggle('" . $tablename . "'); toggleIcon('" . $iconname . "');\">"; +} + +?> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/functions.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/groupperms.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/groupperms.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/admin/groupperms.php 2012-12-16 19:11:53 UTC (rev 10415) @@ -0,0 +1,74 @@ +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// 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 suppo... [truncated message content] |
From: <du...@us...> - 2012-12-17 18:32:53
|
Revision: 10430 http://sourceforge.net/p/xoops/svn/10430 Author: dugris Date: 2012-12-17 18:32:50 +0000 (Mon, 17 Dec 2012) Log Message: ----------- Add search block to module search Remove search block from module system Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/xoops_version.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/search_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/block_search.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/index.html Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/index.html 2012-12-17 18:32:50 UTC (rev 10430) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/search_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/search_blocks.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/search_blocks.php 2012-12-17 18:32:50 UTC (rev 10430) @@ -0,0 +1,40 @@ +<?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. +*/ + +/** + * Blocks functions + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Laurent JEN (aka DuGris) + * @package system + * @version $Id$ + */ + +function b_search_show() +{ + $search = Search::getInstance(); + $search->loadLanguage('main', 'search'); + + $form = new XoopsSimpleForm('', 'search', $search->url('index.php'), 'get', false, 'inline'); + + // create form elements + $form->addElement(new XoopsFormText('', 'query', 2, 100, '', _MD_SEARCH_KEYWORDS), true); + $form->addElement(new XoopsFormHidden('action', 'results')); + $form->addElement(new XoopsFormHiddenToken('id')); + + $button = new XoopsFormButton('', 'submit', _MD_SEARCH, 'submit'); + $button->setClass('btn btn-primary'); + $form->addElement($button); + + $block['form'] = $form->render(); + return $block; +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/blocks/search_blocks.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Revision URL Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php 2012-12-17 16:14:34 UTC (rev 10429) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/language/english/modinfo.php 2012-12-17 18:32:50 UTC (rev 10430) @@ -26,3 +26,4 @@ define("_MI_SEARCH_MINSEARCH", "Minimum keyword length"); define("_MI_SEARCH_MINSEARCHDSC", "Enter the minimum keyword length that users are required to enter to perform search"); +define("_MI_SEARCH_BNAME1","Search"); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/block_search.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/block_search.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/block_search.html 2012-12-17 18:32:50 UTC (rev 10430) @@ -0,0 +1 @@ +<{$block.form}> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/templates/blocks/index.html 2012-12-17 18:32:50 UTC (rev 10430) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php 2012-12-17 16:14:34 UTC (rev 10429) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/search/xoops_version.php 2012-12-17 18:32:50 UTC (rev 10430) @@ -70,6 +70,11 @@ Blocks */ $modversion['blocks'] = array(); +$modversion['blocks'][1]['file'] = 'search_blocks.php'; +$modversion['blocks'][1]['name'] = _MI_SEARCH_BNAME1; +$modversion['blocks'][1]['description'] = 'Shows search form block'; +$modversion['blocks'][1]['show_func'] = 'b_search_show'; +$modversion['blocks'][1]['template'] = 'block_search.html'; // Preferences $i = 0; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php 2012-12-17 16:14:34 UTC (rev 10429) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php 2012-12-17 18:32:50 UTC (rev 10430) @@ -161,14 +161,6 @@ return $xoops->tpl()->fetch('admin:system|system_modules_menu.html'); } -function b_system_search_show() -{ - $block = array(); - $block['lang_search'] = _MB_SYSTEM_SEARCH; - $block['lang_advsearch'] = _MB_SYSTEM_ADVS; - return $block; -} - function b_system_user_show() { $xoops = Xoops::getInstance(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/modinfo.php 2012-12-17 16:14:34 UTC (rev 10429) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/modinfo.php 2012-12-17 18:32:50 UTC (rev 10430) @@ -15,7 +15,6 @@ // Names of blocks for this module (Not all module has blocks) define("_MI_SYSTEM_BNAME2","User Menu"); define("_MI_SYSTEM_BNAME3","Login"); -define("_MI_SYSTEM_BNAME4","Search"); define("_MI_SYSTEM_BNAME5","Waiting Contents"); define("_MI_SYSTEM_BNAME6","Main Menu"); define("_MI_SYSTEM_BNAME7","Site Info"); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/xoops_version.php 2012-12-17 16:14:34 UTC (rev 10429) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/xoops_version.php 2012-12-17 18:32:50 UTC (rev 10430) @@ -114,12 +114,6 @@ $modversion['blocks'][2]['show_func'] = 'b_system_login_show'; $modversion['blocks'][2]['template'] = 'system_block_login.html'; -$modversion['blocks'][3]['file'] = 'system_blocks.php'; -$modversion['blocks'][3]['name'] = _MI_SYSTEM_BNAME4; -$modversion['blocks'][3]['description'] = 'Shows search form block'; -$modversion['blocks'][3]['show_func'] = 'b_system_search_show'; -$modversion['blocks'][3]['template'] = 'system_block_search.html'; - $modversion['blocks'][4]['file'] = 'system_blocks.php'; $modversion['blocks'][4]['name'] = _MI_SYSTEM_BNAME5; $modversion['blocks'][4]['description'] = 'Shows contents waiting for approval'; |
From: <tr...@us...> - 2012-12-17 22:06:05
|
Revision: 10433 http://sourceforge.net/p/xoops/svn/10433 Author: trabis Date: 2012-12-17 22:06:02 +0000 (Mon, 17 Dec 2012) Log Message: ----------- Removing db: Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/backendt.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_archives.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_bigstory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_moderate.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_randomnews.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_top.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topics.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topicsnav.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_cloud.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_top.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_article.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_by_topic.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/item.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_spot.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_addfile.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_full.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_list.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_summary.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_wfsection.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_footer.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_item.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/backendt.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/backendt.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/backendt.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -68,7 +68,7 @@ $tpl = new XoopsTpl(); $tpl->caching=2; $tpl->xoops_setCacheTime(3600); // Change this to the value you want -if (!$tpl->is_cached('db:news_rss.html', $topicid)) { +if (!$tpl->is_cached('module:news|news_rss.html', $topicid)) { $xt = new NewsTopic($topicid); $sarray = $story->getAllPublished($newsnumber, 0, $restricted, $topicid); if (is_array($sarray) && count($sarray)>0) { @@ -106,5 +106,5 @@ } } } -$tpl->display('db:news_rss.html', $topicid); +$tpl->display('module:news|news_rss.html', $topicid); ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_archives.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_archives.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_archives.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -50,7 +50,7 @@ } else { include_once XOOPS_ROOT_PATH.'/modules/news/language/english/main.php'; } - + $months_arr = array(1 => _CAL_JANUARY, 2 => _CAL_FEBRUARY, 3 => _CAL_MARCH, 4 => _CAL_APRIL, 5 => _CAL_MAY, 6 => _CAL_JUNE, 7 => _CAL_JULY, 8 => _CAL_AUGUST, 9 => _CAL_SEPTEMBER, 10 => _CAL_OCTOBER, 11 => _CAL_NOVEMBER, 12 => _CAL_DECEMBER); $block = array(); $sort_order = $options[0] == 0 ? 'ASC' : 'DESC'; @@ -167,7 +167,7 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_archives.html'); + $tpl->display('block:news|news_block_archives.html'); } ?> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_bigstory.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_bigstory.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_bigstory.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -49,7 +49,7 @@ $htmltitle=' title="'.$block['infotips'].'"'; } else { $htmltitle=' title="'.$story->title('Show').'"'; - } + } $block['htmltitle']=$htmltitle; $block['message'] = _MB_NEWS_TMRSI; $block['story_title'] = $story->title('Show'); @@ -76,7 +76,7 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_bigstory.html'); + $tpl->display('block:news|news_block_bigstory.html'); } ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_moderate.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_moderate.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_moderate.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -85,6 +85,6 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_moderate.html'); + $tpl->display('block:news|news_block_moderate.html'); } ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_randomnews.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_randomnews.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_randomnews.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -70,7 +70,7 @@ $news['topic_color']= '#'.$myts->displayTarea($story->topic_color); $news['picture'] = XOOPS_URL.'/uploads/news/image/'.$story->picture(); $news['pictureinfo'] = $story->pictureinfo(); - + if ($options[3] > 0) { $html = $story->nohtml() == 1 ? 0 : 1; $news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext, $html), $options[3]+3); @@ -144,7 +144,7 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_moderate.html'); + $tpl->display('block:news|news_block_moderate.html'); } ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_top.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_top.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_top.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -355,7 +355,7 @@ $news['topic_color'] = '#'.$myts->displayTarea($story->topic_color); $news['picture'] = XOOPS_URL.'/uploads/news/image/'.$story->picture(); $news['pictureinfo'] = $story->pictureinfo(); - + if($displayname!=3) { $news['author'] = sprintf("%s %s",_POSTEDBY,$story->uname()); } else { @@ -473,7 +473,7 @@ $news['topic_color'] = '#'.$myts->displayTarea($story->topic_color); $news['picture'] = XOOPS_URL.'/uploads/news/image/'.$story->picture(); $news['pictureinfo'] = $story->pictureinfo(); - + if($displayname!=3) { $news['author']= sprintf("%s %s",_POSTEDBY,$story->uname()); } else { @@ -481,7 +481,7 @@ } if ($options[3] > 0) { $html = $story->nohtml() == 1 ? 0 : 1; - $news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3]+3); + $news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3]+3); $news['infotips'] = ''; } else { $news['teaser'] = ''; @@ -694,7 +694,7 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_top.html'); + $tpl->display('block:news|news_block_top.html'); } ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topics.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topics.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topics.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -54,7 +54,7 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_topics.html'); + $tpl->display('block:news|news_block_topics.html'); } ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topicsnav.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topicsnav.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/blocks/news_topicsnav.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -94,7 +94,7 @@ $tpl = new XoopsTpl(); $tpl->assign('block', $block); - $tpl->display('db:news_block_topicnav.html'); + $tpl->display('block:news|news_block_topicnav.html'); } ?> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_cloud.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_cloud.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_cloud.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1 +1 @@ -<{include file="db:tag_block_cloud.html"}> \ No newline at end of file +<{include file="block:tag|tag_block_cloud.html"}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_top.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_top.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/blocks/news_tag_block_top.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1 +1 @@ -<{include file="db:tag_block_top.html"}> +<{include file="block:tag|tag_block_top.html"}> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_article.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_article.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_article.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,7 +1,7 @@ <div class="news-article"> - - <div class="marg2 pad2"><{include file="db:news_item.html" story=$story}> + <div class="marg2 pad2"><{include file="module:news|news_item.html" story=$story}> + <{if $xoops_isadmin}> <a href="<{$xoops_url}>/modules/news/submit.php?op=edit&storyid=<{$story.id}>"><img src="<{xoModuleIcons16 edit.png}>" title="<{$smarty.const._EDIT}>"></a> <a href="<{$xoops_url}>/modules/news/admin/index.php?op=delete&storyid=<{$story.id}>"><img src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>"></a> @@ -14,8 +14,8 @@ <{/if}> </div> - + <{if $attached_files_count>0}> <div class="itemInfo"><{$lang_attached_files}> <{foreach item=onefile from=$attached_files}> @@ -23,21 +23,21 @@ <{/foreach}> </div> <{/if}> - + <{if $pagenav}><div class="pagenav"><{$smarty.const._NW_PAGE}> <{$pagenav}></div><{/if}> - + <{if $tags}> - <div class="marg10 tagbar"><{include file="db:tag_bar.html"}></div> + <div class="marg10 tagbar"><{include file="block:tag|tag_bar.html"}></div> <{/if}> - + <div class="pad5 marg5"> <{if $nav_links}> <{if $previous_story_id != -1}><a href='<{$xoops_url}>/modules/news/article.php?storyid=<{$previous_story_id}>' title="<{$previous_story_title}>"><{$lang_previous_story}></a> - <{/if}> <{if $next_story_id!= -1}><a href='<{$xoops_url}>/modules/news/article.php?storyid=<{$next_story_id}>' title="<{$next_story_title}>"><{$lang_next_story}></a><{/if}> - <{/if}> + <{/if}> </div> - + <{if $showsummary == true && $summary_count>0}> <div class="marg10"> <table width='50%' cellspacing='0' cellpadding='1'> @@ -52,7 +52,7 @@ </table> </div> <{/if}> - + <{if $bookmarkme == true}> <div class="item-bookmarkme"> <div class="head item-bookmarkme-title"><{$smarty.const._NW_BOOKMARK_ME}></div> @@ -96,21 +96,21 @@ <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" num_posts="5" width="500"></fb:comments> <{/if}> - + <div class="pad2 marg2"> <{$commentsnav}> <{$lang_notice}> </div> - + <div class="pad2 marg2"> <{if $comment_mode == "flat"}> - <{include file="db:system_comments_flat.html"}> + <{include file="module:system|system_comments_flat.html"}> <{elseif $comment_mode == "thread"}> - <{include file="db:system_comments_thread.html"}> + <{include file="module:system|system_comments_thread.html"}> <{elseif $comment_mode == "nest"}> - <{include file="db:system_comments_nest.html"}> + <{include file="module:system|system_comments_nest.html"}> <{/if}> </div> - <{include file='db:system_notification_select.html'}> + <{include file='module:system|system_notification_select.html'}> </div> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_by_topic.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_by_topic.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_by_topic.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -9,7 +9,7 @@ <{counter start=0 print=false assign=storynum}> <{foreach item=story from=$topic.stories}> <{if $storynum == 0}> - <{include file="db:news_item.html" story=$story}><br /> + <{include file="module:news|news_item.html" story=$story}><br /> <{else}> <{if $storynum == 1}> <ul> @@ -29,4 +29,4 @@ </tr> </table> </div> -<{include file='db:system_notification_select.html'}> \ No newline at end of file +<{include file='module:system|system_notification_select.html'}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_index.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/templates/news_index.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -2,7 +2,7 @@ <{if $topic_rssfeed_link != ""}> <div align='right'><{$topic_rssfeed_link}></div> <{/if}> - + <{if $displaynav == true}> <div style="text-align: center;"> <form name="form1" action="<{$xoops_url}>/modules/news/index.php" method="get"> @@ -10,20 +10,20 @@ <hr /> </div> <{/if}> - + <{if $topic_description != ''}> <div style="text-align: center;"><{$topic_description}></div> <{/if}> - + <div style="margin: 10px;"><{$pagenav}></div> <table width='100%' border='0'> <tr> <{section name=i loop=$columns}> - <td width="<{$columnwidth}>%"><{foreach item=story from=$columns[i]}><{include file="db:news_item.html" story=$story}><{/foreach}></td> + <td width="<{$columnwidth}>%"><{foreach item=story from=$columns[i]}><{include file="module:news|news_item.html" story=$story}><{/foreach}></td> <{/section}> </tr> </table> - + <div class="pagenav"><{$pagenav}></div> - <{include file='db:system_notification_select.html'}> + <{include file='module:system|system_notification_select.html'}> </div> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/item.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/item.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/admin/item.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -465,7 +465,7 @@ $sform = $publisher->getForm($itemObj, 'item'); $sform->setTitle(_AM_PUBLISHER_ITEMS); $sform->assign($formTpl); - $formTpl->display('db:publisher_submit.html'); + $formTpl->display('module:publisher|publisher_submit.html'); PublisherUtils::closeCollapsableBar('edititemtable', 'edititemicon'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_spot.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_spot.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/blocks/publisher_items_spot.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -6,7 +6,7 @@ <{if $block.display_type=='block'}> -<{foreach item=item from=$block.items}> <{include file="db:publisher_singleitem_block.html" item=$item}> <{/foreach}> +<{foreach item=item from=$block.items}> <{include file="module:publisher|publisher_singleitem_block.html" item=$item}> <{/foreach}> <{else}> <{foreach item=item from=$block.items name=spotlight}> <{if $item.summary != ''}> <div class="itemText" style="padding-left: 5px; padding-top: 5px;"> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_addfile.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_addfile.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_addfile.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,4 +1,4 @@ -<{include file="db:publisher_header.html" item=$item}> +<{include file="module:publisher|publisher_header.html" item=$item}> <div class="publisher_infotitle"><{$lang_intro_title}></div> <div class="publisher_infotext"><{$lang_intro_text}></div> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_full.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_full.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_full.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,4 +1,4 @@ -<{include file='db:publisher_header.html'}> +<{include file='module:publisher|publisher_header.html'}> <!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE), let's display the summary table ! //--><{if $indexpage || $category.subcats || ($category && $display_category_summary)}> @@ -9,7 +9,7 @@ <div id='toptable'> <span class="publisher_collaps_info""><{$lang_category_summary}></span> <!-- Content under the collapsable bar //--> <{/if}> - <{include file='db:publisher_categories_table.html'}> + <{include file='module:publisher|publisher_categories_table.html'}> <{if $collapsable_heading == 1}> </div> <{/if}> @@ -21,10 +21,10 @@ <span class="publisher_collaps_info"><{$smarty.const._MD_PUBLISHER_ITEMS_INFO}></span> <{/if}> <div align="right"><{$navbar}></div> - <!-- Start item loop --> <{foreach item=item from=$items}> <{include file="db:publisher_singleitem.html" item=$item}> <{/foreach}> <!-- End item loop --> + <!-- Start item loop --> <{foreach item=item from=$items}> <{include file="module:publisher|publisher_singleitem.html" item=$item}> <{/foreach}> <!-- End item loop --> <div align="right"><{$navbar}></div> <{if $collapsable_heading == 1}> </div> <{/if}><!-- end of if $items --> <{/if}> -<{include file='db:publisher_footer.html'}> \ No newline at end of file +<{include file='module:publisher|publisher_footer.html'}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_list.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_list.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_list.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,4 +1,4 @@ -<{include file='db:publisher_header.html'}> +<{include file='module:publisher|publisher_header.html'}> <!-- Display type is bullet list --> <div class="publisher_infotitle"><{$lang_category_summary}></div> @@ -7,7 +7,7 @@ <strong><{$smarty.const._MD_PUBLISHER_LAST_SMARTITEM}> : <{$category.last_title_link}> </div> <{/if}><br/> -<!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE, let's display the summary table ! //--><{if $indexpage || $category.subcats || ($category && $display_category_summary)}> <{include file='db:publisher_categories_table.html'}> +<!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE, let's display the summary table ! //--><{if $indexpage || $category.subcats || ($category && $display_category_summary)}> <{include file='module:publisher|publisher_categories_table.html'}> <br/><!-- End of if !$category || $category.subcats || ($category && $display_category_summary) //--><{/if}> <{if $items}> <{if $collapsable_heading == 1}> @@ -69,4 +69,4 @@ <{if !$subcats && !$items}> <div class="publisher_infotext"><{$smarty.const._MD_PUBLISHER_EMPTY}></div><{/if}> -<{include file='db:publisher_footer.html'}> \ No newline at end of file +<{include file='module:publisher|publisher_footer.html'}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_summary.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_summary.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_summary.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,4 +1,4 @@ -<{include file='db:publisher_header.html'}> +<{include file='module:publisher|publisher_header.html'}> <!-- if we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE), let's display the summary table ! //--><{if $indexpage || $category.subcats || ($category && $display_category_summary)}> @@ -9,7 +9,7 @@ <div id='toptable'> <span class="publisher_collaps_info""><{$lang_category_summary}></span> <!-- Content under the collapsable bar //--> <{/if}> - <{include file='db:publisher_categories_table.html'}> + <{include file='module:publisher|publisher_categories_table.html'}> <{if $collapsable_heading == 1}> </div> <{/if}> @@ -57,4 +57,4 @@ <{if $collapsable_heading == 1}> </div> <{/if}><!-- end of if $items --> <{/if}> -<{include file='db:publisher_footer.html'}> \ No newline at end of file +<{include file='module:publisher|publisher_footer.html'}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_wfsection.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_wfsection.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_display_wfsection.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,4 +1,4 @@ -<{include file='db:publisher_header.html'}> +<{include file='module:publisher|publisher_header.html'}> <!--<{if $collapsable_heading == 1}> <div class="publisher_collaps_title"><a href='javascript:;' onclick="toggle('toptable'); toggleIcon('toptableicon')"><img id='toptableicon' src='<{$publisher_url}>/images/links/close12.gif' alt='' /></a> <{$lang_category_summary}></div> @@ -96,4 +96,4 @@ <{/if}> <!-- end of if $items --> <{/if}> </div> -<{include file='db:publisher_footer.html'}> +<{include file='module:publisher|publisher_footer.html'}> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_footer.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_footer.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_footer.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -7,7 +7,7 @@ <td colspan="3" align="left"> <div style="text-align: center; padding: 3px; margin:3px;"> <{$commentsnav}> <{$lang_notice}></div> <div style="margin:3px; padding: 3px;"> - <!-- start comments loop --> <{if $comment_mode == "flat"}> <{include file="db:system_comments_flat.html"}> <{elseif $comment_mode == "thread"}> <{include file="db:system_comments_thread.html"}> <{elseif $comment_mode == "nest"}> <{include file="db:system_comments_nest.html"}> <{/if}> <!-- end comments loop --> + <!-- start comments loop --> <{if $comment_mode == "flat"}> <{include file="module:system|system_comments_flat.html"}> <{elseif $comment_mode == "thread"}> <{include file="module:system|system_comments_thread.html"}> <{elseif $comment_mode == "nest"}> <{include file="module:system|system_comments_nest.html"}> <{/if}> <!-- end comments loop --> </div> </td> </tr> @@ -16,4 +16,4 @@ <{if $rssfeed_link != ""}> <div id="publisher_rpublisher_feed"><{$rssfeed_link}></div><{/if}> -<{include file='db:system_notification_select.html'}> +<{include file='module:system|system_notification_select.html'}> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_item.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_item.html 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/templates/publisher_item.html 2012-12-17 22:06:02 UTC (rev 10433) @@ -1,4 +1,4 @@ -<{include file='db:publisher_header.html'}> +<{include file='module:publisher|publisher_header.html'}> <div class="item"> <h2><{$item.title}></h2> @@ -67,7 +67,7 @@ <{/if}> <{if $pagenav}> <div class="publisher_pagenav_bottom"><{$smarty.const._MD_PUBLISHER_PAGE}>: <{$pagenav}></div> <{/if}> <{if $tagbar}> - <p><{include file="db:tag_bar.html"}></p> + <p><{include file="module:tag|tag_bar.html"}></p> <{/if}> </div> <{if $itemfooter}> @@ -172,7 +172,7 @@ </tr> <{/foreach}> <!-- End item loop --> </table><{/if}><{if $rating_enabled}> -<small><{$item.ratingbar}></small><{/if}><{include file='db:publisher_footer.html'}> +<small><{$item.ratingbar}></small><{/if}><{include file='module:publisher|publisher_footer.html'}> <script type="text/javascript"> <!--//<![CDATA[ Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php 2012-12-17 21:48:45 UTC (rev 10432) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php 2012-12-17 22:06:02 UTC (rev 10433) @@ -257,7 +257,7 @@ $block = b_xlanguage_select_show($options); $xoops->theme()->addStylesheet('modules/xlanguage/css/block.css'); $xoops->tpl()->assign('block', $block); - $xlanguage_switch_code = "<div id='xo-language' class='" . $options[0] . "'>" . $xoops->tpl()->fetch('db:xlanguage_block.html') . "</div>"; + $xlanguage_switch_code = "<div id='xo-language' class='" . $options[0] . "'>" . $xoops->tpl()->fetch('block:xlanguage|xlanguage_block.html') . "</div>"; $xoops->tpl()->assign('xlanguage_switch_code', $xlanguage_switch_code); return true; } \ No newline at end of file |
From: <tr...@us...> - 2012-12-18 00:41:04
|
Revision: 10434 http://sourceforge.net/p/xoops/svn/10434 Author: trabis Date: 2012-12-18 00:41:00 +0000 (Tue, 18 Dec 2012) Log Message: ----------- Fixing some search functions Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/class/plugin/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/search.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/xoops_version.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/search.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/class/plugin/search.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/class/plugin/search.php 2012-12-17 22:06:02 UTC (rev 10433) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/class/plugin/search.php 2012-12-18 00:41:00 UTC (rev 10434) @@ -22,7 +22,8 @@ { public function search($queries, $andor, $limit, $start, $uid) { - $queries = implode(' ', $queries); + $queries = implode(' ', (array) $queries); + $files = XoopsLists::getFileListAsArray(dirname(dirname(dirname(__FILE__)))); $res = array(); $i = 0; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/search.inc.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/search.inc.php 2012-12-17 22:06:02 UTC (rev 10433) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/news/include/search.inc.php 2012-12-18 00:41:00 UTC (rev 10434) @@ -30,6 +30,7 @@ function news_search($queryarray, $andor, $limit, $offset, $userid){ global $xoopsDB, $xoopsUser; + $xoops = Xoops::getInstance(); include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php'; $restricted=news_getmoduleoption('restrictindex'); $highlight = false; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php 2012-12-17 22:06:02 UTC (rev 10433) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php 2012-12-18 00:41:00 UTC (rev 10434) @@ -188,10 +188,10 @@ $xoops->tpl()->assign('categories', $categories); // Dynamic user profiles end -if ($xoops->getModuleConfig('profile_search')) { - $criteria = new CriteriaCompo(new Criteria('hassearch', 1)); - $criteria->add(new Criteria('isactive', 1)); - $modules = $xoops->getHandlerModule()->getObjectsArray($criteria, true); +if ($xoops->isActiveModule('search') && $xoops->getModuleConfig('profile_search') && $xoops->getModuleConfig('enable_search', 'search')) { + $available_plugins = Xoops_Plugin::getAvailablePlugins('search'); + $criteria = new Criteria('dirname', "('" . implode("','", array_keys($available_plugins)) . "')", 'IN'); + $modules = $module_handler->getObjectsArray($criteria, true); $mids = array_keys($modules); $myts = MyTextSanitizer::getInstance(); @@ -201,7 +201,9 @@ if (in_array($mid, $allowed_mids)) { /* @var XoopsModule $module */ $module = $modules[$mid]; - $results = $module->search('', '', 5, 0, $thisUser->getVar('uid')); + $plugin = Xoops_Plugin::getPlugin($module->getVar('dirname'), 'search'); + /* @var $plugin SearchPluginInterface */ + $results = $plugin->search('', '', 5, 0, $thisUser->getVar('uid')); $count = count($results); if (is_array($results) && $count > 0) { for ($i = 0; $i < $count; $i++) { Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/index.html 2012-12-18 00:41:00 UTC (rev 10434) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/search.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/search.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/search.php 2012-12-18 00:41:00 UTC (rev 10434) @@ -0,0 +1,97 @@ +<?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. + */ +/** + * Publisher class + * + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Class + * @subpackage Utils + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +class PublisherSearchPlugin extends Xoops_Plugin_Abstract implements SearchPluginInterface +{ + public function search($queryarray, $andor, $limit, $offset, $userid) + { + $categories = array(); + $sortby = 0; + $searchin = ""; + $extra = ""; + return self::searchAdvanced($queryarray, $andor, $limit, $offset, $userid, $categories, $sortby, $searchin, $extra); + } + + public function searchAdvanced($queryarray, $andor, $limit, $offset, $userid, $categories = array(), $sortby = 0, $searchin = "", $extra = "") + { + $publisher = Publisher::getInstance(); + $ret = array(); + if ($queryarray == '' || count($queryarray) == 0) { + $hightlight_key = ''; + } else { + $keywords = implode('+', $queryarray); + $hightlight_key = "&keywords=" . $keywords; + } + $itemsObjs = $publisher->getItemHandler() + ->getItemsFromSearch($queryarray, $andor, $limit, $offset, $userid, $categories, $sortby, $searchin, $extra); + $withCategoryPath = $publisher->getConfig('search_cat_path'); + + $usersIds = array(); + /* @var $obj PublisherItem */ + foreach ($itemsObjs as $obj) { + $item['image'] = "images/item_icon.gif"; + $item['link'] = $obj->getItemUrl(); + $item['link'] .= (!empty($hightlight_key) && (strpos($item['link'], '.php?') === false)) ? "?" . ltrim($hightlight_key, '&') : $hightlight_key; + if ($withCategoryPath) { + $item['title'] = $obj->getCategoryPath(false) . " > " . $obj->title(); + } else { + $item['title'] = $obj->title(); + } + $item['time'] = $obj->getVar('datesub'); //must go has unix timestamp + $item['uid'] = $obj->getVar('uid'); + //"Fulltext search/highlight + $text = $obj->body(); + $sanitized_text = ""; + $text_i = strtolower($text); + $queryarray = is_array($queryarray) ? $queryarray : array($queryarray); + + //@todo look into xoopslocal + if ($hightlight_key != '') { + foreach ($queryarray as $query) { + $pos = strpos($text_i, strtolower($query)); //xoops_local("strpos", $text_i, strtolower($query)); + $start = max(($pos - 100), 0); + $length = strlen($query) + 200; //xoops_local("strlen", $query) + 200; + $context = $obj->highlight(XoopsLocal::substr($text, $start, $length, " [...]"), $query); + $sanitized_text .= "<p>[...] " . $context . "</p>"; + } + } + + //End of highlight + $item['text'] = $sanitized_text; + $item['author'] = $obj->getVar('author_alias'); + $item['datesub'] = $obj->datesub($publisher->getConfig('format_date')); + $usersIds[$obj->getVar('uid')] = $obj->getVar('uid'); + $ret[] = $item; + unset($item, $sanitized_text); + } + $usersNames = XoopsUserUtility::getUnameFromIds($usersIds, $publisher->getConfig('format_realname'), true); + foreach ($ret as $key => $item) { + if ($item["author"] == '') { + $ret[$key]["author"] = @$usersNames[$item["uid"]]; + } + } + unset($usersNames, $usersIds); + return $ret; + } +} Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/search.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/xoops_version.php 2012-12-17 22:06:02 UTC (rev 10433) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/xoops_version.php 2012-12-18 00:41:00 UTC (rev 10434) @@ -202,77 +202,6 @@ $modversion['blocks'][$i]['options'] = "0|datesub|5|65"; $modversion['blocks'][$i]['template'] = "publisher_category_items_sel.html"; -// Templates -$i = 0; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_header.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_HEADER_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_footer.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_FOOTER_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_singleitem.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_SINGLEITEM_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_categories_table.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_CATEGORIES_TABLE_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_display_list.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_DISPLAY_LIST_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_display_summary.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_DISPLAY_SUMMARY_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_display_full.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_DISPLAY_FULL_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_display_wfsection.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_DISPLAY_WFSECTION_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_item.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_ITEM_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_submit.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_SUBMIT_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_singleitem_block.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_SINGLEITEM_BLOCK_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_print.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_PRINT_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_rss.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_RSS_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_addfile.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_ADDFILE_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_search.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_SEARCH_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_author_items.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_AUTHOR_ITEMS_DSC; - -$i++; -$modversion['templates'][$i]['file'] = 'publisher_archive.html'; -$modversion['templates'][$i]['description'] = _MI_PUBLISHER_ARCHIVE__DSC; - // Config categories $i = 0; $modversion['configcat']['seo']['name'] = _MI_PUBLISHER_CONFCAT_SEO; |
From: <tr...@us...> - 2012-12-22 17:25:24
|
Revision: 10483 http://sourceforge.net/p/xoops/svn/10483 Author: trabis Date: 2012-12-22 17:25:22 +0000 (Sat, 22 Dec 2012) Log Message: ----------- Removing publisher notifications update and unneeded profile->getConfigs Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/notification_update.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php 2012-12-22 17:23:36 UTC (rev 10482) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php 2012-12-22 17:25:22 UTC (rev 10483) @@ -42,7 +42,6 @@ //disable cache $xoops->disableModuleCache(); $xoops->header('profile_userinfo.html'); - $xoops->getConfigs(); $xoops->tpl()->assign('user_ownpage', true); $xoops->tpl()->assign('lang_editprofile', _US_EDITPROFILE); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/notification_update.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/notification_update.php 2012-12-22 17:23:36 UTC (rev 10482) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/notification_update.php 2012-12-22 17:25:22 UTC (rev 10483) @@ -1,23 +0,0 @@ -<?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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Publisher - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id$ - */ - -include_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php'; -$xoops = Xoops::getInstance(); -include_once $xoops->path('include/notification_update.php'); \ No newline at end of file |
From: <du...@us...> - 2012-12-22 23:40:30
|
Revision: 10488 http://sourceforge.net/p/xoops/svn/10488 Author: dugris Date: 2012-12-22 23:40:27 +0000 (Sat, 22 Dec 2012) Log Message: ----------- Add plugin user post synchronization Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/plugin/system.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/system.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php Property Changed: ---------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/plugin/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/plugin/system.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/plugin/system.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -0,0 +1,33 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Laurent JEN (aka DuGris) + * @version $Id$ + */ + +class SystemSystemPlugin extends Xoops_Plugin_Abstract implements SystemPluginInterface +{ + public function UserSync($uid) + { + $xoops = Xoops::getInstance(); + + $content_Handler = $xoops->getModuleHandler('page_content'); + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('content_status', 0, '!=')); + $criteria->add(new Criteria('content_author', $uid)); + + return $content_Handler->getCount($criteria); + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/plugin/system.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL \ No newline at end of property Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php 2012-12-22 18:31:46 UTC (rev 10487) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/xoops_version.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -164,8 +164,3 @@ $modversion['config'][$i]['valuetype'] = 'text'; $modversion['config'][$i]['options'] = array(date('H:i') => 'H:i', date('H:i:s') => 'H:i:s', date('H:i A') => 'H:i A' , date('H:i:s A ') => 'H:i:s A'); $modversion['config'][$i]['default'] = 'H:i:s'; - -// Users Synchronize post -$modversion['sync']['table_name'] = 'page_content'; -$modversion['sync']['uid_column'] = 'content_author'; -$modversion['sync']['criteria'] = new Criteria('content_status', 1); Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/system.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/system.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -0,0 +1,33 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Laurent JEN (aka DuGris) + * @version $Id$ + */ + +class SystemSystemPlugin extends Xoops_Plugin_Abstract implements SystemPluginInterface +{ + public function UserSync($uid) + { + $publisher = Publisher::getInstance(); + + $publisher_Handler = $publisher->getItemHandler(); + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('status', 2)); + $criteria->add(new Criteria('uid', $uid)); + + return $publisher_Handler->getCount($criteria); + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/publisher/class/plugin/system.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL \ No newline at end of property Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php 2012-12-22 18:31:46 UTC (rev 10487) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -40,41 +40,16 @@ // Display post case 'display_post': - - include_once $xoops->path('include/comment_constants.php'); include_once $xoops->path('modules/system/include/functions.php'); - $module_handler = $xoops->getHandlerModule(); - $tables = array(); - // Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE) - $tables[] = array( - 'table_name' => 'xoopscomments', 'uid_column' => 'com_uid', - 'criteria' => new Criteria('com_status', XOOPS_COMMENT_ACTIVE) - ); - - $system_module = new SystemModule(); - $list = $system_module->getModuleList(); - foreach ($list as $k => $v) { - $sync = $v->getInfo('sync'); - if ( isset($sync) && count($sync) >= 2 ) { - $tables[] = $sync; - } - } - $uid = $system->cleanVars($_REQUEST, 'uid', 'int'); $total_posts = 0; - foreach ($tables as $table) { - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria($table['uid_column'], $uid)); - if (!empty($table['criteria'])) { - $criteria->add($table['criteria']); + + $plugins = Xoops_Plugin::getAvailablePlugins(); + foreach ($plugins as $module) { + if (method_exists($module, 'UserSync')){ + $total_posts += $module->UserSync($uid); } - $sql = "SELECT COUNT(*) AS total FROM " . $xoops->db()->prefix($table['table_name']) . ' ' . $criteria->renderWhere(); - if ($result = $xoops->db()->query($sql)) { - if ($row = $xoops->db()->fetchArray($result)) { - $total_posts = $total_posts + $row['total']; - } - } } $sql = "UPDATE " . $xoops->db()->prefix("users") . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'"; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php 2012-12-22 18:31:46 UTC (rev 10487) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -1,100 +1,76 @@ -<?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. -*/ - -/** - * Users Manager - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @author Kazumi Ono (AKA onokazu) - * @package system - * @version $Id$ - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -// Get main instance -$xoops = Xoops::getInstance(); - -// Check users rights -if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { - exit(_NOPERM); -} - -// Check is active -if (!$xoops->getModuleConfig('active_users', 'system')) { - $xoops->redirect('admin.php', 2, _AM_SYSTEM_NOTACTIVE); -} - -/*********************************************************/ -/* Users Functions */ -/*********************************************************/ -/** - * @param int $uid - * @param string $type - * @return void - */ -function synchronize($uid, $type) -{ - $xoops = Xoops::getInstance(); - - include_once $xoops->path('include/comment_constants.php'); - $module_handler = $xoops->getHandlerModule(); - $tables = array(); - // Count comments (approved only: com_status == XOOPS_COMMENT_ACTIVE) - $tables[] = array( - 'table_name' => 'xoopscomments', 'uid_column' => 'com_uid', - 'criteria' => new Criteria('com_status', XOOPS_COMMENT_ACTIVE) - ); - - $system_module = new SystemModule(); - $list = $system_module->getModuleList(); - foreach ($list as $k => $v) { - $sync = $v->getInfo('sync'); - if ( isset($sync) && count($sync) >= 2 ) { - $tables[] = $sync; - } - } - - switch ($type) { - case 'user': - $total_posts = 0; - foreach ($tables as $table) { - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria($table['uid_column'], $uid)); - if (!empty($table['criteria'])) { - $criteria->add($table['criteria']); - } - $sql = "SELECT COUNT(*) AS total FROM " . $xoops->db()->prefix($table['table_name']) . ' ' . $criteria->renderWhere(); - if ($result = $xoops->db()->query($sql)) { - if ($row = $xoops->db()->fetchArray($result)) { - $total_posts = $total_posts + $row['total']; - } - } - } - $sql = "UPDATE " . $xoops->db()->prefix("users") . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'"; - if (!$xoops->db()->queryF($sql)) { - $xoops->redirect("admin.php?fct=users", 1, _AM_SYSTEM_USERS_CNUUSER); - } - break; - - case 'all users': - $sql = "SELECT uid FROM " . $xoops->db()->prefix("users") . ""; - if (!$result = $xoops->db()->query($sql)) { - $xoops->redirect("admin.php?fct=users", 1, sprintf(_AM_SYSTEM_USERS_CNGUSERID, $uid)); - } - - while ($data = $xoops->db()->fetchArray($result)) { - synchronize($data['uid'], "user"); - } - break; - } +<?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. +*/ + +/** + * Users Manager + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Kazumi Ono (AKA onokazu) + * @package system + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +// Get main instance +$xoops = Xoops::getInstance(); + +// Check users rights +if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { + exit(_NOPERM); +} + +// Check is active +if (!$xoops->getModuleConfig('active_users', 'system')) { + $xoops->redirect('admin.php', 2, _AM_SYSTEM_NOTACTIVE); +} + +/*********************************************************/ +/* Users Functions */ +/*********************************************************/ +/** + * @param int $uid + * @param string $type + * @return void + */ +function synchronize($uid, $type) +{ + $xoops = Xoops::getInstance(); + + switch ($type) { + case 'user': + $total_posts = 0; + $plugins = Xoops_Plugin::getAvailablePlugins(); + foreach ($plugins as $module) { + if (method_exists($module, 'UserSync')){ + $total_posts += $module->UserSync($uid); + } + } + + $sql = "UPDATE " . $xoops->db()->prefix("users") . " SET posts = '" . $total_posts . "' WHERE uid = '" . $uid . "'"; + if (!$xoops->db()->queryF($sql)) { + $xoops->redirect("admin.php?fct=users", 1, _AM_SYSTEM_USERS_CNUUSER); + } + break; + + case 'all users': + $sql = "SELECT uid FROM " . $xoops->db()->prefix("users") . ""; + if (!$result = $xoops->db()->query($sql)) { + $xoops->redirect("admin.php?fct=users", 1, sprintf(_AM_SYSTEM_USERS_CNGUSERID, $uid)); + } + + while ($data = $xoops->db()->fetchArray($result)) { + synchronize($data['uid'], "user"); + } + break; + } } \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Index: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin 2012-12-22 18:31:46 UTC (rev 10487) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin 2012-12-22 23:40:27 UTC (rev 10488) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin ___________________________________________________________________ Added: tsvn:autoprops ## -0,0 +1 ## +*.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/index.html 2012-12-22 23:40:27 UTC (rev 10488) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/index.html ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL Header \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -0,0 +1,23 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Laurent JEN (aka DuGris) + * @version $Id$ + */ + +interface SystemPluginInterface +{ + public function UserSync($uid); +} + Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL Header \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php 2012-12-22 23:40:27 UTC (rev 10488) @@ -0,0 +1,39 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @author Laurent JEN (aka DuGris) + * @version $Id$ + */ + +class SystemSystemPlugin extends Xoops_Plugin_Abstract implements SystemPluginInterface +{ + public function UserSync($uid) + { + $xoops = Xoops::getInstance(); + $count = 0; + + // Comments Start + include_once $xoops->path('include/comment_constants.php'); + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('com_status', XOOPS_COMMENT_ACTIVE)); + $criteria->add(new Criteria('com_uid', $uid)); + + $comment_handler = $xoops->getHandlerComment(); + $count += $comment_handler->getCount($criteria); + // Comments End + + return $count; + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL Header \ No newline at end of property |
From: <tr...@us...> - 2012-12-23 20:25:44
|
Revision: 10530 http://sourceforge.net/p/xoops/svn/10530 Author: trabis Date: 2012-12-23 20:25:39 +0000 (Sun, 23 Dec 2012) Log Message: ----------- Adding first version of comments module Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_delete.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_edit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_post.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/comments_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/comment.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/commentrenderer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/comments.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/form/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/form/comment.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/form/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/interface.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/comment_delete.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/comment_edit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/comment_new.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/comment_post.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/comment_reply.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/include/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/include/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/mail_template/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/mail_template/comment_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/mail_template/commentsubmit_notify.tpl XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/mail_template/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/admin/comments.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/blocks/comments.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/comment.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/comments.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/comments_flat.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/comments_nest.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/comments_thread.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/xoops_version.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/about.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,27 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +$aboutAdmin = new XoopsModuleAdmin(); +$aboutAdmin->displayNavigation('about.php'); +$aboutAdmin->displayAbout('6KJ7RW5DR3VTJ', true); +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_delete.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_delete.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_delete.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,24 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; +//there is no way to override current tabs when using system menu +//this dirty hack will have to do it +$_SERVER['REQUEST_URI'] = "admin/main.php"; +Comments::getInstance()->displayDelete(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_delete.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_edit.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_edit.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_edit.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,24 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; +//there is no way to override current tabs when using system menu +//this dirty hack will have to do it +$_SERVER['REQUEST_URI'] = "admin/main.php"; +Comments::getInstance()->displayEdit(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_edit.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_post.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_post.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_post.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,24 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; +//there is no way to override current tabs when using system menu +//this dirty hack will have to do it +$_SERVER['REQUEST_URI'] = "admin/main.php"; +Comments::getInstance()->displayPost(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/comment_post.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/header.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,26 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + + +include dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; + +$xoops = Xoops::getInstance(); +XoopsLoad::load('system', 'system'); +$system = System::getInstance(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/index.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,29 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); + +$indexAdmin = new XoopsModuleAdmin(); +$indexAdmin->displayNavigation('index.php'); +$indexAdmin->displayIndex(); + +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/main.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,303 @@ +<?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. +*/ + +/** + * Comments Manager + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Kazumi Ono (AKA onokazu) + * @package comments + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +// Get main instance +$xoops = Xoops::getInstance(); +$system = System::getInstance(); +$helper = Comments::getInstance(); + +// Get Action type +$op = $system->cleanVars($_REQUEST, 'op', 'default', 'string'); +// Call Header +$xoops->header('comments.html'); +// Define Stylesheet +$xoops->theme()->addStylesheet('media/jquery/ui/' . $xoops->getModuleConfig('jquery_theme', 'system') . '/ui.all.css'); +// Define scripts +$xoops->theme()->addScript('modules/system/js/admin.js'); + +$admin_page = new XoopsModuleAdmin(); +$admin_page->renderNavigation('main.php'); + +$limit_array = array(20, 50, 100); +$status_array = + array(COMMENTS_PENDING => _MD_COMMENTS_PENDING, COMMENTS_ACTIVE => _MD_COMMENTS_ACTIVE, COMMENTS_HIDDEN => _MD_COMMENTS_HIDDEN); +$status_array2 = array( + COMMENTS_PENDING => '<span style="text-decoration: none; font-weight: bold; color: #008000;">' . _MD_COMMENTS_PENDING . '</span>', + COMMENTS_ACTIVE => '<span style="text-decoration: none; font-weight: bold; color: #ff0000;">' . _MD_COMMENTS_ACTIVE . '</span>', + COMMENTS_HIDDEN => '<span style="text-decoration: none; font-weight: bold; color: #0000ff;">' . _MD_COMMENTS_HIDDEN . '</span>' +); +$start = 0; +$status_array[0] = _AM_COMMENTS_FORM_ALL_STATUS; + +$comments = array(); +$status = (!isset($_REQUEST['status']) || !in_array(intval($_REQUEST['status']), array_keys($status_array))) ? 0 + : intval($_REQUEST['status']); + +$module = !isset($_REQUEST['module']) ? 0 : intval($_REQUEST['module']); + +$modules_array = array(); +$module_handler = $xoops->getHandlerModule(); +$available_plugins = Xoops_Plugin::getAvailablePlugins('comments'); +if (!empty($available_plugins)) { + $criteria = new Criteria('dirname', "('" . implode("','", array_keys($available_plugins)). "')" , 'IN'); + $module_array = $module_handler->getNameList($criteria); +} + +$module_array[0] = _AM_COMMENTS_FORM_ALL_MODS; + +$comment_handler = $helper->getHandlerComment(); + +switch ($op) { + + case 'comments_jump': + $id = $system->cleanVars($_GET, 'item_id', 0, 'int'); + if ($id > 0) { + $comment = $comment_handler->get($id); + if (is_object($comment)) { + /* @var $plugin CommentsPluginInterface */ + $module = $module_handler->getById($comment->getVar('modid')); + $plugin = Xoops_Plugin::getPlugin($module->getVar('dirname'), 'comments'); + header('Location: ' . XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/' . $plugin->pageName() . '?' . $plugin->itemName() . '=' . $comment->getVar('itemid') . '&id=' . $comment->getVar('id') . '&rootid=' . $comment->getVar('rootid') . '&mode=thread&' . str_replace('&', '&', $comment->getVar('exparams')) . '#comment' . $comment->getVar('id')); + exit(); + } + } + $helper->redirect('admin/main.php', 1, _AM_COMMENTS_NO_COMMENTS); + break; + + case 'comments_form_purge': + //Affichage du formulaire de purge + $form_purge = new XoopsThemeForm(_AM_COMMENTS_FORM_PURGE, 'form', $helper->url('admin/main.php'), 'post', true); + + $form_purge->addElement(new XoopsFormTextDateSelect(_AM_COMMENTS_FORM_PURGE_DATE_AFTER, 'comments_after', '15')); + $form_purge->addElement(new XoopsFormTextDateSelect(_AM_COMMENTS_FORM_PURGE_DATE_BEFORE, 'comments_before', '15')); + + //user + $form_purge->addElement(new XoopsFormSelectUser(_AM_COMMENTS_FORM_PURGE_USER, "comments_userid", false, @$_REQUEST['comments_userid'], 5, true)); + + //groups + $groupe_select = new XoopsFormSelectGroup(_AM_COMMENTS_FORM_PURGE_GROUPS, "comments_groupe", false, '', 5, true); + $groupe_select->setExtra("style=\"width:170px;\" "); + $form_purge->addElement($groupe_select); + + //Status + $status = new XoopsFormSelect(_AM_COMMENTS_FORM_PURGE_STATUS, "comments_status", ''); + $options = $status_array; + $status->addOptionArray($options); + $form_purge->addElement($status, true); + + //Modules + $modules = new XoopsFormSelect(_AM_COMMENTS_FORM_PURGE_MODULES, "comments_modules", ''); + $options = $module_array; + $modules->addOptionArray($options); + $form_purge->addElement($modules, true); + $form_purge->addElement(new XoopsFormHidden("op", "comments_purge")); + $form_purge->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); + $xoops->tpl()->assign('form', $form_purge->render()); + break; + + case 'comments_purge': + $criteria = new CriteriaCompo(); + $verif = false; + if (isset($_POST['comments_after']) && isset($_POST['comments_before'])) { + if ($_POST['comments_after'] != $_POST['comments_before']) { + $after = $system->cleanVars($_POST, 'comments_after', time(), 'date'); + $before = $system->cleanVars($_POST, 'comments_before', time(), 'date'); + if ($after) { + $criteria->add(new Criteria('created', $after, ">")); + } + if ($before) { + $criteria->add(new Criteria('created', $before, "<")); + } + $verif = true; + } + } + $modid = $system->cleanVars($_POST, 'comments_modules', 0, 'int'); + if ($modid > 0) { + $criteria->add(new Criteria('modid', $modid)); + $verif = true; + } + $comments_status = $system->cleanVars($_POST, 'comments_status', 0, 'int'); + if ($comments_status > 0) { + $criteria->add(new Criteria('status', $_POST['comments_status'])); + $verif = true; + } + $comments_userid = $system->cleanVars($_POST, 'comments_userid', '', 'string'); + if ($comments_userid != '') { + foreach ($_REQUEST['comments_userid'] as $del) { + $criteria->add(new Criteria('uid', $del), 'OR'); + } + $verif = true; + } + $comments_groupe = $system->cleanVars($_POST, 'comments_groupe', '', 'string'); + if ($comments_groupe != '') { + foreach ($_POST['comments_groupe'] as $del => $u_name) { + $member_handler = $xoops->getHandlerMember(); + $members = $member_handler->getUsersByGroup($u_name, true); + $mcount = count($members); + if ($mcount > 4000) { + $helper->redirect('admin/main.php', 2, _AM_COMMENTS_DELETE_LIMIT); + } + for ($i = 0; $i < $mcount; $i++) { + $criteria->add(new Criteria('uid', $members[$i]->getVar('uid')), 'OR'); + } + } + $verif = true; + } + if (isset($_POST['commentslist_id'])) { + $commentslist_count = (!empty($_POST['commentslist_id']) && is_array($_POST['commentslist_id'])) + ? count($_POST['commentslist_id']) : 0; + if ($commentslist_count > 0) { + for ($i = 0; $i < $commentslist_count; $i++) { + $criteria->add(new Criteria('id', $_REQUEST['commentslist_id'][$i]), 'OR'); + } + } + $verif = true; + } + if ($verif == true) { + if ($comment_handler->deleteAll($criteria)) { + $helper->redirect("admin/main.php", 3, _AM_SYSTEM_DBUPDATED); + } + } else { + $helper->redirect("admin/main.php", 3, _AM_SYSTEM_DBUPDATED); + } + break; + + default: + $admin_page->addTips(_AM_COMMENTS_NAV_TIPS); + $admin_page->renderTips(); + // Display comments + $myts = MyTextSanitizer::getInstance(); + $comments_Handler = $helper->getHandlerComment(); + $comments_module = ''; + $comments_status = ''; + + $criteria = new CriteriaCompo(); + $comments_module = $system->cleanVars($_REQUEST, 'comments_module', 0, 'int'); + if ($comments_module > 0) { + $criteria->add(new Criteria('modid', $comments_module)); + $comments_module = $_REQUEST['comments_module']; + } + $comments_status = $system->cleanVars($_REQUEST, 'comments_status', 0, 'int'); + if ($comments_status > 0) { + $criteria->add(new Criteria('status', $comments_status)); + $comments_status = $_REQUEST['comments_status']; + } + + $criteria->setSort('created'); + $criteria->setOrder('DESC'); + + $comments_count = $comments_Handler->getCount($criteria); + + $xoops->tpl()->assign('comments_count', $comments_count); + + $comments_arr = array(); + $comments_start = 0; + $comments_limit = 0; + if ($comments_count > 0) { + $comments_start = $system->cleanVars($_REQUEST, 'comments_start', 0, 'int'); + $comments_limit = $system->cleanVars($_REQUEST, 'comments_limit', 0, 'int'); + if (!in_array($comments_limit, $limit_array)) { + $comments_limit = $helper->getConfig('com_pager'); + } + $criteria->setLimit($comments_limit); + $criteria->setStart($comments_start); + + $comments_arr = $comments_Handler->getObjects($criteria, true); + } + + $url = $helper->url('admin/main.php'); + $form = '<form action="' . $url . '" method="post"> + <select name="comments_module">'; + + foreach ($module_array as $k => $v) { + $sel = ''; + if ($k == $module) { + $sel = ' selected="selected"'; + } + $form .= '<option value="' . $k . '"' . $sel . '>' . $v . '</option>'; + } + $form .= '</select> <select name="comments_status">'; + + foreach ($status_array as $k => $v) { + $sel = ''; + if (isset($status) && $k == $status) { + $sel = ' selected="selected"'; + } + $form .= '<option value="' . $k . '"' . $sel . '>' . $v . '</option>'; + } + + + $form .= '</select> <select name="comments_limit">'; + foreach ($limit_array as $k) { + $sel = ''; + if (isset($limit) && $k == $limit) { + $sel = ' selected="selected"'; + } + $form .= '<option value="' . $k . '"' . $sel . '>' . $k . '</option>'; + } + $form .= '</select> <input type="submit" value="' . _GO . '" name="selsubmit" /></form>'; + + $xoops->tpl()->assign('form_sort', $form); + $xoops->tpl()->assign('php_selft', $_SERVER['PHP_SELF'] . '?op=comments_purge'); + + if ($comments_count > 0) { + foreach (array_keys($comments_arr) as $i) { + $id = $comments_arr[$i]->getVar('id'); + $comments_poster_uname = $xoops->getConfig('anonymous'); + if ($comments_arr[$i]->getVar('uid') > 0) { + $poster = $member_handler->getUser($comments_arr[$i]->getVar('uid')); + if (is_object($poster)) { + $comments_poster_uname = '<a href="' . XOOPS_URL . '/userinfo.php?uid=' . $comments_arr[$i]->getVar('uid') . '">' . $poster->getVar('uname') . '</a>'; + } + } + + $comments_icon = ($comments_arr[$i]->getVar('icon') == '') ? '/images/icons/no_posticon.gif' + : '/images/subject/' . htmlspecialchars($comments_arr[$i]->getVar('icon'), ENT_QUOTES); + $comments_icon = '<img src="' . XOOPS_URL . $comments_icon . '" alt="" />'; + + $comments['comments_id'] = $id; + $comments['comments_poster'] = $comments_poster_uname; + $comments['comments_icon'] = $comments_icon; + $comments['comments_title'] = '<a href="main.php?op=comments_jump&item_id=' . $comments_arr[$i]->getVar("id") . '">' . $comments_arr[$i]->getVar("title") . '</a>'; + $comments['comments_ip'] = $comments_arr[$i]->getVar('ip'); + $comments['comments_date'] = XoopsLocal::formatTimeStamp($comments_arr[$i]->getVar('created')); + $comments['comments_text'] = $myts->undoHtmlSpecialChars($comments_arr[$i]->getVar('text')); + $comments['comments_status'] = @$status_array2[$comments_arr[$i]->getVar('status')]; + $comments['comments_date_created'] = XoopsLocal::formatTimestamp($comments_arr[$i]->getVar('created'), 'm'); + $comments['comments_modid'] = @$module_array[$comments_arr[$i]->getVar('modid')]; + //$comments['comments_view_edit_delete'] = '<img class="cursorpointer" onclick="display_dialog('.$id.', true, true, \'slide\', \'slide\', 300, 500);" src="images/icons/view.png" alt="'._AM_COMMENTS_VIEW.'" title="'._AM_COMMENTS_VIEW.'" /><a href="admin/comments/comment_edit.php?id='.$id.'"><img src="./images/icons/edit.png" border="0" alt="'._EDIT.'" title="'._EDIT.'"></a><a href="admin/comments/comment_delete.php?id='.$id.'"><img src="./images/icons/delete.png" border="0" alt="'._DELETE.'" title="'._DELETE.'"></a>'; + + $xoops->tpl()->append_by_ref('comments', $comments); + $xoops->tpl()->append_by_ref('comments_popup', $comments); + unset($comments); + } + + if ($comments_count > $comments_limit) { + $nav = new XoopsPageNav($comments_count, $comments_limit, $comments_start, 'comments_start', 'comments_module=' . $comments_module . '&comments_status=' . $comments_status); + $xoops->tpl()->assign('nav', $nav->renderNav()); + } + } + break; +} +// Call Footer +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/main.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/menu.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,35 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]['title'] = _MI_COMMENTS_INDEX; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]['icon'] = 'home.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_COMMENTS_MANAGE; +$adminmenu[$i]['link'] = "admin/main.php"; +$adminmenu[$i]['icon'] = 'manage.png'; + +$i++; +$adminmenu[$i]['title'] = _MI_COMMENTS_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = 'about.png'; \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/comments_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/comments_blocks.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/comments_blocks.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,94 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +function b_comments_show($options) +{ + $xoops = Xoops::getInstance(); + $helper = Comments::getInstance(); + + $block = array(); + $available_modules = Xoops_Plugin::getAvailablePlugins('comments'); + if (empty($available_modules)) { + return $block; + } + + $comment_handler = $helper->getHandlerComment(); + $criteria = new CriteriaCompo(new Criteria('status', COMMENTS_ACTIVE)); + $criteria->setLimit(intval($options[0])); + $criteria->setSort('created'); + $criteria->setOrder('DESC'); + + // Check modules permissions + $moduleperm_handler = $xoops->getHandlerGroupperm(); + $gperm_groupid = $xoops->isUser() ? $xoops->user->getGroups() : array(XOOPS_GROUP_ANONYMOUS); + $criteria1 = new CriteriaCompo(new Criteria('gperm_name', 'module_read', '=')); + $criteria1->add(new Criteria('gperm_groupid', '(' . implode(',', $gperm_groupid) . ')', 'IN')); + $perms = $moduleperm_handler->getObjects($criteria1, true); + $modIds = array(); + foreach ($perms as $item) { + $modIds[] = $item->getVar('gperm_itemid'); + } + if (count($modIds) > 0) { + $modIds = array_unique($modIds); + $criteria->add(new Criteria('modid', '(' . implode(',', $modIds) . ')', 'IN')); + } else { + return $block; + } + + $comments = $comment_handler->getObjects($criteria, true); + $member_handler = $xoops->getHandlerMember(); + $module_handler = $xoops->getHandlerModule(); + $modules = $module_handler->getObjectsArray(new Criteria('dirname', "('" . implode("'", array_keys($available_modules)) ."')", 'IN'), true); + $comment_config = array(); + foreach (array_keys($comments) as $i) { + $mid = $comments[$i]->getVar('modid'); + $com['module'] = '<a href="' . XOOPS_URL . '/modules/' . $modules[$mid]->getVar('dirname') . '/">' . $modules[$mid]->getVar('name') . '</a>'; + if (!isset($comment_config[$mid])) { + $comment_config[$mid] = Xoops_Plugin::getPlugin($modules[$mid]->getVar('dirname'), 'comments'); + } + $com['id'] = $i; + $com['title'] = '<a href="' . XOOPS_URL . '/modules/' . $modules[$mid]->getVar('dirname') . '/' . $comment_config[$mid]->pageName() . '?' . $comment_config[$mid]->itemName() . '=' . $comments[$i]->getVar('itemid') . '&com_id=' . $i . '&com_rootid=' . $comments[$i]->getVar('rootid') . '&' . htmlspecialchars($comments[$i]->getVar('exparams')) . '#comment' . $i . '">' . $comments[$i]->getVar('title') . '</a>'; + $com['icon'] = htmlspecialchars($comments[$i]->getVar('icon'), ENT_QUOTES); + $com['icon'] = ($com['icon'] != '') ? $com['icon'] : 'icon1.gif'; + $com['time'] = XoopsLocal::formatTimestamp($comments[$i]->getVar('created'), 'm'); + if ($comments[$i]->getVar('uid') > 0) { + $poster = $member_handler->getUser($comments[$i]->getVar('uid')); + if (is_object($poster)) { + $com['poster'] = '<a href="' . XOOPS_URL . '/userinfo.php?uid=' . $comments[$i]->getVar('uid') . '">' . $poster->getVar('uname') . '</a>'; + } else { + $com['poster'] = $xoops->getConfig('anonymous'); + } + } else { + $com['poster'] = $xoops->getConfig('anonymous'); + } + $block['comments'][] = $com; + unset($com); + } + return $block; +} + +function b_comments_edit($options) +{ + $inputtag = "<input type='text' name='options[]' value='" . intval($options[0]) . "' />"; + $form = sprintf(_MB_SYSTEM_DISPLAYC, $inputtag); + return $form; +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/comments_blocks.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/blocks/index.html 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/comment.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/comment.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/comment.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,258 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * A Comment + * + * @author Kazumi Ono <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ +class CommentsComment extends XoopsObject +{ + + /** + * Constructor + **/ + public function __construct() + { + $this->initVar('id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('pid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('modid', XOBJ_DTYPE_INT, null, false); + $this->initVar('icon', XOBJ_DTYPE_OTHER, '', false); + $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, true, 255, true); + $this->initVar('text', XOBJ_DTYPE_TXTAREA, '', true, null, true); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('modified', XOBJ_DTYPE_INT, 0, false); + $this->initVar('uid', XOBJ_DTYPE_INT, 0, true); + $this->initVar('ip', XOBJ_DTYPE_OTHER, null, false); + $this->initVar('sig', XOBJ_DTYPE_INT, 0, false); + $this->initVar('itemid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('rootid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('status', XOBJ_DTYPE_INT, 0, false); + $this->initVar('exparams', XOBJ_DTYPE_OTHER, null, false, 255); + $this->initVar('dohtml', XOBJ_DTYPE_INT, 0, false); + $this->initVar('dosmiley', XOBJ_DTYPE_INT, 1, false); + $this->initVar('doxcode', XOBJ_DTYPE_INT, 1, false); + $this->initVar('doimage', XOBJ_DTYPE_INT, 1, false); + $this->initVar('dobr', XOBJ_DTYPE_INT, 1, false); + //not in db + $this->initVar('noname', XOBJ_DTYPE_INT, 0, false); + } + + /** + * @return bool + */ + public function isRoot() + { + return ($this->getVar('id') == $this->getVar('rootid')); + } +} + +/** + * Comment handler class. + * + * @author Kazumi Ono <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ +class CommentsCommentHandler extends XoopsPersistableObjectHandler +{ + /** + * Constructor + * + * @param XoopsDatabase|null $db {@link XoopsDatabase} + */ + public function __construct(XoopsDatabase $db = null) + { + parent::__construct($db, 'comments', 'CommentsComment', 'id', 'title'); + } + + /** + * Retrieves comments for an item + * + * @param int $module_id Module ID + * @param int $item_id Item ID + * @param string $order Sort order + * @param int $status Status of the comment + * @param int $limit Max num of comments to retrieve + * @param int $start Start offset + * + * @return array Array of {@link CommentsComment} objects + **/ + public function getByItemId($module_id, $item_id, $order = null, $status = null, $limit = null, $start = 0) + { + $criteria = new CriteriaCompo(new Criteria('modid', intval($module_id))); + $criteria->add(new Criteria('itemid', intval($item_id))); + if (isset($status)) { + $criteria->add(new Criteria('status', intval($status))); + } + if (isset($order)) { + $criteria->setOrder($order); + } + if (isset($limit)) { + $criteria->setLimit($limit); + $criteria->setStart($start); + } + return $this->getObjects($criteria); + } + + /** + * Gets total number of comments for an item + * + * @param int $module_id Module ID + * @param int $item_id Item ID + * @param int $status Status of the comment + * + * @return array Array of {@link CommentsComment} objects + **/ + public function getCountByItemId($module_id, $item_id, $status = null) + { + $criteria = new CriteriaCompo(new Criteria('modid', intval($module_id))); + $criteria->add(new Criteria('itemid', intval($item_id))); + if (isset($status)) { + $criteria->add(new Criteria('status', intval($status))); + } + return $this->getCount($criteria); + } + + /** + * @param int $module_id + * @param int|null $item_id + * @return int + */ + public function getCountByModuleId($module_id, $item_id = null) + { + $criteria = new CriteriaCompo(new Criteria('modid', intval($module_id))); + if (isset($item_id)) { + $criteria->add(new Criteria('itemid', intval($item_id))); + } + return $this->getCount($criteria); + } + + /** + * Get the top {@link CommentsComment}s + * + * @param int $module_id + * @param int $item_id + * @param string $order + * @param int $status + * + * @return array Array of {@link CommentsComment} objects + **/ + public function getTopComments($module_id, $item_id, $order, $status = null) + { + $criteria = new CriteriaCompo(new Criteria('modid', intval($module_id))); + $criteria->add(new Criteria('itemid', intval($item_id))); + $criteria->add(new Criteria('pid', 0)); + if (isset($status)) { + $criteria->add(new Criteria('status', intval($status))); + } + $criteria->setOrder($order); + return $this->getObjects($criteria); + } + + /** + * Retrieve a whole thread + * + * @param int $comment_rootid + * @param int $comment_id + * @param int $status + * + * @return array Array of {@link CommentsComment} objects + **/ + public function getThread($comment_rootid, $comment_id, $status = null) + { + $criteria = new CriteriaCompo(new Criteria('rootid', intval($comment_rootid))); + $criteria->add(new Criteria('id', intval($comment_id), '>=')); + if (isset($status)) { + $criteria->add(new Criteria('status', intval($status))); + } + return $this->getObjects($criteria); + } + + /** + * Update + * + * @param CommentsComment $comment {@link CommentsComment} object + * @param string $field_name Name of the field + * @param mixed $field_value Value to write + * + * @return bool + **/ + public function updateByField(CommentsComment $comment, $field_name, $field_value) + { + $comment->unsetNew(); + $comment->setVar($field_name, $field_value); + return $this->insert($comment); + } + + /** + * Delete all comments for one whole module + * + * @param int $module_id ID of the module + * @return bool + **/ + public function deleteByModule($module_id) + { + return $this->deleteAll(new Criteria('modid', intval($module_id))); + } + + /** + * @param int $module_id + * @param int $item_id + * @return bool + */ + function deleteByItemId($module_id, $item_id) + { + $module_id = intval($module_id); + $item_id = intval($item_id); + if ($module_id > 0 && $item_id > 0) { + $comments = $this->getByItemId($module_id, $item_id); + if (is_array($comments)) { + $count = count($comments); + $deleted_num = array(); + for ($i = 0; $i < $count; $i++) { + if (false != $this->delete($comments[$i])) { + // store poster ID and deleted post number into array for later use + $poster_id = $comments[$i]->getVar('uid'); + if ($poster_id != 0) { + $deleted_num[$poster_id] = !isset($deleted_num[$poster_id]) ? 1 + : ($deleted_num[$poster_id] + 1); + } + } + } + + $member_handler = Xoops::getInstance()->getHandlerMember(); + foreach ($deleted_num as $user_id => $post_num) { + // update user posts + /* @var $member_handler XoopsMemberHandler */ + $poster = $member_handler->getUser($user_id); + if (is_object($poster)) { + $member_handler->updateUserByField($poster, 'posts', $poster->getVar('posts') - $post_num); + } + } + return true; + } + } + return false; + } + +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/comment.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/commentrenderer.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/commentrenderer.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/commentrenderer.php 2012-12-23 20:25:39 UTC (rev 10530) @@ -0,0 +1,442 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Display comments + * + * @author Kazumi Ono <on...@xo...> + * @package class + */ +class CommentsCommentRenderer +{ + /** + * @var XoopsTpl + */ + private $_tpl; + + /** + * @var array + */ + private $_comments = array(); + + /** + * @var bool + */ + private $_useIcons = true; + + /** + * @var bool + */ + private $_doIconCheck = false; + + /** + * @var array + */ + private $_statusText; + + /** + * Constructor + * + * @param XoopsTpl $tpl + * @param boolean $use_icons + * @param boolean $do_iconcheck + */ + public function __construct(XoopsTpl $tpl, $use_icons = true, $do_iconcheck = false) + { + $this->_tpl = $tpl; + $this->_useIcons = $use_icons; + $this->_doIconCheck = $do_iconcheck; + $this->_statusText = array( + COMMENTS_PENDING => '<span style="text-decoration: none; font-weight: bold; color: #00ff00;">' . _MD_COMMENTS_PENDING . '</span>', + COMMENTS_ACTIVE => '<span style="text-decoration: none; font-weight: bold; color: #ff0000;">' . _MD_COMMENTS_ACTIVE . '</span>', + COMMENTS_HIDDEN => '<span style="text-decoration: none; font-weight: bold; color: #0000ff;">' . _MD_COMMENTS_HIDDEN . '</span>' + ); + } + + /** + * Access the only instance of this class + * + * @param XoopsTpl $tpl reference to a {@link XoopsTpl} object + * @param boolean $use_icons + * @param boolean $do_iconcheck + * + * @return CommentsCommentRenderer + */ + static public function getInstance(XoopsTpl $tpl, $use_icons = true, $do_iconcheck = false) + { + static $instance; + if (!isset($instance)) { + $class = __CLASS__; + $instance = new $class($tpl, $use_icons, $do_iconcheck); + } + return $instance; + } + + /** + * Accessor + * + * @param array $comments_arr array of {@link XoopsComment} objects + */ + public function setComments(&$comments_arr) + { + if (isset($this->_comments)) { + unset($this->_comments); + } + $this->_comments =& $comments_arr; + } + + /** + * Render the comments in flat view + * + * @param boolean $admin_view + */ + public function renderFlatView($admin_view = false) + { + foreach ($this->_comments as $i => $comment) { + /* @var $comment XoopsComment */ + if (false != $this->_useIcons) { + $title = $this->_getTitleIcon($comment->getVar('icon')) . ' ' . $comment->getVar('title'); + } else { + $title = $comment->getVar('title'); + } + $poster = $this->_getPosterArray($comment->getVar('uid')); + if (false != $admin_view) { + $text = $comment->getVar('text') . '<div style="text-align:right; margin-top: 2px; margin-bottom: 0px; margin-right: 2px;">' . _MD_COMMENTS_STATUS . ': ' . $this->_statusText[$comment->getVar('status')] . '<br />IP: <span style="font-weight: bold;">' . $comment->getVar('ip') . '</span></div>'; + } else { + // hide comments that are not active + if (COMMENTS_ACTIVE != $comment->getVar('status')) { + continue; + } else { + $text = $comment->getVar('text'); + } + } + $this->_comments[$i] = $comment; + $this->_tpl->append('comments', array( + 'id' => $comment->getVar('id'), + 'title' => $title, + 'text' => $text, + 'date_posted' => XoopsLocal::formatTimestamp($comment->getVar('created'), 'm'), + 'date_modified' => XoopsLocal::formatTimestamp($comment->getVar('modified'), 'm'), + 'poster' => $poster + )); + } + } + + /** + * Render the comments in thread view + * This method calls itself recursively + * + * @param integer $comment_id Should be "0" when called by client + * @param boolean $admin_view + * @param boolean $show_nav + */ + public function renderThreadView($comment_id = 0, $admin_view = false, $show_nav = true) + { + // construct comment tree + $xot = new XoopsObjectTree($this->_comments, 'id', 'pid', 'rootid'); + $tree = $xot->getTree(); + + if (false != $this->_useIcons) { + $title = $this->_getTitleIcon($tree[$comment_id]['obj']->getVar('icon')) . ' ' . $tree[$comment_id]['obj']->getVar('title'); + } else { + $title = $tree[$comment_id]['obj']->getVar('title'); + } + if (false != $show_nav && $tree[$comment_id]['obj']->getVar('pid') != 0) { + $this->_tpl->assign('lang_top', _MD_COMMENTS_TOP); + $this->_tpl->assign('lang_parent', _MD_COMMENTS_PARENT); + $this->_tpl->assign('show_threadnav', true); + } else { + $this->_tpl->assign('show_threadnav', false); + } + if (false != $admin_view) { + // admins can see all + $text = $tree[$comment_id]['obj']->getVar('text') . '<div style="text-align:right; margin-top: 2px; margin-bottom: 0px; margin-right: 2px;">' . _MD_COMMENTS_STATUS . ': ' . $this->_statusText[$tree[$comment_id]['obj']->getVar('status')] . '<br />IP: <span style="font-weight: bold;">' . $tree[$comment_id]['obj']->getVar('ip') . '</span></div>'; + } else { + // hide comments that are not active + if (COMMENTS_ACTIVE != $tree[$comment_id]['obj']->getVar('status')) { + // if there are any child comments, display them as root comments + if (isset($tree[$comment_id]['child']) && !empty($tree[$comment_id]['child'])) { + foreach ($tree[$comment_id]['child'] as $child_id) { + $this->renderThreadView($child_id, $admin_view, false); + } + } + return; + } else { + $text = $tree[$comment_id]['obj']->getVar('text'); + } + } + $replies = array(); + $this->_renderThreadReplies($tree, $comment_id, $replies, ' ', $admin_view); + $show_replies = (count($replies) > 0) ? true : false; + $this->_tpl->append('comments', array( + 'pid' => $tree[$comment_id]['obj']->getVar('pid'), + 'id' => $tree[$comment_id]['obj']->getVar('id'), + 'itemid' => $tree[$comment_id]['obj']->getVar('itemid'), + 'rootid' => $tree[$comment_id]['obj']->getVar('rootid'), + 'title' => $title, + 'text' => $text, + 'date_posted' => XoopsLocal::formatTimestamp($tree[$comment_id]['obj']->getVar('created'), 'm'), + 'date_modified' => XoopsLocal::formatTimestamp($tree[$comment_id]['obj']->getVar('modified'), 'm'), + 'poster' => $this->_getPosterArray($tree[$comment_id]['obj']->getVar('uid')), + 'replies' => $replies, + 'show_replies' => $show_replies + )); + } + + /** + * Render replies to a thread + * + * @param array $thread + * @param int $key + * @param array $replies + * @param string $prefix + * @param bool $admin_view + * @param integer $depth + * @param string $current_prefix + * + * @access private + */ + private function _renderThreadReplies(&$thread, $key, &$replies, $prefix, $admin_view, $depth = 0, $current_prefix = '') + { + if ($depth > 0) { + if (false != $this->_useIcons) { + $title = $this->_getTitleIcon($thread[$key]['obj']->getVar('icon')) . ' ' . $thread[$key]['obj']->getVar('title'); + } else { + $title = $thread[$key]['obj']->getVar('title'); + } + $title = (false != $admin_view) ? $title . ' ' . $this->_statusText[$thread[$key]['obj']->getVar('status')] : $title; + $replies[] = array( + 'id' => $key, + 'prefix' => $current_prefix, + 'date_posted' => XoopsLocal::formatTimestamp($thread[$key]['obj']->getVar('created'), 'm'), + 'title' => $title, + 'root_id' => $thread[$key]['obj']->getVar('rootid'), + 'status' => $this->_statusText[$thread[$key]['obj']->getVar('status')], + 'poster' => $this->_getPosterName($thread[$key]['obj']->getVar('uid')) + ); + $current_prefix .= $prefix; + } + if (isset($thread[$key]['child']) && !empty($thread[$key]['child'])) { + $depth++; + foreach ($thread[$key]['child'] as $childkey) { + if (!$admin_view && $thread[$childkey]['obj']->getVar('status') != COMMENTS_ACTIVE) { + // skip this comment if it is not active and continue on processing its child comments instead + if (isset($thread[$childkey]['child']) && !empty($thread[$childkey]['child'])) { + foreach ($thread[$childkey]['child'] as $childchildkey) { + $this->_renderThreadReplies($thread, $childchildkey, $replies, $prefix, $admin_view, $depth); + } + } + } else { + $this->_renderThreadReplies($thread, $childkey, $replies, $prefix, $admin_view, $depth, $current_prefix); + } + } + } + } + + /** + * Render comme... [truncated message content] |
From: <du...@us...> - 2012-12-24 01:41:24
|
Revision: 10534 http://sourceforge.net/p/xoops/svn/10534 Author: dugris Date: 2012-12-24 01:41:20 +0000 (Mon, 24 Dec 2012) Log Message: ----------- Comments plugin for user post synchronization Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php 2012-12-24 01:41:20 UTC (rev 10534) @@ -0,0 +1,32 @@ +<?php +/** + * Comments module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * 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 Comments + * @since 2.6.0 + * @author Laurent JEN (Aka DuGris) + * @version $Id$ + */ + +class CommentsSystemPlugin extends Xoops_Plugin_Abstract implements SystemPluginInterface +{ + public function UserSync($uid) + { + $xoops = Xoops::getInstance(); + $comment_handler = Comments::getInstance()->getHandlerComment(); + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('status', COMMENTS_ACTIVE)); + $criteria->add(new Criteria('uid', $uid)); + return $comment_handler->getCount($criteria); + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL \ No newline at end of property Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php 2012-12-24 00:06:38 UTC (rev 10533) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/system.php 2012-12-24 01:41:20 UTC (rev 10534) @@ -1,39 +0,0 @@ -<?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 http://www.fsf.org/copyleft/gpl.html GNU public license - * @author Laurent JEN (aka DuGris) - * @version $Id$ - */ - -class SystemSystemPlugin extends Xoops_Plugin_Abstract implements SystemPluginInterface -{ - public function UserSync($uid) - { - $xoops = Xoops::getInstance(); - $count = 0; - - // Comments Start - include_once $xoops->path('include/comment_constants.php'); - - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria('com_status', XOOPS_COMMENT_ACTIVE)); - $criteria->add(new Criteria('com_uid', $uid)); - - $comment_handler = $xoops->getHandlerComment(); - $count += $comment_handler->getCount($criteria); - // Comments End - - return $count; - } -} \ No newline at end of file |
From: <du...@us...> - 2012-12-24 02:13:03
|
Revision: 10535 http://sourceforge.net/p/xoops/svn/10535 Author: dugris Date: 2012-12-24 02:13:00 +0000 (Mon, 24 Dec 2012) Log Message: ----------- Implement plugin for Waiting block Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php 2012-12-24 01:41:20 UTC (rev 10534) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/comments/class/plugin/system.php 2012-12-24 02:13:00 UTC (rev 10535) @@ -21,7 +21,6 @@ { public function UserSync($uid) { - $xoops = Xoops::getInstance(); $comment_handler = Comments::getInstance()->getHandlerComment(); $criteria = new CriteriaCompo(); @@ -29,4 +28,17 @@ $criteria->add(new Criteria('uid', $uid)); return $comment_handler->getCount($criteria); } + + public function Waiting() + { + $comment_handler = Comments::getInstance()->getHandlerComment(); + $criteria = new CriteriaCompo(new Criteria('status', COMMENTS_PENDING)); + + if ($ret['pendingnum'] = $comment_handler->getCount($criteria)) { + $ret['lang_linkname'] = Xoops::getInstance()->getHandlerModule()->getBydirname('comments')->getVar('name'); + $ret['adminlink'] = Xoops::getInstance()->url('modules/comments/admin/main.php'); + return $ret; + } + return false; + } } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php 2012-12-24 01:41:20 UTC (rev 10534) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php 2012-12-24 02:13:00 UTC (rev 10535) @@ -181,106 +181,18 @@ return $block; } -// this block is deprecated function b_system_waiting_show() { - $xoops = Xoops::getInstance(); - $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection(); - $module_handler = $xoops->getHandlerModule(); $block = array(); - - // waiting content for news - if ($xoops->isActiveModule('news') && $module_handler->getCount(new Criteria('dirname', 'news'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("stories") . " WHERE published=0"); - if ($result) { - $block['modules'][0]['adminlink'] = XOOPS_URL . "/modules/news/admin/index.php?op=newarticle"; - list($block['modules'][0]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][0]['lang_linkname'] = _MB_SYSTEM_SUBMS; + $i=0; + $plugins = Xoops_Plugin::getAvailablePlugins('system'); + foreach ($plugins as $module) { + if (method_exists($module, 'Waiting')){ + if ($res = $module->Waiting()) { + $block['modules'][$i] = $res; + } } } - - // waiting content for mylinks - if ($xoops->isActiveModule('mylinks') && $module_handler->getCount(new Criteria('dirname', 'mylinks'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mylinks_links") . " WHERE status=0"); - if ($result) { - $block['modules'][1]['adminlink'] = XOOPS_URL . "/modules/mylinks/admin/index.php?op=listNewLinks"; - list($block['modules'][1]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][1]['lang_linkname'] = _MB_SYSTEM_WLNKS; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mylinks_broken")); - if ($result) { - $block['modules'][2]['adminlink'] = XOOPS_URL . "/modules/mylinks/admin/index.php?op=listBrokenLinks"; - list($block['modules'][2]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][2]['lang_linkname'] = _MB_SYSTEM_BLNK; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mylinks_mod")); - if ($result) { - $block['modules'][3]['adminlink'] = XOOPS_URL . "/modules/mylinks/admin/index.php?op=listModReq"; - list($block['modules'][3]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][3]['lang_linkname'] = _MB_SYSTEM_MLNKS; - } - } - - // waiting content for mydownloads - if ($xoops->isActiveModule('mydownloads') && $module_handler->getCount(new Criteria('dirname', 'mydownloads'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mydownloads_downloads") . " WHERE status=0"); - if ($result) { - $block['modules'][4]['adminlink'] = XOOPS_URL . "/modules/mydownloads/admin/index.php?op=listNewDownloads"; - list($block['modules'][4]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][4]['lang_linkname'] = _MB_SYSTEM_WDLS; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mydownloads_broken") . ""); - if ($result) { - $block['modules'][5]['adminlink'] = XOOPS_URL . "/modules/mydownloads/admin/index.php?op=listBrokenDownloads"; - list($block['modules'][5]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][5]['lang_linkname'] = _MB_SYSTEM_BFLS; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("mydownloads_mod") . ""); - if ($result) { - $block['modules'][6]['adminlink'] = XOOPS_URL . "/modules/mydownloads/admin/index.php?op=listModReq"; - list($block['modules'][6]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][6]['lang_linkname'] = _MB_SYSTEM_MFLS; - } - } - - // waiting content for xoops comments - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("xoopscomments") . " WHERE com_status=1"); - if ($result) { - $block['modules'][7]['adminlink'] = XOOPS_URL . "/modules/system/admin.php?module=0&status=1&fct=comments"; - list($block['modules'][7]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][7]['lang_linkname'] = _MB_SYSTEM_COMPEND; - } - - // waiting content for TDMDownloads - if ($xoops->isActiveModule('TDMdownloads') && $module_handler->getCount(new Criteria('dirname', 'TDMDownloads'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmdownloads_downloads") . " WHERE status=0"); - if ($result) { - $block['modules'][8]['adminlink'] = XOOPS_URL . "/modules/TDMDownloads/admin/downloads.php?op=list&statut_display=0"; - list($block['modules'][8]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][8]['lang_linkname'] = _MB_SYSTEM_TDMDOWNLOADS; - } - } - - // waiting content for extgallery - if ($xoops->isActiveModule('extgallery') && $module_handler->getCount(new Criteria('dirname', 'extgallery'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("extgallery_publicphoto") . " WHERE photo_approved=0"); - if ($result) { - $block['modules'][9]['adminlink'] = XOOPS_URL . "/modules/extgallery/admin/photo.php#pending-photo"; - list($block['modules'][9]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][9]['lang_linkname'] = _MB_SYSTEM_EXTGALLERY; - } - } - - // waiting content for smartsection - if ($xoops->isActiveModule('smartsection') && $module_handler->getCount(new Criteria('dirname', 'smartsection'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix("smartsection_items") . " WHERE status=1"); - if ($result) { - $block['modules'][10]['adminlink'] = XOOPS_URL . "/modules/smartsection/admin/item.php"; - list($block['modules'][10]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][10]['lang_linkname'] = _MB_SYSTEM_SMARTSECTION; - } - } - return $block; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php 2012-12-24 01:41:20 UTC (rev 10534) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/plugin/interface.php 2012-12-24 02:13:00 UTC (rev 10535) @@ -19,5 +19,6 @@ interface SystemPluginInterface { public function UserSync($uid); + public function Waiting(); } |
From: <tr...@us...> - 2012-12-26 18:55:24
|
Revision: 10564 http://sourceforge.net/p/xoops/svn/10564 Author: trabis Date: 2012-12-26 18:55:19 +0000 (Wed, 26 Dec 2012) Log Message: ----------- Adding first version of menus module. It is not finished yet. Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/builder.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/helper.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/menus.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/plugin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/plugin/interface.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/superfish-navbar.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/superfish-vertical.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/superfish.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/constant/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/constant/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/constant/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/english/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/dynamic/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/dynamic/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/dynamic/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/smarty/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/smarty/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/smarty/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/skins.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/usage.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/+.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/0.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/about_kde.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/add.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/add_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/asc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/attach.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/back.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/back1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/back2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/bookmark.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/bookmark_add.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/button_cancel.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/button_ok.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/cd.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/compfile.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/configure.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/contents.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/decrypted.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/desc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/down.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/down_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/edit.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editcut.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editdelete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editdelete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editpaste.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/edittrash.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/encrypted.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/exit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileclose.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filefind.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filenew.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filenew2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileopen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileprint.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileprint.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filequickprint.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesave.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesave2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesaveas.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesaveas2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/find.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/folder.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/folder_new.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/forward.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/forward1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/forward2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/frameprint.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/gohome.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/help.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/klipper_dock.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/klipper_dock2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/locationbar_erase.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/lock.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_delete2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_find.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_find2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_forward.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_forward2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_generic.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_generic2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_get.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_get2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_new.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_new2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_new3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replay.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replayall.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_reply.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_reply2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replyall.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replyall2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replylist.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replylist2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_send.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_send.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_send2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/make_kdevelop.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/message_reply.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/misc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/next.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/openterm.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/people.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/personal.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/previous.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/project_open.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/queue.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/rebuild.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/redo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/reload.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/reload3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/reload_page.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/run.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/show_clips.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/signature.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/stop.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/thumbnail.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/toggle_log.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/undo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/unlock.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_choose.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_detailed.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_icon.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_left_right.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_multicolumn.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_remove.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_right.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_sidetree.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_text.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_top_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_tree.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag+.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag-.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmagfit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/window_fullscreen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/window_new.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/window_nofullscreen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/wizard.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/arrows-ffffff.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/delete_big.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/delete_big_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/delete_med.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/edit_big.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/edit_big_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/edit_med.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/left_both.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/right_both.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/shadow.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/view_big.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/view_big_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/hoverIntent.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/jquery-1.3.2.min.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/jquery.bgiframe.min.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/superfish.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/supersubs.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/bc_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/bc_separator.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/bc_separator_end.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/home.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/style.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow_down_purple.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow_down_white.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow_over.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/navbar-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/pro_dropdown_3.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/stuHover.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/arrow.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/arrow_over.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/pro_dropdown_3.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/stuHover.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_0.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_0a.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_1.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_1a.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/superfish-navbar.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/superfish-vertical.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/superfish.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/arrows-ffffff.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/shadow.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/superfish-navbar.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/superfish-vertical.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/superfish.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/arrows-ffffff.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/shadow.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/menu_left.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/menu_mid.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/menu_right.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/nav-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/split.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/submenu_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/submenu_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/submenu_top.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/tw_blue.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/menu_left.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/menu_mid.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/menu_right.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/nav-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/split.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/submenu_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/submenu_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/submenu_top.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/tw_red.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/sql2.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/menu.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/menus.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/blocks/menus_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/xoops_version.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,27 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +$aboutAdmin = new XoopsModuleAdmin(); +$aboutAdmin->displayNavigation('about.php'); +$aboutAdmin->displayAbout('6KJ7RW5DR3VTJ', true); +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,392 @@ +<?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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include_once dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$helper = Menus::getInstance(); +$menus_handler = $helper->getHandlerMenus(); +$criteria = new CriteriaCompo(); +$criteria->setSort('title'); +$criteria->setOrder('ASC'); +$menus_list = $menus_handler->getList($criteria); + +$indexAdmin = new XoopsModuleAdmin(); + +if (empty($menus_list)) { + $xoops->redirect('admin_menus.php', 1, _AM_MENUS_MSG_NOMENUS); +} + +if (isset($_REQUEST['menu_id']) && in_array($_REQUEST['menu_id'], array_keys($menus_list))) { + $menu_id = $_REQUEST['menu_id']; + $menu_title = $menus_list[$menu_id]; +} else { + $keys = array_keys($menus_list); + $menu_id = $keys[0]; + $menu_title = $menus_list[$menu_id]; +} + +$tpl = new XoopsTpl(); +$tpl->assign('menu_id', $menu_id); +$tpl->assign('menu_title', $menu_title); +$tpl->assign('menus_list', $menus_list); + +$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); + +$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); +$pid = isset($_GET['pid']) ? intval($_GET['pid']) : (isset($_POST['pid']) ? intval($_POST['pid']) : null); + +$weight = isset($_GET['weight']) ? intval($_GET['weight']) : (isset($_POST['weight']) ? intval($_POST['weight']) : 0); +$visible = isset($_GET['visible']) ? intval($_GET['visible']) : (isset($_POST['visible']) ? intval($_POST['visible']) : 0); + +switch ($op) { + case 'add': + menus_admin_add(); + break; + case 'form': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + echo menus_admin_form(null, $pid); + $xoops->footer(); + break; + case 'edit': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + echo menus_admin_form($id); + $xoops->footer(); + break; + case 'editok': + menus_admin_edit($id); + break; + case 'del': + menus_admin_confirmdel($id); + break; + case 'delok': + menus_admin_del($id); + break; + case 'delall': + menus_admin_confirmdel(null, 'delallok'); + break; + case 'delallok': + menus_admin_delall(); + break; + case 'move': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + menus_admin_move($id, $weight); + echo menus_admin_list($menu_id, $tpl); + $xoops->footer(); + break; + case 'toggle': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + menus_admin_toggle($id, $visible); + echo menus_admin_list($menu_id, $tpl); + $xoops->footer(); + break; + case 'list': + default: + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + echo menus_admin_list($menu_id, $tpl); + $xoops->footer(); + break; +} + +function menus_admin_list($menu_id, XoopsTpl $tpl) +{ + $helper = Menus::getInstance(); + + $this_handler = $helper->getHandlerMenu(); + + $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); + $count = $this_handler->getCount($criteria); + $tpl->assign('count', $count); + $criteria->setSort('weight'); + $criteria->setOrder('ASC'); + + if ($count > 0) { + $array = array(); + $menus = $this_handler->getObjects($criteria); + /* @var $menu MenusMenu */ + foreach ($menus as $menu) { + $array[] = $menu->getValues(); + } + $builder = new MenusBuilder($array); + $menusArray = $builder->render(); + $tpl->assign('menus', $menusArray); + } + + $tpl->assign('addform', menus_admin_form()); + + return $tpl->fetch($helper->path('templates/admin/menu.html')); +} + +function menus_admin_del($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + if ($id <= 0) { + $helper->redirect('admin/admin_menu.php', 1); + } + + $this_handler = Menus::getInstance()->getHandlerMenu(); + $obj = $this_handler->get($id); + if (!is_object($obj)) { + $helper->redirect('admin/admin_menu.php', 1); + } + + if (!$this_handler->delete($obj)) { + $xoops->header(); + $xoops->error(_AM_MENUS_MSG_ERROR, $obj->getVar('id')); + $xoops->footer(); + } + + $helper->redirect('admin/admin_menu.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_delall() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenu(); + + if (!$this_handler->deleteAll()) { + $helper->redirect('admin/admin_menu.php', 2, _AM_MENUS_MSG_ERROR); + } + + $helper->redirect('admin/admin_menu.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_confirmdel($id = null, $op = 'delok') +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + $arr = array(); + $arr['op'] = $op; + $arr['id'] = $id; + + $xoops->header(); + $xoops->confirm($arr, $helper->url('admin/admin_menu.php'), _AM_MENUS_MSG_AYS); + $xoops->footer(); +} + +function menus_admin_add() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenu(); + $criteria = new CriteriaCompo(new Criteria('mid', $_POST['mid'])); + $criteria->setSort('weight'); + $criteria->setOrder('DESC'); + $criteria->setLimit(1); + $menus = $this_handler->getObjects($criteria); + $weight = 1; + if (isset($menus[0]) && is_object($menus[0])) { + $weight = $menus[0]->getVar('weight') + 1; + } + + $obj = $this_handler->create(); + if (!isset($_POST['hooks'])) { + $_POST['hooks'] = array(); + } + $obj->setVars($_POST); + $obj->setVar('weight', $weight); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $this_handler->update_weights($obj); + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menu.php?op=list&menu_id=' . $obj->getVar('mid'), 2, $msg); +} + +function menus_admin_edit($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler = $helper->getHandlerMenu(); + $obj = $this_handler->get($id); + if (!isset($_POST['hooks'])) { + $_POST['hooks'] = array(); + } + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menu.php?op=list', 2, $msg); +} + +function menus_admin_form($id = null, $pid = null) +{ + global $menu_id; + + $helper = Menus::getInstance(); + $decorators = MenusDecorator::getAvailableDecorators(); + /* @var $decorator MenusDecoratorInterface */ + + $this_handler = $helper->getHandlerMenu(); + + if (isset($id)) { + $ftitle = _EDIT; + $obj = $this_handler->get($id); + $objArray = $obj->getValues(); + } else { + $ftitle = _ADD; + $obj = $this_handler->create(); + $objArray = $obj->getValues(); + if (isset($pid)) { + $objArray['pid'] = $pid; + } + } + + $form = new XoopsThemeForm($ftitle, 'admin_form', $helper->url('admin/admin_menu.php'), "post", true); + $formtitle = new XoopsFormText(_AM_MENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']); + $formalttitle = new XoopsFormText(_AM_MENUS_MENU_ALTTITLE, 'alt_title', 50, 255, $objArray['alt_title']); + + $formlink = new XoopsFormText(_AM_MENUS_MENU_LINK, 'link', 50, 255, $objArray['link']); + + $formimage = new XoopsFormText(_AM_MENUS_MENU_IMAGE, 'image', 50, 255, $objArray['image']); + + $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); + $criteria->add(new Criteria('id', $id, '<>')); + $criteria->setSort('weight'); + $criteria->setOrder('ASC'); + + $results = $this_handler->getAll($criteria, array('title', 'id', 'pid') /*, false, false*/); + + $parent_tree = new XoopsObjectTree($results, 'id', 'pid'); + $parent_select = $parent_tree->makeSelBox('pid', 'title', '-- ', $objArray['pid'], true); + $formparent = new XoopsFormLabel(_AM_MENUS_MENU_PARENT, $parent_select); + + $formvis = new XoopsFormSelect(_AM_MENUS_MENU_VISIBLE, "visible", $objArray['visible']); + $formvis->addOption("0", _NO); + $formvis->addOption("1", _YES); + //---------------mamba + /* + global $xoopsModule; + $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); + + $statontxt + = " <img src=". $pathIcon16 .'/1.png'.' '. "alt='" ._YES . "' /> " . _YES + . " "; + $statofftxt + = " <img src=". $pathIcon16 .'/0.png' .' '."alt='" . _NO . "' /> " + . _NO . " "; + $formvis = new XoopsFormRadioYN(_AM_MENUS_MENU_VISIBLE, 'visible', $objArray['visible'], $statontxt, $statofftxt); + //---------------mamba + */ + $formtarget = new XoopsFormSelect(_AM_MENUS_MENU_TARGET, "target", $objArray['target']); + $formtarget->addOption("_self", _AM_MENUS_MENU_TARG_SELF); + $formtarget->addOption("_blank", _AM_MENUS_MENU_TARG_BLANK); + $formtarget->addOption("_parent", _AM_MENUS_MENU_TARG_PARENT); + $formtarget->addOption("_top", _AM_MENUS_MENU_TARG_TOP); + + $formgroups = new XoopsFormSelectGroup(_AM_MENUS_MENU_GROUPS, "groups", true, $objArray['groups'], 5, true); + $formgroups->setDescription(_AM_MENUS_MENU_GROUPS_HELP); + + $formhooks = new XoopsFormSelect(_AM_MENUS_MENU_ACCESS_FILTER, "hooks", $objArray['hooks'], 5, true); + + $accessFilter = array(); + foreach ($decorators as $decorator) { + $decorator->accessFilter($accessFilter); + } + + foreach ($accessFilter as $result) { + $formhooks->addOption($result['method'], $result['name']); + } + $formcss = new XoopsFormText(_AM_MENUS_MENU_CSS, 'css', 50, 255, $objArray['css']); + + $form->addElement($formtitle, true); + $form->addElement($formalttitle); + $form->addElement($formlink); + $form->addElement($formimage); + $form->addElement($formparent); + $form->addElement($formvis); + $form->addElement($formtarget); + $form->addElement($formgroups); + $form->addElement($formhooks); + $form->addElement($formcss); + + $tray = new XoopsFormElementTray('', ''); + $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + + if (isset($id)) { + $btn->setExtra('onclick="document.location.href=\'admin_menu.php?op=list&menu_id=' . $menu_id . ' \'"'); + } else { + $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); + } + + $tray->addElement($btn); + $form->addElement($tray); + + if (isset($id)) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('id', $id)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + $form->addElement(new XoopsFormHidden('mid', $menu_id)); + + return $form->render(); +} + +function menus_admin_move($id, $weight) +{ + $this_handler = Menus::getInstance()->getHandlerMenu(); + $obj = $this_handler->get($id); + $obj->setVar('weight', $weight); + $this_handler->insert($obj); + $this_handler->update_weights($obj); +} + +function menus_admin_toggle($id, $visible) +{ + $visible = ($visible == 1) ? 0 : 1; + $this_handler = Menus::getInstance()->getHandlerMenu(); + $obj = $this_handler->get($id); + $obj->setVar('visible', $visible); + $this_handler->insert($obj); +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,257 @@ +<?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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include_once dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$helper = Menus::getInstance(); + +$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); +$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); +$limit = isset($_GET['limit']) ? intval($_GET['limit']) : (isset($_POST['limit']) ? intval($_POST['limit']) : 15); +$start = isset($_GET['start']) ? intval($_GET['start']) : (isset($_POST['start']) ? intval($_POST['start']) : 0); + +$indexAdmin = new XoopsModuleAdmin(); + +switch ($op) { + case 'add': + menus_admin_add(); + break; + case 'edit': + xoops_cp_header(); + $indexAdmin->displayNavigation('admin_menus.php'); + echo menus_admin_form($id); + $xoops->footer(); + break; + case 'editok': + menus_admin_edit($id); + break; + case 'del': + menus_admin_confirmdel($id); + break; + case 'delok': + menus_admin_del($id); + break; + case 'delall': + menus_admin_confirmdel(null, 'delallok'); + break; + case 'delallok': + menus_admin_delall(); + break; + case 'list': + default: + $xoops->header(); + $indexAdmin->displayNavigation('admin_menus.php'); + echo menus_admin_list($start, $limit); + $xoops->footer(); + break; +} + +function menus_admin_list($start = 0, $limit = 0) +{ + $tpl = new XoopsTpl(); + + $myts = MyTextSanitizer::getInstance(); + $helper = Menus::getInstance(); + + $this_handler = $helper->getHandlerMenus(); + + $query = isset($_POST['query']) ? $_POST['query'] : null; + $tpl->assign('query', $query); + + $criteria = new CriteriaCompo(); + if (!is_null($query)) { + $crit = new CriteriaCompo(new Criteria('title', $myts->addSlashes($query) . '%', 'LIKE')); + $criteria->add($crit); + } + + $count = $this_handler->getCount($criteria); + $tpl->assign('count', $count); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('id'); + $criteria->setOrder('ASC'); + + if ($count > 0) { + if ($count > $limit) { + $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); + $tpl->assign('pag', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); + } else { + $tpl->assign('pag', ''); + } + + $objs = $this_handler->getObjects($criteria); + /* @var $obj MenusMenus */ + foreach ($objs as $obj) { + $tpl->append('objs', $obj->getValues()); + } + } + + $tpl->assign('addform', menus_admin_form()); + return $tpl->fetch($helper->path('templates/admin/menus.html')); +} + +function menus_admin_del($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + if ($id <= 0) { + $helper->redirect('admin/admin_menus.php', 1); + } + + $this_handler = $helper->getHandlerMenus(); + $obj = $this_handler->get($id); + if (!is_object($obj)) { + $helper->redirect('admin/admin_menus.php', 1); + } + + if (!$this_handler->delete($obj)) { + $xoops->header(); + $xoops->error(_AM_MENUS_MSG_ERROR, $obj->getVar('id')); + $xoops->footer(); + exit(); + } + + $this_handler = $helper->getHandlerMenu(); + $criteria = new Criteria('mid', $id); + $this_handler->deleteAll($criteria); + unset($criteria); + + $helper->redirect('admin/admin_menus.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_delall() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenus(); + + if (!$this_handler->deleteAll()) { + $helper->redirect('admin/admin_menus.php', 2, _AM_MENUS_MSG_ERROR); + } + + $helper->redirect('admin/admin_menus.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_confirmdel($id = null, $op = 'delok') +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + $arr = array(); + $arr['op'] = $op; + $arr['id'] = $id; + $xoops->header(); + $xoops->confirm($arr, $helper->url('admin/admin_menus.php'), _AM_MENUS_MSG_AYS); + $xoops->footer(); +} + +function menus_admin_add() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenus(); + $obj = $this_handler->create(); + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menus.php' . '?op=list', 2, $msg); +} + +function menus_admin_edit($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + $this_handler = $helper->getHandlerMenus(); + $obj = $this_handler->get($id); + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menus.php' . '?op=list', 2, $msg); +} + +function menus_admin_form($id = null) +{ + $helper = Menus::getInstance(); + $this_handler = $helper->getHandlerMenus(); + + if (isset($id)) { + $ftitle = _EDIT; + $obj = $this_handler->get($id); + $objArray = $obj->getValues(); + } else { + $ftitle = _ADD; + $obj = $this_handler->create(); + $objArray = $obj->getValues(); + } + + $form = new XoopsThemeForm($ftitle, 'admin_form', $helper->url('admin/admin_menus.php'), "post", true); + $form->addElement(new XoopsFormText(_AM_MENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']), true); + + $tray = new XoopsFormElementTray('', ''); + $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + + if (isset($id)) { + $btn->setExtra('onclick="document.location.href=\'' . $GLOBALS['menus_adminpage'] . '?op=list\'"'); + } else { + $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); + } + + $tray->addElement($btn); + $form->addElement($tray); + + if (isset($id)) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('id', $id)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + return $form->render(); +} Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,21 @@ +<?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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,29 @@ +<?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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Menus + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); + +$indexAdmin = new XoopsModuleAdmin(); +$indexAdmin->displayNavigation('index.php'); +$indexAdmin->displayIndex(); + +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,41 @@ +<?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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + + +$i = -1; +$i++; +$adminmenu[$i]["title"] = _MI_MENUS_ADMMENU0; +$adminmenu[$i]["link"] = 'admin/index.php'; +$adminmenu[$i]["icon"] = 'home.png'; +$i++; +$adminmenu[$i]['title'] = _MI_MENUS_MENUSMANAGER; +$adminmenu[$i]['link'] = "admin/admin_menus.php"; +$adminmenu[$i]["icon"] = 'manage.png'; +$i++; +$adminmenu[$i]['title'] = _MI_MENUS_MENUMANAGER; +$adminmenu[$i]['link'] = "admin/admin_menu.php"; +$adminmenu[$i]["icon"] = 'insert_table_row.png'; +$i++; +$adminmenu[$i]['title'] = _MI_MENUS_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i]["icon"] = 'about.png'; + Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property 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 Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,197 @@ +<?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 http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lusopoemas@gmai... [truncated message content] |