You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
From: <txm...@us...> - 2012-02-15 14:01:27
|
Revision: 8999 http://xoops.svn.sourceforge.net/xoops/?rev=8999&view=rev Author: txmodxoops Date: 2012-02-15 14:01:16 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module translation v1.01 Added Paths: ----------- XoopsModules/translation/ XoopsModules/translation/branches/ XoopsModules/translation/releases/ XoopsModules/translation/releases/1.01/ XoopsModules/translation/releases/1.01/translation/ XoopsModules/translation/releases/1.01/translation/admin/ XoopsModules/translation/releases/1.01/translation/admin/about.php XoopsModules/translation/releases/1.01/translation/admin/header.php XoopsModules/translation/releases/1.01/translation/admin/index.html XoopsModules/translation/releases/1.01/translation/admin/index.php XoopsModules/translation/releases/1.01/translation/admin/menu.php XoopsModules/translation/releases/1.01/translation/admin/traslator.php XoopsModules/translation/releases/1.01/translation/blocks/ XoopsModules/translation/releases/1.01/translation/blocks/index.html XoopsModules/translation/releases/1.01/translation/changelog.txt XoopsModules/translation/releases/1.01/translation/class/ XoopsModules/translation/releases/1.01/translation/class/index.html XoopsModules/translation/releases/1.01/translation/class/menu.php XoopsModules/translation/releases/1.01/translation/class/object.php XoopsModules/translation/releases/1.01/translation/header.php XoopsModules/translation/releases/1.01/translation/images/ XoopsModules/translation/releases/1.01/translation/images/deco/ XoopsModules/translation/releases/1.01/translation/images/deco/about.png XoopsModules/translation/releases/1.01/translation/images/deco/arrow.gif XoopsModules/translation/releases/1.01/translation/images/deco/delete.gif XoopsModules/translation/releases/1.01/translation/images/deco/edit.gif XoopsModules/translation/releases/1.01/translation/images/deco/index.html XoopsModules/translation/releases/1.01/translation/images/deco/index.png XoopsModules/translation/releases/1.01/translation/images/deco/off.gif XoopsModules/translation/releases/1.01/translation/images/deco/on.gif XoopsModules/translation/releases/1.01/translation/images/deco/permissions.png XoopsModules/translation/releases/1.01/translation/images/deco/pref.png XoopsModules/translation/releases/1.01/translation/images/deco/traslator.png XoopsModules/translation/releases/1.01/translation/images/deco/update.png XoopsModules/translation/releases/1.01/translation/images/index.html XoopsModules/translation/releases/1.01/translation/images/menu/ XoopsModules/translation/releases/1.01/translation/images/menu/bg.png XoopsModules/translation/releases/1.01/translation/images/menu/index.html XoopsModules/translation/releases/1.01/translation/images/menu/left_both.png XoopsModules/translation/releases/1.01/translation/images/menu/right_both.png XoopsModules/translation/releases/1.01/translation/images/translation_logo.png XoopsModules/translation/releases/1.01/translation/images/translation_slogo.png XoopsModules/translation/releases/1.01/translation/images/txmod_logo.png XoopsModules/translation/releases/1.01/translation/include/ XoopsModules/translation/releases/1.01/translation/include/configs.php XoopsModules/translation/releases/1.01/translation/include/functions.php XoopsModules/translation/releases/1.01/translation/include/index.html XoopsModules/translation/releases/1.01/translation/include/install.php XoopsModules/translation/releases/1.01/translation/include/lng.js XoopsModules/translation/releases/1.01/translation/include/style.css XoopsModules/translation/releases/1.01/translation/include/tables.css XoopsModules/translation/releases/1.01/translation/include/tables.js XoopsModules/translation/releases/1.01/translation/index.php XoopsModules/translation/releases/1.01/translation/language/ XoopsModules/translation/releases/1.01/translation/language/english/ XoopsModules/translation/releases/1.01/translation/language/english/admin.php XoopsModules/translation/releases/1.01/translation/language/english/blocks.php XoopsModules/translation/releases/1.01/translation/language/english/index.html XoopsModules/translation/releases/1.01/translation/language/english/main.php XoopsModules/translation/releases/1.01/translation/language/english/modinfo.php XoopsModules/translation/releases/1.01/translation/language/french/ XoopsModules/translation/releases/1.01/translation/language/french/admin.php XoopsModules/translation/releases/1.01/translation/language/french/blocks.php XoopsModules/translation/releases/1.01/translation/language/french/index.html XoopsModules/translation/releases/1.01/translation/language/french/main.php XoopsModules/translation/releases/1.01/translation/language/french/modinfo.php XoopsModules/translation/releases/1.01/translation/language/index.html XoopsModules/translation/releases/1.01/translation/language/italian/ XoopsModules/translation/releases/1.01/translation/language/italian/admin.php XoopsModules/translation/releases/1.01/translation/language/italian/blocks.php XoopsModules/translation/releases/1.01/translation/language/italian/index.html XoopsModules/translation/releases/1.01/translation/language/italian/main.php XoopsModules/translation/releases/1.01/translation/language/italian/modinfo.php XoopsModules/translation/releases/1.01/translation/sql/ XoopsModules/translation/releases/1.01/translation/sql/index.html XoopsModules/translation/releases/1.01/translation/tables.php XoopsModules/translation/releases/1.01/translation/templates/ XoopsModules/translation/releases/1.01/translation/templates/blocks/ XoopsModules/translation/releases/1.01/translation/templates/blocks/index.html XoopsModules/translation/releases/1.01/translation/templates/index.html XoopsModules/translation/releases/1.01/translation/templates/translation_footer.html XoopsModules/translation/releases/1.01/translation/templates/translation_header.html XoopsModules/translation/releases/1.01/translation/templates/translation_index.html XoopsModules/translation/releases/1.01/translation/templates/translation_tables.html XoopsModules/translation/releases/1.01/translation/xoops_version.php XoopsModules/translation/trunk/ Added: XoopsModules/translation/releases/1.01/translation/admin/about.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/admin/about.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/admin/about.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,118 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +translation_adminmenu(2, _AM_TRANSLATION_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (2, _AM_TRANSLATION_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_TRANSLATION_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_TRANSLATION_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_TRANSLATION_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_TRANSLATION_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_TRANSLATION_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_TRANSLATION_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_TRANSLATION_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_TRANSLATION_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_TRANSLATION_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_TRANSLATION_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_TRANSLATION_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_TRANSLATION_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +echo "<br /><br /> +<div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\"><img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/admin/header.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/admin/header.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/admin/header.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,107 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("translation"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function translation_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/translation/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/translation/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/translation/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_TRANSLATION_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/translation/index.php\">_AM_TRANSLATION_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/translation/admin/upgrade.php\">_AM_TRANSLATION_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/translation/admin/index.php\"><span>_MI_TRANSLATION_MANAGER_INDEX</span></a></li> + + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/translation/admin/permissions.php\"><span>_MI_TRANSLATION_MANAGER_PERMISSIONS</span></a></li> + <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/translation/admin/about.php\"><span>_MI_TRANSLATION_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + + +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/admin/index.html =================================================================== --- XoopsModules/translation/releases/1.01/translation/admin/index.html (rev 0) +++ XoopsModules/translation/releases/1.01/translation/admin/index.html 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/admin/index.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/admin/index.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/admin/index.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +translation_adminmenu(0, _AM_TRANSLATION_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_TRANSLATION_MANAGER_INDEX); +} + +include_once XOOPS_ROOT_PATH."/modules/translation/class/menu.php"; + + $menu = new translationMenu(); + $menu->addItem("traslator", "traslator.php", "../images/deco/traslator.png", _AM_TRANSLATION_MANAGER_TRASLATOR); + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=translation", "../images/deco/update.png", _AM_TRANSLATION_MANAGER_UPDATE); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_TRANSLATION_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_TRANSLATION_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_TRANSLATION_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\" width=\"auto\">".$menu->render()."</td> + <td valign=\"top\" width=\"auto\"></td> + </tr> + </table> +<br /><br /> +<div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\"><img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/admin/menu.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/admin/menu.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/admin/menu.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,33 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_TRANSLATION_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_TRANSLATION_MANAGER_TRASLATOR; +$adminmenu[1]["link"] = "admin/traslator.php"; +$adminmenu[2]["title"] = _MI_TRANSLATION_MANAGER_ABOUT; +$adminmenu[2]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/admin/traslator.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/admin/traslator.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/admin/traslator.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +translation_adminmenu(1, _AM_TRANSLATION_MANAGER_TRASLATOR); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_TRANSLATION_MANAGER_TRASLATOR); +} + +include_once XOOPS_ROOT_PATH."/modules/translation/class/menu.php"; + + $menu = new translationMenu(); + $menu->addItem("traslator", "traslator.php", "../images/deco/traslator.png", _AM_TRANSLATION_MANAGER_TRASLATOR); + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=translation", "../images/deco/update.png", _AM_TRANSLATION_MANAGER_UPDATE); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_TRANSLATION_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_TRANSLATION_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_TRANSLATION_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\" width=\"60%\">".$menu->render()."</td> + <td valign=\"top\" width=\"40%\"></td> + </tr> + </table> +<br /><br /> +<div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\"><img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/blocks/index.html =================================================================== --- XoopsModules/translation/releases/1.01/translation/blocks/index.html (rev 0) +++ XoopsModules/translation/releases/1.01/translation/blocks/index.html 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/changelog.txt =================================================================== --- XoopsModules/translation/releases/1.01/translation/changelog.txt (rev 0) +++ XoopsModules/translation/releases/1.01/translation/changelog.txt 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,4 @@ +Version 1.01 +--------------------- +. Added Scripts JQuery Library +. Added Source From Google Traslaction Added: XoopsModules/translation/releases/1.01/translation/class/index.html =================================================================== --- XoopsModules/translation/releases/1.01/translation/class/index.html (rev 0) +++ XoopsModules/translation/releases/1.01/translation/class/index.html 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/class/menu.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/class/menu.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/class/menu.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +class translationMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + // if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/class/object.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/class/object.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/class/object.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criteria($this->keyName, intval($id)); + } + $criteria->setLimit(1); + $obj_array = $this->getObjects($criteria, false, $as_object); + if (count($obj_array) != 1) { + $obj = $this->create(); + return $obj; + } + return $obj_array[0]; + } + + /** + * retrieve objects from the database + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param bool $id_as_key use the ID as key for the array? + * @param bool $as_object return an array of objects? + * + * @return array + */ + function getObjects($criteria=null, $id_as_key=false, $as_object=true){ + $ret = array(); + $limit = $start = 0; + $sql = 'SELECT * FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + return $this->convertResultSet($result, $id_as_key, $as_object); + } + + /** + * Convert a database resultset to a returnable array + * + * @param object $result database resultset + * @param bool $id_as_key - should NOT be used with joint keys + * @param bool $as_object + * + * @return array + */ + function convertResultSet($result, $id_as_key = false, $as_object = true) { + $ret = array(); + while ($myrow = $this->db->fetchArray($result)) { + $obj =& $this->create(false); + $obj->assignVars($myrow); + if (!$id_as_key) { + if ($as_object) { + $ret[] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[] = $row; + } + } else { + if ($as_object) { + $ret[$myrow[$this->keyName]] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[$myrow[$this->keyName]] = $row; + } + } + unset($obj); + } + return $ret; + } + + /** + * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param int $limit Max number of objects to fetch + * @param int $start Which record to start at + * + * @return array + */ + function getList($criteria = null, $limit = 0, $start = 0) { + $ret = array(); + if ($criteria == null) { + $criteria = new CriteriaCompo(); + } + + if ($criteria->getSort() == '') { + $criteria->setSort($this->identifierName); + } + + $sql = 'SELECT '.$this->keyName; + if(!empty($this->identifierName)){ + $sql .= ', '.$this->identifierName; + } + $sql .= ' FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + $myts =& MyTextSanitizer::getInstance(); + while ($myrow = $this->db->fetchArray($result)) { + //identifiers should be textboxes, so sanitize them like that + $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); + } + return $ret; + } + + /** + * count objects matching a condition + * + * @param object $criteria {@link CriteriaElement} to match + * @return int count of objects + */ + function getCount($criteria=null){ + $field = ""; + $groupby = false; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + if ($criteria->groupby != "") { + $groupby = true; + $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used + } + } + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->groupby != "") { + $sql .= $criteria->getGroupby(); + } + } + $result = $this->db->query($sql); + if (!$result) { + return 0; + } + if ($groupby == false) { + list($count) = $this->db->fetchRow($result); + return $count; + } else { + $ret = array(); + while (list($id, $count) = $this->db->fetchRow($result)) { + $ret[$id] = $count; + } + return $ret; + } + } + + /** + * delete an object from the database + * + * @param object $obj reference to the object to delete + * @param bool $force + * @return bool FALSE if failed. + */ + function delete(&$obj, $force = false){ + if (is_array($this->keyName)) { + $clause = array(); + for ($i = 0; $i < count($this->keyName); $i++) { + $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + $whereclause = implode(" AND ", $clause); + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause; + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * insert a new object in the database + * + * @param object $obj reference to the object + * @param bool $force whether to force the query execution despite security settings + * @param bool $checkObject check if the object is dirty and clean the attributes + * @return bool FALSE if failed, TRUE if already present and unchanged or successful + */ + + function insert(&$obj, $force=false, $checkObject=true){ + if ($checkObject != false) { + if (!is_object($obj)) { + var_dump($obj); + return false; + } + /** + * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5 + */ + if (!is_a($obj, $this->className)) { + $obj->setErrors(get_class($obj)." Differs from ".$this->className); + return false; + } + if (!$obj->isDirty()) { + $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith + return true; + } + } + if (!$obj->cleanVars()) { + return false; + } + + foreach ($obj->cleanVars as $k => $v) { + if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { + $cleanvars[$k] = intval($v); + } elseif ( is_array( $v ) ) { + $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) ); + } else { + $cleanvars[$k] = $this->db->quoteString($v); + } + } + if ($obj->isNew()) { + if (!is_array($this->keyName)) { + if ($cleanvars[$this->keyName] < 1) { + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); + } + } + $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")"; + } else { + $sql = "UPDATE ".$this->table." SET"; + foreach ($cleanvars as $key => $value) { + if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) { + continue; + } + if (isset($notfirst) ) { + $sql .= ","; + } + $sql .= " ".$key." = ".$value; + $notfirst = true; + } + if (is_array($this->keyName)) { + $whereclause = ""; + for ($i = 0; $i < count($this->keyName); $i++) { + if ($i > 0) { + $whereclause .= " AND "; + } + $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql .= " WHERE ".$whereclause; + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + if ($obj->isNew() && !is_array($this->keyName)) { + $obj->assignVar($this->keyName, $this->db->getInsertId()); + } + return true; + } + + /** + * Change a value for objects with a certain criteria + * + * @param string $fieldname Name of the field + * @param string $fieldvalue Value to write + * @param object $criteria {@link CriteriaElement} + * @return bool + */ + function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){ + $set_clause = $fieldname . ' = '; + if ( is_numeric( $fieldvalue ) ) { + $set_clause .= $fieldvalue; + } elseif ( is_array( $fieldvalue ) ) { + $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) ); + } else { + $set_clause .= $this->db->quoteString( $fieldvalue ); + } + $sql = 'UPDATE '.$this->table.' SET '.$set_clause; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * delete all objects meeting the conditions + * + * @param object $criteria {@link CriteriaElement} with conditions to meet + * @return bool + */ + function deleteAll($criteria = null){ + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql = 'DELETE FROM '.$this->table; + $sql .= ' '.$criteria->renderWhere(); + if (!$this->db->queryF($sql)) { + return false; + } + $rows = $this->db->getAffectedRows(); + return $rows > 0 ? $rows : true; + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/header.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/header.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/header.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,28 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../mainfile.php"; +include XOOPS_ROOT_PATH."/modules/translation/include/configs.php"; +include XOOPS_ROOT_PATH."/modules/translation/include/functions.php"; +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/images/deco/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/arrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/delete.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/delete.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/edit.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/edit.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/index.html =================================================================== --- XoopsModules/translation/releases/1.01/translation/images/deco/index.html (rev 0) +++ XoopsModules/translation/releases/1.01/translation/images/deco/index.html 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/images/deco/index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/off.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/off.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/on.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/on.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/pref.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/pref.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/traslator.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/traslator.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/deco/update.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/deco/update.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/index.html =================================================================== --- XoopsModules/translation/releases/1.01/translation/images/index.html (rev 0) +++ XoopsModules/translation/releases/1.01/translation/images/index.html 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/images/menu/bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/menu/bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/menu/index.html =================================================================== --- XoopsModules/translation/releases/1.01/translation/images/menu/index.html (rev 0) +++ XoopsModules/translation/releases/1.01/translation/images/menu/index.html 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/images/menu/left_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/menu/left_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/menu/right_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/menu/right_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/translation_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/translation_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/translation_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/translation_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/images/txmod_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/translation/releases/1.01/translation/images/txmod_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/translation/releases/1.01/translation/include/configs.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/include/configs.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/include/configs.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,52 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Translation + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + + +if( ! defined( "XOOPS_ROOT_PATH" ) ) exit ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +if( ! preg_match( "/^(\D+)(\d*)$/" , $mydirname , $regs ) ) echo ( "invalid dirname: " . htmlspecialchars( $mydirname ) ) ; +$mydirnumber = $regs[2] === "" ? "" : intval( $regs[2] ) ; + +global $xoopsConfig , $xoopsDB , $xoopsUser, $xoopsModule; + +// module information +$mod_url = XOOPS_URL . "/modules/$mydirname"; +$mod_path = XOOPS_ROOT_PATH . "/modules/$mydirname"; +$mod_img = XOOPS_URL . "/modules/$mydirname/images/translation_logo.png"; +$mod_name = $xoopsModule->getVar('name'); +$mod_admin = "<a href='".XOOPS_URL."/modules/$mydirname/admin/index.php'>"._MD_TRANSLATION_ADMIN."</a>"; +$mod_copyright = "<a href='http://www.txmodxoops.org/' target='_new' title='Powered by TXMod for Xoops'> + <img src='$mod_url/images/txmod_logo.png' alt='".$mod_name."' /></a>"; + +// global language file +$language = $xoopsConfig['language'] ; +if ( file_exists( "$mod_path/language/$language/main.php" ) ) { + include_once "$mod_path/language/$language/main.php" ; +} else { + include_once "$mod_path/language/english/main.php" ; + $language = "english" ; +} + +?> \ No newline at end of file Added: XoopsModules/translation/releases/1.01/translation/include/functions.php =================================================================== --- XoopsModules/translation/releases/1.01/translation/include/functions.php (rev 0) +++ XoopsModules/translation/releases/1.01/translation/include/functions.php 2012-02-15 14:01:16 UTC (rev 8999) @@ -0,0 +1,44 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * TRANSLATION - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (web...@tx...) + * + * 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 credi... [truncated message content] |
From: <txm...@us...> - 2012-02-15 13:44:44
|
Revision: 8998 http://xoops.svn.sourceforge.net/xoops/?rev=8998&view=rev Author: txmodxoops Date: 2012-02-15 13:44:29 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module videostream v1.32 Added Paths: ----------- XoopsModules/videostream/ XoopsModules/videostream/branches/ XoopsModules/videostream/releases/ XoopsModules/videostream/releases/1.32/ XoopsModules/videostream/releases/1.32/videostream/ XoopsModules/videostream/releases/1.32/videostream/admin/ XoopsModules/videostream/releases/1.32/videostream/admin/about.php XoopsModules/videostream/releases/1.32/videostream/admin/admin_footer.php XoopsModules/videostream/releases/1.32/videostream/admin/admin_header.php XoopsModules/videostream/releases/1.32/videostream/admin/header.php XoopsModules/videostream/releases/1.32/videostream/admin/index.html XoopsModules/videostream/releases/1.32/videostream/admin/index.php XoopsModules/videostream/releases/1.32/videostream/admin/list.php XoopsModules/videostream/releases/1.32/videostream/admin/menu.php XoopsModules/videostream/releases/1.32/videostream/admin/permissions.php XoopsModules/videostream/releases/1.32/videostream/admin/stream.php XoopsModules/videostream/releases/1.32/videostream/blocks/ XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_list.php XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_stream.php XoopsModules/videostream/releases/1.32/videostream/blocks/index.html XoopsModules/videostream/releases/1.32/videostream/class/ XoopsModules/videostream/releases/1.32/videostream/class/index.html XoopsModules/videostream/releases/1.32/videostream/class/list.php XoopsModules/videostream/releases/1.32/videostream/class/menu.php XoopsModules/videostream/releases/1.32/videostream/class/object.php XoopsModules/videostream/releases/1.32/videostream/class/stream.php XoopsModules/videostream/releases/1.32/videostream/comment_delete.php XoopsModules/videostream/releases/1.32/videostream/comment_edit.php XoopsModules/videostream/releases/1.32/videostream/comment_new.php XoopsModules/videostream/releases/1.32/videostream/comment_post.php XoopsModules/videostream/releases/1.32/videostream/comment_reply.php XoopsModules/videostream/releases/1.32/videostream/images/ XoopsModules/videostream/releases/1.32/videostream/images/TDMLogo.png XoopsModules/videostream/releases/1.32/videostream/images/blank.gif XoopsModules/videostream/releases/1.32/videostream/images/deco/ XoopsModules/videostream/releases/1.32/videostream/images/deco/about.png XoopsModules/videostream/releases/1.32/videostream/images/deco/arrow.gif XoopsModules/videostream/releases/1.32/videostream/images/deco/contact.png XoopsModules/videostream/releases/1.32/videostream/images/deco/delete.gif XoopsModules/videostream/releases/1.32/videostream/images/deco/edit.gif XoopsModules/videostream/releases/1.32/videostream/images/deco/index.html XoopsModules/videostream/releases/1.32/videostream/images/deco/index.png XoopsModules/videostream/releases/1.32/videostream/images/deco/list_search.png XoopsModules/videostream/releases/1.32/videostream/images/deco/off.gif XoopsModules/videostream/releases/1.32/videostream/images/deco/on.gif XoopsModules/videostream/releases/1.32/videostream/images/deco/permissions.png XoopsModules/videostream/releases/1.32/videostream/images/deco/pref.png XoopsModules/videostream/releases/1.32/videostream/images/deco/topic.png XoopsModules/videostream/releases/1.32/videostream/images/deco/update.png XoopsModules/videostream/releases/1.32/videostream/images/index.html XoopsModules/videostream/releases/1.32/videostream/images/menu/ XoopsModules/videostream/releases/1.32/videostream/images/menu/bg.png XoopsModules/videostream/releases/1.32/videostream/images/menu/index.html XoopsModules/videostream/releases/1.32/videostream/images/menu/left_both.png XoopsModules/videostream/releases/1.32/videostream/images/menu/right_both.png XoopsModules/videostream/releases/1.32/videostream/include/ XoopsModules/videostream/releases/1.32/videostream/include/functions.php XoopsModules/videostream/releases/1.32/videostream/include/index.html XoopsModules/videostream/releases/1.32/videostream/include/install.php XoopsModules/videostream/releases/1.32/videostream/include/search.inc.php XoopsModules/videostream/releases/1.32/videostream/index.php XoopsModules/videostream/releases/1.32/videostream/language/ XoopsModules/videostream/releases/1.32/videostream/language/english/ XoopsModules/videostream/releases/1.32/videostream/language/english/admin.php XoopsModules/videostream/releases/1.32/videostream/language/english/blocks.php XoopsModules/videostream/releases/1.32/videostream/language/english/index.html XoopsModules/videostream/releases/1.32/videostream/language/english/main.php XoopsModules/videostream/releases/1.32/videostream/language/english/modinfo.php XoopsModules/videostream/releases/1.32/videostream/language/french/ XoopsModules/videostream/releases/1.32/videostream/language/french/admin.php XoopsModules/videostream/releases/1.32/videostream/language/french/blocks.php XoopsModules/videostream/releases/1.32/videostream/language/french/index.html XoopsModules/videostream/releases/1.32/videostream/language/french/main.php XoopsModules/videostream/releases/1.32/videostream/language/french/modinfo.php XoopsModules/videostream/releases/1.32/videostream/language/index.html XoopsModules/videostream/releases/1.32/videostream/language/italian/ XoopsModules/videostream/releases/1.32/videostream/language/italian/admin.php XoopsModules/videostream/releases/1.32/videostream/language/italian/blocks.php XoopsModules/videostream/releases/1.32/videostream/language/italian/index.html XoopsModules/videostream/releases/1.32/videostream/language/italian/main.php XoopsModules/videostream/releases/1.32/videostream/language/italian/modinfo.php XoopsModules/videostream/releases/1.32/videostream/sql/ XoopsModules/videostream/releases/1.32/videostream/sql/index.html XoopsModules/videostream/releases/1.32/videostream/sql/mysql.sql XoopsModules/videostream/releases/1.32/videostream/templates/ XoopsModules/videostream/releases/1.32/videostream/templates/blocks/ XoopsModules/videostream/releases/1.32/videostream/templates/blocks/index.html XoopsModules/videostream/releases/1.32/videostream/templates/blocks/videostream_list_block_day.html XoopsModules/videostream/releases/1.32/videostream/templates/blocks/videostream_list_block_random.html XoopsModules/videostream/releases/1.32/videostream/templates/blocks/videostream_list_block_recent.html XoopsModules/videostream/releases/1.32/videostream/templates/blocks/videostream_stream_block_day.html XoopsModules/videostream/releases/1.32/videostream/templates/blocks/videostream_stream_block_random.html XoopsModules/videostream/releases/1.32/videostream/templates/blocks/videostream_stream_block_recent.html XoopsModules/videostream/releases/1.32/videostream/templates/index.html XoopsModules/videostream/releases/1.32/videostream/xoops_version.php XoopsModules/videostream/trunk/ Added: XoopsModules/videostream/releases/1.32/videostream/admin/about.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/about.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/about.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,116 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +videostream_adminmenu(2, _AM_VIDEOSTREAM_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (2, _AM_VIDEOSTREAM_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_VIDEOSTREAM_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_VIDEOSTREAM_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_VIDEOSTREAM_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_VIDEOSTREAM_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_VIDEOSTREAM_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_VIDEOSTREAM_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_VIDEOSTREAM_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_VIDEOSTREAM_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_VIDEOSTREAM_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_VIDEOSTREAM_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_VIDEOSTREAM_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_VIDEOSTREAM_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +include_once("admin_footer.php"); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/admin_footer.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/admin_footer.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/admin_footer.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,29 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +echo "<br /><br />\n + <div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\">\n + <img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/admin_header.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/admin_header.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/admin_header.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,110 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); +include_once XOOPS_ROOT_PATH."/modules/videostream/class/stream.php"; + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("videostream"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function videostream_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/videostream/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/videostream/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/videostream/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_VIDEOSTREAM_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/videostream/index.php\">_AM_VIDEOSTREAM_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/videostream/admin/upgrade.php\">_AM_VIDEOSTREAM_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/index.php\"><span>_MI_VIDEOSTREAM_MANAGER_INDEX</span></a></li> + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/stream.php\"><span>_MI_VIDEOSTREAM_MANAGER_STREAM</span></a></li> + + <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/permissions.php\"><span>_MI_VIDEOSTREAM_MANAGER_PERMISSIONS</span></a></li> + <li id=\"$tblColors[3]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/about.php\"><span>_MI_VIDEOSTREAM_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + +$streamHandler =& xoops_getModuleHandler("videostream_stream", "videostream"); + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/header.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/header.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/header.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,110 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * videostream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package videostream + * @author timgno (http://txmod.webuda.com) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); +include_once XOOPS_ROOT_PATH."/modules/videostream/class/list.php"; + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("videostream"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function videostream_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/videostream/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/videostream/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/videostream/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_VIDEOSTREAM_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/videostream/index.php\">_AM_VIDEOSTREAM_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/videostream/admin/upgrade.php\">_AM_VIDEOSTREAM_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/index.php\"><span>_MI_VIDEOSTREAM_MANAGER_INDEX</span></a></li> + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/list.php\"><span>_MI_VIDEOSTREAM_MANAGER_LIST</span></a></li> + + <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/permissions.php\"><span>_MI_VIDEOSTREAM_MANAGER_PERMISSIONS</span></a></li> + <li id=\"$tblColors[3]\"><a href=\"".XOOPS_URL."/modules/videostream/admin/about.php\"><span>_MI_VIDEOSTREAM_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + +$listHandler =& xoops_getModuleHandler("videostream_list", "videostream"); + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/index.html =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/index.html (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/index.html 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/index.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/index.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/index.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,80 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +videostream_adminmenu(0, _AM_VIDEOSTREAM_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_VIDEOSTREAM_MANAGER_INDEX); +} + + //compte "total" + $count_stream = $streamHandler->getCount(); + //compte "attente" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("stream_online", 1)); + $stream_online = $streamHandler->getCount($criteria); + +include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/menu.php"; + + $menu = new videostreamMenu(); + $menu->addItem("stream", "stream.php", "../images/deco/contact.png", _AM_VIDEOSTREAM_MANAGER_STREAM); + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=videostream", "../images/deco/update.png", _AM_VIDEOSTREAM_MANAGER_UPDATE); + $menu->addItem("permissions", "permissions.php", "../images/deco/permissions.png", _AM_VIDEOSTREAM_MANAGER_PERMISSIONS); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_VIDEOSTREAM_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_VIDEOSTREAM_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_VIDEOSTREAM_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\">".$menu->render()."</td> + <td valign=\"top\" width=\"60%\">"; + + echo "<fieldset> + <legend class=\"CPmediumTitle\">"._AM_VIDEOSTREAM_MANAGER_STREAM."</legend> + <br />"; + printf(_AM_VIDEOSTREAM_THEREARE_STREAM, $count_stream); + echo "<br /><br />"; + printf(_AM_VIDEOSTREAM_THEREARE_STREAM_ONLINE, $stream_online); + echo "<br /> + </fieldset><br /><br />"; + + echo "</td> + </tr> + </table>"; +include_once("admin_footer.php"); +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/list.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/list.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/list.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,185 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * videostream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package videostream + * @author timgno (http://txmod.webuda.com) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +if (isset($_REQUEST["op"])) { + $op = $_REQUEST["op"]; +} else { + @$op = "show_list_list"; +} + +//Menu admin +if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php") ) { +videostream_adminmenu(1, _AM_VIDEOSTREAM_MANAGER_LIST); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_VIDEOSTREAM_MANAGER_LIST); +} + +//Sous menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/topic.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"> + <strong>"._AM_VIDEOSTREAM_MANAGER_LIST."</strong> + </div><br /><br>"; +switch ($op) +{ + case "save_list": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("list.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["videostream_id"])) { + $obj =& $listHandler->get($_REQUEST["videostream_id"]); + } else { + $obj =& $listHandler->create(); + } + + //Form videostream_name + $obj->setVar("videostream_name", $_REQUEST["videostream_name"]); + //Form videostream_ + $obj->setVar("videostream_", $_REQUEST["videostream_"]); + //Form videostream_ + $obj->setVar("videostream_", $_REQUEST["videostream_"]); + //Form videostream_ + $obj->setVar("videostream_", $_REQUEST["videostream_"]); + //Form videostream_submitter + $obj->setVar("videostream_submitter", $_REQUEST["videostream_submitter"]); + //Form videostream_date_created + $obj->setVar("videostream_date_created", strtotime($_REQUEST["videostream_date_created"])); + //Form videostream_online + $verif_videostream_online = ($_REQUEST["videostream_online"] == 1) ? "1" : "0"; + $obj->setVar("videostream_online", $verif_videostream_online); + + + if ($listHandler->insert($obj)) { + redirect_header("list.php?op=show_list_list", 2, _AM_VIDEOSTREAM_FORMOK); + } + //include_once("../include/forms.php"); + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + break; + + case "edit_list": + $obj = $listHandler->get($_REQUEST["videostream_id"]); + $form = $obj->getForm(); + break; + + case "delete_list": + $obj =& $listHandler->get($_REQUEST["videostream_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("list.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($listHandler->delete($obj)) { + redirect_header("list.php", 3, _AM_VIDEOSTREAM_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "videostream_id" => $_REQUEST["videostream_id"], "op" => "delete_list"), $_SERVER["REQUEST_URI"], sprintf(_AM_VIDEOSTREAM_FORMSUREDEL, $obj->getVar("list"))); + } + break; + + case "update_online_list": + + if (isset($_REQUEST["videostream_id"])) { + $obj =& $listHandler->get($_REQUEST["videostream_id"]); + } + $obj->setVar("list_online", $_REQUEST["list_online"]); + + if ($listHandler->insert($obj)) { + redirect_header("list.php", 3, _AM_VIDEOSTREAM_FORMOK); + } + echo $obj->getHtmlErrors(); + + break; + + case "default": + default: + + $criteria = new CriteriaCompo(); + $criteria->setSort("videostream_id"); + $criteria->setOrder("ASC"); + $numrows = $listHandler->getCount(); + $list_arr = $listHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_NAME."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_SUBMITTER."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_DATE_CREATED."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_VIDEOSTREAM_ONLINE."</th> + + <th align=\"center\" width=\"10%\">"._AM_VIDEOSTREAM_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($list_arr) as $i) + { + if ( $list_arr[$i]->getVar("topic_pid") == 0) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align=\"center\">".$list_arr[$i]->getVar("videostream_name")."</td>"; + echo "<td align=\"center\">".$list_arr[$i]->getVar("videostream_")."</td>"; + echo "<td align=\"center\">".$list_arr[$i]->getVar("videostream_")."</td>"; + echo "<td align=\"center\">".$list_arr[$i]->getVar("videostream_")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($list_arr[$i]->getVar("videostream_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($list_arr[$i]->getVar("videostream_date_created"),"S")."</td>"; + + $online = $list_arr[$i]->getVar("videostream_online"); + + if( $online == 1 ) { + echo "<td align=\"center\"><a href=\"./list.php?op=update_online_list&videostream_id=".$list_arr[$i]->getVar("videostream_id")."&list_online=0\"><img src=\"./../images/deco/on.gif\" border=\"0\" alt=\""._AM_VIDEOSTREAM_ON."\" title=\""._AM_VIDEOSTREAM_ON."\"></a></td>"; + } else { + echo "<td align=\"center\"><a href=\"./list.php?op=update_online_list&videostream_id=".$list_arr[$i]->getVar("videostream_id")."&list_online=1\"><img src=\"./../images/deco/off.gif\" border=\"0\" alt=\""._AM_VIDEOSTREAM_OFF."\" title=\""._AM_VIDEOSTREAM_OFF."\"></a></td>"; + } + echo "<td align=\"center\" width=\"10%\"> + <a href=\"list.php?op=edit_list&videostream_id=".$list_arr[$i]->getVar("videostream_id")."\"><img src=\"../images/deco/edit.gif\" alt=\""._AM_VIDEOSTREAM_EDIT."\" title=\""._AM_VIDEOSTREAM_EDIT."\"></a> + <a href=\"list.php?op=delete_list&videostream_id=".$list_arr[$i]->getVar("videostream_id")."\"><img src=\"../images/deco/delete.gif\" alt=\""._AM_VIDEOSTREAM_DELETE."\" title=\""._AM_VIDEOSTREAM_DELETE."\"></a> + </td>"; + echo "</tr>"; + } + } + echo "</table><br><br>"; + } + + // Affichage du formulaire + $obj =& $listHandler->create(); + $form = $obj->getForm(); +} +echo "<br /><br /> +<div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\"><img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/menu.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/menu.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/menu.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,36 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_VIDEOSTREAM_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_VIDEOSTREAM_MANAGER_STREAM; +$adminmenu[1]["link"] = "admin/stream.php"; +$adminmenu[2]["title"] = _MI_VIDEOSTREAM_MANAGER_PERMISSIONS; +$adminmenu[2]["link"] = "admin/permissions.php"; + +$adminmenu[3]["title"] = _MI_VIDEOSTREAM_MANAGER_ABOUT; +$adminmenu[3]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/permissions.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/permissions.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/permissions.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,97 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * videostream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package videostream + * @author timgno (http://txmod.webuda.com) + * + * Version : 1.00: + * **************************************************************************** + */ + +include("header.php"); + +if( !empty($_POST["submit"]) ) +{ + redirect_header( XOOPS_URL."/modules/".$xoopsModule->dirname()."/admin/permissions.php" , 1 , _MP_GPERMUPDATED ); +} + +xoops_cp_header(); + +global $xoopsDB; + +if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php")) { +videostream_adminmenu(2,_AM_VIDEOSTREAM_MANAGER_PERMISSIONS); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (2,_AM_VIDEOSTREAM_MANAGER_PERMISSIONS); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/permissions.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"> + <strong>"._AM_VIDEOSTREAM_MANAGER_PERMISSIONS."</strong> + </div><br />"; + + $permtoset= isset($_POST["permtoset"]) ? intval($_POST["permtoset"]) : 1; + $selected=array("","",""); + $selected[$permtoset-1]=" selected"; + +echo " +<form method=\"post\" name=\"fselperm\" action=\"permissions.php\"> + <table border=0> + <tr> + <td> + <select name=\"permtoset\" onChange=\"javascript: document.fselperm.submit()\"> + <option value=\"1\"".$selected[0].">"._AM_VIDEOSTREAM_PERMISSIONS_ACCESS."</option> + <option value=\"2\"".$selected[1].">"._AM_VIDEOSTREAM_PERMISSIONS_SUBMIT."</option> + </select> + </td> + </tr> + </table> +</form>"; + +$module_id = $xoopsModule->getVar("mid"); + + switch($permtoset) + { + case 1: + $title_of_form = _AM_VIDEOSTREAM_PERMISSIONS_ACCESS; + $perm_name = "videostream_access"; + $perm_desc = ""; + break; + case 2: + $title_of_form = _AM_VIDEOSTREAM_PERMISSIONS_SUBMIT; + $perm_name = "videostream_submit"; + $perm_desc = ""; + break; + } + + $permform = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc, "admin/permissions.php"); + $xt = new XoopsTopic( $xoopsDB -> prefix("videostream_topic") ); + $alltopics =& $xt->getTopicsList(); + + foreach ($alltopics as $topic_id => $topic) + { + $permform->addItem($topic_id, $topic["title"], $topic["pid"]); + } + echo $permform->render(); + echo "<br /><br /><br /><br />\n"; + unset ($permform); + +echo "<br /><br /> +<div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\"><img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/admin/stream.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/admin/stream.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/admin/stream.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,199 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +if (isset($_REQUEST["op"])) { + $op = $_REQUEST["op"]; +} else { + @$op = "show_list_stream"; +} + +//Menu admin +if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php") ) { +videostream_adminmenu(1, _AM_VIDEOSTREAM_MANAGER_STREAM); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_VIDEOSTREAM_MANAGER_STREAM); +} + +//Sous menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/contact.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"> + <strong>"._AM_VIDEOSTREAM_MANAGER_STREAM."</strong> + </div><br /><br>"; +switch ($op) +{ + case "save_stream": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("stream.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["stream_id"])) { + $obj =& $streamHandler->get($_REQUEST["stream_id"]); + } else { + $obj =& $streamHandler->create(); + } + + //Form stream_title + $obj->setVar("stream_title", $_REQUEST["stream_title"]); + //Form stream_user + $obj->setVar("stream_user", $_REQUEST["stream_user"]); + //Form stream_keyword + $obj->setVar("stream_keyword", $_REQUEST["stream_keyword"]); + //Form stream_url + $obj->setVar("stream_url", $_REQUEST["stream_url"]); + //Form stream_desc + $obj->setVar("stream_desc", $_REQUEST["stream_desc"]); + //Form stream_time + $obj->setVar("stream_time", $_REQUEST["stream_time"]); + //Form stream_publishd + $obj->setVar("stream_publishd", $_REQUEST["stream_publishd"]); + //Form stream_updated + $obj->setVar("stream_updated", $_REQUEST["stream_updated"]); + //Form stream_submitter + $obj->setVar("stream_submitter", $_REQUEST["stream_submitter"]); + //Form stream_date_created + $obj->setVar("stream_date_created", strtotime($_REQUEST["stream_date_created"])); + //Form stream_online + $verif_stream_online = ($_REQUEST["stream_online"] == 1) ? "1" : "0"; + $obj->setVar("stream_online", $verif_stream_online); + + + if ($streamHandler->insert($obj)) { + redirect_header("stream.php?op=show_list_stream", 2, _AM_VIDEOSTREAM_FORMOK); + } + //include_once("../include/forms.php"); + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + break; + + case "edit_stream": + $obj = $streamHandler->get($_REQUEST["stream_id"]); + $form = $obj->getForm(); + break; + + case "delete_stream": + $obj =& $streamHandler->get($_REQUEST["stream_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("stream.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($streamHandler->delete($obj)) { + redirect_header("stream.php", 3, _AM_VIDEOSTREAM_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "stream_id" => $_REQUEST["stream_id"], "op" => "delete_stream"), $_SERVER["REQUEST_URI"], sprintf(_AM_VIDEOSTREAM_FORMSUREDEL, $obj->getVar("stream"))); + } + break; + + case "update_online_stream": + + if (isset($_REQUEST["stream_id"])) { + $obj =& $streamHandler->get($_REQUEST["stream_id"]); + } + $obj->setVar("stream_online", $_REQUEST["stream_online"]); + + if ($streamHandler->insert($obj)) { + redirect_header("stream.php", 3, _AM_VIDEOSTREAM_FORMOK); + } + echo $obj->getHtmlErrors(); + + break; + + case "default": + default: + + $criteria = new CriteriaCompo(); + $criteria->setSort("stream_id"); + $criteria->setOrder("ASC"); + $numrows = $streamHandler->getCount(); + $stream_arr = $streamHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_TITLE."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_USER."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_KEYWORD."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_URL."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_DESC."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_TIME."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_PUBLISHD."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_UPDATED."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_SUBMITTER."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_DATE_CREATED."</th> + <th align=\"center\">"._AM_VIDEOSTREAM_STREAM_ONLINE."</th> + + <th align=\"center\" width=\"10%\">"._AM_VIDEOSTREAM_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($stream_arr) as $i) + { + if ( $stream_arr[$i]->getVar("topic_pid") == 0) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_title")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_user")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_keyword")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_url")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_desc")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_time")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_publishd")."</td>"; + echo "<td align=\"center\">".$stream_arr[$i]->getVar("stream_updated")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($stream_arr[$i]->getVar("stream_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($stream_arr[$i]->getVar("stream_date_created"),"S")."</td>"; + + $online = $stream_arr[$i]->getVar("stream_online"); + + if( $online == 1 ) { + echo "<td align=\"center\"><a href=\"./stream.php?op=update_online_stream&stream_id=".$stream_arr[$i]->getVar("stream_id")."&stream_online=0\"><img src=\"./../images/deco/on.gif\" border=\"0\" alt=\""._AM_VIDEOSTREAM_ON."\" title=\""._AM_VIDEOSTREAM_ON."\"></a></td>"; + } else { + echo "<td align=\"center\"><a href=\"./stream.php?op=update_online_stream&stream_id=".$stream_arr[$i]->getVar("stream_id")."&stream_online=1\"><img src=\"./../images/deco/off.gif\" border=\"0\" alt=\""._AM_VIDEOSTREAM_OFF."\" title=\""._AM_VIDEOSTREAM_OFF."\"></a></td>"; + } + echo "<td align=\"center\" width=\"10%\"> + <a href=\"stream.php?op=edit_stream&stream_id=".$stream_arr[$i]->getVar("stream_id")."\"><img src=\"../images/deco/edit.gif\" alt=\""._AM_VIDEOSTREAM_EDIT."\" title=\""._AM_VIDEOSTREAM_EDIT."\"></a> + <a href=\"stream.php?op=delete_stream&stream_id=".$stream_arr[$i]->getVar("stream_id")."\"><img src=\"../images/deco/delete.gif\" alt=\""._AM_VIDEOSTREAM_DELETE."\" title=\""._AM_VIDEOSTREAM_DELETE."\"></a> + </td>"; + echo "</tr>"; + } + } + echo "</table><br><br>"; + } + + // Affichage du formulaire + $obj =& $streamHandler->create(); + $form = $obj->getForm(); +} +include_once("admin_footer.php"); +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_list.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_list.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_list.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,110 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * videostream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package videostream + * @author timgno (http://txmod.webuda.com) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once XOOPS_ROOT_PATH."/modules/videostream/include/functions.php"; + +function b_videostream_list($options) { +include_once XOOPS_ROOT_PATH."/modules/videostream/class/list.php"; +$myts =& MyTextSanitizer::getInstance(); + +$list = array(); +$type_block = $options[0]; +$nb_list = $options[1]; +$lenght_title = $options[2]; + +$listHandler =& xoops_getModuleHandler("videostream_list", "videostream"); +$criteria = new CriteriaCompo(); +array_shift($options); +array_shift($options); +array_shift($options); +if (!(count($options) == 1 && $options[0] == 0)) { +$criteria->add(new Criteria("list_topic", block_addCatSelect($options),"IN")); +} + +switch ($type_block) +{ + // pour le bloc: list recents + case "recent": + $criteria->add(new Criteria("list_online", 1)); + $criteria->setSort("list_date_created"); + $criteria->setOrder("DESC"); + break; + // pour le bloc: list du jour + case "day": + $criteria->add(new Criteria("list_online", 1)); + $criteria->add(new Criteria("list_date_created", strtotime(date("Y/m/d")), ">=")); + $criteria->add(new Criteria("list_date_created", strtotime(date("Y/m/d"))+86400, "<=")); + $criteria->setSort("list_date_created"); + $criteria->setOrder("ASC"); + break; + // pour le bloc: list al\xE9atoires + case "random": + $criteria->add(new Criteria("list_online", 1)); + $criteria->setSort("RAND()"); + break; +} + + +$criteria->setLimit($nb_list); +$list_arr = $listHandler->getall($criteria); + foreach (array_keys($list_arr) as $i) + { + $list[$i]["videostream_id"] = $list_arr[$i]->getVar("videostream_id"); + $list[$i]["videostream_name"] = $list_arr[$i]->getVar("videostream_name"); + $list[$i]["videostream_"] = $list_arr[$i]->getVar("videostream_"); + $list[$i]["videostream_submitter"] = $list_arr[$i]->getVar("videostream_submitter"); + $list[$i]["videostream_date_created"] = $list_arr[$i]->getVar("videostream_date_created"); + $list[$i]["videostream_online"] = $list_arr[$i]->getVar("videostream_online"); + + } +return $list; +} + +function b_videostream_list_edit($options) { + include_once XOOPS_ROOT_PATH."/modules/videostream/class/topic.php"; + + $topicHandler =& xoops_getModuleHandler("videostream_topic", "videostream"); + $criteria = new CriteriaCompo(); + $criteria->setSort("topic_title"); + $criteria->setOrder("ASC"); + $topic_arr = $topicHandler->getall($criteria); + + $form = ""._MB_VIDEOSTREAM_LIST_DISPLAY."\n"; + $form .= "<input type=\"hidden\" name=\"options[0]\" value=\"".$options[0]."\" />"; + $form .= "<input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /> <br />"; + $form .= ""._MB_VIDEOSTREAM_LIST_TITLELENGTH." : <input name=\"options[2]\" size=\"5\" maxlength=\"255\" value=\"".$options[2]."\" type=\"text\" /><br /><br />"; + array_shift($options); + array_shift($options); + array_shift($options); + $form .= ""._MB_VIDEOSTREAM_LIST_CATTODISPLAY."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; + $form .= "<option value=\"0\" " . (array_search(0, $options) === false ? "" : "selected=\"selected\"") . ">" ._MB_VIDEOSTREAM_LIST_ALLCAT . "</option>"; + foreach (array_keys($topic_arr) as $i) { + $form .= "<option value=\"" . $topic_arr[$i]->getVar("topic_id") . "\" " . (array_search($topic_arr[$i]->getVar("topic_id"), $options) === false ? "" : "selected=\"selected\"") . ">".$topic_arr[$i]->getVar("topic_title")."</option>"; + } + $form .= "</select>"; + + return $form; +} + +?> \ No newline at end of file Added: XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_stream.php =================================================================== --- XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_stream.php (rev 0) +++ XoopsModules/videostream/releases/1.32/videostream/blocks/blocks_stream.php 2012-02-15 13:44:29 UTC (rev 8998) @@ -0,0 +1,98 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Video Stream - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://txmod.webuda.com) + * + * 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 timgno (http://txmod.webuda.com) + * @license GPL + * @package Video Stream + * @author timgno (txm...@gm...) + * + * Version : 1.32: + * **************************************************************************** + */ + +include_once XOOPS_ROOT_PATH."/modules/videostream/include/functions.php"; + +function b_videostream_stream($options) { + include_once XOOPS_ROOT_PATH."/modules/videostream/class/stream.php"; + $myts =& MyTextSanitizer::getInstance(); + + $stream = array(); + $type_block = $options[0]; + $nb_stream = $options[1]; + $lenght_title = $options[2]; + + $streamHandler =& xoops_getModuleHandler("videostream_stream", "videostream"); + $criteria = new CriteriaC... [truncated message content] |
From: <txm...@us...> - 2012-02-15 13:34:41
|
Revision: 8997 http://xoops.svn.sourceforge.net/xoops/?rev=8997&view=rev Author: txmodxoops Date: 2012-02-15 13:34:26 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module googleearth v1.01, v1.25 Added Paths: ----------- XoopsModules/googleearth/ XoopsModules/googleearth/branches/ XoopsModules/googleearth/releases/ XoopsModules/googleearth/releases/1.01/ XoopsModules/googleearth/releases/1.01/googleearth/ XoopsModules/googleearth/releases/1.01/googleearth/admin/ XoopsModules/googleearth/releases/1.01/googleearth/admin/about.php XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_footer.php XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_header.php XoopsModules/googleearth/releases/1.01/googleearth/admin/index.html XoopsModules/googleearth/releases/1.01/googleearth/admin/index.php XoopsModules/googleearth/releases/1.01/googleearth/admin/menu.php XoopsModules/googleearth/releases/1.01/googleearth/blocks/ XoopsModules/googleearth/releases/1.01/googleearth/blocks/index.html XoopsModules/googleearth/releases/1.01/googleearth/class/ XoopsModules/googleearth/releases/1.01/googleearth/class/index.html XoopsModules/googleearth/releases/1.01/googleearth/class/menu.php XoopsModules/googleearth/releases/1.01/googleearth/class/object.php XoopsModules/googleearth/releases/1.01/googleearth/header.php XoopsModules/googleearth/releases/1.01/googleearth/images/ XoopsModules/googleearth/releases/1.01/googleearth/images/deco/ XoopsModules/googleearth/releases/1.01/googleearth/images/deco/about.png XoopsModules/googleearth/releases/1.01/googleearth/images/deco/arrow.gif XoopsModules/googleearth/releases/1.01/googleearth/images/deco/delete.gif XoopsModules/googleearth/releases/1.01/googleearth/images/deco/edit.gif XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.html XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.png XoopsModules/googleearth/releases/1.01/googleearth/images/deco/off.gif XoopsModules/googleearth/releases/1.01/googleearth/images/deco/on.gif XoopsModules/googleearth/releases/1.01/googleearth/images/deco/permissions.png XoopsModules/googleearth/releases/1.01/googleearth/images/deco/pref.png XoopsModules/googleearth/releases/1.01/googleearth/images/deco/update.png XoopsModules/googleearth/releases/1.01/googleearth/images/googleearth_logo.png XoopsModules/googleearth/releases/1.01/googleearth/images/googleearth_slogo.png XoopsModules/googleearth/releases/1.01/googleearth/images/index.html XoopsModules/googleearth/releases/1.01/googleearth/images/menu/ XoopsModules/googleearth/releases/1.01/googleearth/images/menu/bg.png XoopsModules/googleearth/releases/1.01/googleearth/images/menu/index.html XoopsModules/googleearth/releases/1.01/googleearth/images/menu/left_both.png XoopsModules/googleearth/releases/1.01/googleearth/images/menu/right_both.png XoopsModules/googleearth/releases/1.01/googleearth/include/ XoopsModules/googleearth/releases/1.01/googleearth/include/functions.php XoopsModules/googleearth/releases/1.01/googleearth/include/index.html XoopsModules/googleearth/releases/1.01/googleearth/include/install.php XoopsModules/googleearth/releases/1.01/googleearth/index.php XoopsModules/googleearth/releases/1.01/googleearth/language/ XoopsModules/googleearth/releases/1.01/googleearth/language/english/ XoopsModules/googleearth/releases/1.01/googleearth/language/english/admin.php XoopsModules/googleearth/releases/1.01/googleearth/language/english/blocks.php XoopsModules/googleearth/releases/1.01/googleearth/language/english/index.html XoopsModules/googleearth/releases/1.01/googleearth/language/english/main.php XoopsModules/googleearth/releases/1.01/googleearth/language/english/modinfo.php XoopsModules/googleearth/releases/1.01/googleearth/language/french/ XoopsModules/googleearth/releases/1.01/googleearth/language/french/admin.php XoopsModules/googleearth/releases/1.01/googleearth/language/french/blocks.php XoopsModules/googleearth/releases/1.01/googleearth/language/french/index.html XoopsModules/googleearth/releases/1.01/googleearth/language/french/main.php XoopsModules/googleearth/releases/1.01/googleearth/language/french/modinfo.php XoopsModules/googleearth/releases/1.01/googleearth/language/index.html XoopsModules/googleearth/releases/1.01/googleearth/language/italian/ XoopsModules/googleearth/releases/1.01/googleearth/language/italian/admin.php XoopsModules/googleearth/releases/1.01/googleearth/language/italian/blocks.php XoopsModules/googleearth/releases/1.01/googleearth/language/italian/index.html XoopsModules/googleearth/releases/1.01/googleearth/language/italian/main.php XoopsModules/googleearth/releases/1.01/googleearth/language/italian/modinfo.php XoopsModules/googleearth/releases/1.01/googleearth/language/spanish/ XoopsModules/googleearth/releases/1.01/googleearth/language/spanish/admin.php XoopsModules/googleearth/releases/1.01/googleearth/language/spanish/blocks.php XoopsModules/googleearth/releases/1.01/googleearth/language/spanish/index.html XoopsModules/googleearth/releases/1.01/googleearth/language/spanish/main.php XoopsModules/googleearth/releases/1.01/googleearth/language/spanish/modinfo.php XoopsModules/googleearth/releases/1.01/googleearth/sql/ XoopsModules/googleearth/releases/1.01/googleearth/sql/index.html XoopsModules/googleearth/releases/1.01/googleearth/templates/ XoopsModules/googleearth/releases/1.01/googleearth/templates/blocks/ XoopsModules/googleearth/releases/1.01/googleearth/templates/blocks/index.html XoopsModules/googleearth/releases/1.01/googleearth/templates/googleearth.html XoopsModules/googleearth/releases/1.01/googleearth/templates/index.html XoopsModules/googleearth/releases/1.01/googleearth/xoops_version.php XoopsModules/googleearth/releases/1.25/ XoopsModules/googleearth/releases/1.25/gearth/ XoopsModules/googleearth/releases/1.25/gearth/admin/ XoopsModules/googleearth/releases/1.25/gearth/admin/about.php XoopsModules/googleearth/releases/1.25/gearth/admin/admin_footer.php XoopsModules/googleearth/releases/1.25/gearth/admin/admin_header.php XoopsModules/googleearth/releases/1.25/gearth/admin/home.php XoopsModules/googleearth/releases/1.25/gearth/admin/index.html XoopsModules/googleearth/releases/1.25/gearth/admin/index.php XoopsModules/googleearth/releases/1.25/gearth/admin/menu.php XoopsModules/googleearth/releases/1.25/gearth/blocks/ XoopsModules/googleearth/releases/1.25/gearth/blocks/index.html XoopsModules/googleearth/releases/1.25/gearth/changelog.txt XoopsModules/googleearth/releases/1.25/gearth/class/ XoopsModules/googleearth/releases/1.25/gearth/class/index.html XoopsModules/googleearth/releases/1.25/gearth/class/menu.php XoopsModules/googleearth/releases/1.25/gearth/class/object.php XoopsModules/googleearth/releases/1.25/gearth/header.php XoopsModules/googleearth/releases/1.25/gearth/images/ XoopsModules/googleearth/releases/1.25/gearth/images/deco/ XoopsModules/googleearth/releases/1.25/gearth/images/deco/about.png XoopsModules/googleearth/releases/1.25/gearth/images/deco/arrow.gif XoopsModules/googleearth/releases/1.25/gearth/images/deco/delete.gif XoopsModules/googleearth/releases/1.25/gearth/images/deco/edit.gif XoopsModules/googleearth/releases/1.25/gearth/images/deco/index.html XoopsModules/googleearth/releases/1.25/gearth/images/deco/index.png XoopsModules/googleearth/releases/1.25/gearth/images/deco/off.gif XoopsModules/googleearth/releases/1.25/gearth/images/deco/on.gif XoopsModules/googleearth/releases/1.25/gearth/images/deco/permissions.png XoopsModules/googleearth/releases/1.25/gearth/images/deco/pref.png XoopsModules/googleearth/releases/1.25/gearth/images/deco/update.png XoopsModules/googleearth/releases/1.25/gearth/images/gearth_logo.gif XoopsModules/googleearth/releases/1.25/gearth/images/gearth_logo.png XoopsModules/googleearth/releases/1.25/gearth/images/gearth_slogo.png XoopsModules/googleearth/releases/1.25/gearth/images/index.html XoopsModules/googleearth/releases/1.25/gearth/images/menu/ XoopsModules/googleearth/releases/1.25/gearth/images/menu/bg.png XoopsModules/googleearth/releases/1.25/gearth/images/menu/index.html XoopsModules/googleearth/releases/1.25/gearth/images/menu/left_both.png XoopsModules/googleearth/releases/1.25/gearth/images/menu/right_both.png XoopsModules/googleearth/releases/1.25/gearth/images/txmod_logo.png XoopsModules/googleearth/releases/1.25/gearth/include/ XoopsModules/googleearth/releases/1.25/gearth/include/configs.php XoopsModules/googleearth/releases/1.25/gearth/include/functions.php XoopsModules/googleearth/releases/1.25/gearth/include/ginit.js XoopsModules/googleearth/releases/1.25/gearth/include/index.html XoopsModules/googleearth/releases/1.25/gearth/include/install.php XoopsModules/googleearth/releases/1.25/gearth/index.php XoopsModules/googleearth/releases/1.25/gearth/language/ XoopsModules/googleearth/releases/1.25/gearth/language/english/ XoopsModules/googleearth/releases/1.25/gearth/language/english/admin.php XoopsModules/googleearth/releases/1.25/gearth/language/english/blocks.php XoopsModules/googleearth/releases/1.25/gearth/language/english/index.html XoopsModules/googleearth/releases/1.25/gearth/language/english/main.php XoopsModules/googleearth/releases/1.25/gearth/language/english/modinfo.php XoopsModules/googleearth/releases/1.25/gearth/language/french/ XoopsModules/googleearth/releases/1.25/gearth/language/french/admin.php XoopsModules/googleearth/releases/1.25/gearth/language/french/blocks.php XoopsModules/googleearth/releases/1.25/gearth/language/french/index.html XoopsModules/googleearth/releases/1.25/gearth/language/french/main.php XoopsModules/googleearth/releases/1.25/gearth/language/french/modinfo.php XoopsModules/googleearth/releases/1.25/gearth/language/index.html XoopsModules/googleearth/releases/1.25/gearth/language/italian/ XoopsModules/googleearth/releases/1.25/gearth/language/italian/admin.php XoopsModules/googleearth/releases/1.25/gearth/language/italian/blocks.php XoopsModules/googleearth/releases/1.25/gearth/language/italian/index.html XoopsModules/googleearth/releases/1.25/gearth/language/italian/main.php XoopsModules/googleearth/releases/1.25/gearth/language/italian/modinfo.php XoopsModules/googleearth/releases/1.25/gearth/language/spanish/ XoopsModules/googleearth/releases/1.25/gearth/language/spanish/admin.php XoopsModules/googleearth/releases/1.25/gearth/language/spanish/blocks.php XoopsModules/googleearth/releases/1.25/gearth/language/spanish/index.html XoopsModules/googleearth/releases/1.25/gearth/language/spanish/main.php XoopsModules/googleearth/releases/1.25/gearth/language/spanish/modinfo.php XoopsModules/googleearth/releases/1.25/gearth/readme.txt XoopsModules/googleearth/releases/1.25/gearth/sql/ XoopsModules/googleearth/releases/1.25/gearth/sql/index.html XoopsModules/googleearth/releases/1.25/gearth/templates/ XoopsModules/googleearth/releases/1.25/gearth/templates/blocks/ XoopsModules/googleearth/releases/1.25/gearth/templates/blocks/index.html XoopsModules/googleearth/releases/1.25/gearth/templates/gearth_index.html XoopsModules/googleearth/releases/1.25/gearth/templates/index.html XoopsModules/googleearth/releases/1.25/gearth/xoops_version.php XoopsModules/googleearth/trunk/ Added: XoopsModules/googleearth/releases/1.01/googleearth/admin/about.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/admin/about.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/admin/about.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,116 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +googleearth_adminmenu(1, _AM_GOOGLEEARTH_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_GOOGLEEARTH_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_GOOGLEEARTH_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_GOOGLEEARTH_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_GOOGLEEARTH_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_GOOGLEEARTH_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_GOOGLEEARTH_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_GOOGLEEARTH_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_GOOGLEEARTH_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_GOOGLEEARTH_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_GOOGLEEARTH_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_GOOGLEEARTH_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_GOOGLEEARTH_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_GOOGLEEARTH_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +include_once("admin_footer.php"); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_footer.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_footer.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_footer.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,29 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +echo "<br /><br />\n + <div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\">\n + <img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_header.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_header.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/admin/admin_header.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,107 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("googleearth"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function googleearth_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/googleearth/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/googleearth/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/googleearth/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_GOOGLEEARTH_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/googleearth/index.php\">_AM_GOOGLEEARTH_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/googleearth/admin/upgrade.php\">_AM_GOOGLEEARTH_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/googleearth/admin/index.php\"><span>_MI_GOOGLEEARTH_MANAGER_INDEX</span></a></li> + + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/googleearth/admin/permissions.php\"><span>_MI_GOOGLEEARTH_MANAGER_PERMISSIONS</span></a></li> + <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/googleearth/admin/about.php\"><span>_MI_GOOGLEEARTH_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + + +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/admin/index.html =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/admin/index.html (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/admin/index.html 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/admin/index.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/admin/index.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/admin/index.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,64 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +googleearth_adminmenu(0, _AM_GOOGLEEARTH_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_GOOGLEEARTH_MANAGER_INDEX); +} + +include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/menu.php"; + + $menu = new googleearthMenu(); + + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=googleearth", "../images/deco/update.png", _AM_GOOGLEEARTH_MANAGER_UPDATE); + $menu->addItem("permissions", "permissions.php", "../images/deco/permissions.png", _AM_GOOGLEEARTH_MANAGER_PERMISSIONS); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_GOOGLEEARTH_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_GOOGLEEARTH_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_GOOGLEEARTH_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\">".$menu->render()."</td> + <td valign=\"top\" width=\"60%\">"; + + echo "</td> + </tr> + </table>"; +include_once("admin_footer.php"); +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/admin/menu.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/admin/menu.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/admin/menu.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_GOOGLEEARTH_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_GOOGLEEARTH_MANAGER_PERMISSIONS; +$adminmenu[1]["link"] = "admin/permissions.php"; + +$adminmenu[2]["title"] = _MI_GOOGLEEARTH_MANAGER_ABOUT; +$adminmenu[2]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/blocks/index.html =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/blocks/index.html (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/blocks/index.html 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/class/index.html =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/class/index.html (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/class/index.html 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/class/menu.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/class/menu.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/class/menu.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +class googleearthMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/class/object.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/class/object.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/class/object.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criteria($this->keyName, intval($id)); + } + $criteria->setLimit(1); + $obj_array = $this->getObjects($criteria, false, $as_object); + if (count($obj_array) != 1) { + $obj = $this->create(); + return $obj; + } + return $obj_array[0]; + } + + /** + * retrieve objects from the database + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param bool $id_as_key use the ID as key for the array? + * @param bool $as_object return an array of objects? + * + * @return array + */ + function getObjects($criteria=null, $id_as_key=false, $as_object=true){ + $ret = array(); + $limit = $start = 0; + $sql = 'SELECT * FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + return $this->convertResultSet($result, $id_as_key, $as_object); + } + + /** + * Convert a database resultset to a returnable array + * + * @param object $result database resultset + * @param bool $id_as_key - should NOT be used with joint keys + * @param bool $as_object + * + * @return array + */ + function convertResultSet($result, $id_as_key = false, $as_object = true) { + $ret = array(); + while ($myrow = $this->db->fetchArray($result)) { + $obj =& $this->create(false); + $obj->assignVars($myrow); + if (!$id_as_key) { + if ($as_object) { + $ret[] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[] = $row; + } + } else { + if ($as_object) { + $ret[$myrow[$this->keyName]] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[$myrow[$this->keyName]] = $row; + } + } + unset($obj); + } + return $ret; + } + + /** + * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param int $limit Max number of objects to fetch + * @param int $start Which record to start at + * + * @return array + */ + function getList($criteria = null, $limit = 0, $start = 0) { + $ret = array(); + if ($criteria == null) { + $criteria = new CriteriaCompo(); + } + + if ($criteria->getSort() == '') { + $criteria->setSort($this->identifierName); + } + + $sql = 'SELECT '.$this->keyName; + if(!empty($this->identifierName)){ + $sql .= ', '.$this->identifierName; + } + $sql .= ' FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + $myts =& MyTextSanitizer::getInstance(); + while ($myrow = $this->db->fetchArray($result)) { + //identifiers should be textboxes, so sanitize them like that + $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); + } + return $ret; + } + + /** + * count objects matching a condition + * + * @param object $criteria {@link CriteriaElement} to match + * @return int count of objects + */ + function getCount($criteria=null){ + $field = ""; + $groupby = false; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + if ($criteria->groupby != "") { + $groupby = true; + $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used + } + } + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->groupby != "") { + $sql .= $criteria->getGroupby(); + } + } + $result = $this->db->query($sql); + if (!$result) { + return 0; + } + if ($groupby == false) { + list($count) = $this->db->fetchRow($result); + return $count; + } else { + $ret = array(); + while (list($id, $count) = $this->db->fetchRow($result)) { + $ret[$id] = $count; + } + return $ret; + } + } + + /** + * delete an object from the database + * + * @param object $obj reference to the object to delete + * @param bool $force + * @return bool FALSE if failed. + */ + function delete(&$obj, $force = false){ + if (is_array($this->keyName)) { + $clause = array(); + for ($i = 0; $i < count($this->keyName); $i++) { + $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + $whereclause = implode(" AND ", $clause); + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause; + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * insert a new object in the database + * + * @param object $obj reference to the object + * @param bool $force whether to force the query execution despite security settings + * @param bool $checkObject check if the object is dirty and clean the attributes + * @return bool FALSE if failed, TRUE if already present and unchanged or successful + */ + + function insert(&$obj, $force=false, $checkObject=true){ + if ($checkObject != false) { + if (!is_object($obj)) { + var_dump($obj); + return false; + } + /** + * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5 + */ + if (!is_a($obj, $this->className)) { + $obj->setErrors(get_class($obj)." Differs from ".$this->className); + return false; + } + if (!$obj->isDirty()) { + $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith + return true; + } + } + if (!$obj->cleanVars()) { + return false; + } + + foreach ($obj->cleanVars as $k => $v) { + if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { + $cleanvars[$k] = intval($v); + } elseif ( is_array( $v ) ) { + $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) ); + } else { + $cleanvars[$k] = $this->db->quoteString($v); + } + } + if ($obj->isNew()) { + if (!is_array($this->keyName)) { + if ($cleanvars[$this->keyName] < 1) { + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); + } + } + $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")"; + } else { + $sql = "UPDATE ".$this->table." SET"; + foreach ($cleanvars as $key => $value) { + if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) { + continue; + } + if (isset($notfirst) ) { + $sql .= ","; + } + $sql .= " ".$key." = ".$value; + $notfirst = true; + } + if (is_array($this->keyName)) { + $whereclause = ""; + for ($i = 0; $i < count($this->keyName); $i++) { + if ($i > 0) { + $whereclause .= " AND "; + } + $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql .= " WHERE ".$whereclause; + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + if ($obj->isNew() && !is_array($this->keyName)) { + $obj->assignVar($this->keyName, $this->db->getInsertId()); + } + return true; + } + + /** + * Change a value for objects with a certain criteria + * + * @param string $fieldname Name of the field + * @param string $fieldvalue Value to write + * @param object $criteria {@link CriteriaElement} + * @return bool + */ + function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){ + $set_clause = $fieldname . ' = '; + if ( is_numeric( $fieldvalue ) ) { + $set_clause .= $fieldvalue; + } elseif ( is_array( $fieldvalue ) ) { + $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) ); + } else { + $set_clause .= $this->db->quoteString( $fieldvalue ); + } + $sql = 'UPDATE '.$this->table.' SET '.$set_clause; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * delete all objects meeting the conditions + * + * @param object $criteria {@link CriteriaElement} with conditions to meet + * @return bool + */ + function deleteAll($criteria = null){ + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql = 'DELETE FROM '.$this->table; + $sql .= ' '.$criteria->renderWhere(); + if (!$this->db->queryF($sql)) { + return false; + } + $rows = $this->db->getAffectedRows(); + return $rows > 0 ? $rows : true; + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/header.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/header.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/header.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,27 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod (txm...@gm...) + * + * Version : 1.00: + * **************************************************************************** + */ +include("../../mainfile.php"); +global $xoopsTpl, $xoopsModuleConfig; + +?> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/arrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/delete.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/delete.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/edit.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/edit.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.html =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.html (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.html 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/off.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/off.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/on.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/on.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/pref.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/pref.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/update.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/deco/update.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/googleearth_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/googleearth_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/googleearth_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/googleearth_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/index.html =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/images/index.html (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/images/index.html 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/index.html =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/images/menu/index.html (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/images/menu/index.html 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/left_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/left_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/right_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googleearth/releases/1.01/googleearth/images/menu/right_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googleearth/releases/1.01/googleearth/include/functions.php =================================================================== --- XoopsModules/googleearth/releases/1.01/googleearth/include/functions.php (rev 0) +++ XoopsModules/googleearth/releases/1.01/googleearth/include/functions.php 2012-02-15 13:34:26 UTC (rev 8997) @@ -0,0 +1,44 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Earth - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Earth + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + + +/***************Blocks***************/ +function block_addCatSelect($cats) { + if(is_array($cats)) + { + $cat_sql = "(".current($cats); + array_shift($c... [truncated message content] |
From: <txm...@us...> - 2012-02-15 13:27:47
|
Revision: 8996 http://xoops.svn.sourceforge.net/xoops/?rev=8996&view=rev Author: txmodxoops Date: 2012-02-15 13:27:36 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module youtubestream v1.01, v1.05, v1.12 Added Paths: ----------- XoopsModules/youtubestream/ XoopsModules/youtubestream/branches/ XoopsModules/youtubestream/releases/ XoopsModules/youtubestream/releases/1.01/ XoopsModules/youtubestream/releases/1.01/youtubestream/ XoopsModules/youtubestream/releases/1.01/youtubestream/class/ XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI.inc.php XoopsModules/youtubestream/releases/1.01/youtubestream/header.php XoopsModules/youtubestream/releases/1.01/youtubestream/images/ XoopsModules/youtubestream/releases/1.01/youtubestream/images/index.html XoopsModules/youtubestream/releases/1.01/youtubestream/images/youtubestream_slogo.png XoopsModules/youtubestream/releases/1.01/youtubestream/index.php XoopsModules/youtubestream/releases/1.01/youtubestream/language/ XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/ XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/index.html XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/modinfo.php XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/ XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/index.html XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/modinfo.php XoopsModules/youtubestream/releases/1.01/youtubestream/language/index.html XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/ XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/index.html XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/modinfo.php XoopsModules/youtubestream/releases/1.01/youtubestream/xoops_version.php XoopsModules/youtubestream/releases/1.05/ XoopsModules/youtubestream/releases/1.05/youtubestream/ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/about.php XoopsModules/youtubestream/releases/1.05/youtubestream/admin/admin_header.php XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.php XoopsModules/youtubestream/releases/1.05/youtubestream/admin/info_header.php XoopsModules/youtubestream/releases/1.05/youtubestream/admin/menu.php XoopsModules/youtubestream/releases/1.05/youtubestream/class/ XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI.inc.php XoopsModules/youtubestream/releases/1.05/youtubestream/class/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/header.php XoopsModules/youtubestream/releases/1.05/youtubestream/images/ XoopsModules/youtubestream/releases/1.05/youtubestream/images/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/images/logo-en.png XoopsModules/youtubestream/releases/1.05/youtubestream/images/youtubestream_slogo.png XoopsModules/youtubestream/releases/1.05/youtubestream/include/ XoopsModules/youtubestream/releases/1.05/youtubestream/include/functions.php XoopsModules/youtubestream/releases/1.05/youtubestream/include/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/include/vars.php XoopsModules/youtubestream/releases/1.05/youtubestream/index.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/ XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/ XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/admin.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/main.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/modinfo.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/ XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/admin.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/main.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/modinfo.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/language/italian/ XoopsModules/youtubestream/releases/1.05/youtubestream/language/italian/admin.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/italian/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/language/italian/main.php XoopsModules/youtubestream/releases/1.05/youtubestream/language/italian/modinfo.php XoopsModules/youtubestream/releases/1.05/youtubestream/readme.txt XoopsModules/youtubestream/releases/1.05/youtubestream/style/ XoopsModules/youtubestream/releases/1.05/youtubestream/style/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/style/youtubestream.css XoopsModules/youtubestream/releases/1.05/youtubestream/templates/ XoopsModules/youtubestream/releases/1.05/youtubestream/templates/index.html XoopsModules/youtubestream/releases/1.05/youtubestream/templates/youtubestream.html XoopsModules/youtubestream/releases/1.05/youtubestream/xoops_version.php XoopsModules/youtubestream/releases/1.12/ XoopsModules/youtubestream/releases/1.12/youtubestream/ XoopsModules/youtubestream/releases/1.12/youtubestream/admin/ XoopsModules/youtubestream/releases/1.12/youtubestream/admin/about.php XoopsModules/youtubestream/releases/1.12/youtubestream/admin/admin_header.php XoopsModules/youtubestream/releases/1.12/youtubestream/admin/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/admin/index.php XoopsModules/youtubestream/releases/1.12/youtubestream/admin/info_header.php XoopsModules/youtubestream/releases/1.12/youtubestream/admin/menu.php XoopsModules/youtubestream/releases/1.12/youtubestream/class/ XoopsModules/youtubestream/releases/1.12/youtubestream/class/YTStream.class.php XoopsModules/youtubestream/releases/1.12/youtubestream/class/YouTubeAPI.inc.php XoopsModules/youtubestream/releases/1.12/youtubestream/class/class.YouTubeParser.php XoopsModules/youtubestream/releases/1.12/youtubestream/class/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/class/youtubedownloader_class.php XoopsModules/youtubestream/releases/1.12/youtubestream/comment_delete.php XoopsModules/youtubestream/releases/1.12/youtubestream/comment_edit.php XoopsModules/youtubestream/releases/1.12/youtubestream/comment_new.php XoopsModules/youtubestream/releases/1.12/youtubestream/comment_post.php XoopsModules/youtubestream/releases/1.12/youtubestream/comment_reply.php XoopsModules/youtubestream/releases/1.12/youtubestream/content-store.php XoopsModules/youtubestream/releases/1.12/youtubestream/dlvideo.php XoopsModules/youtubestream/releases/1.12/youtubestream/header.php XoopsModules/youtubestream/releases/1.12/youtubestream/images/ XoopsModules/youtubestream/releases/1.12/youtubestream/images/down.png XoopsModules/youtubestream/releases/1.12/youtubestream/images/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/images/logo-big.png XoopsModules/youtubestream/releases/1.12/youtubestream/images/logo-small.png XoopsModules/youtubestream/releases/1.12/youtubestream/images/player.png XoopsModules/youtubestream/releases/1.12/youtubestream/images/tube.png XoopsModules/youtubestream/releases/1.12/youtubestream/images/youtubestream_slogo.png XoopsModules/youtubestream/releases/1.12/youtubestream/include/ XoopsModules/youtubestream/releases/1.12/youtubestream/include/comment_functions.php XoopsModules/youtubestream/releases/1.12/youtubestream/include/functions.php XoopsModules/youtubestream/releases/1.12/youtubestream/include/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/include/vars.php XoopsModules/youtubestream/releases/1.12/youtubestream/index.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/ XoopsModules/youtubestream/releases/1.12/youtubestream/language/english/ XoopsModules/youtubestream/releases/1.12/youtubestream/language/english/admin.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/english/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/language/english/main.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/english/modinfo.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/french/ XoopsModules/youtubestream/releases/1.12/youtubestream/language/french/admin.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/french/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/language/french/main.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/french/modinfo.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/language/italian/ XoopsModules/youtubestream/releases/1.12/youtubestream/language/italian/admin.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/italian/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/language/italian/main.php XoopsModules/youtubestream/releases/1.12/youtubestream/language/italian/modinfo.php XoopsModules/youtubestream/releases/1.12/youtubestream/newclass.php XoopsModules/youtubestream/releases/1.12/youtubestream/readme.txt XoopsModules/youtubestream/releases/1.12/youtubestream/sql/ XoopsModules/youtubestream/releases/1.12/youtubestream/sql/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/sql/mysql.sql XoopsModules/youtubestream/releases/1.12/youtubestream/store.txt XoopsModules/youtubestream/releases/1.12/youtubestream/style/ XoopsModules/youtubestream/releases/1.12/youtubestream/style/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/style/youtubestream.css XoopsModules/youtubestream/releases/1.12/youtubestream/sytvideo.php XoopsModules/youtubestream/releases/1.12/youtubestream/templates/ XoopsModules/youtubestream/releases/1.12/youtubestream/templates/index.html XoopsModules/youtubestream/releases/1.12/youtubestream/templates/youtubestream_dlvideo.html XoopsModules/youtubestream/releases/1.12/youtubestream/templates/youtubestream_index.html XoopsModules/youtubestream/releases/1.12/youtubestream/templates/youtubestream_sytvideo.html XoopsModules/youtubestream/releases/1.12/youtubestream/xoops_version.php XoopsModules/youtubestream/trunk/ Added: XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI =================================================================== (Binary files differ) Property changes on: XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI.inc.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI.inc.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/class/YouTubeAPI.inc.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,167 @@ +<?php +define("ANY",0); +define("YT",1); +define("PC",2); + +/** + * This class fetching live streaming links of youtube videos, both for mobile (real player) and PC (flash player) + * + *@author Rochak Chauhan [www.dmwtechnologies.com] + */ +class YouTubeAPI { + private $startIndex=1; + private $format=YT; + private $maxResults=10; + private $keyword=""; + private $feedString=""; + + public function __construct($keyword,$maxResults=10,$startIndex=1,$format=ANY) { + $this->keyword=$keyword; + $this->format=$format; + $this->maxResults=$maxResults; + $this->startIndex=$startIndex; + $url="http://gdata.youtube.com/feeds/api/videos?vq=$keyword&start-index=$startIndex&max-results=$maxResults"; + $this->feedString=$this->getXmlCodeViaFopen($url); + } + + /** + * Function to get the XML code from the YouTubeAPI + * + * @param string $url + * @access private + * + * @return string + */ + private function getXmlCodeViaFopen($url){ + $returnStr=""; + $fp=fopen($url, "r") or die("ERROR: Illigal YouTube API URL"); + while (!feof($fp)) { + $returnStr.=fgetc($fp); + } + fclose($fp); + return $returnStr; + } + + /** + * Function to get the Title from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + private function getTitle($str) { + $final=array(); + $returnArray=array(); + $pattern="/<title type='text'>(.*)\<\/title\>/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + if(isset($returnArray[0][1])) { + return $returnArray[0][1]; + } + else { + return "NA"; + } + } + + /** + * Function to get the FLV/SWF url from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + private function getFlvUrl($str) { + $final=array(); + $returnArray=array(); + $pattern="/<media:player url='(.*)'/Uis"; + //$pattern="/<media:content url='(.*)' type='application\/x-shockwave-flash'/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + + if(isset($returnArray[0][1])) { + return $returnArray[0][1]; + } + else { + return "#"; + } + } + + /** + * Function to get the mobile streaming url from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + private function getMobileUrl($str) { + + $final=array(); + $returnArray=array(); + $pattern="/<media:content url='(.*)' type='video\/3gpp'/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + + if(isset($returnArray[1][1])) { + return $returnArray[1][1]; + } + else { + return "#"; + } + } + + /** + * Function to get the video thumbnail from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + private function getThumbnailUrl($str) { + + $final=array(); + $returnArray=array(); + $pattern="/<media:thumbnail url='(.*)' height='97'/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + + $rand=rand(0,2); + + if(isset($returnArray[$rand][1])) { + return $returnArray[$rand][1]; + } + else { + return "http://static.fluxstatic.com/-/Clients/Common/Img/ExternalCommunityThumbnails/ExtCommunity_YouTube_Size50x50.jpg"; + } + } + + /** + * Function to get Streaming link info + * + * @param string $feed + * @access public + * @return array + */ + public function getStreamingLinks() { + $feed=$this->feedString; + $final=array(); + $returnArray=array(); + //$pattern="/<title type='text'>(.*)<category scheme=/Uis"; + $pattern="/<title type='text'>(.*)<category scheme='http:\/\/gdata.youtube.com\/schemas\/2007\/keywords.cat'/Uis"; + preg_match_all($pattern, $feed, $returnArray, PREG_SET_ORDER); + + for($i=1;$i<count($returnArray);$i++){ + $str=$returnArray[$i][0]; + $title=$this->getTitle($str); + $flvUrl=$this->getFlvUrl($str); + $mobileUrl=$this->getMobileUrl($str); + $thumbnailUrl=$this->getThumbnailUrl($str); + if ($this->format==YT) { + $final[]=array("title"=>$title,"flvurl"=>$flvUrl,"thumbnailUrl"=>$thumbnailUrl); + } + elseif ($this->format==PC) { + $final[]=array("title"=>$title,"mobileurl"=>$mobileUrl,"thumbnailUrl"=>$thumbnailUrl); + } + else { + $final[]=array("title"=>$title,"flvurl"=>$flvUrl,"mobileurl"=>$mobileUrl,"thumbnailUrl"=>$thumbnailUrl); + } + } + return $final; + } +} +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/header.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/header.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/header.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,5 @@ +<?php + +include_once '../../mainfile.php'; + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/images/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/images/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/images/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/images/youtubestream_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/youtubestream/releases/1.01/youtubestream/images/youtubestream_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/youtubestream/releases/1.01/youtubestream/index.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/index.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/index.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,72 @@ +<?php +// +// --------------------------------------------------- +// File: index.php +// Version: 1.01 +// Date-Time: 2008/07/08 16:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// License +// --------------------------------------------------- +// +include('header.php'); +include(XOOPS_ROOT_PATH.'/header.php'); + +$maxrecords=5; +$keyword="Ferrari"; +if (isset($_GET['keyword']) && trim($_GET['keyword'])!="") { + $keyword=$_GET['keyword']; + $keyword=urlencode($keyword); +} +if (isset($_GET['maxrecords']) && trim($_GET['maxrecords'])!="") { + $maxrecords=$_GET['maxrecords']; +} +?> +<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"><div>Search:<input type="text" name="keyword" value="<?php echo $keyword; ?>"/> Records:<select name="maxrecords"> +<?php +for ($i=1;$i<=5;$i++){ + $j=$i*5; + if ($maxrecords == $j) { + echo "<option value='$j' selected='selected'>$j</option>"; + } + else { + echo "<option value='$j'>$j</option>"; + } +} +?> +</select> <input type="submit" name="submit" value="Search" /></div><div> </div></form> +<?php +require_once("class/YouTubeAPI.inc.php"); +$api=new YouTubeAPI($keyword,$maxrecords,1); +$result=$api->getStreamingLinks(); +$total=count($result); +for ($i=0;$i<$total;$i++){ + $mobileUrl=$flvUrl="#"; + $imageSrc=$result[$i]['thumbnailUrl']; + $title=$result[$i]['title']; + if (isset($result[$i]['flvurl'])) { + $flvUrl=$result[$i]['flvurl']; + } + if (isset($result[$i]['mobileurl'])) { + $mobileUrl=$result[$i]['mobileurl']; + } + + echo "<div>$title<br /><img src='$imageSrc' alt='$title' /><br /><a href='$flvUrl' target='_blank'>Stream on YouTube</a><br /><a href='$mobileUrl'>Stream on PC</a></div><div> </div>"; +} +?> +<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"><div>Search:<input type="text" name="keyword" value="<?php echo $keyword; ?>" /> Records:<select name="maxrecords"> +<?php +for ($i=1;$i<=5;$i++){ + $j=$i*5; + if ($maxrecords == $j) { + echo "<option value='$j' selected='selected'>$j</option>"; + } + else { + echo "<option value='$j'>$j</option>"; + } +} +?> +</select> <input type="submit" name="submit" value="Search" /></div><div> </div></form> +<div class="footer">Powered by <a href="http://mcdirectory.netsons.org/txmod/">TXMod for Xoops</a></div> +<?php include(XOOPS_ROOT_PATH.'/footer.php'); ?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/modinfo.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/modinfo.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/english/modinfo.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,26 @@ +<?php +// +// --------------------------------------------------- +// Module: youtube_stream +// File: language/modinfo.php +// Version: 1.0 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info italiano +define("_MI_YOUTUBE_STREAM_NAME", "YouTube Stream"); +define("_MI_YOUTUBE_STREAM_DESC", "Cerca e visualizza Video Stream da youtube."); + +// preferenze +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORD", "Parola chiave"); +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORDDSC", "Parola chiave che sar\xE0 visualizzata all'inizio."); +define("_MI_YOUTUBE_STREAM_MAXSELECT", "Numero massimo selezioni"); +define("_MI_YOUTUBE_STREAM_MAXSELECTDSC", "Numero di video selezionabili da mostrare nella pagina principale."); +define("_MI_YOUTUBE_STREAM_MAXRECORDS", "Numero massimo records"); +define("_MI_YOUTUBE_STREAM_MAXRECORDSDSC", "Numero massimo di records da mostrare nella pagina principale."); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/modinfo.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/modinfo.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/french/modinfo.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,26 @@ +<?php +// +// --------------------------------------------------- +// Module: youtube_stream +// File: language/modinfo.php +// Version: 1.0 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info italiano +define("_MI_YOUTUBE_STREAM_NAME", "YouTube Stream"); +define("_MI_YOUTUBE_STREAM_DESC", "Cerca e visualizza Video Stream da youtube."); + +// preferenze +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORD", "Parola chiave"); +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORDDSC", "Parola chiave che sar\xE0 visualizzata all'inizio."); +define("_MI_YOUTUBE_STREAM_MAXSELECT", "Numero massimo selezioni"); +define("_MI_YOUTUBE_STREAM_MAXSELECTDSC", "Numero di video selezionabili da mostrare nella pagina principale."); +define("_MI_YOUTUBE_STREAM_MAXRECORDS", "Numero massimo records"); +define("_MI_YOUTUBE_STREAM_MAXRECORDSDSC", "Numero massimo di records da mostrare nella pagina principale."); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/modinfo.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/modinfo.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/language/italian/modinfo.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,26 @@ +<?php +// +// --------------------------------------------------- +// Module: youtube_stream +// File: language/modinfo.php +// Version: 1.0 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info italiano +define("_MI_YOUTUBE_STREAM_NAME", "YouTube Stream"); +define("_MI_YOUTUBE_STREAM_DESC", "Cerca e visualizza Video Stream da youtube."); + +// preferenze +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORD", "Parola chiave"); +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORDDSC", "Parola chiave che sar\xE0 visualizzata all'inizio."); +define("_MI_YOUTUBE_STREAM_MAXSELECT", "Numero massimo selezioni"); +define("_MI_YOUTUBE_STREAM_MAXSELECTDSC", "Numero di video selezionabili da mostrare nella pagina principale."); +define("_MI_YOUTUBE_STREAM_MAXRECORDS", "Numero massimo records"); +define("_MI_YOUTUBE_STREAM_MAXRECORDSDSC", "Numero massimo di records da mostrare nella pagina principale."); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.01/youtubestream/xoops_version.php =================================================================== --- XoopsModules/youtubestream/releases/1.01/youtubestream/xoops_version.php (rev 0) +++ XoopsModules/youtubestream/releases/1.01/youtubestream/xoops_version.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,58 @@ +<?php +// +// --------------------------------------------------- +// File: xoops_version.php +// Version: 1.01 +// Date-Time: 2008/07/08 16:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} +// main +$modversion['name'] = _MI_YOUTUBE_STREAM_NAME; // +$modversion['version'] = 1.01; +$modversion['description'] = _MI_YOUTUBE_STREAM_DESC; // +$modversion['author'] = 'timgno'; +$modversion['credits'] = 'http://risorseweb.netsons.org - http://www.xoopsitalia.org'; +$modversion['help'] = ''; +$modversion['license'] = 'GPL see LICENSE'; +$modversion['official'] = 0; +$modversion['image'] = 'images/youtubestream_slogo.png'; +$modversion['dirname'] = 'youtubestream'; + +// Added by timgno for the About page +$modversion['developer_lead'] = "timgno"; +$modversion['developer_contributor'] = ""; +$modversion['developer_website_url'] = "http://mcdirectory.netsons.org/txmod/"; +$modversion['developer_website_name'] = "TXMod"; +$modversion['developer_email'] = "ris...@ne..."; +$modversion['status_version'] = "Release Candidate"; +$modversion['releasedate'] = "Jun 25th 2008"; +$modversion['status'] = "RC"; +$modversion['date'] = "2008-06-27"; +$modversion['xoopsversion'] = "2.0/2.2/2.3"; + +$modversion['author_realname'] = "<b>Luis Sirio</b>"; + +$modversion['author_website'][1]['name'] = "TXMod"; +$modversion['author_website'][1]['url'] = "http://mcdirectory.netsons.org/txmod/"; +$modversion['author_website'][2]['name'] = "Risorse Web"; +$modversion['author_website'][2]['url'] = "http://www.risorseweb.netsons.org"; + +$modversion['author_email'] = "ris...@ne..."; +$modversion['demo_site_url'] = "http://mcdirectory.netsons.org/txmod/modules/codelink/"; +$modversion['demo_site_name'] = "TXMod"; +$modversion['support_site_url'] = "http://www.xoopsitalia.org"; +$modversion['support_site_name'] = "XoopsItalia"; + +// Admin +$modversion['hasAdmin'] = 0; + +// Main +$modversion['hasMain'] = 1; + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/admin/about.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/admin/about.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/about.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,59 @@ +<?php +// +// --------------------------------------------------- +// File: admin/about.php +// Version: 1.0 +// Date-Time: 2008/07/11 14:53:14 +// Author: timgno +// Email: ris...@ne... +// URLs: http://www.risorseweb.netsons.org - http://mcdirectory.netsons.org/txmod/ +// License GNU +// --------------------------------------------------- +// + +include "admin_header.php"; + +xoops_cp_header(); +include "info_header.php"; + +// Author Information +$sform = new XoopsThemeForm(_AM_YOUTUBE_STREAM_AUTHOR_INFO, "", ""); +if ( $versioninfo->getInfo('author_realname')) + $author_name = $versioninfo->getInfo('author') . " (" . $versioninfo->getInfo('author_realname') . ")"; +else + $author_name = $versioninfo->getInfo('author'); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_AUTHOR_NAME, $author_name)); +$author_sites = $versioninfo -> getInfo('author_website'); +$author_site_info = ""; +foreach($author_sites as $site){ + $author_site_info .= "<a href='" . $site['url'] . "' target='blank'>" . $site['name'] . "</a>; "; +} +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_AUTHOR_WEBSITE, $author_site_info)); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_AUTHOR_EMAIL, "<a href='mailto:" . $versioninfo -> getInfo('author_email') . "'>" . $versioninfo -> getInfo('author_email') . "</a>")); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_AUTHOR_CREDITS, $versioninfo -> getInfo('credits'))); +$sform -> display(); +echo "<br />"; +$sform = new XoopsThemeForm(_AM_YOUTUBE_STREAM_MODULE_INFO, "", ""); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_MODULE_STATUS, $versioninfo -> getInfo('status'))); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_MODULE_XOOPSVERSION, $versioninfo -> getInfo('xoopsversion'))); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_MODULE_DEMO, "<a href='" . $versioninfo -> getInfo('demo_site_url') . "' target='blank'>" . $versioninfo -> getInfo('demo_site_name') . "</a>")); +$sform -> addElement(new XoopsFormLabel(_AM_YOUTUBE_STREAM_MODULE_SUPPORT, "<a href='" . $versioninfo -> getInfo('support_site_url') . "' target='blank'>" . $versioninfo -> getInfo('support_site_name') . "</a>")); +$sform -> display(); +echo "<br />"; +$file = "../readme.txt"; +if (@file_exists($file)) +{ + $fp = @fopen($file, "r"); + $readmetext = @fread($fp, filesize($file)); + @fclose($file); + $sform = new XoopsThemeForm(_AM_YOUTUBE_STREAM_ABOUT, "", ""); + ob_start(); + echo "<div class='even' align='left'>".$myts->displayTarea($readmetext)."</div>"; + $sform -> addElement(new XoopsFormLabel('', ob_get_contents(), 0)); + ob_end_clean(); + $sform -> display(); + unset($file); +} + +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/admin/admin_header.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/admin/admin_header.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/admin_header.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,27 @@ +<?php +// +// --------------------------------------------------- +// File: admin/admin_header.php +// Version: 1.05 +// Date-Time: 2008/07/11 10:03:11 +// Author: timgno +// Email: ris...@ne... +// URLs: http://www.risorseweb.netsons.org - http://mcdirectory.netsons.org/txmod/ +// License GNU +// --------------------------------------------------- +// +include '../../../mainfile.php'; +include '../../../include/cp_header.php'; + +if ( !file_exists("../language/".$xoopsConfig['language']."/admin.php") ) +{ + include "../language/".$xoopsConfig['language']."/admin.php"; +} + +include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; +include_once XOOPS_ROOT_PATH . '/class/uploader.php'; + +$myts = &MyTextSanitizer::getInstance(); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/index.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,28 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: admin/index.php +// Version: 1.05 +// Date-Time: 2008/07/11 18:00:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +include "admin_header.php"; + +xoops_cp_header(); +include "info_header.php"; +global $xoopsModule; +echo "<br /><br />"; +echo "<div style=\"text-align: center; color: #FF0000;\">".$xoopsModule->getVar('name')."</div>"; +echo "<br /><br />"; +echo "<div style=\"text-align: center; color: #ccc; font-weight: bold;\"> + <a href='".XOOPS_URL."/modules/youtubestream/index.php' >"._AM_YOUTUBE_STREAM_GOTOMODULE."</a> | + <a href='".XOOPS_URL."/modules/youtubestream/admin/about.php' >"._AM_YOUTUBE_STREAM_INFO."</a> + </div>"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/admin/info_header.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/admin/info_header.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/info_header.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,25 @@ +<?php +// +// --------------------------------------------------- +// File: admin/info_header.php +// Version: 1.0 +// Date-Time: 2008/05/11 11:34:40 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +include "admin_header.php"; + +$module_handler =& xoops_gethandler('module'); +$versioninfo =& $module_handler->get($xoopsModule->getVar('mid')); + +// Left headings... +echo "<a href='index.php'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule -> dirname() . "/" . $versioninfo -> getInfo('image') . "' alt='' hspace='10' vspace='0' align='left'></a>"; +echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . " ver " . $versioninfo->getInfo('version') . "</div>"; +echo "</div>"; +echo " -------------------------------- "; +echo "<div>" . _AM_YOUTUBE_STREAM_RELEASE . ": " . $versioninfo -> getInfo('releasedate') . "</div><br />"; + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/admin/menu.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/admin/menu.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/admin/menu.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,15 @@ +<?php +// +// --------------------------------------------------- +// File: admin/menu.php +// Version: 1.05 +// Date-Time: 2008/07/10 10:00:10 +// Author: timgno +// Email: ris...@ne... +// URLs: http://www.risorseweb.netsons.org - http://mcdirectory.netsons.org/txmod/ +// License GNU +// --------------------------------------------------- +// +$adminmenu[0]['title'] = _MI_YOUTUBE_STREAM_ADMENU0; +$adminmenu[0]['link'] = "admin/about.php"; +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI =================================================================== (Binary files differ) Property changes on: XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI.inc.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI.inc.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/class/YouTubeAPI.inc.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,169 @@ +<?php +define("ANY",0); +define("YT",1); +define("PC",2); + +/** + * This class fetching live streaming links of youtube videos, both for mobile (real player) and PC (flash player) + * + *@author timgno http://mcdirectory.netsons.org/txmod/ + *@credit Rochak Chauhan [www.dmwtechnologies.com] + */ +class YouTubeAPI +{ + var $startIndex=1; + var $format=YT; + var $maxResults=50; + var $keyword=""; + var $feedString=""; + + function YouTubeAPI($keyword,$maxResults=50,$startIndex=1,$format=ANY) + { + $this->keyword=$keyword; + $this->format=$format; + $this->maxResults=$maxResults; + $this->startIndex=$startIndex; + $url="http://gdata.youtube.com/feeds/api/videos?vq=$keyword&start-index=$startIndex&max-results=$maxResults"; + $this->feedString=$this->getXmlCodeViaFopen($url); + } + /** + * Function to get the XML code from the YouTubeAPI + * + * @param string $url + * @access private + * + * @return string + */ + function &getXmlCodeViaFopen($url) + { + $returnStr=""; + $fp=fopen($url, "r") or die("ERROR: Illegal YouTube API URL"); + while (!feof($fp)) { + $returnStr.=fgetc($fp); + } + fclose($fp); + return $returnStr; + } + /** + * Function to get the Title from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + function &getTitle($str) + { + $final=array(); + $returnArray=array(); + $pattern="/<title type='text'>(.*)\<\/title\>/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + if(isset($returnArray[0][1])) { + return $returnArray[0][1]; + } + else { + return "NA"; + } + } + /** + * Function to get the FLV/SWF url from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + function &getFlvUrl($str) + { + $final=array(); + $returnArray=array(); + $pattern="/<media:player url='(.*)'/Uis"; + //$pattern="/<media:content url='(.*)' type='application\/x-shockwave-flash'/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + + if(isset($returnArray[0][1])) { + return $returnArray[0][1]; + } + else { + return "#"; + } + } + /** + * Function to get the mobile streaming url from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + function &getMobileUrl($str) + { + $final=array(); + $returnArray=array(); + $pattern="/<media:content url='(.*)' type='video\/3gpp'/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + + if(isset($returnArray[1][1])) { + return $returnArray[1][1]; + } + else { + return "#"; + } + } + /** + * Function to get the video thumbnail from the XML/RSS Feed + * + * @param string $str + * @access private + * @return string + */ + function &getThumbnailUrl($str) + { + $final=array(); + $returnArray=array(); + $pattern="/<media:thumbnail url='(.*)' height='97'/Uis"; + preg_match_all($pattern, $str, $returnArray, PREG_SET_ORDER); + + $rand=rand(0,2); + + if(isset($returnArray[$rand][1])) { + return $returnArray[$rand][1]; + } + else { + return "http://static.fluxstatic.com/-/Clients/Common/Img/ExternalCommunityThumbnails/ExtCommunity_YouTube_Size50x50.jpg"; + } + } + /** + * Function to get Streaming link info + * + * @param string $feed + * @access public + * @return array + */ + function &getStreamingLinks() + { + $feed=$this->feedString; + $final=array(); + $returnArray=array(); + //$pattern="/<title type='text'>(.*)<category scheme=/Uis"; + $pattern="/<title type='text'>(.*)<category scheme='http:\/\/gdata.youtube.com\/schemas\/2007\/keywords.cat'/Uis"; + preg_match_all($pattern, $feed, $returnArray, PREG_SET_ORDER); + + for($i = 1; $i < count($returnArray); $i++) + { + $str=$returnArray[$i][0]; + $title=$this->getTitle($str); + $flvUrl=$this->getFlvUrl($str); + $mobileUrl=$this->getMobileUrl($str); + $thumbnailUrl=$this->getThumbnailUrl($str); + if ($this->format==YT) { + $final[]=array("title"=>$title,"flvurl"=>$flvUrl,"thumbnailUrl"=>$thumbnailUrl); + } + elseif ($this->format==PC) { + $final[]=array("title"=>$title,"mobileurl"=>$mobileUrl,"thumbnailUrl"=>$thumbnailUrl); + } + else { + $final[]=array("title"=>$title,"flvurl"=>$flvUrl,"mobileurl"=>$mobileUrl,"thumbnailUrl"=>$thumbnailUrl); + } + } + return $final; + } +} +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/class/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/class/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/class/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/header.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/header.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/header.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,5 @@ +<?php + +include_once '../../mainfile.php'; + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/images/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/images/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/images/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/images/logo-en.png =================================================================== (Binary files differ) Property changes on: XoopsModules/youtubestream/releases/1.05/youtubestream/images/logo-en.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/youtubestream/releases/1.05/youtubestream/images/youtubestream_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/youtubestream/releases/1.05/youtubestream/images/youtubestream_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/youtubestream/releases/1.05/youtubestream/include/functions.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/include/functions.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/include/functions.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,14 @@ +<?php +// +// Author: timgno http://mcdirectory.netsons.org/txmod/ +// +function numRecords() +{ + +} + +function numOptions() +{ + +} +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/include/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/include/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/include/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/include/vars.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/include/vars.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/include/vars.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,8 @@ +<?php +// +// +// +define("ANY",0); +define("PC",1); +define("MOBILE",2); +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/index.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/index.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/index.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,103 @@ +<?php +// +// --------------------------------------------------- +// File: index.php +// Version: 1.05 +// Date-Time: 2008/07/10 10:00:10 +// Author: timgno +// Email: ris...@ne... +// URLs: http://www.risorseweb.netsons.org - http://mcdirectory.netsons.org/txmod/ +// License +// --------------------------------------------------- +// +include('header.php'); +global $xoopsModuleConfig; + +$maxrecords = 5; +$maxselect = 50; +$keyword = $xoopsModuleConfig['custom_keyword']; + +$myts =& MyTextSanitizer::getInstance(); +if (isset($_GET['keyword']) && trim($_GET['keyword'])!="") +{ + $keyword = $myts->stripSlashesGPC(trim($_GET['keyword'])); + $keyword = urlencode($keyword); +} + +if (isset($_GET['maxrecords'])) +{ + $maxrecords = $_GET['maxrecords']; + $xoopsOption['maxrecords'] = intval($_GET['maxrecords']); + if ($xoopsOption['maxrecords'] > $maxselect) + { + $xoopsOption['maxrecords'] = $xoopsModuleConfig['max_records']; + } +} else { + $xoopsOption['maxrecords'] = $xoopsModuleConfig['max_records']; +} +// dichiarazione template principale +$xoopsOption['template_main'] = 'youtubestream.html'; + +include(XOOPS_ROOT_PATH.'/header.php'); + +// Personalizzazione dello stile +$xoTheme->addStylesheet('modules/youtubestream/style/youtubestream.css'); + +$xoopsTpl->assign('lang_slogan', _MD_YOUTUBE_STREAM_SLOGAN); +$xoopsTpl->assign('lang_description', _MD_YOUTUBE_STREAM_DESCRIPTION); +$xoopsTpl->assign('keyword', $keyword); +$xoopsTpl->assign('num_column', $xoopsModuleConfig['num_column']); + +include_once("class/YouTubeAPI.inc.php"); +$api =& new YouTubeAPI($keyword, $xoopsOption['maxrecords'], 1); +$result = $api->getStreamingLinks(); +$total = count($result); +$count = 1; +$videos = array(); +for ($i = 0; $i <= $total; $i++) +{ + $videos['imageSrc'] = $result[$i]['thumbnailUrl']; + $videos['title'] = $result[$i]['title']; + if (isset($result[$i]['flvurl'])) + { + $videos['flvUrl'] = $result[$i]['flvurl']; + } + if (isset($result[$i]['mobileurl'])) + { + $videos['mobileUrl'] = $result[$i]['mobileurl']; + } + $videos['lang_video_title'] = _MD_YOUTUBE_STREAM_VIDEOTITLE; + $videos['lang_streamonyt'] = _MD_YOUTUBE_STREAM_STREAMONYT; + $videos['lang_streamonpc'] = _MD_YOUTUBE_STREAM_STREAMONPC; + + $videos['count'] = $count; + $xoopsTpl->append('videos', $videos); + $count++; +} + +if ($xoopsModuleConfig['displayselect'] == 1 ) +{ + $xoopsTpl->assign('displayselect', true); + + $numrecords_options = ''; + for ( $i = 5; $i <= $maxselect; $i = $i + 5 ) + { + $sel = ''; + if ($i == $xoopsOption['maxrecords']) + { + $sel = ' selected="selected"'; + } + $numrecords_options .= '<option value="'.$i.'"'.$sel.'>'.$i.'</option>'; + } + $xoopsTpl->assign('select_option', $numrecords_options); +} else { + $xoopsTpl->assign('displayselect', false); +} + +$xoopsTpl->assign('lang_search', _MD_YOUTUBE_STREAM_SEARCH); +$xoopsTpl->assign('lang_records', _MD_YOUTUBE_STREAM_RECORDS); + +$xoopsTpl->assign('admin_url', " - <a href='".XOOPS_URL."/modules/youtubestream/admin/index.php'>"._MD_YOUTUBE_STREAM_ADMIN."</a> - "); + +include(XOOPS_ROOT_PATH.'/footer.php'); +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/admin.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/admin.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/admin.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,30 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: language/admin.php +// Version: 1.0 +// Date-Time: 2008/07/11 15:43:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +// info admin +define('_AM_YOUTUBE_STREAM_AUTHOR_INFO', "Author Informations"); +define('_AM_YOUTUBE_STREAM_AUTHOR_NAME', "Author"); +define('_AM_YOUTUBE_STREAM_AUTHOR_WEBSITE', "Author WebSite"); +define('_AM_YOUTUBE_STREAM_AUTHOR_EMAIL', "Author Email"); +define('_AM_YOUTUBE_STREAM_AUTHOR_CREDITS', "Credits"); +define('_AM_YOUTUBE_STREAM_MODULE_INFO', "Module Build Informations"); +define('_AM_YOUTUBE_STREAM_MODULE_STATUS', "Build Status"); +define('_AM_YOUTUBE_STREAM_MODULE_DEMO', "Demo of the module"); +define('_AM_YOUTUBE_STREAM_MODULE_SUPPORT', "Official Support"); +define('_AM_YOUTUBE_STREAM_RELEASE', "Date to release "); +define('_AM_YOUTUBE_STREAM_AUTHOR_BUGFIXES', "Story of bug fix"); +define('_AM_YOUTUBE_STREAM_MODULE_XOOPSVERSION', "Xoops Versions"); +define('_AM_YOUTUBE_STREAM_ABOUT', "Informations Evoluction"); +define('_AM_YOUTUBE_STREAM_GOTOMODULE', "Go to module"); +define('_AM_YOUTUBE_STREAM_INFO', "Info"); +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/main.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/main.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/main.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,25 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: language/main.php +// Version: 1.05 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info italiano +define("_MD_YOUTUBE_STREAM_SLOGAN", "YouTube Stream with RealPlayer"); +define("_MD_YOUTUBE_STREAM_DESCRIPTION", "Search Video Stream from YouTube simply typing a keyword in the text field to receive a list of so many videos that you can view directly on your PC or on the YouTube site. To view videos use the links under the picture."); +define("_MD_YOUTUBE_STREAM_SEARCH", "Search"); +define("_MD_YOUTUBE_STREAM_RECORDS", "Records"); + +define("_MD_YOUTUBE_STREAM_VIDEOTITLE", "Title"); +define("_MD_YOUTUBE_STREAM_STREAMONYT", "Stream on YouTube"); +define("_MD_YOUTUBE_STREAM_STREAMONPC", "Stream on PC"); + +define("_MD_YOUTUBE_STREAM_ADMIN", "Administraction"); +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/modinfo.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/modinfo.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/english/modinfo.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,30 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: language/modinfo.php +// Version: 1.05 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info english +define("_MI_YOUTUBE_STREAM_NAME", "YouTube Stream"); +define("_MI_YOUTUBE_STREAM_DESC", "Search Video Stream from YouTube"); + +// preference +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORD", "Keywords"); +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORDDSC", "Keywords which will be displayed at the beginning."); +define('_MI_YOUTUBE_STREAM_DISPLAYSEL', 'Show two box selection?'); +define('_MI_YOUTUBE_STREAM_DISPLAYSELDSC', 'Choose Yes to show two box selection at the top and bottom of the page.'); +define("_MI_YOUTUBE_STREAM_MAXRECORDS", "Maximum results"); +define("_MI_YOUTUBE_STREAM_MAXRECORDSDSC", "Maximum number of results to display on the main page."); +define("_MI_YOUTUBE_STREAM_NUMCOLUMN", "Number horizontal results"); +define("_MI_YOUTUBE_STREAM_NUMCOLUMNDSC", "Number of horizontal results to display on the main page."); + +define("_MI_YOUTUBE_STREAM_ADMENU0","Info on YouTube Stream"); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/admin.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/admin.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/admin.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,30 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: language/admin.php +// Version: 1.0 +// Date-Time: 2008/07/11 15:43:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +// info admin +define('_AM_YOUTUBE_STREAM_AUTHOR_INFO', "Informazioni Autore"); +define('_AM_YOUTUBE_STREAM_AUTHOR_NAME', "Autore"); +define('_AM_YOUTUBE_STREAM_AUTHOR_WEBSITE', "Sito Autore"); +define('_AM_YOUTUBE_STREAM_AUTHOR_EMAIL', "Email Autore"); +define('_AM_YOUTUBE_STREAM_AUTHOR_CREDITS', "Crediti"); +define('_AM_YOUTUBE_STREAM_MODULE_INFO', "Informazioni Sviluppo Modulo"); +define('_AM_YOUTUBE_STREAM_MODULE_STATUS', "Stato Sviluppo"); +define('_AM_YOUTUBE_STREAM_MODULE_DEMO', "Demo de module"); +define('_AM_YOUTUBE_STREAM_MODULE_SUPPORT', "Support officiale"); +define('_AM_YOUTUBE_STREAM_RELEASE', "Data di rilascio "); +define('_AM_YOUTUBE_STREAM_AUTHOR_BUGFIXES', "Storia dei bug fissi"); +define('_AM_YOUTUBE_STREAM_MODULE_XOOPSVERSION', "Versione Xoops"); +define('_AM_YOUTUBE_STREAM_ABOUT', "Informationes Evoluctione"); +define('_AM_YOUTUBE_STREAM_GOTOMODULE', "Accuel de module"); +define('_AM_YOUTUBE_STREAM_INFO', "Info"); +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/index.html =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/index.html (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/index.html 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/main.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/main.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/main.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,26 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: language/main.php +// Version: 1.05 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info french +define("_MD_YOUTUBE_STREAM_SLOGAN", "YouTube Stream avec RealPlayer"); +define("_MD_YOUTUBE_STREAM_DESCRIPTION", "Recherche flux vid\xE9o de YouTube simplement taper un mot-cl\xE9 dans le champ de texte pour recevoir une liste de tant de vid\xE9os que vous pouvez consulter directement sur votre PC ou sur le site YouTube. Pour visionner les vid\xE9os utiliser les liens sous la photo."); +define("_MD_YOUTUBE_STREAM_SEARCH", "Recherche"); +define("_MD_YOUTUBE_STREAM_RECORDS", "Records"); + +define("_MD_YOUTUBE_STREAM_VIDEOTITLE", "Titre"); +define("_MD_YOUTUBE_STREAM_STREAMONYT", "Stream sur YouTube"); +define("_MD_YOUTUBE_STREAM_STREAMONPC", "Stream sur PC"); + +define("_MD_YOUTUBE_STREAM_ADMIN", "Amministraction"); + +?> \ No newline at end of file Added: XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/modinfo.php =================================================================== --- XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/modinfo.php (rev 0) +++ XoopsModules/youtubestream/releases/1.05/youtubestream/language/french/modinfo.php 2012-02-15 13:27:36 UTC (rev 8996) @@ -0,0 +1,30 @@ +<?php +// +// --------------------------------------------------- +// Module: youtubestream +// File: language/modinfo.php +// Version: 1.05 +// Date-Time: 2008/07/8 15:03:10 +// Author: timgno +// Email: ris...@ne... +// URL: http://www.risorseweb.netsons.org +// --------------------------------------------------- +// + +//info french +define("_MI_YOUTUBE_STREAM_NAME", "YouTube Stream"); +define("_MI_YOUTUBE_STREAM_DESC", "Recherche flux vid\xE9o de YouTube"); + +// preference +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORD", "Mots-cl\xE9s"); +define("_MI_YOUTUBE_STREAM_CUSTOMKEYWORDDSC", "Mots-cl\xE9s qui sera affich\xE9 au d\xE9but."); +define('_MI_YOUTUBE_STREAM_DISPLAYSEL', 'Voir la bo\xEEte de s\xE9lection de deux?'); +define('_MI_YOUTUBE_STREAM_DISPLAYSELDSC', 'Choisissez Oui pour pr\xE9sent... [truncated message content] |
From: <for...@us...> - 2012-02-15 13:21:41
|
Revision: 8995 http://xoops.svn.sourceforge.net/xoops/?rev=8995&view=rev Author: forxoops Date: 2012-02-15 13:21:30 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Fix date problem with some old module Fix an error during install process for template Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopsform/formtextdateselect.php XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/calendar.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/modulesadmin/modulesadmin.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopsform/formtextdateselect.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopsform/formtextdateselect.php 2012-02-15 13:19:51 UTC (rev 8994) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/xoopsform/formtextdateselect.php 2012-02-15 13:21:30 UTC (rev 8995) @@ -45,10 +45,10 @@ $display_value = $ele_value; $ele_value = time(); } else { - $display_value = date(_SHORTDATESTRING, $ele_value); + $display_value = date(_CAL_FORMAT, $ele_value); } - $jstime = formatTimestamp($ele_value, _SHORTDATESTRING); + $jstime = formatTimestamp($ele_value, _CAL_FORMAT); $GLOBALS['xoTheme']->addScript('include/calendar.js'); $GLOBALS['xoTheme']->addStylesheet('include/calendar-blue.css'); if (!$included) { @@ -129,8 +129,8 @@ Calendar._TT["TODAY"] = "' . _CAL_TODAY . '"; // date formats - Calendar._TT["DEF_DATE_FORMAT"] = "' . _SHORTDATESTRING . '"; - Calendar._TT["TT_DATE_FORMAT"] = "' . _SHORTDATESTRING . '"; + Calendar._TT["DEF_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + Calendar._TT["TT_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; Calendar._TT["WK"] = ""; '); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/calendar.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/calendar.php 2012-02-15 13:19:51 UTC (rev 8994) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/calendar.php 2012-02-15 13:21:30 UTC (rev 8995) @@ -6,6 +6,7 @@ // more examples: http://php.net/manual/en/function.date.php //%%%%% Time Zone %%%% +define("_CAL_FORMAT","Y-m-d"); define("_CAL_SUNDAY", "Sunday"); define("_CAL_MONDAY", "Monday"); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/modulesadmin/modulesadmin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2012-02-15 13:19:51 UTC (rev 8994) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2012-02-15 13:21:30 UTC (rev 8995) @@ -165,7 +165,8 @@ $msgs[] = _AM_SYSTEM_MODULES_TEMPLATES_ADD; foreach ($templates as $tpl) { $tplfile =& $tplfile_handler->create(); - $tpldata =& xoops_module_gettemplate($dirname, $tpl['file']); + $type = (isset($tpl['type']) ? $tpl['type'] : 'module'); + $tpldata =& xoops_module_gettemplate($dirname, $tpl['file'], $type); $tplfile->setVar('tpl_source', $tpldata, true); $tplfile->setVar('tpl_refid', $newmid); @@ -175,7 +176,7 @@ $tplfile->setVar('tpl_module', $dirname); $tplfile->setVar('tpl_lastmodified', time()); $tplfile->setVar('tpl_lastimported', time()); - $tplfile->setVar('tpl_type', 'module'); + $tplfile->setVar('tpl_type', $type); if (!$tplfile_handler->insert($tplfile)) { $msgs[] = ' <span style="color:#ff0000;">' . sprintf(_AM_SYSTEM_MODULES_TEMPLATE_ADD_ERROR, "<strong>" . $tpl['file'] . "</strong>") . "</span>"; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-02-15 13:20:02
|
Revision: 8994 http://xoops.svn.sourceforge.net/xoops/?rev=8994&view=rev Author: txmodxoops Date: 2012-02-15 13:19:51 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module videobyuser v1.02 Added Paths: ----------- XoopsModules/videobyuser/ XoopsModules/videobyuser/branches/ XoopsModules/videobyuser/releases/ XoopsModules/videobyuser/releases/1.02/ XoopsModules/videobyuser/releases/1.02/videosbyuser/ XoopsModules/videobyuser/releases/1.02/videosbyuser/class/ XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php XoopsModules/videobyuser/releases/1.02/videosbyuser/images/ XoopsModules/videobyuser/releases/1.02/videosbyuser/images/videosbyuser_slogo.png XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php XoopsModules/videobyuser/releases/1.02/videosbyuser/language/ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt XoopsModules/videobyuser/releases/1.02/videosbyuser/style/ XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php XoopsModules/videobyuser/trunk/ Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,343 @@ +<?php + +/** + * videosbyuser Class. + * + * videosbyuser is a class written by txmod in PHP5 + * to act as a wrapper for Youtube's API. + * + * Methods process the response XML and return a friendly array of data + * to make development simple and intuitive. + */ + +class videosbyuser +{ +//CLASS VARIABLES + + /** + * @var string + */ + var $video_object = null; + + /** + * @var string + */ + var $user_object = null; + + /** + * @var string + */ + var $comment_object = null; + + /** + * @var int + */ + var $next_index = -1; +//CLASS CONSTRUCTOR + + /** + * Class constructor. + * @param string $video The video object name in the returned array. + * @param string $user The user object name in the returned array + * @param string $comment The comment object name in the returned array + */ + function videosbyuser($video, $user, $comment) { + $this->video_object = $video; + $this->user_object = $user; + $this->comment_object = $comment; + } +//CLASS FUNCTIONS + /** + * Returns all youtube videos that belong to the corresponding user. + */ + function getUserVideos($user,$category=null,$start_index =1,$max = 25){ + //set up the url to the feed + $feedURL = 'http://gdata.youtube.com/feeds/api/videos?author='.$user.'&start-index='.$start_index.'&max-results='.$max; + + //add category variable to feed url, if it exists + if($category != null){ $feedURL = $feedURL . '&category=' . $category; } + + //read the feed and place it in an simple_xml object + $xml = simplexml_load_file($feedURL); + + //get the next start index. + if(!empty($xml->link[4])){ + $this->next_index = (int)preg_replace('/&max-results='.$max.'/', '', preg_replace('/http:\/\/gdata.youtube.com\/feeds\/api\/videos\?author='.$user.'&start-index=/','', (string)$xml->link[4]->attributes()->href)); + } //if empty, then set $this->nex_index to -1 to let the user know they have reached the end of the list + else { + $this->next_index = -1; + } + + $video_array = array (); //holds the video objects + $i = 0; + foreach ($xml->entry as $entry) { + //id is the full url to get the video feed. the characters after the last slash is the actual video id + //so id here could be 'http://gdata.youtube.com/feeds/api/videos/2jkExrrm_sQ' with the actual video id being 2jkExrrm_sQ + $c = array(); //reset memory for temp video object + //extract youtube id from url + $c[$this->video_object]['youtube_id'] = preg_replace('/http:\/\/gdata.youtube.com\/feeds\/api\/videos\//','',(string) $entry->id); + $c[$this->video_object]['author'] = $entry->author->name; + + $video = array(); //reset variable + //magically gets new variables for each video + $video = $entry->children('http://search.yahoo.com/mrss/'); + $player = $video->group->player->attributes(); //get value for player variable + $thumbnail1 = $video->group->thumbnail[0]->attributes(); //get value for first thumbnail variable + $thumbnail2 = $video->group->thumbnail[1]->attributes(); //get value for first thumbnail variable + $thumbnail3 = $video->group->thumbnail[2]->attributes(); //get value for first thumbnail variable + $thumbnail4 = $video->group->thumbnail[3]->attributes(); //get value for first thumbnail variable + + $c[$this->video_object]['title'] = (string) $video->group->title; + $c[$this->video_object]['description'] = (string) $video->group->description; + //keywords are a number of keywords in one string separated by commas + $c[$this->video_object]['keywords'] = (string) $video->group->keywords; + //category is a single keyword + $c[$this->video_object]['category'] = (string) $video->group->category; + //url is the actual url to the videos page + $c[$this->video_object]['url'] = (string) $player['url']; + //urls to thethumbnail images + $c[$this->video_object]['thumbnail_url1'] = (string) $thumbnail1['url']; + $c[$this->video_object]['thumbnail_url2'] = (string) $thumbnail2['url']; + $c[$this->video_object]['thumbnail_url3'] = (string) $thumbnail3['url']; + $c[$this->video_object]['thumbnail_url4'] = (string) $thumbnail4['url']; + + //magically get the duration for video in seconds + $yt = $video->children('http://gdata.youtube.com/schemas/2007'); + $duration = $yt->duration->attributes(); //extract from xml + $c[$this->video_object]['duration'] = (string) $duration['seconds']; + + + $video = array(); //reset variable + //magically get the duration for video in seconds + $video = $entry->children('http://gdata.youtube.com/schemas/2007'); + $views = $video->statistics->attributes(); + + //if results were returned - removes php warning + if(!empty($video)){ + //number of times the video has been viewed + if($views['viewCount']==''){ $c[$this->video_object]['view_count'] = '0'; } + else{ $c[$this->video_object]['view_count'] = (string) $views['viewCount']; } + //number of times the video has been set as favorite + if($views['favoriteCount']==''){ $c[$this->video_object]['favorite_count'] = '0'; } + else{ $c[$this->video_object]['favorite_count'] = (string) $views['favoriteCount']; } + } else { //results were not returned + $c[$this->video_object]['view_count'] = '0'; + $c[$this->video_object]['favorite_count'] = '0'; + } + $video_array[] = $c; + $i++; + } + + //set the array to instance variable $user_videos + return $video_array; + } + + function getUserInfo($user) { + + $authorURL = 'http://gdata.youtube.com/feeds/api/users/' . $user; + + $xml = simplexml_load_file($authorURL); + $author_array = array (); + if (!empty ($xml)) { + $author = $xml->children('http://gdata.youtube.com/schemas/2007'); + //user's user name' + $author_array[$this->user_object]['username'] = (string) $author->username; + //users first name (if supplied) + $author_array[$this->user_object]['first_name'] = (string) $author->firstName; + //users last name (if supplied) + $author_array[$this->user_object]['last_name'] = (string) $author->lastName; + //users age (if supplied) + $author_array[$this->user_object]['age'] = (string) $author->age; + //users hobbies (if supplied) + $author_array[$this->user_object]['hobbies'] = (string) $author->hobbies; + //users relationship (if supplied) ie single, married, etc... + $author_array[$this->user_object]['relationship'] = (string) $author->relationship; + //users occupation + $author_array[$this->user_object]['occupation'] = (string) $author->occupation; + //favorite music + $author_array[$this->user_object]['music'] = (string) $author->music; + //favorite movies (not youtube videos) ... the rest are pretty obvious + $author_array[$this->user_object]['movies'] = (string) $author->movies; + $author_array[$this->user_object]['location'] = (string) $author->location; + $author_array[$this->user_object]['hometown'] = (string) $author->hometown; + $author_array[$this->user_object]['gender'] = (string) $author->gender; + $author_array[$this->user_object]['description'] = (string) $author->description; + } + return $author_array; + } + + function getMostViewed($start_index = 1, $max = 25) { + $feedURL = 'http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed?start-index=' . $start_index . '&max-results=' . $max; + $xml = simplexml_load_file($feedURL); + $video_array = array (); //holds the video objects + $i = 0; + foreach ($xml->entry as $entry) { + //id is the full url to get the video feed. the characters after the last slash is the actual video id + //so id here could be 'http://gdata.youtube.com/feeds/api/videos/2jkExrrm_sQ' with the actual video id being 2jkExrrm_sQ + $c = array(); //reset memory for temp video object + //extract youtube id from url + $c[$this->video_object]['youtube_id'] = preg_replace('/http:\/\/gdata.youtube.com\/feeds\/api\/videos\//','',(string) $entry->id); + $c[$this->video_object]['author'] = $entry->author->name; + + $video = array(); //reset variable + //magically gets new variables for each video + $video = $entry->children('http://search.yahoo.com/mrss/'); + $player = $video->group->player->attributes(); //get value for player variable + $thumbnail1 = $video->group->thumbnail[0]->attributes(); //get value for first thumbnail variable + $thumbnail2 = $video->group->thumbnail[1]->attributes(); //get value for first thumbnail variable + $thumbnail3 = $video->group->thumbnail[2]->attributes(); //get value for first thumbnail variable + $thumbnail4 = $video->group->thumbnail[3]->attributes(); //get value for first thumbnail variable + + $c[$this->video_object]['title'] = (string) $video->group->title; + $c[$this->video_object]['description'] = (string) $video->group->description; + //keywords are a number of keywords in one string separated by commas + $c[$this->video_object]['keywords'] = (string) $video->group->keywords; + //category is a single keyword + $c[$this->video_object]['category'] = (string) $video->group->category; + //url is the actual url to the videos page + $c[$this->video_object]['url'] = (string) $player['url']; + //urls to thethumbnail images + $c[$this->video_object]['thumbnail_url1'] = (string) $thumbnail1['url']; + $c[$this->video_object]['thumbnail_url2'] = (string) $thumbnail2['url']; + $c[$this->video_object]['thumbnail_url3'] = (string) $thumbnail3['url']; + $c[$this->video_object]['thumbnail_url4'] = (string) $thumbnail4['url']; + + //magically get the duration for video in seconds + $yt = $video->children('http://gdata.youtube.com/schemas/2007'); + $duration = $yt->duration->attributes(); //extract from xml + $c[$this->video_object]['duration'] = (string) $duration['seconds']; + + + $video = array(); //reset variable + //magically get the duration for video in seconds + $video = $entry->children('http://gdata.youtube.com/schemas/2007'); + $views = $video->statistics->attributes(); + + //if results were returned - removes php warning + if(!empty($video)){ + //number of times the video has been viewed + if($views['viewCount']==''){ $c[$this->video_object]['view_count'] = '0'; } + else{ $c[$this->video_object]['view_count'] = (string) $views['viewCount']; } + //number of times the video has been set as favorite + if($views['favoriteCount']==''){ $c[$this->video_object]['favorite_count'] = '0'; } + else{ $c[$this->video_object]['favorite_count'] = (string) $views['favoriteCount']; } + } else { //results were not returned + $c[$this->video_object]['view_count'] = '0'; + $c[$this->video_object]['favorite_count'] = '0'; + } + $video_array[] = $c; + $i++; + } + + //set the array to instance variable $user_videos + return $video_array; + } + /** + * Returns the video comments of a youtube video.<br /> + */ + + function getVideoComments($id,$start_index=1,$max=25) { + $commentURL = 'http://gdata.youtube.com/feeds/api/videos/' . $id. '/comments?start-index='.$start_index.'&max-results='.$max; + $xml = simplexml_load_file($commentURL); + + $comment_array = array(); + $i=0; + foreach($xml->entry as $entry) + { + $comment_array[$i][$this->comment_object]['youtube_id'] = $id; + //get the author's name + $comment_array[$i][$this->comment_object]['author'] = (string)$entry->author->name; + //get title of the comment + $comment_array[$i][$this->comment_object]['title'] = (string)$entry->title; + //get comment content + $comment_array[$i][$this->comment_object]['content'] = (string)$entry->content; + //get the last time the comment was updated + $comment_array[$i][$this->comment_object]['updated'] = $entry->updated; + //get the time the comment was published + $comment_array[$i][$this->comment_object]['published'] = $entry->published; + $i++; + } + + return $comment_array; + } + /** + * Returns the information of a youtube video. + */ + + function getVideoInfo($id) { + //set up the feed url + $feedURL = 'http://gdata.youtube.com/feeds/api/videos/' . $id; + //read the feed and place it in an simple_xml object + $xml = simplexml_load_file($feedURL); + //create an empty array to deal with foreach loops incase nothing is returned from the feed query + $video_array = array (); + + //if the query returned a value and the xml object is not empty + if (!empty ($xml)) { + + //store the youtube_id in the object. + $video_array[$this->video_object]['youtube_id'] = $id; + //get the authors name + $video_array[$this->video_object]['author'] = $xml->author->name; + $video = $xml->children('http://search.yahoo.com/mrss/'); + + $player = $video->group->player->attributes(); + $thumbnail1 = $video->group->thumbnail[0]->attributes(); //get value for first thumbnail variable + $thumbnail2 = $video->group->thumbnail[1]->attributes(); //get value for first thumbnail variable + $thumbnail3 = $video->group->thumbnail[2]->attributes(); //get value for first thumbnail variable + $thumbnail4 = $video->group->thumbnail[3]->attributes(); //get value for first thumbnail variable + //get the url to the thumbnails for the video + $video_array[$this->video_object]['thumbnail_url1'] = (string) $thumbnail1['url']; + $video_array[$this->video_object]['thumbnail_url2'] = (string) $thumbnail2['url']; + $video_array[$this->video_object]['thumbnail_url3'] = (string) $thumbnail3['url']; + $video_array[$this->video_object]['thumbnail_url4'] = (string) $thumbnail4['url']; + + //get the video's title + $video_array[$this->video_object]['title'] = (string) $video->group->title; + //get the video's description + $video_array[$this->video_object]['description'] = (string) $video->group->description; + //get the video's category + $video_array[$this->video_object]['category'] = (string)$video->group->category; + //get the video's tags/keywords + $video_array[$this->video_object]['keywords'] = (string) $video->group->keywords; + //get the url to the video + $video_array[$this->video_object]['url'] = (string) $player['url']; + + + $yt = $video->children('http://gdata.youtube.com/schemas/2007'); + $length = $yt->duration->attributes(); + //get the video length in seconds + $video_array[$this->video_object]['length'] = (string) $length['seconds']; + $video = $xml->children('http://gdata.youtube.com/schemas/2007'); + //get the number of times the video has been viewed and marked as favorite + $views = $video->statistics->attributes(); + + + //if results were returned - removes php warning + if(!empty($video)){ + //number of times the video has been viewed + if($views['viewCount']==''){ $video_array[$this->video_object]['view_count'] = '0'; } + else{ $video_array[$this->video_object]['view_count'] = (string) $views['viewCount']; } + //number of times the video has been set as favorite + if($views['favoriteCount']==''){ $video_array[$this->video_object]['favorite_count'] = '0'; } + else{ $video_array[$this->video_object]['favorite_count'] = (string) $views['favoriteCount']; } + } else { //results were not returned + $video_array[$this->video_object]['view_count'] = '0'; + $video_array[$this->video_object]['favorite_count'] = '0'; + } + + $video = $xml->children('http://schemas.google.com/g/2005'); + + //check to see if there are any comments/any information about the comments + //if there is get the feedlink and number of comments + if ($video->comments->feedLink) { + $comments = $video->comments->feedLink->attributes(); + //get the number of comments for the video + $video_array[$this->video_object]['comments_count'] = (string) $comments['countHint']; + } + } + //return the current video array + return $video_array; + } +} +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,8 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +include '../../mainfile.php'; +$myts =& MyTextSanitizer::getInstance(); +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/images/videosbyuser_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/videobyuser/releases/1.02/videosbyuser/images/videosbyuser_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,76 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +// inclusione intestazione +include('header.php'); +global $xoTheme; + +// inclusione dell'intestazione della pagina (header file) +include(XOOPS_ROOT_PATH.'/header.php'); + +$xoTheme->addStylesheet("modules/videosbyuser/style/videosbyuser.css"); + +echo '<span style="text-align: center;"><b>'._MI_VBU_NAME.'</b></span><br /><br />'; + +$user = $myts->htmlspecialchars(trim($xoopsModuleConfig['custom_keyword'])); +//get or create youtube username +if( isset($_GET['user']) && trim($_GET['user'])!="") +{ + $youtube_user = $_GET['user']; + $youtube_user = urlencode($youtube_user); +} +else {$youtube_user = $user;} + +//create php5tube object and get videos +include_once("class/videosbyuser.class.php"); +$videosbyuser = new videosbyuser('Video','User','Comment'); +$videos = $videosbyuser->getUserVideos($youtube_user); + +?> + +<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"><div><?php echo _MI_VBU_SEARCHUSER; ?>:<input type="text" name="user" value="<?php echo $youtube_user; ?>" /> + <input type="submit" name="submit" value="<?php echo _MI_VBU_SEARCH; ?>" /></div><div> </div></form> + +<table cellpadding="2" cellspacing="2" border="1"> + +<?php foreach($videos as $video) { ?> +<tr> + <td><table cellpadding="2" cellspacing="2" border="0"> + <tr> + <td><div style="padding:2px;"><img src="<?php echo $video['Video']['thumbnail_url1']; ?>"></div></td> + <td><div style="padding:2px;"><img src="<?php echo $video['Video']['thumbnail_url2']; ?>"></div></td> + <td><div style="padding:2px;"><img src="<?php echo $video['Video']['thumbnail_url3']; ?>"></div></td> + </tr> + </table> + </td></tr> +<tr> +<td><table cellpadding="2" cellspacing="2" border="1"> + <tr> + <td> + <div style="padding:10px;"> + <a href="http://www.youtube.com/watch?v=<?php echo $video['Video']['youtube_id']; ?>" target="_blank"> + <img src="<?php echo $video['Video']['thumbnail_url4']; ?>" border="0" alt="<?php echo $video['Video']['title']; ?>" /> + </a> + </div> +</td> +<td> + <div style="font-size:10pt;"><b>Title</b> = <?php echo $video['Video']['title']; ?></div> + <div><b>Category</b> = <?php echo $video['Video']['category']; ?> times</div> + <div><b>Tags</b> = <?php echo $video['Video']['keywords']; ?> times</div> + <div><b>Description</b> = <?php echo $video['Video']['description']; ?></div> + <div><b>Views</b> = <?php echo $video['Video']['view_count']; ?> times</div> + <div><b>Marked as favorite</b> = <?php echo $video['Video']['favorite_count']; ?> times</div> + </td></tr> + </table> + </td></tr> +<?php } ?> +<tr><td style="text-align: right;" width="100%">Powered by: <a href="http://mcdirectory.netsons.org/txmod/" target="_blank">TXMod</a></td> +</table> + +<?php +// inclusione del footer +include(XOOPS_ROOT_PATH.'/footer.php'); + +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,10 @@ +<?php + +define("_MI_VBU_NAME", "Videos by User"); +define("_MI_VBU_DESC", "Searching for videos based on the user's name"); +define("_MI_VBU_CUSTOMKEYWORD", "Keyword"); +define("_MI_VBU_CUSTOMKEYWORDDSC", "Keyword default"); + +define("_MI_VBU_SEARCHUSER", "Search User"); +define("_MI_VBU_SEARCH", "Search"); +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,11 @@ +<?php + +define("_MI_VBU_NAME", "Videos by User"); +define("_MI_VBU_DESC", "Ricerca dei video in base al nome dell'utente"); +define("_MI_VBU_CUSTOMKEYWORD", "Parola chiave"); +define("_MI_VBU_CUSTOMKEYWORDDSC", "Parola chiave di default"); + +define("_MI_VBU_SEARCHUSER", "Cerca Utente"); +define("_MI_VBU_SEARCH", "Cerca"); + +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,3 @@ +Se vuoi sapere quanti o quali video ha inserito un utente su YouTube, questo modulo lo pu\xF2 fare. Dai dati che si ricevono, si visualizza il titolo, la categoria, la descrizione, le parole chiavi, quante volte \xE8 stato visualizzato e quanti l'hanno inserito tra i loro preferiti + +If you want to know how many or which included a video on YouTube user, this form can do. The data that we receive, you see the title, category, description, keywords, how many times has been viewed and how many have included among their favorites \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,14 @@ +/* base modules by timgno + http://mcdirectory.netsons.org/txmod/ + */ +html {} +body{} + +div.base{ + color: #F90000; + height: 100px; + text-align: center; + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 14px; + font-weight: bold; +} \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,31 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +$modversion['name'] = _MI_VBU_NAME; +$modversion['version'] = 1.02; +$modversion['description'] = _MI_VBU_DESC; +$modversion['author'] = 'timgno - http://mcdirectory.netsons.org/txmod'; +$modversion['credits'] = 'http://mcdirectory.netsons.org/txmod/'; +$modversion['help'] = 'help.php'; +$modversion['license'] = 'GPL see LICENSE'; +$modversion['official'] = 0; +$modversion['image'] = 'images/videosbyuser_slogo.png'; +$modversion['dirname'] = 'videosbyuser'; +// Admin +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = ""; +$modversion['adminmenu'] = ""; +// Main +$modversion['hasMain'] = 1; + +// Config +$i = 1; +$modversion['config'][$i]['name'] = 'custom_keyword'; +$modversion['config'][$i]['title'] = '_MI_VBU_CUSTOMKEYWORD'; +$modversion['config'][$i]['description'] = '_MI_VBU_CUSTOMKEYWORDDSC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'Rai'; +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-02-15 13:17:15
|
Revision: 8993 http://xoops.svn.sourceforge.net/xoops/?rev=8993&view=rev Author: txmodxoops Date: 2012-02-15 13:17:00 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module testadsl v1.00, v1.01 Added Paths: ----------- XoopsModules/testadsl/ XoopsModules/testadsl/branches/ XoopsModules/testadsl/releases/ XoopsModules/testadsl/releases/1.00/ XoopsModules/testadsl/releases/1.00/testadsl/ XoopsModules/testadsl/releases/1.00/testadsl/admin/ XoopsModules/testadsl/releases/1.00/testadsl/admin/about.php XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_footer.php XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_header.php XoopsModules/testadsl/releases/1.00/testadsl/admin/index.html XoopsModules/testadsl/releases/1.00/testadsl/admin/index.php XoopsModules/testadsl/releases/1.00/testadsl/admin/menu.php XoopsModules/testadsl/releases/1.00/testadsl/blocks/ XoopsModules/testadsl/releases/1.00/testadsl/blocks/index.html XoopsModules/testadsl/releases/1.00/testadsl/class/ XoopsModules/testadsl/releases/1.00/testadsl/class/index.html XoopsModules/testadsl/releases/1.00/testadsl/class/menu.php XoopsModules/testadsl/releases/1.00/testadsl/class/object.php XoopsModules/testadsl/releases/1.00/testadsl/images/ XoopsModules/testadsl/releases/1.00/testadsl/images/deco/ XoopsModules/testadsl/releases/1.00/testadsl/images/deco/about.png XoopsModules/testadsl/releases/1.00/testadsl/images/deco/arrow.gif XoopsModules/testadsl/releases/1.00/testadsl/images/deco/delete.gif XoopsModules/testadsl/releases/1.00/testadsl/images/deco/edit.gif XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.html XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.png XoopsModules/testadsl/releases/1.00/testadsl/images/deco/off.gif XoopsModules/testadsl/releases/1.00/testadsl/images/deco/on.gif XoopsModules/testadsl/releases/1.00/testadsl/images/deco/permissions.png XoopsModules/testadsl/releases/1.00/testadsl/images/deco/pref.png XoopsModules/testadsl/releases/1.00/testadsl/images/deco/update.png XoopsModules/testadsl/releases/1.00/testadsl/images/index.html XoopsModules/testadsl/releases/1.00/testadsl/images/menu/ XoopsModules/testadsl/releases/1.00/testadsl/images/menu/bg.png XoopsModules/testadsl/releases/1.00/testadsl/images/menu/index.html XoopsModules/testadsl/releases/1.00/testadsl/images/menu/left_both.png XoopsModules/testadsl/releases/1.00/testadsl/images/menu/right_both.png XoopsModules/testadsl/releases/1.00/testadsl/images/testadsl_slogo.png XoopsModules/testadsl/releases/1.00/testadsl/images/txmod_logo.png XoopsModules/testadsl/releases/1.00/testadsl/include/ XoopsModules/testadsl/releases/1.00/testadsl/include/functions.php XoopsModules/testadsl/releases/1.00/testadsl/include/index.html XoopsModules/testadsl/releases/1.00/testadsl/include/install.php XoopsModules/testadsl/releases/1.00/testadsl/index.php XoopsModules/testadsl/releases/1.00/testadsl/language/ XoopsModules/testadsl/releases/1.00/testadsl/language/english/ XoopsModules/testadsl/releases/1.00/testadsl/language/english/admin.php XoopsModules/testadsl/releases/1.00/testadsl/language/english/blocks.php XoopsModules/testadsl/releases/1.00/testadsl/language/english/index.html XoopsModules/testadsl/releases/1.00/testadsl/language/english/main.php XoopsModules/testadsl/releases/1.00/testadsl/language/english/modinfo.php XoopsModules/testadsl/releases/1.00/testadsl/language/french/ XoopsModules/testadsl/releases/1.00/testadsl/language/french/admin.php XoopsModules/testadsl/releases/1.00/testadsl/language/french/blocks.php XoopsModules/testadsl/releases/1.00/testadsl/language/french/index.html XoopsModules/testadsl/releases/1.00/testadsl/language/french/main.php XoopsModules/testadsl/releases/1.00/testadsl/language/french/modinfo.php XoopsModules/testadsl/releases/1.00/testadsl/language/index.html XoopsModules/testadsl/releases/1.00/testadsl/language/italian/ XoopsModules/testadsl/releases/1.00/testadsl/language/italian/admin.php XoopsModules/testadsl/releases/1.00/testadsl/language/italian/blocks.php XoopsModules/testadsl/releases/1.00/testadsl/language/italian/index.html XoopsModules/testadsl/releases/1.00/testadsl/language/italian/main.php XoopsModules/testadsl/releases/1.00/testadsl/language/italian/modinfo.php XoopsModules/testadsl/releases/1.00/testadsl/sql/ XoopsModules/testadsl/releases/1.00/testadsl/sql/index.html XoopsModules/testadsl/releases/1.00/testadsl/templates/ XoopsModules/testadsl/releases/1.00/testadsl/templates/blocks/ XoopsModules/testadsl/releases/1.00/testadsl/templates/blocks/index.html XoopsModules/testadsl/releases/1.00/testadsl/templates/index.html XoopsModules/testadsl/releases/1.00/testadsl/xoops_version.php XoopsModules/testadsl/releases/1.01/ XoopsModules/testadsl/releases/1.01/testadsl/ XoopsModules/testadsl/releases/1.01/testadsl/admin/ XoopsModules/testadsl/releases/1.01/testadsl/admin/about.php XoopsModules/testadsl/releases/1.01/testadsl/admin/admin_footer.php XoopsModules/testadsl/releases/1.01/testadsl/admin/admin_header.php XoopsModules/testadsl/releases/1.01/testadsl/admin/index.html XoopsModules/testadsl/releases/1.01/testadsl/admin/index.php XoopsModules/testadsl/releases/1.01/testadsl/admin/menu.php XoopsModules/testadsl/releases/1.01/testadsl/blocks/ XoopsModules/testadsl/releases/1.01/testadsl/blocks/index.html XoopsModules/testadsl/releases/1.01/testadsl/class/ XoopsModules/testadsl/releases/1.01/testadsl/class/index.html XoopsModules/testadsl/releases/1.01/testadsl/class/menu.php XoopsModules/testadsl/releases/1.01/testadsl/class/object.php XoopsModules/testadsl/releases/1.01/testadsl/images/ XoopsModules/testadsl/releases/1.01/testadsl/images/deco/ XoopsModules/testadsl/releases/1.01/testadsl/images/deco/about.png XoopsModules/testadsl/releases/1.01/testadsl/images/deco/arrow.gif XoopsModules/testadsl/releases/1.01/testadsl/images/deco/delete.gif XoopsModules/testadsl/releases/1.01/testadsl/images/deco/edit.gif XoopsModules/testadsl/releases/1.01/testadsl/images/deco/index.html XoopsModules/testadsl/releases/1.01/testadsl/images/deco/index.png XoopsModules/testadsl/releases/1.01/testadsl/images/deco/off.gif XoopsModules/testadsl/releases/1.01/testadsl/images/deco/on.gif XoopsModules/testadsl/releases/1.01/testadsl/images/deco/permissions.png XoopsModules/testadsl/releases/1.01/testadsl/images/deco/pref.png XoopsModules/testadsl/releases/1.01/testadsl/images/deco/update.png XoopsModules/testadsl/releases/1.01/testadsl/images/index.html XoopsModules/testadsl/releases/1.01/testadsl/images/menu/ XoopsModules/testadsl/releases/1.01/testadsl/images/menu/bg.png XoopsModules/testadsl/releases/1.01/testadsl/images/menu/index.html XoopsModules/testadsl/releases/1.01/testadsl/images/menu/left_both.png XoopsModules/testadsl/releases/1.01/testadsl/images/menu/right_both.png XoopsModules/testadsl/releases/1.01/testadsl/images/testadsl_logo.gif XoopsModules/testadsl/releases/1.01/testadsl/images/testadsl_slogo.png XoopsModules/testadsl/releases/1.01/testadsl/images/txmod_logo.png XoopsModules/testadsl/releases/1.01/testadsl/include/ XoopsModules/testadsl/releases/1.01/testadsl/include/functions.php XoopsModules/testadsl/releases/1.01/testadsl/include/index.html XoopsModules/testadsl/releases/1.01/testadsl/include/install.php XoopsModules/testadsl/releases/1.01/testadsl/index.php XoopsModules/testadsl/releases/1.01/testadsl/language/ XoopsModules/testadsl/releases/1.01/testadsl/language/english/ XoopsModules/testadsl/releases/1.01/testadsl/language/english/admin.php XoopsModules/testadsl/releases/1.01/testadsl/language/english/blocks.php XoopsModules/testadsl/releases/1.01/testadsl/language/english/index.html XoopsModules/testadsl/releases/1.01/testadsl/language/english/main.php XoopsModules/testadsl/releases/1.01/testadsl/language/english/modinfo.php XoopsModules/testadsl/releases/1.01/testadsl/language/french/ XoopsModules/testadsl/releases/1.01/testadsl/language/french/admin.php XoopsModules/testadsl/releases/1.01/testadsl/language/french/blocks.php XoopsModules/testadsl/releases/1.01/testadsl/language/french/index.html XoopsModules/testadsl/releases/1.01/testadsl/language/french/main.php XoopsModules/testadsl/releases/1.01/testadsl/language/french/modinfo.php XoopsModules/testadsl/releases/1.01/testadsl/language/index.html XoopsModules/testadsl/releases/1.01/testadsl/language/italian/ XoopsModules/testadsl/releases/1.01/testadsl/language/italian/admin.php XoopsModules/testadsl/releases/1.01/testadsl/language/italian/blocks.php XoopsModules/testadsl/releases/1.01/testadsl/language/italian/index.html XoopsModules/testadsl/releases/1.01/testadsl/language/italian/main.php XoopsModules/testadsl/releases/1.01/testadsl/language/italian/modinfo.php XoopsModules/testadsl/releases/1.01/testadsl/speedtest/ XoopsModules/testadsl/releases/1.01/testadsl/speedtest/index.html XoopsModules/testadsl/releases/1.01/testadsl/speedtest/latency.txt XoopsModules/testadsl/releases/1.01/testadsl/speedtest/upload.asp XoopsModules/testadsl/releases/1.01/testadsl/speedtest/upload.aspx XoopsModules/testadsl/releases/1.01/testadsl/speedtest/upload.jsp XoopsModules/testadsl/releases/1.01/testadsl/speedtest/upload.php XoopsModules/testadsl/releases/1.01/testadsl/sql/ XoopsModules/testadsl/releases/1.01/testadsl/sql/index.html XoopsModules/testadsl/releases/1.01/testadsl/templates/ XoopsModules/testadsl/releases/1.01/testadsl/templates/blocks/ XoopsModules/testadsl/releases/1.01/testadsl/templates/blocks/index.html XoopsModules/testadsl/releases/1.01/testadsl/templates/index.html XoopsModules/testadsl/releases/1.01/testadsl/templates/testadsl_index.html XoopsModules/testadsl/releases/1.01/testadsl/xoops_version.php XoopsModules/testadsl/trunk/ Added: XoopsModules/testadsl/releases/1.00/testadsl/admin/about.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/admin/about.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/admin/about.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,116 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +testadsl_adminmenu(1, _AM_TESTADSL_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_TESTADSL_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_TESTADSL_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_TESTADSL_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_TESTADSL_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_TESTADSL_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_TESTADSL_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_TESTADSL_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_TESTADSL_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_TESTADSL_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_TESTADSL_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_TESTADSL_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_TESTADSL_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_TESTADSL_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +include_once("admin_footer.php"); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_footer.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_footer.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_footer.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,29 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +echo "<br /><br />\n + <div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\">\n + <img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_header.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_header.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/admin/admin_header.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,107 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("testadsl"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function testadsl_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/testadsl/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/testadsl/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/testadsl/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_TESTADSL_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/testadsl/index.php\">_AM_TESTADSL_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/testadsl/admin/upgrade.php\">_AM_TESTADSL_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/testadsl/admin/index.php\"><span>_MI_TESTADSL_MANAGER_INDEX</span></a></li> + + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/testadsl/admin/permissions.php\"><span>_MI_TESTADSL_MANAGER_PERMISSIONS</span></a></li> + <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/testadsl/admin/about.php\"><span>_MI_TESTADSL_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + + +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/admin/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/admin/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/admin/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/admin/index.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/admin/index.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/admin/index.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,64 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +testadsl_adminmenu(0, _AM_TESTADSL_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_TESTADSL_MANAGER_INDEX); +} + +include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/menu.php"; + + $menu = new testadslMenu(); + + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=testadsl", "../images/deco/update.png", _AM_TESTADSL_MANAGER_UPDATE); + $menu->addItem("permissions", "permissions.php", "../images/deco/permissions.png", _AM_TESTADSL_MANAGER_PERMISSIONS); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_TESTADSL_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_TESTADSL_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_TESTADSL_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\">".$menu->render()."</td> + <td valign=\"top\" width=\"60%\">"; + + echo "</td> + </tr> + </table>"; +include_once("admin_footer.php"); +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/admin/menu.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/admin/menu.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/admin/menu.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_TESTADSL_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_TESTADSL_MANAGER_PERMISSIONS; +$adminmenu[1]["link"] = "admin/permissions.php"; + +$adminmenu[2]["title"] = _MI_TESTADSL_MANAGER_ABOUT; +$adminmenu[2]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/blocks/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/blocks/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/blocks/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/class/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/class/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/class/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/class/menu.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/class/menu.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/class/menu.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +class testadslMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/class/object.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/class/object.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/class/object.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criteria($this->keyName, intval($id)); + } + $criteria->setLimit(1); + $obj_array = $this->getObjects($criteria, false, $as_object); + if (count($obj_array) != 1) { + $obj = $this->create(); + return $obj; + } + return $obj_array[0]; + } + + /** + * retrieve objects from the database + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param bool $id_as_key use the ID as key for the array? + * @param bool $as_object return an array of objects? + * + * @return array + */ + function getObjects($criteria=null, $id_as_key=false, $as_object=true){ + $ret = array(); + $limit = $start = 0; + $sql = 'SELECT * FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + return $this->convertResultSet($result, $id_as_key, $as_object); + } + + /** + * Convert a database resultset to a returnable array + * + * @param object $result database resultset + * @param bool $id_as_key - should NOT be used with joint keys + * @param bool $as_object + * + * @return array + */ + function convertResultSet($result, $id_as_key = false, $as_object = true) { + $ret = array(); + while ($myrow = $this->db->fetchArray($result)) { + $obj =& $this->create(false); + $obj->assignVars($myrow); + if (!$id_as_key) { + if ($as_object) { + $ret[] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[] = $row; + } + } else { + if ($as_object) { + $ret[$myrow[$this->keyName]] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[$myrow[$this->keyName]] = $row; + } + } + unset($obj); + } + return $ret; + } + + /** + * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param int $limit Max number of objects to fetch + * @param int $start Which record to start at + * + * @return array + */ + function getList($criteria = null, $limit = 0, $start = 0) { + $ret = array(); + if ($criteria == null) { + $criteria = new CriteriaCompo(); + } + + if ($criteria->getSort() == '') { + $criteria->setSort($this->identifierName); + } + + $sql = 'SELECT '.$this->keyName; + if(!empty($this->identifierName)){ + $sql .= ', '.$this->identifierName; + } + $sql .= ' FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + $myts =& MyTextSanitizer::getInstance(); + while ($myrow = $this->db->fetchArray($result)) { + //identifiers should be textboxes, so sanitize them like that + $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); + } + return $ret; + } + + /** + * count objects matching a condition + * + * @param object $criteria {@link CriteriaElement} to match + * @return int count of objects + */ + function getCount($criteria=null){ + $field = ""; + $groupby = false; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + if ($criteria->groupby != "") { + $groupby = true; + $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used + } + } + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->groupby != "") { + $sql .= $criteria->getGroupby(); + } + } + $result = $this->db->query($sql); + if (!$result) { + return 0; + } + if ($groupby == false) { + list($count) = $this->db->fetchRow($result); + return $count; + } else { + $ret = array(); + while (list($id, $count) = $this->db->fetchRow($result)) { + $ret[$id] = $count; + } + return $ret; + } + } + + /** + * delete an object from the database + * + * @param object $obj reference to the object to delete + * @param bool $force + * @return bool FALSE if failed. + */ + function delete(&$obj, $force = false){ + if (is_array($this->keyName)) { + $clause = array(); + for ($i = 0; $i < count($this->keyName); $i++) { + $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + $whereclause = implode(" AND ", $clause); + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause; + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * insert a new object in the database + * + * @param object $obj reference to the object + * @param bool $force whether to force the query execution despite security settings + * @param bool $checkObject check if the object is dirty and clean the attributes + * @return bool FALSE if failed, TRUE if already present and unchanged or successful + */ + + function insert(&$obj, $force=false, $checkObject=true){ + if ($checkObject != false) { + if (!is_object($obj)) { + var_dump($obj); + return false; + } + /** + * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5 + */ + if (!is_a($obj, $this->className)) { + $obj->setErrors(get_class($obj)." Differs from ".$this->className); + return false; + } + if (!$obj->isDirty()) { + $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith + return true; + } + } + if (!$obj->cleanVars()) { + return false; + } + + foreach ($obj->cleanVars as $k => $v) { + if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { + $cleanvars[$k] = intval($v); + } elseif ( is_array( $v ) ) { + $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) ); + } else { + $cleanvars[$k] = $this->db->quoteString($v); + } + } + if ($obj->isNew()) { + if (!is_array($this->keyName)) { + if ($cleanvars[$this->keyName] < 1) { + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); + } + } + $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")"; + } else { + $sql = "UPDATE ".$this->table." SET"; + foreach ($cleanvars as $key => $value) { + if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) { + continue; + } + if (isset($notfirst) ) { + $sql .= ","; + } + $sql .= " ".$key." = ".$value; + $notfirst = true; + } + if (is_array($this->keyName)) { + $whereclause = ""; + for ($i = 0; $i < count($this->keyName); $i++) { + if ($i > 0) { + $whereclause .= " AND "; + } + $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql .= " WHERE ".$whereclause; + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + if ($obj->isNew() && !is_array($this->keyName)) { + $obj->assignVar($this->keyName, $this->db->getInsertId()); + } + return true; + } + + /** + * Change a value for objects with a certain criteria + * + * @param string $fieldname Name of the field + * @param string $fieldvalue Value to write + * @param object $criteria {@link CriteriaElement} + * @return bool + */ + function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){ + $set_clause = $fieldname . ' = '; + if ( is_numeric( $fieldvalue ) ) { + $set_clause .= $fieldvalue; + } elseif ( is_array( $fieldvalue ) ) { + $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) ); + } else { + $set_clause .= $this->db->quoteString( $fieldvalue ); + } + $sql = 'UPDATE '.$this->table.' SET '.$set_clause; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * delete all objects meeting the conditions + * + * @param object $criteria {@link CriteriaElement} with conditions to meet + * @return bool + */ + function deleteAll($criteria = null){ + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql = 'DELETE FROM '.$this->table; + $sql .= ' '.$criteria->renderWhere(); + if (!$this->db->queryF($sql)) { + return false; + } + $rows = $this->db->getAffectedRows(); + return $rows > 0 ? $rows : true; + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/arrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/delete.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/delete.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/edit.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/edit.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/off.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/off.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/on.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/on.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/pref.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/pref.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/update.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/deco/update.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/images/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/images/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/images/menu/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/images/menu/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/left_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/left_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/right_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/menu/right_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/testadsl_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/testadsl_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/images/txmod_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/releases/1.00/testadsl/images/txmod_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/releases/1.00/testadsl/include/functions.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/include/functions.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/include/functions.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,44 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + + +/***************Blocks***************/ +function block_addCatSelect($cats) { + if(is_array($cats)) + { + $cat_sql = "(".current($cats); + array_shift($cats); + foreach($cats as $cat) + { + $cat_sql .= ",".$cat; + } + $cat_sql .= ")"; + } + return $cat_sql; +} + + + + +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/include/index.html =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/include/index.html (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/include/index.html 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/include/install.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/include/install.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/include/install.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,35 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @license GNU GPL + * @package testadsl + * @author timgno () + * + * Version : 1.00: + * **************************************************************************** + */ + +$indexFile = XOOPS_ROOT_PATH."/modules/TDMCreate/include/index.html"; +$blankFile = XOOPS_ROOT_PATH."/modules/TDMCreate/images/deco/blank.gif"; + +//Creation du dossier "uploads" pour le module \xE0 la racine du site +$module_uploads = XOOPS_ROOT_PATH."/uploads/testadsl"; +if(!is_dir($module_uploads)) + mkdir($module_uploads, 0777); + chmod($module_uploads, 0777); +copy($indexFile, XOOPS_ROOT_PATH."/uploads/testadsl/index.html"); + +?> \ No newline at end of file Added: XoopsModules/testadsl/releases/1.00/testadsl/index.php =================================================================== --- XoopsModules/testadsl/releases/1.00/testadsl/index.php (rev 0) +++ XoopsModules/testadsl/releases/1.00/testadsl/index.php 2012-02-15 13:17:00 UTC (rev 8993) @@ -0,0 +1,57 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * testadsl - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) timgno (http://www.txmod.netsons.org) + * + * 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 timgno (http://www.txmod.netsons.org) + * @l... [truncated message content] |
From: <txm...@us...> - 2012-02-15 13:10:55
|
Revision: 8992 http://xoops.svn.sourceforge.net/xoops/?rev=8992&view=rev Author: txmodxoops Date: 2012-02-15 13:10:42 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module Slidernew v1.01 Added Paths: ----------- XoopsModules/slidernews/ XoopsModules/slidernews/branches/ XoopsModules/slidernews/releases/ XoopsModules/slidernews/releases/1.01/ XoopsModules/slidernews/releases/1.01/slidernews/ XoopsModules/slidernews/releases/1.01/slidernews/blocks/ XoopsModules/slidernews/releases/1.01/slidernews/blocks/slidernews_block.php XoopsModules/slidernews/releases/1.01/slidernews/header.php XoopsModules/slidernews/releases/1.01/slidernews/images/ XoopsModules/slidernews/releases/1.01/slidernews/images/screenshot.gif XoopsModules/slidernews/releases/1.01/slidernews/images/slidernews_slogo.png XoopsModules/slidernews/releases/1.01/slidernews/include/ XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.js XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.pack.js XoopsModules/slidernews/releases/1.01/slidernews/include/images/ XoopsModules/slidernews/releases/1.01/slidernews/include/images/ajax-loader.gif XoopsModules/slidernews/releases/1.01/slidernews/include/images/arrow-left.gif XoopsModules/slidernews/releases/1.01/slidernews/include/images/arrow-right.gif XoopsModules/slidernews/releases/1.01/slidernews/include/images/body-bg.png XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-1.2.1.pack.js XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.js XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.pack.js XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.js XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.pack.js XoopsModules/slidernews/releases/1.01/slidernews/index.php XoopsModules/slidernews/releases/1.01/slidernews/style/ XoopsModules/slidernews/releases/1.01/slidernews/style/slidernews.css XoopsModules/slidernews/releases/1.01/slidernews/templates/ XoopsModules/slidernews/releases/1.01/slidernews/templates/base.html XoopsModules/slidernews/releases/1.01/slidernews/templates/blocks/ XoopsModules/slidernews/releases/1.01/slidernews/templates/blocks/index.html XoopsModules/slidernews/releases/1.01/slidernews/templates/blocks/slidernews_block.html XoopsModules/slidernews/releases/1.01/slidernews/templates/slidernews.html XoopsModules/slidernews/releases/1.01/slidernews/xoops_version.php XoopsModules/slidernews/trunk/ Added: XoopsModules/slidernews/releases/1.01/slidernews/blocks/slidernews_block.php =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/blocks/slidernews_block.php (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/blocks/slidernews_block.php 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,15 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +function b_slidernews_show($options) +{ + $block = array(); + + $block['content'] = "slidernews"; + + return $block; +} + +?> \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/header.php =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/header.php (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/header.php 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,7 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +include '../../mainfile.php'; +?> \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/images/screenshot.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/slidernews/releases/1.01/slidernews/images/screenshot.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/slidernews/releases/1.01/slidernews/images/slidernews_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/slidernews/releases/1.01/slidernews/images/slidernews_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,133 @@ +/* + jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider + + Copyright (c) 2007 Niall Doherty + + Inspired by the clever folks at http://www.panic.com/coda + Many thanks to Gian Carlo Mingati. Coda-Slider is a heavily modified version of his slideViewer, which can be found at http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html + + Requirements: + - jQuery 1.2 ... available via http://www.jquery.com + - jQuery easing plugin (1.2) ... available via http://gsgd.co.uk/sandbox/jquery/easing/ + - jQuery easing compatability plugin ... available via http://gsgd.co.uk/sandbox/jquery/easing/ + - CSS included in index.html +*/ + +jQuery(function(){ + jQuery("div.csw").prepend("<p class='loading'>Loading...<br /><img src='images/ajax-loader.gif' alt='loading...'/ ></p>"); +}); +var j = 0; +jQuery.fn.codaSlider = function(settings) { + settings = jQuery.extend({ + easeFunc: "expoinout", + easeTime: 750, + toolTip: false + }, settings); + return this.each(function(){ + var container = jQuery(this); + // Remove the preloader gif... + container.find("p.loading").remove(); + // Self-explanatory... + container.removeClass("csw").addClass("stripViewer"); + // Get the width of a panel, set from CSS... + var panelWidth = container.find("div.panel").width(); + // panelCount gives us a count of the panels in the container... + var panelCount = container.find("div.panel").size(); + // Calculate the width of all the panels when lined up end-to-end... + var stripViewerWidth = panelWidth*panelCount; + // Use the above width to specify the CSS width for the panelContainer element... + container.find("div.panelContainer").css("width" , stripViewerWidth); + // Set the navWidth as a multiple of panelCount to account for margin-right on each li + var navWidth = panelCount*2; + + // Specify the current panel. + // If the loaded URL has a hash (cross-linking), we're going to use that hash to give the slider a specific starting position... + if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) { + var cPanel = parseInt(location.hash.slice(1)); + var cnt = - (panelWidth*(cPanel - 1)); + jQuery(this).find("div.panelContainer").css({ left: cnt }); + // Otherwise, we'll just set the current panel to 1... + } else { + var cPanel = 1; + }; + + // Create appropriate nav + container.each(function(i) { + + // Create the Left and Right arrows + jQuery(this).before("<div class='stripNavL' id='stripNavL" + j + "'><a href='#'>Left</a><\/div>"); + jQuery(this).after("<div class='stripNavR' id='stripNavR" + j + "'><a href='#'>Right</a><\/div>"); + + // Create the Tabs + jQuery(this).before("<div class='stripNav' id='stripNav" + j + "'><ul><\/ul><\/div>"); + jQuery(this).find("div.panel").each(function(n) { + jQuery("div#stripNav" + j + " ul").append("<li class='tab" + (n+1) + "'><a href='#" + (n+1) + "'>" + jQuery(this).attr("title") + "<\/a><\/li>"); + }); + + // Tab nav + jQuery("div#stripNav" + j + " a").each(function(z) { + // Figure out the navWidth by adding up the width of each li + navWidth += jQuery(this).parent().width(); + // What happens when a nav link is clicked + jQuery(this).bind("click", function() { + jQuery(this).addClass("current").parent().parent().find("a").not(jQuery(this)).removeClass("current"); // wow! + var cnt = - (panelWidth*z); + cPanel = z + 1; + jQuery(this).parent().parent().parent().next().find("div.panelContainer").animate({ left: cnt}, settings.easeTime, settings.easeFunc); + }); + }); + + // Left nav + jQuery("div#stripNavL" + j + " a").click(function(){ + if (cPanel == 1) { + var cnt = - (panelWidth*(panelCount - 1)); + cPanel = panelCount; + jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("li:last a").addClass("current"); + } else { + cPanel -= 1; + var cnt = - (panelWidth*(cPanel - 1)); + jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().prev().find("a").addClass("current"); + }; + jQuery(this).parent().parent().find("div.panelContainer").animate({ left: cnt}, settings.easeTime, settings.easeFunc); + // Change the URL hash (cross-linking)... + location.hash = cPanel; + return false; + }); + + // Right nav + jQuery("div#stripNavR" + j + " a").click(function(){ + if (cPanel == panelCount) { + var cnt = 0; + cPanel = 1; + jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("a:eq(0)").addClass("current"); + } else { + var cnt = - (panelWidth*cPanel); + cPanel += 1; + jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().next().find("a").addClass("current"); + }; + jQuery(this).parent().parent().find("div.panelContainer").animate({ left: cnt}, settings.easeTime, settings.easeFunc); + // Change the URL hash (cross-linking)... + location.hash = cPanel; + return false; + }); + + // Same-page cross-linking + jQuery("a.cross-link").click(function(){ + jQuery(this).parents().find(".stripNav ul li a:eq(" + (parseInt(jQuery(this).attr("href").slice(1)) - 1) + ")").trigger('click'); + }); + + // Set the width of the nav using the navWidth figure we calculated earlier. This is so the nav can be centred above the slider + jQuery("div#stripNav" + j).css("width" , navWidth); + + // Specify which tab is initially set to "current". Depends on if the loaded URL had a hash or not (cross-linking). + if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) { + jQuery("div#stripNav" + j + " a:eq(" + (location.hash.slice(1) - 1) + ")").addClass("current"); + } else { + jQuery("div#stripNav" + j + " a:eq(0)").addClass("current"); + } + + }); + + j++; + }); +}; \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.pack.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.pack.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/coda-slider.1.1.1.pack.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,6 @@ +/* + jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider + + Copyright (c) 2007 Niall Doherty +*/ +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3(d(){3("4.T").1s("<p r=\'O\'>16...<1t /><18 19=\'1a/11-1b.1c\' 1d=\'O...\'/ ></p>")});b j=0;3.1e.1f=d(f){f=3.1g({G:"1h",E:1i,1j:Q},f);P 6.w(d(){b o=3(6);o.7("p.O").1k();o.q("T").l("1l");b m=o.7("4.I").C();b k=o.7("4.I").1m();b U=m*k;o.7("4.t").K("C",U);b N=k*2;F(h.g&&D(h.g.s(1))<=k){b 9=D(h.g.s(1));b e=-(m*(9-1));3(6).7("4.t").K({H:e})}B{b 9=1};o.w(d(i){3(6).W("<4 r=\'J\' M=\'J"+j+"\'><a A=\'#\'>1n</a><\\/4>");3(6).1o("<4 r=\'L\' M=\'L"+j+"\'><a A=\'#\'>1q</a><\\/4>");3(6).W("<4 r=\'c\' M=\'c"+j+"\'><v><\\/v><\\/4>");3(6).7("4.I").w(d(n){3("4#c"+j+" v").X("<x r=\'Z"+(n+1)+"\'><a A=\'#"+(n+1)+"\'>"+3(6).S("10")+"<\\/a><\\/x>")});3("4#c"+j+" a").w(d(z){N+=3(6).5().C();3(6).12("u",d(){3(6).l("8").5().5().7("a").13(3(6)).q("8");b e=-(m*z);9=z+1;3(6).5().5().5().V().7("4.t").R({H:e},f.E,f.G)})});3("4#J"+j+" a").u(d(){F(9==1){b e=-(m*(k-1));9=k;3(6).5().5().7("4.c a.8").q("8").5().5().7("x:14 a").l("8")}B{9-=1;b e=-(m*(9-1));3(6).5().5().7("4.c a.8").q("8").5().15().7("a").l("8")};3(6).5().5().7("4.t").R({H:e},f.E,f.G);h.g=9;P Q});3("4#L"+j+" a").u(d(){F(9==k){b e=0;9=1;3(6).5().5().7("4.c a.8").q("8").5().5().7("a:y(0)").l("8")}B{b e=-(m*9);9+=1;3(6).5().5().7("4.c a.8").q("8").5().V().7("a").l("8")};3(6).5().5().7("4.t").R({H:e},f.E,f.G);h.g=9;P Q});3("a.1p-1r").u(d(){3(6).Y().7(".c v x a:y("+(D(3(6).S("A").s(1))-1)+")").17(\'u\')});3("4#c"+j).K("C",N);F(h.g&&D(h.g.s(1))<=k){3("4#c"+j+" a:y("+(h.g.s(1)-1)+")").l("8")}B{3("4#c"+j+" a:y(0)").l("8")}});j++})};',62,92,'|||jQuery|div|parent|this|find|current|cPanel||var|stripNav|function|cnt|settings|hash|location|||panelCount|addClass|panelWidth||container||removeClass|class|slice|panelContainer|click|ul|each|li|eq||href|else|width|parseInt|easeTime|if|easeFunc|left|panel|stripNavL|css|stripNavR|id|navWidth|loading|return|false|animate|attr|csw|stripViewerWidth|next|before|append|parents|tab|title|ajax|bind|not|last|prev|Loading|trigger|img|src|images|loader|gif|alt|fn|codaSlider|extend|expoinout|750|toolTip|remove|stripViewer|size|Left|after|cross|Right|link|prepend|br'.split('|'),0,{})) \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/include/images/ajax-loader.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/slidernews/releases/1.01/slidernews/include/images/ajax-loader.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/slidernews/releases/1.01/slidernews/include/images/arrow-left.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/slidernews/releases/1.01/slidernews/include/images/arrow-left.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/slidernews/releases/1.01/slidernews/include/images/arrow-right.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/slidernews/releases/1.01/slidernews/include/images/arrow-right.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/slidernews/releases/1.01/slidernews/include/images/body-bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/slidernews/releases/1.01/slidernews/include/images/body-bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-1.2.1.pack.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-1.2.1.pack.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-1.2.1.pack.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,11 @@ +/* + * jQuery 1.2.1 - New Wave Javascript + * + * Copyright (c) 2007 John Resig (jquery.com) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * $Date: 2007-09-16 23:42:06 -0400 (Sun, 16 Sep 2007) $ + * $Rev: 3353 $ + */ +eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(G(){9(1m E!="W")H w=E;H E=18.15=G(a,b){I 6 7u E?6.5N(a,b):1u E(a,b)};9(1m $!="W")H D=$;18.$=E;H u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;E.1b=E.3A={5N:G(c,a){c=c||U;9(1m c=="1M"){H m=u.2S(c);9(m&&(m[1]||!a)){9(m[1])c=E.4D([m[1]],a);J{H b=U.3S(m[3]);9(b)9(b.22!=m[3])I E().1Y(c);J{6[0]=b;6.K=1;I 6}J c=[]}}J I 1u E(a).1Y(c)}J 9(E.1n(c))I 1u E(U)[E.1b.2d?"2d":"39"](c);I 6.6v(c.1c==1B&&c||(c.4c||c.K&&c!=18&&!c.1y&&c[0]!=W&&c[0].1y)&&E.2h(c)||[c])},4c:"1.2.1",7Y:G(){I 6.K},K:0,21:G(a){I a==W?E.2h(6):6[a]},2o:G(a){H b=E(a);b.4Y=6;I b},6v:G(a){6.K=0;1B.3A.1a.16(6,a);I 6},N:G(a,b){I E.N(6,a,b)},4I:G(a){H b=-1;6.N(G(i){9(6==a)b=i});I b},1x:G(f,d,e){H c=f;9(f.1c==3X)9(d==W)I 6.K&&E[e||"1x"](6[0],f)||W;J{c={};c[f]=d}I 6.N(G(a){L(H b 1i c)E.1x(e?6.R:6,b,E.1e(6,c[b],e,a,b))})},17:G(b,a){I 6.1x(b,a,"3C")},2g:G(e){9(1m e!="5i"&&e!=S)I 6.4n().3g(U.6F(e));H t="";E.N(e||6,G(){E.N(6.3j,G(){9(6.1y!=8)t+=6.1y!=1?6.6x:E.1b.2g([6])})});I t},5m:G(b){9(6[0])E(b,6[0].3H).6u().3d(6[0]).1X(G(){H a=6;1W(a.1w)a=a.1w;I a}).3g(6);I 6},8m:G(a){I 6.N(G(){E(6).6q().5m(a)})},8d:G(a){I 6.N(G(){E(6).5m(a)})},3g:G(){I 6.3z(1q,Q,1,G(a){6.58(a)})},6j:G(){I 6.3z(1q,Q,-1,G(a){6.3d(a,6.1w)})},6g:G(){I 6.3z(1q,P,1,G(a){6.12.3d(a,6)})},50:G(){I 6.3z(1q,P,-1,G(a){6.12.3d(a,6.2q)})},2D:G(){I 6.4Y||E([])},1Y:G(t){H b=E.1X(6,G(a){I E.1Y(t,a)});I 6.2o(/[^+>] [^+>]/.14(t)||t.1g("..")>-1?E.4V(b):b)},6u:G(e){H f=6.1X(G(){I 6.67?E(6.67)[0]:6.4R(Q)});H d=f.1Y("*").4O().N(G(){9(6[F]!=W)6[F]=S});9(e===Q)6.1Y("*").4O().N(G(i){H c=E.M(6,"2P");L(H a 1i c)L(H b 1i c[a])E.1j.1f(d[i],a,c[a][b],c[a][b].M)});I f},1E:G(t){I 6.2o(E.1n(t)&&E.2W(6,G(b,a){I t.16(b,[a])})||E.3m(t,6))},5V:G(t){I 6.2o(t.1c==3X&&E.3m(t,6,Q)||E.2W(6,G(a){I(t.1c==1B||t.4c)?E.2A(a,t)<0:a!=t}))},1f:G(t){I 6.2o(E.1R(6.21(),t.1c==3X?E(t).21():t.K!=W&&(!t.11||E.11(t,"2Y"))?t:[t]))},3t:G(a){I a?E.3m(a,6).K>0:P},7c:G(a){I 6.3t("."+a)},3i:G(b){9(b==W){9(6.K){H c=6[0];9(E.11(c,"24")){H e=c.4Z,a=[],Y=c.Y,2G=c.O=="24-2G";9(e<0)I S;L(H i=2G?e:0,33=2G?e+1:Y.K;i<33;i++){H d=Y[i];9(d.26){H b=E.V.1h&&!d.9V["1Q"].9L?d.2g:d.1Q;9(2G)I b;a.1a(b)}}I a}J I 6[0].1Q.1p(/\\r/g,"")}}J I 6.N(G(){9(b.1c==1B&&/4k|5j/.14(6.O))6.2Q=(E.2A(6.1Q,b)>=0||E.2A(6.2H,b)>=0);J 9(E.11(6,"24")){H a=b.1c==1B?b:[b];E("9h",6).N(G(){6.26=(E.2A(6.1Q,a)>=0||E.2A(6.2g,a)>=0)});9(!a.K)6.4Z=-1}J 6.1Q=b})},4o:G(a){I a==W?(6.K?6[0].3O:S):6.4n().3g(a)},6H:G(a){I 6.50(a).28()},6E:G(i){I 6.2J(i,i+1)},2J:G(){I 6.2o(1B.3A.2J.16(6,1q))},1X:G(b){I 6.2o(E.1X(6,G(a,i){I b.2O(a,i,a)}))},4O:G(){I 6.1f(6.4Y)},3z:G(f,d,g,e){H c=6.K>1,a;I 6.N(G(){9(!a){a=E.4D(f,6.3H);9(g<0)a.8U()}H b=6;9(d&&E.11(6,"1I")&&E.11(a[0],"4m"))b=6.4l("1K")[0]||6.58(U.5B("1K"));E.N(a,G(){H a=c?6.4R(Q):6;9(!5A(0,a))e.2O(b,a)})})}};G 5A(i,b){H a=E.11(b,"1J");9(a){9(b.3k)E.3G({1d:b.3k,3e:P,1V:"1J"});J E.5f(b.2g||b.6s||b.3O||"");9(b.12)b.12.3b(b)}J 9(b.1y==1)E("1J",b).N(5A);I a}E.1k=E.1b.1k=G(){H c=1q[0]||{},a=1,2c=1q.K,5e=P;9(c.1c==8o){5e=c;c=1q[1]||{}}9(2c==1){c=6;a=0}H b;L(;a<2c;a++)9((b=1q[a])!=S)L(H i 1i b){9(c==b[i])6r;9(5e&&1m b[i]==\'5i\'&&c[i])E.1k(c[i],b[i]);J 9(b[i]!=W)c[i]=b[i]}I c};H F="15"+(1u 3D()).3B(),6p=0,5c={};E.1k({8a:G(a){18.$=D;9(a)18.15=w;I E},1n:G(a){I!!a&&1m a!="1M"&&!a.11&&a.1c!=1B&&/G/i.14(a+"")},4a:G(a){I a.2V&&!a.1G||a.37&&a.3H&&!a.3H.1G},5f:G(a){a=E.36(a);9(a){9(18.6l)18.6l(a);J 9(E.V.1N)18.56(a,0);J 3w.2O(18,a)}},11:G(b,a){I b.11&&b.11.27()==a.27()},1L:{},M:G(c,d,b){c=c==18?5c:c;H a=c[F];9(!a)a=c[F]=++6p;9(d&&!E.1L[a])E.1L[a]={};9(b!=W)E.1L[a][d]=b;I d?E.1L[a][d]:a},30:G(c,b){c=c==18?5c:c;H a=c[F];9(b){9(E.1L[a]){2E E.1L[a][b];b="";L(b 1i E.1L[a])1T;9(!b)E.30(c)}}J{2a{2E c[F]}29(e){9(c.53)c.53(F)}2E E.1L[a]}},N:G(a,b,c){9(c){9(a.K==W)L(H i 1i a)b.16(a[i],c);J L(H i=0,48=a.K;i<48;i++)9(b.16(a[i],c)===P)1T}J{9(a.K==W)L(H i 1i a)b.2O(a[i],i,a[i]);J L(H i=0,48=a.K,3i=a[0];i<48&&b.2O(3i,i,3i)!==P;3i=a[++i]){}}I a},1e:G(c,b,d,e,a){9(E.1n(b))b=b.2O(c,[e]);H f=/z-?4I|7T-?7Q|1r|69|7P-?1H/i;I b&&b.1c==4W&&d=="3C"&&!f.14(a)?b+"2T":b},1o:{1f:G(b,c){E.N((c||"").2l(/\\s+/),G(i,a){9(!E.1o.3K(b.1o,a))b.1o+=(b.1o?" ":"")+a})},28:G(b,c){b.1o=c!=W?E.2W(b.1o.2l(/\\s+/),G(a){I!E.1o.3K(c,a)}).66(" "):""},3K:G(t,c){I E.2A(c,(t.1o||t).3s().2l(/\\s+/))>-1}},2k:G(e,o,f){L(H i 1i o){e.R["3r"+i]=e.R[i];e.R[i]=o[i]}f.16(e,[]);L(H i 1i o)e.R[i]=e.R["3r"+i]},17:G(e,p){9(p=="1H"||p=="2N"){H b={},42,41,d=["7J","7I","7G","7F"];E.N(d,G(){b["7C"+6]=0;b["7B"+6+"5Z"]=0});E.2k(e,b,G(){9(E(e).3t(\':3R\')){42=e.7A;41=e.7w}J{e=E(e.4R(Q)).1Y(":4k").5W("2Q").2D().17({4C:"1P",2X:"4F",19:"2Z",7o:"0",1S:"0"}).5R(e.12)[0];H a=E.17(e.12,"2X")||"3V";9(a=="3V")e.12.R.2X="7g";42=e.7e;41=e.7b;9(a=="3V")e.12.R.2X="3V";e.12.3b(e)}});I p=="1H"?42:41}I E.3C(e,p)},3C:G(h,j,i){H g,2w=[],2k=[];G 3n(a){9(!E.V.1N)I P;H b=U.3o.3Z(a,S);I!b||b.4y("3n")==""}9(j=="1r"&&E.V.1h){g=E.1x(h.R,"1r");I g==""?"1":g}9(j.1t(/4u/i))j=y;9(!i&&h.R[j])g=h.R[j];J 9(U.3o&&U.3o.3Z){9(j.1t(/4u/i))j="4u";j=j.1p(/([A-Z])/g,"-$1").2p();H d=U.3o.3Z(h,S);9(d&&!3n(h))g=d.4y(j);J{L(H a=h;a&&3n(a);a=a.12)2w.4w(a);L(a=0;a<2w.K;a++)9(3n(2w[a])){2k[a]=2w[a].R.19;2w[a].R.19="2Z"}g=j=="19"&&2k[2w.K-1]!=S?"2s":U.3o.3Z(h,S).4y(j)||"";L(a=0;a<2k.K;a++)9(2k[a]!=S)2w[a].R.19=2k[a]}9(j=="1r"&&g=="")g="1"}J 9(h.3Q){H f=j.1p(/\\-(\\w)/g,G(m,c){I c.27()});g=h.3Q[j]||h.3Q[f];9(!/^\\d+(2T)?$/i.14(g)&&/^\\d/.14(g)){H k=h.R.1S;H e=h.4v.1S;h.4v.1S=h.3Q.1S;h.R.1S=g||0;g=h.R.71+"2T";h.R.1S=k;h.4v.1S=e}}I g},4D:G(a,e){H r=[];e=e||U;E.N(a,G(i,d){9(!d)I;9(d.1c==4W)d=d.3s();9(1m d=="1M"){d=d.1p(/(<(\\w+)[^>]*?)\\/>/g,G(m,a,b){I b.1t(/^(70|6Z|6Y|9Q|4t|9N|9K|3a|9G|9E)$/i)?m:a+"></"+b+">"});H s=E.36(d).2p(),1s=e.5B("1s"),2x=[];H c=!s.1g("<9y")&&[1,"<24>","</24>"]||!s.1g("<9w")&&[1,"<6T>","</6T>"]||s.1t(/^<(9u|1K|9t|9r|9p)/)&&[1,"<1I>","</1I>"]||!s.1g("<4m")&&[2,"<1I><1K>","</1K></1I>"]||(!s.1g("<9m")||!s.1g("<9k"))&&[3,"<1I><1K><4m>","</4m></1K></1I>"]||!s.1g("<6Y")&&[2,"<1I><1K></1K><6L>","</6L></1I>"]||E.V.1h&&[1,"1s<1s>","</1s>"]||[0,"",""];1s.3O=c[1]+d+c[2];1W(c[0]--)1s=1s.5p;9(E.V.1h){9(!s.1g("<1I")&&s.1g("<1K")<0)2x=1s.1w&&1s.1w.3j;J 9(c[1]=="<1I>"&&s.1g("<1K")<0)2x=1s.3j;L(H n=2x.K-1;n>=0;--n)9(E.11(2x[n],"1K")&&!2x[n].3j.K)2x[n].12.3b(2x[n]);9(/^\\s/.14(d))1s.3d(e.6F(d.1t(/^\\s*/)[0]),1s.1w)}d=E.2h(1s.3j)}9(0===d.K&&(!E.11(d,"2Y")&&!E.11(d,"24")))I;9(d[0]==W||E.11(d,"2Y")||d.Y)r.1a(d);J r=E.1R(r,d)});I r},1x:G(c,d,a){H e=E.4a(c)?{}:E.5o;9(d=="26"&&E.V.1N)c.12.4Z;9(e[d]){9(a!=W)c[e[d]]=a;I c[e[d]]}J 9(E.V.1h&&d=="R")I E.1x(c.R,"9e",a);J 9(a==W&&E.V.1h&&E.11(c,"2Y")&&(d=="9d"||d=="9a"))I c.97(d).6x;J 9(c.37){9(a!=W){9(d=="O"&&E.11(c,"4t")&&c.12)6G"O 94 93\'t 92 91";c.90(d,a)}9(E.V.1h&&/6C|3k/.14(d)&&!E.4a(c))I c.4p(d,2);I c.4p(d)}J{9(d=="1r"&&E.V.1h){9(a!=W){c.69=1;c.1E=(c.1E||"").1p(/6O\\([^)]*\\)/,"")+(3I(a).3s()=="8S"?"":"6O(1r="+a*6A+")")}I c.1E?(3I(c.1E.1t(/1r=([^)]*)/)[1])/6A).3s():""}d=d.1p(/-([a-z])/8Q,G(z,b){I b.27()});9(a!=W)c[d]=a;I c[d]}},36:G(t){I(t||"").1p(/^\\s+|\\s+$/g,"")},2h:G(a){H r=[];9(1m a!="8P")L(H i=0,2c=a.K;i<2c;i++)r.1a(a[i]);J r=a.2J(0);I r},2A:G(b,a){L(H i=0,2c=a.K;i<2c;i++)9(a[i]==b)I i;I-1},1R:G(a,b){9(E.V.1h){L(H i=0;b[i];i++)9(b[i].1y!=8)a.1a(b[i])}J L(H i=0;b[i];i++)a.1a(b[i]);I a},4V:G(b){H r=[],2f={};2a{L(H i=0,6y=b.K;i<6y;i++){H a=E.M(b[i]);9(!2f[a]){2f[a]=Q;r.1a(b[i])}}}29(e){r=b}I r},2W:G(b,a,c){9(1m a=="1M")a=3w("P||G(a,i){I "+a+"}");H d=[];L(H i=0,4g=b.K;i<4g;i++)9(!c&&a(b[i],i)||c&&!a(b[i],i))d.1a(b[i]);I d},1X:G(c,b){9(1m b=="1M")b=3w("P||G(a){I "+b+"}");H d=[];L(H i=0,4g=c.K;i<4g;i++){H a=b(c[i],i);9(a!==S&&a!=W){9(a.1c!=1B)a=[a];d=d.8M(a)}}I d}});H v=8K.8I.2p();E.V={4s:(v.1t(/.+(?:8F|8E|8C|8B)[\\/: ]([\\d.]+)/)||[])[1],1N:/6w/.14(v),34:/34/.14(v),1h:/1h/.14(v)&&!/34/.14(v),35:/35/.14(v)&&!/(8z|6w)/.14(v)};H y=E.V.1h?"4h":"5h";E.1k({5g:!E.V.1h||U.8y=="8x",4h:E.V.1h?"4h":"5h",5o:{"L":"8w","8v":"1o","4u":y,5h:y,4h:y,3O:"3O",1o:"1o",1Q:"1Q",3c:"3c",2Q:"2Q",8u:"8t",26:"26",8s:"8r"}});E.N({1D:"a.12",8q:"15.4e(a,\'12\')",8p:"15.2I(a,2,\'2q\')",8n:"15.2I(a,2,\'4d\')",8l:"15.4e(a,\'2q\')",8k:"15.4e(a,\'4d\')",8j:"15.5d(a.12.1w,a)",8i:"15.5d(a.1w)",6q:"15.11(a,\'8h\')?a.8f||a.8e.U:15.2h(a.3j)"},G(i,n){E.1b[i]=G(a){H b=E.1X(6,n);9(a&&1m a=="1M")b=E.3m(a,b);I 6.2o(E.4V(b))}});E.N({5R:"3g",8c:"6j",3d:"6g",8b:"50",89:"6H"},G(i,n){E.1b[i]=G(){H a=1q;I 6.N(G(){L(H j=0,2c=a.K;j<2c;j++)E(a[j])[n](6)})}});E.N({5W:G(a){E.1x(6,a,"");6.53(a)},88:G(c){E.1o.1f(6,c)},87:G(c){E.1o.28(6,c)},86:G(c){E.1o[E.1o.3K(6,c)?"28":"1f"](6,c)},28:G(a){9(!a||E.1E(a,[6]).r.K){E.30(6);6.12.3b(6)}},4n:G(){E("*",6).N(G(){E.30(6)});1W(6.1w)6.3b(6.1w)}},G(i,n){E.1b[i]=G(){I 6.N(n,1q)}});E.N(["85","5Z"],G(i,a){H n=a.2p();E.1b[n]=G(h){I 6[0]==18?E.V.1N&&3y["84"+a]||E.5g&&38.33(U.2V["5a"+a],U.1G["5a"+a])||U.1G["5a"+a]:6[0]==U?38.33(U.1G["6n"+a],U.1G["6m"+a]):h==W?(6.K?E.17(6[0],n):S):6.17(n,h.1c==3X?h:h+"2T")}});H C=E.V.1N&&3x(E.V.4s)<83?"(?:[\\\\w*57-]|\\\\\\\\.)":"(?:[\\\\w\\82-\\81*57-]|\\\\\\\\.)",6k=1u 47("^>\\\\s*("+C+"+)"),6i=1u 47("^("+C+"+)(#)("+C+"+)"),6h=1u 47("^([#.]?)("+C+"*)");E.1k({55:{"":"m[2]==\'*\'||15.11(a,m[2])","#":"a.4p(\'22\')==m[2]",":":{80:"i<m[3]-0",7Z:"i>m[3]-0",2I:"m[3]-0==i",6E:"m[3]-0==i",3v:"i==0",3u:"i==r.K-1",6f:"i%2==0",6e:"i%2","3v-46":"a.12.4l(\'*\')[0]==a","3u-46":"15.2I(a.12.5p,1,\'4d\')==a","7X-46":"!15.2I(a.12.5p,2,\'4d\')",1D:"a.1w",4n:"!a.1w",7W:"(a.6s||a.7V||15(a).2g()||\'\').1g(m[3])>=0",3R:\'"1P"!=a.O&&15.17(a,"19")!="2s"&&15.17(a,"4C")!="1P"\',1P:\'"1P"==a.O||15.17(a,"19")=="2s"||15.17(a,"4C")=="1P"\',7U:"!a.3c",3c:"a.3c",2Q:"a.2Q",26:"a.26||15.1x(a,\'26\')",2g:"\'2g\'==a.O",4k:"\'4k\'==a.O",5j:"\'5j\'==a.O",54:"\'54\'==a.O",52:"\'52\'==a.O",51:"\'51\'==a.O",6d:"\'6d\'==a.O",6c:"\'6c\'==a.O",2r:\'"2r"==a.O||15.11(a,"2r")\',4t:"/4t|24|6b|2r/i.14(a.11)",3K:"15.1Y(m[3],a).K",7S:"/h\\\\d/i.14(a.11)",7R:"15.2W(15.32,G(1b){I a==1b.T;}).K"}},6a:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1u 47("^([:.#]*)("+C+"+)")],3m:G(a,c,b){H d,2b=[];1W(a&&a!=d){d=a;H f=E.1E(a,c,b);a=f.t.1p(/^\\s*,\\s*/,"");2b=b?c=f.r:E.1R(2b,f.r)}I 2b},1Y:G(t,o){9(1m t!="1M")I[t];9(o&&!o.1y)o=S;o=o||U;H d=[o],2f=[],3u;1W(t&&3u!=t){H r=[];3u=t;t=E.36(t);H l=P;H g=6k;H m=g.2S(t);9(m){H p=m[1].27();L(H i=0;d[i];i++)L(H c=d[i].1w;c;c=c.2q)9(c.1y==1&&(p=="*"||c.11.27()==p.27()))r.1a(c);d=r;t=t.1p(g,"");9(t.1g(" ")==0)6r;l=Q}J{g=/^([>+~])\\s*(\\w*)/i;9((m=g.2S(t))!=S){r=[];H p=m[2],1R={};m=m[1];L(H j=0,31=d.K;j<31;j++){H n=m=="~"||m=="+"?d[j].2q:d[j].1w;L(;n;n=n.2q)9(n.1y==1){H h=E.M(n);9(m=="~"&&1R[h])1T;9(!p||n.11.27()==p.27()){9(m=="~")1R[h]=Q;r.1a(n)}9(m=="+")1T}}d=r;t=E.36(t.1p(g,""));l=Q}}9(t&&!l){9(!t.1g(",")){9(o==d[0])d.44();2f=E.1R(2f,d);r=d=[o];t=" "+t.68(1,t.K)}J{H k=6i;H m=k.2S(t);9(m){m=[0,m[2],m[3],m[1]]}J{k=6h;m=k.2S(t)}m[2]=m[2].1p(/\\\\/g,"");H f=d[d.K-1];9(m[1]=="#"&&f&&f.3S&&!E.4a(f)){H q=f.3S(m[2]);9((E.V.1h||E.V.34)&&q&&1m q.22=="1M"&&q.22!=m[2])q=E(\'[@22="\'+m[2]+\'"]\',f)[0];d=r=q&&(!m[3]||E.11(q,m[3]))?[q]:[]}J{L(H i=0;d[i];i++){H a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];9(a=="*"&&d[i].11.2p()=="5i")a="3a";r=E.1R(r,d[i].4l(a))}9(m[1]==".")r=E.4X(r,m[2]);9(m[1]=="#"){H e=[];L(H i=0;r[i];i++)9(r[i].4p("22")==m[2]){e=[r[i]];1T}r=e}d=r}t=t.1p(k,"")}}9(t){H b=E.1E(t,r);d=r=b.r;t=E.36(b.t)}}9(t)d=[];9(d&&o==d[0])d.44();2f=E.1R(2f,d);I 2f},4X:G(r,m,a){m=" "+m+" ";H c=[];L(H i=0;r[i];i++){H b=(" "+r[i].1o+" ").1g(m)>=0;9(!a&&b||a&&!b)c.1a(r[i])}I c},1E:G(t,r,h){H d;1W(t&&t!=d){d=t;H p=E.6a,m;L(H i=0;p[i];i++){m=p[i].2S(t);9(m){t=t.7O(m[0].K);m[2]=m[2].1p(/\\\\/g,"");1T}}9(!m)1T;9(m[1]==":"&&m[2]=="5V")r=E.1E(m[3],r,Q).r;J 9(m[1]==".")r=E.4X(r,m[2],h);J 9(m[1]=="["){H g=[],O=m[3];L(H i=0,31=r.K;i<31;i++){H a=r[i],z=a[E.5o[m[2]]||m[2]];9(z==S||/6C|3k|26/.14(m[2]))z=E.1x(a,m[2])||\'\';9((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1g(m[5])||O=="$="&&z.68(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1g(m[5])>=0)^h)g.1a(a)}r=g}J 9(m[1]==":"&&m[2]=="2I-46"){H e={},g=[],14=/(\\d*)n\\+?(\\d*)/.2S(m[3]=="6f"&&"2n"||m[3]=="6e"&&"2n+1"||!/\\D/.14(m[3])&&"n+"+m[3]||m[3]),3v=(14[1]||1)-0,d=14[2]-0;L(H i=0,31=r.K;i<31;i++){H j=r[i],12=j.12,22=E.M(12);9(!e[22]){H c=1;L(H n=12.1w;n;n=n.2q)9(n.1y==1)n.4U=c++;e[22]=Q}H b=P;9(3v==1){9(d==0||j.4U==d)b=Q}J 9((j.4U+d)%3v==0)b=Q;9(b^h)g.1a(j)}r=g}J{H f=E.55[m[1]];9(1m f!="1M")f=E.55[m[1]][m[2]];f=3w("P||G(a,i){I "+f+"}");r=E.2W(r,f,h)}}I{r:r,t:t}},4e:G(b,c){H d=[];H a=b[c];1W(a&&a!=U){9(a.1y==1)d.1a(a);a=a[c]}I d},2I:G(a,e,c,b){e=e||1;H d=0;L(;a;a=a[c])9(a.1y==1&&++d==e)1T;I a},5d:G(n,a){H r=[];L(;n;n=n.2q){9(n.1y==1&&(!a||n!=a))r.1a(n)}I r}});E.1j={1f:G(g,e,c,h){9(E.V.1h&&g.4j!=W)g=18;9(!c.2u)c.2u=6.2u++;9(h!=W){H d=c;c=G(){I d.16(6,1q)};c.M=h;c.2u=d.2u}H i=e.2l(".");e=i[0];c.O=i[1];H b=E.M(g,"2P")||E.M(g,"2P",{});H f=E.M(g,"2t",G(){H a;9(1m E=="W"||E.1j.4T)I a;a=E.1j.2t.16(g,1q);I a});H j=b[e];9(!j){j=b[e]={};9(g.4S)g.4S(e,f,P);J g.7N("43"+e,f)}j[c.2u]=c;6.1Z[e]=Q},2u:1,1Z:{},28:G(d,c,b){H e=E.M(d,"2P"),2L,4I;9(1m c=="1M"){H a=c.2l(".");c=a[0]}9(e){9(c&&c.O){b=c.4Q;c=c.O}9(!c){L(c 1i e)6.28(d,c)}J 9(e[c]){9(b)2E e[c][b.2u];J L(b 1i e[c])9(!a[1]||e[c][b].O==a[1])2E e[c][b];L(2L 1i e[c])1T;9(!2L){9(d.4P)d.4P(c,E.M(d,"2t"),P);J d.7M("43"+c,E.M(d,"2t"));2L=S;2E e[c]}}L(2L 1i e)1T;9(!2L){E.30(d,"2P");E.30(d,"2t")}}},1F:G(d,b,e,c,f){b=E.2h(b||[]);9(!e){9(6.1Z[d])E("*").1f([18,U]).1F(d,b)}J{H a,2L,1b=E.1n(e[d]||S),4N=!b[0]||!b[0].2M;9(4N)b.4w(6.4M({O:d,2m:e}));b[0].O=d;9(E.1n(E.M(e,"2t")))a=E.M(e,"2t").16(e,b);9(!1b&&e["43"+d]&&e["43"+d].16(e,b)===P)a=P;9(4N)b.44();9(f&&f.16(e,b)===P)a=P;9(1b&&c!==P&&a!==P&&!(E.11(e,\'a\')&&d=="4L")){6.4T=Q;e[d]()}6.4T=P}I a},2t:G(d){H a;d=E.1j.4M(d||18.1j||{});H b=d.O.2l(".");d.O=b[0];H c=E.M(6,"2P")&&E.M(6,"2P")[d.O],3q=1B.3A.2J.2O(1q,1);3q.4w(d);L(H j 1i c){3q[0].4Q=c[j];3q[0].M=c[j].M;9(!b[1]||c[j].O==b[1]){H e=c[j].16(6,3q);9(a!==P)a=e;9(e===P){d.2M();d.3p()}}}9(E.V.1h)d.2m=d.2M=d.3p=d.4Q=d.M=S;I a},4M:G(c){H a=c;c=E.1k({},a);c.2M=G(){9(a.2M)a.2M();a.7L=P};c.3p=G(){9(a.3p)a.3p();a.7K=Q};9(!c.2m&&c.65)c.2m=c.65;9(E.V.1N&&c.2m.1y==3)c.2m=a.2m.12;9(!c.4K&&c.4J)c.4K=c.4J==c.2m?c.7H:c.4J;9(c.64==S&&c.63!=S){H e=U.2V,b=U.1G;c.64=c.63+(e&&e.2R||b.2R||0);c.7E=c.7D+(e&&e.2B||b.2B||0)}9(!c.3Y&&(c.61||c.60))c.3Y=c.61||c.60;9(!c.5F&&c.5D)c.5F=c.5D;9(!c.3Y&&c.2r)c.3Y=(c.2r&1?1:(c.2r&2?3:(c.2r&4?2:0)));I c}};E.1b.1k({3W:G(c,a,b){I c=="5Y"?6.2G(c,a,b):6.N(G(){E.1j.1f(6,c,b||a,b&&a)})},2G:G(d,b,c){I 6.N(G(){E.1j.1f(6,d,G(a){E(6).5X(a);I(c||b).16(6,1q)},c&&b)})},5X:G(a,b){I 6.N(G(){E.1j.28(6,a,b)})},1F:G(c,a,b){I 6.N(G(){E.1j.1F(c,a,6,Q,b)})},7x:G(c,a,b){9(6[0])I E.1j.1F(c,a,6[0],P,b)},25:G(){H a=1q;I 6.4L(G(e){6.4H=0==6.4H?1:0;e.2M();I a[6.4H].16(6,[e])||P})},7v:G(f,g){G 4G(e){H p=e.4K;1W(p&&p!=6)2a{p=p.12}29(e){p=6};9(p==6)I P;I(e.O=="4x"?f:g).16(6,[e])}I 6.4x(4G).5U(4G)},2d:G(f){5T();9(E.3T)f.16(U,[E]);J E.3l.1a(G(){I f.16(6,[E])});I 6}});E.1k({3T:P,3l:[],2d:G(){9(!E.3T){E.3T=Q;9(E.3l){E.N(E.3l,G(){6.16(U)});E.3l=S}9(E.V.35||E.V.34)U.4P("5S",E.2d,P);9(!18.7t.K)E(18).39(G(){E("#4E").28()})}}});E.N(("7s,7r,39,7q,6n,5Y,4L,7p,"+"7n,7m,7l,4x,5U,7k,24,"+"51,7j,7i,7h,3U").2l(","),G(i,o){E.1b[o]=G(f){I f?6.3W(o,f):6.1F(o)}});H x=P;G 5T(){9(x)I;x=Q;9(E.V.35||E.V.34)U.4S("5S",E.2d,P);J 9(E.V.1h){U.7f("<7d"+"7y 22=4E 7z=Q "+"3k=//:><\\/1J>");H a=U.3S("4E");9(a)a.62=G(){9(6.2C!="1l")I;E.2d()};a=S}J 9(E.V.1N)E.4B=4j(G(){9(U.2C=="5Q"||U.2C=="1l"){4A(E.4B);E.4B=S;E.2d()}},10);E.1j.1f(18,"39",E.2d)}E.1b.1k({39:G(g,d,c){9(E.1n(g))I 6.3W("39",g);H e=g.1g(" ");9(e>=0){H i=g.2J(e,g.K);g=g.2J(0,e)}c=c||G(){};H f="4z";9(d)9(E.1n(d)){c=d;d=S}J{d=E.3a(d);f="5P"}H h=6;E.3G({1d:g,O:f,M:d,1l:G(a,b){9(b=="1C"||b=="5O")h.4o(i?E("<1s/>").3g(a.40.1p(/<1J(.|\\s)*?\\/1J>/g,"")).1Y(i):a.40);56(G(){h.N(c,[a.40,b,a])},13)}});I 6},7a:G(){I E.3a(6.5M())},5M:G(){I 6.1X(G(){I E.11(6,"2Y")?E.2h(6.79):6}).1E(G(){I 6.2H&&!6.3c&&(6.2Q||/24|6b/i.14(6.11)||/2g|1P|52/i.14(6.O))}).1X(G(i,c){H b=E(6).3i();I b==S?S:b.1c==1B?E.1X(b,G(a,i){I{2H:c.2H,1Q:a}}):{2H:c.2H,1Q:b}}).21()}});E.N("5L,5K,6t,5J,5I,5H".2l(","),G(i,o){E.1b[o]=G(f){I 6.3W(o,f)}});H B=(1u 3D).3B();E.1k({21:G(d,b,a,c){9(E.1n(b)){a=b;b=S}I E.3G({O:"4z",1d:d,M:b,1C:a,1V:c})},78:G(b,a){I E.21(b,S,a,"1J")},77:G(c,b,a){I E.21(c,b,a,"45")},76:G(d,b,a,c){9(E.1n(b)){a=b;b={}}I E.3G({O:"5P",1d:d,M:b,1C:a,1V:c})},75:G(a){E.1k(E.59,a)},59:{1Z:Q,O:"4z",2z:0,5G:"74/x-73-2Y-72",6o:Q,3e:Q,M:S},49:{},3G:G(s){H f,2y=/=(\\?|%3F)/g,1v,M;s=E.1k(Q,s,E.1k(Q,{},E.59,s));9(s.M&&s.6o&&1m s.M!="1M")s.M=E.3a(s.M);9(s.1V=="4b"){9(s.O.2p()=="21"){9(!s.1d.1t(2y))s.1d+=(s.1d.1t(/\\?/)?"&":"?")+(s.4b||"5E")+"=?"}J 9(!s.M||!s.M.1t(2y))s.M=(s.M?s.M+"&":"")+(s.4b||"5E")+"=?";s.1V="45"}9(s.1V=="45"&&(s.M&&s.M.1t(2y)||s.1d.1t(2y))){f="4b"+B++;9(s.M)s.M=s.M.1p(2y,"="+f);s.1d=s.1d.1p(2y,"="+f);s.1V="1J";18[f]=G(a){M=a;1C();1l();18[f]=W;2a{2E 18[f]}29(e){}}}9(s.1V=="1J"&&s.1L==S)s.1L=P;9(s.1L===P&&s.O.2p()=="21")s.1d+=(s.1d.1t(/\\?/)?"&":"?")+"57="+(1u 3D()).3B();9(s.M&&s.O.2p()=="21"){s.1d+=(s.1d.1t(/\\?/)?"&":"?")+s.M;s.M=S}9(s.1Z&&!E.5b++)E.1j.1F("5L");9(!s.1d.1g("8g")&&s.1V=="1J"){H h=U.4l("9U")[0];H g=U.5B("1J");g.3k=s.1d;9(!f&&(s.1C||s.1l)){H j=P;g.9R=g.62=G(){9(!j&&(!6.2C||6.2C=="5Q"||6.2C=="1l")){j=Q;1C();1l();h.3b(g)}}}h.58(g);I}H k=P;H i=18.6X?1u 6X("9P.9O"):1u 6W();i.9M(s.O,s.1d,s.3e);9(s.M)i.5C("9J-9I",s.5G);9(s.5y)i.5C("9H-5x-9F",E.49[s.1d]||"9D, 9C 9B 9A 5v:5v:5v 9z");i.5C("X-9x-9v","6W");9(s.6U)s.6U(i);9(s.1Z)E.1j.1F("5H",[i,s]);H c=G(a){9(!k&&i&&(i.2C==4||a=="2z")){k=Q;9(d){4A(d);d=S}1v=a=="2z"&&"2z"||!E.6S(i)&&"3U"||s.5y&&E.6R(i,s.1d)&&"5O"||"1C";9(1v=="1C"){2a{M=E.6Q(i,s.1V)}29(e){1v="5k"}}9(1v=="1C"){H b;2a{b=i.5s("6P-5x")}29(e){}9(s.5y&&b)E.49[s.1d]=b;9(!f)1C()}J E.5r(s,i,1v);1l();9(s.3e)i=S}};9(s.3e){H d=4j(c,13);9(s.2z>0)56(G(){9(i){i.9q();9(!k)c("2z")}},s.2z)}2a{i.9o(s.M)}29(e){E.5r(s,i,S,e)}9(!s.3e)c();I i;G 1C(){9(s.1C)s.1C(M,1v);9(s.1Z)E.1j.1F("5I",[i,s])}G 1l(){9(s.1l)s.1l(i,1v);9(s.1Z)E.1j.1F("6t",[i,s]);9(s.1Z&&!--E.5b)E.1j.1F("5K")}},5r:G(s,a,b,e){9(s.3U)s.3U(a,b,e);9(s.1Z)E.1j.1F("5J",[a,s,e])},5b:0,6S:G(r){2a{I!r.1v&&9n.9l=="54:"||(r.1v>=6N&&r.1v<9j)||r.1v==6M||E.V.1N&&r.1v==W}29(e){}I P},6R:G(a,c){2a{H b=a.5s("6P-5x");I a.1v==6M||b==E.49[c]||E.V.1N&&a.1v==W}29(e){}I P},6Q:G(r,b){H c=r.5s("9i-O");H d=b=="6K"||!b&&c&&c.1g("6K")>=0;H a=d?r.9g:r.40;9(d&&a.2V.37=="5k")6G"5k";9(b=="1J")E.5f(a);9(b=="45")a=3w("("+a+")");I a},3a:G(a){H s=[];9(a.1c==1B||a.4c)E.N(a,G(){s.1a(3f(6.2H)+"="+3f(6.1Q))});J L(H j 1i a)9(a[j]&&a[j].1c==1B)E.N(a[j],G(){s.1a(3f(j)+"="+3f(6))});J s.1a(3f(j)+"="+3f(a[j]));I s.66("&").1p(/%20/g,"+")}});E.1b.1k({1A:G(b,a){I b?6.1U({1H:"1A",2N:"1A",1r:"1A"},b,a):6.1E(":1P").N(G(){6.R.19=6.3h?6.3h:"";9(E.17(6,"19")=="2s")6.R.19="2Z"}).2D()},1z:G(b,a){I b?6.1U({1H:"1z",2N:"1z",1r:"1z"},b,a):6.1E(":3R").N(G(){6.3h=6.3h||E.17(6,"19");9(6.3h=="2s")6.3h="2Z";6.R.19="2s"}).2D()},6J:E.1b.25,25:G(a,b){I E.1n(a)&&E.1n(b)?6.6J(a,b):a?6.1U({1H:"25",2N:"25",1r:"25"},a,b):6.N(G(){E(6)[E(6).3t(":1P")?"1A":"1z"]()})},9c:G(b,a){I 6.1U({1H:"1A"},b,a)},9b:G(b,a){I 6.1U({1H:"1z"},b,a)},99:G(b,a){I 6.1U({1H:"25"},b,a)},98:G(b,a){I 6.1U({1r:"1A"},b,a)},96:G(b,a){I 6.1U({1r:"1z"},b,a)},95:G(c,a,b){I 6.1U({1r:a},c,b)},1U:G(k,i,h,g){H j=E.6D(i,h,g);I 6[j.3L===P?"N":"3L"](G(){j=E.1k({},j);H f=E(6).3t(":1P"),3y=6;L(H p 1i k){9(k[p]=="1z"&&f||k[p]=="1A"&&!f)I E.1n(j.1l)&&j.1l.16(6);9(p=="1H"||p=="2N"){j.19=E.17(6,"19");j.2U=6.R.2U}}9(j.2U!=S)6.R.2U="1P";j.3M=E.1k({},k);E.N(k,G(c,a){H e=1u E.2j(3y,j,c);9(/25|1A|1z/.14(a))e[a=="25"?f?"1A":"1z":a](k);J{H b=a.3s().1t(/^([+-]=)?([\\d+-.]+)(.*)$/),1O=e.2b(Q)||0;9(b){H d=3I(b[2]),2i=b[3]||"2T";9(2i!="2T"){3y.R[c]=(d||1)+2i;1O=((d||1)/e.2b(Q))*1O;3y.R[c]=1O+2i}9(b[1])d=((b[1]=="-="?-1:1)*d)+1O;e.3N(1O,d,2i)}J e.3N(1O,a,"")}});I Q})},3L:G(a,b){9(E.1n(a)){b=a;a="2j"}9(!a||(1m a=="1M"&&!b))I A(6[0],a);I 6.N(G(){9(b.1c==1B)A(6,a,b);J{A(6,a).1a(b);9(A(6,a).K==1)b.16(6)}})},9f:G(){H a=E.32;I 6.N(G(){L(H i=0;i<a.K;i++)9(a[i].T==6)a.6I(i--,1)}).5n()}});H A=G(b,c,a){9(!b)I;H q=E.M(b,c+"3L");9(!q||a)q=E.M(b,c+"3L",a?E.2h(a):[]);I q};E.1b.5n=G(a){a=a||"2j";I 6.N(G(){H q=A(6,a);q.44();9(q.K)q[0].16(6)})};E.1k({6D:G(b,a,c){H d=b&&b.1c==8Z?b:{1l:c||!c&&a||E.1n(b)&&b,2e:b,3J:c&&a||a&&a.1c!=8Y&&a};d.2e=(d.2e&&d.2e.1c==4W?d.2e:{8X:8W,8V:6N}[d.2e])||8T;d.3r=d.1l;d.1l=G(){E(6).5n();9(E.1n(d.3r))d.3r.16(6)};I d},3J:{6B:G(p,n,b,a){I b+a*p},5q:G(p,n,b,a){I((-38.9s(p*38.8R)/2)+0.5)*a+b}},32:[],2j:G(b,c,a){6.Y=c;6.T=b;6.1e=a;9(!c.3P)c.3P={}}});E.2j.3A={4r:G(){9(6.Y.2F)6.Y.2F.16(6.T,[6.2v,6]);(E.2j.2F[6.1e]||E.2j.2F.6z)(6);9(6.1e=="1H"||6.1e=="2N")6.T.R.19="2Z"},2b:G(a){9(6.T[6.1e]!=S&&6.T.R[6.1e]==S)I 6.T[6.1e];H r=3I(E.3C(6.T,6.1e,a));I r&&r>-8O?r:3I(E.17(6.T,6.1e))||0},3N:G(c,b,e){6.5u=(1u 3D()).3B();6.1O=c;6.2D=b;6.2i=e||6.2i||"2T";6.2v=6.1O;6.4q=6.4i=0;6.4r();H f=6;G t(){I f.2F()}t.T=6.T;E.32.1a(t);9(E.32.K==1){H d=4j(G(){H a=E.32;L(H i=0;i<a.K;i++)9(!a[i]())a.6I(i--,1);9(!a.K)4A(d)},13)}},1A:G(){6.Y.3P[6.1e]=E.1x(6.T.R,6.1e);6.Y.1A=Q;6.3N(0,6.2b());9(6.1e=="2N"||6.1e=="1H")6.T.R[6.1e]="8N";E(6.T).1A()},1z:G(){6.Y.3P[6.1e]=E.1x(6.T.R,6.1e);6.Y.1z=Q;6.3N(6.2b(),0)},2F:G(){H t=(1u 3D()).3B();9(t>6.Y.2e+6.5u){6.2v=6.2D;6.4q=6.4i=1;6.4r();6.Y.3M[6.1e]=Q;H a=Q;L(H i 1i 6.Y.3M)9(6.Y.3M[i]!==Q)a=P;9(a){9(6.Y.19!=S){6.T.R.2U=6.Y.2U;6.T.R.19=6.Y.19;9(E.17(6.T,"19")=="2s")6.T.R.19="2Z"}9(6.Y.1z)6.T.R.19="2s";9(6.Y.1z||6.Y.1A)L(H p 1i 6.Y.3M)E.1x(6.T.R,p,6.Y.3P[p])}9(a&&E.1n(6.Y.1l))6.Y.1l.16(6.T);I P}J{H n=t-6.5u;6.4i=n/6.Y.2e;6.4q=E.3J[6.Y.3J||(E.3J.5q?"5q":"6B")](6.4i,n,0,1,6.Y.2e);6.2v=6.1O+((6.2D-6.1O)*6.4q);6.4r()}I Q}};E.2j.2F={2R:G(a){a.T.2R=a.2v},2B:G(a){a.T.2B=a.2v},1r:G(a){E.1x(a.T.R,"1r",a.2v)},6z:G(a){a.T.R[a.1e]=a.2v+a.2i}};E.1b.6m=G(){H c=0,3E=0,T=6[0],5t;9(T)8L(E.V){H b=E.17(T,"2X")=="4F",1D=T.12,23=T.23,2K=T.3H,4f=1N&&3x(4s)<8J;9(T.6V){5w=T.6V();1f(5w.1S+38.33(2K.2V.2R,2K.1G.2R),5w.3E+38.33(2K.2V.2B,2K.1G.2B));9(1h){H d=E("4o").17("8H");d=(d=="8G"||E.5g&&3x(4s)>=7)&&2||d;1f(-d,-d)}}J{1f(T.5l,T.5z);1W(23){1f(23.5l,23.5z);9(35&&/^t[d|h]$/i.14(1D.37)||!4f)d(23);9(4f&&!b&&E.17(23,"2X")=="4F")b=Q;23=23.23}1W(1D.37&&!/^1G|4o$/i.14(1D.37)){9(!/^8D|1I-9S.*$/i.14(E.17(1D,"19")))1f(-1D.2R,-1D.2B);9(35&&E.17(1D,"2U")!="3R")d(1D);1D=1D.12}9(4f&&b)1f(-2K.1G.5l,-2K.1G.5z)}5t={3E:3E,1S:c}}I 5t;G d(a){1f(E.17(a,"9T"),E.17(a,"8A"))}G 1f(l,t){c+=3x(l)||0;3E+=3x(t)||0}}})();',62,616,'||||||this|||if|||||||||||||||||||||||||||||||||function|var|return|else|length|for|data|each|type|false|true|style|null|elem|document|browser|undefined||options|||nodeName|parentNode||test|jQuery|apply|css|window|display|push|fn|constructor|url|prop|add|indexOf|msie|in|event|extend|complete|typeof|isFunction|className|replace|arguments|opacity|div|match|new|status|firstChild|attr|nodeType|hide|show|Array|success|parent|filter|trigger|body|height|table|script|tbody|cache|string|safari|start|hidden|value|merge|left|break|animate|dataType|while|map|find|global||get|id|offsetParent|select|toggle|selected|toUpperCase|remove|catch|try|cur|al|ready|duration|done|text|makeArray|unit|fx|swap|split|target||pushStack|toLowerCase|nextSibling|button|none|handle|guid|now|stack|tb|jsre|timeout|inArray|scrollTop|readyState|end|delete|step|one|name|nth|slice|doc|ret|preventDefault|width|call|events|checked|scrollLeft|exec|px|overflow|documentElement|grep|position|form|block|removeData|rl|timers|max|opera|mozilla|trim|tagName|Math|load|param|removeChild|disabled|insertBefore|async|encodeURIComponent|append|oldblock|val|childNodes|src|readyList|multiFilter|color|defaultView|stopPropagation|args|old|toString|is|last|first|eval|parseInt|self|domManip|prototype|getTime|curCSS|Date|top||ajax|ownerDocument|parseFloat|easing|has|queue|curAnim|custom|innerHTML|orig|currentStyle|visible|getElementById|isReady|error|static|bind|String|which|getComputedStyle|responseText|oWidth|oHeight|on|shift|json|child|RegExp|ol|lastModified|isXMLDoc|jsonp|jquery|previousSibling|dir|safari2|el|styleFloat|state|setInterval|radio|getElementsByTagName|tr|empty|html|getAttribute|pos|update|version|input|float|runtimeStyle|unshift|mouseover|getPropertyValue|GET|clearInterval|safariTimer|visibility|clean|__ie_init|absolute|handleHover|lastToggle|index|fromElement|relatedTarget|click|fix|evt|andSelf|removeEventListener|handler|cloneNode|addEventListener|triggered|nodeIndex|unique|Number|classFilter|prevObject|selectedIndex|after|submit|password|removeAttribute|file|expr|setTimeout|_|appendChild|ajaxSettings|client|active|win|sibling|deep|globalEval|boxModel|cssFloat|object|checkbox|parsererror|offsetLeft|wrapAll|dequeue|props|lastChild|swing|handleError|getResponseHeader|results|startTime|00|box|Modified|ifModified|offsetTop|evalScript|createElement|setRequestHeader|ctrlKey|callback|metaKey|contentType|ajaxSend|ajaxSuccess|ajaxError|ajaxStop|ajaxStart|serializeArray|init|notmodified|POST|loaded|appendTo|DOMContentLoaded|bindReady|mouseout|not|removeAttr|unbind|unload|Width|keyCode|charCode|onreadystatechange|clientX|pageX|srcElement|join|outerHTML|substr|zoom|parse|textarea|reset|image|odd|even|before|quickClass|quickID|prepend|quickChild|execScript|offset|scroll|processData|uuid|contents|continue|textContent|ajaxComplete|clone|setArray|webkit|nodeValue|fl|_default|100|linear|href|speed|eq|createTextNode|throw|replaceWith|splice|_toggle|xml|colgroup|304|200|alpha|Last|httpData|httpNotModified|httpSuccess|fieldset|beforeSend|getBoundingClientRect|XMLHttpRequest|ActiveXObject|col|br|abbr|pixelLeft|urlencoded|www|application|ajaxSetup|post|getJSON|getScript|elements|serialize|clientWidth|hasClass|scr|clientHeight|write|relative|keyup|keypress|keydown|change|mousemove|mouseup|mousedown|right|dblclick|resize|focus|blur|frames|instanceof|hover|offsetWidth|triggerHandler|ipt|defer|offsetHeight|border|padding|clientY|pageY|Left|Right|toElement|Bottom|Top|cancelBubble|returnValue|detachEvent|attachEvent|substring|line|weight|animated|header|font|enabled|innerText|contains|only|size|gt|lt|uFFFF|u0128|417|inner|Height|toggleClass|removeClass|addClass|replaceAll|noConflict|insertAfter|prependTo|wrap|contentWindow|contentDocument|http|iframe|children|siblings|prevAll|nextAll|wrapInner|prev|Boolean|next|parents|maxLength|maxlength|readOnly|readonly|class|htmlFor|CSS1Compat|compatMode|compatible|borderTopWidth|ie|ra|inline|it|rv|medium|borderWidth|userAgent|522|navigator|with|concat|1px|10000|array|ig|PI|NaN|400|reverse|fast|600|slow|Function|Object|setAttribute|changed|be|can|property|fadeTo|fadeOut|getAttributeNode|fadeIn|slideToggle|method|slideUp|slideDown|action|cssText|stop|responseXML|option|content|300|th|protocol|td|location|send|cap|abort|colg|cos|tfoot|thead|With|leg|Requested|opt|GMT|1970|Jan|01|Thu|area|Since|hr|If|Type|Content|meta|specified|open|link|XMLHTTP|Microsoft|img|onload|row|borderLeftWidth|head|attributes'.split('|'),0,{})) \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,58 @@ +/* + * jQuery Easing Compatibility v1 - http://gsgd.co.uk/sandbox/jquery.easing.php + * + * Adds compatibility for applications that use the pre 1.2 easing names + * + * Copyright (c) 2007 George Smith + * Licensed under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + */ + +jQuery.extend( jQuery.easing, +{ + easeIn: function (x, t, b, c, d) { + return jQuery.easing.easeInQuad(x, t, b, c, d); + }, + easeOut: function (x, t, b, c, d) { + return jQuery.easing.easeOutQuad(x, t, b, c, d); + }, + easeInOut: function (x, t, b, c, d) { + return jQuery.easing.easeInOutQuad(x, t, b, c, d); + }, + expoin: function(x, t, b, c, d) { + return jQuery.easing.easeInExpo(x, t, b, c, d); + }, + expoout: function(x, t, b, c, d) { + return jQuery.easing.easeOutExpo(x, t, b, c, d); + }, + expoinout: function(x, t, b, c, d) { + return jQuery.easing.easeInOutExpo(x, t, b, c, d); + }, + bouncein: function(x, t, b, c, d) { + return jQuery.easing.easeInBounce(x, t, b, c, d); + }, + bounceout: function(x, t, b, c, d) { + return jQuery.easing.easeOutBounce(x, t, b, c, d); + }, + bounceinout: function(x, t, b, c, d) { + return jQuery.easing.easeInOutBounce(x, t, b, c, d); + }, + elasin: function(x, t, b, c, d) { + return jQuery.easing.easeInElastic(x, t, b, c, d); + }, + elasout: function(x, t, b, c, d) { + return jQuery.easing.easeOutElastic(x, t, b, c, d); + }, + elasinout: function(x, t, b, c, d) { + return jQuery.easing.easeInOutElastic(x, t, b, c, d); + }, + backin: function(x, t, b, c, d) { + return jQuery.easing.easeInBack(x, t, b, c, d); + }, + backout: function(x, t, b, c, d) { + return jQuery.easing.easeOutBack(x, t, b, c, d); + }, + backinout: function(x, t, b, c, d) { + return jQuery.easing.easeInOutBack(x, t, b, c, d); + } +}); \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.pack.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.pack.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing-compatibility.1.2.pack.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,10 @@ +/* + * jQuery Easing Compatibility v1 - http://gsgd.co.uk/sandbox/jquery.easing.php + * + * Adds compatibility for applications that use the pre 1.2 easing names + * + * Copyright (c) 2007 George Smith + * Licensed under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + */ +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('0.C(0.1,{7:2(x,t,b,c,d){3 0.1.D(x,t,b,c,d)},5:2(x,t,b,c,d){3 0.1.6(x,t,b,c,d)},h:2(x,t,b,c,d){3 0.1.B(x,t,b,c,d)},A:2(x,t,b,c,d){3 0.1.m(x,t,b,c,d)},y:2(x,t,b,c,d){3 0.1.w(x,t,b,c,d)},v:2(x,t,b,c,d){3 0.1.u(x,t,b,c,d)},s:2(x,t,b,c,d){3 0.1.r(x,t,b,c,d)},q:2(x,t,b,c,d){3 0.1.p(x,t,b,c,d)},o:2(x,t,b,c,d){3 0.1.n(x,t,b,c,d)},8:2(x,t,b,c,d){3 0.1.l(x,t,b,c,d)},g:2(x,t,b,c,d){3 0.1.j(x,t,b,c,d)},i:2(x,t,b,c,d){3 0.1.k(x,t,b,c,d)},z:2(x,t,b,c,d){3 0.1.f(x,t,b,c,d)},e:2(x,t,b,c,d){3 0.1.a(x,t,b,c,d)},9:2(x,t,b,c,d){3 0.1.4(x,t,b,c,d)}});',40,40,'jQuery|easing|function|return|easeInOutBack|easeOut|easeOutQuad|easeIn|elasin|backinout|easeOutBack||||backout|easeInBack|elasout|easeInOut|elasinout|easeOutElastic|easeInOutElastic|easeInElastic|easeInExpo|easeInOutBounce|bounceinout|easeOutBounce|bounceout|easeInBounce|bouncein||easeInOutExpo|expoinout|easeOutExpo||expoout|backin|expoin|easeInOutQuad|extend|easeInQuad'.split('|'),0,{})) \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,140 @@ +/* + * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php + * + * Uses the built In easIng capabilities added In jQuery 1.1 + * to offer multiple easIng options + * + * Copyright (c) 2007 George Smith + * Licensed under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + */ + +// t: current time, b: begInnIng value, c: change In value, d: duration + +jQuery.extend( jQuery.easing, +{ + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.pack.js =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.pack.js (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/include/jquery-easing.1.2.pack.js 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,11 @@ +/* + * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php + * + * Uses the built In easIng capabilities added In jQuery 1.1 + * to offer multiple easIng options + * + * Copyright (c) 2007 George Smith + * Licensed under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + */ +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l.Y(l.n,{15:9(x,t,b,c,d){6 c*(t/=d)*t+b},V:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},U:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},17:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},P:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},O:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},13:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},S:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},18:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},G:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},B:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},M:9(x,t,b,c,d){6-c*8.A(t/d*(8.g/2))+c+b},C:9(x,t,b,c,d){6 c*8.m(t/d*(8.g/2))+b},D:9(x,t,b,c,d){6-c/2*(8.A(8.g*t/d)-1)+b},16:9(x,t,b,c,d){6(t==0)?b:c*8.h(2,10*(t/d-1))+b},E:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.h(2,-10*t/d)+1)+b},F:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.h(2,10*(t-1))+b;6 c/2*(-8.h(2,-10*--t)+2)+b},I:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},12:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},11:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},K:9(x,t,b,c,d){f s=1.j;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.r(c)){a=c;f s=p/4}k f s=p/(2*8.g)*8.u(c/a);6-(a*8.h(2,10*(t-=1))*8.m((t*d-s)*(2*8.g)/p))+b},X:9(x,t,b,c,d){f s=1.j;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.r(c)){a=c;f s=p/4}k f s=p/(2*8.g)*8.u(c/a);6 a*8.h(2,-10*t)*8.m((t*d-s)*(2*8.g)/p)+c+b},N:9(x,t,b,c,d){f s=1.j;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.r(c)){a=c;f s=p/4}k f s=p/(2*8.g)*8.u(c/a);e(t<1)6-.5*(a*8.h(2,10*(t-=1))*8.m((t*d-s)*(2*8.g)/p))+b;6 a*8.h(2,-10*(t-=1))*8.m((t*d-s)*(2*8.g)/p)*.5+c+b},Z:9(x,t,b,c,d,s){e(s==w)s=1.j;6 c*(t/=d)*t*((s+1)*t-s)+b},14:9(x,t,b,c,d,s){e(s==w)s=1.j;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},H:9(x,t,b,c,d,s){e(s==w)s=1.j;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.y))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.y))+1)*t+s)+2)+b},z:9(x,t,b,c,d){6 c-l.n.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.i)){6 c*(7.q*t*t)+b}k e(t<(2/2.i)){6 c*(7.q*(t-=(1.5/2.i))*t+.i)+b}k e(t<(2.5/2.i)){6 c*(7.q*(t-=(2.J/2.i))*t+.L)+b}k{6 c*(7.q*(t-=(2.Q/2.i))*t+.T)+b}},W:9(x,t,b,c,d){e(t<d/2)6 l.n.z(x,t*2,0,c,d)*.5+b;6 l.n.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,71,'||||||return||Math|function|||||if|var|PI|pow|75|70158|else|jQuery|sin|easing|sqrt||5625|abs|||asin|easeOutBounce|undefined||525|easeInBounce|cos|easeInOutQuint|easeOutSine|easeInOutSine|easeOutExpo|easeInOutExpo|easeOutQuint|easeInOutBack|easeInCirc|25|easeInElastic|9375|easeInSine|easeInOutElastic|easeInQuart|easeOutCubic|625|easeInOutCubic|easeInOutQuart|984375|easeInOutQuad|easeOutQuad|easeInOutBounce|easeOutElastic|extend|easeInBack||easeInOutCirc|easeOutCirc|easeOutQuart|easeOutBack|easeInQuad|easeInExpo|easeInCubic|easeInQuint'.split('|'),0,{})) \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/index.php =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/index.php (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/index.php 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,52 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +// inclusione intestazione +include('header.php'); +global $xoopsTpl, $xoTheme, $xoopsDB; +// dichiarazione template principale (prima di includere path con il file header.php) +$xoopsOption['template_main'] = 'slidernews.html'; + +// inclusione dell'intestazione della pagina (header file) +include(XOOPS_ROOT_PATH.'/header.php'); + +include_once XOOPS_ROOT_PATH . '/class/xoopstopic.php'; + +/* MODULES NEWS SEARCH - START MOD */ +/* +$i = 0; +$newsmodule = array("news"); + +if (SearchModule($newsmodule[$i])) +{ + $sql = "SELECT * FROM ".$xoopsDB->prefix('stories')." WHERE storyid > 0 ORDER BY ASC"; + $result = $xoopsDB->query($sql); + $rownews = array(); + while($myrow = $xoopsDB->fetchArray($result)) + { + $rownews['nid'] = $myrow['storyid']; + $rownews['title'] = $myrow['title']; + $rownews['description'] = $myrow['description']; + $xoopsTpl->append('rownews', $rownews); + } +} +else +{ + $xoopsTpl->assign('empty_news', _MD_SLIDERNEWS_NONEWS); +} +unset ($newsmodule, $i); */ + +//$xoTheme->addStylesheet('modules/slidernews/include/slidernews.css'); +//$xoTheme->addScript('include/jquery-1.2.1.pack.js'); +//$xoTheme->addScript('include/jquery-easing.1.2.pack.js'); +//$xoTheme->addScript('include/jquery-easing-compatibility.1.2.pack.js'); +//$xoTheme->addScript('include/coda-slider.1.1.1.pack.js'); + +//$xoopsTpl->assign('base', array('slogan' => 'My first module<br />Il mio primo modulo')); + +// inclusione del footer +include(XOOPS_ROOT_PATH.'/footer.php'); + +?> \ No newline at end of file Added: XoopsModules/slidernews/releases/1.01/slidernews/style/slidernews.css =================================================================== --- XoopsModules/slidernews/releases/1.01/slidernews/style/slidernews.css (rev 0) +++ XoopsModules/slidernews/releases/1.01/slidernews/style/slidernews.css 2012-02-15 13:10:42 UTC (rev 8992) @@ -0,0 +1,151 @@ +/* base modules by timgno + http://mcdirectory.netsons.org/txmod/ + */ +* { margin: 0; padding: 0 } + /* I've used a hard CSS reset above, but you should consider a more sophisticated reset, such as this one: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */ + + p { text-align: left; margin: 15px 0 } + + p, ul { font-size: 13px; line-height: 1.4em } + + p a, li a { color: #39c; text-decoration: none } + + p.intro { border-bottom: 1px solid #ccc; margin-bottom: 20px; padding: 20px 0 30px 0; text-align: center; width: 100% } + + p#cross-links { text-align: center } + + p#cross-links { border-bottom: 1px solid #ccc; margin-bottom: 30px; padding-bottom: 30px } + + noscript p, noscript ol { color: #a00; font-size: 13px; line-height: 1.4em; text-align: left } + noscript a { color: #a00; text-decoration: underline } + noscript ol { margin-left: 25px; } + + a:focus { outline:none } + + img { border: 0 } + + h3 { border-bottom: 1px solid silver; margin-bottom: 5px; padding-bottom: 3px; text-align: left } + + body { + font-family: Verdana, Arial; + background: #ebebeb url("images/body-bg.png") repeat-y center; + color: #000; + width: 800px; + margin: auto; + text-align: center; + padding-bottom: 20px; + } + + .stripViewer .panelContainer .panel ul { + text-align: left; + margin: 0 15px 0 30px; + } + + .slider-wrap { /* This div isn't entirely necessary but good for getting the side arrows vertically centered */ + margin: 20px 0; + position: relative; + width: 100%; + } + + /* These 2 lines specify style applied while slider is loa... [truncated message content] |
From: <txm...@us...> - 2012-02-15 13:04:56
|
Revision: 8991 http://xoops.svn.sourceforge.net/xoops/?rev=8991&view=rev Author: txmodxoops Date: 2012-02-15 13:04:41 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module Password Generator v1.15 Final Added Paths: ----------- XoopsModules/passgen/ XoopsModules/passgen/branches/ XoopsModules/passgen/releases/ XoopsModules/passgen/releases/1.15/ XoopsModules/passgen/releases/1.15/passgen/ XoopsModules/passgen/releases/1.15/passgen/admin/ XoopsModules/passgen/releases/1.15/passgen/admin/about.php XoopsModules/passgen/releases/1.15/passgen/admin/admin_footer.php XoopsModules/passgen/releases/1.15/passgen/admin/admin_header.php XoopsModules/passgen/releases/1.15/passgen/admin/index.html XoopsModules/passgen/releases/1.15/passgen/admin/index.php XoopsModules/passgen/releases/1.15/passgen/admin/menu.php XoopsModules/passgen/releases/1.15/passgen/blocks/ XoopsModules/passgen/releases/1.15/passgen/blocks/blocks_passgen.php XoopsModules/passgen/releases/1.15/passgen/blocks/index.html XoopsModules/passgen/releases/1.15/passgen/changelog.txt XoopsModules/passgen/releases/1.15/passgen/class/ XoopsModules/passgen/releases/1.15/passgen/class/index.html XoopsModules/passgen/releases/1.15/passgen/class/menu.php XoopsModules/passgen/releases/1.15/passgen/class/object.php XoopsModules/passgen/releases/1.15/passgen/header.php XoopsModules/passgen/releases/1.15/passgen/images/ XoopsModules/passgen/releases/1.15/passgen/images/deco/ XoopsModules/passgen/releases/1.15/passgen/images/deco/about.png XoopsModules/passgen/releases/1.15/passgen/images/deco/arrow.gif XoopsModules/passgen/releases/1.15/passgen/images/deco/delete.gif XoopsModules/passgen/releases/1.15/passgen/images/deco/edit.gif XoopsModules/passgen/releases/1.15/passgen/images/deco/index.html XoopsModules/passgen/releases/1.15/passgen/images/deco/index.png XoopsModules/passgen/releases/1.15/passgen/images/deco/off.gif XoopsModules/passgen/releases/1.15/passgen/images/deco/on.gif XoopsModules/passgen/releases/1.15/passgen/images/deco/permissions.png XoopsModules/passgen/releases/1.15/passgen/images/deco/pref.png XoopsModules/passgen/releases/1.15/passgen/images/deco/update.png XoopsModules/passgen/releases/1.15/passgen/images/index.html XoopsModules/passgen/releases/1.15/passgen/images/menu/ XoopsModules/passgen/releases/1.15/passgen/images/menu/bg.png XoopsModules/passgen/releases/1.15/passgen/images/menu/index.html XoopsModules/passgen/releases/1.15/passgen/images/menu/left_both.png XoopsModules/passgen/releases/1.15/passgen/images/menu/right_both.png XoopsModules/passgen/releases/1.15/passgen/images/passgen_logo.png XoopsModules/passgen/releases/1.15/passgen/images/passgen_slogo.png XoopsModules/passgen/releases/1.15/passgen/images/txmod_logo.png XoopsModules/passgen/releases/1.15/passgen/include/ XoopsModules/passgen/releases/1.15/passgen/include/Handheld.css XoopsModules/passgen/releases/1.15/passgen/include/Passgen.js XoopsModules/passgen/releases/1.15/passgen/include/Print.css XoopsModules/passgen/releases/1.15/passgen/include/Screen.css XoopsModules/passgen/releases/1.15/passgen/include/configs.php XoopsModules/passgen/releases/1.15/passgen/include/functions.php XoopsModules/passgen/releases/1.15/passgen/include/index.html XoopsModules/passgen/releases/1.15/passgen/include/install.php XoopsModules/passgen/releases/1.15/passgen/index.php XoopsModules/passgen/releases/1.15/passgen/language/ XoopsModules/passgen/releases/1.15/passgen/language/english/ XoopsModules/passgen/releases/1.15/passgen/language/english/admin.php XoopsModules/passgen/releases/1.15/passgen/language/english/blocks.php XoopsModules/passgen/releases/1.15/passgen/language/english/index.html XoopsModules/passgen/releases/1.15/passgen/language/english/main.php XoopsModules/passgen/releases/1.15/passgen/language/english/modinfo.php XoopsModules/passgen/releases/1.15/passgen/language/french/ XoopsModules/passgen/releases/1.15/passgen/language/french/admin.php XoopsModules/passgen/releases/1.15/passgen/language/french/blocks.php XoopsModules/passgen/releases/1.15/passgen/language/french/index.html XoopsModules/passgen/releases/1.15/passgen/language/french/main.php XoopsModules/passgen/releases/1.15/passgen/language/french/modinfo.php XoopsModules/passgen/releases/1.15/passgen/language/index.html XoopsModules/passgen/releases/1.15/passgen/language/italian/ XoopsModules/passgen/releases/1.15/passgen/language/italian/admin.php XoopsModules/passgen/releases/1.15/passgen/language/italian/blocks.php XoopsModules/passgen/releases/1.15/passgen/language/italian/index.html XoopsModules/passgen/releases/1.15/passgen/language/italian/main.php XoopsModules/passgen/releases/1.15/passgen/language/italian/modinfo.php XoopsModules/passgen/releases/1.15/passgen/sql/ XoopsModules/passgen/releases/1.15/passgen/sql/index.html XoopsModules/passgen/releases/1.15/passgen/templates/ XoopsModules/passgen/releases/1.15/passgen/templates/blocks/ XoopsModules/passgen/releases/1.15/passgen/templates/blocks/index.html XoopsModules/passgen/releases/1.15/passgen/templates/blocks/passgen_block.html XoopsModules/passgen/releases/1.15/passgen/templates/index.html XoopsModules/passgen/releases/1.15/passgen/templates/passgen_index.html XoopsModules/passgen/releases/1.15/passgen/xoops_version.php XoopsModules/passgen/trunk/ Added: XoopsModules/passgen/releases/1.15/passgen/admin/about.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/admin/about.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/admin/about.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,116 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +passgen_adminmenu(1, _AM_PASSGEN_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_PASSGEN_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_PASSGEN_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_PASSGEN_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_PASSGEN_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_PASSGEN_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_PASSGEN_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_PASSGEN_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_PASSGEN_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_PASSGEN_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_PASSGEN_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_PASSGEN_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_PASSGEN_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_PASSGEN_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +include_once("admin_footer.php"); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/admin/admin_footer.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/admin/admin_footer.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/admin/admin_footer.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,29 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +echo "<br /><br />\n + <div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\">\n + <img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/admin/admin_header.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/admin/admin_header.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/admin/admin_header.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,103 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("passgen"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function passgen_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/passgen/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/passgen/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/passgen/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_PASSGEN_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/passgen/index.php\">_AM_PASSGEN_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/passgen/admin/upgrade.php\">_AM_PASSGEN_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/passgen/admin/index.php\"><span>_MI_PASSGEN_MANAGER_INDEX</span></a></li> + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/passgen/admin/about.php\"><span>_MI_PASSGEN_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/admin/index.html =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/admin/index.html (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/admin/index.html 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/admin/index.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/admin/index.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/admin/index.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,57 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +passgen_adminmenu(0, _AM_PASSGEN_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_PASSGEN_MANAGER_INDEX); +} + +include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/menu.php"; + + $menu = new passgenMenu(); + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=passgen", "../images/deco/update.png", _AM_PASSGEN_MANAGER_UPDATE); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid")."&&confcat_id=1", "../images/deco/pref.png", _AM_PASSGEN_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_PASSGEN_MANAGER_ABOUT); + echo $menu->getCSS(); + echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_PASSGEN_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\">".$menu->render()."</td> + <td valign=\"top\" width=\"60%\">"; + echo "</td> + </tr> + </table>"; +include_once("admin_footer.php"); +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/admin/menu.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/admin/menu.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/admin/menu.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,31 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_PASSGEN_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_PASSGEN_MANAGER_ABOUT; +$adminmenu[1]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/blocks/blocks_passgen.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/blocks/blocks_passgen.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/blocks/blocks_passgen.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,25 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + + ?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/blocks/index.html =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/blocks/index.html (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/blocks/index.html 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/changelog.txt =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/changelog.txt (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/changelog.txt 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,5 @@ +[Password Generator] + +. Final Release 20/07/2010 +. Javascript Functions +. Advertisement Preferences \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/class/index.html =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/class/index.html (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/class/index.html 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/class/menu.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/class/menu.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/class/menu.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +class passgenMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/class/object.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/class/object.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/class/object.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criteria($this->keyName, intval($id)); + } + $criteria->setLimit(1); + $obj_array = $this->getObjects($criteria, false, $as_object); + if (count($obj_array) != 1) { + $obj = $this->create(); + return $obj; + } + return $obj_array[0]; + } + + /** + * retrieve objects from the database + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param bool $id_as_key use the ID as key for the array? + * @param bool $as_object return an array of objects? + * + * @return array + */ + function getObjects($criteria=null, $id_as_key=false, $as_object=true){ + $ret = array(); + $limit = $start = 0; + $sql = 'SELECT * FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + return $this->convertResultSet($result, $id_as_key, $as_object); + } + + /** + * Convert a database resultset to a returnable array + * + * @param object $result database resultset + * @param bool $id_as_key - should NOT be used with joint keys + * @param bool $as_object + * + * @return array + */ + function convertResultSet($result, $id_as_key = false, $as_object = true) { + $ret = array(); + while ($myrow = $this->db->fetchArray($result)) { + $obj =& $this->create(false); + $obj->assignVars($myrow); + if (!$id_as_key) { + if ($as_object) { + $ret[] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[] = $row; + } + } else { + if ($as_object) { + $ret[$myrow[$this->keyName]] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[$myrow[$this->keyName]] = $row; + } + } + unset($obj); + } + return $ret; + } + + /** + * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param int $limit Max number of objects to fetch + * @param int $start Which record to start at + * + * @return array + */ + function getList($criteria = null, $limit = 0, $start = 0) { + $ret = array(); + if ($criteria == null) { + $criteria = new CriteriaCompo(); + } + + if ($criteria->getSort() == '') { + $criteria->setSort($this->identifierName); + } + + $sql = 'SELECT '.$this->keyName; + if(!empty($this->identifierName)){ + $sql .= ', '.$this->identifierName; + } + $sql .= ' FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + $myts =& MyTextSanitizer::getInstance(); + while ($myrow = $this->db->fetchArray($result)) { + //identifiers should be textboxes, so sanitize them like that + $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); + } + return $ret; + } + + /** + * count objects matching a condition + * + * @param object $criteria {@link CriteriaElement} to match + * @return int count of objects + */ + function getCount($criteria=null){ + $field = ""; + $groupby = false; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + if ($criteria->groupby != "") { + $groupby = true; + $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used + } + } + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->groupby != "") { + $sql .= $criteria->getGroupby(); + } + } + $result = $this->db->query($sql); + if (!$result) { + return 0; + } + if ($groupby == false) { + list($count) = $this->db->fetchRow($result); + return $count; + } else { + $ret = array(); + while (list($id, $count) = $this->db->fetchRow($result)) { + $ret[$id] = $count; + } + return $ret; + } + } + + /** + * delete an object from the database + * + * @param object $obj reference to the object to delete + * @param bool $force + * @return bool FALSE if failed. + */ + function delete(&$obj, $force = false){ + if (is_array($this->keyName)) { + $clause = array(); + for ($i = 0; $i < count($this->keyName); $i++) { + $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + $whereclause = implode(" AND ", $clause); + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause; + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * insert a new object in the database + * + * @param object $obj reference to the object + * @param bool $force whether to force the query execution despite security settings + * @param bool $checkObject check if the object is dirty and clean the attributes + * @return bool FALSE if failed, TRUE if already present and unchanged or successful + */ + + function insert(&$obj, $force=false, $checkObject=true){ + if ($checkObject != false) { + if (!is_object($obj)) { + var_dump($obj); + return false; + } + /** + * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5 + */ + if (!is_a($obj, $this->className)) { + $obj->setErrors(get_class($obj)." Differs from ".$this->className); + return false; + } + if (!$obj->isDirty()) { + $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith + return true; + } + } + if (!$obj->cleanVars()) { + return false; + } + + foreach ($obj->cleanVars as $k => $v) { + if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { + $cleanvars[$k] = intval($v); + } elseif ( is_array( $v ) ) { + $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) ); + } else { + $cleanvars[$k] = $this->db->quoteString($v); + } + } + if ($obj->isNew()) { + if (!is_array($this->keyName)) { + if ($cleanvars[$this->keyName] < 1) { + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); + } + } + $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")"; + } else { + $sql = "UPDATE ".$this->table." SET"; + foreach ($cleanvars as $key => $value) { + if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) { + continue; + } + if (isset($notfirst) ) { + $sql .= ","; + } + $sql .= " ".$key." = ".$value; + $notfirst = true; + } + if (is_array($this->keyName)) { + $whereclause = ""; + for ($i = 0; $i < count($this->keyName); $i++) { + if ($i > 0) { + $whereclause .= " AND "; + } + $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql .= " WHERE ".$whereclause; + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + if ($obj->isNew() && !is_array($this->keyName)) { + $obj->assignVar($this->keyName, $this->db->getInsertId()); + } + return true; + } + + /** + * Change a value for objects with a certain criteria + * + * @param string $fieldname Name of the field + * @param string $fieldvalue Value to write + * @param object $criteria {@link CriteriaElement} + * @return bool + */ + function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){ + $set_clause = $fieldname . ' = '; + if ( is_numeric( $fieldvalue ) ) { + $set_clause .= $fieldvalue; + } elseif ( is_array( $fieldvalue ) ) { + $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) ); + } else { + $set_clause .= $this->db->quoteString( $fieldvalue ); + } + $sql = 'UPDATE '.$this->table.' SET '.$set_clause; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * delete all objects meeting the conditions + * + * @param object $criteria {@link CriteriaElement} with conditions to meet + * @return bool + */ + function deleteAll($criteria = null){ + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql = 'DELETE FROM '.$this->table; + $sql .= ' '.$criteria->renderWhere(); + if (!$this->db->queryF($sql)) { + return false; + } + $rows = $this->db->getAffectedRows(); + return $rows > 0 ? $rows : true; + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/header.php =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/header.php (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/header.php 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,28 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Pass Gen - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://www.txmodxoops.org) + * + * 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 txmod (http://www.txmodxoops.org) + * @license GNU GPL + * @package Pass Gen + * @author txmod (web...@tx...) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../mainfile.php"; +include XOOPS_ROOT_PATH."/modules/passgen/include/configs.php"; +include XOOPS_ROOT_PATH."/modules/passgen/include/functions.php"; +?> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/arrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/delete.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/delete.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/edit.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/edit.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/index.html =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/images/deco/index.html (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/images/deco/index.html 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/off.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/off.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/on.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/on.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/pref.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/pref.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/deco/update.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/deco/update.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/index.html =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/images/index.html (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/images/index.html 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/images/menu/bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/menu/bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/menu/index.html =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/images/menu/index.html (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/images/menu/index.html 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/passgen/releases/1.15/passgen/images/menu/left_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/menu/left_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/menu/right_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/menu/right_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/passgen_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/passgen_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/passgen_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/passgen_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/images/txmod_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/passgen/releases/1.15/passgen/images/txmod_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/passgen/releases/1.15/passgen/include/Handheld.css =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/include/Handheld.css (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/include/Handheld.css 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,21 @@ +body {} + +fieldset +{ + border: 5px double; + border-color: #369; + padding: 1em 1em 1em 1em ; +} +legend +{ + background-color: #369; + color: #fff; + font-size: 1.2em; + padding: 0.2em 0.5em 0.2em 0.5em; +} + +/* only for printing */ +.onlyForPrinting +{ + display: none; +} Added: XoopsModules/passgen/releases/1.15/passgen/include/Passgen.js =================================================================== --- XoopsModules/passgen/releases/1.15/passgen/include/Passgen.js (rev 0) +++ XoopsModules/passgen/releases/1.15/passgen/include/Passgen.js 2012-02-15 13:04:41 UTC (rev 8991) @@ -0,0 +1,325 @@ +var theSymbols = new Array() +theSymbols = [" ", "!", "\"", "$", "%", "^", "&", "*", "(", ")", + "-", "_", "=", "+", "[", "{", "]", "}", ";", ":", "'", "@", "#", "~", "\\", + "|", ",", "<", ".", ">", "/", "?"] +//Can't use "\xAC", "\xA6", or "\xA3" as it won't display in Firefox + +function hideNeedJavaScript() +{ + // Hide Need JavaScript div + document.getElementById("needJavaScript").style.display = 'none'; + // Show Generator form + document.getElementById("generator").style.display = 'block'; +} + +function GenerateAndValidate(lengthOfPassword, wantSymbols) +{ + // Check what length the user has chosen + // Firefox says form1 is not defined + //var lengthOfPassword = form1.ddlLength.options(form1.ddlLength.selectedIndex).value; - This works, except Firefox! + //Have to pass the chosen length as a parameter because Firefox can't find form1 + + var thePassword = new Array(); + thePassword = GeneratePassword(lengthOfPassword, wantSymbols); + while(!Validate(thePassword, lengthOfPassword, wantSymbols)) + { + thePassword = GeneratePassword(lengthOfPassword, wantSymbols); + } + Display(thePassword); +} + +function GeneratePassword(lengthOfPassword, wantSymbols) +{ + // Strings for letters and numbers, array for symbols + var theLetters = "abcdefghijklmnopqrstuvwxyz"; + var theNumbers = "1234567890"; + + //ARRAYS + // Variable for strong password + var StrongPasswordArray = new Array(); + + //LETTERS + // Generate an array of random letters, up to the user's chosen length + for(var loop=0; loop < lengthOfPassword; loop++) + { + // Get a random number between zero and one for each one to decide if we'll capitalise each letter as we loop through the array + var capitalise = Math.round(Math.random()*1); + if(capitalise == 0) + { + StrongPasswordArray[loop] = theLetters.charAt(Math.round(Math.random()*25)).toUpperCase() + } + else + { + StrongPasswordArray[loop] = theLetters.charAt(Math.round(Math.random()*25)); + } + } +//alert("Strong password's letters are: " + StrongPasswordArray + " and the length is " + StrongPasswordArray.length); + + //NUMBERS + // Get a random number between one and the length; + // insert that many numerical digits at random places in the string + var numberOfDigits; + numberOfDigits = Math.round(Math.random() * (lengthOfPassword - 1)) + 1; +//alert("The number of digits shall be " + numberOfDigits); + // Loop to add that amount of numbers + for(var loop=0; loop < numberOfDigits; loop++) + { + // choose a random position in the string for the number + var positionForNumeric = Math.round(Math.random() * (lengthOfPassword - 1)); // choose a position for this number, less than the length of the password + // Note that the same position may be chosen more than once, + // due to the random function, so we may get less numbers than the number chosen + // choose a number from 0 to 9 + var theNumber = Math.round(Math.random()*9); + // insert that number + StrongPasswordArray[positionForNumeric] = theNumber; + } +//alert("Strong password's letters and numbers are: " + StrongPasswordArray + " and the length is " + StrongPasswordArray.length); + + //SYMBOLS + if(wantSymbols) + { + // Put a symbol in the second, third, fourth, fifth or sixth position + // Get a random number between two and six to decide where to put in a symbol + // and put a random symbol in the second, third, fourth, fifth or sixth position + var positionForSymbol = Math.round(Math.random()*4) + 2; + // Choose a number from 0 to the length of the theSymbols array, to choose a symbol + var locationOfSymbolInArray = Math.round(Math.random()*(theSymbols.length - 1)); + var theSymbol = theSymbols[locationOfSymbolInArray]; + // Insert that symbol + StrongPasswordArray[positionForSymbol] = theSymbol; + + // Now put in random symbols + // Get a random number between one and the length and insert that many numerical digits at random places in the string + // Note that the same position may be chosen more than once, due to the random function, so we may get less numbers than the number chosen + var numberOfSymbols; + numberOfSymbols = Math.round(Math.random() * (lengthOfPassword - 1)) + 1; + // Loop to add that amount of symbols + for(var loop=0; loop < numberOfSymbols; loop++) // 0 to numberOfSymbols + { + // choose a random position in the string for the number + positionForSymbol = Math.round(Math.random()* (lengthOfPassword - 1)); // choose a position for this number, less than the length of the password + // Note that the same position may be chosen more than once, due to the random function, so we may get less symbols than the number chosen + // Choose a number from 0 to the length of the theSymbols array, to choose a symbol + locationOfSymbolInArray = Math.round(Math.random()*(theSymbols.length - 1)); + theSymbol = theSymbols[locationOfSymbolInArray]; + // Insert that symbol + StrongPasswordArray[positionForSymbol] = theSymbol; + } +//alert(StrongPasswordArray); + } + return StrongPasswordArray; + } + + function Validate(StrongPass... [truncated message content] |
From: <txm...@us...> - 2012-02-15 12:58:02
|
Revision: 8990 http://xoops.svn.sourceforge.net/xoops/?rev=8990&view=rev Author: txmodxoops Date: 2012-02-15 12:57:49 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module imprint v1.01 Added Paths: ----------- XoopsModules/imprint/ XoopsModules/imprint/branches/ XoopsModules/imprint/releases/ XoopsModules/imprint/releases/1.01/ XoopsModules/imprint/releases/1.01/imprint/ XoopsModules/imprint/releases/1.01/imprint/admin/ XoopsModules/imprint/releases/1.01/imprint/admin/about.php XoopsModules/imprint/releases/1.01/imprint/admin/header.php XoopsModules/imprint/releases/1.01/imprint/admin/imp.php XoopsModules/imprint/releases/1.01/imprint/admin/index.html XoopsModules/imprint/releases/1.01/imprint/admin/index.php XoopsModules/imprint/releases/1.01/imprint/admin/menu.php XoopsModules/imprint/releases/1.01/imprint/blocks/ XoopsModules/imprint/releases/1.01/imprint/blocks/index.html XoopsModules/imprint/releases/1.01/imprint/changelog.txt XoopsModules/imprint/releases/1.01/imprint/class/ XoopsModules/imprint/releases/1.01/imprint/class/imp.php XoopsModules/imprint/releases/1.01/imprint/class/index.html XoopsModules/imprint/releases/1.01/imprint/class/menu.php XoopsModules/imprint/releases/1.01/imprint/class/object.php XoopsModules/imprint/releases/1.01/imprint/header.php XoopsModules/imprint/releases/1.01/imprint/images/ XoopsModules/imprint/releases/1.01/imprint/images/deco/ XoopsModules/imprint/releases/1.01/imprint/images/deco/about.png XoopsModules/imprint/releases/1.01/imprint/images/deco/arrow.gif XoopsModules/imprint/releases/1.01/imprint/images/deco/delete.gif XoopsModules/imprint/releases/1.01/imprint/images/deco/edit.gif XoopsModules/imprint/releases/1.01/imprint/images/deco/imp_search.png XoopsModules/imprint/releases/1.01/imprint/images/deco/index.html XoopsModules/imprint/releases/1.01/imprint/images/deco/index.png XoopsModules/imprint/releases/1.01/imprint/images/deco/off.gif XoopsModules/imprint/releases/1.01/imprint/images/deco/on.gif XoopsModules/imprint/releases/1.01/imprint/images/deco/permissions.png XoopsModules/imprint/releases/1.01/imprint/images/deco/pref.png XoopsModules/imprint/releases/1.01/imprint/images/deco/topic.png XoopsModules/imprint/releases/1.01/imprint/images/deco/update.png XoopsModules/imprint/releases/1.01/imprint/images/imprint_slogo.png XoopsModules/imprint/releases/1.01/imprint/images/index.html XoopsModules/imprint/releases/1.01/imprint/images/menu/ XoopsModules/imprint/releases/1.01/imprint/images/menu/bg.png XoopsModules/imprint/releases/1.01/imprint/images/menu/index.html XoopsModules/imprint/releases/1.01/imprint/images/menu/left_both.png XoopsModules/imprint/releases/1.01/imprint/images/menu/right_both.png XoopsModules/imprint/releases/1.01/imprint/images/society_logo.png XoopsModules/imprint/releases/1.01/imprint/images/txmod_logo.png XoopsModules/imprint/releases/1.01/imprint/include/ XoopsModules/imprint/releases/1.01/imprint/include/configs.php XoopsModules/imprint/releases/1.01/imprint/include/functions.php XoopsModules/imprint/releases/1.01/imprint/include/index.html XoopsModules/imprint/releases/1.01/imprint/include/install.php XoopsModules/imprint/releases/1.01/imprint/include/search.inc.php XoopsModules/imprint/releases/1.01/imprint/include/style.css XoopsModules/imprint/releases/1.01/imprint/index.php XoopsModules/imprint/releases/1.01/imprint/language/ XoopsModules/imprint/releases/1.01/imprint/language/index.html XoopsModules/imprint/releases/1.01/imprint/language/italian/ XoopsModules/imprint/releases/1.01/imprint/language/italian/admin.php XoopsModules/imprint/releases/1.01/imprint/language/italian/blocks.php XoopsModules/imprint/releases/1.01/imprint/language/italian/index.html XoopsModules/imprint/releases/1.01/imprint/language/italian/main.php XoopsModules/imprint/releases/1.01/imprint/language/italian/modinfo.php XoopsModules/imprint/releases/1.01/imprint/readme.txt XoopsModules/imprint/releases/1.01/imprint/sql/ XoopsModules/imprint/releases/1.01/imprint/sql/index.html XoopsModules/imprint/releases/1.01/imprint/sql/mysql.sql XoopsModules/imprint/releases/1.01/imprint/templates/ XoopsModules/imprint/releases/1.01/imprint/templates/blocks/ XoopsModules/imprint/releases/1.01/imprint/templates/blocks/index.html XoopsModules/imprint/releases/1.01/imprint/templates/imprint_footer.html XoopsModules/imprint/releases/1.01/imprint/templates/imprint_header.html XoopsModules/imprint/releases/1.01/imprint/templates/imprint_index.html XoopsModules/imprint/releases/1.01/imprint/templates/index.html XoopsModules/imprint/releases/1.01/imprint/xoops_version.php XoopsModules/imprint/trunk/ Added: XoopsModules/imprint/releases/1.01/imprint/admin/about.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/admin/about.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/admin/about.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,110 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +imprint_adminmenu(2, _AM_IMPRINT_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (2, _AM_IMPRINT_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px; height: 48px;\"><strong>"._AM_IMPRINT_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_IMPRINT_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_IMPRINT_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_IMPRINT_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_IMPRINT_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_IMPRINT_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_IMPRINT_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_IMPRINT_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /></div> +</fieldset> +<br clear=\"all\" /> + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_IMPRINT_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_IMPRINT_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_IMPRINT_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_IMPRINT_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"><div>".implode("<br />", file( $file ))."</div></div> + </fieldset> + <br clear=\"all\" />"; +} +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/admin/header.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/admin/header.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/admin/header.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,110 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); +include_once XOOPS_ROOT_PATH."/modules/imprint/class/imp.php"; + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("imprint"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function imprint_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/imprint/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/imprint/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/imprint/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_IMPRINT_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/imprint/index.php\">_AM_IMPRINT_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/imprint/admin/upgrade.php\">_AM_IMPRINT_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/imprint/admin/index.php\"><span>_MI_IMPRINT_MANAGER_INDEX</span></a></li> + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/imprint/admin/imp.php\"><span>_MI_IMPRINT_MANAGER_IMP</span></a></li>"; + + /* <li id=\"$tblColors[2]\"><a href=\"".XOOPS_URL."/modules/imprint/admin/permissions.php\"><span>_MI_IMPRINT_MANAGER_PERMISSIONS</span></a></li> */ + echo "<li id=\"$tblColors[3]\"><a href=\"".XOOPS_URL."/modules/imprint/admin/about.php\"><span>_MI_IMPRINT_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + +$impHandler =& xoops_getModuleHandler("imprint_imp", "imprint"); + +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/admin/imp.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/admin/imp.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/admin/imp.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,222 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +if (isset($_REQUEST["op"])) { + $op = $_REQUEST["op"]; +} else { + @$op = "show_list_imp"; +} + +//Menu admin +if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php") ) { +imprint_adminmenu(1, _AM_IMPRINT_MANAGER_IMP); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_IMPRINT_MANAGER_IMP); +} + +//Sous menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/topic.png); background-repeat: no-repeat; background-position: left; padding-left: 50px; height: 48px;\"> + <strong>"._AM_IMPRINT_MANAGER_IMP."</strong> + </div><br /><br>"; +switch ($op) +{ + case "save_imp": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("imp.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["imp_id"])) { + $obj =& $impHandler->get($_REQUEST["imp_id"]); + } else { + $obj =& $impHandler->create(); + } + + //Form imp_title + $obj->setVar("imp_title", $_REQUEST["imp_title"]); + //Form imp_name + $obj->setVar("imp_name", $_REQUEST["imp_name"]); + //Form imp_address + $obj->setVar("imp_address", $_REQUEST["imp_address"]); + //Form imp_postalcode + $obj->setVar("imp_postalcode", $_REQUEST["imp_postalcode"]); + //Form imp_city + $obj->setVar("imp_city", $_REQUEST["imp_city"]); + //Form imp_phone + $obj->setVar("imp_phone", $_REQUEST["imp_phone"]); + //Form imp_fax + $obj->setVar("imp_fax", $_REQUEST["imp_fax"]); + //Form imp_email + $obj->setVar("imp_email", $_REQUEST["imp_email"]); + //Form imp_image + include_once XOOPS_ROOT_PATH."/class/uploader.php"; + $uploaddir_imp_image = XOOPS_ROOT_PATH."/uploads/imprint/imp/imp_image/"; + $uploader_imp_image = new XoopsMediaUploader($uploaddir_imp_image, $xoopsModuleConfig["imp_image_mimetypes"], $xoopsModuleConfig["imp_image_size"], null, null); + + if ($uploader_imp_image->fetchMedia("imp_image")) { + $uploader_imp_image->setPrefix("imp_image_") ; + $uploader_imp_image->fetchMedia("imp_image"); + if (!$uploader_imp_image->upload()) { + $errors = $uploader_imp_image->getErrors(); + redirect_header("javascript:history.go(-1)",3, $errors); + } else { + $obj->setVar("imp_image", $uploader_imp_image->getSavedFileName()); + } + } else { + $obj->setVar("imp_image", $_REQUEST["imp_image"]); + } + //Form imp_title_desclaimer + $obj->setVar("imp_title_desclaimer", $_REQUEST["imp_title_desclaimer"]); + //Form imp_disclaimer + $obj->setVar("imp_disclaimer", $_REQUEST["imp_disclaimer"]); + //Form imp_submitter + $obj->setVar("imp_submitter", $_REQUEST["imp_submitter"]); + //Form imp_date_created + $obj->setVar("imp_date_created", strtotime($_REQUEST["imp_date_created"])); + //Form imp_online + $verif_imp_online = ($_REQUEST["imp_online"] == 1) ? "1" : "0"; + $obj->setVar("imp_online", $verif_imp_online); + + + if ($impHandler->insert($obj)) { + redirect_header("imp.php?op=show_list_imp", 2, _AM_IMPRINT_FORMOK); + } + //include_once("../include/forms.php"); + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + break; + + case "edit_imp": + $obj = $impHandler->get($_REQUEST["imp_id"]); + $form = $obj->getForm(); + break; + case "delete_imp": + $obj =& $impHandler->get($_REQUEST["imp_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { redirect_header("imp.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($impHandler->delete($obj)) { redirect_header("imp.php", 3, _AM_IMPRINT_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "imp_id" => $_REQUEST["imp_id"], "op" => "delete_imp"), $_SERVER["REQUEST_URI"], sprintf(_AM_IMPRINT_FORMSUREDEL, $obj->getVar("imp"))); + } + break; + + case "update_online_imp": + + if (isset($_REQUEST["imp_id"])) { + $obj =& $impHandler->get($_REQUEST["imp_id"]); + } + $obj->setVar("imp_online", $_REQUEST["imp_online"]); + + if ($impHandler->insert($obj)) { + redirect_header("imp.php", 3, _AM_IMPRINT_FORMOK); + } + echo $obj->getHtmlErrors(); + + break; + + case "default": + default: + + $criteria = new CriteriaCompo(); + $criteria->setSort("imp_id"); + $criteria->setOrder("ASC"); + $numrows = $impHandler->getCount(); + $imp_arr = $impHandler->getall($criteria); + + //Affichage du tableau + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align=\"center\">"._AM_IMPRINT_IMP_TITLE."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_NAME."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_ADDRESS."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_POSTALCODE."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_CITY."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_PHONE."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_FAX."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_EMAIL."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_IMAGE."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_TITLE_DESCLAIMER."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_DISCLAIMER."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_SUBMITTER."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_DATE_CREATED."</th> + <th align=\"center\">"._AM_IMPRINT_IMP_ONLINE."</th> + + <th align=\"center\" width=\"10%\">"._AM_IMPRINT_FORMACTION."</th> + </tr>"; + + $class = "odd"; + + foreach (array_keys($imp_arr) as $i) + { + if ( $imp_arr[$i]->getVar("topic_pid") == 0) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_title")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_name")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_address")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_postalcode")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_city")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_phone")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_fax")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_email")."</td>"; + echo "<td align=\"center\"><img src=\"".XOOPS_URL."/uploads/imprint/imp/imp_image/".$imp_arr[$i]->getVar("imp_image")."\" height=\"30px\" title=\"imp_image\" alt=\"imp_image\"></td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_title_desclaimer")."</td>"; + echo "<td align=\"center\">".$imp_arr[$i]->getVar("imp_disclaimer")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($imp_arr[$i]->getVar("imp_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($imp_arr[$i]->getVar("imp_date_created"),"S")."</td>"; + + $online = $imp_arr[$i]->getVar("imp_online"); + + if( $online == 1 ) { + echo "<td align=\"center\"><a href=\"./imp.php?op=update_online_imp&imp_id=".$imp_arr[$i]->getVar("imp_id")."&imp_online=0\"><img src=\"./../images/deco/on.gif\" border=\"0\" alt=\""._AM_IMPRINT_ON."\" title=\""._AM_IMPRINT_ON."\"></a></td>"; + } else { + echo "<td align=\"center\"><a href=\"./imp.php?op=update_online_imp&imp_id=".$imp_arr[$i]->getVar("imp_id")."&imp_online=1\"><img src=\"./../images/deco/off.gif\" border=\"0\" alt=\""._AM_IMPRINT_OFF."\" title=\""._AM_IMPRINT_OFF."\"></a></td>"; + } + echo "<td align=\"center\" width=\"10%\"> + <a href=\"imp.php?op=edit_imp&imp_id=".$imp_arr[$i]->getVar("imp_id")."\"><img src=\"../images/deco/edit.gif\" alt=\""._AM_IMPRINT_EDIT."\" title=\""._AM_IMPRINT_EDIT."\"></a> + <a href=\"imp.php?op=delete_imp&imp_id=".$imp_arr[$i]->getVar("imp_id")."\"><img src=\"../images/deco/delete.gif\" alt=\""._AM_IMPRINT_DELETE."\" title=\""._AM_IMPRINT_DELETE."\"></a> + </td>"; + echo "</tr>"; + } + } + echo "</table><br><br>"; + } + + // Affichage du formulaire + $obj =& $impHandler->create(); + $form = $obj->getForm(); +} +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/admin/index.html =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/admin/index.html (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/admin/index.html 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/admin/index.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/admin/index.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/admin/index.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,74 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("./header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +imprint_adminmenu(0, _AM_IMPRINT_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_IMPRINT_MANAGER_INDEX); +} + //compte "total" + $count_imp = $impHandler->getCount(); + //compte "attente" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("imp_online", 1)); + $imp_online = $impHandler->getCount($criteria); + +include_once XOOPS_ROOT_PATH."/modules/imprint/class/menu.php"; + + $menu = new imprintMenu(); + $menu->addItem("imp", "imp.php", "../images/deco/topic.png", _AM_IMPRINT_MANAGER_IMP); + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=imprint", "../images/deco/update.png", _AM_IMPRINT_MANAGER_UPDATE); + /*$menu->addItem("permissions", "permissions.php", "../images/deco/permissions.png", _AM_IMPRINT_MANAGER_PERMISSIONS); */ + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_IMPRINT_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_IMPRINT_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px; height: 48px;\"><strong>"._AM_IMPRINT_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\" width=\"auto\">".$menu->render()."</td> + <td valign=\"top\" width=\"auto\">"; + + echo "<fieldset> + <legend class=\"CPmediumTitle\">"._AM_IMPRINT_MANAGER_IMP."</legend> + <br />"; + printf(_AM_IMPRINT_THEREARE_IMP, $count_imp); + echo "<br /><br />"; + printf(_AM_IMPRINT_THEREARE_IMP_ONLINE, $imp_online); + echo "<br /></fieldset><br /><br />"; +echo "</td></tr></table>"; +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/admin/menu.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/admin/menu.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/admin/menu.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,35 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_IMPRINT_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_IMPRINT_MANAGER_IMP; +$adminmenu[1]["link"] = "admin/imp.php"; +//$adminmenu[2]["title"] = _MI_IMPRINT_MANAGER_PERMISSIONS; +//$adminmenu[2]["link"] = "admin/permissions.php"; +$adminmenu[2]["title"] = _MI_IMPRINT_MANAGER_ABOUT; +$adminmenu[2]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/blocks/index.html =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/blocks/index.html (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/blocks/index.html 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/changelog.txt =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/changelog.txt (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/changelog.txt 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,11 @@ +Imprint Versione 1.01 +- Base mode +- Database mode with multiple pages + +Italiano +-------- +Questo modulo può essere modificato come vuoi, aggiungendo oppure sottraendo delle voci dal file xoops_version.php. Può essere utilizzato in vari modi anche con l'utilizzo delle tabelle del database che troverete allegato. In versione normale non fa uso di database, ma lo può fare. + +English +------- +This module can be modified as you wish, adding or subtracting items from the file xoops_version.php. It can be used in various ways including the use of database tables that you will find attached. In the normal version does not use databases, but will do so. \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/class/imp.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/class/imp.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/class/imp.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,135 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + + +if (!defined("XOOPS_ROOT_PATH")) { +die("XOOPS root path not defined"); +} + +if (!class_exists("XoopsPersistableObjectHandler")) { +include_once XOOPS_ROOT_PATH."/modules/imprint/class/object.php"; +} + +class imprint_imp extends XoopsObject +{ +//Constructor +function __construct() +{ +$this->XoopsObject(); +$this->initVar("imp_id",XOBJ_DTYPE_INT,null,false,8); +$this->initVar("imp_title",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_name",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_address",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_postalcode",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_city",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_phone",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_fax",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_email",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_image",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_title_desclaimer",XOBJ_DTYPE_TXTBOX,null,false); +$this->initVar("imp_disclaimer",XOBJ_DTYPE_TXTAREA,null,false); +$this->initVar("imp_submitter",XOBJ_DTYPE_INT,null,false,10); +$this->initVar("imp_date_created",XOBJ_DTYPE_INT,null,false,10); +$this->initVar("imp_online",XOBJ_DTYPE_INT,null,false,1); + +// Pour autoriser le html +$this->initVar("dohtml", XOBJ_DTYPE_INT, 1, false); + +} + +function imprint_imp() +{ +$this->__construct(); +} + +function getForm($action = false) +{ +global $xoopsDB, $xoopsModuleConfig; + +if ($action === false) { +$action = $_SERVER["REQUEST_URI"]; +} + +$title = $this->isNew() ? sprintf(_AM_IMPRINT_IMP_ADD) : sprintf(_AM_IMPRINT_IMP_EDIT); + +include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + +$form = new XoopsThemeForm($title, "form", $action, "post", true); +$form->setExtra('enctype="multipart/form-data"'); + +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_TITLE, "imp_title", 50, 255, $this->getVar("imp_title")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_NAME, "imp_name", 50, 255, $this->getVar("imp_name")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_ADDRESS, "imp_address", 50, 255, $this->getVar("imp_address")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_POSTALCODE, "imp_postalcode", 50, 255, $this->getVar("imp_postalcode")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_CITY, "imp_city", 50, 255, $this->getVar("imp_city")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_PHONE, "imp_phone", 50, 255, $this->getVar("imp_phone")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_FAX, "imp_fax", 50, 255, $this->getVar("imp_fax")), true); +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_EMAIL, "imp_email", 50, 255, $this->getVar("imp_email")), true); + +$imp_image = $this->getVar("imp_image") ? $this->getVar("imp_image") : 'blank.gif'; + +$uploadirectory_imp_image = '/uploads/imprint/imp/imp_image'; +$imgtray_imp_image = new XoopsFormElementTray(_AM_IMPRINT_IMP_IMAGE,'<br />'); +$imgpath_imp_image = sprintf(_AM_IMPRINT_FORMIMAGE_PATH, $uploadirectory_imp_image); +$imageselect_imp_image = new XoopsFormSelect($imgpath_imp_image, 'imp_image', $imp_image); +$image_array_imp_image = XoopsLists :: getImgListAsArray( XOOPS_ROOT_PATH.$uploadirectory_imp_image ); +foreach( $image_array_imp_image as $image_imp_image ) { +$imageselect_imp_image->addOption("$image_imp_image", $image_imp_image); +} +$imageselect_imp_image->setExtra( "onchange='showImgSelected(\"image_imp_image\", \"imp_image\", \"".$uploadirectory_imp_image."\", \"\", \"".XOOPS_URL."\")'" ); +$imgtray_imp_image->addElement($imageselect_imp_image, false); +$imgtray_imp_image->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadirectory_imp_image."/".$imp_image."' name='image_imp_image' id='image_imp_image' alt='' />" ) ); + +$fileseltray_imp_image = new XoopsFormElementTray('','<br />'); +$fileseltray_imp_image->addElement(new XoopsFormFile(_AM_IMPRINT_FORMUPLOAD , "imp_image", $xoopsModuleConfig["imp_image_size"]),false); +$fileseltray_imp_image->addElement(new XoopsFormLabel(''), false); +$imgtray_imp_image->addElement($fileseltray_imp_image); +$form->addElement($imgtray_imp_image); + +$form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_TITLE_DESCLAIMER, "imp_title_desclaimer", 50, 255, $this->getVar("imp_title_desclaimer")), true); +$form->addElement(new XoopsFormTextArea(_AM_IMPRINT_IMP_DISCLAIMER, "imp_disclaimer", $this->getVar("imp_disclaimer"), 4, 47), true); +$form->addElement(new XoopsFormSelectUser(_AM_IMPRINT_IMP_SUBMITTER, "imp_submitter", false, $this->getVar("imp_submitter"), 1, false), true); +$form->addElement(new XoopsFormTextDateSelect(_AM_IMPRINT_IMP_DATE_CREATED, "imp_date_created", "", $this->getVar("imp_date_created"))); + $imp_online = $this->isNew() ? 1 : $this->getVar("imp_online"); +$check_imp_online = new XoopsFormCheckBox(_AM_IMPRINT_IMP_ONLINE, "imp_online", $imp_online); +$check_imp_online->addOption(1, " "); +$form->addElement($check_imp_online); + +$form->addElement(new XoopsFormHidden("op", "save_imp")); +$form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); +$form->display(); +return $form; +} +} +class imprintimprint_impHandler extends XoopsPersistableObjectHandler +{ + +function __construct(&$db) +{ +parent::__construct($db, "imprint_imp", "imprint_imp", "imp_id", "imp_title"); +} + +} + +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/class/index.html =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/class/index.html (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/class/index.html 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/class/menu.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/class/menu.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/class/menu.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * imprint - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GNU GPL + * @package imprint + * @author TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.00: + * **************************************************************************** + */ + +class imprintMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/class/object.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/class/object.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/class/object.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criteria($this->keyName, intval($id)); + } + $criteria->setLimit(1); + $obj_array = $this->getObjects($criteria, false, $as_object); + if (count($obj_array) != 1) { + $obj = $this->create(); + return $obj; + } + return $obj_array[0]; + } + + /** + * retrieve objects from the database + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param bool $id_as_key use the ID as key for the array? + * @param bool $as_object return an array of objects? + * + * @return array + */ + function getObjects($criteria=null, $id_as_key=false, $as_object=true){ + $ret = array(); + $limit = $start = 0; + $sql = 'SELECT * FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + return $this->convertResultSet($result, $id_as_key, $as_object); + } + + /** + * Convert a database resultset to a returnable array + * + * @param object $result database resultset + * @param bool $id_as_key - should NOT be used with joint keys + * @param bool $as_object + * + * @return array + */ + function convertResultSet($result, $id_as_key = false, $as_object = true) { + $ret = array(); + while ($myrow = $this->db->fetchArray($result)) { + $obj =& $this->create(false); + $obj->assignVars($myrow); + if (!$id_as_key) { + if ($as_object) { + $ret[] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[] = $row; + } + } else { + if ($as_object) { + $ret[$myrow[$this->keyName]] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[$myrow[$this->keyName]] = $row; + } + } + unset($obj); + } + return $ret; + } + + /** + * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param int $limit Max number of objects to fetch + * @param int $start Which record to start at + * + * @return array + */ + function getList($criteria = null, $limit = 0, $start = 0) { + $ret = array(); + if ($criteria == null) { + $criteria = new CriteriaCompo(); + } + + if ($criteria->getSort() == '') { + $criteria->setSort($this->identifierName); + } + + $sql = 'SELECT '.$this->keyName; + if(!empty($this->identifierName)){ + $sql .= ', '.$this->identifierName; + } + $sql .= ' FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + $myts =& MyTextSanitizer::getInstance(); + while ($myrow = $this->db->fetchArray($result)) { + //identifiers should be textboxes, so sanitize them like that + $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); + } + return $ret; + } + + /** + * count objects matching a condition + * + * @param object $criteria {@link CriteriaElement} to match + * @return int count of objects + */ + function getCount($criteria=null){ + $field = ""; + $groupby = false; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + if ($criteria->groupby != "") { + $groupby = true; + $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used + } + } + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->groupby != "") { + $sql .= $criteria->getGroupby(); + } + } + $result = $this->db->query($sql); + if (!$result) { + return 0; + } + if ($groupby == false) { + list($count) = $this->db->fetchRow($result); + return $count; + } else { + $ret = array(); + while (list($id, $count) = $this->db->fetchRow($result)) { + $ret[$id] = $count; + } + return $ret; + } + } + + /** + * delete an object from the database + * + * @param object $obj reference to the object to delete + * @param bool $force + * @return bool FALSE if failed. + */ + function delete(&$obj, $force = false){ + if (is_array($this->keyName)) { + $clause = array(); + for ($i = 0; $i < count($this->keyName); $i++) { + $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + $whereclause = implode(" AND ", $clause); + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause; + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * insert a new object in the database + * + * @param object $obj reference to the object + * @param bool $force whether to force the query execution despite security settings + * @param bool $checkObject check if the object is dirty and clean the attributes + * @return bool FALSE if failed, TRUE if already present and unchanged or successful + */ + + function insert(&$obj, $force=false, $checkObject=true){ + if ($checkObject != false) { + if (!is_object($obj)) { + var_dump($obj); + return false; + } + /** + * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5 + */ + if (!is_a($obj, $this->className)) { + $obj->setErrors(get_class($obj)." Differs from ".$this->className); + return false; + } + if (!$obj->isDirty()) { + $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith + return true; + } + } + if (!$obj->cleanVars()) { + return false; + } + + foreach ($obj->cleanVars as $k => $v) { + if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { + $cleanvars[$k] = intval($v); + } elseif ( is_array( $v ) ) { + $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) ); + } else { + $cleanvars[$k] = $this->db->quoteString($v); + } + } + if ($obj->isNew()) { + if (!is_array($this->keyName)) { + if ($cleanvars[$this->keyName] < 1) { + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); + } + } + $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")"; + } else { + $sql = "UPDATE ".$this->table." SET"; + foreach ($cleanvars as $key => $value) { + if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) { + continue; + } + if (isset($notfirst) ) { + $sql .= ","; + } + $sql .= " ".$key." = ".$value; + $notfirst = true; + } + if (is_array($this->keyName)) { + $whereclause = ""; + for ($i = 0; $i < count($this->keyName); $i++) { + if ($i > 0) { + $whereclause .= " AND "; + } + $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql .= " WHERE ".$whereclause; + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + if ($obj->isNew() && !is_array($this->keyName)) { + $obj->assignVar($this->keyName, $this->db->getInsertId()); + } + return true; + } + + /** + * Change a value for objects with a certain criteria + * + * @param string $fieldname Name of the field + * @param string $fieldvalue Value to write + * @param object $criteria {@link CriteriaElement} + * @return bool + */ + function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){ + $set_clause = $fieldname . ' = '; + if ( is_numeric( $fieldvalue ) ) { + $set_clause .= $fieldvalue; + } elseif ( is_array( $fieldvalue ) ) { + $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) ); + } else { + $set_clause .= $this->db->quoteString( $fieldvalue ); + } + $sql = 'UPDATE '.$this->table.' SET '.$set_clause; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * delete all objects meeting the conditions + * + * @param object $criteria {@link CriteriaElement} with conditions to meet + * @return bool + */ + function deleteAll($criteria = null){ + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql = 'DELETE FROM '.$this->table; + $sql .= ' '.$criteria->renderWhere(); + if (!$this->db->queryF($sql)) { + return false; + } + $rows = $this->db->getAffectedRows(); + return $rows > 0 ? $rows : true; + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.01/imprint/header.php =================================================================== --- XoopsModules/imprint/releases/1.01/imprint/header.php (rev 0) +++ XoopsModules/imprint/releases/1.01/imprint/header.php 2012-02-15 12:57:49 UTC (rev 8990) @@ -0,0 +1,37 @@ +<?php +/** + * ************************************... [truncated message content] |
From: <txm...@us...> - 2012-02-15 12:53:32
|
Revision: 8989 http://xoops.svn.sourceforge.net/xoops/?rev=8989&view=rev Author: txmodxoops Date: 2012-02-15 12:53:19 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module googlemapsearch v1.05 Added Paths: ----------- XoopsModules/googlemapsearch/ XoopsModules/googlemapsearch/branches/ XoopsModules/googlemapsearch/releases/ XoopsModules/googlemapsearch/releases/1.05/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/about.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_footer.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_header.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/menu.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/blocks/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/blocks/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/menu.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/object.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/header.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/about.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/arrow.gif XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/delete.gif XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/edit.gif XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/off.gif XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/on.gif XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/permissions.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/pref.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/update.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/googlemapsearch_slogo.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/bg.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/left_both.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/right_both.png XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/common.js XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/default.js XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/functions.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/gsmapsearch.js XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/install.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/main.js XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/mod_control_api.js XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/mydirname.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/urchin.js XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/index.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/english/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/english/admin.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/english/blocks.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/english/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/english/main.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/english/modinfo.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/french/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/french/admin.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/french/blocks.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/french/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/french/main.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/french/modinfo.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/italian/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/italian/admin.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/italian/blocks.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/italian/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/italian/main.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/language/italian/modinfo.php XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/sql/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/sql/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/templates/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/templates/blocks/ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/templates/blocks/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/templates/googlemapsearch.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/templates/index.html XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/xoops_version.php XoopsModules/googlemapsearch/trunk/ Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/about.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/about.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/about.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,116 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +googlemapsearch_adminmenu(1, _AM_GOOGLEMAPSEARCH_MANAGER_ABOUT); + +echo "<style> +.CPbigTitle{ + font-size: 20px; + color: #1E90FF; + background: no-repeat left top; + font-weight: bold; + height: 40px; + vertical-align: middle; + padding: 10px 0 0 50px; + border-bottom: 3px solid #1E90FF; +} +</style>"; +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (1, _AM_GOOGLEMAPSEARCH_MANAGER_ABOUT); +} + +//menu +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/about.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_GOOGLEMAPSEARCH_MANAGER_ABOUT."</strong> +</div><br />"; + +$versioninfo =& $module_handler->get( $xoopsModule->getVar("mid") ); + +echo "<style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">".$xoopsModule->getVar("name")."</legend> + <div style=\"padding: 8px;\"> + <img src=\"".XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/".$versioninfo->getInfo("image")."\" alt=\"\" hspace=\"10\" vspace=\"0\" /></a>\n + <div style=\"padding: 5px;\"><strong>".$versioninfo->getInfo("name")." version ".$versioninfo->getInfo("version")."</strong></div>\n + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_RELEASEDATE.":</label><text>".$versioninfo->getInfo("release")."</text><br /> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_AUTHOR.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_CREDITS.":</label><text>".$versioninfo->getInfo("credits")."</text><br /> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_LICENSE.":</label><text><a href=\"".$versioninfo->getInfo("license_file")."\" target=\"_blank\" >".$versioninfo->getInfo("license")."</a></text>\n + </div> + </fieldset> +<br clear=\"all\"/> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_GOOGLEMAPSEARCH_ABOUT_MODULE_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_MODULE_STATUS.":</label><text>".$versioninfo->getInfo("module_status")."</text><br /> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("module_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("module_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" /> + + <fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_GOOGLEMAPSEARCH_ABOUT_AUTHOR_INFO."</legend> + <div style=\"padding: 8px;\"> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_AUTHOR_NAME.":</label><text>".$versioninfo->getInfo("author")."</text><br /> + <label>"._AM_GOOGLEMAPSEARCH_ABOUT_WEBSITE.":</label><text><a href=\"".$versioninfo->getInfo("author_website_url")."\" target=\"_blank\">".$versioninfo->getInfo("author_website_name")."</a></text><br /> + </div> + </fieldset> +<br clear=\"all\" />"; + +$file = XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/changelog.txt"; + +if ( is_readable( $file ) ){ +echo "<fieldset> + <legend style=\"font-weight: bold; color: #900;\">"._AM_GOOGLEMAPSEARCH_ABOUT_CHANGELOG."</legend> + <div style=\"padding: 8px;\"> + <div>".implode("<br />", file( $file ))."</div> + </div> + </fieldset> + <br clear=\"all\" />"; + +} +include_once("admin_footer.php"); +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_footer.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_footer.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_footer.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,29 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +echo "<br /><br />\n + <div align=\"center\"><a href=\"http://www.tdmxoops.net\" target=\"_blank\">\n + <img src=\"http://www.tdmxoops.net/images/logo_modules.gif\" alt=\"TDM\" title=\"TDM\"></a></div> +"; +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_header.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_header.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/admin_header.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,105 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstopic.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; +include_once("../include/functions.php"); + +$myts =& MyTextSanitizer::getInstance(); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("googlemapsearch"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage("admin", "system"); +xoops_loadLanguage("admin", $xoopsModule->getVar("dirname", "e")); +xoops_loadLanguage("modinfo", $xoopsModule->getVar("dirname", "e")); + +function googlemapsearch_adminmenu ($currentoption = 0, $breadcrumb = "") +{ + global $xoopsModule, $xoopsConfig; + + echo " + <style type=\"text/css\"> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url(".XOOPS_URL."/modules/googlemapsearch/images/menu/bg.png) repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url(".XOOPS_URL."/modules/googlemapsearch/images/deco/left_both.png) no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url(".XOOPS_URL."/modules/googlemapsearch/images/deco/right_both.png) no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + #buttonbar a span {float:none;} + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = Array(); + $tblColors[0] = $tblColors[1] = $tblColors[2] = $tblColors[3] = $tblColors[4] = $tblColors[5] = $tblColors[6] = $tblColors[7] = $tblColors[8] = ""; + $tblColors[$currentoption] = "current"; + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php")) { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/language/".$xoopsConfig["language"]."/modinfo.php"); + } else { + include_once("".XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar("dirname")."/english/modinfo.php"); + } + + echo "<div id=\"buttontop\"> + <table style=\"width: 100%; padding: 0;\" cellspacing=\"0\"> + <tr> + <td style=\"font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"> + <a class=\"nobutton\" href=\"".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$myts->displayTarea($xoopsModule->getVar("mid"))."\">_AM_GOOGLEMAPSEARCH_GENERALSET</a> + | <a href=\"".XOOPS_URL."/modules/googlemapsearch/index.php\">_AM_GOOGLEMAPSEARCH_GOINDEX</a> + | <a href=\"".XOOPS_URL."/modules/googlemapsearch/admin/upgrade.php\">_AM_GOOGLEMAPSEARCH_UPGRADE</a> + </td> + <td style=\"font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>".$myts->displayTarea($xoopsModule->name())."</b></td> + </tr> + </table> + </div> + + <div id=\"buttonbar\"> + <ul><li id=\"$tblColors[0]\"><a href=\"".XOOPS_URL."/modules/googlemapsearch/admin/index.php\"><span>_MI_GOOGLEMAPSEARCH_MANAGER_INDEX</span></a></li> + <li id=\"$tblColors[1]\"><a href=\"".XOOPS_URL."/modules/googlemapsearch/admin/about.php\"><span>_MI_GOOGLEMAPSEARCH_MANAGER_ABOUT</span></a></li> + </ul></div>"; +} + + +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.html =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.html (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.html 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/index.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +include_once("admin_header.php"); + +xoops_cp_header(); + +global $xoopsModule; + +//Apelle du menu admin +if ( !is_readable(XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php")) { +googlemapsearch_adminmenu(0, _AM_GOOGLEMAPSEARCH_MANAGER_INDEX); +} else { +include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php"; +loadModuleAdminMenu (0, _AM_GOOGLEMAPSEARCH_MANAGER_INDEX); +} + +include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/menu.php"; + + $menu = new googlemapsearchMenu(); + + $menu->addItem("update", "../../system/admin.php?fct=modulesadmin&op=update&module=googlemapsearch", "../images/deco/update.png", _AM_GOOGLEMAPSEARCH_MANAGER_UPDATE); + $menu->addItem("preference", "../../system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar("mid"). + "&&confcat_id=1", "../images/deco/pref.png", _AM_GOOGLEMAPSEARCH_MANAGER_PREFERENCES); + $menu->addItem("about", "about.php", "../images/deco/about.png", _AM_GOOGLEMAPSEARCH_MANAGER_ABOUT); + + echo $menu->getCSS(); + + +echo "<div class=\"CPbigTitle\" style=\"background-image: url(../images/deco/index.png); background-repeat: no-repeat; background-position: left; padding-left: 50px;\"><strong>"._AM_GOOGLEMAPSEARCH_MANAGER_INDEX."</strong></div><br /> + <table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"4\"> + <tr> + <td valign=\"top\">".$menu->render()."</td> + <td valign=\"top\" width=\"60%\">"; + + echo "</td> + </tr> + </table>"; +include_once("admin_footer.php"); +xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/menu.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/menu.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/admin/menu.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,31 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +$adminmenu = array(); +$adminmenu[0]["title"] = _MI_GOOGLEMAPSEARCH_MANAGER_INDEX; +$adminmenu[0]["link"] = "admin/index.php"; +$adminmenu[1]["title"] = _MI_GOOGLEMAPSEARCH_MANAGER_ABOUT; +$adminmenu[1]["link"] = "admin/about.php"; + +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/blocks/index.html =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/blocks/index.html (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/blocks/index.html 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/index.html =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/index.html (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/index.html 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/menu.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/menu.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/menu.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,176 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod () + * + * Version : 1.00: + * **************************************************************************** + */ + +class googlemapsearchMenu +{ + public $Width = 100; + public $Height = 100; + public $BgColor = "transparent"; + public $OverBgColor = "#FFF6C1"; + public $BorderWidth = 1; + public $BorderColor = "#CCCCCC"; + public $OverBorderColor = "#FF9900"; + public $BorderStyle = "solid"; + public $OverBorderStyle = "solid"; + public $Font = "Tahoma, Arial, Helvetica"; + public $FontColor = "#666666"; + public $OverFontColor = "#1E90FF"; + public $FontDeco = "none"; + public $OverFontDeco = "none"; + public $FontSize = 11; + public $FontWeight = "bold"; + public $FontExtra = "Tahoma, Arial, Helvetica"; + public $FontExtraColor = "#A98952"; + public $OverFontExtraColor = "#0033FF"; + public $FontExtraDeco = "underline"; + public $OverFontExtraDeco = "underline"; + public $FontExtraSize = 9; + public $FontExtraWeight = "normal"; + public $TextAlign = "center"; + private $_items = array(); + + public function addItem($id, $link="", $icon="", $name="", $extra="", $alt=""){ + if (isset($this->_items[$id])) return false; + $rtn["link"] = $link; + $rtn["icon"] = $icon; + $rtn["name"] = $name; + $rtn["extra"] = $extra; + $rtn["alt"] = $alt; + $this->_items[$id] = $rtn; + return true; + } + + public function setLink($id, $link){ + if (isset($this->_items[$id])){ + $this->_items[$id]["link"] = $link; + return true; + } else { + return false; + } + } + + public function setIcon($id, $icon){ + if (isset($this->_items[$id])){ + $this->_items[$id]["icon"] = $icon; + return true; + } else { + return false; + } + } + + public function setName($id, $name){ + if (isset($this->_items[$id])){ + $this->_items[$id]["name"] = $name; + return true; + } else { + return false; + } + } + + public function setExtra($id, $extra){ + if (isset($this->_items[$id])){ + $this->_items[$id]["extra"] = $extra; + return true; + } else { + return false; + } + } + + public function setAlt($id, $alt){ + if (isset($this->_items[$id])){ + $this->_items[$id]["alt"] = $alt; + return true; + } else { + return false; + } + } + + public function getCSS($ws = true){ + if ($ws) $csscode = "<style type=\"text/css\">\n<!--"; + $csscode .= "div.rmmenuicon{ + margin: 3px; + font-family: $this->Font; + text-align: ".$this->TextAlign."; + } + div.rmmenuicon a { + display: block; float: left; + height: ".$this->Height."px !important; + height: ".$this->Height."px; + width: ".$this->Width."px !important; + width: ".$this->Width."px; + vertical-align: middle; + text-decoration : none; + border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor; + padding: 2px 5px 1px 5px; + margin: 3px; + color: $this->FontColor; + } + div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; } + div.rmmenuicon a span { + font-size: ".$this->FontSize."px; + font-weight: $this->FontWeight; + display: block; + } + div.rmmenuicon a span.uno{ + font-size: ".$this->FontExtraSize."px; + font-weight: $this->FontExtraWeight; + text-decoration: $this->FontExtraDeco; + color: $this->FontExtraColor; + } + div.rmmenuicon a:hover{ + background-color: $this->OverBgColor; + border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor; + color: $this->OverFontColor; + } + div.rmmenuicon a:hover span{ + text-decoration: $this->OverFontDeco; + } + div.rmmenuicon a:hover span.uno{ + text-decoration: $this->OverFontExtraDeco; + color: $this->OverFontExtraColor; + }"; + if ($ws) $csscode .= "\n-->\n</style>"; + return $csscode; + } + + public function render(){ + + $ret = "<div class=\"rmmenuicon\">"; + foreach ($this->_items as $k => $v){ + $ret .= "<a href=\"".$v["link"]."\" title=\"".($v["alt"]!="" ? $v["alt"] : $v["name"])."\">".($v["icon"]!="" ? "<img src=\"".$v["icon"]."\" alt=\"".$v["name"]."\" /> " : ""); + if ($v["name"] != "") $ret .= "<span>".$v["name"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + if ($v["extra"] != "") $ret .= "<span class=\"uno\">".$v["extra"]."</span>"; + $ret .= "</a>"; + } + $ret .= "</div><div style=\"clear: both;\"></div>"; + return $ret; + } + + public function display(){ + echo $this->render(); + } +} + +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/object.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/object.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/class/object.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,412 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * Cette licence, contient des limitations!!! + * + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +class XoopsPersistableObjectHandler extends XoopsObjectHandler{ + + /** + * Information about the class, the handler is managing + * + * @var string + */ + var $table; + var $keyName; + var $className; + var $identifierName; + + + /** + * Constructor - called from child classes + * @param object $db {@link XoopsDatabase} object + * @param string $tablename Name of database table + * @param string $classname Name of Class, this handler is managing + * @param string $keyname Name of the property, holding the key + * + * @return void + */ + function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) { + $this->XoopsObjectHandler($db); + $this->table = $db->prefix($tablename); + $this->keyName = $keyname; + $this->className = $classname; + if ($idenfierName != false) { + $this->identifierName = $idenfierName; + } + } + + /** + * create a new user + * + * @param bool $isNew Flag the new objects as "new"? + * + * @return object + */ + function &create($isNew = true) { + $obj =& new $this->className(); + if ($isNew === true) { + $obj->setNew(); + } + return $obj; + } + + /** + * retrieve an object + * + * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor + * @param bool $as_object whether to return an object or an array + * @return mixed reference to the object, FALSE if failed + */ + function &get($id, $as_object=true) { + if (is_array($this->keyName)) { + $criteria = new CriteriaCompo(); + for ($i = 0; $i < count($this->keyName); $i++) { + $criteria->add(new Criteria($this->keyName[$i], intval($id[$i]))); + } + } else { + $criteria = new Criteria($this->keyName, intval($id)); + } + $criteria->setLimit(1); + $obj_array = $this->getObjects($criteria, false, $as_object); + if (count($obj_array) != 1) { + $obj = $this->create(); + return $obj; + } + return $obj_array[0]; + } + + /** + * retrieve objects from the database + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param bool $id_as_key use the ID as key for the array? + * @param bool $as_object return an array of objects? + * + * @return array + */ + function getObjects($criteria=null, $id_as_key=false, $as_object=true){ + $ret = array(); + $limit = $start = 0; + $sql = 'SELECT * FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + return $this->convertResultSet($result, $id_as_key, $as_object); + } + + /** + * Convert a database resultset to a returnable array + * + * @param object $result database resultset + * @param bool $id_as_key - should NOT be used with joint keys + * @param bool $as_object + * + * @return array + */ + function convertResultSet($result, $id_as_key = false, $as_object = true) { + $ret = array(); + while ($myrow = $this->db->fetchArray($result)) { + $obj =& $this->create(false); + $obj->assignVars($myrow); + if (!$id_as_key) { + if ($as_object) { + $ret[] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[] = $row; + } + } else { + if ($as_object) { + $ret[$myrow[$this->keyName]] =& $obj; + } else { + $row = array(); + $vars = $obj->getVars(); + foreach (array_keys($vars) as $i) { + $row[$i] = $obj->getVar($i); + } + $ret[$myrow[$this->keyName]] = $row; + } + } + unset($obj); + } + return $ret; + } + + /** + * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS + * + * @param object $criteria {@link CriteriaElement} conditions to be met + * @param int $limit Max number of objects to fetch + * @param int $start Which record to start at + * + * @return array + */ + function getList($criteria = null, $limit = 0, $start = 0) { + $ret = array(); + if ($criteria == null) { + $criteria = new CriteriaCompo(); + } + + if ($criteria->getSort() == '') { + $criteria->setSort($this->identifierName); + } + + $sql = 'SELECT '.$this->keyName; + if(!empty($this->identifierName)){ + $sql .= ', '.$this->identifierName; + } + $sql .= ' FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->getSort() != '') { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + $limit = $criteria->getLimit(); + $start = $criteria->getStart(); + } + $result = $this->db->query($sql, $limit, $start); + if (!$result) { + return $ret; + } + $myts =& MyTextSanitizer::getInstance(); + while ($myrow = $this->db->fetchArray($result)) { + //identifiers should be textboxes, so sanitize them like that + $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]); + } + return $ret; + } + + /** + * count objects matching a condition + * + * @param object $criteria {@link CriteriaElement} to match + * @return int count of objects + */ + function getCount($criteria=null){ + $field = ""; + $groupby = false; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + if ($criteria->groupby != "") { + $groupby = true; + $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used + } + } + $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + if ($criteria->groupby != "") { + $sql .= $criteria->getGroupby(); + } + } + $result = $this->db->query($sql); + if (!$result) { + return 0; + } + if ($groupby == false) { + list($count) = $this->db->fetchRow($result); + return $count; + } else { + $ret = array(); + while (list($id, $count) = $this->db->fetchRow($result)) { + $ret[$id] = $count; + } + return $ret; + } + } + + /** + * delete an object from the database + * + * @param object $obj reference to the object to delete + * @param bool $force + * @return bool FALSE if failed. + */ + function delete(&$obj, $force = false){ + if (is_array($this->keyName)) { + $clause = array(); + for ($i = 0; $i < count($this->keyName); $i++) { + $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + $whereclause = implode(" AND ", $clause); + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause; + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * insert a new object in the database + * + * @param object $obj reference to the object + * @param bool $force whether to force the query execution despite security settings + * @param bool $checkObject check if the object is dirty and clean the attributes + * @return bool FALSE if failed, TRUE if already present and unchanged or successful + */ + + function insert(&$obj, $force=false, $checkObject=true){ + if ($checkObject != false) { + if (!is_object($obj)) { + var_dump($obj); + return false; + } + /** + * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5 + */ + if (!is_a($obj, $this->className)) { + $obj->setErrors(get_class($obj)." Differs from ".$this->className); + return false; + } + if (!$obj->isDirty()) { + $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith + return true; + } + } + if (!$obj->cleanVars()) { + return false; + } + + foreach ($obj->cleanVars as $k => $v) { + if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) { + $cleanvars[$k] = intval($v); + } elseif ( is_array( $v ) ) { + $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) ); + } else { + $cleanvars[$k] = $this->db->quoteString($v); + } + } + if ($obj->isNew()) { + if (!is_array($this->keyName)) { + if ($cleanvars[$this->keyName] < 1) { + $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq'); + } + } + $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")"; + } else { + $sql = "UPDATE ".$this->table." SET"; + foreach ($cleanvars as $key => $value) { + if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) { + continue; + } + if (isset($notfirst) ) { + $sql .= ","; + } + $sql .= " ".$key." = ".$value; + $notfirst = true; + } + if (is_array($this->keyName)) { + $whereclause = ""; + for ($i = 0; $i < count($this->keyName); $i++) { + if ($i > 0) { + $whereclause .= " AND "; + } + $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]); + } + } else { + $whereclause = $this->keyName." = ".$obj->getVar($this->keyName); + } + $sql .= " WHERE ".$whereclause; + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + if ($obj->isNew() && !is_array($this->keyName)) { + $obj->assignVar($this->keyName, $this->db->getInsertId()); + } + return true; + } + + /** + * Change a value for objects with a certain criteria + * + * @param string $fieldname Name of the field + * @param string $fieldvalue Value to write + * @param object $criteria {@link CriteriaElement} + * @return bool + */ + function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){ + $set_clause = $fieldname . ' = '; + if ( is_numeric( $fieldvalue ) ) { + $set_clause .= $fieldvalue; + } elseif ( is_array( $fieldvalue ) ) { + $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) ); + } else { + $set_clause .= $this->db->quoteString( $fieldvalue ); + } + $sql = 'UPDATE '.$this->table.' SET '.$set_clause; + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql .= ' '.$criteria->renderWhere(); + } + if (false != $force) { + $result = $this->db->queryF($sql); + } else { + $result = $this->db->query($sql); + } + if (!$result) { + return false; + } + return true; + } + + /** + * delete all objects meeting the conditions + * + * @param object $criteria {@link CriteriaElement} with conditions to meet + * @return bool + */ + function deleteAll($criteria = null){ + if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { + $sql = 'DELETE FROM '.$this->table; + $sql .= ' '.$criteria->renderWhere(); + if (!$this->db->queryF($sql)) { + return false; + } + $rows = $this->db->getAffectedRows(); + return $rows > 0 ? $rows : true; + } + return false; + } +} +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/header.php =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/header.php (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/header.php 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,28 @@ +<?php +/** + * **************************************************************************** + * Module g\xE9n\xE9r\xE9 par TDMCreate de la TDM "http://www.tdmxoops.net" + * **************************************************************************** + * Google Map Search - MODULE FOR XOOPS AND IMPRESS CMS + * Copyright (c) txmod (http://txmod.netsons.org) + * + * 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 txmod (http://txmod.netsons.org) + * @license GNU GPL + * @package Google Map Search + * @author txmod (txm...@gm...) + * + * Version : 1.00: + * **************************************************************************** + */ +include("../../mainfile.php"); +include "include/mydirname.php"; +global $xoopsTpl, $xoopsModuleConfig; + +?> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/arrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/delete.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/delete.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/edit.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/edit.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.html =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.html (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.html 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/off.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/off.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/on.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/on.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/pref.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/pref.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/update.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/deco/update.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/googlemapsearch_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/googlemapsearch_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/index.html =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/index.html (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/index.html 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/index.html =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/index.html (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/index.html 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/left_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/left_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/right_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/images/menu/right_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/common.js =================================================================== --- XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/common.js (rev 0) +++ XoopsModules/googlemapsearch/releases/1.05/googlemapsearch/include/common.js 2012-02-15 12:53:19 UTC (rev 8989) @@ -0,0 +1,654 @@ +function parseCgiParams(str) { + var params = {}; + str = str.replace(/#.*$/,""); + var urlHalves = str.split("?"); + var parts = urlHalves[urlHalves.length - 1].split("&"); + for (var i = 0; i < parts.length; i++) { + var keyvalue = parts[i].split("="); + if (keyvalue[0]) { // in case parts[i] is empty + params[keyvalue[0].toLowerCase()] = + keyvalue.length > 1 ? urlDecode(keyvalue[1]) : ""; + } + } + params["<<BASEPAGE>>"] = urlHalves[0]; + return params; +} + +// URL-decodes the string. We need to specially handle '+'s because +// the javascript library doesn't properly convert them to spaces +var plus_re_ = /\+/g; +function urlDecode(str) { + return decodeURIComponent(str.replace(plus_re_, ' ')); +} + +// e.g., ABQIAAAATdeyMKVMEFPfZpv20xC45BTRERdeAiwZ9EeJWta3L_JZVS0bOBQD53LFwS04JmT5XsI_dLLI91YRLg +var KEY_RE = /^([a-zA-Z0-9\-\_=]{86})|(internal.*)$/ +function getKeyFromParams(params) { + var rv = null; + + if (params['key']) { + passedKey = params['key']; + if (passedKey.match(KEY_RE)) { + return passedKey; + } + } + return null; +} + +var squote_re_ = /\'/g; +var quote_re_ = /\"/g; +var amp_re_ = /&/g; +var lt_re_ = /</g; +var gt_re_ = />/g; +var script_re_ = /<.*?script.*?>/g; +function HtmlEscape(str) { + if (!str) return ""; + return str.replace(amp_re_, "&").replace(lt_re_, "<"). + replace(gt_re_, ">").replace(quote_re_, """). + replace(squote_re_, "'").replace(script_re_, ""); + +} + +var leadingws_re_ = /^\s*/; +var trailingws_re_ = /\s*$/; +function TrimWS(str) { + if (!str) return ""; + return str.replace(leadingws_re_, "").replace(trailingws_re_, ""); +} + +function cssSetClass(el, className) { + el.className = className; +} + +function methodClosure(object, method, opt_argArray) { + return function() { + return method.apply(object, opt_argArray); + } +} + +Twidler.MINIMIZE = "minimize"; +Twidler.MAXIMIZE = "maximize"; +function Twidler(header, container, minimizeString, maximizeString, state, + headerClassPrefix, containerClassPrefix) { + this.header = header; + this.container = container; + this.stateData = new Array(); + this.stateData[Twidler.MINIMIZE] = { + value : minimizeString, + headerClass : headerClassPrefix + Twidler.MINIMIZE, + containerClass : containerClassPrefix + Twidler.MINIMIZE + }; + this.stateData[Twidler.MAXIMIZE] = { + value : maximizeString, + headerClass : headerClassPrefix + Twidler.MAXIMIZE, + containerClass : containerClassPrefix + Twidler.MAXIMIZE + }; + this.state = state; + this.header.onclick = methodClosure(this, Twidler.prototype.twiddle, []); + this.setState(this.state); +} + +Twidler.prototype.setState = function(state) { + this.state = state; + this.header.value = this.stateData[state].value; + cssSetClass(this.header, this.stateData[state].headerClass); + cssSetClass(this.container, this.stateData[state].containerClass); +} + +Twidler.prototype.twiddle = function() { + var newState; + if (this.state == Twidler.MINIMIZE) { + newState = Twidler.MAXIMIZE; + } else { + newState = Twidler.MINIMIZE; + } + this.setState(newState); +} + +Wizard.FT_STRING = "string"; +Wizard.FT_STRING_LIST = "string-list"; +Wizard.FT_URL = "url"; +Wizard.FT_KEY = "key"; +Wizard.FT_INT = "int"; +Wizard.FT_CHECKBOX = "check"; +Wizard.FT_RADIO = "radio"; +function Wizard(form, keyCell, config, baseName) { + this.form = form; + this.keyCell = keyCell; + this.config = config; + this.baseName = baseName; +} + +var KEY_RE = /^([a-zA-Z0-9\-\_=]{86})|(internal.*)$/ +var URL_RE = /^http[s]?:\/\/.*$/ +var SMALLINT_RE = /^\d{1,4}$/ +// read the form and return an array of captured content +Wizard.prototype.captureForm = function(allowInvalidEntries) { + + var args = new Array(); + var rv = args; + + for (var i=0; i<this.config.length; i++) { + var desc = this.config[i]; + var obj; + var valid; + var element; + var elementWrap; + var value; + + obj = new Object(); + element = this.form[desc.elementName]; + elementWrap = document.getElementById(desc.elementName + "_wrap"); + + switch (desc.type) { + case Wizard.FT_STRING: + value = HtmlEscape(element.value); + if (value != null && value != "") { + valid = true; + } else { + valid = false; + } + break; + + case Wizard.FT_STRING_LIST: + value = HtmlEscape(element.value); + if (value != null && value != "") { + // now split the comma seperated list into an array + var listItems = value.split(","); + + var processedList = new Array(); + // now, for each non-null item, strip leading and trailing whitespace + // and push into value array + for (var li=0; li < listItems.length; li++) { + var str = listItems[li]; + if (str && str != "") { + var tstr = TrimWS(str); + if (tstr && tstr != "") { + processedList.push(tstr); + } + } + } + + if (processedList.length > 0) { + value = processedList; + valid = true; + } else { + valid = false; + } + } else { + valid = false; + } + break; + + case Wizard.FT_URL: + value = HtmlEscape(element.value); + if (value.match(URL_RE)) { + valid = true; + } else { + valid = false; + } + if (desc.siteUrl) { + obj.siteUrl = true; + } + break; + + case Wizard.FT_KEY: + value = HtmlEscape(element.value); + if (value.match(KEY_RE)) { + valid = true; + } else { + valid = false; + } + break; + + case Wizard.FT_INT: + value = HtmlEscape(element.value); + if (value.match(SMALLINT_RE)) { + if (value >= desc.range[0] && value <= desc.range[1]) { + valid = true; + } else { + valid = false; + } + } else { + valid = false; + } + break; + + case Wizard.FT_RADIO: + value = desc.valueMap[0]; + for (var r=0; r<desc.range; r++) { + if (element[r].checked) { + value = desc.valueMap[r]; + obj... [truncated message content] |
From: <txm...@us...> - 2012-02-15 12:42:56
|
Revision: 8988 http://xoops.svn.sourceforge.net/xoops/?rev=8988&view=rev Author: txmodxoops Date: 2012-02-15 12:42:42 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module googledocsearch v1.01 Added Paths: ----------- XoopsModules/googledocssearch/ XoopsModules/googledocssearch/branches/ XoopsModules/googledocssearch/releases/ XoopsModules/googledocssearch/releases/1.01/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/header.php XoopsModules/googledocssearch/releases/1.01/googledocssearch/image.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/image_files/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/image_files/api XoopsModules/googledocssearch/releases/1.01/googledocssearch/image_files/default.js XoopsModules/googledocssearch/releases/1.01/googledocssearch/image_files/gsearch.css XoopsModules/googledocssearch/releases/1.01/googledocssearch/image_files/nocover.png XoopsModules/googledocssearch/releases/1.01/googledocssearch/image_files/small-logo.png XoopsModules/googledocssearch/releases/1.01/googledocssearch/images/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/images/googledocssearch_slogo.png XoopsModules/googledocssearch/releases/1.01/googledocssearch/images/index.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/images/nocover.png XoopsModules/googledocssearch/releases/1.01/googledocssearch/images/small-logo.png XoopsModules/googledocssearch/releases/1.01/googledocssearch/include/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/include/api XoopsModules/googledocssearch/releases/1.01/googledocssearch/include/default.js XoopsModules/googledocssearch/releases/1.01/googledocssearch/index.php XoopsModules/googledocssearch/releases/1.01/googledocssearch/style/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/style/gsearch.css XoopsModules/googledocssearch/releases/1.01/googledocssearch/style/style.css XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/ XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/Copia di googledocssearch.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/googleajaxsearch.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/googledocssearch.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/googledocssearch_my.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/googledocssearch_my.html.bak XoopsModules/googledocssearch/releases/1.01/googledocssearch/templates/index.html XoopsModules/googledocssearch/releases/1.01/googledocssearch/xoops_version.php XoopsModules/googledocssearch/trunk/ Added: XoopsModules/googledocssearch/releases/1.01/googledocssearch/header.php =================================================================== --- XoopsModules/googledocssearch/releases/1.01/googledocssearch/header.php (rev 0) +++ XoopsModules/googledocssearch/releases/1.01/googledocssearch/header.php 2012-02-15 12:42:42 UTC (rev 8988) @@ -0,0 +1,8 @@ +<?php +// +// Author: timgno +// +include("../../mainfile.php"); +global $xoopsTpl; + +?> \ No newline at end of file Added: XoopsModules/googledocssearch/releases/1.01/googledocssearch/image.html =================================================================== --- XoopsModules/googledocssearch/releases/1.01/googledocssearch/image.html (rev 0) +++ XoopsModules/googledocssearch/releases/1.01/googledocssearch/image.html 2012-02-15 12:42:42 UTC (rev 8988) @@ -0,0 +1,181 @@ +<html><head> + + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Image Search Control Sample</title><!-- + note: should be http://www.google.com/uds/api? and + http://www.google.com/uds/css/gsearch.css + --> + + + + <script src="image_files/api" type="text/javascript"></script><script src="image_files/default.js" type="text/javascript"></script> + <link href="image_files/gsearch.css" rel="stylesheet" type="text/css"> + + <style type="text/css"> + body, table, p{ + background-color: white; + font-family: Arial, sans-serif; + font-size: 13px; + } + + table.search-control { + width : 100%; + } + + table.search-control .gsc-control { + width : 100%; + } + + td.left { + width : 300px; + padding-right : 20px; + } + + td { + vertical-align : top; + } + + /* Disable built in search forms */ + .gsc-control form.gsc-search-box { + display : none; + } + + /* restrict global search form width */ + #searchForm { + width : 300px; + } + + #leftSearchControl .gsc-resultsRoot { + padding-top : 6px; + } + + /* for demonstration purposes ONLY. This is not ok by the terms */ + #rightSearchControl .gsc-ad-box { + display : none; + } + + /* long form visible urls should be on */ + .gsc-webResult div.gs-visibleUrl-long { + display : block; + } + + .gsc-webResult div.gs-visibleUrl-short { + display : none; + } + + + </style> + <script type="text/javascript"> + + // the se class encapsulates a left and right search control + // both controls are driven by a shared search form + function se() { + var sFormDiv = document.getElementById("searchForm"); + var leftScDiv = document.getElementById("leftSearchControl"); + var rightScDiv = document.getElementById("rightSearchControl"); + + // create a left, right search control + // create a custom search form + this.leftControl = new GSearchControl(); + this.rightControl = new GSearchControl(); + this.searchForm = new GSearchForm(true, sFormDiv); + + // bind clear and submit functions + this.searchForm.setOnSubmitCallback(this, se.prototype.onSubmit); + this.searchForm.setOnClearCallback(this, se.prototype.onClear); + + // set up for large result sets + this.leftControl.setResultSetSize(GSearch.LARGE_RESULTSET); + this.rightControl.setResultSetSize(GSearch.LARGE_RESULTSET); + + var searcher; + var options; + + // configure left control + // vertical layout, image and blog + this.leftControl.addSearcher(new GimageSearch()); + this.leftControl.addSearcher(new GvideoSearch()); + + // configure right control + // tabbed layout image, web, news, video + this.rightControl.addSearcher(new GimageSearch()); + this.rightControl.addSearcher(new GwebSearch()); + this.rightControl.addSearcher(new GnewsSearch()); + this.rightControl.addSearcher(new GblogSearch()); + this.rightControl.addSearcher(new GbookSearch()); + + var drawOptions = new GdrawOptions(); + drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED); + + this.rightControl.setNoResultsString(GSearchControl.NO_RESULTS_DEFAULT_STRING); + this.leftControl.setNoResultsString(GSearchControl.NO_RESULTS_DEFAULT_STRING); + this.leftControl.draw(leftScDiv); + this.rightControl.draw(rightScDiv, drawOptions); + + // execute a starter search + this.searchForm.execute("Ferrari"); + + } + + // when the form fires a submit, grab its + // value and call the left and right control + se.prototype.onSubmit = function(form) { + var q = form.input.value; + if (q && q!= "") { + this.leftControl.execute(q); + this.rightControl.execute(q); + } + return false; + } + + // when the form fires a clear, call the left and right control + se.prototype.onClear = function(form) { + this.leftControl.clearAllResults(); + this.rightControl.clearAllResults(); + form.input.value = ""; + return false; + } + + function OnLoad() { + new se(); + } + GSearch.setOnLoadCallback(OnLoad); + </script></head><body> + <div id="searchForm"><form accept-charset="utf-8" class="gsc-search-box"><table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-input"><input title="ricerca" name="search" class="gsc-input" size="10" autocomplete="off" type="text"></td><td class="gsc-search-button"><input title="ricerca" class="gsc-search-button" value="Cerca" type="submit"></td><td class="gsc-clear-button"><div title="cancella i risultati" class="gsc-clear-button"> </div></td></tr></tbody></table><table class="gsc-branding" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-branding-user-defined"></td><td class="gsc-branding-text"><div class="gsc-branding-text">powered by</div></td><td class="gsc-branding-img"><img class="gsc-branding-img" src="image_files/small-logo.png"></td></tr></tbody></table></form></div> + <table class="search-control"> + <tbody><tr><td class="left"> + <div id="leftSearchControl" class="search-control"><div class="gsc-control"><form accept-charset="utf-8" class="gsc-search-box"><table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-input"><input title="ricerca" name="search" class="gsc-input" size="10" autocomplete="off" type="text"></td><td class="gsc-search-button"><input title="ricerca" class="gsc-search-button" value="Cerca" type="submit"></td><td class="gsc-clear-button"><div title="cancella i risultati" class="gsc-clear-button"> </div></td></tr></tbody></table><table class="gsc-branding" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-branding-user-defined"></td><td class="gsc-branding-text"><div class="gsc-branding-text">powered by</div></td><td class="gsc-branding-img"><img class="gsc-branding-img" src="image_files/small-logo.png"></td></tr></tbody></table></form><div class="gsc-resultsbox-visible"><div class="gsc-resultsRoot"><table class="gsc-resultsHeader" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-twiddleRegionCell gsc-twiddle-opened"><div class="gsc-twiddle"><div class="gsc-title">Immagine</div></div><div class="gsc-stats">(8)</div><div class="gsc-results-selector gsc-one-result-active"><div title="mostra un risultato" class="gsc-result-selector gsc-one-result"> </div><div title="mostra altri risultati" class="gsc-result-selector gsc-more-results"> </div><div title="mostra tutti i risultati" class="gsc-result-selector gsc-all-results"> </div></div></td><td class="gsc-configLabelCell"></td></tr></tbody></table><div style="display: block;" class="gsc-results gsc-imageResult"><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.autoshopitalia.com/public/public/2006/10/art_15823_2_ferrari_01.jpg"><img title="art_15823_2_ferrari_01.jpg (www.autoshopitalia.com)" style="left: 0px;" class="gs-image" src="image_files/images_003.jpg" height="81" width="112"></a></div><div class="gs-text-box"><div title="Ferrari: concept car e trazione ..." class="gs-snippet"><b>Ferrari</b>: concept car e trazione <b>...</b></div><div class="gs-size">520 x 376</div><div title="www.autoshopitalia.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.autoshopitalia.com/tag/lamborghini/page/8/">www.autoshopitalia.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://pasquale2.files.wordpress.com/2007/02/michelle-ferrari.jpg"><img title="michelle-ferrari.jpg (pasquale2.wordpress.com)" style="left: 0px;" class="gs-image" src="image_files/images_002.jpg" height="84" width="112"></a></div><div class="gs-text-box"><div title="Michelle Ferrari" class="gs-snippet">Michelle <b>Ferrari</b></div><div class="gs-size">550 x 413</div><div title="pasquale2.wordpress.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://pasquale2.wordpress.com/2007/02/23/michelle-ferrari/">pasquale2.wordpress.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div style="display: none;" class="gsc-expansionArea"><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.simoneercoli.com/immagini_wordpress/ferrari.jpg"><img title="ferrari.jpg (www.simoneercoli.com)" style="left: 0px;" class="gs-image" src="image_files/images_008.jpg" height="83" width="112"></a></div><div class="gs-text-box"><div title="Ferrari fashion" class="gs-snippet"><b>Ferrari</b> fashion</div><div class="gs-size">400 x 296</div><div title="www.simoneercoli.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.simoneercoli.com/category/cavolate-varie/">www.simoneercoli.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.calshop.biz/FERRARI.jpg"><img title="FERRARI.jpg (www.calshop.biz)" style="left: 0px;" class="gs-image" src="image_files/images.jpg" height="70" width="112"></a></div><div class="gs-text-box"><div title="FERRARI, ARRIVA LA NUOVA F430 SPIDER ..." class="gs-snippet"><b>FERRARI</b>, ARRIVA LA NUOVA F430 SPIDER <b>...</b></div><div class="gs-size">550 x 342</div><div title="www.calshop.biz" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.calshop.biz/ferrari_f430_spider.html">www.calshop.biz</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.mart.trento.it/UploadImgs/1182_Ferrari_F_40__1987___La_Presse_Ferrari_Spa.jpg"><img title="1182_Ferrari_F_40__1987___La_Presse_ ... (www.mart.trento.it)" style="left: 4px;" class="gs-image" src="image_files/images_007.jpg" height="84" width="104"></a></div><div class="gs-text-box"><div title="Ferrari F 40, 1987 © La Presse ..." class="gs-snippet"><b>Ferrari</b> F 40, 1987 © La Presse <b>...</b></div><div class="gs-size">4961 x 4000</div><div title="www.mart.trento.it" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.mart.trento.it/intranet_newsletter.jsp?area=42&ID_LINK=59&page=61">www.mart.trento.it</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.wallpaperez.net/wallpaper/car/Ferrari-612-Scaglietti-938.jpg"><img title="Ferrari-612-Scaglietti-938.jpg (www.wallpaperez.net)" style="left: 0px;" class="gs-image" src="image_files/images_006.jpg" height="70" width="112"></a></div><div class="gs-text-box"><div title="Tutte sfondi con Ferrari" class="gs-snippet">Tutte sfondi con <b>Ferrari</b></div><div class="gs-size">1920 x 1200</div><div title="www.wallpaperez.net" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.wallpaperez.net/it/car/Ferrari-612-Scaglietti-938.html">www.wallpaperez.net</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://portfolio.tirolle.net/fichiers/Wallpapers/20060619/Ferrari_FXX.jpg"><img title="Ferrari_FXX.jpg (donbosco94.wordpress.com)" style="left: 0px;" class="gs-image" src="image_files/images_004.jpg" height="84" width="112"></a></div><div class="gs-text-box"><div title="Ferrari FXX" class="gs-snippet"><b>Ferrari</b> FXX</div><div class="gs-size">1024 x 768</div><div title="donbosco94.wordpress.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://donbosco94.wordpress.com/2007/12/17/ferrari-fxx-lauto-stradale-da-f1/">donbosco94.wordpress.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.radio.rai.it/radiorai/online/ev_images/ferrari3.jpg"><img title="ferrari3.jpg (www.radio.rai.it)" style="left: 14px;" class="gs-image" src="image_files/images_005.jpg" height="84" width="84"></a></div><div class="gs-text-box"><div title="LA FERRARI: UN MITO ITALIANO" class="gs-snippet">LA <b>FERRARI</b>: UN MITO ITALIANO</div><div class="gs-size">300 x 300</div><div title="www.radio.rai.it" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.radio.rai.it/radio3/view.cfm?Q_EV_ID=154122&Q_PROG_ID=502">www.radio.rai.it</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-cursor-box"><div class="gsc-cursor"><div class="gsc-cursor-page gsc-cursor-current-page">1</div><div class="gsc-cursor-page">2</div><div class="gsc-cursor-page">3</div><div class="gsc-cursor-page">4</div></div><div class="gsc-trailing-more-results"><a target="_blank" class="gsc-trailing-more-results" href="http://www.google.com/images?oe=utf8&ie=utf8&source=uds&start=0&hl=it&q=Ferrari">Altri risultati »</a></div></div></div></div></div><div class="gsc-resultsRoot"><table class="gsc-resultsHeader" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-twiddleRegionCell gsc-twiddle-opened"><div class="gsc-twiddle"><div class="gsc-title">Video</div></div><div class="gsc-stats">(8)</div><div class="gsc-results-selector gsc-one-result-active"><div title="mostra un risultato" class="gsc-result-selector gsc-one-result"> </div><div title="mostra altri risultati" class="gsc-result-selector gsc-more-results"> </div><div title="mostra tutti i risultati" class="gsc-result-selector gsc-all-results"> </div></div></td><td class="gsc-configLabelCell"><span title="impostazioni" class="gsc-configLabel gsc-twiddle-closed"> </span></td></tr></tbody></table><div style="display: none;" class="gsc-config gsc-videoConfig"><form class="gsc-config gsc-videoConfig"></form></div><div style="display: block;" class="gsc-results gsc-videoResult"><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=8457042397326651981&esrc=rss_uds&ev=v&len=38&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdV1zQMcSsk0&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D8457042397326651981%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H23EuwVh13NY6XDfwuZKc4kHjYxogw"><img class="gs-image" src="image_files/2_002.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=8457042397326651981&esrc=rss_uds&ev=v&len=38&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdV1zQMcSsk0&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D8457042397326651981%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H23EuwVh13NY6XDfwuZKc4kHjYxogw">Smart Fortwo Diablo vs Ferrari F430</a></div><div class="gs-snippet">1/4 +mile drag race between a Ferrari F430 and a Smart Fortwo Diablo fitted +with a 180Hp Suzuki GSXR 1000 engine. And no, the Ferrari didn' win...</div><div class="gs-publishedDate">08 Set 2006</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://www.youtube.com/">www.youtube.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div style="display: none;" class="gsc-expansionArea"><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=7340970731095838614&esrc=rss_uds&ev=v&len=290&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZeBd_F2Bz5Y&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D7340970731095838614%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H22ZGjvqygj3h1Svey1HLVwBJ4d72Q"><img class="gs-image" src="image_files/2.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=7340970731095838614&esrc=rss_uds&ev=v&len=290&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZeBd_F2Bz5Y&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D7340970731095838614%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H22ZGjvqygj3h1Svey1HLVwBJ4d72Q">Ferrari vs. Lamborghini</a></div><div class="gs-snippet">This is a video my brother made of two of Italy's finest supercar makers, Ferrari and Lamborghini + +The song is called "Dread Rock" by Paul Oakenfold ...</div><div class="gs-publishedDate">09 Nov 2006</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://www.youtube.com/">www.youtube.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=5670591497274292054&esrc=rss_uds&ev=v&len=112&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D5670591497274292054&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D5670591497274292054%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H22aEFmVou-cK08mmIHRZBHyPuYweg"><img class="gs-image" src="image_files/ThumbnailServer2_002.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=5670591497274292054&esrc=rss_uds&ev=v&len=112&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D5670591497274292054&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D5670591497274292054%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H22aEFmVou-cK08mmIHRZBHyPuYweg">Lamborghini vs Ferrari</a></div><div class="gs-snippet">Compilation of Lamborghini vs Ferrari. Include a Ferrari F430, Enzo, Modena Novitec, Testarossa and a Diablo. + +More exotics on www.Gumball3000blog.com</div><div class="gs-publishedDate">29 Dic 2005</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://video.google.com/">video.google.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=8759279851765339288&esrc=rss_uds&ev=v&len=52&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeY82ndS1lJg&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D8759279851765339288%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H23VfNt7xJ3QgrPrz0KxA3l1ebyPTw"><img class="gs-image" src="image_files/2_004.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=8759279851765339288&esrc=rss_uds&ev=v&len=52&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeY82ndS1lJg&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D8759279851765339288%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H23VfNt7xJ3QgrPrz0KxA3l1ebyPTw">Novitec Ferrari F430 Bi-Compressor</a></div><div class="gs-snippet">0 to 250km/h More- http://carscoop.blogspot.com/2007/04/2008-novitec-ferrari-f430-bi-compressor.html</div><div class="gs-publishedDate">15 Apr 2007</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://www.youtube.com/">www.youtube.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=-7320960375181402397&esrc=rss_uds&ev=v&len=198&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-7320960375181402397&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-7320960375181402397%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H21QQQUrx0eqi9yLUDie8sOslONuLg"><img class="gs-image" src="image_files/ThumbnailServer2_003.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=-7320960375181402397&esrc=rss_uds&ev=v&len=198&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-7320960375181402397&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-7320960375181402397%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H21QQQUrx0eqi9yLUDie8sOslONuLg">F1 vs Ferrari vs Fiat</a></div><div class="gs-snippet">Three cars race against each other but the Fiat and the Ferrari 360 Modena are both given headstarts against the Formula 1.</div><div class="gs-publishedDate">31 Mag 2006</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://video.google.com/">video.google.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=-299742401666629304&esrc=rss_uds&ev=v&len=105&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-9cZ37CJwUg&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-299742401666629304%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H231y9XyVi-qs7lDKBwaCKlhfnPyyg"><img class="gs-image" src="image_files/2_005.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=-299742401666629304&esrc=rss_uds&ev=v&len=105&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-9cZ37CJwUg&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-299742401666629304%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H231y9XyVi-qs7lDKBwaCKlhfnPyyg">FERRARI ENZO Vs. CAMARO AND MUSTANG!</a></div><div class="gs-snippet">On a sunny highway, Camaro starts screwing around with a Enzo. + +POST SPAM AND YOU WILL BE REPORTED, YOUR POST DELETED</div><div class="gs-publishedDate">01 Mag 2006</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://www.youtube.com/">www.youtube.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=2042433800110624616&esrc=rss_uds&ev=v&len=90&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D2042433800110624616&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D2042433800110624616%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H23xzd1GEi-k2bjPUFKN_OSd_ISttA"><img class="gs-image" src="image_files/ThumbnailServer2.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=2042433800110624616&esrc=rss_uds&ev=v&len=90&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D2042433800110624616&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D2042433800110624616%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H23xzd1GEi-k2bjPUFKN_OSd_ISttA">evo vs ferrari</a></div><div class="gs-snippet">evo spanks a ferrari</div><div class="gs-publishedDate">15 Apr 2005</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://video.google.com/">video.google.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-videoResult gsc-result"><div class="gs-videoResult gs-result"><table cellpadding="0" cellspacing="0"><tbody><tr><td class="gs-image-box"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://video.google.com/url?docid=480386691536327252&esrc=rss_uds&ev=v&len=147&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBqqtJpfZElQ&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D480386691536327252%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H2186304YCgzIcxhlrXndZnWrsXOjw"><img class="gs-image" src="image_files/2_003.jpg" height="75" width="100"></a></div></td><td class="gs-text-box"><div class="gs-text-box"><div class="gs-title"><a target="_blank" class="gs-title" href="http://video.google.com/url?docid=480386691536327252&esrc=rss_uds&ev=v&len=147&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBqqtJpfZElQ&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D480386691536327252%26q%3DFerrari%2B%2528site%253Avideo.google.com%2BOR%2Bsite%253Ayoutube.com%2529%26hl%3Dit&usg=AL29H2186304YCgzIcxhlrXndZnWrsXOjw">Electric car vs Ferrari</a></div><div class="gs-snippet">Electric car vs Ferrari</div><div class="gs-publishedDate">11 Set 2006</div><div class="gs-publisher"><a target="_blank" class="gs-publisher" href="http://www.youtube.com/">www.youtube.com</a></div></div></td></tr></tbody></table><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-cursor-box"><div class="gsc-cursor"><div class="gsc-cursor-page gsc-cursor-current-page">1</div><div class="gsc-cursor-page">2</div><div class="gsc-cursor-page">3</div><div class="gsc-cursor-page">4</div></div><div class="gsc-trailing-more-results"><a target="_blank" class="gsc-trailing-more-results" href="http://video.google.com/videosearch?source=uds&hl=it&type=search&q=Ferrari+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&start=0">Altri risultati »</a></div></div></div></div></div></div></div></div> + </td> + <td class="right"> + <div id="rightSearchControl" class="search-control"><div class="gsc-control"><form accept-charset="utf-8" class="gsc-search-box"><table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-input"><input title="ricerca" name="search" class="gsc-input" size="10" autocomplete="off" type="text"></td><td class="gsc-search-button"><input title="ricerca" class="gsc-search-button" value="Cerca" type="submit"></td><td class="gsc-clear-button"><div title="cancella i risultati" class="gsc-clear-button"> </div></td></tr></tbody></table><table class="gsc-branding" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-branding-user-defined"></td><td class="gsc-branding-text"><div class="gsc-branding-text">powered by</div></td><td class="gsc-branding-img"><img class="gsc-branding-img" src="image_files/small-logo.png"></td></tr></tbody></table></form><div class="gsc-tabsArea"><div class="gsc-tabHeader gsc-tabhActive">Immagine</div><span class="gs-spacer"> </span><div class="gsc-tabHeader gsc-tabhInactive">Web</div><span class="gs-spacer"> </span><div class="gsc-tabHeader gsc-tabhInactive">News</div><span class="gs-spacer"> </span><div class="gsc-tabHeader gsc-tabhInactive">Blog</div><span class="gs-spacer"> </span><div class="gsc-tabHeader gsc-tabhInactive">Libri</div><span class="gs-spacer"> </span></div><div class="gsc-resultsbox-visible"><div class="gsc-resultsRoot gsc-tabData gsc-tabdActive"><table class="gsc-resultsHeader" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-twiddleRegionCell gsc-twiddle-opened"><div class="gsc-twiddle"><div class="gsc-title">Immagine</div></div><div class="gsc-stats">(8)</div><div class="gsc-results-selector gsc-all-results-active"><div title="mostra un risultato" class="gsc-result-selector gsc-one-result"> </div><div title="mostra altri risultati" class="gsc-result-selector gsc-more-results"> </div><div title="mostra tutti i risultati" class="gsc-result-selector gsc-all-results"> </div></div></td><td class="gsc-configLabelCell"></td></tr></tbody></table><div style="display: block;" class="gsc-results gsc-imageResult"><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.autoshopitalia.com/public/public/2006/10/art_15823_2_ferrari_01.jpg"><img title="art_15823_2_ferrari_01.jpg (www.autoshopitalia.com)" style="left: 0px;" class="gs-image" src="image_files/images_003.jpg" height="81" width="112"></a></div><div class="gs-text-box"><div title="Ferrari: concept car e trazione ..." class="gs-snippet"><b>Ferrari</b>: concept car e trazione <b>...</b></div><div class="gs-size">520 x 376</div><div title="www.autoshopitalia.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.autoshopitalia.com/tag/lamborghini/page/8/">www.autoshopitalia.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://pasquale2.files.wordpress.com/2007/02/michelle-ferrari.jpg"><img title="michelle-ferrari.jpg (pasquale2.wordpress.com)" style="left: 0px;" class="gs-image" src="image_files/images_002.jpg" height="84" width="112"></a></div><div class="gs-text-box"><div title="Michelle Ferrari" class="gs-snippet">Michelle <b>Ferrari</b></div><div class="gs-size">550 x 413</div><div title="pasquale2.wordpress.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://pasquale2.wordpress.com/2007/02/23/michelle-ferrari/">pasquale2.wordpress.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-expansionArea"><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.simoneercoli.com/immagini_wordpress/ferrari.jpg"><img title="ferrari.jpg (www.simoneercoli.com)" style="left: 0px;" class="gs-image" src="image_files/images_008.jpg" height="83" width="112"></a></div><div class="gs-text-box"><div title="Ferrari fashion" class="gs-snippet"><b>Ferrari</b> fashion</div><div class="gs-size">400 x 296</div><div title="www.simoneercoli.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.simoneercoli.com/category/cavolate-varie/">www.simoneercoli.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.calshop.biz/FERRARI.jpg"><img title="FERRARI.jpg (www.calshop.biz)" style="left: 0px;" class="gs-image" src="image_files/images.jpg" height="70" width="112"></a></div><div class="gs-text-box"><div title="FERRARI, ARRIVA LA NUOVA F430 SPIDER ..." class="gs-snippet"><b>FERRARI</b>, ARRIVA LA NUOVA F430 SPIDER <b>...</b></div><div class="gs-size">550 x 342</div><div title="www.calshop.biz" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.calshop.biz/ferrari_f430_spider.html">www.calshop.biz</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.mart.trento.it/UploadImgs/1182_Ferrari_F_40__1987___La_Presse_Ferrari_Spa.jpg"><img title="1182_Ferrari_F_40__1987___La_Presse_ ... (www.mart.trento.it)" style="left: 4px;" class="gs-image" src="image_files/images_007.jpg" height="84" width="104"></a></div><div class="gs-text-box"><div title="Ferrari F 40, 1987 © La Presse ..." class="gs-snippet"><b>Ferrari</b> F 40, 1987 © La Presse <b>...</b></div><div class="gs-size">4961 x 4000</div><div title="www.mart.trento.it" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.mart.trento.it/intranet_newsletter.jsp?area=42&ID_LINK=59&page=61">www.mart.trento.it</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.wallpaperez.net/wallpaper/car/Ferrari-612-Scaglietti-938.jpg"><img title="Ferrari-612-Scaglietti-938.jpg (www.wallpaperez.net)" style="left: 0px;" class="gs-image" src="image_files/images_006.jpg" height="70" width="112"></a></div><div class="gs-text-box"><div title="Tutte sfondi con Ferrari" class="gs-snippet">Tutte sfondi con <b>Ferrari</b></div><div class="gs-size">1920 x 1200</div><div title="www.wallpaperez.net" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.wallpaperez.net/it/car/Ferrari-612-Scaglietti-938.html">www.wallpaperez.net</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://portfolio.tirolle.net/fichiers/Wallpapers/20060619/Ferrari_FXX.jpg"><img title="Ferrari_FXX.jpg (donbosco94.wordpress.com)" style="left: 0px;" class="gs-image" src="image_files/images_004.jpg" height="84" width="112"></a></div><div class="gs-text-box"><div title="Ferrari FXX" class="gs-snippet"><b>Ferrari</b> FXX</div><div class="gs-size">1024 x 768</div><div title="donbosco94.wordpress.com" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://donbosco94.wordpress.com/2007/12/17/ferrari-fxx-lauto-stradale-da-f1/">donbosco94.wordpress.com</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-imageResult gsc-result"><div class="gs-imageResult gs-result"><div class="gs-image-box"><a class="gs-image" target="_blank" href="http://www.radio.rai.it/radiorai/online/ev_images/ferrari3.jpg"><img title="ferrari3.jpg (www.radio.rai.it)" style="left: 14px;" class="gs-image" src="image_files/images_005.jpg" height="84" width="84"></a></div><div class="gs-text-box"><div title="LA FERRARI: UN MITO ITALIANO" class="gs-snippet">LA <b>FERRARI</b>: UN MITO ITALIANO</div><div class="gs-size">300 x 300</div><div title="www.radio.rai.it" class="gs-visibleUrl"><a target="_blank" class="gs-visibleUrl" href="http://www.radio.rai.it/radio3/view.cfm?Q_EV_ID=154122&Q_PROG_ID=502">www.radio.rai.it</a></div></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-cursor-box"><div class="gsc-cursor"><div class="gsc-cursor-page gsc-cursor-current-page">1</div><div class="gsc-cursor-page">2</div><div class="gsc-cursor-page">3</div><div class="gsc-cursor-page">4</div></div><div class="gsc-trailing-more-results"><a target="_blank" class="gsc-trailing-more-results" href="http://www.google.com/images?oe=utf8&ie=utf8&source=uds&start=0&hl=it&q=Ferrari">Altri risultati »</a></div></div></div></div></div><div class="gsc-resultsRoot gsc-tabData gsc-tabdInactive"><table class="gsc-resultsHeader" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-twiddleRegionCell gsc-twiddle-opened"><div class="gsc-twiddle"><div class="gsc-title">Web</div></div><div class="gsc-stats">(8)</div><div class="gsc-results-selector gsc-all-results-active"><div title="mostra un risultato" class="gsc-result-selector gsc-one-result"> </div><div title="mostra altri risultati" class="gsc-result-selector gsc-more-results"> </div><div title="mostra tutti i risultati" class="gsc-result-selector gsc-all-results"> </div></div></td><td class="gsc-configLabelCell"></td></tr></tbody></table><div style="display: block;" class="gsc-results gsc-webResult"><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.ferrariworld.com/"><b>Ferrari</b> World</a></div><div class="gs-snippet">La storia di un mito italiano, le vetture, le competizioni e gli eventi, gli oggetti e il Club <b>Ferrari</b>, lo spazio dei tifosi della Rossa e dei suoi piloti, <b>...</b></div><div class="gs-visibleUrl gs-visibleUrl-short">www.ferrariworld.com</div><div class="gs-visibleUrl gs-visibleUrl-long">www.ferrariworld.com/</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-expansionArea"><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.ferrariworld.com/FWorld/fw/index.jsp"><b>Ferrari</b> World – Il sito ufficiale <b>Ferrari</b></a></div><div class="gs-snippet">The official <b>Ferrari</b> international website. Includes news, information on new models, photo galleries and Racing details.</div><div class="gs-visibleUrl gs-visibleUrl-short">www.ferrariworld.com</div><div class="gs-visibleUrl gs-visibleUrl-long">www.ferrariworld.com/FWorld/fw/index.jsp</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://it.wikipedia.org/wiki/Ferrari"><b>Ferrari</b> - Wikipedia</a></div><div class="gs-snippet">La <b>Ferrari</b> SpA è una casa automobilistica italiana tra le più famose al mondo. È stata fondata da Enzo <b>Ferrari</b> e produce autovetture sportive d'alta fascia <b>...</b></div><div class="gs-visibleUrl gs-visibleUrl-short">it.wikipedia.org</div><div class="gs-visibleUrl gs-visibleUrl-long">it.wikipedia.org/wiki/Ferrari</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://it.wikipedia.org/wiki/Scuderia_Ferrari">Scuderia <b>Ferrari</b> - Wikipedia</a></div><div class="gs-snippet">La Scuderia <b>Ferrari</b> è la sezione sportiva della Casa automobilistica <b>Ferrari</b>. Esistente fin dal 1930 ma costituitasi in ragione sociale dal 1947, <b>...</b></div><div class="gs-visibleUrl gs-visibleUrl-short">it.wikipedia.org</div><div class="gs-visibleUrl gs-visibleUrl-long">it.wikipedia.org/wiki/Scuderia_Ferrari</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.galleria.ferrari.com/"><b>Ferrari</b> World: the official website dedicated to the Galleria <b>Ferrari</b></a></div><div class="gs-snippet">The official <b>Ferrari</b> website dedicated to the Galleria <b>Ferrari</b>. Includes news, exhibitions, timetables, cars exhibited description and informations about <b>...</b></div><div class="gs-visibleUrl gs-visibleUrl-short">www.galleria.ferrari.com</div><div class="gs-visibleUrl gs-visibleUrl-long">www.galleria.ferrari.com/</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.ferrariusa.com/"><b>Ferrari</b> North America</a></div><div class="gs-snippet"></div><div class="gs-visibleUrl gs-visibleUrl-short">www.ferrariusa.com</div><div class="gs-visibleUrl gs-visibleUrl-long">www.ferrariusa.com/</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.cantineferrari.it/">Cantine <b>Ferrari</b></a></div><div class="gs-snippet">cantine <b>ferrari</b>, spumante <b>ferrari</b>. <b>...</b> <b>Ferrari</b> f.lli Lunelli S.p.A. | P.I. 00123890220 | site map.</div><div class="gs-visibleUrl gs-visibleUrl-short">www.cantineferrari.it</div><div class="gs-visibleUrl gs-visibleUrl-long">www.cantineferrari.it/</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-webResult gsc-result"><div class="gs-webResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.f2008.it/">New F2008</a></div><div class="gs-snippet"><b>Ferrari</b> F1 2008.</div><div class="gs-visibleUrl gs-visibleUrl-short">www.f2008.it</div><div class="gs-visibleUrl gs-visibleUrl-long">www.f2008.it/</div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-cursor-box"><div class="gsc-cursor"><div class="gsc-cursor-page gsc-cursor-current-page">1</div><div class="gsc-cursor-page">2</div><div class="gsc-cursor-page">3</div><div class="gsc-cursor-page">4</div></div><div class="gsc-trailing-more-results"><a target="_blank" class="gsc-trailing-more-results" href="http://www.google.com/search?oe=utf8&ie=utf8&source=uds&start=0&hl=it&q=Ferrari">Altri risultati »</a></div></div></div></div></div><div class="gsc-resultsRoot gsc-tabData gsc-tabdInactive"><table class="gsc-resultsHeader" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-twiddleRegionCell gsc-twiddle-opened"><div class="gsc-twiddle"><div class="gsc-title">News</div></div><div class="gsc-stats">(8)</div><div class="gsc-results-selector gsc-all-results-active"><div title="mostra un risultato" class="gsc-result-selector gsc-one-result"> </div><div title="mostra altri risultati" class="gsc-result-selector gsc-more-results"> </div><div title="mostra tutti i risultati" class="gsc-result-selector gsc-all-results"> </div></div></td><td class="gsc-configLabelCell"><span title="impostazioni" class="gsc-configLabel gsc-twiddle-closed"> </span></td></tr></tbody></table><div style="display: none;" class="gsc-config gsc-newsConfig"><form class="gsc-config gsc-newsConfig"></form></div><div style="display: block;" class="gsc-results gsc-newsResult"><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.corrieredellosport.it/Notizie/Formula1/30936/Monaco,+prima+fila+tutta+Ferrari">Monaco, prima fila tutta <b>Ferrari</b></a></div><div class="gs-publisher">Corriere dello Sport.it</div><div class="gs-publishedDate"> - 25 Mag 2008</div><div class="gs-relativePublishedDate"> - 10 ore fa</div><div class="gs-snippet">Anche sulle strade del Principato di Monaco la <b>Ferrari</b> è la monoposto da battere. La pole è di Felipe Massa, il secondo posto di Kimi Raikkonen. <b>...</b></div><div class="gs-clusterUrl"><a target="_blank" class="gs-clusterUrl" href="http://news.google.com/news?client=internal-uds&ncl=1219233094&hl=it">Articoli correlati »</a></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-expansionArea"><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.lastampa.it/sport/cmsSezioni/formula1/200805articoli/14886girata.asp"><b>Ferrari</b>, addio punti deboli</a></div><div class="gs-publisher">La Stampa</div><div class="gs-location">, Italy</div><div class="gs-publishedDate"> - 25 Mag 2008</div><div class="gs-relativePublishedDate"> - 3 ore fa</div><div class="gs-snippet">Lo scorso anno il tallone d’Achille della <b>Ferrari</b> era rappresentato dalla scarsa agilità della F2007 e dalle difficoltà che la vettura mostrava nel passare <b>...</b></div><div class="gs-clusterUrl"><a target="_blank" class="gs-clusterUrl" href="http://news.google.com/news?client=internal-uds&ncl=1219459986&hl=it">Articoli correlati »</a></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.ilgiornale.it/a.pic1?ID=264126">Massa lancia la carica <b>Ferrari</b> «Io in</a></div><div class="gs-publisher">il Giornale</div><div class="gs-location">, Italy</div><div class="gs-publishedDate"> - 25 Mag 2008</div><div class="gs-relativePublishedDate"> - 4 ore fa</div><div class="gs-snippet">Fanno parte della vita, ma quando senti di essere veloce, quando guidi una <b>Ferrari</b> per cui sai che se ti trovi a Maranello vuol dire che loro si fidano di <b>...</b></div><div class="gs-clusterUrl"><a target="_blank" class="gs-clusterUrl" href="http://news.google.com/news?client=internal-uds&ncl=1219463998&hl=it">Articoli correlati »</a></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.repubblica.it/news/sport_gen/sport_n_3136232.html">GINNASTICA: ASSOLUTI ARTISTICA, <b>FERRARI</b> FUORI DA FINALE</a></div><div class="gs-publisher">La Repubblica</div><div class="gs-publishedDate"> - 24 Mag 2008</div><div class="gs-relativePublishedDate"> - 12 ore fa</div><div class="gs-snippet">La campionessa uscente, Vanessa <b>Ferrari</b>, ha preso parte soltanto alla prova delle parallele dove si è piazzata settima, e quindi non è entrata nella finale <b>...</b></div><div class="gs-clusterUrl"><a target="_blank" class="gs-clusterUrl" href="http://news.google.com/news?client=internal-uds&ncl=1219319537&hl=it">Articoli correlati »</a></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.ilsussidiario.net/articolo.aspx?articolo=2276">MOTORI/ <b>Ferrari</b> California, il nuovo "sogno" targato Maranello</a></div><div class="gs-publisher">Il Sussidiario.net</div><div class="gs-location">, Italy</div><div class="gs-publishedDate"> - 25 Mag 2008</div><div class="gs-relativePublishedDate"> - 2 ore fa</div><div class="gs-snippet">Ecco le prime foto ufficiali della nuova nata in casa del Cavallino Rampante, la <b>Ferrari</b> California: in linea con la tradizione del prestigioso marchio <b>...</b></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.giraitalia.it/altre_manifestazioni/23889_incontro_ferrari_ducati.html">Incontro <b>Ferrari</b></a></div><div class="gs-publisher">GiraItalia.it</div><div class="gs-publishedDate"> - 25 Mag 2008</div><div class="gs-relativePublishedDate"> - 11 ore fa</div><div class="gs-snippet"><b>...</b> l'Associazione Italiana Sclerosi Multipla, Sezione Provinciale di Cagliari, in collaborazione con il <b>Ferrari</b> Club Italia, Ducati e Ducati Sardinia Doc, <b>...</b></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.romagnaoggi.it/formulauno/2008/5/24/91598/">Montecarlo, prima fila tutta <b>Ferrari</b>: pole a Massa</a></div><div class="gs-publisher">Romagnaoggi.it</div><div class="gs-location">, Italy</div><div class="gs-publishedDate"> - 24 Mag 2008</div><div class="gs-relativePublishedDate"> - 19 ore fa</div><div class="gs-snippet">Per la <b>Ferrari</b> +si tratta della 199esima pole position, la quarta stagionale. Mentre +per Massa è la 12esima partenza dal palo, la terza in questo +campionato. <b>...</b></div><div class="gs-clusterUrl"><a target="_blank" class="gs-clusterUrl" href="http://news.google.com/news?client=internal-uds&ncl=1219233099&hl=it">Articoli correlati »</a></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-newsResult gsc-result"><div class="gs-newsResult gs-result"><div class="gs-title"><a target="_blank" class="gs-title" href="http://www.agi.it/sport/altro/notizie/200805231302-spr-rom1079-art.html">PISTORIUS: CON LA PIRELLI "SARO' UNA <b>FERRARI</b>"</a></div><div class="gs-publisher">AGI - Agenzia Giornalistica Italia</div><div class="gs-location">, Italy</div><div class="gs-publishedDate"> - 23 Mag 2008</div><div class="gs-relativePublishedDate"> - 23 Mag 2008</div><div class="gs-snippet">"Con l'aiuto della Pirelli vorrei diventare anch'io una <b>Ferrari</b>". Cosi' Oscar Pistorius, soprannominato "Oz", commenta la sigla di un accordo di <b>...</b></div><div class="gs-watermark"><a target="_blank" class="gs-watermark" href="http://code.google.com/apis/ajaxsearch/faq.html">ritagliato da Google - 5/2008</a></div></div></div><div class="gsc-cursor-box"><div class="gsc-cursor"><div class="gsc-cursor-page gsc-cursor-current-page">1</div><div class="gsc-cursor-page">2</div><div class="gsc-cursor-page">3</div><div class="gsc-cursor-page">4</div></div><div class="gsc-trailing-more-results"><a target="_blank" class="gsc-trailing-more-results" href="http://news.google.com/nwshp?oe=utf8... [truncated message content] |
From: <txm...@us...> - 2012-02-15 12:38:07
|
Revision: 8987 http://xoops.svn.sourceforge.net/xoops/?rev=8987&view=rev Author: txmodxoops Date: 2012-02-15 12:37:57 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module googleajaxsearch v1.05 Added Paths: ----------- XoopsModules/GoogleAJAXSearch/ XoopsModules/GoogleAJAXSearch/branches/ XoopsModules/GoogleAJAXSearch/releases/ XoopsModules/GoogleAJAXSearch/releases/1.05/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/header.php XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/googleajaxsearch_slogo.gif XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/googleajaxsearch_slogo.png XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/index.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/small-logo.png XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/x_googleajaxsearch_slogo.gif XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/index.php XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/index.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/index.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/main.php XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/modinfo.php XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/googleajaxsearch.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/index.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/googleajaxsearch.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/index.html XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/xoops_version.php XoopsModules/GoogleAJAXSearch/trunk/ Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/header.php =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/header.php (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/header.php 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,8 @@ +<?php +// +// Author: timgno +// +include("../../mainfile.php"); +global $xoopsTpl; + +?> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/googleajaxsearch_slogo.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/googleajaxsearch_slogo.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/googleajaxsearch_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/googleajaxsearch_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/index.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/index.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/index.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/small-logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/small-logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/x_googleajaxsearch_slogo.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/images/x_googleajaxsearch_slogo.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/index.php =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/index.php (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/index.php 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,29 @@ +<?php +// +// Author: timgno +// +include("header.php"); +global $xoopsModuleConfig; +$xoopsOption['template_main'] = 'googleajaxsearch.html'; + +include(XOOPS_ROOT_PATH."/header.php"); +//keywords +$keywords .= $xoopsModule->name(); +$keywords = substr($keywords, 0); +$xoTheme->addMeta('meta', 'keywords', $keywords); +//description +$xoTheme->addMeta('meta', 'description', _MI_GAJAXS_DESC); +// change this code for your site +$key = "ABQIAAAA6UkYKHUJnPAIzXd6_fdTiBS7tAiSr1eAdhtZ3H52alp52Kjq3RSQkFMbj0LpaVFNEkupSc715QMZgQ"; + +$xoTheme->addScript('http://www.google.com/jsapi?key='.$key.''); + +$xoopsTpl->assign('search_text', $xoopsModuleConfig['search_text']); + +$xoopsTpl->assign('lang_title', _MD_GAJAXS_TITLE); +$xoopsTpl->assign('lang_slogan', _MD_GAJAXS_DESC); +$xoopsTpl->assign('lang_loading', _MD_GAJAXS_LOAD); + +include(XOOPS_ROOT_PATH."/footer.php"); + +?> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/index.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/index.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/index.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/index.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/index.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/index.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/main.php =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/main.php (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/main.php 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,9 @@ +<?php +// +// Author: timgno +// +define('_MD_GAJAXS_TITLE','Google AJAX Search'); +define('_MD_GAJAXS_DESC','Google Search for Video, Maps, Blogs and More...'); +define('_MD_GAJAXS_LOAD','Loading...'); + +?> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/modinfo.php =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/modinfo.php (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/language/italian/modinfo.php 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,10 @@ +<?php +// +// Author: timgno +// +define('_MI_GAJAXS_NAME','Google AJAX Search'); +define('_MI_GAJAXS_DESC','My Google AJAX Search API Application.'); +define('_MI_GAJAXS_GASTITLE','Preferenze campo testo'); +define('_MI_GAJAXS_GASDSC','Si pu\xF2 lasciare default, inserire un\'altra parola per iniziare nel campo di ricerca oppure lasciarlo vuoto.'); + +?> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/googleajaxsearch.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/googleajaxsearch.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/googleajaxsearch.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,48 @@ +<div align="center"><br /><br /> + <div align="center"><{$lang_title}></div><br /><br /> + <div align="center"><{$lang_slogan}></div><br /><br /> +</div> + +<script language="Javascript" type="text/javascript"> +<!-- + //<![CDATA[ + + google.load("search", "1"); + + function OnLoad() { + // Create a search control + var searchControl = new google.search.SearchControl(); + + // Add in a full set of searchers + var localSearch = new google.search.LocalSearch(); + searchControl.addSearcher(localSearch); + searchControl.addSearcher(new google.search.WebSearch()); + searchControl.addSearcher(new google.search.VideoSearch()); + searchControl.addSearcher(new google.search.BlogSearch()); + + // Set the Local Search center point + localSearch.setCenterPoint("New York, NY"); + + // Tell the searcher to draw itself and tell it where to attach + searchControl.draw(document.getElementById("searchcontrol")); + + // Execute an inital search + searchControl.execute("<{$search_text}>"); + } + google.setOnLoadCallback(OnLoad); + + //]]> + //--> + </script> +<div id="searchcontrol"><{$lang_loading}></div> +<script type="text/javascript"><!-- +google_ad_client = "pub-3352884075259517"; +/* 300x250, creato 01/06/10 */ +google_ad_slot = "0630708941"; +google_ad_width = 300; +google_ad_height = 250; +//--> +</script> +<script type="text/javascript" +src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> +</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/index.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/index.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/index.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/googleajaxsearch.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/googleajaxsearch.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/googleajaxsearch.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,48 @@ +<div align="center"><br /><br /> + <div align="center"><{$lang_title}></div><br /><br /> + <div align="center"><{$lang_slogan}></div><br /><br /> +</div> + +<script language="Javascript" type="text/javascript"> +<!-- + //<![CDATA[ + + google.load("search", "1"); + + function OnLoad() { + // Create a search control + var searchControl = new google.search.SearchControl(); + + // Add in a full set of searchers + var localSearch = new google.search.LocalSearch(); + searchControl.addSearcher(localSearch); + searchControl.addSearcher(new google.search.WebSearch()); + searchControl.addSearcher(new google.search.VideoSearch()); + searchControl.addSearcher(new google.search.BlogSearch()); + + // Set the Local Search center point + localSearch.setCenterPoint("New York, NY"); + + // Tell the searcher to draw itself and tell it where to attach + searchControl.draw(document.getElementById("searchcontrol")); + + // Execute an inital search + searchControl.execute("<{$search_text}>"); + } + google.setOnLoadCallback(OnLoad); + + //]]> + //--> + </script> +<div id="searchcontrol"><{$lang_loading}></div> +<script type="text/javascript"><!-- +google_ad_client = "pub-3352884075259517"; +/* 300x250, creato 01/06/10 */ +google_ad_slot = "0630708941"; +google_ad_width = 300; +google_ad_height = 250; +//--> +</script> +<script type="text/javascript" +src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> +</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/index.html =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/index.html (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/templates/templates/index.html 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/xoops_version.php =================================================================== --- XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/xoops_version.php (rev 0) +++ XoopsModules/GoogleAJAXSearch/releases/1.05/GoogleAJAXSearch/xoops_version.php 2012-02-15 12:37:57 UTC (rev 8987) @@ -0,0 +1,32 @@ +<?php +// +// Author: timgno +// +$modversion['name'] = _MI_GAJAXS_NAME; +$modversion['version'] = 1.05; +$modversion['description'] = _MI_GAJAXS_DESC; +$modversion['author'] = "timgno - http://www.txmodxoops.org/"; +$modversion['credits'] = "Google - http://code.google.com/apis/ajaxsearch/"; +$modversion['help'] = ""; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 0; +$modversion['image'] = "images/googleajaxsearch_slogo.png"; +$modversion['dirname'] = "GoogleAJAXSearch"; + +$modversion['hasAdmin'] = 1; +$modversion['adminpath'] = ""; + +$modversion['hasMain'] = 1; + +// Templates +$modversion['templates'][1]['file'] = 'googleajaxsearch.html'; +$modversion['templates'][1]['description'] = ''; +// Config +$modversion['config'][1]['name'] = 'search_text'; +$modversion['config'][1]['title'] = '_MI_GAJAXS_GASTITLE'; +$modversion['config'][1]['description'] = '_MI_GAJAXS_GASDSC'; +$modversion['config'][1]['formtype'] = 'textbox'; +$modversion['config'][1]['valuetype'] = 'text'; +$modversion['config'][1]['default'] = 'moduli per xoops'; + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-02-15 12:28:06
|
Revision: 8986 http://xoops.svn.sourceforge.net/xoops/?rev=8986&view=rev Author: txmodxoops Date: 2012-02-15 12:27:55 +0000 (Wed, 15 Feb 2012) Log Message: ----------- XMF Italian Traslaction Added Paths: ----------- XMF/xmf/trunk/xmf/language/italian/ XMF/xmf/trunk/xmf/language/italian/about.php XMF/xmf/trunk/xmf/language/italian/database.php XMF/xmf/trunk/xmf/language/italian/form.php XMF/xmf/trunk/xmf/language/italian/global.php XMF/xmf/trunk/xmf/language/italian/main.php XMF/xmf/trunk/xmf/language/italian/menu.php Added: XMF/xmf/trunk/xmf/language/italian/about.php =================================================================== --- XMF/xmf/trunk/xmf/language/italian/about.php (rev 0) +++ XMF/xmf/trunk/xmf/language/italian/about.php 2012-02-15 12:27:55 UTC (rev 8986) @@ -0,0 +1,32 @@ +<?php + +// Traslaction by timgno + +define ('_AB_XMF_AUTHOR_INFO', 'Informazioni Autore:'); +define ('_AB_XMF_AUTHOR_WORD', "Parola dell'Autore:"); +define ('_AB_XMF_BY', 'Da:'); +define ('_AB_XMF_DEVELOPER_CONTRIBUTOR', 'Contributore:'); +define ('_AB_XMF_DEVELOPER_CREDITS', 'I Crediti:'); +define ('_AB_XMF_DEVELOPER_EMAIL', 'E-mail:'); +define ('_AB_XMF_DEVELOPER_LEAD', 'Guida sviluppatore:'); +define ('_AB_XMF_DEVELOPER_WEBSITE', 'Sito web:'); +define ('_AB_XMF_MODULE_BUG', 'Segnala un bug:'); +define ('_AB_XMF_MODULE_DEMO', 'Demo Sito:'); +define ('_AB_XMF_MODULE_DESCRIPTION', 'Descrizione:'); +define ('_AB_XMF_MODULE_DISCLAIMER', 'Disclaimer:'); +define ('_AB_XMF_MODULE_FEATURE', 'Suggerisci una nuova funzionalit\xE0:'); +define ('_AB_XMF_MODULE_INFO', 'Informazioni sviluppo del modulo:'); +define ('_AB_XMF_MODULE_RELEASE_DATE', 'Data di rilascio:'); +define ('_AB_XMF_MODULE_STATUS', 'Stato:'); +define ('_AB_XMF_MODULE_SUBMIT_BUG', 'Segnala un bug:'); +define ('_AB_XMF_MODULE_SUBMIT_FEATURE', 'richiedere una nuova funzione:'); +define ('_AB_XMF_MODULE_SUPPORT', 'sito di supporto ufficiale:'); +define ('_AB_XMF_PEOPLE_DEVELOPERS', 'Sviluppatori: '); +define ('_AB_XMF_PEOPLE_TESTERS', 'I tester:'); +define ('_AB_XMF_PEOPLE_DOCUMENTERS', 'I redattori della documentazione sono:'); +define ('_AB_XMF_PEOPLE_TRANSLATERS', 'I traduttori:'); +define ('_AB_XMF_PEOPLE_OTHER', 'Altri collaboratori:'); +define ('_AB_XMF_VERSION_HISTORY', 'Cronologia delle versioni:'); + +define ('_AB_XMF_AUTHOR', "Autore Originale:"); +?> Added: XMF/xmf/trunk/xmf/language/italian/database.php =================================================================== --- XMF/xmf/trunk/xmf/language/italian/database.php (rev 0) +++ XMF/xmf/trunk/xmf/language/italian/database.php 2012-02-15 12:27:55 UTC (rev 8986) @@ -0,0 +1,32 @@ +<?php + +// Traslaction by timgno + +define ("_DB_XMF_IMPORT", "Importa"); +define ("_DB_XMF_CURRENTVER", "Versione Corrente: <span class='currentVer'>%s</span>"); +define ("_DB_XMF_DBVER", "Versione Database %s"); +define ("_DB_XMF_MSG_ADD_DATA", "Dati aggiunti nella tabella %s"); +define ("_DB_XMF_MSG_ADD_DATA_ERR", "Errore durante l'aggiunta dei dati nella tabella %s"); +define ("_DB_XMF_MSG_CHGFIELD", "Modifica campo %s nella tabella %s"); +define ("_DB_XMF_MSG_CHGFIELD_ERR", "Errore durante il cambiamento del campo %s nella tabella %s"); +define ("_DB_XMF_MSG_CREATE_TABLE", "La tabella %s è stata creata"); +define ("_DB_XMF_MSG_CREATE_TABLE_ERR", "Errore durante la creazione della tabella %s"); +define ("_DB_XMF_MSG_NEWFIELD", "ha aggiunto con successo il campo %s"); +define ("_DB_XMF_MSG_NEWFIELD_ERR", "Errore durante l'aggiunta del campo %s"); +define ("_DB_XMF_NEEDUPDATE", "Il tuo database \xE8 out-of-date Si prega di aggiornare le tabelle del database!<br><b>Nota: La SmartFactory raccomanda vivamente di eseguire il backup SmartSection tutte le tabelle prima di eseguire questo script di aggiornamento.</b><br>"); +define ("_DB_XMF_NOUPDATE", "Il tuo database \xE8 up-to-date non sono necessari aggiornamenti."); +define ("_DB_XMF_UPDATE_DB", "Aggiornamento Database"); +define ("_DB_XMF_UPDATE_ERR", "Errori durante l'aggiornamento alla versione %s"); +define ("_DB_XMF_UPDATE_NOW", "Aggiorna Ora!"); +define ("_DB_XMF_UPDATE_OK", "successo aggiornato alla versione %s"); +define ("_DB_XMF_UPDATE_TO", "Aggiornamento alla versione %s"); +define ("_DB_XMF_UPDATE_UPDATING_DATABASE", "Aggiornamento del database..."); +define ("_DB_XMF_MSG_DROPFIELD", "Campo %s eliminato con successo"); +define ("_DB_XMF_MSG_DROPFIELD_ERR", "Errore eliminazione campo %s"); + +define ("_DB_XMF_MSG_RENAME_TABLE", "Tabella rinominata da '%s' a '%s'"); +define ("_DB_XMF_MSG_RENAME_TABLE_ERR", "Errore nel rinominare la tabella '%s'"); +define ("_DB_XMF_MSG_DROP_TABLE", "'%s' \xE8 stata abbandonata"); +define ("_DB_XMF_MSG_DROP_TABLE_ERR", "Errore durante la tabella '%s'"); +define ("_DB_XMF_MSG_UPDATE_TABLE", "' %s' \xE8 stata aggiornata"); +define ("_DB_XMF_MSG_UPDATE_TABLE_ERR", "Errore durante l'aggiornamento della tabella '%s'"); Added: XMF/xmf/trunk/xmf/language/italian/form.php =================================================================== --- XMF/xmf/trunk/xmf/language/italian/form.php (rev 0) +++ XMF/xmf/trunk/xmf/language/italian/form.php 2012-02-15 12:27:55 UTC (rev 8986) @@ -0,0 +1,28 @@ +<?php + +// Traslaction by timgno + +define ('_FORM_XMF_CAPTION', "Didascalia"); +define ('_FORM_XMF_DESC', "Descrizione"); + +define ('_FORM_XMF_ACTIONS dei',' Azioni '); +define ('_FORM_XMF_CANCEL', 'Cancella'); +define ('_FORM_XMF_DELETE', 'Elimina'); +define ('_FORM_XMF_EDIT', 'Modifica'); +define ('_FORM_XMF_ADD', 'Aggiungi'); +define ('_FORM_XMF_FILTER', 'Filtro'); +define ('_FORM_XMF_LIMIT_ALL',' Tutti '); +define ('_FORM_XMF_MODIFY', 'Modifica'); +define ('_FORM_XMF_SHOW_ONLY', 'Mostra solo'); +define ('_FORM_XMF_SUBMIT',' Invia '); +define ('_FORM_XMF_WITH_SELECTED', 'Con i selezionati'); +define ('_FORM_XMF_DELETE_CONFIRM', "Sei sicuro di voler cancellare %s"); +define ('_FORM_XMF_DELETE_SUCCESS', "Voce cancellata!"); +define ('_FORM_XMF_EDIT_SUCCESS', "Voce modificata!"); +define ('_FORM_XMF_ADD_SUCCESS', "Voce aggiunta!"); + +define ('_FORM_XMF_URLLINK_URL', "Link URL"); +define ('_FORM_XMF_URLLINK_TARGET', "Target Url"); + + +?> Added: XMF/xmf/trunk/xmf/language/italian/global.php =================================================================== --- XMF/xmf/trunk/xmf/language/italian/global.php (rev 0) +++ XMF/xmf/trunk/xmf/language/italian/global.php 2012-02-15 12:27:55 UTC (rev 8986) @@ -0,0 +1,185 @@ +<?php + +// Traslaction by timgno + +define ('_XMF_ALL', "All"); // disapprovato +define ('_XMF_FILTER', "Filtro"); +define ('_XMF_NONE', "Nessuno"); +define ('_XMF_SHOW_ONLY', 'Mostra solo'); +define ('_XMF_SORT_BY', "Ordina per"); +define ('_XMF_ACTIONS', 'Azioni'); +define ('_XMF_ADMIN_PAGE', ':: pagina di amministrazione ::'); +define ('_XMF_APPROVE', 'Approva'); +define ('_XMF_AUTHOR_WORD', "Parola dell'Autore"); +define ('_XMF_BODY_DEFAULT', "Ecco un link interessante che ho trovato su %s: %s"); +define ('_XMF_CANCEL', 'Cancella'); +define ('_XMF_CURRENCY_ISO4217', 'Codice ISO 4217'); +define ('_XMF_CURRENCY_ISO4217_DSC', 'Codice valuta ufficiale. Altre info: <a href="http://en.wikipedia.org/wiki/ISO_4217" target="_blank"> ISO 4217 su Wikipedia</a>'); +define ('_XMF_CURRENCY_NAME', 'Nome'); +define ('_XMF_CURRENCY_NAME_DSC',''); +define ('_XMF_CURRENCY_SYMBOL', 'Simbolo'); +define ('_XMF_CURRENCY_SYMBOL_DSC',''); +define ('_XMF_CURRENCY_RATE', 'Tasso di conversione'); +define ('_XMF_CURRENCY_RATE_DSC',''); +define ('_XMF_CURRENCY_DEFAULT', 'Valuta predefinita'); +define ('_XMF_CURRENCY_DEFAULT_DSC',''); +define ('_XMF_CATEGORY_CREATE', 'Crea una categoria'); +define ('_XMF_CATEGORY_CREATE_SUCCESS', 'La categoria è stata creata con successo.'); +define ('_XMF_CATEGORY_DESCRIPTION', 'Descrizione'); +define ('_XMF_CATEGORY_DESCRIPTION_DSC', 'Descrizione di questa categoria'); +define ('_XMF_CATEGORY_EDIT', 'Informazioni sulla categoria'); +define ('_XMF_CATEGORY_EDIT_INFO', 'Compilare il modulo in modo da editare questa categoria.'); +define ('_XMF_CATEGORY_IMAGE', 'Immagine'); +define ('_XMF_CATEGORY_IMAGE_DSC', 'Immagine Categoria'); +define ('_XMF_CATEGORY_MODIFY_SUCCESS', 'La categoria è stata modificata correttamente.'); +define ('_XMF_CATEGORY_NAME', 'Nome della categoria'); +define ('_XMF_CATEGORY_NAME_DSC', 'Nome di questa categoria'); +define ('_XMF_CATEGORY_PARENTID', 'Categoria superiore'); +define ('_XMF_CATEGORY_PARENTID_DSC', 'Categoria a cui appartiene questa categoria.'); +define ('_XMF_CLOSE_WINDOW', "Clicca qui per chiudere questa finestra."); +define ('_XMF_COUNTER_FORM_CAPTION', 'Hit counter'); +define ('_XMF_CREATE', 'Create'); +define ('_XMF_CREATINGNEW', 'Creazione'); +define ('_XMF_CUSTOM_CSS', 'Custom CSS'); +define ('_XMF_CUSTOM_CSS_DSC', '\xC8 possibile specificare informazioni personalizzate CSS qui Questo SSN viene outputed in cui l\'oggetto viene visualizzato sul lato utente..'); +define ('_XMF_DELETE', 'Cancella'); +define ('_XMF_DELETE_CONFIRM', "Sei sicuro di voler eliminare '<em>%s </em>'?"); +define ('_XMF_DELETE_ERROR', 'Si è verificato un errore durante l\'eliminazione dell\'oggetto.'); +define ('_XMF_DELETE_SUCCESS', 'L\'oggetto è stato cancellato con successo.'); +define ('_XMF_DEVELOPER_CONTRIBUTOR', 'Contributor (s)'); +define ('_XMF_DEVELOPER_CREDITS', 'Credits'); +define ('_XMF_DEVELOPER_EMAIL', 'Email'); +define ('_XMF_DEVELOPER_WEBSITE', 'Sito'); +define ('_XMF_DISPLAY_OPTIONS', "Opzioni di visualizzazione"); +define ('_XMF_DOBR_FORM_CAPTION', 'Abilita linebreak'); +define ('_XMF_DOHTML_FORM_CAPTION', 'Abilita tag HTML'); +define ('_XMF_DOHTML_FORM_DSC', ""); +define ('_XMF_DOIMAGE_FORM_CAPTION', 'Abilita le immagini'); +define ('_XMF_DOIMAGE_FORM_DCS', ""); +define ('_XMF_DOSMILEY_FORM_CAPTION', 'Abilita icone smiley'); +define ('_XMF_DOSMILEY_FORM_DSC', ""); +define ('_XMF_DOXCODE_FORM_CAPTION', 'Abilita i codici XOOPS'); +define ('_XMF_DOXCODE_FORM_DSC', ""); +define ('_XMF_EDITING', 'Modifica'); +define ('_XMF_EMAIL', 'Invia questo link'); +define ('_XMF_EMAIL_BODY', 'Qui c\'è qualcosa di interessante che ho trovato su %s'); +define ('_XMF_EMAIL_SUBJECT', 'Dai un\'occhiata a questa pagina %s'); +define ('_XMF_GOTOMODULE', 'Vai al modulo'); +define ('_XMF_LANGUAGE_CAPTION', "Lingua"); +define ('_XMF_LANGUAGE_DSC', "Lingua rapporto con l'oggetto"); +define ('_XMF_LIMIT', "Display"); +define ('_XMF_LIMIT_ALL', 'Tutti'); +define ('_XMF_LINK_BODY', "Corpo"); +define ('_XMF_LINK_BODY_DSC', ""); +define ('_XMF_LINK_DATE', "Data"); +define ('_XMF_LINK_FROM_EMAIL', "Da email"); +define ('_XMF_LINK_FROM_EMAIL_DSC', ""); +define ('_XMF_LINK_FROM_NAME', "Da nome"); +define ('_XMF_LINK_FROM_NAME_DSC', ""); +define ('_XMF_LINK_FROM_UID', "Da utente"); +define ('_XMF_LINK_FROM_UID_DSC', ""); +define ('_XMF_LINK_LINK', "Link"); +define ('_XMF_LINK_LINK_DSC', ""); +define ('_XMF_LINK_MID', "Module ID"); +define ('_XMF_LINK_MID_DSC', ""); +define ('_XMF_LINK_MID_NAME', "Nome modulo"); +define ('_XMF_LINK_MID_NAME_DSC', "Nome del modulo da cui la richiesta orignated"); +define ('_XMF_LINK_SUBJECT', "Subject"); +define ('_XMF_LINK_SUBJECT_DSC', ""); +define ('_XMF_LINK_TO_EMAIL', "Per e-mail"); +define ('_XMF_LINK_TO_EMAIL_DSC', ""); +define ('_XMF_LINK_TO_NAME', "Per nome"); +define ('_XMF_LINK_TO_NAME_DSC', ""); +define ('_XMF_LINK_TO_UID', "Per utente"); +define ('_XMF_LINK_TO_UID_DSC', ""); +define ('_XMF_MAKE_SELECTION', 'Effettuare una selezione ...'); +define ('_XMF_META_DESCRIPTION', 'Meta Description'); +define ('_XMF_META_DESCRIPTION_DSC', 'Al fine di aiutare i motori di ricerca, è possibile personalizzare la descrizione meta che si desidera utilizzare per questo articolo. Se si lascia vuoto questo campo durante la creazione di una categoria, verrà automaticamente compilato con il campo Riassunto delle questo articolo. '); +define ('_XMF_META_KEYWORDS', 'Parole chiave Meta'); +define ('_XMF_META_KEYWORDS_DSC', 'Al fine di aiutare i motori di ricerca, è possibile personalizzare le parole chiave che si desidera utilizzare per questo articolo. Se si lascia vuoto questo campo durante la creazione di un articolo, che verrà automaticamente popolato con le parole del campo Riepilogo di questo articolo. '); +define ('_XMF_MODIFY', 'Edit'); +define ('_XMF_MODULE_BUG', 'Segnala un bug per questo modulo'); +define ('_XMF_MODULE_DEMO', 'Site Demo'); +define ('_XMF_MODULE_DISCLAIMER', 'Disclaimer'); +define ('_XMF_MODULE_FEATURE', 'Suggerisci una nuova funzionalità per questo modulo'); +define ('_XMF_MODULE_INFO', 'Informazioni Developpment module'); +define ('_XMF_MODULE_RELEASE_DATE', 'Data di uscita'); +define ('_XMF_MODULE_STATUS', 'Situazione'); +define ('_XMF_MODULE_SUBMIT_BUG', 'Segnala un bug'); +define ('_XMF_MODULE_SUBMIT_FEATURE', 'richiedere una nuova funzione'); +define ('_XMF_MODULE_SUPPORT', 'sito di supporto ufficiale'); +define ('_XMF_NO_OBJECT', 'Non ci sono elementi da visualizzare.'); +define ('_XMF_NOT_SELECTED', 'Nessun oggetto selezionato.'); +define ('_XMF_PRINT', 'Stampa'); +define ('_XMF_QUICK_SEARCH', 'ricerca veloce'); +define ('_XMF_RATING_DATE', 'Date'); +define ('_XMF_RATING_DIRNAME', 'Modulo'); +define ('_XMF_RATING_ITEM', 'Voce'); +define ('_XMF_RATING_ITEMID', 'ID articolo'); +define ('_XMF_RATING_NAME', 'Nome utente'); +define ('_XMF_RATING_RATE', 'Vota'); +define ('_XMF_RATING_UID', 'utente'); +define ('_XMF_SAVE_ERROR', 'verificato un errore durante la memorizzazione delle informazioni.'); +define ('_XMF_SAVE_SUCCESS', 'L\'informazione è stata salvata con successo.'); +define ('_XMF_SEND_EMAIL', 'Invia una e-mail'); +define ('_XMF_SEND_ERROR', "Un problema si è verificato quando si è invio il messaggio, per questo ci scusiamo si prega di contattare il nostro webmaster all'indirizzo %s..."); +define ('_XMF_SEND_LINK_FORM', "Invia questo link ad un amico"); +define ('_XMF_SEND_LINK_FORM_DSC', "Basta compilare il seguente modulo per condividere questo link con un amico."); +define ('_XMF_SEND_PM', 'Invia un messaggio privato'); +define ('_XMF_SEND_SUCCESS', "Il messaggio è stato inviato con successo."); +define ('_XMF_SEND_SUCCESS_INFO', "Grazie per aver condiviso il vostro interesse per il nostro sito con i tuoi contatti."); +define ('_XMF_SHORT_URL', 'URL corto'); +define ('_XMF_SHORT_URL_DSC', 'Quando si utilizza la funzionalità di SEO di questo modulo, è possibile specificare un URL breve per questa categoria Questo campo è opzionale..'); +define ('_XMF_SORT', "Sort by:"); +define ('_XMF_SORT_ASC', 'ascendente'); +define ('_XMF_SORT_DESC', 'discendente'); +define ('_XMF_SUBJECT_DEFAULT', "Un link da %s"); +define ('_XMF_SUBMIT', 'Submit'); +define ('_XMF_TAG_DESCRIPTION_CAPTION', "Descrizione"); +define ('_XMF_TAG_DESCRIPTION_DSC', "Descrizione di questo tag (dove verrà utilizzato, ecc ..)"); +define ('_XMF_TAG_TAGID_CAPTION', "nome Tag"); +define ('_XMF_TAG_TAGID_DSC' ", nome che identifica in modo univoco questo tag"); +define ('_XMF_TAG_VALUE_CAPTION', "Valore"); +define ('_XMF_TAG_VALUE_DSC', "Il valore di questo tag, vale a dire ciò che verrà visualizzato per l'utente"); +define ('_XMF_UPDATE_MODULE', 'Aggiornamento del modulo'); +define ('_XMF_UPLOAD_IMAGE', 'Carica una nuova immagine:'); +define ('_XMF_VERSION_HISTORY', 'Cronologia delle versioni'); +define ('_XMF_WARNING_BETA', "Questo modulo viene fornito come è, senza alcuna garanzia di sorta. Questo modulo è BETA, significa che è ancora in fase di sviluppo attivo. Questa versione è destinata a scopo di test <b> solo </ b> e <b > fortemente </ b> consiglia di non utilizzarlo su un sito web dal vivo o in un ambiente di produzione ").; +define ('_XMF_WARNING_FINAL', "Questo modulo viene fornito cos\xEC com'è, senza alcuna garanzia di sorta. Anche se questo modulo non è beta, è ancora in fase di sviluppo attivo. Questo comunicato può essere utilizzato in un sito web dal vivo o un ambiente di produzione, ma il suo uso è sotto la propria responsabilità, il che significa che l'autore non è responsabile ").; +define ('_XMF_WARNING_RC', "Questo modulo viene fornito cos\xEC com'è, senza alcuna garanzia di sorta. Questo modulo è una Release Candidate e non deve essere utilizzato su un sito Web di produzione. Il modulo è ancora in fase di sviluppo attivo e il suo utilizzo è sotto la propria responsabilità , il che significa che l'autore non è responsabile ").; +define ('_XMF_WEIGHT_FORM_CAPTION', 'Peso'); +define ('_XMF_WEIGHT_FORM_DSC', ""); + +define ('_XMF_ADMIN_VIEW', "Vedi"); +define ('_XMF_EXPORT', "Esporta"); +define ('_XMF_UPDATE_ALL', "Aggiorna tutti"); +define ('_XMF_NO_RECORDS_TO_UPDATE', "Nessun record da aggiornare"); +define ('_XMF_NO_RECORDS_UPDATED', "Oggetti aggiornato con successo!"); + +define ('_XMF_CLONE', "Clone questo oggetto"); + +define ('_XMF_CATEGORY_VIEW', "visualizzazione per categorie"); + +define ('_XMF_BLOCKS_ADDTO_LAYOUT', "Layout"); +define ('_XMF_BLOCKS_ADDTO_LAYOUT_OPTION0', "Horizontal 1 row"); +define ('_XMF_BLOCKS_ADDTO_LAYOUT_OPTION1', "2 righe orizzontali"); +define ('_XMF_BLOCKS_ADDTO_LAYOUT_OPTION2', "verticale con icone"); +define ('_XMF_BLOCKS_ADDTO_LAYOUT_OPTION3', "Vertical nessuna icona"); +define ('_XMF_CURRENT_FILE', "Current file:"); +define ('_XMF_URL_FILE_DSC', "In alternativa, è possibile utilizzare un URL Se si seleziona un file tramite il pulsante 'Sfoglia', l'URL viene ignorato è possibile utilizzare il tag {XOOPS_URL} per la stampa ".XOOPS_URL); +define ('_XMF_URL_FILE', "URL:"); +define ('_XMF_UPLOAD', "Seleziona un file da caricare:"); + +define ('_XMF_CHANGE_FILE', "<hr /><b>Cambia File</b><br />"); +define ('_XMF_CAPTION', "Didascalia:"); +define ('_XMF_URLLINK_URL', "URL:"); +define ('_XMF_DESC', "Descrizione"); +define ('_XMF_URLLINK_TARGET', "Apri il link in:"); +define ('_XMF_URLLINK_SELF', "Stessa finestra"); +define ('_XMF_URLLINK_BLANK', "Nuova finestra"); + +define ('_XMF_ANY', "Any"); +define ('_XMF_EDITOR', "Editor di testo preferito"); +define ('_XMF_WITH_SELECTED', "Con i selezionati:"); + +?> \ No newline at end of file Added: XMF/xmf/trunk/xmf/language/italian/main.php =================================================================== --- XMF/xmf/trunk/xmf/language/italian/main.php (rev 0) +++ XMF/xmf/trunk/xmf/language/italian/main.php 2012-02-15 12:27:55 UTC (rev 8986) @@ -0,0 +1,36 @@ +<?php +/** + * Frameworks Module Admin + * + * 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 Grégory Mage (Aka Mage) + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Grégory Mage (Aka Mage) + */ + +// Traslaction by timgno + +// Info +define ('_AM_XMF_CONFIG', 'Controllo configurazione'); +define ('_AM_XMF_CONFIG_CHMOD', "La cartella '%s' deve essere con '%s' chmod (è ora impostata su %s)"); +define ('_AM_XMF_CONFIG_FOLDERKO', "La cartella '%s' non esiste"); +define ('_AM_XMF_CONFIG_FOLDEROK', "'%s' La cartella esiste"); +define ('_AM_XMF_CONFIG_PHP', 'PHP minima richiesto: %s (la versione è %s)'); +define ('_AM_XMF_CONFIG_XOOPS', 'XOOPS minimo richiesto: %s (la versione è %s)'); + + +// Chi +define ('_AM_XMF_ABOUT_CHANGELOG', 'Cambio codice'); +define ('_AM_XMF_ABOUT_DESCRIPTION', 'Descrizione'); +define ('_AM_XMF_ABOUT_MODULEINFO', 'Informazioni Modulo'); +define ('_AM_XMF_ABOUT_MODULESTATUS', 'Stato:'); +define ('_AM_XMF_ABOUT_UPDATEDATE', 'Data di aggiornamento:'); +define ('_AM_XMF_ABOUT_WEBSITE', "Sito Web:"); + +?> \ No newline at end of file Added: XMF/xmf/trunk/xmf/language/italian/menu.php =================================================================== --- XMF/xmf/trunk/xmf/language/italian/menu.php (rev 0) +++ XMF/xmf/trunk/xmf/language/italian/menu.php 2012-02-15 12:27:55 UTC (rev 8986) @@ -0,0 +1,14 @@ +<?php + +// Traslaction by timgno + +define ('_MENU_XMF_GOTOMOD', 'Vai al modulo'); +define ('_MENU_XMF_PREFERENCES', 'Preferenze'); +define ('_MENU_XMF_COMMENTS', 'Commenti'); +define ('_MENU_XMF_UPDATE', 'Aggiorna'); +define ('_MENU_XMF_ABOUT', 'Info'); +define ('_MENU_XMF_BLOCKS', 'Blocchi'); +define ('_MENU_XMF_IMPORT', 'Importa'); +define ('_MENU_XMF_CLONE', 'Clona'); +define ('_MENU_XMF_HELP', 'Guida'); +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <for...@us...> - 2012-02-15 10:24:59
|
Revision: 8985 http://xoops.svn.sourceforge.net/xoops/?rev=8985&view=rev Author: forxoops Date: 2012-02-15 10:24:49 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Revert DB Connector addition Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/stats.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php 2012-02-15 10:24:49 UTC (rev 8985) @@ -0,0 +1,296 @@ +<?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. +*/ + +/** + * Database manager for XOOPS + * + * @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 + * @subpackage database + * @since 2.6.0 + * @author Haruki Setoyama <ha...@pl...> + * @version $Id$ + */ + +class XoopsDatabaseManager +{ + /** + * @var array + */ + private $s_tables = array(); + + /** + * @var array + */ + private $f_tables = array(); + + /** + * @var XoopsDatabase + */ + public $db; + + /** + * @var array + */ + public $successStrings = array( + 'create' => TABLE_CREATED, 'insert' => ROWS_INSERTED, 'alter' => TABLE_ALTERED, 'drop' => TABLE_DROPPED, + ); + + /** + * @var array + */ + public $failureStrings = array( + 'create' => TABLE_NOT_CREATED, 'insert' => ROWS_FAILED, 'alter' => TABLE_NOT_ALTERED, + 'drop' => TABLE_NOT_DROPPED, + ); + + /** + * + */ + public function __construct() + { + $this->db = XoopsDatabaseFactory::getDatabase(); + $this->db->setPrefix(XOOPS_DB_PREFIX); + $this->db->setLogger(XoopsLogger::getInstance()); + } + + /** + * @return bool + */ + public function isConnectable() + { + return ($this->db->connect(false) != false) ? true : false; + } + + /** + * @return bool + */ + public function dbExists() + { + return ($this->db->connect() != false) ? true : false; + } + + /** + * @return bool + */ + public function createDB() + { + $this->db->connect(false); + + $result = $this->db->query("CREATE DATABASE " . XOOPS_DB_NAME); + + return ($result != false) ? true : false; + } + + /** + * @param string $sql_file_path + * @return bool + */ + public function queryFromFile($sql_file_path) + { + if (!file_exists($sql_file_path)) { + return false; + } + $sql_query = trim(fread(fopen($sql_file_path, 'r'), filesize($sql_file_path))); + SqlUtility::splitMySqlFile($pieces, $sql_query); + $this->db->connect(); + foreach ($pieces as $piece) { + $piece = trim($piece); + // [0] contains the prefixed query + // [4] contains unprefixed table name + $prefixed_query = SqlUtility::prefixQuery($piece, $this->db->prefix()); + if ($prefixed_query != false) { + $table = $this->db->prefix($prefixed_query[4]); + if ($prefixed_query[1] == 'CREATE TABLE') { + if ($this->db->query($prefixed_query[0]) != false) { + if (!isset($this->s_tables['create'][$table])) { + $this->s_tables['create'][$table] = 1; + } + } else { + if (!isset($this->f_tables['create'][$table])) { + $this->f_tables['create'][$table] = 1; + } + } + } else { + if ($prefixed_query[1] == 'INSERT INTO') { + if ($this->db->query($prefixed_query[0]) != false) { + if (!isset($this->s_tables['insert'][$table])) { + $this->s_tables['insert'][$table] = 1; + } else { + $this->s_tables['insert'][$table]++; + } + } else { + if (!isset($this->f_tables['insert'][$table])) { + $this->f_tables['insert'][$table] = 1; + } else { + $this->f_tables['insert'][$table]++; + } + } + } else { + if ($prefixed_query[1] == 'ALTER TABLE') { + if ($this->db->query($prefixed_query[0]) != false) { + if (!isset($this->s_tables['alter'][$table])) { + $this->s_tables['alter'][$table] = 1; + } + } else { + if (!isset($this->s_tables['alter'][$table])) { + $this->f_tables['alter'][$table] = 1; + } + } + } else { + if ($prefixed_query[1] == 'DROP TABLE') { + if ($this->db->query('DROP TABLE ' . $table) != false) { + if (!isset($this->s_tables['drop'][$table])) { + $this->s_tables['drop'][$table] = 1; + } + } else { + if (!isset($this->s_tables['drop'][$table])) { + $this->f_tables['drop'][$table] = 1; + } + } + } + } + } + } + } + } + return true; + } + + /** + * @return string + */ + public function report() + { + $commands = array('create', 'insert', 'alter', 'drop'); + $content = '<ul class="log">'; + foreach ($commands as $cmd) { + if (!@empty($this->s_tables[$cmd])) { + foreach ($this->s_tables[$cmd] as $key => $val) { + $content .= '<li class="success">'; + $content .= ($cmd != 'insert') ? sprintf($this->successStrings[$cmd], $key) + : sprintf($this->successStrings[$cmd], $val, $key); + $content .= "</li>\n"; + } + } + } + foreach ($commands as $cmd) { + if (!@empty($this->f_tables[$cmd])) { + foreach ($this->f_tables[$cmd] as $key => $val) { + $content .= '<li class="failure">'; + $content .= ($cmd != 'insert') ? sprintf($this->failureStrings[$cmd], $key) + : sprintf($this->failureStrings[$cmd], $val, $key); + $content .= "</li>\n"; + } + } + } + $content .= '</ul>'; + return $content; + } + + /** + * @param $sql + * @return bool|resource + */ + public function query($sql) + { + $this->db->connect(); + return $this->db->query($sql); + } + + /** + * @param $table + * @return string + */ + public function prefix($table) + { + $this->db->connect(); + return $this->db->prefix($table); + } + + /** + * @param $ret + * @return array + */ + public function fetchArray($ret) + { + $this->db->connect(); + return $this->db->fetchArray($ret); + } + + /** + * @param $table + * @param $query + * @return bool|void + */ + public function insert($table, $query) + { + $this->db->connect(); + $table = $this->db->prefix($table); + $query = 'INSERT INTO ' . $table . ' ' . $query; + if (!$this->db->queryF($query)) { + if (!isset($this->f_tables['insert'][$table])) { + $this->f_tables['insert'][$table] = 1; + } else { + $this->f_tables['insert'][$table]++; + } + return false; + } else { + if (!isset($this->s_tables['insert'][$table])) { + $this->s_tables['insert'][$table] = 1; + } else { + $this->s_tables['insert'][$table]++; + } + return $this->db->getInsertId(); + } + } + + /** + * @return bool + */ + public function isError() + { + return (isset($this->f_tables)) ? true : false; + } + + /** + * @param $tables + * @return array + */ + public function deleteTables($tables) + { + $deleted = array(); + $this->db->connect(); + foreach ($tables as $key => $val) { + if (!$this->db->query("DROP TABLE " . $this->db->prefix($key))) { + $deleted[] = $val; + } + } + return $deleted; + } + + /** + * @param $table + * @return bool + */ + public function tableExists($table) + { + $table = trim($table); + $ret = false; + if ($table != '') { + $this->db->connect(); + $sql = 'SELECT COUNT(*) FROM ' . $this->db->prefix($table); + $ret = (false != $this->db->query($sql)) ? true : false; + } + return $ret; + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/stats.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/stats.php 2012-02-15 10:05:15 UTC (rev 8984) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/stats.php 2012-02-15 10:24:49 UTC (rev 8985) @@ -100,326 +100,4 @@ } return $ret; } - - /** - * get sum of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @return array of counts - */ - public function getSum($field, $criteria = NULL) { - if (empty($field)) { - return false; - } - $idxfield = ''; - $groupby = false; - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - if ($criteria->getGroupby() != '') { - $groupby = true; - $idxfield = $criteria->getGroupby() . ", "; - } - } - if ($groupby == false) { - $sql = "SELECT sum(`$field`) as result FROM `" . $this->table . "`"; - } else { - $sql = "SELECT `$idxfield`, sum(`$field`) as result FROM `" . $this->table . "`"; - } - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $sql .= ' ' . $criteria->renderWhere(); - $sql .= $criteria->getGroupby(); - } - $result = $this->handler->db->query($sql); - if (!$result) { - return 0; - } - if ($groupby == false) { - list ($sum) = $this->handler->db->fetchRow($result); - return $sum; - } else { - $ret = array(); - while (list ($id, $sum) = $this->handler->db->fetchRow($result)) { - $ret[$id] = $sum; - } - return $ret; - } - } - - /** - * get average of field matching a condition - * - * @param string $field field to base average on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @return array of counts - */ - function getAverage($field, $criteria = NULL) { - if (empty($field)) { - return false; - } - $idxfield = ''; - $groupby = false; - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - if ($criteria->getGroupby() != '') { - $groupby = true; - $idxfield = $criteria->getGroupby() . ", "; - } - } - if ($groupby==false) { - $sql = "SELECT avg(`$field`) as result FROM `" . $this->table . "`"; - } else { - $sql = "SELECT `$idxfield`, avg(`$field`) as result FROM `" . $this->table . "`"; - } - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $sql .= ' ' . $criteria->renderWhere(); - $sql .= $criteria->getGroupby(); - } - $result = $this->handler->db->query($sql); - if (!$result) { - return 0; - } - if ($groupby == false) { - list ($avg) = $this->handler->db->fetchRow($result); - return $avg; - } else { - $ret = array(); - while (list ($id, $avg) = $this->handler->db->fetchRow($result)) { - $ret[$id] = $avg; - } - return $ret; - } - } - - /** - * get maximum of field matching a condition - * - * @param string $field field to base maximum value on - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @return array of counts - */ - function getMaximum($field, $criteria = NULL) { - if (empty($field)) { - return false; - } - $idxfield = ''; - $groupby = false; - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - if ($criteria->getGroupby() != '') { - $groupby = true; - $idxfield = $criteria->getGroupby() . ", "; - } - } - if ($groupby==false) { - $sql = "SELECT max(`$field`) as result FROM `" . $this->table . "`"; - } else { - $sql = "SELECT `$idxfield`, max(`$field`) as result FROM `" . $this->table . "`"; - } - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $sql .= ' ' . $criteria->renderWhere(); - $sql .= $criteria->getGroupby(); - } - $result = $this->handler->db->query($sql); - if (!$result) { - return 0; - } - if ($groupby == false) { - list ($max) = $this->handler->db->fetchRow($result); - return $max; - } else { - $ret = array(); - while (list ($id, $max) = $this->handler->db->fetchRow($result)) { - $ret[$id] = $max; - } - return $ret; - } - } - - /** - * get minimum of field matching a condition - * - * @param string $field field to base minimum value on - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @return array of counts - */ - function getMinimum($field, $criteria = NULL) { - if (empty($field)) { - return false; - } - $idxfield = ''; - $groupby = false; - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - if ($criteria->getGroupby() != '') { - $groupby = true; - $idxfield = $criteria->getGroupby() . ", "; - } - } - if ($groupby==false) { - $sql = "SELECT min(`$field`) as result FROM `" . $this->table . "`"; - } else { - $sql = "SELECT `$idxfield`, min(`$field`) as result FROM `" . $this->table . "`"; - } - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $sql .= ' ' . $criteria->renderWhere(); - $sql .= $criteria->getGroupby(); - } - $result = $this->handler->db->query($sql); - if (!$result) { - return 0; - } - if ($groupby == false) { - list ($min) = $this->handler->db->fetchRow($result); - return $min; - } else { - $ret = array(); - while (list ($id, $min) = $this->handler->db->fetchRow($result)) { - $ret[$id] = $min; - } - return $ret; - } - } - - /** - * get standard deviation of field matching a condition - * - * @param string $field field to base standard deviation value on - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @return array of counts - */ - function getDeviation($field, $criteria = NULL) { - if (empty($field)) { - return false; - } - $idxfield = ''; - $groupby = false; - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - if ($criteria->getGroupby() != '') { - $groupby = true; - $idxfield = $criteria->getGroupby() . ", "; - } - } - if ($groupby==false) { - $sql = "SELECT stddev(`$field`) as result FROM `" . $this->table . "`"; - } else { - $sql = "SELECT `$idxfield`, stddev(`$field`) as result FROM `" . $this->table . "`"; - } - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $sql .= ' ' . $criteria->renderWhere(); - $sql .= $criteria->getGroupby(); - } - $result = $this->handler->db->query($sql); - if (!$result) { - return 0; - } - if ($groupby == false) { - list ($stddev) = $this->handler->db->fetchRow($result); - return $stddev; - } else { - $ret = array(); - while (list ($id, $stddev) = $this->handler->db->fetchRow($result)) { - $ret[$id] = $stddev; - } - return $ret; - } - } - - /** - * get standard variance of field matching a condition - * - * @param string $field field to base standard variance value on - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @return array of counts - */ - function getVariance($field, $criteria = NULL) { - if (empty($field)) { - return false; - } - $idxfield = ''; - $groupby = false; - if ($criteria->getGroupby() != '') { - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $groupby = true; - $idxfield = $criteria->getGroupby() . ", "; - } - } - if ($groupby==false) { - $sql = "SELECT variance(`$field`) as result FROM `" . $this->table . "`"; - } else { - $sql = "SELECT `$idxfield`, variance(`$field`) as result FROM `" . $this->table . "`"; - } - if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { - $sql .= ' ' . $criteria->renderWhere(); - $sql .= $criteria->getGroupby(); - } - $result = $this->handler->db->query($sql); - if (!$result) { - return 0; - } - if ($groupby == false) { - list ($variance) = $this->handler->db->fetchRow($result); - return $variance; - } else { - $ret = array(); - while (list ($id, $variance) = $this->handler->db->fetchRow($result)) { - $ret[$id] = $variance; - } - return $ret; - } - } - - /** - * get CriteriaElement Object based on a filter string - * - * @param string $filter string to base filter on of criteria element - * @return CriteriaElement|null $criteria {@link CriteriaElement} - */ - function getFilterCriteria($filter) { - $parts = explode('|', $filter); - $criteria = new CriteriaCompo(); - foreach($parts as $part) { - $var = explode(',', $part); - if (!empty($var[1])&&!is_numeric($var[0])) { - $object = $this->create(); - if ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_TXTBOX || - $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_TXTAREA) { - $criteria->add(new Criteria('`'.$var[0].'`', '%'.$var[1].'%', (isset($var[2])?$var[2]:'LIKE'))); - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_INT || - $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_DECIMAL || - $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_FLOAT ) { - $criteria->add(new Criteria('`'.$var[0].'`', $var[1], (isset($var[2])?$var[2]:'='))); - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_STIME || - $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_MTIME || - $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_LTIME ) { - if (is_string($var[1])) { - $criteria->add(new Criteria('`'.$var[0].'`', strtotime($var[1]), (isset($var[2])?$var[2]:'='))); - } elseif (is_numeric($var[1])) { - $criteria->add(new Criteria('`'.$var[0].'`', $var[1], (isset($var[2])?$var[2]:'='))); - } - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_DATE ) { - if (is_numeric($var[1])&&!is_string($var[1])) { - $criteria->add(new Criteria('`'.$var[0].'`', date(_DBDATESTRING, $var[1]), (isset($var[2])?$var[2]:'='))); - } else { - $criteria->add(new Criteria('`'.$var[0].'`', date(_DBDATESTRING, strtotime($var[1])), (isset($var[2])?$var[2]:'='))); - } - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_TIME ) { - if (is_numeric($var[1])&&!is_string($var[1])) { - $criteria->add(new Criteria('`'.$var[0].'`', date(_DBTIMESTRING, $var[1]), (isset($var[2])?$var[2]:'='))); - } else { - $criteria->add(new Criteria('`'.$var[0].'`', date(_DBTIMESTRING, strtotime($var[1])), (isset($var[2])?$var[2]:'='))); - } - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_TIMESTAMP ) { - if (is_numeric($var[1])&&!is_string($var[1])) { - $criteria->add(new Criteria('`'.$var[0].'`', date(_DBTIMESTAMPSTRING, $var[1]), (isset($var[2])?$var[2]:'='))); - } else { - $criteria->add(new Criteria('`'.$var[0].'`', date(_DBTIMESTAMPSTRING, strtotime($var[1])), (isset($var[2])?$var[2]:'='))); - } - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_ENUM ) { - $criteria->add(new Criteria('`'.$var[0].'`', $var[1], (isset($var[2])?$var[2]:'='))); - } elseif ( $object->vars[$var[0]]['data_type']==XOBJ_DTYPE_ARRAY ) { - $criteria->add(new Criteria('`'.$var[0].'`', '%"'.$var[1].'";%', (isset($var[2])?$var[2]:'LIKE'))); - } - } elseif (!empty($var[1])&&is_numeric($var[0])) { - $criteria->add(new Criteria("'".$var[0]."'", $var[1])); - } - } - return $criteria; - } } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php 2012-02-15 10:05:15 UTC (rev 8984) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php 2012-02-15 10:24:49 UTC (rev 8985) @@ -672,7 +672,7 @@ $attributes['rel'] = $rel; $this->addMeta('link', '', $attributes); } - + /** * Set a meta http-equiv value * Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php 2012-02-15 10:05:15 UTC (rev 8984) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php 2012-02-15 10:24:49 UTC (rev 8985) @@ -38,9 +38,7 @@ define('XOBJ_DTYPE_FLOAT', 13); define('XOBJ_DTYPE_DECIMAL', 14); define('XOBJ_DTYPE_ENUM', 15); -define('XOBJ_DTYPE_DATE', 22); -define('XOBJ_DTYPE_TIME', 23); -define('XOBJ_DTYPE_TIMESTAMP', 24); + /** * Base class for all objects in the Xoops kernel (and beyond) */ @@ -174,31 +172,7 @@ public function assignVar($key, $value) { if (isset($key) && isset($this->vars[$key])) { - switch ($this->vars[$key]['data_type']) { - case XOBJ_DTYPE_DATE: - if (!is_string($value)&&is_numeric($value)) { - $this->vars[$key]['value'] =& date(_DBDATESTRING, $value); - } else { - $this->vars[$key]['value'] =& date(_DBDATESTRING, strtotime($value)); - } - break; - case XOBJ_DTYPE_TIME: - if (!is_string($value)&&is_numeric($value)) { - $this->vars[$key]['value'] =& date(_DBTIMESTRING, $value); - } else { - $this->vars[$key]['value'] =& date(_DBTIMESTRING, strtotime($value)); - } - break; - case XOBJ_DTYPE_TIMESTAMP: - if (!is_string($value)&&is_numeric($value)) { - $this->vars[$key]['value'] =& date(_DBTIMESTAMPSTRING, $value); - } else { - $this->vars[$key]['value'] =& date(_DBTIMESTAMPSTRING, strtotime($value)); - } - break; - default: - $this->vars[$key]['value'] =& $value; - } + $this->vars[$key]['value'] = $value; } } @@ -347,126 +321,6 @@ $ret = $this->vars[$key]['value']; $ts = MyTextSanitizer::getInstance(); switch ($this->vars[$key]['data_type']) { - case XOBJ_DTYPE_DATE: - switch (strtolower($format)) { - case 's': - case 'show': - if (is_string($ret)&&!is_numeric($ret)) { - return date(_DBDATESTRING, strtotime($ret)); - } else { - return date(_DBDATESTRING, $ret); - } - break 1; - case 'e': - case 'edit': - if (is_string($ret)&&!is_numeric($ret)) { - return htmlspecialchars(date(_DBDATESTRING, strtotime($ret)), ENT_QUOTES); - } else { - return htmlspecialchars(date(_DBDATESTRING, $ret), ENT_QUOTES); - } - break 1; - case 'p': - case 'preview': - if (is_string($ret)&&!is_numeric($ret)) { - return $ts->stripSlashesGPC(date(_DBDATESTRING, strtotime($ret))); - } else { - return $ts->stripSlashesGPC(date(_DBDATESTRING, $ret)); - } - break 1; - case 'f': - case 'formpreview': - if (is_string($ret)&&!is_numeric($ret)) { - return htmlspecialchars($ts->stripSlashesGPC(date(_DBDATESTRING, strtotime($ret))), ENT_QUOTES); - } else { - return htmlspecialchars($ts->stripSlashesGPC(date(_DBDATESTRING, $ret)), ENT_QUOTES); - } - break 1; - case 'n': - case 'none': - default: - break 1; - } - break; - case XOBJ_DTYPE_TIME: - switch (strtolower($format)) { - case 's': - case 'show': - if (is_string($ret)&&!is_numeric($ret)) { - return date(_DBTIMESTRING, strtotime($ret)); - } else { - return date(_DBTIMESTRING, $ret); - } - break 1; - case 'e': - case 'edit': - if (is_string($ret)&&!is_numeric($ret)) { - return htmlspecialchars(date(_DBTIMESTRING, strtotime($ret)), ENT_QUOTES); - } else { - return htmlspecialchars(date(_DBTIMESTRING, $ret), ENT_QUOTES); - } - break 1; - case 'p': - case 'preview': - if (is_string($ret)&&!is_numeric($ret)) { - return $ts->stripSlashesGPC(date(_DBTIMESTRING, strtotime($ret))); - } else { - return $ts->stripSlashesGPC(date(_DBTIMESTRING, $ret)); - } - break 1; - case 'f': - case 'formpreview': - if (is_string($ret)&&!is_numeric($ret)) { - return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTRING, strtotime($ret))), ENT_QUOTES); - } else { - return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTRING, $ret)), ENT_QUOTES); - } - break 1; - case 'n': - case 'none': - default: - break 1; - } - break; - case XOBJ_DTYPE_TIMESTAMP: - switch (strtolower($format)) { - case 's': - case 'show': - if (is_string($ret)&&!is_numeric($ret)) { - return date(_DBTIMESTAMPSTRING, strtotime($ret)); - } else { - return date(_DBTIMESTAMPSTRING, $ret); - } - break 1; - case 'e': - case 'edit': - if (is_string($ret)&&!is_numeric($ret)) { - return htmlspecialchars(date(_DBTIMESTAMPSTRING, strtotime($ret)), ENT_QUOTES); - } else { - return htmlspecialchars(date(_DBTIMESTAMPSTRING, $ret), ENT_QUOTES); - } - break 1; - case 'p': - case 'preview': - if (is_string($ret)&&!is_numeric($ret)) { - return $ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, strtotime($ret))); - } else { - return $ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, $ret)); - } - break 1; - case 'f': - case 'formpreview': - if (is_string($ret)&&!is_numeric($ret)) { - return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, strtotime($ret))), ENT_QUOTES); - } else { - return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, $ret)), ENT_QUOTES); - } - break 1; - case 'n': - case 'none': - default: - break 1; - } - break; case XOBJ_DTYPE_TXTBOX: switch (strtolower($format)) { case 's': @@ -607,15 +461,6 @@ } else { $cleanv = is_string($cleanv) ? trim($cleanv) : $cleanv; switch ($v['data_type']) { - case XOBJ_DTYPE_TIMESTAMP: - $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBTIMESTAMPSTRING, $cleanv) : date(_DBTIMESTAMPSTRING, strtotime($cleanv)); - break; - case XOBJ_DTYPE_TIME: - $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBTIMESTRING, $cleanv) : date(_DBTIMESTRING, strtotime($cleanv)); - break; - case XOBJ_DTYPE_DATE: - $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBDATESTRING, $cleanv) : date(_DBDATESTRING, strtotime($cleanv)); - break; case XOBJ_DTYPE_TXTBOX: if ($v['required'] && $cleanv != '0' && $cleanv == '') { $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k)); @@ -1154,7 +999,7 @@ $select = '*'; } $sql = sprintf('SELECT %s FROM %s WHERE %s = %s', $select, $this->table, $this->keyName, $this->db->quote($id)); - if (!$result = $this->db->query($sql, null, null, null, $secondscached, $flushcache)) { + if (!$result = $this->db->query($sql)) { return $object; } if (!$this->db->getRowsNum($result)) { @@ -1251,11 +1096,11 @@ * @param bool $as_object return an array of objects * @return array */ - public function getObjects(CriteriaElement $criteria = null, $id_as_key = false, $as_object = true, $secondscached = 0, $flushcache = false) + public function getObjects(CriteriaElement $criteria = null, $id_as_key = false, $as_object = true) { /* @var $handler XoopsModelRead */ $handler = $this->loadHandler('read'); - $ret = $handler->getObjects($criteria, $id_as_key, $as_object, $secondscached, $flushcache); + $ret = $handler->getObjects($criteria, $id_as_key, $as_object); return $ret; } @@ -1268,11 +1113,11 @@ * @param bool $id_as_key use the ID as key for the array * @return array of objects/array {@link XoopsObject} */ - public function getAll(CriteriaElement $criteria = null, $fields = null, $asObject = true, $id_as_key = true, $secondscached = 0, $flushcache = false) + public function getAll(CriteriaElement $criteria = null, $fields = null, $asObject = true, $id_as_key = true) { /* @var $handler XoopsModelRead */ $handler = $this->loadHandler('read'); - $ret = $handler->getAll($criteria, $fields, $asObject, $id_as_key, $secondscached, $flushcache); + $ret = $handler->getAll($criteria, $fields, $asObject, $id_as_key); return $ret; } @@ -1284,11 +1129,11 @@ * @param int $start Which record to start at * @return array */ - public function getList(CriteriaElement $criteria = null, $limit = 0, $start = 0, $secondscached = 0, $flushcache = false) + public function getList(CriteriaElement $criteria = null, $limit = 0, $start = 0) { /* @var $handler XoopsModelRead */ $handler = $this->loadHandler('read'); - $ret = $handler->getList($criteria, $limit, $start, $secondscached, $flushcache); + $ret = $handler->getList($criteria, $limit, $start); return $ret; } @@ -1298,11 +1143,11 @@ * @param CriteriaElement|null $criteria {@link CriteriaElement} to match * @return array of object IDs */ - public function getIds(CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) + public function getIds(CriteriaElement $criteria = null) { /* @var $handler XoopsModelRead */ $handler = $this->loadHandler('read'); - $ret = $handler->getIds($criteria, $secondscached, $flushcache); + $ret = $handler->getIds($criteria); return $ret; } @@ -1318,127 +1163,28 @@ * count objects matching a condition * * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true * @return int count of objects */ - public function getCount(CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) + public function getCount(CriteriaElement $criteria = null) { /* @var $handler XoopsModelStats */ $handler = $this->loadHandler('stats'); - return $handler->getCount($criteria, $secondscached, $flushcache); + return $handler->getCount($criteria); } /** * Get counts of objects matching a condition * * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true * @return array of counts */ - public function getCounts(CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) + public function getCounts(CriteriaElement $criteria = null) { /* @var $handler XoopsModelStats*/ $handler = $this->loadHandler('stats'); - return $handler->getCounts($criteria, $secondscached, $flushcache); + return $handler->getCounts($criteria); } - - /** - * get sum of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true - * @return array of sum if grouped or int of sum - */ - public function getSum($field, CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) - { - /* @var $handler XoopsModelStats */ - $handler = $this->loadHandler('stats'); - return $handler->getSum($field, $criteria, $secondscached, $flushcache); - } - - /** - * get average of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true - * @return array of sum if grouped or int of sum - */ - public function getAverage($field, CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) - { - /* @var $handler XoopsModelStats */ - $handler = $this->loadHandler('stats'); - return $handler->getAverage($field, $criteria, $secondscached, $flushcache); - } - - /** - * get maximum of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true - * @return array of maximum if grouped or int of maximum - */ - public function getMaximum($field, CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) - { - /* @var $handler XoopsModelStats */ - $handler = $this->loadHandler('stats'); - return $handler->getMaximum($field, $criteria, $secondscached, $flushcache); - } - /** - * get minimum of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true - * @return array of minimum if grouped or int of minimum - */ - public function getMinimum($field, CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) - { - /* @var $handler XoopsModelStats */ - $handler = $this->loadHandler('stats'); - return $handler->getMinimum($field, $criteria, $secondscached, $flushcache); - } - - /** - * get deviation of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true - * @return array of deviation if grouped or int of deviation - */ - public function getDeviation($field, CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) - { - /* @var $handler XoopsModelStats */ - $handler = $this->loadHandler('stats'); - return $handler->getDeviation($field, $criteria, $secondscached, $flushcache); - } - - /** - * get variance of field matching a condition - * - * @param string $field field to base sum on to match in criteria if set - * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true - * @return array of variance if grouped or int of variance - */ - public function getVariance($field, CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) - { - /* @var $handler XoopsModelStats */ - $handler = $this->loadHandler('stats'); - return $handler->getVariance($field, $criteria, $secondscached, $flushcache); - } /** * *#@- */ @@ -1455,11 +1201,9 @@ * @param bool $asObject flag indicating as object, otherwise as array * @param string $field_link field of linked object for JOIN * @param string $field_object field of current object for JOIN - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true * @return array of objects {@link XoopsObject} */ - public function getByLink(CriteriaElement $criteria = null, $fields = null, $asObject = true, $field_link = null, $field_object = null, $secondscached = 0, $flushcache = false) + public function getByLink(CriteriaElement $criteria = null, $fields = null, $asObject = true, $field_link = null, $field_object = null) { /* @var $handler XoopsModelJoint */ $handler = $this->loadHandler('joint'); @@ -1471,15 +1215,13 @@ * Count of objects matching a condition * * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true * @return int count of objects */ - public function getCountByLink(CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) + public function getCountByLink(CriteriaElement $criteria = null) { /* @var $handler XoopsModelJoint */ $handler = $this->loadHandler('joint'); - $ret = $handler->getCountByLink($criteria, $secondscached, $flushcache); + $ret = $handler->getCountByLink($criteria); return $ret; } @@ -1487,15 +1229,13 @@ * array of count of objects matching a condition of, groupby linked object keyname * * @param CriteriaElement|null $criteria {@link CriteriaElement} to match - * @param integer $secondscached result based on SQL Statement will be file cached for this amount of second - * @param boolean $flushcache result based on SQL Statement will be from database and file cached will be cleared when true * @return int count of objects */ - public function getCountsByLink(CriteriaElement $criteria = null, $secondscached = 0, $flushcache = false) + public function getCountsByLink(CriteriaElement $criteria = null) { /* @var $handler XoopsModelJoint */ $handler = $this->loadHandler('joint'); - $ret = $handler->getCountsByLink($criteria, $secondscached, $flushcache); + $ret = $handler->getCountsByLink($criteria); return $ret; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <for...@us...> - 2012-02-15 10:05:25
|
Revision: 8984 http://xoops.svn.sourceforge.net/xoops/?rev=8984&view=rev Author: forxoops Date: 2012-02-15 10:05:15 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Revert DB Connector addition Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php 2012-02-15 10:04:34 UTC (rev 8983) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php 2012-02-15 10:05:15 UTC (rev 8984) @@ -222,8 +222,8 @@ $created_tables = array(); if (count($this->error) == 0) { $sql_file = $module->getInfo('sqlfile'); - if (is_array($sql_file) && (!empty($sql_file[XOOPS_DB_TYPE]) || !empty($sql_file['mysql']))) { - $sql_file_path = XOOPS_ROOT_PATH . '/modules/' . $mod . '/' . (!empty($sql_file[XOOPS_DB_TYPE]) ? $sql_file[XOOPS_DB_TYPE] : $sql_file['mysql']); + if (is_array($sql_file) && !empty($sql_file[XOOPS_DB_TYPE])) { + $sql_file_path = XOOPS_ROOT_PATH . '/modules/' . $mod . '/' . $sql_file[XOOPS_DB_TYPE]; if (!file_exists($sql_file_path)) { $this->error[] = sprintf(_AM_SYSTEM_MODULES_SQL_NOT_FOUND, "<strong>{$sql_file_path}</strong>"); return false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <for...@us...> - 2012-02-15 10:04:40
|
Revision: 8983 http://xoops.svn.sourceforge.net/xoops/?rev=8983&view=rev Author: forxoops Date: 2012-02-15 10:04:34 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Revert DB Connector addition Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/language/english/global.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/language/english/global.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/language/english/global.php 2012-02-15 10:02:44 UTC (rev 8982) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/language/english/global.php 2012-02-15 10:04:34 UTC (rev 8983) @@ -213,10 +213,4 @@ **/ define('_RESET', 'Reset'); define('_RE', 'Re:'); -/** - * Additions to 2.5.5 -**/ -define('_DBDATESTRING', 'Y-m-d'); -define('_DBTIMESTRING', 'H:i:s'); -define('_DBTIMESTAMPSTRING', 'Y-m-d H:i:s'); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <for...@us...> - 2012-02-15 10:02:56
|
Revision: 8982 http://xoops.svn.sourceforge.net/xoops/?rev=8982&view=rev Author: forxoops Date: 2012-02-15 10:02:44 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Revert DB Connector addition Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqli.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlpo.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlt.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_mysql.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_pgsql.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres7.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres8.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlt.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlt.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_mysql.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_mysql.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_pgsql.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_pgsql.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres7.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres7.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres8.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres8.structure.sql Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php 2012-02-15 10:02:44 UTC (rev 8982) @@ -27,7 +27,7 @@ $configs = array(); // setup config site info -$configs['db_types'] = array('mysql', 'mysqli', 'mysqlpo', 'mysqlt', 'pdo_mysql', 'pdo_pgsql', 'postgres', 'postgres7', 'postgres8'); +$configs['db_types'] = array('mysql'); // setup config site info $configs['conf_names'] = array( Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqli.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqli.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqli.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlpo.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlpo.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlpo.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlt.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlt.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlt.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_mysql.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_mysql.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_mysql.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_pgsql.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_pgsql.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_pgsql.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres7.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres7.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres7.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres8.lang.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres8.lang.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres8.lang.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,33 +0,0 @@ -# -# Dumping data for table `ranks` -# - -INSERT INTO ranks VALUES (1, 'Just popping in', 0, 20, 0, 'ranks/rank3e632f95e81ca.gif'); -INSERT INTO ranks VALUES (2, 'Not too shy to talk', 21, 40, 0, 'ranks/rank3dbf8e94a6f72.gif'); -INSERT INTO ranks VALUES (3, 'Quite a regular', 41, 70, 0, 'ranks/rank3dbf8e9e7d88d.gif'); -INSERT INTO ranks VALUES (4, 'Just can\'t stay away', 71, 150, 0, 'ranks/rank3dbf8ea81e642.gif'); -INSERT INTO ranks VALUES (5, 'Home away from home', 151, 10000, 0, 'ranks/rank3dbf8eb1a72e7.gif'); -INSERT INTO ranks VALUES (6, 'Moderator', 0, 0, 1, 'ranks/rank3dbf8edf15093.gif'); -INSERT INTO ranks VALUES (7, 'Webmaster', 0, 0, 1, 'ranks/rank3dbf8ee8681cd.gif'); - -# -# Dumping data for table `smiles` -# - -INSERT INTO smiles VALUES (1, ':-D', 'smilies/smil3dbd4d4e4c4f2.gif', 'Very Happy', 1); -INSERT INTO smiles VALUES (2, ':-)', 'smilies/smil3dbd4d6422f04.gif', 'Smile', 1); -INSERT INTO smiles VALUES (3, ':-(', 'smilies/smil3dbd4d75edb5e.gif', 'Sad', 1); -INSERT INTO smiles VALUES (4, ':-o', 'smilies/smil3dbd4d8676346.gif', 'Surprised', 1); -INSERT INTO smiles VALUES (5, ':-?', 'smilies/smil3dbd4d99c6eaa.gif', 'Confused', 1); -INSERT INTO smiles VALUES (6, '8-)', 'smilies/smil3dbd4daabd491.gif', 'Cool', 1); -INSERT INTO smiles VALUES (7, ':lol:', 'smilies/smil3dbd4dbc14f3f.gif', 'Laughing', 1); -INSERT INTO smiles VALUES (8, ':-x', 'smilies/smil3dbd4dcd7b9f4.gif', 'Mad', 1); -INSERT INTO smiles VALUES (9, ':-P', 'smilies/smil3dbd4ddd6835f.gif', 'Razz', 1); -INSERT INTO smiles VALUES (10, ':oops:', 'smilies/smil3dbd4df1944ee.gif', 'Embaressed', 0); -INSERT INTO smiles VALUES (11, ':cry:', 'smilies/smil3dbd4e02c5440.gif', 'Crying (very sad)', 0); -INSERT INTO smiles VALUES (12, ':evil:', 'smilies/smil3dbd4e1748cc9.gif', 'Evil or Very Mad', 0); -INSERT INTO smiles VALUES (13, ':roll:', 'smilies/smil3dbd4e29bbcc7.gif', 'Rolling Eyes', 0); -INSERT INTO smiles VALUES (14, ';-)', 'smilies/smil3dbd4e398ff7b.gif', 'Wink', 0); -INSERT INTO smiles VALUES (15, ':pint:', 'smilies/smil3dbd4e4c2e742.gif', 'Another pint of beer', 0); -INSERT INTO smiles VALUES (16, ':hammer:', 'smilies/smil3dbd4e5e7563a.gif', 'ToolTimes at work', 0); -INSERT INTO smiles VALUES (17, ':idea:', 'smilies/smil3dbd4e7853679.gif', 'I have an idea', 0); Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,119 +0,0 @@ -# phpMyAdmin MySQL-Dump -# version 2.3.2 -# http://www.phpmyadmin.net/ (download page) -# -# Host: localhost -# Generation Time: Jan 09, 2003 at 12:37 AM -# Server version: 3.23.54 -# PHP Version: 4.2.2 -# Database : `xoops2` - - -# -# Dumping data for table `bannerclient` -# - -INSERT INTO bannerclient VALUES (1,0, 'XOOPS', 'XOOPS Dev Team'); - -# -# Dumping data for table `comments` -# - - -# -# Dumping data for table `configcategory` -# - -INSERT INTO configcategory VALUES (1, '_MD_AM_GENERAL', 0); -INSERT INTO configcategory VALUES (2, '_MD_AM_USERSETTINGS', 0); -INSERT INTO configcategory VALUES (3, '_MD_AM_METAFOOTER', 0); -INSERT INTO configcategory VALUES (4, '_MD_AM_CENSOR', 0); -INSERT INTO configcategory VALUES (5, '_MD_AM_SEARCH', 0); -INSERT INTO configcategory VALUES (6, '_MD_AM_MAILER', 0); -INSERT INTO configcategory VALUES (7, '_MD_AM_AUTHENTICATION', 0); - -# -# Dumping data for table `configoption` -# - -INSERT INTO configoption VALUES (1, '_MD_AM_DEBUGMODE1', '1', 13); -INSERT INTO configoption VALUES (2, '_MD_AM_DEBUGMODE2', '2', 13); -INSERT INTO configoption VALUES (3, '_NESTED', 'nest', 32); -INSERT INTO configoption VALUES (4, '_FLAT', 'flat', 32); -INSERT INTO configoption VALUES (5, '_THREADED', 'thread', 32); -INSERT INTO configoption VALUES (6, '_OLDESTFIRST', '0', 33); -INSERT INTO configoption VALUES (7, '_NEWESTFIRST', '1', 33); -INSERT INTO configoption VALUES (8, '_MD_AM_USERACTV', '0', 21); -INSERT INTO configoption VALUES (9, '_MD_AM_AUTOACTV', '1', 21); -INSERT INTO configoption VALUES (10, '_MD_AM_ADMINACTV', '2', 21); -INSERT INTO configoption VALUES (11, '_MD_AM_STRICT', '0', 23); -INSERT INTO configoption VALUES (12, '_MD_AM_MEDIUM', '1', 23); -INSERT INTO configoption VALUES (13, '_MD_AM_LIGHT', '2', 23); -INSERT INTO configoption VALUES (14, '_MD_AM_DEBUGMODE3', '3', 13); -INSERT INTO configoption VALUES (15, '_MD_AM_INDEXFOLLOW', 'index,follow', 43); -INSERT INTO configoption VALUES (16, '_MD_AM_NOINDEXFOLLOW', 'noindex,follow', 43); -INSERT INTO configoption VALUES (17, '_MD_AM_INDEXNOFOLLOW', 'index,nofollow', 43); -INSERT INTO configoption VALUES (18, '_MD_AM_NOINDEXNOFOLLOW', 'noindex,nofollow', 43); -INSERT INTO configoption VALUES (19, '_MD_AM_METAOGEN', 'general', 48); -INSERT INTO configoption VALUES (20, '_MD_AM_METAO14YRS', '14 years', 48); -INSERT INTO configoption VALUES (21, '_MD_AM_METAOREST', 'restricted', 48); -INSERT INTO configoption VALUES (22, '_MD_AM_METAOMAT', 'mature', 48); -INSERT INTO configoption VALUES (23, '_MD_AM_DEBUGMODE0', '0', 13); - -INSERT INTO configoption VALUES (24,'PHP mail()','mail',64); -INSERT INTO configoption VALUES (25,'sendmail','sendmail',64); -INSERT INTO configoption VALUES (26,'SMTP','smtp',64); -INSERT INTO configoption VALUES (27,'SMTPAuth','smtpauth',64); - -# Xoops Auth -INSERT INTO configoption VALUES (28, '_MD_AM_AUTH_CONFOPTION_XOOPS', 'xoops', 74); -INSERT INTO configoption VALUES (29, '_MD_AM_AUTH_CONFOPTION_LDAP', 'ldap', 74); -INSERT INTO configoption VALUES (30, '_MD_AM_AUTH_CONFOPTION_AD', 'ads', 74); - -# Welcoming message type -INSERT INTO configoption VALUES (31, '_NO', '0', 95); -INSERT INTO configoption VALUES (32, '_MD_AM_WELCOMETYPE_EMAIL', '1', 95); -INSERT INTO configoption VALUES (33, '_MD_AM_WELCOMETYPE_PM', '2', 95); -INSERT INTO configoption VALUES (34, '_MD_AM_WELCOMETYPE_BOTH', '3', 95); - - -# -# Dumping data for table `image` -# - - -# -# Dumping data for table `imagebody` -# - - -# -# Dumping data for table `imagecategory` -# - - -# -# Dumping data for table `imgset` -# - -INSERT INTO imgset VALUES (1, 'default', 0); - -# -# Dumping data for table `imgset_tplset_link` -# - -INSERT INTO imgset_tplset_link VALUES (1, 'default'); - -# -# Dumping data for table `online` -# - - -# -# Dumping data for table `priv_msgs` -# - - -# -# Dumping data for table `session` -# Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.structure.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.structure.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.structure.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,562 +0,0 @@ -# -# Table structure for table `avatar` -# - -CREATE TABLE avatar ( - avatar_id mediumint(8) unsigned NOT NULL auto_increment, - avatar_file varchar(30) NOT NULL default '', - avatar_name varchar(100) NOT NULL default '', - avatar_mimetype varchar(30) NOT NULL default '', - avatar_created int(10) NOT NULL default '0', - avatar_display tinyint(1) unsigned NOT NULL default '0', - avatar_weight smallint(5) unsigned NOT NULL default '0', - avatar_type char(1) NOT NULL default '', - PRIMARY KEY (avatar_id), - KEY avatar_type (avatar_type, avatar_display) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `avatar_user_link` -# - -CREATE TABLE avatar_user_link ( - avatar_id mediumint(8) unsigned NOT NULL default '0', - user_id mediumint(8) unsigned NOT NULL default '0', - KEY avatar_user_id (avatar_id,user_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `banner` -# - -CREATE TABLE banner ( - bid smallint(5) unsigned NOT NULL auto_increment, - cid tinyint(3) unsigned NOT NULL default '0', - imptotal int(10) unsigned NOT NULL default '0', - impmade mediumint(8) unsigned NOT NULL default '0', - clicks mediumint(8) unsigned NOT NULL default '0', - imageurl varchar(255) NOT NULL default '', - clickurl varchar(255) NOT NULL default '', - datestart int(10) NOT NULL default '0', - dateend int(10) NOT NULL default '0', - htmlbanner tinyint(1) NOT NULL default '0', - htmlcode text, - status tinyint(1) NOT NULL default '0', - PRIMARY KEY (bid), - KEY idxbannercid (cid), - KEY idxbannerbidcid (bid,cid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `bannerclient` -# - -CREATE TABLE bannerclient ( - cid smallint(5) unsigned NOT NULL auto_increment, - uid mediumint(8) unsigned NOT NULL default '0', - name varchar(60) NOT NULL default '', - extrainfo text, - PRIMARY KEY (cid), - KEY name (name) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `block_module_link` -# - -CREATE TABLE block_module_link ( - block_id mediumint(8) unsigned NOT NULL default '0', - module_id smallint(5) NOT NULL default '0', - PRIMARY KEY (`module_id`, `block_id`) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `comments` -# - -CREATE TABLE xoopscomments ( - com_id mediumint(8) unsigned NOT NULL auto_increment, - com_pid mediumint(8) unsigned NOT NULL default '0', - com_rootid mediumint(8) unsigned NOT NULL default '0', - com_modid smallint(5) unsigned NOT NULL default '0', - com_itemid mediumint(8) unsigned NOT NULL default '0', - com_icon varchar(25) NOT NULL default '', - com_created int(10) unsigned NOT NULL default '0', - com_modified int(10) unsigned NOT NULL default '0', - com_uid mediumint(8) unsigned NOT NULL default '0', - com_ip varchar(15) NOT NULL default '', - com_title varchar(255) NOT NULL default '', - com_text text, - com_sig tinyint(1) unsigned NOT NULL default '0', - com_status tinyint(1) unsigned NOT NULL default '0', - com_exparams varchar(255) NOT NULL default '', - dohtml tinyint(1) unsigned NOT NULL default '0', - dosmiley tinyint(1) unsigned NOT NULL default '0', - doxcode tinyint(1) unsigned NOT NULL default '0', - doimage tinyint(1) unsigned NOT NULL default '0', - dobr tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (com_id), - KEY com_pid (com_pid), - KEY com_itemid (com_itemid), - KEY com_uid (com_uid), - KEY com_title (com_title(40)), - KEY com_status (com_status) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# RMV-NOTIFY -# Table structure for table `notifications` -# - -CREATE TABLE xoopsnotifications ( - not_id mediumint(8) unsigned NOT NULL auto_increment, - not_modid smallint(5) unsigned NOT NULL default '0', - not_itemid mediumint(8) unsigned NOT NULL default '0', - not_category varchar(30) NOT NULL default '', - not_event varchar(30) NOT NULL default '', - not_uid mediumint(8) unsigned NOT NULL default '0', - not_mode tinyint(1) NOT NULL default 0, - PRIMARY KEY (not_id), - KEY not_modid (not_modid), - KEY not_itemid (not_itemid), - KEY not_class (not_category), - KEY not_uid (not_uid), - KEY not_event (not_event) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `config` -# - -CREATE TABLE config ( - conf_id smallint(5) unsigned NOT NULL auto_increment, - conf_modid smallint(5) unsigned NOT NULL default '0', - conf_catid smallint(5) unsigned NOT NULL default '0', - conf_name varchar(25) NOT NULL default '', - conf_title varchar(255) NOT NULL default '', - conf_value text, - conf_desc varchar(255) NOT NULL default '', - conf_formtype varchar(15) NOT NULL default '', - conf_valuetype varchar(10) NOT NULL default '', - conf_order smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (conf_id), - KEY conf_mod_cat_id (conf_modid, conf_catid), - KEY conf_order (conf_order) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `configcategory` -# - -CREATE TABLE configcategory ( - confcat_id smallint(5) unsigned NOT NULL auto_increment, - confcat_name varchar(255) NOT NULL default '', - confcat_order smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (confcat_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `configoption` -# - -CREATE TABLE configoption ( - confop_id mediumint(8) unsigned NOT NULL auto_increment, - confop_name varchar(255) NOT NULL default '', - confop_value varchar(255) NOT NULL default '', - conf_id smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (confop_id), - KEY conf_id (conf_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `groups` -# - -CREATE TABLE groups ( - groupid smallint(5) unsigned NOT NULL auto_increment, - name varchar(50) NOT NULL default '', - description text, - group_type varchar(10) NOT NULL default '', - - PRIMARY KEY (groupid), - KEY group_type (group_type) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `group_permission` -# - -CREATE TABLE group_permission ( - gperm_id int(10) unsigned NOT NULL auto_increment, - gperm_groupid smallint(5) unsigned NOT NULL default '0', - gperm_itemid mediumint(8) unsigned NOT NULL default '0', - gperm_modid mediumint(5) unsigned NOT NULL default '0', - gperm_name varchar(50) NOT NULL default '', - PRIMARY KEY (gperm_id), - KEY groupid (gperm_groupid), - KEY itemid (gperm_itemid), - KEY gperm_modid (gperm_modid,gperm_name(10)) -) ENGINE=MyISAM; -# -------------------------------------------------------- - - -# -# Table structure for table `groups_users_link` -# - -CREATE TABLE groups_users_link ( - linkid mediumint(8) unsigned NOT NULL auto_increment, - groupid smallint(5) unsigned NOT NULL default '0', - uid mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (linkid), - KEY groupid_uid (groupid,uid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `image` -# - -CREATE TABLE image ( - image_id mediumint(8) unsigned NOT NULL auto_increment, - image_name varchar(30) NOT NULL default '', - image_nicename varchar(255) NOT NULL default '', - image_mimetype varchar(30) NOT NULL default '', - image_created int(10) unsigned NOT NULL default '0', - image_display tinyint(1) unsigned NOT NULL default '0', - image_weight smallint(5) unsigned NOT NULL default '0', - imgcat_id smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (image_id), - KEY imgcat_id (imgcat_id), - KEY image_display (image_display) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imagebody` -# - -CREATE TABLE imagebody ( - image_id mediumint(8) unsigned NOT NULL default '0', - image_body mediumblob, - KEY image_id (image_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imagecategory` -# - -CREATE TABLE imagecategory ( - imgcat_id smallint(5) unsigned NOT NULL auto_increment, - imgcat_name varchar(100) NOT NULL default '', - imgcat_maxsize int(8) unsigned NOT NULL default '0', - imgcat_maxwidth smallint(3) unsigned NOT NULL default '0', - imgcat_maxheight smallint(3) unsigned NOT NULL default '0', - imgcat_display tinyint(1) unsigned NOT NULL default '0', - imgcat_weight smallint(3) unsigned NOT NULL default '0', - imgcat_type char(1) NOT NULL default '', - imgcat_storetype varchar(5) NOT NULL default '', - PRIMARY KEY (imgcat_id), - KEY imgcat_display (imgcat_display) -) ENGINE=MyISAM; -# -------------------------------------------------------- - - -# -# Table structure for table `imgset` -# - -CREATE TABLE imgset ( - imgset_id smallint(5) unsigned NOT NULL auto_increment, - imgset_name varchar(50) NOT NULL default '', - imgset_refid mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (imgset_id), - KEY imgset_refid (imgset_refid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imgset_tplset_link` -# - -CREATE TABLE imgset_tplset_link ( - imgset_id smallint(5) unsigned NOT NULL default '0', - tplset_name varchar(50) NOT NULL default '', - KEY tplset_name (tplset_name(10)) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imgsetimg` -# - -CREATE TABLE imgsetimg ( - imgsetimg_id mediumint(8) unsigned NOT NULL auto_increment, - imgsetimg_file varchar(50) NOT NULL default '', - imgsetimg_body blob, - imgsetimg_imgset smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (imgsetimg_id), - KEY imgsetimg_imgset (imgsetimg_imgset) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `modules` -# - -CREATE TABLE modules ( - mid smallint(5) unsigned NOT NULL auto_increment, - name varchar(150) NOT NULL default '', - version smallint(5) unsigned NOT NULL default '100', - last_update int(10) unsigned NOT NULL default '0', - weight smallint(3) unsigned NOT NULL default '0', - isactive tinyint(1) unsigned NOT NULL default '0', - dirname varchar(25) NOT NULL default '', - hasmain tinyint(1) unsigned NOT NULL default '0', - hasadmin tinyint(1) unsigned NOT NULL default '0', - hassearch tinyint(1) unsigned NOT NULL default '0', - hasconfig tinyint(1) unsigned NOT NULL default '0', - hascomments tinyint(1) unsigned NOT NULL default '0', - hasnotification tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (mid), - KEY hasmain (hasmain), - KEY hasadmin (hasadmin), - KEY hassearch (hassearch), - KEY hasnotification (hasnotification), - KEY dirname (dirname), - KEY name (name(15)), - KEY isactive (isactive), - KEY weight (weight), - KEY hascomments (hascomments) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `newblocks` -# - -CREATE TABLE newblocks ( - bid mediumint(8) unsigned NOT NULL auto_increment, - mid smallint(5) unsigned NOT NULL default '0', - func_num tinyint(3) unsigned NOT NULL default '0', - options varchar(255) NOT NULL default '', - name varchar(150) NOT NULL default '', - title varchar(255) NOT NULL default '', - content text, - side tinyint(1) unsigned NOT NULL default '0', - weight smallint(5) unsigned NOT NULL default '0', - visible tinyint(1) unsigned NOT NULL default '0', - block_type char(1) NOT NULL default '', - c_type char(1) NOT NULL default '', - isactive tinyint(1) unsigned NOT NULL default '0', - dirname varchar(50) NOT NULL default '', - func_file varchar(50) NOT NULL default '', - show_func varchar(50) NOT NULL default '', - edit_func varchar(50) NOT NULL default '', - template varchar(50) NOT NULL default '', - bcachetime int(10) unsigned NOT NULL default '0', - last_modified int(10) unsigned NOT NULL default '0', - PRIMARY KEY (bid), - KEY mid (mid), - KEY visible (visible), - KEY isactive_visible_mid (isactive,visible,mid), - KEY mid_funcnum (mid,func_num) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `online` -# - -CREATE TABLE online ( - online_uid mediumint(8) unsigned NOT NULL default '0', - online_uname varchar(25) NOT NULL default '', - online_updated int(10) unsigned NOT NULL default '0', - online_module smallint(5) unsigned NOT NULL default '0', - online_ip varchar(15) NOT NULL default '', - KEY online_module (online_module), - KEY online_updated (online_updated), - KEY online_uid (online_uid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `priv_msgs` -# - -CREATE TABLE priv_msgs ( - msg_id mediumint(8) unsigned NOT NULL auto_increment, - msg_image varchar(100) default NULL, - subject varchar(255) NOT NULL default '', - from_userid mediumint(8) unsigned NOT NULL default '0', - to_userid mediumint(8) unsigned NOT NULL default '0', - msg_time int(10) unsigned NOT NULL default '0', - msg_text text, - read_msg tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (msg_id), - KEY to_userid (to_userid), - KEY touseridreadmsg (to_userid,read_msg), - KEY msgidfromuserid (from_userid, msg_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `ranks` -# - -CREATE TABLE ranks ( - rank_id smallint(5) unsigned NOT NULL auto_increment, - rank_title varchar(50) NOT NULL default '', - rank_min mediumint(8) unsigned NOT NULL default '0', - rank_max mediumint(8) unsigned NOT NULL default '0', - rank_special tinyint(1) unsigned NOT NULL default '0', - rank_image varchar(255) default NULL, - PRIMARY KEY (rank_id), - KEY rank_min (rank_min), - KEY rank_max (rank_max), - KEY rankminrankmaxranspecial (rank_min,rank_max,rank_special), - KEY rankspecial (rank_special) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `session` -# - -CREATE TABLE session ( - sess_id varchar(32) NOT NULL default '', - sess_updated int(10) unsigned NOT NULL default '0', - sess_ip varchar(15) NOT NULL default '', - sess_data text, - PRIMARY KEY (sess_id), - KEY updated (sess_updated) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `smiles` -# - -CREATE TABLE smiles ( - id smallint(5) unsigned NOT NULL auto_increment, - code varchar(50) NOT NULL default '', - smile_url varchar(100) NOT NULL default '', - emotion varchar(75) NOT NULL default '', - display tinyint(1) NOT NULL default '0', - PRIMARY KEY (id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `tplset` -# - -CREATE TABLE tplset ( - tplset_id int(7) unsigned NOT NULL auto_increment, - tplset_name varchar(50) NOT NULL default '', - tplset_desc varchar(255) NOT NULL default '', - tplset_credits text, - tplset_created int(10) unsigned NOT NULL default '0', - PRIMARY KEY (tplset_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `tplfile` -# - -CREATE TABLE tplfile ( - tpl_id mediumint(7) unsigned NOT NULL auto_increment, - tpl_refid smallint(5) unsigned NOT NULL default '0', - tpl_module varchar(25) NOT NULL default '', - tpl_tplset varchar(50) NOT NULL default '', - tpl_file varchar(50) NOT NULL default '', - tpl_desc varchar(255) NOT NULL default '', - tpl_lastmodified int(10) unsigned NOT NULL default '0', - tpl_lastimported int(10) unsigned NOT NULL default '0', - tpl_type varchar(20) NOT NULL default '', - PRIMARY KEY (tpl_id), - KEY tpl_refid (tpl_refid,tpl_type), - KEY tpl_tplset (tpl_tplset,tpl_file(10)) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `tplsource` -# - -CREATE TABLE tplsource ( - tpl_id mediumint(7) unsigned NOT NULL default '0', - tpl_source mediumtext, - KEY tpl_id (tpl_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# Table structure for table `users` -# - -CREATE TABLE users ( - uid mediumint(8) unsigned NOT NULL auto_increment, - name varchar(60) NOT NULL default '', - uname varchar(25) NOT NULL default '', - email varchar(60) NOT NULL default '', - url varchar(100) NOT NULL default '', - user_avatar varchar(30) NOT NULL default 'blank.gif', - user_regdate int(10) unsigned NOT NULL default '0', - user_icq varchar(15) NOT NULL default '', - user_from varchar(100) NOT NULL default '', - user_sig tinytext, - user_viewemail tinyint(1) unsigned NOT NULL default '0', - actkey varchar(8) NOT NULL default '', - user_aim varchar(18) NOT NULL default '', - user_yim varchar(25) NOT NULL default '', - user_msnm varchar(100) NOT NULL default '', - pass varchar(32) NOT NULL default '', - posts mediumint(8) unsigned NOT NULL default '0', - attachsig tinyint(1) unsigned NOT NULL default '0', - rank smallint(5) unsigned NOT NULL default '0', - level tinyint(3) unsigned NOT NULL default '1', - theme varchar(100) NOT NULL default '', - timezone_offset float(3,1) NOT NULL default '0.0', - last_login int(10) unsigned NOT NULL default '0', - umode varchar(10) NOT NULL default '', - uorder tinyint(1) unsigned NOT NULL default '0', - notify_method tinyint(1) NOT NULL default '1', - notify_mode tinyint(1) NOT NULL default '0', - user_occ varchar(100) NOT NULL default '', - bio tinytext, - user_intrest varchar(150) NOT NULL default '', - user_mailok tinyint(1) unsigned NOT NULL default '1', - PRIMARY KEY (uid), - KEY uname (uname), - KEY email (email), - KEY uiduname (uid,uname), - KEY unamepass (uname,pass), - KEY level (level) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `cache_model` -# - -CREATE TABLE cache_model ( - `cache_key` varchar(64) NOT NULL default '', - `cache_expires` int(10) unsigned NOT NULL default '0', - `cache_data` text, - - PRIMARY KEY (`cache_key`), - KEY `cache_expires` (`cache_expires`) -) ENGINE=MyISAM; -# -------------------------------------------------------- Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.data.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.data.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,119 +0,0 @@ -# phpMyAdmin MySQL-Dump -# version 2.3.2 -# http://www.phpmyadmin.net/ (download page) -# -# Host: localhost -# Generation Time: Jan 09, 2003 at 12:37 AM -# Server version: 3.23.54 -# PHP Version: 4.2.2 -# Database : `xoops2` - - -# -# Dumping data for table `bannerclient` -# - -INSERT INTO bannerclient VALUES (1,0, 'XOOPS', 'XOOPS Dev Team'); - -# -# Dumping data for table `comments` -# - - -# -# Dumping data for table `configcategory` -# - -INSERT INTO configcategory VALUES (1, '_MD_AM_GENERAL', 0); -INSERT INTO configcategory VALUES (2, '_MD_AM_USERSETTINGS', 0); -INSERT INTO configcategory VALUES (3, '_MD_AM_METAFOOTER', 0); -INSERT INTO configcategory VALUES (4, '_MD_AM_CENSOR', 0); -INSERT INTO configcategory VALUES (5, '_MD_AM_SEARCH', 0); -INSERT INTO configcategory VALUES (6, '_MD_AM_MAILER', 0); -INSERT INTO configcategory VALUES (7, '_MD_AM_AUTHENTICATION', 0); - -# -# Dumping data for table `configoption` -# - -INSERT INTO configoption VALUES (1, '_MD_AM_DEBUGMODE1', '1', 13); -INSERT INTO configoption VALUES (2, '_MD_AM_DEBUGMODE2', '2', 13); -INSERT INTO configoption VALUES (3, '_NESTED', 'nest', 32); -INSERT INTO configoption VALUES (4, '_FLAT', 'flat', 32); -INSERT INTO configoption VALUES (5, '_THREADED', 'thread', 32); -INSERT INTO configoption VALUES (6, '_OLDESTFIRST', '0', 33); -INSERT INTO configoption VALUES (7, '_NEWESTFIRST', '1', 33); -INSERT INTO configoption VALUES (8, '_MD_AM_USERACTV', '0', 21); -INSERT INTO configoption VALUES (9, '_MD_AM_AUTOACTV', '1', 21); -INSERT INTO configoption VALUES (10, '_MD_AM_ADMINACTV', '2', 21); -INSERT INTO configoption VALUES (11, '_MD_AM_STRICT', '0', 23); -INSERT INTO configoption VALUES (12, '_MD_AM_MEDIUM', '1', 23); -INSERT INTO configoption VALUES (13, '_MD_AM_LIGHT', '2', 23); -INSERT INTO configoption VALUES (14, '_MD_AM_DEBUGMODE3', '3', 13); -INSERT INTO configoption VALUES (15, '_MD_AM_INDEXFOLLOW', 'index,follow', 43); -INSERT INTO configoption VALUES (16, '_MD_AM_NOINDEXFOLLOW', 'noindex,follow', 43); -INSERT INTO configoption VALUES (17, '_MD_AM_INDEXNOFOLLOW', 'index,nofollow', 43); -INSERT INTO configoption VALUES (18, '_MD_AM_NOINDEXNOFOLLOW', 'noindex,nofollow', 43); -INSERT INTO configoption VALUES (19, '_MD_AM_METAOGEN', 'general', 48); -INSERT INTO configoption VALUES (20, '_MD_AM_METAO14YRS', '14 years', 48); -INSERT INTO configoption VALUES (21, '_MD_AM_METAOREST', 'restricted', 48); -INSERT INTO configoption VALUES (22, '_MD_AM_METAOMAT', 'mature', 48); -INSERT INTO configoption VALUES (23, '_MD_AM_DEBUGMODE0', '0', 13); - -INSERT INTO configoption VALUES (24,'PHP mail()','mail',64); -INSERT INTO configoption VALUES (25,'sendmail','sendmail',64); -INSERT INTO configoption VALUES (26,'SMTP','smtp',64); -INSERT INTO configoption VALUES (27,'SMTPAuth','smtpauth',64); - -# Xoops Auth -INSERT INTO configoption VALUES (28, '_MD_AM_AUTH_CONFOPTION_XOOPS', 'xoops', 74); -INSERT INTO configoption VALUES (29, '_MD_AM_AUTH_CONFOPTION_LDAP', 'ldap', 74); -INSERT INTO configoption VALUES (30, '_MD_AM_AUTH_CONFOPTION_AD', 'ads', 74); - -# Welcoming message type -INSERT INTO configoption VALUES (31, '_NO', '0', 95); -INSERT INTO configoption VALUES (32, '_MD_AM_WELCOMETYPE_EMAIL', '1', 95); -INSERT INTO configoption VALUES (33, '_MD_AM_WELCOMETYPE_PM', '2', 95); -INSERT INTO configoption VALUES (34, '_MD_AM_WELCOMETYPE_BOTH', '3', 95); - - -# -# Dumping data for table `image` -# - - -# -# Dumping data for table `imagebody` -# - - -# -# Dumping data for table `imagecategory` -# - - -# -# Dumping data for table `imgset` -# - -INSERT INTO imgset VALUES (1, 'default', 0); - -# -# Dumping data for table `imgset_tplset_link` -# - -INSERT INTO imgset_tplset_link VALUES (1, 'default'); - -# -# Dumping data for table `online` -# - - -# -# Dumping data for table `priv_msgs` -# - - -# -# Dumping data for table `session` -# Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.structure.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.structure.sql 2012-02-15 10:01:39 UTC (rev 8981) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.structure.sql 2012-02-15 10:02:44 UTC (rev 8982) @@ -1,562 +0,0 @@ -# -# Table structure for table `avatar` -# - -CREATE TABLE avatar ( - avatar_id mediumint(8) unsigned NOT NULL auto_increment, - avatar_file varchar(30) NOT NULL default '', - avatar_name varchar(100) NOT NULL default '', - avatar_mimetype varchar(30) NOT NULL default '', - avatar_created int(10) NOT NULL default '0', - avatar_display tinyint(1) unsigned NOT NULL default '0', - avatar_weight smallint(5) unsigned NOT NULL default '0', - avatar_type char(1) NOT NULL default '', - PRIMARY KEY (avatar_id), - KEY avatar_type (avatar_type, avatar_display) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `avatar_user_link` -# - -CREATE TABLE avatar_user_link ( - avatar_id mediumint(8) unsigned NOT NULL default '0', - user_id mediumint(8) unsigned NOT NULL default '0', - KEY avatar_user_id (avatar_id,user_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `banner` -# - -CREATE TABLE banner ( - bid smallint(5) unsigned NOT NULL auto_increment, - cid tinyint(3) unsigned NOT NULL default '0', - imptotal int(10) unsigned NOT NULL default '0', - impmade mediumint(8) unsigned NOT NULL default '0', - clicks mediumint(8) unsigned NOT NULL default '0', - imageurl varchar(255) NOT NULL default '', - clickurl varchar(255) NOT NULL default '', - datestart int(10) NOT NULL default '0', - dateend int(10) NOT NULL default '0', - htmlbanner tinyint(1) NOT NULL default '0', - htmlcode text, - status tinyint(1) NOT NULL default '0', - PRIMARY KEY (bid), - KEY idxbannercid (cid), - KEY idxbannerbidcid (bid,cid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `bannerclient` -# - -CREATE TABLE bannerclient ( - cid smallint(5) unsigned NOT NULL auto_increment, - uid mediumint(8) unsigned NOT NULL default '0', - name varchar(60) NOT NULL default '', - extrainfo text, - PRIMARY KEY (cid), - KEY name (name) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `block_module_link` -# - -CREATE TABLE block_module_link ( - block_id mediumint(8) unsigned NOT NULL default '0', - module_id smallint(5) NOT NULL default '0', - PRIMARY KEY (`module_id`, `block_id`) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `comments` -# - -CREATE TABLE xoopscomments ( - com_id mediumint(8) unsigned NOT NULL auto_increment, - com_pid mediumint(8) unsigned NOT NULL default '0', - com_rootid mediumint(8) unsigned NOT NULL default '0', - com_modid smallint(5) unsigned NOT NULL default '0', - com_itemid mediumint(8) unsigned NOT NULL default '0', - com_icon varchar(25) NOT NULL default '', - com_created int(10) unsigned NOT NULL default '0', - com_modified int(10) unsigned NOT NULL default '0', - com_uid mediumint(8) unsigned NOT NULL default '0', - com_ip varchar(15) NOT NULL default '', - com_title varchar(255) NOT NULL default '', - com_text text, - com_sig tinyint(1) unsigned NOT NULL default '0', - com_status tinyint(1) unsigned NOT NULL default '0', - com_exparams varchar(255) NOT NULL default '', - dohtml tinyint(1) unsigned NOT NULL default '0', - dosmiley tinyint(1) unsigned NOT NULL default '0', - doxcode tinyint(1) unsigned NOT NULL default '0', - doimage tinyint(1) unsigned NOT NULL default '0', - dobr tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (com_id), - KEY com_pid (com_pid), - KEY com_itemid (com_itemid), - KEY com_uid (com_uid), - KEY com_title (com_title(40)), - KEY com_status (com_status) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# RMV-NOTIFY -# Table structure for table `notifications` -# - -CREATE TABLE xoopsnotifications ( - not_id mediumint(8) unsigned NOT NULL auto_increment, - not_modid smallint(5) unsigned NOT NULL default '0', - not_itemid mediumint(8) unsigned NOT NULL default '0', - not_category varchar(30) NOT NULL default '', - not_event varchar(30) NOT NULL default '', - not_uid mediumint(8) unsigned NOT NULL default '0', - not_mode tinyint(1) NOT NULL default 0, - PRIMARY KEY (not_id), - KEY not_modid (not_modid), - KEY not_itemid (not_itemid), - KEY not_class (not_category), - KEY not_uid (not_uid), - KEY not_event (not_event) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `config` -# - -CREATE TABLE config ( - conf_id smallint(5) unsigned NOT NULL auto_increment, - conf_modid smallint(5) unsigned NOT NULL default '0', - conf_catid smallint(5) unsigned NOT NULL default '0', - conf_name varchar(25) NOT NULL default '', - conf_title varchar(255) NOT NULL default '', - conf_value text, - conf_desc varchar(255) NOT NULL default '', - conf_formtype varchar(15) NOT NULL default '', - conf_valuetype varchar(10) NOT NULL default '', - conf_order smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (conf_id), - KEY conf_mod_cat_id (conf_modid, conf_catid), - KEY conf_order (conf_order) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `configcategory` -# - -CREATE TABLE configcategory ( - confcat_id smallint(5) unsigned NOT NULL auto_increment, - confcat_name varchar(255) NOT NULL default '', - confcat_order smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (confcat_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `configoption` -# - -CREATE TABLE configoption ( - confop_id mediumint(8) unsigned NOT NULL auto_increment, - confop_name varchar(255) NOT NULL default '', - confop_value varchar(255) NOT NULL default '', - conf_id smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (confop_id), - KEY conf_id (conf_id) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `groups` -# - -CREATE TABLE groups ( - groupid smallint(5) unsigned NOT NULL auto_increment, - name varchar(50) NOT NULL default '', - description text, - group_type varchar(10) NOT NULL default '', - - PRIMARY KEY (groupid), - KEY group_type (group_type) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `group_permission` -# - -CREATE TABLE group_permission ( - gperm_id int(10) unsigned NOT NULL auto_increment, - gperm_groupid smallint(5) unsigned NOT NULL default '0', - gperm_itemid mediumint(8) unsigned NOT NULL default '0', - gperm_modid mediumint(5) unsigned NOT NULL default '0', - gperm_name varchar(50) NOT NULL default '', - PRIMARY KEY (gperm_id), - KEY groupid (gperm_groupid), - KEY itemid (gperm_itemid), - KEY gperm_modid (gperm_modid,gperm_name(10)) -) ENGINE=MyISAM; -# -------------------------------------------------------- - - -# -# Table structure for table `groups_users_link` -# - -CREATE TABLE groups_users_link ( - linkid mediumint(8) unsigned NOT NULL auto_increment, - groupid smallint(5) unsigned NOT NULL default '0', - uid mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (linkid), - KEY groupid_uid (groupid,uid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `image` -# - -CREATE TABLE image ( - image_id mediumint(8) unsigned NOT NULL auto_increment, - image_name varchar(30) NOT NULL default '', - image_nicename varchar(255) NOT NULL default '', - image_mimetype varchar(30) NOT NULL default '', - image_created int(10) unsigned NOT NULL default '0', - image_display tinyint(1) unsigned NOT NULL default '0', - image_weight smallint(5) unsigned NOT NULL default '0', - imgcat_id smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (image_id), - KEY imgcat_id (imgcat_id), - KEY image_display (image_display) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `imagebody` -# - -CREATE TABLE imagebody ( - image_id mediumint(8) unsigned NOT NULL default '0', - image_body mediumblob, - KEY image_id (... [truncated message content] |
From: <for...@us...> - 2012-02-15 10:01:50
|
Revision: 8981 http://xoops.svn.sourceforge.net/xoops/?rev=8981&view=rev Author: forxoops Date: 2012-02-15 10:01:39 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Revert DB Connector addition Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/database.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/databasefactory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlutility.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/joint.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/read.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/stats.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/write.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoops.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqldatabase.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado5_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado_access_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado_mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ads_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/borland_ibase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/csv_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/db2_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/db2oci_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/fbsql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/firebird_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ibase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/informix72_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/informix_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ldap_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssql_n_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssqlnative_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssqlpo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqli_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqlpo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqlt_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/netezza_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oci805_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oci8_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oci8po_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_db2_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_oracle_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbtp_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbtp_unicode_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oracle_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_mysql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_oci_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_pgsql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_sqlite_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/postgres7_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/postgres8_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/postgres_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/proxy_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sapdb_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlanywhere_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlite_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlitepo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sybase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sybase_ase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/vfp_adodb.php Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php 2012-02-15 09:58:20 UTC (rev 8980) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php 2012-02-15 10:01:39 UTC (rev 8981) @@ -1,1774 +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. -*/ - -/** - * Factory Class for Xoops Database - * - * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package kernel - * @subpackage database - * @since 2.6.0 - * @author Kazumi Ono <on...@xo...> - * @author Simon Roberts <si...@xo...> - * @version $Id$ - */ -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -/** - * - * @package kernel - * @subpackage database - * @author Kazumi Ono <on...@xo...> - * @copyright copyright (c) 2000-2003 XOOPS.org - */ - -/** - * base class - */ -include_once XOOPS_ROOT_PATH . '/class/database/database.php'; -include_once XOOPS_ROOT_PATH . '/class/database/adodb/adodb.inc.php'; -include_once XOOPS_ROOT_PATH . '/class/database/pdo/'.XOOPS_DB_TYPE.'.php'; - -// xoops_load( 'xoopsdatabase' ); -/** - * connection to a mysql database - * - * @abstrac - * @author Kazumi Ono <on...@xo...> - * @copyright copyright (c) 2000-2003 XOOPS.org - * @package kernel - * @subpackage database - */ -class XoopsAccess_ADODBDatabase extends XoopsDatabase -{ - /** - * Database connection - * - * @var resource - */ - var $conn; - - /** - * connect to the database - * - * @param bool $selectdb select the database now? - * @return bool successful? - */ - public function connect($selectdb = true) - { - static $db_charset_set;$this->allowWebChanges = ($_SERVER['REQUEST_METHOD'] != 'GET'); - - // This is a global variable that determines how arrays are retrieved by recordsets. The recordset saves this value on creation (eg.// - // in Execute( ) or SelectLimit( )), and any subsequent changes to $ADODB_FETCH_MODE have no affect on existing recordsets, only on - // recordsets created in the future - $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; // Options: ADODB_FETCH_DEFAULT, ADODB_FETCH_NUM, ADODB_FETCH_ASSOC, ADODB_FETCH_BOTH - - // If you are using recordset caching, this is the directory to save your recordsets in. Define this before you call any caching - // public functions such as CacheExecute( ). We recommend setting register_globals=off in php.ini if you use this feature for security reasons. - $ADODB_CACHE_DIR = XOOPS_VAR_PATH . DIRECTORY_SEPARATOR . 'caches'. DIRECTORY_SEPARATOR .'adodb_cache'; - - - // If the database driver API does not support counting the number of records returned in a SELECT statement, the public function RecordCount() - // is emulated when the global variable $ADODB_COUNTRECS is set to true, which is the default. We emulate this by buffering the records, - // which can take up large amounts of memory for big recordsets. Set this variable to false for the best performance. This variable is - // checked every time a query is executed, so you can selectively choose which recordsets to count. - $ADODB_COUNTRECS = true; - - //Determines the language used in MetaErrorMsg(). The default is 'en', for English. To find out what languages are supported, see the - // files in adodb/lang/adodb-$lang.inc.php, where $lang is the supported language. - $ADODB_LANG = 'en'; - - // Determines whether to right trim CHAR fields (and also VARCHAR for ibase/firebird). Set to true to trim. Default is false. - // Currently works for oci8po, ibase and firebird drivers. - $ADODB_ANSI_PADDING_OFF = true; - - - $this->conn = @NewADOConnection(XOOPS_DB_DSN); - $this->conn->setFetchMode($ADODB_FETCH_MODE); - - - if (!$this->conn) { - $this->logger->addQuery('', $this->error(), $this->errno()); - return false; - } - } - - /** - * check if connected to a database - * - * @return true if connected to database - */ - public function isConnected() - { - return @$this->conn->IsConnected(); // will use auto_increment - } - - /** - * execute a sql question to the database - * - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @param $inputarr parameter can be used for binding variables to parameters - * @return ADORecordset Objects - */ - public function execute($sql, $inputarr=false) - { - return @$this->conn->Execute($sql, $inputarr); // will use auto_increment - } - - /** - * Similar to Execute, except that the recordset is cached for $secs2cache seconds - * - * @param $secs2cache the recordset is cached for $secs2cache seconds - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @param $inputarr parameter can be used for binding variables to parameters - * @return ADODBRecordset Object from cache - */ - public function executeCache($secs2cache,$sql,$inputarr=false) - { - return @$this->conn->CacheExecute($secs2cache,$sql,$inputarr); - } - - /** - * Execute an Oracle stored procedure, and returns an Oracle REF cursor variable as a regular ADOdb recordset - * - * @param $cursorName Oracle REF cursor variable as a regular ADOdb recordset - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @param $parameters parameter can be used for binding variables to parameters - * @returntrue if connected to database - */ - public function executeCursor($sql,$cursorName='rs',$parameters=false) - { - if (XOOPS_DB_TYPE!='oci8_adodb') - trigger_error('ADODB: Function not supported by database type! Function: '.__FUNC__.'; Class: '.__CLASS__); - else - return @$this->conn->ExecuteCursor($sql,$cursorName,$parameters); - } - - /** - * Returns a recordset if successful. Returns false otherwise. Performs a select statement. - * - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @param $numrows number of rows to return - * @param $offset offset in record count to load from. - * @param $inputarr parameter can be used for binding variables to parameters - * @return ADORecordset Object - */ - public function fetchSelectLimit($sql,$numrows=-1,$offset=-1,$inputarr=false) - { - return @$this->conn->SelectLimit($sql,$numrows,$offset,$inputarr); - } - - /** - * Similar to SelectLimit, except that the recordset returned is cached for $secs2cache seconds - * - * @param $secs2cache the recordset is cached for $secs2cache seconds - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @param $numrows number of rows to return - * @param $offset offset in record count to load from. - * @param $inputarr parameter can be used for binding variables to parameters - * @return true if connected to database - */ - public function fetchCacheSelectLimit($secs2cache, $sql, $numrows=-1,$offset=-1,$inputarr=false) - { - return @$this->conn->CacheSelectLimit($secs2cache, $sql, $numrows,$offset,$inputarr); - } - - /** - * Flush (delete) any cached recordsets for the SQL statement $sql in $ADODB_CACHE_DIR - * - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @returntrue if connected to database - */ - public function flushCache($sql=false) - { - return @$this->conn->CacheFlush($sql); - } - - /** - * Prepares (compiles) an SQL query for repeated execution. Bind parameters are denoted by ? - * except for the oci8 driver, which uses the traditional Oracle :varname convention. - * - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @returntrue if connected to database - */ - public function getPrepare($sql) - { - return @$this->conn->Prepare($sql); - } - - /** - * hen calling stored procedures in mssql and oci8 (oracle), and you might want to directly bind to parameters - * except for the oci8 driver, which uses the traditional Oracle :varname convention. - * - * @param $cursor Oracle REF cursor variable as a regular ADOdb recordset - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @returntrue if connected to database - */ - public function getPrepareSP($sql, $cursor=false) - { - return @$this->conn->Prepare($sql); - } - - /** - * Binds a PHP variable as input to a stored procedure variable. - * - * @param $stmt is the value returned by PrepareSP() - * @param $var is the PHP variable you want to bind - * @param $name is the name of the stored - * @param $maxLen the maximum length of the data to bind - * @param $type which is database dependant - * @returntrue if connected to database - */ - public function setInParameter($stmt, $var, $name, $maxLen = 4000, $type = false ) - { - return @$this->conn->InParameter($stmt, $var, $name, $maxLen, $type); - } - - /** - * Binds a PHP variable as output from a stored procedure variable. - * - * @param $stmt is the value returned by PrepareSP() - * @param $var is the PHP variable you want to bind - * @param $name is the name of the stored - * @param $maxLen the maximum length of the data to bind - * @param $type which is database dependant - * @returntrue if connected to database - */ - public function setOutParameter($stmt, $var, $name, $maxLen = 4000, $type = false ) - { - return @$this->conn->OutParameter($stmt, $var, $name, $maxLen, $type); - } - - /** - * Binds a PHP variable as output from a stored procedure variable. - * - * @param $stmt is the value returned by PrepareSP() - * @param $var is the PHP variable you want to bind - * @param $name is the name of the stored - * @param $isOutput Indicates direction of parameter 0/false=IN 1=OUT 2= IN/OUT - * @param $maxLen the maximum length of the data to bind - * @param $type which is database dependant - * @returntrue if connected to database - */ - public function setParameter($stmt, $var, $name, $isOutput=false, $maxLen = 4000, $type = false ) - { - trigger_error('ADODB: This public function is deprecated. Use InParameter( ) and OutParameter( ) instead. - Function: '.__FUNC__.'; Class='.__CLASS__); - return @$this->conn->Parameter($stmt, $var, $name, $isOutput, $maxLen, $types); - } - - /** - * Generates a bind placeholder portably. - * For most databases, the bind placeholder is "?" - * - * @param $name string to be encoded as parameter binding - * @return string portably define an SQL statement with bind parameters - */ - public function setParam($name) - { - return @$this->conn->Param($name); - } - - /** - * Executes the SQL and returns the first field of the first row - * - * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful - * @return string the first field of the first rowe - */ - public function getOne($sql) - { - return @$this->conn->GetOne($sql); - } - - /** - * Returns an associative array for the given query $sql with optional bind parameters in $inputarr - * - * @param $sql query - * @param $inputarr optional bind parameters - * @param $force_array is set to true, when an array is created for each value - * @param $first2cols Indicates direction of parameter - * @return array an associative array for the given query - */ - public function getAssoc($sql,$inputarr=false,$force_array=false,$first2cols=false) - { - return @$this->conn->GetAssoc($sql,$inputarr,$force_array,$first2cols); - } - - /** - * Caching version of GetAssoc public function above - * - * @param $secs2cache the recordset is cached for $secs2cache seconds - * @param $sql query - * @param $inputarr optional bind parameters - * @param $force_array is set to true, when an array is created for each value - * @param $first2cols Indicates direction of parameter - * @return array an associative array for the given query - */ - public function getCacheAssoc($secs2cache,$sql,$inputarr=false,$force_array=false,$first2cols=false) - { - return @$this->conn->GetAssoc($sql,$inputarr,$force_array,$first2cols); - } - - - /** - * Returns the median value of $field for $table - * - * @param $table table name to get median from - * @param $field field in table to get median from - * @param $where The $where clause is optional. If used, make sure the WHERE is included, as in "WHERE name > 'A'" - * @return string the median value of $field for $table - */ - public function getMedian($table, $field, $where='') - { - return @$this->conn->GetMedian($table, $field, $where); - } - - /** - * Executes the SQL and returns the first row as an array - * - * @param $sql query - * @return array First row as an array - */ - public function getRow($sql) - { - return @$this->conn->GetRow($sql); - } - - /** - * Executes the SQL and returns the first row as an array, <br /> - * except that the recordset is serialized and cached - * - * @param integer $secs2cache number of seconds to cache for - * @param string $sql query - * @return array First row as an array - */ - public function getCacheRow($secs2cache, $sql) - { - return @$this->conn->CacheGetRow($secs2cache, $sql); - } - - /** - * Executes the SQL and returns the all the rows as a 2-dimensional array - * The recordset is discarded for you automatically - * - * @param string $sql query - * @param array $inputarr parameters to bind to sql query - * @return array he all the rows as a 2-dimensional array - */ - public function getAll($sql,$inputarr=false) - { - return @$this->conn->GetAll($sql,$inputarr); // will use auto_increment - } - - /** - * Executes the SQL and returns the all the rows as a 2-dimensional array - * Similar to above GetAll public functions, except that the recordset is serialized and cached - * - * @param array $secs2cache seconds to cache query - * @param string $sql query - * @returntrue if connected to database - */ - public function getCacheAll($secs2cache, $sql) - { - return @$this->conn->CacheGetAll($secs2cache, $sql); - } - - /** - * Executes the SQL and returns all elements of the first column as a 1-dimensional array - * - * @param string $sql query - * @return array all elements of the first column as a 1-dimensional array - */ - public function fetchGetCol($sql) - { - return @$this->conn->GetCol($sql); - } - - /** - * Executes the SQL and returns all elements of the first column as a 1-dimensional array - * Similar to above GetCol public functions, except that the recordset is serialized and cached - * - * @param array $secs2cache seconds to cache query - * @param string $sql query - * @return array all elements of the first column as a 1-dimensional array - */ - public function fetchCacheGetCol($secs2cache, $sql) - { - return @$this->conn->CacheGetCol($secs2cache, $sql); - } - - /** - * Try to update a record, and if the record is not found, an insert statement is generated and executed - * - * @param string $table which is the table name - * @param array $arrFields which is an associative array where the keys are the field names - * @param array $keyCols is the name of the primary key, or an array of field names if it is a compound key - * @param boolean $autoQuote will quote all values that are non-numeric; auto-quoting will not quote nullss - * @return integer Try to update a record, and if the record is not found, an insert statement is generated and executed - */ - public function setReplace($table, $arrFields, $keyCols,$autoQuote=false) - { - return @$this->conn->Replace($table, $arrFields, $keyCols,$autoQuote); - } - - /** - * AutoExecute() inserts or updates $table given an array of $arrField. - * - * @param string $table which is the table name. - * @param array $arrFields which is an associative array where the keys are the field names. - * @param array $mode is enumerator either DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE. - * @param string $where clause is required if $mode == 'UPDATE'. - * @param boolean $forceUpdate false then we will query the database first and check if the field value returned by <br /> - the query matches the current field value. - * @param boolean $magicq is used to indicate whether magic quotes are enabled - * @returntrue if connected to database - */ - public function setAutoExecute($table, $arrFields, $mode, $where=false, $forceUpdate=true,$magicq=false) - { - return @$this->conn->AutoExecute($table, $arrFields, $mode, $where, $forceUpdate,$magicq); - } - - /** - * Generate SQL to update a table given a recordset $rs, and the modified fields of the array $arrFields - * (which must be an associative array holding the column names and the new values).s - * - * @param object $rs ADORecordset Object - * @param array $arrFields modified fields of the array. - * @param boolean $forceUpdate is true, then we also generate the SQL even if $arrFields is identical to $rs->fields. - * @param boolean $magicq is used to indicate whether magic quotes are enabled. - * @param boolean $forcenulls is used to indicate whether NULLS are forced with the update. - * @return string Update SQL Query/Question - */ - public function getUpdateSQL(&$rs, $arrFields, $forceUpdate=false,$magicq=false,$forcenulls=false) - { - return @$this->conn->GetUpdateSQL($rs, $arrFields, $forceUpdate,$magicq,$forcenulls); - } - - /** - * Generate SQL to insert into a table given a recordset $rs. Requires the query to be associative. - * - * @param object $rs ADORecordset Object - * @param array $arrFields modified fields of the array. - * @param boolean $magicq is used to indicate whether magic quotes are enabled. - * @param boolean $forcenulls is used to indicate whether NULLS are forced with the update. - * @return string Update SQL Query/Question - */ - public function getInsertSQL(&$rs, $arrFields,$magicq=false,$forcenulls=false) - { - return @$this->conn->GetInsertSQL($rs, $arrFields, $magicq,$forcenulls); - } - - /** - * Allows you to store a blob (in $val) into $table into $column in a row at $where - * - * @param string $table Table in database for blob - * @param string $column Column in table in database for blob. - * @param string $val Value to set blob. - * @param string $where SQL Where clause include ie. WHERE 1=1. - * @return boolean true if successful, false otherwise - */ - public function setUpdateBlob($table, $column, $val, $where) - { - return @$this->conn->UpdateBlob($table, $column, $val, $where); - } - - /** - * Allows you to store a clob (in $val) into $table into $column in a row at $where. - * Similar to UpdateBlob (see above), but for Character Large OBjects - * - * @param string $table Table in database for blob - * @param string $column Column in table in database for blob. - * @param string $val Value to set blob. - * @param string $where SQL Where clause include ie. WHERE 1=1. - * @return boolean true if successful, false otherwise - */ - public function setUpdateClob($table,$column,$val,$where) - { - return @$this->conn->UpdateClob($table,$column,$val,$where); - } - - /** - * Allows you to store a blob (in $val) into $table into $column in a row at $where - * Similar to UpdateBlob, except that we pass in a file path to where the blob resides. - * - * @param string $table Table in database for blob - * @param string $column Column in table in database for blob. - * @param string $path Real Path of the Blob to be put in the database. - * @param string $where SQL Where clause include ie. WHERE 1=1. - * @param enum $blobtype Type field for blob default ie. BLOB. - * @return boolean true if successful, false otherwise - */ - public function setUpdateBlobFile($table,$column,$path,$where,$blobtype='BLOB') - { - return @$this->conn->UpdateBlobFile($table,$column,$path,$where,$blobtype); - } - - - /** - * Some databases require blob's to be encoded manually before uploading - * - * @param string $blob data to be encoded. - * @return string the encoded blob value - */ - public function getBlobEncode($blob) - { - return @$this->conn->BlobEncode($blob); - } - - /** - * Some databases require blob's to be decoded manually after doing a select statement - * - * @param string $blob data to be encoded. - * @param integer $maxblobsize The default maxblobsize is set in $connection->maxblobsize, which is set to 256K. - * @return string the decoded blob value - */ - public function getBlobDecode($blob, $maxblobsize=false) - { - return @$this->conn->BlobDecode($blob,$maxblobsize); - } - - /** - * Used for pagination of recordset. $page is 1-based - * - * @param string $sql data to be encoded. - * @param integer $nrows Number of rows per page - * @param integer $page Page Number on. - * @param array $inputarr Variable to bind to the SQL statement (optional) - * @return string the decoded blob value - */ - public function fetchPageExecute($sql, $nrows, $page, $inputarr=false) - { - return @$this->conn->PageExecute($sql, $nrows, $page, $inputarr); - } - - /** - * Used for pagination of recordset. $page is 1-based - * Caching version of PageExecute - * - * @param integer $secs2cache Seconds to hold in cache - * @param string $sql data to be encoded. - * @param integer $nrows Number of rows per page - * @param integer $page Page Number on. - * @param array $inputarr Variable to bind to the SQL statement (optional) - * @return string the decoded blob value - */ - public function fetchCachePageExecute($secs2cache, $sql, $nrows, $page, $inputarr=false) - { - return @$this->conn->CachePageExecute($secs2cache, $sql, $nrows, $page, $inputarr); - } - - /** - * Start a monitored transaction. As SQL statements are executed, ADOdb will monitor for SQL errors, - * and if any are detected, when CompleteTrans() is called, we auto-rollback. - * - * @return boolean true if successful. - */ - public function setStartTrans() - { - return @$this->conn->StartTrans(); - } - - /** - * Start a monitored transaction. As SQL statements are executed, ADOdb will monitor for SQL errors, - * and if any are detected, when CompleteTrans() is called, we auto-rollback. - * - * @return boolean true if successful. - */ - public function setBeginTrans() - { - return @$this->conn->BeginTrans(); - } - - - /** - * Complete a transaction called with StartTrans() - * This public function monitors for SQL errors, and will commit if no errors have occured, otherwise it will rollback. - * - * @param boolean $autoComplete is true monitor sql errors and commit and rollback as appropriate - * @return boolean true on commit, false on rollback - */ - public function setCompleteTrans($autoComplete=true) - { - return @$this->conn->CompleteTrans($autoComplete); - } - - /** - * Fail a transaction started with StartTrans(). The rollback will only occur when CompleteTrans() is called - * - * @return boolean true - */ - public function isFailTrans() - { - return @$this->conn->FailTrans(); - } - - /** - * Check whether smart transaction has failed, eg. returns true if SQL execution failed, or FailTrans() was called. - * - * @return boolean true - */ - public function hasFailedTrans() - { - return @$this->conn->HasFailedTrans(); - } - - /** - * SetTransactionMode allows you to pass in the transaction mode to use for all subsequent transactions for that connection session - * - * @param enum $mode Supported values: READ UNCOMMITTED; READ COMMITTED; REPEATABLE READ; SERIALIZABLE; (oci8) SNAPSHOT; READ ONLY. - * @return string the decoded blob value - */ - public function setTransactionMode($mode ) - { - return @$this->conn->SetTransactionMode($mode); - } - - /** - * End a transaction successfully - * - * @param boolean $ok you pass the parameter false, the data is rolled back. . - * @return boolean will return true also as data is always committed. - */ - public function setCommitTrans($ok=true) - { - return @$this->conn->CommitTrans($ok); - } - - /** - * End a transaction, rollback all changes - * - * @param boolean $ok you pass the parameter false, the data is rolled back. . - * @return boolean true if successful. If the database does not support transactions, will return false as data is never rollbacked. - */ - public function setRollbackTrans($ok=true) - { - return @$this->conn->RollbackTrans($ok); - } - - /** - * Sets the current fetch mode for the connection and stores. - * - * @param enum $mode Legal modes are ADODB_FETCH_ASSOC and ADODB_FETCH_NUM. - * @return string the decoded blob value - */ - public function setFetchMode($mode) - { - return @$this->conn->SetFetchMode($mode); - } - - /** - * Generates the sql string used to concatenate $sa, $sb, etc together - * - * @param string $sa string to concatinate. (required) - * @param string $sb string to concatinate. (required) - * @param string $sc string to concatinate. (optional) - * @param string $sd string to concatinate. (optional) - * @param string $se string to concatinate. (optional) - * @param string $sf string to concatinate. (optional) - * @param string $sg string to concatinate. (optional) - * @param string $sh string to concatinate. (optional) - * @param string $si string to concatinate. (optional) - * @param string $sj string to concatinate. (optional) - * @param string $sk string to concatinate. (optional) - * @param string $sl string to concatinate. (optional) - * @param string $sm string to concatinate. (optional) - * @param string $sn string to concatinate. (optional) - * @param string $so string to concatinate. (optional) - * @param string $sp string to concatinate. (optional) - * @param string $sq string to concatinate. (optional) - * @param string $sr string to concatinate. (optional) - * @param string $ss string to concatinate. (optional) - * @param string $st string to concatinate. (optional) - * @param string $su string to concatinate. (optional) - * @param string $sv string to concatinate. (optional) - * @param string $sw string to concatinate. (optional) - * @param string $sx string to concatinate. (optional) - * @param string $sy string to concatinate. (optional) - * @param string $sz string to concatinate. (optional) - * @return string the concatenated string - */ - public function getConcat($sa, $sb, $sc, $sd, $se, $sf, $sg, $sh, $si, $sj, $sk, $sl, $sm, $sn, $so, $sp, $sq, $sr, $ss, $st, $su, $sv, $sw, $sx, $sy, $sz) - { - return @$this->conn->Concat($sa, $sb, $sc, $sd, $se, $sf, $sg, $sh, $si, $sj, $sk, $sl, $sm, $sn, $so, $sp, $sq, $sr, $ss, $st, $su, $sv, $sw, $sx, $sy, $sz); - } - - /** - * Portable IFNULL public function (NVL in Oracle). - * - * Example - * $sql = 'SELECT '.$GLOBALS['xoopsDB']->conn->IfNull('name', "'- unknown -'"). ' FROM table'; - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); - * - * @param string $field data to be encoded. - * @param string $nullReplacementValue Replace NULL with this value. - * @return string a string that represents the public function that checks whether a $field is null for the given database, and if null, change the value returned to $nullReplacementValue. - */ - public function setIfNull($field, $nullReplacementValue) - { - return @$this->conn->IfNull($field, $nullReplacementValue); - } - - /** - * This is not a public function, but a property - * Some databases have "length" and others "len" as the public function to measure the length of a string - * - * Example - * $sql = "SELECT ".$GLOBALS['xoopsDB']->conn->length()."(field) from table - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); - * - * @return integer public function to measure the length of a string - */ - public function getLength() - { - return @$this->conn->length; - } - - /** - * This is not a public function, but a property. This is a string that holds the sql to generate a random number - * - * @return float between 0.0 and 1.0 inclusive - */ - public function getRandom() - { - return @$this->conn->random; - } - - /** - * This is not a public function, but a property - * Some databases have "substr" and others "substring" as the public function to retrieve a sub-string. - * the 1st parameter of substr is the field, the 2nd is the offset (1-based) to the beginning of - * the sub-string, and the 3rd is the length of the sub-string - * - * Example - * $sql = "SELECT ".$GLOBALS['xoopsDB']->conn->substr."(field, $offset, $length) from table"; - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); - * - * @return string parameter for substr for $this->Execute - */ - public function getSubstr() - { - return @$this->conn->substr; - } - - /** - * Format the $date in the format the database accepts. - * - * Example - * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->DBDate("$year-$month-$day") - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); - * - * @param string $date date string in format of $year-$month-$day - * @return string the date as a quoted string - */ - public function fetchDBDate($date) - { - return @$this->conn->DBDate($date); - } - - /** - * Format the $date in the bind format the database accepts. - * Normally this means that the date string is not quoted, unlike DBDate, which quotes the string. - * - * Example - * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->Param('0') - * OR $sql = "select * from atable where created > ?"; - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql,array($GLOBALS['xoopsDB']->conn->BindDate("$year-$month-$day")); - * - * @param string $date date string in format of $year-$month-$day - * @return string the date as a quoted string - */ - public function fetchBindDate($date) - { - return @$this->conn->BindDate($date); - } - - /** - * Format the timestamp $ts in the format the database accepts; this can be a Unix integer timestamp or an ISO format Y-m-d H:i:s. - * - * Example - * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->DBTimeStamp("$year-$month-$day $hr:$min:$secs") - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); - * - * @param string/integer $ts time & date in the format the database accepts; this can be a Unix integer timestamp or an ISO format Y-m-d H:i:s. - * @return string the timestamp as a quoted string. - */ - public function fetchDBTimeStamp($ts) - { - return @$this->conn->DBTimeStamp($ts); - } - - - /** - * Format the $date in the bind format the database accepts. - * Normally this means that the date string is not quoted, unlike DBDate, which quotes the string. - * - * Example - * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->Param('0') - * OR $sql = "select * from atable where created > ?"; - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql,array($GLOBALS['xoopsDB']->conn->BindTimeStamp("$year-$month-$day $hr:$min:$secs")); - * - * @param string/integer $ts time & date in the format the database accepts; this can be a Unix integer timestamp or an ISO format Y-m-d H:i:s. - * @return string the date as a quoted string - */ - public function fetchBindTimeStamp($ts) - { - return @$this->conn->BindTimeStamp($ts); - } - - - - /** - * Parses the date string $str and returns it in unix mktime format - * Expects the date to be in Y-m-d H:i:s format, except for Sybase and Microsoft SQL Server, - * where M d Y is also accepted - * - * @param string $str the date string. - * @return intger UNIX Time Stamp - */ - public function fetchUnixDate($str) - { - return @$this->conn->UnixDate($str); - } - - /** - * Parses the timestamp string $str and returns it in unix mktime format - * - * @param string $str the date string - Expects the date to to be in "Y-m-d, H:i:s" (1970-12-24, 00:00:00) <br /> - * or "Y-m-d H:i:s" (1970-12-24 00:00:00) - * or "YmdHis" (19701225000000) format, - * except for Sybase and Microsoft SQL Server, - * where "M d Y h:i:sA" (Dec 25 1970 00:00:00AM) - * @return intger UNIX Time Stamp - */ - public function fetchUnixTimeStamp($str) - { - return @$this->conn->UnixTimeStamp($str); - } - - /** - * Allows you to calculate future and past dates based on $basedate in a portable fashion. - * - * Example; - * # get date one week from now - * $fld = $GLOBALS['xoopsDB']->conn->OffsetDate(7); // returns "(trunc(sysdate)+7") - * - * # get date and time that is 60 hours from current date and time - * $fld = $GLOBALS['xoopsDB']->conn->OffsetDate(2.5, $GLOBALS['xoopsDB']->conn->sysTimeStamp); // returns "(sysdate+2.5)" - * - * @param decimal $dayFraction Rounding Decimal Point of the Number if Days in Fractions. - * @param integer $basedate If not defined, then the current date (at 12 midnight) is used. - * @return string the decoded blob value - */ - public function fetchOffsetDate($dayFraction, $basedate=false) - { - return @$this->conn->OffsetDate($dayFraction, $basedate); - } - - /** - * Returns a string which contains the native SQL public functions to format a date - * - * For example to display total cost of goods sold broken by quarter; - * $sqlfn = $GLOBALS['xoopsDB']->conn->SQLDate('Y-QQ','postdate'); # get sql that formats postdate to output 2002-Q1 - * $sql = "SELECT $sqlfn,SUM(cogs) FROM table GROUP BY $sqlfn ORDER BY 1 desc"; - * - * @param string $dateFormat It uses a date formating string, which supports:. - * Y: 4-digit Year - * Q: Quarter (1-4) - * M: Month (Jan-Dec) - * m: Month (01-12) - * d: Day (01-31) - * H: Hour (00-23) - * h: Hour (1-12) - * i: Minute (00-59) - * s: Second (00-60) - * w: day of week (0-6 or 1-7 depending on DB) - * l: day of week (as string - lowercase L) - * W: week in year (0..53 for MySQL, 1..53 for PostgreSQL and Oracle) - * A: AM/PM indicator - * @param integer $basedate If not defined, then the current date (at 12 midnight) is used. - * @return string the encoded date string based on formating. - */ - public function fetchSQLDate($dateFormat, $basedate=false) - { - return @$this->conn->SQLDate($dateFormat, $basedate); - } - - /** - * Lock a table row for the duration of a transaction - * - * For example to lock record $id in table1; - * $GLOBALS['xoopsDB']->conn->StartTrans(); - * $GLOBALS['xoopsDB']->conn->RowLock("table1","rowid=$id"); - * $GLOBALS['xoopsDB']->conn->Execute($sql1); - * $GLOBALS['xoopsDB']->conn->Execute($sql2); - * $GLOBALS['xoopsDB']->conn->CompleteTrans(); - * - * @param string $table table where lockin is to occure. - * @param string $where where clause for lockin of table. - * @return boolean true on successful. - */ - public function setRowLock($table,$where) - { - return @$this->conn->RowLock($table,$where); - } - - /** - * generate an ID for a new row - * - * This is for compatibility only. Will always return 0, because MySQL supports - * autoincrement for primary keys. - * - * @param string $sequence name of the sequence from which to get the next ID - * @return int always 0, because mysql has support for autoincrement - */ - public function genId($sequence, $startID=1) - { - return @$this->conn->GenID($sequence, $startID); - } - - /** - * Create a sequence - * - * @param string $seqName key for sequences. - * @param integer $startID The next time GenID( ) is called, the value returned will be $startID - * @return boolean true on successful. - */ - public function setCreateSequence($seqName = 'xoops_adodb_seq', $startID=1) - { - return @$this->conn->CreateSequence($seqName, $startID); - } - - /** - * Delete a sequence - * - * @param string $seqName key for sequences. - * @return boolean true on successful. - */ - public function setDropSequence($seqName = 'xoops_adodb_seq') - { - return @$this->conn->DropSequence($seqName); - } - - /** - * Returns a list of databases available on the server as an array. You have to connect to the server first. - * Only available for ODBC, MySQL and ADO. - * - * @return array a list of databases available on the server as an array - */ - public function fetchMetaDatabases() - { - return @$this->conn->MetaDatabases(); - } - - /** - * Returns an array of tables and views for the current database as an array. The array should exclude system catalog tables if possible. - * - * To only show tables; - * $GLOBALS['xoopsDB']->conn->MetaTables('TABLES'); - * - * To show only views: - * $GLOBALS['xoopsDB']->conn->MetaTables('VIEWS'); - * - * @param string $ttype data to be encoded. - * @param boolean $showSchema parameter currently works only for DB2, and when set to true, will add the schema name to the table - * @return array an array of tables and views for the current database as an array - */ - public function fetchMetaTables($ttype=false, $showSchema=false) - { - return @$this->conn->MetaTables($ttypes, $showSchema); - } - - /** - * Returns an array of ADOFieldObject's, one field object for every column of $table. A field object is a class instance with - * (name, type, max_length) defined. Currently Sybase does not recognise date types, and ADO cannot identify the correct data type. - * - * @param string $table returns an array of ADOFieldObject's, one field object for every column of this table - * @param integer $notcasesensitive parameter determines whether we uppercase or lowercase the table name to normalize it <br /> - (required for some databases) - * @return array an array of ADOFieldObject's, one field object for every column of $table - */ - public function fetchMetaColumns($table, $notcasesensitive=true) - { - return @$this->conn->MetaColumns($table, $notcasesensitive); - } - - /** - * Returns an array of column names for $table. - * - * @param string $table returns an array of every column of this table - * @return array this is an associative array, with the keys in uppercase e.g. array('FIELD1' => 'Field1', 'FIELD2'=>'Field2') - */ - public function fetchMetaColumnNames($table) - { - return @$this->conn->MetaColumnNames($table); - } - - /** - * Returns an array containing column names that are the primary keys of $table - * Supported by mysql, odbc (including db2, odbc_mssql, etc), mssql, postgres, interbase/firebird, oci8 currently. - * - * Example: - * $GLOBALS['xoopsDB'] = NewADOConnection('oci8') - * $GLOBALS['xoopsDB']->conn->Connect('localhost','root','','mydb') - * $GLOBALS['xoopsDB']->conn->MetaPrimaryKeys('dataView'); - * $GLOBALS['xoopsDB']->conn->MetaTables('VIEWS'); - * - * Note: You can define a public function ADODB_View_PrimaryKeys($databaseType, $database, $view, $owner) - * that should return an array containing the fields that make up the primary key. - * - * // In this example: dbtype = 'oci8', $db = 'mydb', $view = 'dataView', $owner = false - * public function ADODB_View_PrimaryKeys($dbtype,$db,$view,$owner0 { - * switch(strtoupper($view)) { - * case 'DATAVIEW': return array('DATAID'); - * default: return false; } - * } - * - * @param string $table returns an array of every column of this table - * @return array containing column names that are the primary keys of $table - */ - public function fetchMetaPrimaryKeys($table) - { - return @$this->conn->MetaPrimaryKeys($table); - } - - /** - * Returns an associate array of foreign keys, or false if not supported - * - * @param string $table returns an array of every column of this table - * @param string $owner optional schema or owner can be defined in $owner - * @param boolaan $upper is true, then the table names (array keys) are upper-cased. - * @return array/boolean ssociate array of foreign keys, or false if not supported - */ - public function fetchMetaForeignKeys($table, $owner, $upper) - { - return @$this->conn->MetaForeignKeys($table, $owner, $upper); - } - - /** - * Returns an array of containing two elements 'description' and 'version'. The 'description' - * element contains the string description of the database. The 'version' naturally holds the - * version number (which is also a string) - * - * @return array an array of containing two elements 'description' and 'version' - */ - public function fetchServerInfo() - { - return @$this->conn->ServerInfo(); - } - - /** - * Call this method to install a SQL logging and timing public function (using fnExecute). - * Then all SQL statements are logged into an ".XOOPS_DB_PREFIX."adodb_logsql table in a database - * - * Usage: - * $GLOBALS['xoopsDB']->conn->LogSQL(); // turn on logging - * $GLOBALS['xoopsDB']->conn->Execute($sqls); - * $GLOBALS['xoopsDB']->conn->LogSQL(false); // turn off logging - * - * Note: # output summary of SQL logging results - * - * $perf = NewPerfMonitor($GLOBALS['xoopsDB']); - * echo $perf->SuspiciousSQL(); - * echo $perf->ExpensiveSQL(); - * - * @param boolean $enable Flag True means logging is on, and false means logging is off - * @return string the decoded blob value - */ - public function setLogSQL($enable=true) - { - return @$this->conn->LogSQL($enable); - } - - /** - * This properties allow you to define bottleneck public functions for all sql statements processed by ADOdb. - * This allows you to perform statistical analysis and query-rewriting of your sql. - * - * For example, to count all non-cached queries, you can do this: - * # $db is the connection object ($GLOBALS['xoopsDB']) - * public function &CountExecs($db, $sql, $inputarray) { - * global $EXECS; - * if (!is_array(inputarray)) $EXECS++; - * # handle 2-dimensional input arrays - * else if (is_array(reset($inputarray))) $EXECS += sizeof($inputarray); - * else $EXECS++; - * $null = null; - * return $null; - * } - * - * $db = NewADOConnection(XOOPS_DB_TYPE); - * $db->Connect(XOOPS_DB_DNS); - * $db->fnExecute = 'CountExecs'; - * ... - * # After many sql statements: - * printf("<p>Total queries=%d",$EXECS); - * - * @return string the decoded blob value - */ - public function fnExecute($function) - { - if ($function_exists($function)) - return @$this->conn->fnExecute = $function; - } - - /** - * This properties allow you to define bottleneck public functions for all sql statements processed by ADOdb. - * This allows you to perform statistical analysis and query-rewriting of your sql. - * - * For example, to count all cached queries you can do this: - * # $db is the connection object ($GLOBALS['xoopsDB']) - * public function CountCachedExecs($db, $secs2cache, $sql, $inputarray) { - * global $CACHED; $CACHED++; - * } - * - * $db = NewADOConnection(XOOPS_DB_TYPE); - * $db->Connect(XOOPS_DB_DNS); - * $db->fnCacheExecute = 'CountCachedExecs'; - * ... - * # After many sql statements: - * printf("<p>Total cached=%d",$CACHED); - * - * @return string the decoded blob value - */ - public function fnCacheExecute($function) - { - if ($function_exists($function)) - return @$this->conn->fnCacheExecute = $function; - } - - /** - * FetchInto internally moves to the next record after returning the current row. - * - * note: fetchRow() is easier to use. - * - * @param object $result ADORecordset Object - * @param array $array Sets to the current row. - * @return mixed PEAR_Error object if EOF, 1 if ok (DB_OK constant). If PEAR is undefined, false is returned when EOF. - * Other wise crrent row as array - */ - public function fetchInto($result, &$array) - { - return @$result->FetchInto($array); - } - - - /** - * Gets the current row as an object and moves to the next row automatically - * - * Usage: - * $rs = $GLOBALS['xoopsDB']->conn->Execute('select firstname,lastname from table') - * if ($rs) { - * while ($o = $rs->FetchNextObject()) { - * print "$o->FIRSTNAME, $o->LASTNAME<BR>"; - * } - * } - * - * @param object $result ADORecordset Object - * @param boolean $toupper If you set $toupper to true, then the object fields are set to upper-case. - * @return mixed false if at end-of-file. - * object Current Row - */ - public function fetchNextObject($result, $toupper=true) - { - return @$result->FetchNextObject($toupper); - } - - - /** - * Returns the current record as an object. Fields are not upper-cased, unlike FetchObject. - * - * @param object $result ADORecordset Object - * @return object current record as an object - */ - public function fetchObj($result) - { - return @$result->FetchObj(); - } - - /** - * Returns the current record as an object. Fields are not upper-cased, unlike FetchObject.. - * - * @param object $result ADORecordset Object - * @return mixed the current record as an object. - */ - public function fetchNextObj($result) - { - return @$result->FetchNextObj(); - } - - /** - * Generate a 2-dimensional array of records from the current cursor position, indexed from 0 to $number_of_rows. - * - * @param object $result ADORecordset Object - * @param integer $number_of_rows ndexed from 0 to $number_of_rows - 1. If $number_of_rows is undefined, till EOF. - * @return array Parray of records from the current cursor position - */ - public function getArray($result, $number_of_rows=false) - { - return @$result->GetArray($number_of_rows); - } - - /** - * Generate a 2-dimensional array of records from the current cursor position, indexed from 0 to $number_of_rows - 1. - * - * @param object $result ADORecordset Object - * @param integer $number_of_rows ndexed from 0 to $number_of_rows - 1. If $number_of_rows is undefined, till EOF. - * @return array Parray of records from the current cursor position - */ - public function getRows($result, $number_of_rows=false) - { - return @$result->GetRows($number_of_rows); - } - - /** - * Moves the internal cursor to a specific row $to. Rows are zero-based eg. 0 is the first row. The fields array is automatically updated. - * For databases that do not support scrolling internally, ADOdb will simulate forward scrolling. - * - * Note: This public function uses absolute positioning, unlike Microsoft's ADO. - * - * @param object $result ADORecordset Object - * @param integer $to Moves the internal cursor to a specific row $to. - * @return boolean If false, the internal cursor is not moved in most implementations, so AbsolutePosition() <br /> - * will return the last cursor position before the Move( . - */ - public function move($result, $to) - { - return @$result->Move($to); - } - - /** - * Move the internal cursor to the next row. The fields array is automatically updated. Return false if unable to do so, otherwise true. - * - * Example: - * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); - * if ($rs) { - * while (!$rs->EOF) { - * ProcessArray($rs->fields); - * $rs->MoveNext(); - * } - * } - * - * @param object $result ADORecordset Object - * @return boolean true on successful - */ - public function moveNext($result) - { - return @$result->MoveNext(); - } - - /** - * Internally calls Move(0). Note that some databases do not support this public function.. - * - * @param object $result ADORecordset Object - * @return boolean true on successful - */ - public function moveFirst($result) - { - return @$result->MoveFirst(); - } - - - /** - * Internally calls Move(RecordCount()-1). Note that some databases do not support this public function. - * - * @param object $result ADORecordset Object - * @return boolean true on successful - */ - public function moveLast($result) - { - return @$result->MoveLast(); - } - - /** - * Synonym for CurrentRow for compatibility with ADO. Returns the current row of the record set. 0 is the first row.. - * - * @param object $result ADORecordset Object - * @return integer the current row of the record set. 0 is the first row - */ - public function fetchAbsolutePosition($result) - { - return @$result->AbsolutePosition(); - } - - /** - * Returns the current row of the record set. 0 is the first row.. - * - * @param object $result ADORecordset Object - * @return integer the current row of the record set. 0 is the first row. - */ - public function fetchCurrentRow($result) - { - return @$result->CurrentRow(); - } - - /** - * Returns true if at first page (1-based). Requires PageExecute()/CachePageExecute() to be called. - * - * @param object $result ADORecordset Object - * @param string $status Sets to the current status. - * @return boolean true if at the first page on the recordset. - */ - public function isAtFirstPage($result, $status) - { - return @$result->AtFirstPage($status); - } - - /** - * Returns true if at last page (1-based). Requires PageExecute()/CachePageExecute() to be called. - * - * @param object $result ADORecordset Object - * @param string $status Sets to the current status. - * @return boolean true if at the first page on the recordset. - */ - public function isAtLastPage($result, $status) - { - return @$result->AtLastPage($status); - } - - /** - * Converts the date string $str to another format. The date format is Y-m-d, or Unix timestamp format. The default $fmt is Y-m-d. - * - * @param object $result ADORecordset Object - * @param string $str date string. - * @param string $fmt date format - The default $fmt is Y-m-d. - * @return string date into another format specifief by $fmt - */ - public function fetchUserDate($result, $str, $fmt) - { - return @$result->UserDate($str, $fmt); - } - - /** - * onverts the timestamp string $str to another format. The timestamp format is Y-m-d H:i:s, as in '2002-02-28 23:00:12', - * or Unix timestamp format. UserTimeStamp calls UnixTimeStamp to parse $str, and $fmt defaults to Y-m-d H:i:s if not defined. - * - * @param object $result ADORecordset Object - * @param string $str date string. - * @param string $fmt date format - The default $fmt is Y-m-d. - * @return string date into another format specifief by $fmt - */ - public function fetchUserTimeStamp($result, $str, $fmt) - { - return @$result->UserTimeStamp($str, $fmt); - } - - /** - * Returns the number of rows in the record set. If the number of records returned cannot be determined from the database - * driver API, we will buffer all rows and return a count of the rows after all the records have been retrieved. - * -s * note: buffering can be disabled (for performance reasons) by setting the global variable $ADODB_COUNTRECS = false. - * - * @param object $result ADORecordset Object - * @param string $table table to retrieve Recordcount from. - * @param string $where WHERE Clause for Table. - * @return integer When disabled, RecordCount( ) will return -1 for certain databases otherwise will return Recordcount. - */ - public function fetchPO_RecordCount($result, $table, $where) - { - return @$result->PO_RecordCount($table, $where); - } - - /** - * For databases that allow multiple recordsets to be returned in one query, this public function allows you to switch to the next recordset. - * - * Example: - * $rs = $GLOBALS['xoopsDB']->conn->Execute('execute return_multiple_rs'); - * $arr[1] = $rs->GetArray(); - * @$rs->NextRecordSet(); - * $arr[2] = $rs->GetArray() - * - * note: Currently only supported by mssql driver.. - * - * @param object $result ADORecordset Object - * @return boolean true on success - */ - public function nextRecordSet($result) - { - if (XOOPS_DB_TYPE=='mssql_adodb') - return @$result->NextRecordSet(); - else - trigger_error('ADODB: Function not supported by database type! Function: '.__FUNC__.'; Class: '.__CLASS__); - } - - /** - * Returns an associative array containing the current row. The keys to the array are the column names. - * The column names are upper-cased for easy access. To get the next row, you will still need to call MoveNext().. - * - * @param object $result ADORecordset Object - * @param boolean $toUpper The column names are upper-cased for easy access. - * @return array an associative array containing the current row - */ - public function getRowAssoc($result, $toUpper=true) - { - return @$result->GetRowAssoc($toUpper); - } - - /** - * The value of the associated column $colname for the current row. - * - * @param object $result ADORecordset Object - * @param string $colname The column name is case-insensitive. - * @return string the value of the associated column $colname for the current row. - */ - public function fetchFields($result, $colname) - { - return @$result->Fields($colname); - } - - /** - * Get a result row as an enumerated array - * - * @param resource $result - * @return array - */ - public function fetchRow($result) - { - if ($result->EOF) - return false; - $ret = array(); - foreach(@$result->FetchRow() as $value) - $ret[] = $value; - return $ret; - } - - - /** - * Fetch a result row as an associative array - * - * @return array - */ - public function fetchArray($result) - { - if ($result->EOF) - return false; - return (array)@$result->FetchNextObject(false); - } - - - /** - * Fetch a result row as an associative array - * - * @return array - */ - public function fetchBoth($result) - { - if ($result->EOF) - return false; - @$this->setFetchMode(ADODB_FETCH_DEFAULT); - return (array)@$result->FetchNextObject(false); - } - - /** - * XoopsAccess_ADODBDatabase::fetchObjected() - * - * @param mixed $result - * @return - */ - public function fetchObject($result) - { - if ($result->EOF) - return false; - @$this->setFetchMode(ADODB_FETCH_DEFAULT); - return (object)@$result->FetchNextObject(false); - } - - /** - * Get the ID generated from the previous INSERT operation - * - * @return int - */ - public function getInsertId() - { - return @$this->conn->Insert_ID(); - } - - /** - * Get number of rows in result - * - * @param resource $ query result - * @return int - */ - public function getRowsNum($result) - { - return @$result->RecordCount(); - } - - /** - * Get number of affected rows - * - * @return int - */ - public function getAffectedRows() - { - return @$this->conn->Affected_Rows(); - } - - /** - * Close MySQL connection - */ - public function close() - { - @$this->conn->Close(); - } - - /** - * will free all memory associated with the result identifier result. - * - * @param resource $ query result - * @return bool TRUE on success or FALSE on failure. - */ - public function freeRecordSet($result) - { - unset($result); - } - - /** - * Returns the text of the error message from previous MySQL operation - * - * @return bool Returns the error text from the last MySQL public function, or '' (the empty string) if no error occurred. - */ - public function error() - { - return @'('.@$this->conn->ErrorNo().') '.@$this->conn->ErrorMsg(); - } - - /** - * Returns the numerical value of the error message from previous MySQL operation - * - * @return int Returns the error number from the last MySQL public... [truncated message content] |
From: <for...@us...> - 2012-02-15 09:58:30
|
Revision: 8980 http://xoops.svn.sourceforge.net/xoops/?rev=8980&view=rev Author: forxoops Date: 2012-02-15 09:58:20 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_data/caches/adodb_cache/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-02-15 07:16:27
|
Revision: 8979 http://xoops.svn.sourceforge.net/xoops/?rev=8979&view=rev Author: djculex Date: 2012-02-15 07:16:18 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/xim/releases/1.02/modules/xim/chat.php Modified: XoopsModules/xim/releases/1.02/modules/xim/chat.php =================================================================== --- XoopsModules/xim/releases/1.02/modules/xim/chat.php 2012-02-15 07:13:56 UTC (rev 8978) +++ XoopsModules/xim/releases/1.02/modules/xim/chat.php 2012-02-15 07:16:18 UTC (rev 8979) @@ -41,6 +41,7 @@ **/ include 'header.php'; +require_once XOOPS_ROOT_PATH."/modules/xim/include/functions.php" global $xoopsLogger; $xoopsLogger->activated = false; @@ -72,7 +73,7 @@ $items = $_SESSION['chatHistory'][$chat['from']]; } - $chat['message'] = sanitize($chat['message']); + $chat['message'] = xoops_smallworld($chat['message']); $user = new XoopsUser($chat['from']); // changed to show link to user info for user "from" if ($chat['sys'] != '-1') { @@ -235,7 +236,7 @@ $soundUrl = XOOPS_URL.'/modules/xim/media/0.mp3'; $status = $config['status']; - $messagesan = sanitize($message); + $messagesan = xoops_smallworld($message); header('Content-type: application/json'); echo '{"message":"'.$messagesan.'"}'; if (!isset($_SESSION['chatHistory'][$_POST['to']])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-02-15 07:14:05
|
Revision: 8978 http://xoops.svn.sourceforge.net/xoops/?rev=8978&view=rev Author: djculex Date: 2012-02-15 07:13:56 +0000 (Wed, 15 Feb 2012) Log Message: ----------- function rename sanitize() to xim_sanitize() Modified Paths: -------------- XoopsModules/xim/trunk/modules/xim/chat.php Modified: XoopsModules/xim/trunk/modules/xim/chat.php =================================================================== --- XoopsModules/xim/trunk/modules/xim/chat.php 2012-02-15 05:39:15 UTC (rev 8977) +++ XoopsModules/xim/trunk/modules/xim/chat.php 2012-02-15 07:13:56 UTC (rev 8978) @@ -41,6 +41,7 @@ **/ include 'header.php'; +require_once XOOPS_ROOT_PATH."/modules/xim/include/functions.php" global $xoopsLogger; $xoopsLogger->activated = false; @@ -72,7 +73,7 @@ $items = $_SESSION['chatHistory'][$chat['from']]; } - $chat['message'] = sanitize($chat['message']); + $chat['message'] = xoops_smallworld($chat['message']); $user = new XoopsUser($chat['from']); // changed to show link to user info for user "from" if ($chat['sys'] != '-1') { @@ -235,7 +236,7 @@ $soundUrl = XOOPS_URL.'/modules/xim/media/0.mp3'; $status = $config['status']; - $messagesan = sanitize($message); + $messagesan = xoops_smallworld($message); header('Content-type: application/json'); echo '{"message":"'.$messagesan.'"}'; if (!isset($_SESSION['chatHistory'][$_POST['to']])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2012-02-15 05:39:22
|
Revision: 8977 http://xoops.svn.sourceforge.net/xoops/?rev=8977&view=rev Author: voltan1 Date: 2012-02-15 05:39:15 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Update module Modified Paths: -------------- XoopsModules/fmcontent/branches/news/admin/article.php XoopsModules/fmcontent/branches/news/admin/file.php XoopsModules/fmcontent/branches/news/admin/permissions.php XoopsModules/fmcontent/branches/news/admin/topic.php XoopsModules/fmcontent/branches/news/css/admin.css XoopsModules/fmcontent/branches/news/language/arabic/admin.php XoopsModules/fmcontent/branches/news/language/arabic/modinfo.php XoopsModules/fmcontent/branches/news/language/english/admin.php XoopsModules/fmcontent/branches/news/language/english/modinfo.php XoopsModules/fmcontent/branches/news/language/persian/admin.php XoopsModules/fmcontent/branches/news/language/persian/blocks.php XoopsModules/fmcontent/branches/news/language/persian/main.php XoopsModules/fmcontent/branches/news/language/persian/modinfo.php XoopsModules/fmcontent/branches/news/templates/admin/news_about.html XoopsModules/fmcontent/branches/news/templates/admin/news_header.html XoopsModules/fmcontent/branches/news/xoops_version.php Modified: XoopsModules/fmcontent/branches/news/admin/article.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/article.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/admin/article.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -159,7 +159,6 @@ $xoopsTpl->assign('contents', $contents); $xoopsTpl->assign('story_pagenav', $story_pagenav); $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); - $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); // Call template file $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_article.html'); @@ -196,7 +195,6 @@ $xoopsTpl->assign('contents', $contents); $xoopsTpl->assign('story_pagenav', $story_pagenav); $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); - $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); // Call template file $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_article.html'); @@ -237,7 +235,6 @@ $xoopsTpl->assign('contents', $contents); $xoopsTpl->assign('story_pagenav', $story_pagenav); $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); - $xoopsTpl->assign('news_tips', _NEWS_AM_CONTENT_TIPS); // Call template file $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_article.html'); Modified: XoopsModules/fmcontent/branches/news/admin/file.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/file.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/admin/file.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -119,7 +119,6 @@ $xoopsTpl->assign('files', $files); $xoopsTpl->assign('file_pagenav', $file_pagenav); $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); - $xoopsTpl->assign('news_tips', _NEWS_AM_FILE_TIPS); // Call template file $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_file.html'); Modified: XoopsModules/fmcontent/branches/news/admin/permissions.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/permissions.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/admin/permissions.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -103,7 +103,6 @@ $xoopsTpl->assign('navigation', 'permission'); $xoopsTpl->assign('navtitle', _NEWS_MI_PERM); -$xoopsTpl->assign('news_tips', _NEWS_AM_PERMISSIONS_TIPS); // Call template file $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_permissions.html'); Modified: XoopsModules/fmcontent/branches/news/admin/topic.php =================================================================== --- XoopsModules/fmcontent/branches/news/admin/topic.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/admin/topic.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -121,7 +121,6 @@ $xoopsTpl->assign('topics', $topics); $xoopsTpl->assign('topic_pagenav', $topic_pagenav); $xoopsTpl->assign('xoops_dirname', $NewsModule->getVar('dirname')); - $xoopsTpl->assign('news_tips', _NEWS_AM_TOPIC_TIPS); // Call template file $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/' . $NewsModule->getVar('dirname') . '/templates/admin/news_topic.html'); Modified: XoopsModules/fmcontent/branches/news/css/admin.css =================================================================== --- XoopsModules/fmcontent/branches/news/css/admin.css 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/css/admin.css 2012-02-15 05:39:15 UTC (rev 8977) @@ -210,6 +210,7 @@ .moduleicons { height: 30px; width: 100%; + margin-bottom: 10px; } .tables { Modified: XoopsModules/fmcontent/branches/news/language/arabic/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/arabic/admin.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/arabic/admin.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -188,36 +188,5 @@ define('_NEWS_AM_ABOUT_AUTHOR_INFO', 'معلومات المنتج'); define('_NEWS_AM_ABOUT_AUTHOR_NAME', 'الإسم:'); define('_NEWS_AM_ABOUT_CHANGELOG', 'قائمة التعدیلات'); -// Tips - define('_NEWS_AM_HOME_TIPS', - '<ul> - <li>لم یتم کتابة موضوع بعد</li> - </ul>'); - define('_NEWS_AM_TOPIC_TIPS', - '<ul> - <li>حفظ التعدیل أم حذف الفئات کلها</li> - <li> استخدام قائمة الفئات في الموقع</li> - <li>تفعیل و استخدام القائمة علی شکل آي جکس</li> - <li> اختیار الفئة لمشاهدة جمیع الصفحات الداخلیة للفئة المختارة</li> - </ul>'); - define('_NEWS_AM_CONTENT_TIPS', - '<ul> - <li>حفظ عرض التعدیل ام حذف جمیع الصفحات</li> - <li>إنشاء فئة أو رابط</li> - <li لفرز الصفحات (لتحدید موقعها في القائمة أو وضع العرض) اسحب الصفحة إلی المکان الصحیح (drag and drop).</li> - </ul>'); - define('_NEWS_AM_TOOLS_TIPS', - '<ul> - <li>لم یتم کتابة أي شيء بعد</li> - </ul>'); - define('_NEWS_AM_PERMISSIONS_TIPS', - '<ul> - <li>إتاحة العرض و الإرسال و الموافقة التلقائیة للوحدة</li> - </ul>'); - define('_NEWS_AM_FILE_TIPS', - '<ul> - <li>Not yet</li> - </ul>'); - } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/arabic/modinfo.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/arabic/modinfo.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/arabic/modinfo.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -48,10 +48,7 @@ define('_NEWS_MI_GROUPS_DESC', 'عین الإتاحة الکلیة للمجموعات.'); // Urls define('_NEWS_MI_FRIENDLYURL','تحدید عنوان مفضل للمستخدمین'); - define('_NEWS_MI_FRIENDLYURL_DESC', 'Select the URL rewrite mode you want to use.<ul> - <li>"Standard Mode": Module standard URL</li> - <li>"Rewrite Mode": you must use .htaccess file and edit .htaccess sample code if you change SEO / URL Rewrite options</li> - <li>"Short Rewrite": you can make URL whit out page id and module use alias for get page info. you must edit .htaccess, you can remove module name and Url extension and use Root base for have short URL</li></ul>'); + define('_NEWS_MI_FRIENDLYURL_DESC', 'Select the URL rewrite mode you want to use.'); define('_NEWS_MI_URL_STANDARD', 'Standard Mode'); define('_NEWS_MI_URL_REWRITE', 'Rewrite Mode'); define('_NEWS_MI_URL_SHORT', 'Short Rewrite'); @@ -85,12 +82,6 @@ // Tell a friend define('_NEWS_MI_USETAG', ' استخدام الوحدة TAG لإنتاج '); define('_NEWS_MI_USETAG_DESC', 'لاستخدام هذا الأیقون یجب تثبیت وحدة TAG'); -// minimum length of single words - define('_NEWS_MI_MINWORDLENGHT', 'الکلمات الرئیسیة'); - define('_NEWS_MI_MINWORDLENGHT_DESC', 'Choose the minimum length of single words'); -// minimum length of single words - define('_NEWS_MI_MINWORDOCCUR',' وصف'); - define('_NEWS_MI_MINWORDOCCUR_DESC', 'Choose the minimum occur of single words'); // Show options define('_NEWS_MI_DISP_OPTION', 'کیفیة العرض'); define('_NEWS_MI_DISP_OPTION_DESC', 'اختر حالة عرض الخیارات. إما علی اساس خیارات الوحدة أم خیار الفئات'); @@ -141,12 +132,6 @@ define('_NEWS_MI_SHOWTYPE_3', 'وضع الصورة'); define('_NEWS_MI_SHOWTYPE_4', 'جالت لیست'); define('_NEWS_MI_SHOWTYPE_5', 'Spotlight'); -//Template - define('_NEWS_MI_TEMPLATE', 'نموذج'); - define('_NEWS_MI_TEMPLATE_DESC', 'اختر نوع النموذج المستخدم'); - define('_NEWS_MI_TEMPLATE_1', 'Legacy'); - define('_NEWS_MI_TEMPLATE_2', 'jQuery UI'); - define('_NEWS_MI_TEMPLATE_3', 'Html 5'); // Show order define('_NEWS_MI_SHOWORDER', 'اولویة العرض'); define('_NEWS_MI_SHOWORDER_DESC', 'اختر اولویة العرض متصاعدا ام متنازلا'); @@ -155,13 +140,13 @@ // Show sort define('_NEWS_MI_SHOWSORT', 'تنظیم علی اساس العرض'); define('_NEWS_MI_SHOWSORT_DESC', 'تنظیم علی اساس اختیار العرض'); - define('_NEWS_MI_SHOWSORT_1', 'content id'); - define('_NEWS_MI_SHOWSORT_2', 'content create'); - define('_NEWS_MI_SHOWSORT_3', 'content update'); - define('_NEWS_MI_SHOWSORT_4', 'content title'); - define('_NEWS_MI_SHOWSORT_5', 'content order'); + define('_NEWS_MI_SHOWSORT_1', 'Id'); + define('_NEWS_MI_SHOWSORT_2', 'Create'); + define('_NEWS_MI_SHOWSORT_3', 'Update'); + define('_NEWS_MI_SHOWSORT_4', 'Title'); + define('_NEWS_MI_SHOWSORT_5', 'Order'); define('_NEWS_MI_SHOWSORT_6', 'Random'); - define('_NEWS_MI_SHOWSORT_7', 'content Hits'); + define('_NEWS_MI_SHOWSORT_7', 'Hits'); // Admin page define('_NEWS_MI_ADMIN_PERPAGE', 'الوثیقة في کل صفحة'); define('_NEWS_MI_ADMIN_PERPAGE_DESC', 'إدارة عدد الوثائق في کل صفحة'); @@ -177,9 +162,9 @@ // Admin topic Show order define('_NEWS_MI_ADMIN_SHOWORDER_TOPIC', 'التنظیم علی اساس عرض الفئات'); define('_NEWS_MI_ADMIN_SHOWORDER_TOPIC_DESC', 'اختر اولویة العرض متصاعدا ام متنازلا '); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_1', 'topic id'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_2', 'topic weight'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_3', 'topic created'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_1', 'Id'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_2', 'Order'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_3', 'Created'); // Admin topic sort define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC', 'اولویة عرض الفئات'); define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_DESC', 'التنظیم علی اساس اختیار العرض'); Modified: XoopsModules/fmcontent/branches/news/language/english/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/english/admin.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/english/admin.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -188,36 +188,5 @@ define('_NEWS_AM_ABOUT_AUTHOR_INFO', 'Author Info'); define('_NEWS_AM_ABOUT_AUTHOR_NAME', 'Name:'); define('_NEWS_AM_ABOUT_CHANGELOG', 'Changelog'); -// Tips - define('_NEWS_AM_HOME_TIPS', - '<ul> - <li>Not yet</li> - </ul>'); - define('_NEWS_AM_TOPIC_TIPS', - '<ul> - <li>Reorder, view, edit or delete any topic</li> - <li>Display topic articles as a menu in block</li> - <li>Show/hide topics in index and parent pages</li> - <li>Click on a topic title to see all articles for that topic</li> - </ul>'); - define('_NEWS_AM_CONTENT_TIPS', - '<ul> - <li>Reorder, view, edit or delete any article page</li> - <li>Create article, link, section header or separator</li> - <li>To change order of articles (which will be reflected in the Menu), simply drag and drop the articles into the desired position.</li> - </ul>'); - define('_NEWS_AM_TOOLS_TIPS', - '<ul> - <li>Not yet</li> - </ul>'); - define('_NEWS_AM_PERMISSIONS_TIPS', - '<ul> - <li>Access, submit and global permissions for the module</li> - </ul>'); - define('_NEWS_AM_FILE_TIPS', - '<ul> - <li>Not yet</li> - </ul>'); - } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/english/modinfo.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/english/modinfo.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/english/modinfo.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -48,10 +48,7 @@ define('_NEWS_MI_GROUPS_DESC', 'Select general access permission for groups.'); // Urls define('_NEWS_MI_FRIENDLYURL', 'URL rewrite method'); - define('_NEWS_MI_FRIENDLYURL_DESC', 'Select the URL rewrite mode you want to use.<ul> - <li>"Standard Mode": Module standard URL</li> - <li>"Rewrite Mode": you must use .htaccess file and edit .htaccess sample code if you change SEO / URL Rewrite options</li> - <li>"Short Rewrite": you can make URL whit out page id and module use alias for get page info. you must edit .htaccess, you can remove module name and Url extension and use Root base for have short URL</li></ul>'); + define('_NEWS_MI_FRIENDLYURL_DESC', 'Select the URL rewrite mode you want to use.'); define('_NEWS_MI_URL_STANDARD', 'Standard Mode'); define('_NEWS_MI_URL_REWRITE', 'Rewrite Mode'); define('_NEWS_MI_URL_SHORT', 'Short Rewrite'); @@ -85,12 +82,6 @@ // Tell a friend define('_NEWS_MI_USETAG', 'Use TAG module to generate tags'); define('_NEWS_MI_USETAG_DESC', 'You have to install TAG module for this option to work'); -// minimum length of single words - define('_NEWS_MI_MINWORDLENGHT', 'Meta Keywords lenght'); - define('_NEWS_MI_MINWORDLENGHT_DESC', 'Choose the minimum length of single words'); -// minimum length of single words - define('_NEWS_MI_MINWORDOCCUR', 'Meta Keywords occur'); - define('_NEWS_MI_MINWORDOCCUR_DESC', 'Choose the minimum occurrence of single words'); // Show options define('_NEWS_MI_DISP_OPTION', 'General display method'); define('_NEWS_MI_DISP_OPTION_DESC', 'Select which display options will be used in articles<br />"Topic based" will use display options defined in topic preferences'); @@ -141,12 +132,6 @@ define('_NEWS_MI_SHOWTYPE_3', 'Photo type'); define('_NEWS_MI_SHOWTYPE_4', 'List type'); define('_NEWS_MI_SHOWTYPE_5', 'Spotlight'); -//Template - define('_NEWS_MI_TEMPLATE', 'Template'); - define('_NEWS_MI_TEMPLATE_DESC', 'Set general template for the module'); - define('_NEWS_MI_TEMPLATE_1', 'Legacy'); - define('_NEWS_MI_TEMPLATE_2', 'jQuery UI'); - define('_NEWS_MI_TEMPLATE_3', 'HTML 5'); // Show order define('_NEWS_MI_SHOWORDER', 'Display order'); define('_NEWS_MI_SHOWORDER_DESC', 'Select Descendant/Ascendant order'); @@ -155,13 +140,13 @@ // Show sort define('_NEWS_MI_SHOWSORT', 'Sort by'); define('_NEWS_MI_SHOWSORT_DESC', 'Ordering method for articles displayed in the module'); - define('_NEWS_MI_SHOWSORT_1', 'article id'); - define('_NEWS_MI_SHOWSORT_2', 'article create'); - define('_NEWS_MI_SHOWSORT_3', 'article update'); - define('_NEWS_MI_SHOWSORT_4', 'article title'); - define('_NEWS_MI_SHOWSORT_5', 'article order'); + define('_NEWS_MI_SHOWSORT_1', 'Id'); + define('_NEWS_MI_SHOWSORT_2', 'Create'); + define('_NEWS_MI_SHOWSORT_3', 'Update'); + define('_NEWS_MI_SHOWSORT_4', 'Title'); + define('_NEWS_MI_SHOWSORT_5', 'Order'); define('_NEWS_MI_SHOWSORT_6', 'Random'); - define('_NEWS_MI_SHOWSORT_7', 'article Hits'); + define('_NEWS_MI_SHOWSORT_7', 'Hits'); // Admin page define('_NEWS_MI_ADMIN_PERPAGE', 'Admin article page items number'); define('_NEWS_MI_ADMIN_PERPAGE_DESC', 'Number of items listed in admin article page'); @@ -177,9 +162,9 @@ // Admin topic Show order define('_NEWS_MI_ADMIN_SHOWORDER_TOPIC', 'Admin Topic page display order'); define('_NEWS_MI_ADMIN_SHOWORDER_TOPIC_DESC', 'Select Descendant/Ascendant order for admin Topic page'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_1', 'Topic ID'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_2', 'Topic weight'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_3', 'Topic creation date'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_1', 'Id'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_2', 'Order'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_3', 'Created'); // Admin topic sort define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC', 'Admin Topic page sort'); define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_DESC', 'Ordering method for items listed in admin Topic page'); Modified: XoopsModules/fmcontent/branches/news/language/persian/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/persian/admin.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/persian/admin.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -29,12 +29,12 @@ define("_NEWS_AM_INDEX_ADMENU1", "شاخه ها"); define("_NEWS_AM_INDEX_ADMENU2", "صفحه ها"); define("_NEWS_AM_INDEX_TOPICS", "<span class='green'>%s</span> شاخه در پایکاه داده ها قرار دارد"); - define("_NEWS_AM_INDEX_CONTENTS", "<span class='green'>%s</span> صفحه در پایگاه داده ها قرار دارد"); - define("_NEWS_AM_INDEX_CONTENTS_OFFLINE", "There are <span class='red'>%s</span> Offline news in our database"); - define("_NEWS_AM_INDEX_CONTENTS_EXPIRE", "There are <span class='red'>%s</span> Expire news in our database"); + define("_NEWS_AM_INDEX_CONTENTS", "<span class='green'>%s</span> خبر در پایگاه داده ها قرار دارد"); + define("_NEWS_AM_INDEX_CONTENTS_OFFLINE", "<span class='red'>%s</span> خبر منتظر برای تایید در پایگاه داده ها قرار دارد"); + define("_NEWS_AM_INDEX_CONTENTS_EXPIRE", "<span class='red'>%s</span> خبر منقضی شده در پایگاه داده ها قرار دارد"); // Topic page define('_NEWS_AM_TOPIC_FORM', 'مدیریت شاخه ها'); - define('_NEWS_AM_TOPIC_ID', 'ID'); + define('_NEWS_AM_TOPIC_ID', 'شماره'); define('_NEWS_AM_TOPIC_NUM', 'وزن'); define('_NEWS_AM_TOPIC_NAME', 'عنوان'); define('_NEWS_AM_TOPIC_PARENT', 'شاخه والد'); @@ -62,20 +62,20 @@ define('_NEWS_AM_TOPIC_SHOWHITS', 'نمایش بازدید ها'); define('_NEWS_AM_TOPIC_SHOWCOMS', 'نمایش نظرهای ارسال'); define('_NEWS_AM_TOPIC_HOMEPAGE', 'تنظیمات صفحه اول شاخه'); - define('_NEWS_AM_TOPIC_HOMEPAGE_DESC', 'Seting content show type in topic pages'); - define('_NEWS_AM_TOPIC_HOMEPAGE_1', 'List all contents from this topic and subtopics'); - define('_NEWS_AM_TOPIC_HOMEPAGE_2', 'List all subtopics'); - define('_NEWS_AM_TOPIC_HOMEPAGE_3', 'List all contents from just this topic'); - define('_NEWS_AM_TOPIC_HOMEPAGE_4', 'Show selected content from this topic'); - define('_NEWS_AM_TOPIC_OPTIONS', 'Sellect topic show options'); - define('_NEWS_AM_TOPIC_OPTIONS_DESC', 'Sellect topic show options'); + define('_NEWS_AM_TOPIC_HOMEPAGE_DESC', 'انتخاب نوع نمایش مطالب در صفحه اول شاخه'); + define('_NEWS_AM_TOPIC_HOMEPAGE_1', 'فهرست تمام اخبار و از شاخه و زیر شاخه ها'); + define('_NEWS_AM_TOPIC_HOMEPAGE_2', 'فهرست همه زیر شاخه ها'); + define('_NEWS_AM_TOPIC_HOMEPAGE_3', 'فهرست اخبار فقط همین شاخه'); + define('_NEWS_AM_TOPIC_HOMEPAGE_4', 'یه خبر انتخابی از شاخه'); + define('_NEWS_AM_TOPIC_OPTIONS', 'انتخاب حالت نمایش شاخه ها'); + define('_NEWS_AM_TOPIC_OPTIONS_DESC', 'انتخاب حالت نمایش شاخه ها'); define('_NEWS_AM_TOPIC_ALIAS', 'نام مستعار'); - define('_NEWS_AM_TOPIC_SHOWTYPE_0', 'Module based'); - define('_NEWS_AM_TOPIC_SHOWTYPE_1', 'News type'); - define('_NEWS_AM_TOPIC_SHOWTYPE_2', 'Table type'); - define('_NEWS_AM_TOPIC_SHOWTYPE_3', 'Photo type'); - define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'List type'); - define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'Spotlight'); + define('_NEWS_AM_TOPIC_SHOWTYPE_0', 'برپایه ماژول'); + define('_NEWS_AM_TOPIC_SHOWTYPE_1', 'حالت خبری'); + define('_NEWS_AM_TOPIC_SHOWTYPE_2', 'حالت جدولی'); + define('_NEWS_AM_TOPIC_SHOWTYPE_3', 'حالت تصویر'); + define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'حالت لیستی'); + define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'اسپایت لایت'); // Content page define('_NEWS_AM_CONTENT_FORM', 'مدیریت اخبار'); define('_NEWS_AM_CONTENT_FORMTITLE', 'عنوان'); @@ -99,8 +99,8 @@ define('_NEWS_AM_CONTENT_SHORT', 'متن خلاصه'); define('_NEWS_AM_CONTENT_TITLE', 'عنوان'); define('_NEWS_AM_CONTENT_MANAGER', 'مدیریت اخبار'); - define('_NEWS_AM_CONTENT_FILE', 'File'); - define('_NEWS_AM_CONTENT_ID', 'ID'); + define('_NEWS_AM_CONTENT_FILE', 'فایل'); + define('_NEWS_AM_CONTENT_ID', 'شماره'); define('_NEWS_AM_CONTENT_NUM', 'وزن'); define('_NEWS_AM_CONTENT_PAGE', 'صفحه'); define('_NEWS_AM_CONTENT_TYPE', 'نوع'); @@ -119,30 +119,30 @@ define('_NEWS_AM_CONTENT_STATICS', 'صفحات استاتیک'); define('_NEWS_AM_CONTENT_ALL_ITEMS', 'تمام صفحه ها و منو ها از تمام شاخه ها'); define('_NEWS_AM_CONTENT_ALL_ITEMS_FROM', 'تمام صفحه ها و منو ها از شاخه :'); - define('_NEWS_AM_CONTENT_FILE_DESC', 'For add more files you must use admin file system in admin side'); - define('_NEWS_AM_CONTENT_SUBTITLE', 'Subtitle'); - define('_NEWS_AM_CONTENT_ALL', 'All News'); - define('_NEWS_AM_CONTENT_OFFLINE', 'Offline news'); - define('_NEWS_AM_CONTENT_EXPIRE', 'Expire news'); - define('_NEWS_AM_CONTENT_PEDATE', 'Set publish and expiration date'); - define('_NEWS_AM_CONTENT_SETDATETIME', 'Set the date/time of publish'); - define('_NEWS_AM_CONTENT_SETEXPDATETIME', 'Set the date/time of expiration'); + define('_NEWS_AM_CONTENT_FILE_DESC', 'برای اضافه کردن فایل های بیشتر به بخش مدیریت فایل ها مراجعه نمایید'); + define('_NEWS_AM_CONTENT_SUBTITLE', 'عنوان دوم'); + define('_NEWS_AM_CONTENT_ALL', 'همه اخبار'); + define('_NEWS_AM_CONTENT_OFFLINE', 'اخبار منتظر برای تایید'); + define('_NEWS_AM_CONTENT_EXPIRE', 'اخبار باطل شده'); + define('_NEWS_AM_CONTENT_PEDATE', 'تنظیم زمان نمایش و باطل شدن'); + define('_NEWS_AM_CONTENT_SETDATETIME', 'تعیین زمان/تاریخ قرار گرفتن خبر در سایت'); + define('_NEWS_AM_CONTENT_SETEXPDATETIME', 'تعیین زمان/تاریخ منقضی شدن خبر در سایت'); // Tools page define('_NEWS_AM_TOOLS_FORMFOLDER_TITLE', 'تکثیر ماژول'); define('_NEWS_AM_TOOLS_FORMFOLDER_NAME', 'نام پوشه'); define('_NEWS_AM_TOOLS_LOG_TITLE', 'گزارش تکثیر ماژول'); - define('_NEWS_AM_TOOLS_FORMPURGE_TITLE', 'Purge page of deleted clone'); + define('_NEWS_AM_TOOLS_FORMPURGE_TITLE', 'حذف اخباری که ماژول تکثیر شدیشان حذف شده است'); define('_NEWS_AM_TOOLS_ALIAS_TITLE', 'دوباره سازی نام مستعار'); define('_NEWS_AM_TOOLS_ALIAS_CONTENT', 'دوباره سازی نام مستعار صفحه'); define('_NEWS_AM_TOOLS_ALIAS_TOPIC', 'دوباره سازی نام مستعار شاخه'); - define('_NEWS_AM_TOOLS_META_TITLE', 'Rebuild Metas'); - define('_NEWS_AM_TOOLS_META_KEYWORD', 'Rebuild Meta keywords'); - define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'Rebuild Meta Description'); - define('_NEWS_AM_TOOLS_PRUNE', 'Prune news'); - define('_NEWS_AM_TOOLS_PRUNE_BEFORE', 'Prune stories that were published before'); - define('_NEWS_AM_TOOLS_PRUNE_EXPIREDONLY', 'Only remove stories who have expired'); - define('_NEWS_AM_TOOLS_PRUNE_TOPICS', 'Limit to the following topics'); - define('_NEWS_AM_TOOLS_PRUNE_EXPORT_DSC', 'If you dont check anything then all the topics will be used else only the selected topics will be used'); + define('_NEWS_AM_TOOLS_META_TITLE', 'دوباره سازی متا ها'); + define('_NEWS_AM_TOOLS_META_KEYWORD', 'دوباره سازی کلمات کلیدی متا'); + define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'دوباره سازی توضیحات متا'); + define('_NEWS_AM_TOOLS_PRUNE', 'هرس کردن خبرها'); + define('_NEWS_AM_TOOLS_PRUNE_BEFORE', 'هرس کردن خبرهایی که قبل از این تاریخ در سایت قرار گرفتهاند'); + define('_NEWS_AM_TOOLS_PRUNE_EXPIREDONLY', 'فقط خبرهایی را حذف کن که منقضی شدهاند '); + define('_NEWS_AM_TOOLS_PRUNE_TOPICS', 'محدود به سرفصلهای زیر'); + define('_NEWS_AM_TOOLS_PRUNE_EXPORT_DSC', 'اگر هیچکدام را انتخاب نکنید همه سرفصلها در نظر گرفته میشوند وگرنه فقط سرفصلهای انتخاب شده در نظر گرفته میشوند'); // Permissions define('_NEWS_AM_PERMISSIONS_ACCESS', 'دسترسی نمایش'); define('_NEWS_AM_PERMISSIONS_SUBMIT', 'دسترسی ارسال'); @@ -151,8 +151,8 @@ define('_NEWS_AM_PERMISSIONS_GLOBAL_8', 'ارسال در بخش کاربر'); define('_NEWS_AM_PERMISSIONS_GLOBAL_16', 'تایید خودکار'); // Attach files - define('_NEWS_AM_FILE', 'File'); - define('_NEWS_AM_FILE_ID', 'ID'); + define('_NEWS_AM_FILE', 'فایل'); + define('_NEWS_AM_FILE_ID', 'شماره'); define('_NEWS_AM_FILE_ONLINE', 'آنلاین'); define('_NEWS_AM_FILE_ACTION', 'فعال'); define('_NEWS_AM_FILE_FORM', 'اضافه کردن فایل'); @@ -172,8 +172,8 @@ define('_NEWS_AM_MSG_CLONE_ERROR', 'این شاخه هماکنون موجود است!'); define("_NEWS_AM_MSG_NOPERMSSET", "هیچ دسترسی قابل تنظیم نیست : هنوز هیچ شاخه ای ساخته نشده است! لطفا ابتدا یک شاخه بسازید."); define('_NEWS_AM_MSG_ALIASERROR', 'نام مستعار مورد انتخاب شما گرفته شده است. لطفا یک نام دیگر انتخاب کنید.'); - define('_NEWS_AM_MSG_INPROC', 'Rebuilding ... '); - define('_NEWS_AM_MSG_PRUNE_DELETED', '%s Articles deleted'); + define('_NEWS_AM_MSG_INPROC', 'دوباره سازی ...'); + define('_NEWS_AM_MSG_PRUNE_DELETED', '%s خبر حذف شده.'); // about define('_NEWS_AM_ABOUT_ADMIN', 'درباره'); define('_NEWS_AM_ABOUT_DESCRIPTION', 'توضیحات:'); @@ -188,36 +188,5 @@ define('_NEWS_AM_ABOUT_AUTHOR_INFO', 'اطلاعات سازنده'); define('_NEWS_AM_ABOUT_AUTHOR_NAME', 'نام:'); define('_NEWS_AM_ABOUT_CHANGELOG', 'فهرست تغییرات'); -// Tips - define('_NEWS_AM_HOME_TIPS', - '<ul> - <li>هنوز چیزی نوشته نشده است</li> - </ul>'); - define('_NEWS_AM_TOPIC_TIPS', - '<ul> - <li>ثبت نمایش ویرایش یا حذف تمام شاخه ها</li> - <li>استفاده از شاخه ها مشابه منو در سایت</li> - <li>فعالی سازی و قابلیت استفاده از منو هابه صورت آی جکس</li> - <li>انتخاب شاخه برای مشاهده تمام صفحات داخل شاخه</li> - </ul>'); - define('_NEWS_AM_CONTENT_TIPS', - '<ul> - <li>ثبت نمایش ویرایش یا حذف تمام صفحات</li> - <li>ساخت شاخه و لینک</li> - <li>برای مرتب کردن صفحات (برای مشخص کردن جایگاهشان در منو یا حالت نمایش), کافیست فقط صفحه را گرفته و به محل مناسب بکشید (drag and drop).</li> - </ul>'); - define('_NEWS_AM_TOOLS_TIPS', - '<ul> - <li>هنوز چیزی نوشته نشده است</li> - </ul>'); - define('_NEWS_AM_PERMISSIONS_TIPS', - '<ul> - <li>دسترسی نمایش و ارسال و تایید خودکار برای ماژول</li> - </ul>'); - define('_NEWS_AM_FILE_TIPS', - '<ul> - <li>Not yet</li> - </ul>'); - } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/persian/blocks.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/persian/blocks.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/persian/blocks.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -26,13 +26,13 @@ define('_NEWS_MB_DESCRIPTION', 'توضیحات'); define('_NEWS_MB_DATE', 'تاریخ انتشار'); define('_NEWS_MB_MORE', 'ادامه مطلب'); - define('_NEWS_MB_SHOE_MORELINK', 'Show more link'); - define('_NEWS_MB_MORELINK', 'More link'); - define("_NEWS_MB_IMPORTANT", "Immediate "); - define("_NEWS_MB_COUNT", "Show news count"); - define("_NEWS_MB_TOPIC_NAME", "Title"); - define("_NEWS_MB_TOPIC_IMG", "image"); - define("_NEWS_MB_HITINDAY1", "Show news since"); - define("_NEWS_MB_HITINDAY2", "Day's ago. This option work when you sort news by hit"); + define('_NEWS_MB_SHOE_MORELINK', 'نمایش لینک بیشتر'); + define('_NEWS_MB_MORELINK', 'لینک بیشتر'); + define("_NEWS_MB_IMPORTANT", "مهم "); + define("_NEWS_MB_COUNT", "نمایش تعداد اخبار"); + define("_NEWS_MB_TOPIC_NAME", "عنوان"); + define("_NEWS_MB_TOPIC_IMG", "تصویر"); + define("_NEWS_MB_HITINDAY1", "نمایش اخبار از"); + define("_NEWS_MB_HITINDAY2", "روز قبل. این گزینه وقتی کار میکند که شما نمایش اخبار را بر اساس بازدید مرتب کرده باشید."); } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/persian/main.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/persian/main.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/persian/main.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -20,7 +20,7 @@ if (!defined('_NEWS_MD_NEXT')) { // All - define('_NEWS_MD_ID', 'ID'); + define('_NEWS_MD_ID', 'شماره'); define('_NEWS_MD_TITLE', 'عنوان'); define('_NEWS_MD_PUBLICDATE', 'تاریخ'); define('_NEWS_MD_MORE', 'ادامه'); @@ -31,15 +31,15 @@ define("_NEWS_MD_AUTHOR_ALL_DESC", "مشاهده تمام مطالب ارسال شده توسط "); define('_NEWS_MD_COM', 'نظر'); define('_NEWS_MD_RELATED', 'مطالب مرتبط'); - define("_NEWS_MD_HOME", "Home"); - define("_NEWS_MD_IMPORTANT", "Immediate "); + define("_NEWS_MD_HOME", "خانه"); + define("_NEWS_MD_IMPORTANT", "مهم "); // Link define('_NEWS_MD_NEXT', 'صفحه بعدی'); define('_NEWS_MD_PREV', 'صفحه قبلی'); define('_NEWS_MD_EDIT', 'ویرایش صفحه'); define('_NEWS_MD_DELETE', 'حذف صغحه'); define('_NEWS_MD_PRINT', 'چاپ صفحه'); - define('_NEWS_MD_PDF', 'PDF'); + define('_NEWS_MD_PDF', 'پی دی اف'); define('_NEWS_MD_MAIL', 'ارسال به دوستان'); define('_NEWS_MD_COMS', 'نظر'); define('_NEWS_MD_NOCOMS', 'بدون نظر'); @@ -50,9 +50,9 @@ // Error message define('_NEWS_MD_ERROR_DEFAULT', 'خطا در ماژول: هیچ صفحه پیشفرضی انتخاب نشده است!'); define('_NEWS_MD_ERROR_NOPAGE', 'هیچ صفحه ای ساخته نشده است'); - define('_NEWS_MD_ERROR_STATUS', 'This page is diactive'); + define('_NEWS_MD_ERROR_STATUS', 'این صفحه غیر فعال است'); define('_NEWS_MD_ERROR_TOPIC', 'خطا در هنگام انتخاب شاخه'); - define('_NEWS_MD_ERROR_EXIST', 'Selected content does not exist'); + define('_NEWS_MD_ERROR_EXIST', 'صفحه انتخاب شده موجود نیست'); // Light box define('_NEWS_MD_LIGHTBOX_IMAGE', 'تصویر'); define('_NEWS_MD_LIGHTBOX_OF', 'از'); @@ -81,16 +81,16 @@ define("_NEWS_MD_BOOKMARK_TO_GOOLGEREADER", "بوکمارک در Google Reader"); define("_NEWS_MD_BOOKMARK_TO_GOOLGEBOOKMARKS", "بوکمارک در Google Bookmarks"); // topic - define("_NEWS_MD_TOPIC_ID", "ID"); + define("_NEWS_MD_TOPIC_ID", "شماره"); define("_NEWS_MD_TOPIC_NAME", "عنوان"); define("_NEWS_MD_TOPIC_DESC", "توضیحات"); define("_NEWS_MD_TOPIC_IMG", "تصویر"); // Archive - define("_NEWS_MD_ARCHIVE", "News Archive"); - define("_NEWS_MD_ARCHIVE_ARTICLES", "Articles"); - define("_NEWS_MD_ARCHIVE_VIEW", "Hits"); - define("_NEWS_MD_ARCHIVE_DATE", "Date"); - define("_NEWS_MD_ARCHIVE_TOPIC", "Topic"); - define("_NEWS_MD_ARCHIVE_TOTAL", "Total Stores"); + define("_NEWS_MD_ARCHIVE", "آرشیو اخبار"); + define("_NEWS_MD_ARCHIVE_ARTICLES", "مطالب"); + define("_NEWS_MD_ARCHIVE_VIEW", "بازدید"); + define("_NEWS_MD_ARCHIVE_DATE", "تاریخ"); + define("_NEWS_MD_ARCHIVE_TOPIC", "شاخه"); + define("_NEWS_MD_ARCHIVE_TOTAL", "مجموع اخبار"); } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/persian/modinfo.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/persian/modinfo.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/language/persian/modinfo.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -32,35 +32,32 @@ define("_NEWS_MI_HELP", "راهنما"); define("_NEWS_MI_SUBMIT", "ارسال"); define('_NEWS_MI_FILE', 'فایل'); - define('_NEWS_MI_ARCHIVE', 'Archive'); + define('_NEWS_MI_ARCHIVE', 'آرشیو'); // Block define("_NEWS_MI_BLOCK_PAGE", "صفحه"); define("_NEWS_MI_BLOCK_LIST", "فهرست"); - define('_NEWS_MI_BLOCK_TOPIC', 'Topic list'); + define('_NEWS_MI_BLOCK_TOPIC', 'فهرست شاخه ها'); // Editor define("_NEWS_MI_FORM_EDITOR", "انتخاب فرم"); define("_NEWS_MI_FORM_EDITOR_DESC", "انتخاب ویرایشگر برای استفاده در صفحه ارسال مطلب."); // Admin groups - define("_NEWS_MI_ADMINGROUPS", "Admin Group Permissions"); - define("_NEWS_MI_ADMINGROUPS_DESC", "Which groups have access to tools and permissions page"); + define("_NEWS_MI_ADMINGROUPS", "دسترسی گروه های مدیریت"); + define("_NEWS_MI_ADMINGROUPS_DESC", "چه گروه هایی به صفحه دسترسی ها و ابزار ها دسترسی داشته باشند"); // Group Access define('_NEWS_MI_GROUPS', 'دسترسی گروه ها'); define('_NEWS_MI_GROUPS_DESC', 'دسترسی سراسری گروه ها را مشخص کنید.'); // Urls define('_NEWS_MI_FRIENDLYURL', 'انتخاب آدرس کاربر پسند'); - define('_NEWS_MI_FRIENDLYURL_DESC', 'Select the URL rewrite mode you want to use.<ul> - <li>"Standard Mode": Module standard URL</li> - <li>"Rewrite Mode": you must use .htaccess file and edit .htaccess sample code if you change SEO / URL Rewrite options</li> - <li>"Short Rewrite": you can make URL whit out page id and module use alias for get page info. you must edit .htaccess, you can remove module name and Url extension and use Root base for have short URL</li></ul>'); + define('_NEWS_MI_FRIENDLYURL_DESC', 'انتخاب حالت نمایش لینک برای استفاده'); define('_NEWS_MI_URL_STANDARD', 'Standard Mode'); define('_NEWS_MI_URL_REWRITE', 'Rewrite Mode'); define('_NEWS_MI_URL_SHORT', 'Short Rewrite'); define('_NEWS_MI_URL_ID', 'ID Mode'); // Rewrite Mode define('_NEWS_MI_REWRITEBASE', 'آدرسی که به طور پایه قابل نوشتن است انتخاب کنید'); - define('_NEWS_MI_REWRITEBASE_DESC', '"Module base": شما باید یک .htacces در شاخه ماژول قرار دهید.<br />"Root base": شما باید یک .htacces در شاخه ROOT_PATH قرار دهید.'); - define('_NEWS_MI_REWRITEBASE_MODS', 'Module base'); - define('_NEWS_MI_REWRITEBASE_ROOT', 'Root base'); + define('_NEWS_MI_REWRITEBASE_DESC', '"برپایه ماژول": شما باید یک .htacces در شاخه ماژول قرار دهید.<br />"برپایه هسته": شما باید یک .htacces در شاخه ROOT_PATH قرار دهید.'); + define('_NEWS_MI_REWRITEBASE_MODS', 'برپایه ماژول'); + define('_NEWS_MI_REWRITEBASE_ROOT', 'برپایه هسته'); // Rewrite Name define('_NEWS_MI_REWRITENAME', 'نام ماژول در حالت دوباره نویسی شده'); define('_NEWS_MI_REWRITENAME_DESC', 'نام ماژول را در آدرس تولیدی انتخاب کنید (rewrite mode). اگر این نام را تغییر دهید باید فایل .htaccess را هم ویرایش کنید'); @@ -85,12 +82,6 @@ // Tell a friend define('_NEWS_MI_USETAG', 'استفاده از ماژول TAG برای تولید تگ ها'); define('_NEWS_MI_USETAG_DESC', 'برای استفاده از این گزینه باید ماژول TAG را نصب کرده باشید'); -// minimum length of single words - define('_NEWS_MI_MINWORDLENGHT', 'کلمات کلیدی'); - define('_NEWS_MI_MINWORDLENGHT_DESC', 'Choose the minimum length of single words'); -// minimum length of single words - define('_NEWS_MI_MINWORDOCCUR', 'توضیح متا'); - define('_NEWS_MI_MINWORDOCCUR_DESC', 'Choose the minimum occur of single words'); // Show options define('_NEWS_MI_DISP_OPTION', 'حالت نمایش'); define('_NEWS_MI_DISP_OPTION_DESC', 'حالت نمایش تنضیمات را انتخاب کنید. این حالت میتواند بر اساس تنظیمات در ویژگی های ماژول باشد یا تنظیمات برای هر شاخه'); @@ -140,13 +131,7 @@ define('_NEWS_MI_SHOWTYPE_2', 'حالت جدولی'); define('_NEWS_MI_SHOWTYPE_3', 'حالت تصویر'); define('_NEWS_MI_SHOWTYPE_4', 'حالت لیست'); - define('_NEWS_MI_SHOWTYPE_5', 'Spotlight'); -//Template - define('_NEWS_MI_TEMPLATE', 'الگو'); - define('_NEWS_MI_TEMPLATE_DESC', 'نوع الگو مورد استفاده را انتخاب کنید'); - define('_NEWS_MI_TEMPLATE_1', 'Legacy'); - define('_NEWS_MI_TEMPLATE_2', 'jQuery UI'); - define('_NEWS_MI_TEMPLATE_3', 'Html 5'); + define('_NEWS_MI_SHOWTYPE_5', 'اسپایت لایت'); // Show order define('_NEWS_MI_SHOWORDER', 'اولویت نمایشی'); define('_NEWS_MI_SHOWORDER_DESC', 'اولیت نمایش را در حالت صعودی یا نزولی انتخاب کنید'); @@ -155,13 +140,13 @@ // Show sort define('_NEWS_MI_SHOWSORT', 'مرتب کردن بر اساس نمایش'); define('_NEWS_MI_SHOWSORT_DESC', 'مرتب کردن بر اساس انتخاب نمایش'); - define('_NEWS_MI_SHOWSORT_1', 'content id'); - define('_NEWS_MI_SHOWSORT_2', 'content create'); - define('_NEWS_MI_SHOWSORT_3', 'content update'); - define('_NEWS_MI_SHOWSORT_4', 'content title'); - define('_NEWS_MI_SHOWSORT_5', 'content order'); + define('_NEWS_MI_SHOWSORT_1', 'Id'); + define('_NEWS_MI_SHOWSORT_2', 'Create'); + define('_NEWS_MI_SHOWSORT_3', 'Update'); + define('_NEWS_MI_SHOWSORT_4', 'Title'); + define('_NEWS_MI_SHOWSORT_5', 'Order'); define('_NEWS_MI_SHOWSORT_6', 'Random'); - define('_NEWS_MI_SHOWSORT_7', 'content Hits'); + define('_NEWS_MI_SHOWSORT_7', 'Hits'); // Admin page define('_NEWS_MI_ADMIN_PERPAGE', 'سند در هر صفحه'); define('_NEWS_MI_ADMIN_PERPAGE_DESC', 'تعداد اسناد در هر صفحه بخش مدیریت'); @@ -177,9 +162,9 @@ // Admin topic Show order define('_NEWS_MI_ADMIN_SHOWORDER_TOPIC', 'مرتب کردن بر اساس نمایش شاخه ها'); define('_NEWS_MI_ADMIN_SHOWORDER_TOPIC_DESC', 'اولیت نمایش را در حالت صعودی یا نزولی انتخاب کنید'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_1', 'topic id'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_2', 'topic weight'); - define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_3', 'topic created'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_1', 'Id'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_2', 'Order'); + define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_3', 'Created'); // Admin topic sort define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC', 'اولویت نمایشی شاخه ها'); define('_NEWS_MI_ADMIN_SHOWSORT_TOPIC_DESC', 'مرتب کردن بر اساس انتخاب نمایش'); @@ -228,14 +213,14 @@ define('_NEWS_MI_IMAGE_MAXWIDTH_DESC', 'بیشترین عرض در هنگام بارگذاری تصویر'); define('_NEWS_MI_IMAGE_MAXHEIGHT', 'بیشترین ارتفاع تصویر'); define('_NEWS_MI_IMAGE_MAXHEIGHT_DESC', 'بیشترین ارتفاع در هنگام بارگذاری تصویر'); - define('_NEWS_MI_IMAGE_MEDIUMWIDTH', 'Image medium width (pixel)'); - define('_NEWS_MI_IMAGE_MEDIUMWIDTH_DESC', 'Medium allowed width for image resize'); - define('_NEWS_MI_IMAGE_MEDIUMHEIGHT', 'Image medium height (pixel)'); - define('_NEWS_MI_IMAGE_MEDIUMHEIGHT_DESC', 'Medium allowed height for image resize'); - define('_NEWS_MI_IMAGE_THUMBWIDTH', 'Image thumb width (pixel)'); - define('_NEWS_MI_IMAGE_THUMBWIDTH_DESC', 'Thumb allowed width for image resize'); - define('_NEWS_MI_IMAGE_THUMBHEIGHT', 'Image thumb height (pixel)'); - define('_NEWS_MI_IMAGE_THUMBHEIGHT_DESC', 'Thumb allowed height for image resize'); + define('_NEWS_MI_IMAGE_MEDIUMWIDTH', 'عرض تصویر متوسط (پیکسل)'); + define('_NEWS_MI_IMAGE_MEDIUMWIDTH_DESC', 'حداکثر عرض مجاز تصویر متوسط بعد از تغییر اندازه'); + define('_NEWS_MI_IMAGE_MEDIUMHEIGHT', 'ارتفاع تصویر متوسط (پیکسل)'); + define('_NEWS_MI_IMAGE_MEDIUMHEIGHT_DESC', 'حداکثر ارتفاع مجاز تصویر متوسط بعد از تغییر اندازه'); + define('_NEWS_MI_IMAGE_THUMBWIDTH', 'عرض تصویر بند انگشتی (پیکسل)'); + define('_NEWS_MI_IMAGE_THUMBWIDTH_DESC', 'حداکثر عرض مجاز تصویر بند انگشتی بعد از تغییر اندازه'); + define('_NEWS_MI_IMAGE_THUMBHEIGHT', 'ارتفاع تصویر بند انگشتی (پیکسل)'); + define('_NEWS_MI_IMAGE_THUMBHEIGHT_DESC', 'حداکثر ارتفاع مجاز تصویر بند انگشتی بعد از تغییر اندازه'); define('_NEWS_MI_IMAGE_MIME', 'پسوند های مجاز برای بارگذاری'); define('_NEWS_MI_IMAGE_MIME_DESC', 'پسوند های مورد تایید را انتخاب کنید'); define('_NEWS_MI_IMAGE_WIDTH', 'عرض تصویر'); @@ -298,19 +283,19 @@ define('_NEWS_MI_SQL_NOT_VALID', 'پایگاه داده های SQL صحیح نیست'); define('_NEWS_MI_INSERT_DATA', ',وارد کردن اطلاعات'); // homepage - define('_NEWS_MI_HOMEPAGE', 'Homepage seting'); - define('_NEWS_MI_HOMEPAGE_DESC', 'Seting content show type in module index page'); - define('_NEWS_MI_HOMEPAGE_1', 'List all contents from all topics'); - define('_NEWS_MI_HOMEPAGE_2', 'List all topics'); - define('_NEWS_MI_HOMEPAGE_3', 'List all static pages'); - define('_NEWS_MI_HOMEPAGE_4', 'Show selected static content'); + define('_NEWS_MI_HOMEPAGE', 'تنظیمات صفحه اول'); + define('_NEWS_MI_HOMEPAGE_DESC', 'تنظیم نوع نمایش مطالب در صفحه اول'); + define('_NEWS_MI_HOMEPAGE_1', 'فهرست تمام اخبار از تمام شاخه ها'); + define('_NEWS_MI_HOMEPAGE_2', 'فهرست تمام شاخه ها'); + define('_NEWS_MI_HOMEPAGE_3', 'فهرست صفحات استاتیک'); + define('_NEWS_MI_HOMEPAGE_4', 'نمایش صفحه انتخاب شده'); // topic name define('_NEWS_MI_TOPICNAME', 'نام شاخه'); define('_NEWS_MI_TOPICNAME_DESC', 'انتخاب نام شاخه برای آدرس'); // related news - define('_NEWS_MI_RELATED', 'Related table'); - define('_NEWS_MI_RELATED_DESC', 'When you use this option, a summary containing links to all the recent published articles is visible at the bottom of each article'); - define('_NEWS_MI_RELATED_LIMIT', 'Related limit'); - define('_NEWS_MI_RELATED_LIMIT_DESC', 'Number of contents for show in Related table'); + define('_NEWS_MI_RELATED', 'اخبارمرتبط'); + define('_NEWS_MI_RELATED_DESC', 'وقتی شما این خبر را انتخاب کنید خلاصه ای از آخرین اخبار مشابه زیر هر خبر نمایش داده میشود.'); + define('_NEWS_MI_RELATED_LIMIT', 'تعداد اخبار مرتبط'); + define('_NEWS_MI_RELATED_LIMIT_DESC', 'تعداد مطلبی که در فهرست اخبار مرتبط نمایش داده میشود'); } ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/templates/admin/news_about.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/admin/news_about.html 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/templates/admin/news_about.html 2012-02-15 05:39:15 UTC (rev 8977) @@ -21,7 +21,7 @@ </form> </div> </div> - <div class="endline"></div> + <div class="clear"></div> </fieldset> <fieldset> <legend class="label"><{$smarty.const._NEWS_AM_ABOUT_MODULE_INFO}></legend> @@ -43,5 +43,5 @@ <div class="txtchangelog"><{$module_changelog}></div> </fieldset> </div> - <div class="endline"></div> + <div class="clear"></div> </div> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/templates/admin/news_header.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/admin/news_header.html 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/templates/admin/news_header.html 2012-02-15 05:39:15 UTC (rev 8977) @@ -8,11 +8,4 @@ </div> <div class="navigation" id="<{$navigation}>"><{$navtitle}></div> </div> - -<{if $news_tips}> -<div class="tips ui-corner-all"> - <img class="floatleft tooltip" src="<{xoAdminIcons tips.png}>" alt="<{$smarty.const._AM_SYSTEM_TIPS}>" title="<{$smarty.const._AM_SYSTEM_TIPS}>"/> - <div class="floatleft"><{$news_tips}></div> - <div class="clear"> </div> -</div> -<{/if}> \ No newline at end of file +<div class="clear"></div> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/xoops_version.php =================================================================== --- XoopsModules/fmcontent/branches/news/xoops_version.php 2012-02-15 02:08:07 UTC (rev 8976) +++ XoopsModules/fmcontent/branches/news/xoops_version.php 2012-02-15 05:39:15 UTC (rev 8977) @@ -304,15 +304,6 @@ 'valuetype' => 'text', 'options' => array(_NEWS_MI_HOMEPAGE_1 => 'type1', _NEWS_MI_HOMEPAGE_2 => 'type2', _NEWS_MI_HOMEPAGE_3 => 'type3', _NEWS_MI_HOMEPAGE_4 => 'type4'), 'default' => 'type1'); - -$modversion['config'][] = array( - 'name' => 'template', - 'title' => '_NEWS_MI_TEMPLATE', - 'description' => '_NEWS_MI_TEMPLATE_DESC', - 'formtype' => 'select', - 'valuetype' => 'text', - 'options' => array(_NEWS_MI_TEMPLATE_1 => 'legacy', _NEWS_MI_TEMPLATE_2 => 'ui', _NEWS_MI_TEMPLATE_3 => 'html5'), - 'default' => 'legacy'); $modversion['config'][] = array( 'name' => 'showtype', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-02-15 02:08:19
|
Revision: 8976 http://xoops.svn.sourceforge.net/xoops/?rev=8976&view=rev Author: wishcraft Date: 2012-02-15 02:08:07 +0000 (Wed, 15 Feb 2012) Log Message: ----------- * Duplicate Meta Entries Fix (Abridged on Trabis Forum Solution) - class/theme.php * exit(0); missing preloader call before calling exit - header.php * Date problem work around definition of XOBJ_DTYPE_DATE for passing date to date field type in MySQL, Postgres, MSSQL and other DB Platforms. * Time problem work around definition of XOBJ_DTYPE_TIME for passing date to date field type in MySQL, Postgres, MSSQL and other DB Platforms. * Timestamp problem work around definition of XOBJ_DTYPE_TIMESTAMP for passing timestamp to timestamp field type in MySQL, Postgres, MSSQL and other DB Platforms. * 0.25 ADOdb Implementation and installation replacing 1996 database classes * Better Statistical model for XoopsPersistableObjectHandler * Implementation of Query File Cache on all read instances of XoopsPersistableObjectHandler * Implementation of all Database System supporting MySQL SQL92 Queries (Postgres/Mysql) Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/database.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/databasefactory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlutility.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/joint.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/read.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/stats.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado5_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado_access_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ado_mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-active-record.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-active-recordx.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-csvlib.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-datadict.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-error.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-errorhandler.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-errorpear.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-exceptions.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-iterator.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-lib.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-memcache.lib.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-pager.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-pear.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-perf.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-php4.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-time.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-xmlschema.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb-xmlschema03.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/adodb.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/contrib/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/contrib/toxmlrpc.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-access.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-db2.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-firebird.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-generic.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-ibase.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-informix.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-mssql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-mssqlnative.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-mysql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-oci8.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-postgres.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-sapdb.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-sqlite.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/datadict/datadict-sybase.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-access.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ado.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ado5.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ado_access.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ado_mssql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ads.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-borland_ibase.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-csv.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-db2.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-db2oci.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-db2ora.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-fbsql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-firebird.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ibase.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-informix.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-informix72.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-ldap.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mssql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mssql_n.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mssqlnative.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mssqlpo.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mysql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mysqli.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mysqlpo.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-mysqlt.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-netezza.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-oci8.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-oci805.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-oci8po.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-odbc.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-odbc_db2.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-odbc_mssql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-odbc_oracle.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-odbtp.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-odbtp_unicode.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-oracle.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-pdo.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-pdo_mssql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-pdo_mysql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-pdo_oci.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-pdo_pgsql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-pdo_sqlite.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-postgres.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-postgres64.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-postgres7.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-postgres8.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-proxy.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-sapdb.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-sqlanywhere.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-sqlite.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-sqlitepo.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-sybase.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-sybase_ase.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/drivers/adodb-vfp.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-ar.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-bg.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-bgutf8.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-ca.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-cn.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-cz.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-da.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-de.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-en.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-es.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-esperanto.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-fa.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-fr.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-hu.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-it.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-nl.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-pl.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-pt-br.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-ro.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-ru1251.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-sv.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb-uk1251.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/lang/adodb_th.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/license.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/pear/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/pear/Auth/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/pear/Auth/Container/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/pear/Auth/Container/ADOdb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/pear/readme.Auth.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-db2.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-informix.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-mssql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-mssqlnative.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-mysql.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-oci8.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/perf/perf-postgres.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/pivottable.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/rsfilter.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/server.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/toexport.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/tohtml.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xmlschema.dtd XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xmlschema03.dtd XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/convert-0.1-0.2.xsl XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/convert-0.1-0.3.xsl XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/convert-0.2-0.1.xsl XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/convert-0.2-0.3.xsl XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/remove-0.2.xsl XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/adodb/xsl/remove-0.3.xsl XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ads_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/borland_ibase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/csv_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/db2_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/db2oci_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/fbsql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/firebird_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ibase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/informix72_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/informix_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/ldap_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssql_n_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssqlnative_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mssqlpo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqli_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqlpo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqlt_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/netezza_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oci805_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oci8_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oci8po_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_db2_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbc_oracle_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbtp_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/odbtp_unicode_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/oracle_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ado.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ado5.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ado_access.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ado_mssql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ads.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/borland_ibase.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/csv.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/db2.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/db2oci.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/firebird.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ibase.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/informix.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/informix72.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/ldap.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mssql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mssql_n.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mssqlnative.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mssqlpo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mysql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mysqli.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mysqlpo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/mysqlt.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/netezza.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/oci8.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/oci805.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/oci8po.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/odbc_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/odbc_db2.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/odbc_mssql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/odbc_oracle.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/odbtp.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/odbtp_unicode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/oracle.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pdo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pdo_mssql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pdo_mysql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pdo_oci.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pdo_pgsql.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pdo_sqlite.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/pivot.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/postgres.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/postgres7.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/postgres8.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/proxy.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/sapdb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/sqlanywhere.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/sqlite.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/sqlitepo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/sybase.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/sybase_ase.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo/vfp.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_mssql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_mysql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_oci_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_pgsql_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/pdo_sqlite_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/postgres7_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/postgres8_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/postgres_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/proxy_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sapdb_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlanywhere_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlite_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sqlitepo_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sybase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/sybase_ase_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/vfp_adodb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqli.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlpo.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/mysqlt.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_mysql.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/pdo_pgsql.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres7.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/postgres8.lang.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqli.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlpo.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlt.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysqlt.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_mysql.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_mysql.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_pgsql.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/pdo_pgsql.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres7.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres7.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres8.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/postgres8.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_data/caches/adodb_cache/ Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqldatabase.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/access_adodb.php 2012-02-15 02:08:07 UTC (rev 8976) @@ -0,0 +1,1774 @@ +<?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. +*/ + +/** + * Factory Class for Xoops Database + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package kernel + * @subpackage database + * @since 2.6.0 + * @author Kazumi Ono <on...@xo...> + * @author Simon Roberts <si...@xo...> + * @version $Id$ + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * + * @package kernel + * @subpackage database + * @author Kazumi Ono <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + +/** + * base class + */ +include_once XOOPS_ROOT_PATH . '/class/database/database.php'; +include_once XOOPS_ROOT_PATH . '/class/database/adodb/adodb.inc.php'; +include_once XOOPS_ROOT_PATH . '/class/database/pdo/'.XOOPS_DB_TYPE.'.php'; + +// xoops_load( 'xoopsdatabase' ); +/** + * connection to a mysql database + * + * @abstrac + * @author Kazumi Ono <on...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + * @package kernel + * @subpackage database + */ +class XoopsAccess_ADODBDatabase extends XoopsDatabase +{ + /** + * Database connection + * + * @var resource + */ + var $conn; + + /** + * connect to the database + * + * @param bool $selectdb select the database now? + * @return bool successful? + */ + public function connect($selectdb = true) + { + static $db_charset_set;$this->allowWebChanges = ($_SERVER['REQUEST_METHOD'] != 'GET'); + + // This is a global variable that determines how arrays are retrieved by recordsets. The recordset saves this value on creation (eg.// + // in Execute( ) or SelectLimit( )), and any subsequent changes to $ADODB_FETCH_MODE have no affect on existing recordsets, only on + // recordsets created in the future + $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; // Options: ADODB_FETCH_DEFAULT, ADODB_FETCH_NUM, ADODB_FETCH_ASSOC, ADODB_FETCH_BOTH + + // If you are using recordset caching, this is the directory to save your recordsets in. Define this before you call any caching + // public functions such as CacheExecute( ). We recommend setting register_globals=off in php.ini if you use this feature for security reasons. + $ADODB_CACHE_DIR = XOOPS_VAR_PATH . DIRECTORY_SEPARATOR . 'caches'. DIRECTORY_SEPARATOR .'adodb_cache'; + + + // If the database driver API does not support counting the number of records returned in a SELECT statement, the public function RecordCount() + // is emulated when the global variable $ADODB_COUNTRECS is set to true, which is the default. We emulate this by buffering the records, + // which can take up large amounts of memory for big recordsets. Set this variable to false for the best performance. This variable is + // checked every time a query is executed, so you can selectively choose which recordsets to count. + $ADODB_COUNTRECS = true; + + //Determines the language used in MetaErrorMsg(). The default is 'en', for English. To find out what languages are supported, see the + // files in adodb/lang/adodb-$lang.inc.php, where $lang is the supported language. + $ADODB_LANG = 'en'; + + // Determines whether to right trim CHAR fields (and also VARCHAR for ibase/firebird). Set to true to trim. Default is false. + // Currently works for oci8po, ibase and firebird drivers. + $ADODB_ANSI_PADDING_OFF = true; + + + $this->conn = @NewADOConnection(XOOPS_DB_DSN); + $this->conn->setFetchMode($ADODB_FETCH_MODE); + + + if (!$this->conn) { + $this->logger->addQuery('', $this->error(), $this->errno()); + return false; + } + } + + /** + * check if connected to a database + * + * @return true if connected to database + */ + public function isConnected() + { + return @$this->conn->IsConnected(); // will use auto_increment + } + + /** + * execute a sql question to the database + * + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @param $inputarr parameter can be used for binding variables to parameters + * @return ADORecordset Objects + */ + public function execute($sql, $inputarr=false) + { + return @$this->conn->Execute($sql, $inputarr); // will use auto_increment + } + + /** + * Similar to Execute, except that the recordset is cached for $secs2cache seconds + * + * @param $secs2cache the recordset is cached for $secs2cache seconds + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @param $inputarr parameter can be used for binding variables to parameters + * @return ADODBRecordset Object from cache + */ + public function executeCache($secs2cache,$sql,$inputarr=false) + { + return @$this->conn->CacheExecute($secs2cache,$sql,$inputarr); + } + + /** + * Execute an Oracle stored procedure, and returns an Oracle REF cursor variable as a regular ADOdb recordset + * + * @param $cursorName Oracle REF cursor variable as a regular ADOdb recordset + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @param $parameters parameter can be used for binding variables to parameters + * @returntrue if connected to database + */ + public function executeCursor($sql,$cursorName='rs',$parameters=false) + { + if (XOOPS_DB_TYPE!='oci8_adodb') + trigger_error('ADODB: Function not supported by database type! Function: '.__FUNC__.'; Class: '.__CLASS__); + else + return @$this->conn->ExecuteCursor($sql,$cursorName,$parameters); + } + + /** + * Returns a recordset if successful. Returns false otherwise. Performs a select statement. + * + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @param $numrows number of rows to return + * @param $offset offset in record count to load from. + * @param $inputarr parameter can be used for binding variables to parameters + * @return ADORecordset Object + */ + public function fetchSelectLimit($sql,$numrows=-1,$offset=-1,$inputarr=false) + { + return @$this->conn->SelectLimit($sql,$numrows,$offset,$inputarr); + } + + /** + * Similar to SelectLimit, except that the recordset returned is cached for $secs2cache seconds + * + * @param $secs2cache the recordset is cached for $secs2cache seconds + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @param $numrows number of rows to return + * @param $offset offset in record count to load from. + * @param $inputarr parameter can be used for binding variables to parameters + * @return true if connected to database + */ + public function fetchCacheSelectLimit($secs2cache, $sql, $numrows=-1,$offset=-1,$inputarr=false) + { + return @$this->conn->CacheSelectLimit($secs2cache, $sql, $numrows,$offset,$inputarr); + } + + /** + * Flush (delete) any cached recordsets for the SQL statement $sql in $ADODB_CACHE_DIR + * + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @returntrue if connected to database + */ + public function flushCache($sql=false) + { + return @$this->conn->CacheFlush($sql); + } + + /** + * Prepares (compiles) an SQL query for repeated execution. Bind parameters are denoted by ? + * except for the oci8 driver, which uses the traditional Oracle :varname convention. + * + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @returntrue if connected to database + */ + public function getPrepare($sql) + { + return @$this->conn->Prepare($sql); + } + + /** + * hen calling stored procedures in mssql and oci8 (oracle), and you might want to directly bind to parameters + * except for the oci8 driver, which uses the traditional Oracle :varname convention. + * + * @param $cursor Oracle REF cursor variable as a regular ADOdb recordset + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @returntrue if connected to database + */ + public function getPrepareSP($sql, $cursor=false) + { + return @$this->conn->Prepare($sql); + } + + /** + * Binds a PHP variable as input to a stored procedure variable. + * + * @param $stmt is the value returned by PrepareSP() + * @param $var is the PHP variable you want to bind + * @param $name is the name of the stored + * @param $maxLen the maximum length of the data to bind + * @param $type which is database dependant + * @returntrue if connected to database + */ + public function setInParameter($stmt, $var, $name, $maxLen = 4000, $type = false ) + { + return @$this->conn->InParameter($stmt, $var, $name, $maxLen, $type); + } + + /** + * Binds a PHP variable as output from a stored procedure variable. + * + * @param $stmt is the value returned by PrepareSP() + * @param $var is the PHP variable you want to bind + * @param $name is the name of the stored + * @param $maxLen the maximum length of the data to bind + * @param $type which is database dependant + * @returntrue if connected to database + */ + public function setOutParameter($stmt, $var, $name, $maxLen = 4000, $type = false ) + { + return @$this->conn->OutParameter($stmt, $var, $name, $maxLen, $type); + } + + /** + * Binds a PHP variable as output from a stored procedure variable. + * + * @param $stmt is the value returned by PrepareSP() + * @param $var is the PHP variable you want to bind + * @param $name is the name of the stored + * @param $isOutput Indicates direction of parameter 0/false=IN 1=OUT 2= IN/OUT + * @param $maxLen the maximum length of the data to bind + * @param $type which is database dependant + * @returntrue if connected to database + */ + public function setParameter($stmt, $var, $name, $isOutput=false, $maxLen = 4000, $type = false ) + { + trigger_error('ADODB: This public function is deprecated. Use InParameter( ) and OutParameter( ) instead. - Function: '.__FUNC__.'; Class='.__CLASS__); + return @$this->conn->Parameter($stmt, $var, $name, $isOutput, $maxLen, $types); + } + + /** + * Generates a bind placeholder portably. + * For most databases, the bind placeholder is "?" + * + * @param $name string to be encoded as parameter binding + * @return string portably define an SQL statement with bind parameters + */ + public function setParam($name) + { + return @$this->conn->Param($name); + } + + /** + * Executes the SQL and returns the first field of the first row + * + * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful + * @return string the first field of the first rowe + */ + public function getOne($sql) + { + return @$this->conn->GetOne($sql); + } + + /** + * Returns an associative array for the given query $sql with optional bind parameters in $inputarr + * + * @param $sql query + * @param $inputarr optional bind parameters + * @param $force_array is set to true, when an array is created for each value + * @param $first2cols Indicates direction of parameter + * @return array an associative array for the given query + */ + public function getAssoc($sql,$inputarr=false,$force_array=false,$first2cols=false) + { + return @$this->conn->GetAssoc($sql,$inputarr,$force_array,$first2cols); + } + + /** + * Caching version of GetAssoc public function above + * + * @param $secs2cache the recordset is cached for $secs2cache seconds + * @param $sql query + * @param $inputarr optional bind parameters + * @param $force_array is set to true, when an array is created for each value + * @param $first2cols Indicates direction of parameter + * @return array an associative array for the given query + */ + public function getCacheAssoc($secs2cache,$sql,$inputarr=false,$force_array=false,$first2cols=false) + { + return @$this->conn->GetAssoc($sql,$inputarr,$force_array,$first2cols); + } + + + /** + * Returns the median value of $field for $table + * + * @param $table table name to get median from + * @param $field field in table to get median from + * @param $where The $where clause is optional. If used, make sure the WHERE is included, as in "WHERE name > 'A'" + * @return string the median value of $field for $table + */ + public function getMedian($table, $field, $where='') + { + return @$this->conn->GetMedian($table, $field, $where); + } + + /** + * Executes the SQL and returns the first row as an array + * + * @param $sql query + * @return array First row as an array + */ + public function getRow($sql) + { + return @$this->conn->GetRow($sql); + } + + /** + * Executes the SQL and returns the first row as an array, <br /> + * except that the recordset is serialized and cached + * + * @param integer $secs2cache number of seconds to cache for + * @param string $sql query + * @return array First row as an array + */ + public function getCacheRow($secs2cache, $sql) + { + return @$this->conn->CacheGetRow($secs2cache, $sql); + } + + /** + * Executes the SQL and returns the all the rows as a 2-dimensional array + * The recordset is discarded for you automatically + * + * @param string $sql query + * @param array $inputarr parameters to bind to sql query + * @return array he all the rows as a 2-dimensional array + */ + public function getAll($sql,$inputarr=false) + { + return @$this->conn->GetAll($sql,$inputarr); // will use auto_increment + } + + /** + * Executes the SQL and returns the all the rows as a 2-dimensional array + * Similar to above GetAll public functions, except that the recordset is serialized and cached + * + * @param array $secs2cache seconds to cache query + * @param string $sql query + * @returntrue if connected to database + */ + public function getCacheAll($secs2cache, $sql) + { + return @$this->conn->CacheGetAll($secs2cache, $sql); + } + + /** + * Executes the SQL and returns all elements of the first column as a 1-dimensional array + * + * @param string $sql query + * @return array all elements of the first column as a 1-dimensional array + */ + public function fetchGetCol($sql) + { + return @$this->conn->GetCol($sql); + } + + /** + * Executes the SQL and returns all elements of the first column as a 1-dimensional array + * Similar to above GetCol public functions, except that the recordset is serialized and cached + * + * @param array $secs2cache seconds to cache query + * @param string $sql query + * @return array all elements of the first column as a 1-dimensional array + */ + public function fetchCacheGetCol($secs2cache, $sql) + { + return @$this->conn->CacheGetCol($secs2cache, $sql); + } + + /** + * Try to update a record, and if the record is not found, an insert statement is generated and executed + * + * @param string $table which is the table name + * @param array $arrFields which is an associative array where the keys are the field names + * @param array $keyCols is the name of the primary key, or an array of field names if it is a compound key + * @param boolean $autoQuote will quote all values that are non-numeric; auto-quoting will not quote nullss + * @return integer Try to update a record, and if the record is not found, an insert statement is generated and executed + */ + public function setReplace($table, $arrFields, $keyCols,$autoQuote=false) + { + return @$this->conn->Replace($table, $arrFields, $keyCols,$autoQuote); + } + + /** + * AutoExecute() inserts or updates $table given an array of $arrField. + * + * @param string $table which is the table name. + * @param array $arrFields which is an associative array where the keys are the field names. + * @param array $mode is enumerator either DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE. + * @param string $where clause is required if $mode == 'UPDATE'. + * @param boolean $forceUpdate false then we will query the database first and check if the field value returned by <br /> + the query matches the current field value. + * @param boolean $magicq is used to indicate whether magic quotes are enabled + * @returntrue if connected to database + */ + public function setAutoExecute($table, $arrFields, $mode, $where=false, $forceUpdate=true,$magicq=false) + { + return @$this->conn->AutoExecute($table, $arrFields, $mode, $where, $forceUpdate,$magicq); + } + + /** + * Generate SQL to update a table given a recordset $rs, and the modified fields of the array $arrFields + * (which must be an associative array holding the column names and the new values).s + * + * @param object $rs ADORecordset Object + * @param array $arrFields modified fields of the array. + * @param boolean $forceUpdate is true, then we also generate the SQL even if $arrFields is identical to $rs->fields. + * @param boolean $magicq is used to indicate whether magic quotes are enabled. + * @param boolean $forcenulls is used to indicate whether NULLS are forced with the update. + * @return string Update SQL Query/Question + */ + public function getUpdateSQL(&$rs, $arrFields, $forceUpdate=false,$magicq=false,$forcenulls=false) + { + return @$this->conn->GetUpdateSQL($rs, $arrFields, $forceUpdate,$magicq,$forcenulls); + } + + /** + * Generate SQL to insert into a table given a recordset $rs. Requires the query to be associative. + * + * @param object $rs ADORecordset Object + * @param array $arrFields modified fields of the array. + * @param boolean $magicq is used to indicate whether magic quotes are enabled. + * @param boolean $forcenulls is used to indicate whether NULLS are forced with the update. + * @return string Update SQL Query/Question + */ + public function getInsertSQL(&$rs, $arrFields,$magicq=false,$forcenulls=false) + { + return @$this->conn->GetInsertSQL($rs, $arrFields, $magicq,$forcenulls); + } + + /** + * Allows you to store a blob (in $val) into $table into $column in a row at $where + * + * @param string $table Table in database for blob + * @param string $column Column in table in database for blob. + * @param string $val Value to set blob. + * @param string $where SQL Where clause include ie. WHERE 1=1. + * @return boolean true if successful, false otherwise + */ + public function setUpdateBlob($table, $column, $val, $where) + { + return @$this->conn->UpdateBlob($table, $column, $val, $where); + } + + /** + * Allows you to store a clob (in $val) into $table into $column in a row at $where. + * Similar to UpdateBlob (see above), but for Character Large OBjects + * + * @param string $table Table in database for blob + * @param string $column Column in table in database for blob. + * @param string $val Value to set blob. + * @param string $where SQL Where clause include ie. WHERE 1=1. + * @return boolean true if successful, false otherwise + */ + public function setUpdateClob($table,$column,$val,$where) + { + return @$this->conn->UpdateClob($table,$column,$val,$where); + } + + /** + * Allows you to store a blob (in $val) into $table into $column in a row at $where + * Similar to UpdateBlob, except that we pass in a file path to where the blob resides. + * + * @param string $table Table in database for blob + * @param string $column Column in table in database for blob. + * @param string $path Real Path of the Blob to be put in the database. + * @param string $where SQL Where clause include ie. WHERE 1=1. + * @param enum $blobtype Type field for blob default ie. BLOB. + * @return boolean true if successful, false otherwise + */ + public function setUpdateBlobFile($table,$column,$path,$where,$blobtype='BLOB') + { + return @$this->conn->UpdateBlobFile($table,$column,$path,$where,$blobtype); + } + + + /** + * Some databases require blob's to be encoded manually before uploading + * + * @param string $blob data to be encoded. + * @return string the encoded blob value + */ + public function getBlobEncode($blob) + { + return @$this->conn->BlobEncode($blob); + } + + /** + * Some databases require blob's to be decoded manually after doing a select statement + * + * @param string $blob data to be encoded. + * @param integer $maxblobsize The default maxblobsize is set in $connection->maxblobsize, which is set to 256K. + * @return string the decoded blob value + */ + public function getBlobDecode($blob, $maxblobsize=false) + { + return @$this->conn->BlobDecode($blob,$maxblobsize); + } + + /** + * Used for pagination of recordset. $page is 1-based + * + * @param string $sql data to be encoded. + * @param integer $nrows Number of rows per page + * @param integer $page Page Number on. + * @param array $inputarr Variable to bind to the SQL statement (optional) + * @return string the decoded blob value + */ + public function fetchPageExecute($sql, $nrows, $page, $inputarr=false) + { + return @$this->conn->PageExecute($sql, $nrows, $page, $inputarr); + } + + /** + * Used for pagination of recordset. $page is 1-based + * Caching version of PageExecute + * + * @param integer $secs2cache Seconds to hold in cache + * @param string $sql data to be encoded. + * @param integer $nrows Number of rows per page + * @param integer $page Page Number on. + * @param array $inputarr Variable to bind to the SQL statement (optional) + * @return string the decoded blob value + */ + public function fetchCachePageExecute($secs2cache, $sql, $nrows, $page, $inputarr=false) + { + return @$this->conn->CachePageExecute($secs2cache, $sql, $nrows, $page, $inputarr); + } + + /** + * Start a monitored transaction. As SQL statements are executed, ADOdb will monitor for SQL errors, + * and if any are detected, when CompleteTrans() is called, we auto-rollback. + * + * @return boolean true if successful. + */ + public function setStartTrans() + { + return @$this->conn->StartTrans(); + } + + /** + * Start a monitored transaction. As SQL statements are executed, ADOdb will monitor for SQL errors, + * and if any are detected, when CompleteTrans() is called, we auto-rollback. + * + * @return boolean true if successful. + */ + public function setBeginTrans() + { + return @$this->conn->BeginTrans(); + } + + + /** + * Complete a transaction called with StartTrans() + * This public function monitors for SQL errors, and will commit if no errors have occured, otherwise it will rollback. + * + * @param boolean $autoComplete is true monitor sql errors and commit and rollback as appropriate + * @return boolean true on commit, false on rollback + */ + public function setCompleteTrans($autoComplete=true) + { + return @$this->conn->CompleteTrans($autoComplete); + } + + /** + * Fail a transaction started with StartTrans(). The rollback will only occur when CompleteTrans() is called + * + * @return boolean true + */ + public function isFailTrans() + { + return @$this->conn->FailTrans(); + } + + /** + * Check whether smart transaction has failed, eg. returns true if SQL execution failed, or FailTrans() was called. + * + * @return boolean true + */ + public function hasFailedTrans() + { + return @$this->conn->HasFailedTrans(); + } + + /** + * SetTransactionMode allows you to pass in the transaction mode to use for all subsequent transactions for that connection session + * + * @param enum $mode Supported values: READ UNCOMMITTED; READ COMMITTED; REPEATABLE READ; SERIALIZABLE; (oci8) SNAPSHOT; READ ONLY. + * @return string the decoded blob value + */ + public function setTransactionMode($mode ) + { + return @$this->conn->SetTransactionMode($mode); + } + + /** + * End a transaction successfully + * + * @param boolean $ok you pass the parameter false, the data is rolled back. . + * @return boolean will return true also as data is always committed. + */ + public function setCommitTrans($ok=true) + { + return @$this->conn->CommitTrans($ok); + } + + /** + * End a transaction, rollback all changes + * + * @param boolean $ok you pass the parameter false, the data is rolled back. . + * @return boolean true if successful. If the database does not support transactions, will return false as data is never rollbacked. + */ + public function setRollbackTrans($ok=true) + { + return @$this->conn->RollbackTrans($ok); + } + + /** + * Sets the current fetch mode for the connection and stores. + * + * @param enum $mode Legal modes are ADODB_FETCH_ASSOC and ADODB_FETCH_NUM. + * @return string the decoded blob value + */ + public function setFetchMode($mode) + { + return @$this->conn->SetFetchMode($mode); + } + + /** + * Generates the sql string used to concatenate $sa, $sb, etc together + * + * @param string $sa string to concatinate. (required) + * @param string $sb string to concatinate. (required) + * @param string $sc string to concatinate. (optional) + * @param string $sd string to concatinate. (optional) + * @param string $se string to concatinate. (optional) + * @param string $sf string to concatinate. (optional) + * @param string $sg string to concatinate. (optional) + * @param string $sh string to concatinate. (optional) + * @param string $si string to concatinate. (optional) + * @param string $sj string to concatinate. (optional) + * @param string $sk string to concatinate. (optional) + * @param string $sl string to concatinate. (optional) + * @param string $sm string to concatinate. (optional) + * @param string $sn string to concatinate. (optional) + * @param string $so string to concatinate. (optional) + * @param string $sp string to concatinate. (optional) + * @param string $sq string to concatinate. (optional) + * @param string $sr string to concatinate. (optional) + * @param string $ss string to concatinate. (optional) + * @param string $st string to concatinate. (optional) + * @param string $su string to concatinate. (optional) + * @param string $sv string to concatinate. (optional) + * @param string $sw string to concatinate. (optional) + * @param string $sx string to concatinate. (optional) + * @param string $sy string to concatinate. (optional) + * @param string $sz string to concatinate. (optional) + * @return string the concatenated string + */ + public function getConcat($sa, $sb, $sc, $sd, $se, $sf, $sg, $sh, $si, $sj, $sk, $sl, $sm, $sn, $so, $sp, $sq, $sr, $ss, $st, $su, $sv, $sw, $sx, $sy, $sz) + { + return @$this->conn->Concat($sa, $sb, $sc, $sd, $se, $sf, $sg, $sh, $si, $sj, $sk, $sl, $sm, $sn, $so, $sp, $sq, $sr, $ss, $st, $su, $sv, $sw, $sx, $sy, $sz); + } + + /** + * Portable IFNULL public function (NVL in Oracle). + * + * Example + * $sql = 'SELECT '.$GLOBALS['xoopsDB']->conn->IfNull('name', "'- unknown -'"). ' FROM table'; + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); + * + * @param string $field data to be encoded. + * @param string $nullReplacementValue Replace NULL with this value. + * @return string a string that represents the public function that checks whether a $field is null for the given database, and if null, change the value returned to $nullReplacementValue. + */ + public function setIfNull($field, $nullReplacementValue) + { + return @$this->conn->IfNull($field, $nullReplacementValue); + } + + /** + * This is not a public function, but a property + * Some databases have "length" and others "len" as the public function to measure the length of a string + * + * Example + * $sql = "SELECT ".$GLOBALS['xoopsDB']->conn->length()."(field) from table + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); + * + * @return integer public function to measure the length of a string + */ + public function getLength() + { + return @$this->conn->length; + } + + /** + * This is not a public function, but a property. This is a string that holds the sql to generate a random number + * + * @return float between 0.0 and 1.0 inclusive + */ + public function getRandom() + { + return @$this->conn->random; + } + + /** + * This is not a public function, but a property + * Some databases have "substr" and others "substring" as the public function to retrieve a sub-string. + * the 1st parameter of substr is the field, the 2nd is the offset (1-based) to the beginning of + * the sub-string, and the 3rd is the length of the sub-string + * + * Example + * $sql = "SELECT ".$GLOBALS['xoopsDB']->conn->substr."(field, $offset, $length) from table"; + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); + * + * @return string parameter for substr for $this->Execute + */ + public function getSubstr() + { + return @$this->conn->substr; + } + + /** + * Format the $date in the format the database accepts. + * + * Example + * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->DBDate("$year-$month-$day") + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); + * + * @param string $date date string in format of $year-$month-$day + * @return string the date as a quoted string + */ + public function fetchDBDate($date) + { + return @$this->conn->DBDate($date); + } + + /** + * Format the $date in the bind format the database accepts. + * Normally this means that the date string is not quoted, unlike DBDate, which quotes the string. + * + * Example + * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->Param('0') + * OR $sql = "select * from atable where created > ?"; + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql,array($GLOBALS['xoopsDB']->conn->BindDate("$year-$month-$day")); + * + * @param string $date date string in format of $year-$month-$day + * @return string the date as a quoted string + */ + public function fetchBindDate($date) + { + return @$this->conn->BindDate($date); + } + + /** + * Format the timestamp $ts in the format the database accepts; this can be a Unix integer timestamp or an ISO format Y-m-d H:i:s. + * + * Example + * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->DBTimeStamp("$year-$month-$day $hr:$min:$secs") + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql); + * + * @param string/integer $ts time & date in the format the database accepts; this can be a Unix integer timestamp or an ISO format Y-m-d H:i:s. + * @return string the timestamp as a quoted string. + */ + public function fetchDBTimeStamp($ts) + { + return @$this->conn->DBTimeStamp($ts); + } + + + /** + * Format the $date in the bind format the database accepts. + * Normally this means that the date string is not quoted, unlike DBDate, which quotes the string. + * + * Example + * $sql = "select * from atable where created > ".$GLOBALS['xoopsDB']->conn->Param('0') + * OR $sql = "select * from atable where created > ?"; + * $rs = $GLOBALS['xoopsDB']->conn->Execute($sql,array($GLOBALS['xoopsDB']->conn->BindTimeStamp("$year-$month-$day $hr:$min:$secs")); + * + * @param string/integer $ts time & date in the format the database accepts; this can be a Unix integer timestamp or an ISO format Y-m-d H:i:s. + * @return string the date as a quoted string + */ + public function fetchBindTimeStamp($ts) + { + return @$this->conn->BindTimeStamp($ts); + } + + + + /** + * Parses the date string $str and returns it in unix mktime format + * Expects the date to be in Y-m-d H:i:s format, except for Sybase and Microsoft SQL Server, + * where M d Y is also accepted + * + * @param string $str the date string. + * @return intger UNIX Time Stamp + */ + public function fetchUnixDate($str) + { + return @$this->conn->UnixDate($str); + } + + /** + * Parses the timestamp string $str and returns it in unix mktime format + * + * @param string $str the date string - Expects the date to to be in "Y-m-d, H:i:s" (1970-12-24, 00:00:00) <br /> + * or "Y-m-d H:i:s" (1970-12-24 00:00:00) + * or "YmdHis" (19701225000000) format, + * except for Sybase and Microsoft SQL Server, + * where "M d Y h:i:sA" (Dec 25 1970 00:00:00AM) + * @return intger UNIX Time Stamp + */ + public function fetchUnixTimeStamp($str) + { + return @$this->conn->UnixTimeStamp($str); + } + + /** + * Allows you to calculate future and past dates based on $basedate in a portable fashion. + * + * Example; + * # get date one week from now + * $fld = $GLOBALS['xoopsDB']->conn->OffsetDate(7); // returns "(trunc(sysdate)+7") + * + * # get date and time that is 60 hours from current date and time + * $fld = $GLOBALS['xoopsDB']->conn->OffsetDate(2.5, $GLOBALS['xoopsDB']->conn->sysTimeStamp); // returns "(sysdate+2.5)" + * + * @param decimal $dayFraction Rounding Decimal Point of the Number if Days in Fractions. + * @param integer $basedate If not defined, then the current date (at 12 midnight) is used. + * @return string the decoded blob value + */ + public function fetchOffsetDate($dayFraction, $basedate=false) + { + return @$this->conn->OffsetDate($dayFraction, $basedate); + } + + /** + * Returns a string which contains the native SQL public functions to format a date + * + * For example to display total cost of goods sold broken by quarter; + * $sqlfn = $GLOBALS['xoopsDB']->conn->SQLDate('Y-QQ','postdate'); # get sql that formats postdate to output 2002-Q1 + * $sql = "SELECT $sqlfn,SUM(cogs) FROM table GROUP BY $sqlfn ORDER BY 1 desc"; + * + * @param string $dateFormat It uses a date formating string, which supports:. + * Y: 4-digit Year + * Q: Quarter (1-4) + * M: Month (Jan-Dec) + * m: Month (01-12) + * d: Day (01-31) + * H: Hour (00-23) + * h: Hour (1-12) + * i: Minute (00-59) + * s: Second (00-60) + * w: day of week (0-6 or 1-7 depending on DB) + * l: day of week (as string - lowercase L) + * W: week in year (0..53 for MySQL, 1..53 for PostgreSQL and Oracle) + * A: AM/PM indicator + * @param integer $basedate If not defined, then the current date (at 12 midnight) is used. + * @return string the encoded date string based on formating. + */ + public function fetchSQLDate($dateFormat, $basedate=false) + { + return @$this->conn->SQLDate($dateFormat, $basedate); + } + + /** + * Lock a table row for the duration of a transaction + * + * For example to lock record $id in table1; + * $GLOBALS['xoopsDB']->conn->StartTrans(); + * $GLOBALS['xoopsDB']->conn->RowLock("table1","rowid=$id"); + * $GLOBALS['xoopsDB']->conn->Execute($sql1); + * $GLOBALS['xoopsDB']->conn->Execute($sql2); + * $GLOBALS['xoopsDB']->conn->CompleteTrans(); + * + * @param string $table table where lockin is to occure. + * @param string $where where clause for lockin of table. + * @return boolean true on successful. + */ + public function setRowLock($table,$where) + { + return @$this->conn->RowLock($table,$where); + } + + /** + * generate an ID for a new row + * + * This is for compatibility only. Will always return 0, because MySQL supports + * autoincrement for primary keys. + * + * @param string $sequence name of the sequence from which to get the next ID + * @return int always 0, because mysql has support for autoincrement + */ + public function genId($sequence, $startID=1) + { + return @$this->conn->GenID($sequence, $startID); + } + + /** + * Create a sequence + * + * @param string $seqName key for sequences. + * @param integer $startID The next time GenID( ) is called, the value returned will be $startID + * @return boolean true on successful. + */ + public function setCreateSequence($seqName = 'xoops_adodb_seq', $startID=1) + { + return @$this->conn->CreateSequence($seqName, $startID); + } + + /** + * Delete a sequence + * + * @para... [truncated message content] |
From: <wis...@us...> - 2012-02-15 01:50:03
|
Revision: 8975 http://xoops.svn.sourceforge.net/xoops/?rev=8975&view=rev Author: wishcraft Date: 2012-02-15 01:49:56 +0000 (Wed, 15 Feb 2012) Log Message: ----------- * Duplicate Meta Entries Fix (Abridged on Trabis Forum Solution) - class/theme.php * exit(0); missing preloader call before calling exit - header.php * Date problem work around definition of XOBJ_DTYPE_DATE for passing date to date field type in MySQL, Postgres, MSSQL and other DB Platforms. * Time problem work around definition of XOBJ_DTYPE_TIME for passing date to date field type in MySQL, Postgres, MSSQL and other DB Platforms. * Timestamp problem work around definition of XOBJ_DTYPE_TIMESTAMP for passing timestamp to timestamp field type in MySQL, Postgres, MSSQL and other DB Platforms. Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/model/write.php XoopsCore/branches/2.5.x/2.5.5/htdocs/class/theme.php XoopsCore/branches/2.5.x/2.5.5/htdocs/header.php XoopsCore/branches/2.5.x/2.5.5/htdocs/kernel/object.php XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/global.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/model/write.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/model/write.php 2012-02-15 00:45:42 UTC (rev 8974) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/model/write.php 2012-02-15 01:49:56 UTC (rev 8975) @@ -53,6 +53,15 @@ } $cleanv = $v['value']; switch ($v["data_type"]) { + case XOBJ_DTYPE_TIMESTAMP: + $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBTIMESTAMPSTRING, $cleanv) : date(_DBTIMESTAMPSTRING, strtotime($cleanv)); + break; + case XOBJ_DTYPE_TIME: + $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBTIMESTRING, $cleanv) : date(_DBTIMESTRING, strtotime($cleanv)); + break; + case XOBJ_DTYPE_DATE: + $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBDATESTRING, $cleanv) : date(_DBDATESTRING, strtotime($cleanv)); + break; case XOBJ_DTYPE_UNICODE_TXTBOX: if ($v['required'] && $cleanv != '0' && $cleanv == '') { $errors[] = sprintf(_XOBJ_ERR_REQUIRED, $k); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/theme.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/theme.php 2012-02-15 00:45:42 UTC (rev 8974) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/theme.php 2012-02-15 01:49:56 UTC (rev 8975) @@ -530,7 +530,7 @@ return $ret; } - /** + /** * *#@+ * * @tasktype 20 Manipulating page meta-information @@ -551,17 +551,18 @@ * $theme->addScript( 'www/script.js', null, '' ); * $theme->addScript( 'modules/newbb/script.js', null, '' ); * // Specify attributes for the <script> tag - * $theme->addScript( 'mod_xoops_SiteManager#common.js', array( 'type' => 'application/x-javascript' ), '' ); + * $theme->addScript( 'mod_xoops_SiteManager#common.js', array( 'type' => 'application/x-javascript' ), '', 'mod_xoops_Sitemanager' ); * // Insert a code snippet - * $theme->addScript( null, array( 'type' => 'application/x-javascript' ), 'window.open("Hello world");' ); + * $theme->addScript( null, array( 'type' => 'application/x-javascript' ), 'window.open("Hello world");', 'hello' ); * </code> * * @param string $src path to an external script file * @param array $attributes hash of attributes to add to the <script> tag * @param string $content Code snippet to output within the <script> tag + * @param string $name Element Name in array scripts are stored in. * @return void */ - function addScript($src = '', $attributes = array(), $content = '') + function addScript($src = '', $attributes = array(), $content = '', $name = '') { if (empty($attributes)) { $attributes = array(); @@ -576,7 +577,10 @@ if (!isset($attributes['type'])) { $attributes['type'] = 'text/javascript'; } - $this->addMeta('script', $src, $attributes); + if (empty($name)) { + $name = md5(serialize($attributes)); + } + $this->addMeta('script', $name, $attributes); } @@ -586,9 +590,10 @@ * @param string $src path to .css file * @param array $attributes name => value paired array of attributes such as title * @param string $content CSS code to output between the <style> tags (in case $src is empty) + * @param string $name Element Name in array stylesheets are stored in. * @return void */ - function addStylesheet($src = '', $attributes = array(), $content = '') + function addStylesheet($src = '', $attributes = array(), $content = '', $name = '') { if (empty($attributes)) { $attributes = array(); @@ -603,7 +608,10 @@ if (!empty($content)) { $attributes['_'] = $content; } - $this->addMeta('stylesheet', $src, $attributes); + if (empty($name)) { + $name = md5(serialize($attributes)); + } + $this->addMeta('stylesheet', $name, $attributes); } /** @@ -612,8 +620,9 @@ * @param string $rel Relationship from the current doc to the anchored one * @param string $href URI of the anchored document * @param array $attributes Additional attributes to add to the <link> element + * @param string $name Element Name in array links are stored in. */ - function addLink($rel, $href = '', $attributes = array()) + function addLink($rel, $href = '', $attributes = array(), $name = '') { if (empty($attributes)) { $attributes = array(); @@ -622,9 +631,13 @@ $attributes['href'] = $href; } $attributes['rel'] = $rel; - $this->addMeta('link', '', $attributes); + if (empty($name)) { + $name = md5(serialize($attributes)); + } + $this->addMeta('link', $name, $attributes); } + /** * Set a meta http-equiv value */ Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/header.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/header.php 2012-02-15 00:45:42 UTC (rev 8974) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/header.php 2012-02-15 01:49:56 UTC (rev 8975) @@ -90,6 +90,7 @@ $xoopsPreload->triggerEvent('core.header.checkcache'); if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cacheend'); exit(); } Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/kernel/object.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/kernel/object.php 2012-02-15 00:45:42 UTC (rev 8974) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/kernel/object.php 2012-02-15 01:49:56 UTC (rev 8975) @@ -48,7 +48,10 @@ define('XOBJ_DTYPE_UNICODE_EMAIL', 19); define('XOBJ_DTYPE_UNICODE_ARRAY', 20); define('XOBJ_DTYPE_UNICODE_OTHER', 21); - +// Addition for 2.5.5 +define('XOBJ_DTYPE_DATE', 22); +define('XOBJ_DTYPE_TIME', 23); +define('XOBJ_DTYPE_TIMESTAMP', 24); /** * Base class for all objects in the Xoops kernel (and beyond) */ @@ -197,6 +200,27 @@ case XOBJ_DTYPE_UNICODE_TXTAREA: $this->vars[$key]['value'] =& xoops_convert_decode($value); break; + case XOBJ_DTYPE_DATE: + if (!is_string($value)&&is_numeric($value)) { + $this->vars[$key]['value'] =& date(_DBDATESTRING, $value); + } else { + $this->vars[$key]['value'] =& date(_DBDATESTRING, strtotime($value)); + } + break; + case XOBJ_DTYPE_TIME: + if (!is_string($value)&&is_numeric($value)) { + $this->vars[$key]['value'] =& date(_DBTIMESTRING, $value); + } else { + $this->vars[$key]['value'] =& date(_DBTIMESTRING, strtotime($value)); + } + break; + case XOBJ_DTYPE_TIMESTAMP: + if (!is_string($value)&&is_numeric($value)) { + $this->vars[$key]['value'] =& date(_DBTIMESTAMPSTRING, $value); + } else { + $this->vars[$key]['value'] =& date(_DBTIMESTAMPSTRING, strtotime($value)); + } + break; // YOU SHOULD NOT USE THE ABOVE TYPES, THEY WILL BE REMOVED default: $this->vars[$key]['value'] =& $value; @@ -463,6 +487,123 @@ break 1; } break; + case XOBJ_DTYPE_DATE: + switch (strtolower($format)) { + case 's': + case 'show': + if (is_string($ret)&&!is_numeric($ret)) { + return date(_DBDATESTRING, strtotime($ret)); + } else { + return date(_DBDATESTRING, $ret); + } + break 1; + case 'e': + case 'edit': + if (is_string($ret)&&!is_numeric($ret)) { + return htmlspecialchars(date(_DBDATESTRING, strtotime($ret)), ENT_QUOTES); + } else { + return htmlspecialchars(date(_DBDATESTRING, $ret), ENT_QUOTES); + } + break 1; + case 'p': + case 'preview': + if (is_string($ret)&&!is_numeric($ret)) { + return $ts->stripSlashesGPC(date(_DBDATESTRING, strtotime($ret))); + } else { + return $ts->stripSlashesGPC(date(_DBDATESTRING, $ret)); + } + break 1; + case 'f': + case 'formpreview': + if (is_string($ret)&&!is_numeric($ret)) { + return htmlspecialchars($ts->stripSlashesGPC(date(_DBDATESTRING, strtotime($ret))), ENT_QUOTES); + } else { + return htmlspecialchars($ts->stripSlashesGPC(date(_DBDATESTRING, $ret)), ENT_QUOTES); + } + break 1; + case 'n': + case 'none': + default: + break 1; + } + case XOBJ_DTYPE_TIME: + switch (strtolower($format)) { + case 's': + case 'show': + if (is_string($ret)&&!is_numeric($ret)) { + return date(_DBTIMESTRING, strtotime($ret)); + } else { + return date(_DBTIMESTRING, $ret); + } + break 1; + case 'e': + case 'edit': + if (is_string($ret)&&!is_numeric($ret)) { + return htmlspecialchars(date(_DBTIMESTRING, strtotime($ret)), ENT_QUOTES); + } else { + return htmlspecialchars(date(_DBTIMESTRING, $ret), ENT_QUOTES); + } + break 1; + case 'p': + case 'preview': + if (is_string($ret)&&!is_numeric($ret)) { + return $ts->stripSlashesGPC(date(_DBTIMESTRING, strtotime($ret))); + } else { + return $ts->stripSlashesGPC(date(_DBTIMESTRING, $ret)); + } + break 1; + case 'f': + case 'formpreview': + if (is_string($ret)&&!is_numeric($ret)) { + return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTRING, strtotime($ret))), ENT_QUOTES); + } else { + return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTRING, $ret)), ENT_QUOTES); + } + break 1; + case 'n': + case 'none': + default: + break 1; + } + case XOBJ_DTYPE_TIMESTAMP: + switch (strtolower($format)) { + case 's': + case 'show': + if (is_string($ret)&&!is_numeric($ret)) { + return date(_DBTIMESTAMPSTRING, strtotime($ret)); + } else { + return date(_DBTIMESTAMPSTRING, $ret); + } + break 1; + case 'e': + case 'edit': + if (is_string($ret)&&!is_numeric($ret)) { + return htmlspecialchars(date(_DBTIMESTAMPSTRING, strtotime($ret)), ENT_QUOTES); + } else { + return htmlspecialchars(date(_DBTIMESTAMPSTRING, $ret), ENT_QUOTES); + } + break 1; + case 'p': + case 'preview': + if (is_string($ret)&&!is_numeric($ret)) { + return $ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, strtotime($ret))); + } else { + return $ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, $ret)); + } + break 1; + case 'f': + case 'formpreview': + if (is_string($ret)&&!is_numeric($ret)) { + return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, strtotime($ret))), ENT_QUOTES); + } else { + return htmlspecialchars($ts->stripSlashesGPC(date(_DBTIMESTAMPSTRING, $ret)), ENT_QUOTES); + } + break 1; + case 'n': + case 'none': + default: + break 1; + } default: if ($this->vars[$key]['options'] != '' && $ret != '') { switch (strtolower($format)) { @@ -512,6 +653,15 @@ } else { $cleanv = is_string($cleanv) ? trim($cleanv) : $cleanv; switch ($v['data_type']) { + case XOBJ_DTYPE_TIMESTAMP: + $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBTIMESTAMPSTRING, $cleanv) : date(_DBTIMESTAMPSTRING, strtotime($cleanv)); + break; + case XOBJ_DTYPE_TIME: + $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBTIMESTRING, $cleanv) : date(_DBTIMESTRING, strtotime($cleanv)); + break; + case XOBJ_DTYPE_DATE: + $cleanv = !is_string($cleanv)&&is_numeric($cleanv) ? date(_DBDATESTRING, $cleanv) : date(_DBDATESTRING, strtotime($cleanv)); + break; case XOBJ_DTYPE_TXTBOX: if ($v['required'] && $cleanv != '0' && $cleanv == '') { $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k)); Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/global.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/global.php 2012-02-15 00:45:42 UTC (rev 8974) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/language/english/global.php 2012-02-15 01:49:56 UTC (rev 8975) @@ -213,4 +213,10 @@ **/ define('_RESET', 'Reset'); define('_RE', 'Re:'); +/** + * Additions to 2.5.5 +**/ +define('_DBDATESTRING', 'Y-m-d'); +define('_DBTIMESTRING', 'H:i:s'); +define('_DBTIMESTAMPSTRING', 'Y-m-d H:i:s'); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |