|
From: <be...@us...> - 2014-07-11 17:19:04
|
Revision: 12702
http://sourceforge.net/p/xoops/svn/12702
Author: beckmi
Date: 2014-07-11 17:18:50 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
Adding RandomQuote update
Added Paths:
-----------
XoopsModules/randomquote/branches/mamba/
XoopsModules/randomquote/branches/mamba/randomquote/
XoopsModules/randomquote/branches/mamba/randomquote/admin/
XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html
XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php
XoopsModules/randomquote/branches/mamba/randomquote/assets/
XoopsModules/randomquote/branches/mamba/randomquote/assets/css/
XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html
XoopsModules/randomquote/branches/mamba/randomquote/blocks/
XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html
XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php
XoopsModules/randomquote/branches/mamba/randomquote/class/
XoopsModules/randomquote/branches/mamba/randomquote/class/forms/
XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php
XoopsModules/randomquote/branches/mamba/randomquote/class/index.html
XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php
XoopsModules/randomquote/branches/mamba/randomquote/docs/
XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html
XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/readme.txt
XoopsModules/randomquote/branches/mamba/randomquote/header.php
XoopsModules/randomquote/branches/mamba/randomquote/include/
XoopsModules/randomquote/branches/mamba/randomquote/include/config.php
XoopsModules/randomquote/branches/mamba/randomquote/include/functions.php
XoopsModules/randomquote/branches/mamba/randomquote/include/index.html
XoopsModules/randomquote/branches/mamba/randomquote/include/install.php
XoopsModules/randomquote/branches/mamba/randomquote/include/update.php
XoopsModules/randomquote/branches/mamba/randomquote/include/waiting.plugin.php
XoopsModules/randomquote/branches/mamba/randomquote/index.php
XoopsModules/randomquote/branches/mamba/randomquote/language/
XoopsModules/randomquote/branches/mamba/randomquote/language/english/
XoopsModules/randomquote/branches/mamba/randomquote/language/english/admin.php
XoopsModules/randomquote/branches/mamba/randomquote/language/english/blocks.php
XoopsModules/randomquote/branches/mamba/randomquote/language/english/help/
XoopsModules/randomquote/branches/mamba/randomquote/language/english/help/help.html
XoopsModules/randomquote/branches/mamba/randomquote/language/english/help/index.html
XoopsModules/randomquote/branches/mamba/randomquote/language/english/index.html
XoopsModules/randomquote/branches/mamba/randomquote/language/english/main.php
XoopsModules/randomquote/branches/mamba/randomquote/language/english/modinfo.php
XoopsModules/randomquote/branches/mamba/randomquote/language/index.html
XoopsModules/randomquote/branches/mamba/randomquote/sql/
XoopsModules/randomquote/branches/mamba/randomquote/sql/index.html
XoopsModules/randomquote/branches/mamba/randomquote/sql/mysql.sql
XoopsModules/randomquote/branches/mamba/randomquote/templates/
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/index.html
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/randomquote_admin_about.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/randomquote_admin_help.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/index.html
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/randomquote_quotes_block_day.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/randomquote_quotes_block_random.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/randomquote_quotes_block_recent.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/index.html
XoopsModules/randomquote/branches/mamba/randomquote/templates/randomquote_footer.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/randomquote_header.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/randomquote_index.tpl
XoopsModules/randomquote/branches/mamba/randomquote/xoops_version.php
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once __DIR__ . '/admin_header.php';
+echo $adminMenu->addNavigation("about.php");
+echo $adminMenu->renderabout('25J998Y3QEDZW', false);
+include_once __DIR__ . '/admin_footer.php';
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+echo "<div align='center'><a href='http://www.xoops.org' target='_blank'>
+ <img src='" . $pathIcon32 . "/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'>
+ <strong>" . $xoopsModule->getVar('name') . "</strong> " . _AM_RANDOMQUOTE_MAINTAINEDBY . "
+ <a href='http://xoops.org' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>";
+xoops_cp_footer();
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+include_once '../include/config.php';
+include_once '../include/functions.php';
+
+$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
+
+$pathIcon16 = '../' . $xoopsModule->getInfo('icons16');
+$pathIcon32 = '../' . $xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+//load handlers
+$quotesHandler =& xoops_getModuleHandler('quotes', $thisDirname);
+
+$myts =& MyTextSanitizer::getInstance();
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH . "/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
+$xoopsTpl->assign('pathIcon32', $pathIcon32);
+//Load languages
+xoops_loadLanguage('admin', $thisDirname);
+xoops_loadLanguage('modinfo', $thisDirname);
+xoops_loadLanguage('main', $thisDirname);
+// Locad admin menu class
+if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) {
+ require_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
+} else {
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+}
+xoops_cp_header();
+$adminMenu = new ModuleAdmin();
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once __DIR__ . '/admin_header.php';
+//count "total citas"
+$count_quotes = $quotesHandler->getCount();
+// InfoBox citas
+$adminMenu->addInfoBox(_AM_RANDOMQUOTE_STATISTICS);
+// InfoBox citas
+$adminMenu->addInfoBoxLine(_AM_RANDOMQUOTE_STATISTICS, _AM_RANDOMQUOTE_THEREARE_CITAS, $count_quotes);
+// Render Index
+echo $adminMenu->addNavigation("index.php");
+echo $adminMenu->renderIndex();
+include_once __DIR__ . '/admin_footer.php';
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,148 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once __DIR__ . '/admin_header.php';
+//It recovered the value of argument op in URL$
+$op = cleanVarsRandomquote($_REQUEST, 'op', 'list', 'string');
+switch ($op) {
+ case "list":
+ default:
+ echo $adminMenu->addNavigation('main.php');
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_NEWCITAS, 'main.php?op=new_quote', 'add');
+ echo $adminMenu->renderButton('left');
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("id");
+ $criteria->setOrder("ASC");
+ $numrows = $quotesHandler->getCount();
+ $quotes_arr = $quotesHandler->getall($criteria);
+
+ //Table view
+ if ($numrows > 0) {
+ echo "<table width='100%' cellspacing='1' class='outer'>
+ <tr>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_QUOTE . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_AUTHOR . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_STATUS . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_WAITING . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_ONLINE . "</th>
+
+ <th align='center' width='10%'>" . _AM_RANDOMQUOTE_FORMACTION . "</th>
+ </tr>";
+
+ $class = "odd";
+
+ foreach (array_keys($quotes_arr) as $i) {
+ if ($quotes_arr[$i]->getVar("quotes_pid") == 0) {
+ echo "<tr class='" . $class . "'>";
+ $class = ($class == "even") ? "odd" : "even";
+ echo "<td>" . $quotes_arr[$i]->getVar("quote") . "</td>";
+ echo "<td align=\"center\">" . $quotes_arr[$i]->getVar("author") . "</td>";
+
+ $verif_quote_status = ($quotes_arr[$i]->getVar("quote_status") == 1) ? _YES : _NO;
+ echo "<td align=\"center\">" . $verif_quote_status . "</td>";
+
+ $verif_quote_waiting = ($quotes_arr[$i]->getVar("quote_waiting") == 1) ? _YES : _NO;
+ echo "<td align=\"center\">" . $verif_quote_waiting . "</td>";
+
+ $verif_quote_online = ($quotes_arr[$i]->getVar("quote_online") == 1) ? _YES : _NO;
+ echo "<td align=\"center\">" . $verif_quote_online . "</td>";
+
+ echo "<td align='center' width='10%'>
+ <a href='main.php?op=edit_quote&id=" . $quotes_arr[$i]->getVar("id") . "'><img src=" . $pathIcon16 . "/edit.png alt='" . _EDIT . "' title='" . _EDIT . "'></a>
+ <a href='main.php?op=delete_quote&id=" . $quotes_arr[$i]->getVar("id") . "'><img src=" . $pathIcon16 . "/delete.png alt='" . _DELETE . "' title='" . _DELETE . "'></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br /><br />";
+ }
+
+ break;
+ case "new_quote":
+ echo $adminMenu->addNavigation("main.php");
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_QUOTESLIST, 'main.php?op=list', 'list');
+ echo $adminMenu->renderButton('left');
+
+ $obj =& $quotesHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+ case "save_quote":
+ if (!$GLOBALS["xoopsSecurity"]->check()) {
+ redirect_header("main.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["id"])) {
+ $obj =& $quotesHandler->get($_REQUEST["id"]);
+ } else {
+ $obj =& $quotesHandler->create();
+ }
+
+ //Form texto
+ $obj->setVar("quote", $_REQUEST["quote"]);
+ //Form autor
+ $obj->setVar("author", $_REQUEST["author"]);
+ //Form quote_status
+ $verif_quote_status = ($_REQUEST["quote_status"] == 1) ? "1" : "0";
+ $obj->setVar("quote_status", $verif_quote_status);
+ //Form quote_waiting
+ $verif_quote_waiting = ($_REQUEST["quote_waiting"] == 1) ? "1" : "0";
+ $obj->setVar("quote_waiting", $verif_quote_waiting);
+ //Form quote_online
+ $verif_quote_online = ($_REQUEST["quote_online"] == 1) ? "1" : "0";
+ $obj->setVar("quote_online", $verif_quote_online);
+
+ if ($quotesHandler->insert($obj)) {
+ redirect_header("main.php?op=list", 2, _AM_RANDOMQUOTE_FORMOK);
+ }
+
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ $form->display();
+ break;
+ case "edit_quote":
+ echo $adminMenu->addNavigation("main.php");
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_NEWCITAS, 'main.php?op=new_quote', 'add');
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_QUOTESLIST, 'main.php?op=list', 'list');
+ echo $adminMenu->renderButton('left');
+ $obj = $quotesHandler->get($_REQUEST["id"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+ case "delete_quote":
+ $obj =& $quotesHandler->get($_REQUEST["id"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if (!$GLOBALS["xoopsSecurity"]->check()) {
+ redirect_header("main.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($quotesHandler->delete($obj)) {
+ redirect_header("main.php", 3, _AM_RANDOMQUOTE_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(
+ array("ok" => 1, "id" => $_REQUEST["id"], "op" => "delete_quote"),
+ $_SERVER["REQUEST_URI"],
+ sprintf(_AM_RANDOMQUOTE_FORMSUREDEL, $obj->getVar("quote"))
+ );
+ }
+ break;
+}
+include_once __DIR__ . '/admin_footer.php';
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+$dirname = basename(dirname(__DIR__));
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathIcon32 = $moduleInfo->getInfo("icons32");
+$adminmenu = array();
+$i = 1;
+$adminmenu[$i]["title"] = _MI_RANDOMQUOTE_ADMENU1;
+$adminmenu[$i]["link"] = "admin/index.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . "/home.png";
+++$i;
+$adminmenu[$i]["title"] = _MI_RANDOMQUOTE_ADMENU2;
+$adminmenu[$i]["link"] = "admin/main.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . "/content.png";
+++$i;
+$adminmenu[$i]["title"] = _MI_RANDOMQUOTE_ADMENU3;
+$adminmenu[$i]["link"] = "admin/about.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . "/about.png";
+unset($i);
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script type="text/javascript">history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once XOOPS_ROOT_PATH . "/modules/randomquote/include/functions.php";
+
+/**
+ * @param $options
+ *
+ * @return array
+ */
+function showRandomquoteBlockViews($options)
+{
+ include_once XOOPS_ROOT_PATH . "/modules/randomquote/class/quotes.php";
+// $myts =& MyTextSanitizer::getInstance();
+
+ $citas = array();
+ $type_block = $options[0];
+ $nb_quotes = $options[1];
+// $lenght_title = $options[2];
+
+ $quotesHandler =& xoops_getModuleHandler("quotes", "randomquote");
+ $criteria = new CriteriaCompo();
+ array_shift($options);
+ array_shift($options);
+ array_shift($options);
+
+ switch ($type_block) {
+ // for block: citas recent
+ case "recent":
+ $criteria->add(new Criteria("quote_online", 1));
+// $criteria->setSort("quotes_date_created");
+ $criteria->setSort("id");
+ $criteria->setOrder("DESC");
+ break;
+ // for block: citas today's
+ case "day":
+ $criteria->add(new Criteria("quote_online", 1));
+// $criteria->add(new Criteria("quotes_date_created", strtotime(date("Y/m/d")), ">="));
+// $criteria->add(new Criteria("quotes_date_created", strtotime(date("Y/m/d")) + 86400, "<="));
+// $criteria->setSort("quotes_date_created");
+ $criteria->setOrder("ASC");
+ $criteria->setSort("RAND()");
+ break;
+ // for block: citas random
+ case "random":
+ $criteria->add(new Criteria("quote_online", 1));
+ $criteria->setSort("RAND()");
+ break;
+ }
+
+ $criteria->setLimit($nb_quotes);
+ $quotes_arr = $quotesHandler->getall($criteria);
+ foreach (array_keys($quotes_arr) as $i) {
+ $citas[$i]["quote"] = $quotes_arr[$i]->getVar("quote");
+ $citas[$i]["author"] = $quotes_arr[$i]->getVar("author");
+ }
+
+ return $citas;
+}
+
+/**
+ * @param $options
+ *
+ * @return string
+ */
+function editRandomquoteBlockViews($options)
+{
+ $quotes_arr = array();
+ $form = "" . _MB_RANDOMQUOTE_QUOTES_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_RANDOMQUOTE_QUOTES_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_RANDOMQUOTE_QUOTES_CATTODISPLAY . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">";
+ $form .= "<option value=\"0\" " . (array_search(0, $options) === false ? "" : "selected=\"selected\"") . ">" . _MB_RANDOMQUOTE_QUOTES_ALLCAT . "</option>";
+ foreach (array_keys($quotes_arr) as $i) {
+ $form .= "<option value=\"" . $quotes_arr[$i]->getVar("quotes_id") . "\" " . (array_search($quotes_arr[$i]->getVar("quotes_id"), $options) === false ? "" : "selected=\"selected\"") . ">"
+ . $quotes_arr[$i]->getVar("quotes_title") . "</option>";
+ }
+ $form .= "</select>";
+
+ return $form;
+}
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+class RandomQuote
+{
+
+}
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/class/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/class/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/class/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,139 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+if (!defined("XOOPS_ROOT_PATH")) {
+ die("XOOPS root path not defined");
+}
+
+/**
+ * Class RandomquoteQuotes
+ */
+class RandomquoteQuotes extends XoopsObject
+{
+ //Constructor
+ /**
+ *
+ */
+ function __construct()
+ {
+ $this->XoopsObject();
+ $this->initVar("id", XOBJ_DTYPE_INT, null, false, 11);
+ $this->initVar("quote", XOBJ_DTYPE_TXTAREA, null, false);
+ $this->initVar("author", XOBJ_DTYPE_TXTAREA, null, false);
+ $this->initVar("quote_status", XOBJ_DTYPE_INT, null, false, 10);
+ $this->initVar("quote_waiting", XOBJ_DTYPE_INT, null, false, 10);
+ $this->initVar("quote_online", XOBJ_DTYPE_INT, null, false, 1);
+
+ $this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('dosmiley', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('doxcode', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('doimage', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('dobr', XOBJ_DTYPE_INT, 1, false);
+
+ }
+
+ /**
+ * @param bool $action
+ *
+ * @return XoopsThemeForm
+ */
+ function getForm($action = false)
+ {
+ // global $xoopsDB, $xoopsModuleConfig;
+
+ if ($action === false) {
+ $action = $_SERVER["REQUEST_URI"];
+ }
+
+ $title = $this->isNew() ? sprintf(_AM_RANDOMQUOTE_QUOTES_ADD) : sprintf(_AM_RANDOMQUOTE_QUOTES_EDIT);
+
+ include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
+
+ $form = new XoopsThemeForm($title, "form", $action, "post", true);
+ $form->setExtra('enctype="multipart/form-data"');
+
+ $author = $this->isNew() ? '' : $this->getVar("author");
+ $textAuthor = new XoopsFormText(_AM_RANDOMQUOTE_QUOTES_AUTHOR, "author", 50, 255, $author);
+ $form->addElement($textAuthor);
+
+ $editorConfigs = array();
+ $editorConfigs["name"] = "quote";
+ $editorConfigs["value"] = $this->getVar("quote", "e");
+ $editorConfigs["rows"] = 10;
+ $editorConfigs["cols"] = 80;
+ $editorConfigs["width"] = "100%";
+ $editorConfigs["height"] = "400px";
+ $editorConfigs["editor"] = $GLOBALS["xoopsModuleConfig"]["randomquote_editor"];
+ $form->addElement(new XoopsFormEditor(_AM_RANDOMQUOTE_QUOTES_QUOTE, "quote", $editorConfigs), true);
+
+// $editorConfigs = array();
+// $editorConfigs["name"] = "author";
+// $editorConfigs["value"] = $this->getVar("author", "e");
+// $editorConfigs["rows"] = 10;
+// $editorConfigs["cols"] = 80;
+// $editorConfigs["width"] = "100%";
+// $editorConfigs["height"] = "400px";
+// $editorConfigs["editor"] = $GLOBALS["xoopsModuleConfig"]["randomquote_editor"];
+// $form->addElement(new XoopsFormEditor(_AM_RANDOMQUOTE_QUOTES_AUTHOR, "author", $editorConfigs), true);
+
+ $quote_status = $this->isNew() ? 0 : $this->getVar("quote_status");
+ $check_quote_status = new XoopsFormCheckBox(_AM_RANDOMQUOTE_QUOTES_STATUS, "quote_status", $quote_status);
+ $check_quote_status->addOption(1, " ");
+ $form->addElement($check_quote_status);
+ $quote_waiting = $this->isNew() ? 0 : $this->getVar("quote_waiting");
+ $check_quote_waiting
+ = new XoopsFormCheckBox(_AM_RANDOMQUOTE_QUOTES_WAITING, "quote_waiting", $quote_waiting);
+ $check_quote_waiting->addOption(1, " ");
+ $form->addElement($check_quote_waiting);
+ $quote_online = $this->isNew() ? 0 : $this->getVar("quote_online");
+ $check_quote_online = new XoopsFormCheckBox(_AM_RANDOMQUOTE_QUOTES_ONLINE, "quote_online", $quote_online);
+ $check_quote_online->addOption(1, " ");
+ $form->addElement($check_quote_online);
+
+ $form->addElement(new XoopsFormHidden("op", "save_quote"));
+
+ //Submit buttons
+ $button_tray = new XoopsFormElementTray("", "");
+ $submit_button = new XoopsFormButton("", "submit", _SUBMIT, "submit");
+ $button_tray->addElement($submit_button);
+
+ $cancel_button = new XoopsFormButton("", "", _CANCEL, "cancel");
+ $cancel_button->setExtra('onclick="history.go(-1)"');
+ $button_tray->addElement($cancel_button);
+
+ $form->addElement($button_tray);
+
+ return $form;
+ }
+}
+
+/**
+ * Class RandomquoteQuotesHandler
+ */
+class RandomquoteQuotesHandler extends XoopsPersistableObjectHandler
+{
+ /**
+ * @param null|object $db
+ */
+ function __construct(&$db)
+ {
+ parent::__construct($db, "randomquote_quotes", "RandomquoteQuotes", "id", "quote");
+ }
+}
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,7 @@
+
+------------------------------------
+ 2.00 Alpha 1 2013/06/27
+------------------------------------
+
+ - Original release RandomQuote 2.0 Alpha 1.
+ This module is developed from scratch using TDMCreate, but it's inspired by the original code from RandomQuote
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,6 @@
+Read Me First
+=============
+
+This module has been created with help from TDMCreate module.
+
+The original module was created by Mario Figge (http://www.zona84.com), with contributions by Egg McMuffin and Chefry.
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,4 @@
+Read Me First
+=============
+
+Install just like another XOOPS module
\ No newline at end of file
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,4 @@
+Language Differences
+=====================
+
+none
\ No newline at end of file
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+T...
[truncated message content] |