|
From: <be...@us...> - 2014-03-16 00:55:55
|
Revision: 12379
http://sourceforge.net/p/xoops/svn/12379
Author: beckmi
Date: 2014-03-16 00:55:50 +0000 (Sun, 16 Mar 2014)
Log Message:
-----------
Adding gBook 1.0 by Ingo H. de Boer
Added Paths:
-----------
XoopsModules/gbook/releases/1.0/
XoopsModules/gbook/releases/1.0/gbook/
XoopsModules/gbook/releases/1.0/gbook/admin/
XoopsModules/gbook/releases/1.0/gbook/admin/about.php
XoopsModules/gbook/releases/1.0/gbook/admin/admin_footer.php
XoopsModules/gbook/releases/1.0/gbook/admin/admin_header.php
XoopsModules/gbook/releases/1.0/gbook/admin/entries.php
XoopsModules/gbook/releases/1.0/gbook/admin/index.html
XoopsModules/gbook/releases/1.0/gbook/admin/index.php
XoopsModules/gbook/releases/1.0/gbook/admin/menu.php
XoopsModules/gbook/releases/1.0/gbook/class/
XoopsModules/gbook/releases/1.0/gbook/class/entries.php
XoopsModules/gbook/releases/1.0/gbook/class/index.html
XoopsModules/gbook/releases/1.0/gbook/docs/
XoopsModules/gbook/releases/1.0/gbook/docs/changelog.txt
XoopsModules/gbook/releases/1.0/gbook/docs/credits.txt
XoopsModules/gbook/releases/1.0/gbook/docs/index.html
XoopsModules/gbook/releases/1.0/gbook/docs/install.txt
XoopsModules/gbook/releases/1.0/gbook/docs/licence.txt
XoopsModules/gbook/releases/1.0/gbook/docs/readme.txt
XoopsModules/gbook/releases/1.0/gbook/footer.php
XoopsModules/gbook/releases/1.0/gbook/header.php
XoopsModules/gbook/releases/1.0/gbook/images/
XoopsModules/gbook/releases/1.0/gbook/images/email.png
XoopsModules/gbook/releases/1.0/gbook/images/gbook.png
XoopsModules/gbook/releases/1.0/gbook/images/index.html
XoopsModules/gbook/releases/1.0/gbook/images/ip.png
XoopsModules/gbook/releases/1.0/gbook/images/sign.png
XoopsModules/gbook/releases/1.0/gbook/images/url.png
XoopsModules/gbook/releases/1.0/gbook/include/
XoopsModules/gbook/releases/1.0/gbook/include/functions.php
XoopsModules/gbook/releases/1.0/gbook/include/index.html
XoopsModules/gbook/releases/1.0/gbook/index.php
XoopsModules/gbook/releases/1.0/gbook/language/
XoopsModules/gbook/releases/1.0/gbook/language/english/
XoopsModules/gbook/releases/1.0/gbook/language/english/admin.php
XoopsModules/gbook/releases/1.0/gbook/language/english/help/
XoopsModules/gbook/releases/1.0/gbook/language/english/help/help.html
XoopsModules/gbook/releases/1.0/gbook/language/english/help/index.html
XoopsModules/gbook/releases/1.0/gbook/language/english/index.html
XoopsModules/gbook/releases/1.0/gbook/language/english/main.php
XoopsModules/gbook/releases/1.0/gbook/language/english/modinfo.php
XoopsModules/gbook/releases/1.0/gbook/language/german/
XoopsModules/gbook/releases/1.0/gbook/language/german/admin.php
XoopsModules/gbook/releases/1.0/gbook/language/german/help/
XoopsModules/gbook/releases/1.0/gbook/language/german/help/help.html
XoopsModules/gbook/releases/1.0/gbook/language/german/help/index.html
XoopsModules/gbook/releases/1.0/gbook/language/german/index.html
XoopsModules/gbook/releases/1.0/gbook/language/german/main.php
XoopsModules/gbook/releases/1.0/gbook/language/german/modinfo.php
XoopsModules/gbook/releases/1.0/gbook/language/index.html
XoopsModules/gbook/releases/1.0/gbook/sign.php
XoopsModules/gbook/releases/1.0/gbook/sql/
XoopsModules/gbook/releases/1.0/gbook/sql/index.html
XoopsModules/gbook/releases/1.0/gbook/sql/mysql.sql
XoopsModules/gbook/releases/1.0/gbook/templates/
XoopsModules/gbook/releases/1.0/gbook/templates/gbook.css
XoopsModules/gbook/releases/1.0/gbook/templates/gbook_admin_entries.html
XoopsModules/gbook/releases/1.0/gbook/templates/gbook_sign.html
XoopsModules/gbook/releases/1.0/gbook/templates/gbook_view_entries.html
XoopsModules/gbook/releases/1.0/gbook/templates/index.html
XoopsModules/gbook/releases/1.0/gbook/xoops_version.php
XoopsModules/gbook/trunk/gbook/admin/
XoopsModules/gbook/trunk/gbook/admin/about.php
XoopsModules/gbook/trunk/gbook/admin/admin_footer.php
XoopsModules/gbook/trunk/gbook/admin/admin_header.php
XoopsModules/gbook/trunk/gbook/admin/entries.php
XoopsModules/gbook/trunk/gbook/admin/index.html
XoopsModules/gbook/trunk/gbook/admin/index.php
XoopsModules/gbook/trunk/gbook/admin/menu.php
XoopsModules/gbook/trunk/gbook/class/
XoopsModules/gbook/trunk/gbook/class/entries.php
XoopsModules/gbook/trunk/gbook/class/index.html
XoopsModules/gbook/trunk/gbook/docs/
XoopsModules/gbook/trunk/gbook/docs/changelog.txt
XoopsModules/gbook/trunk/gbook/docs/credits.txt
XoopsModules/gbook/trunk/gbook/docs/index.html
XoopsModules/gbook/trunk/gbook/docs/install.txt
XoopsModules/gbook/trunk/gbook/docs/licence.txt
XoopsModules/gbook/trunk/gbook/docs/readme.txt
XoopsModules/gbook/trunk/gbook/footer.php
XoopsModules/gbook/trunk/gbook/header.php
XoopsModules/gbook/trunk/gbook/images/
XoopsModules/gbook/trunk/gbook/images/email.png
XoopsModules/gbook/trunk/gbook/images/gbook.png
XoopsModules/gbook/trunk/gbook/images/index.html
XoopsModules/gbook/trunk/gbook/images/ip.png
XoopsModules/gbook/trunk/gbook/images/sign.png
XoopsModules/gbook/trunk/gbook/images/url.png
XoopsModules/gbook/trunk/gbook/include/
XoopsModules/gbook/trunk/gbook/include/functions.php
XoopsModules/gbook/trunk/gbook/include/index.html
XoopsModules/gbook/trunk/gbook/index.php
XoopsModules/gbook/trunk/gbook/language/
XoopsModules/gbook/trunk/gbook/language/english/
XoopsModules/gbook/trunk/gbook/language/english/admin.php
XoopsModules/gbook/trunk/gbook/language/english/help/
XoopsModules/gbook/trunk/gbook/language/english/help/help.html
XoopsModules/gbook/trunk/gbook/language/english/help/index.html
XoopsModules/gbook/trunk/gbook/language/english/index.html
XoopsModules/gbook/trunk/gbook/language/english/main.php
XoopsModules/gbook/trunk/gbook/language/english/modinfo.php
XoopsModules/gbook/trunk/gbook/language/german/
XoopsModules/gbook/trunk/gbook/language/german/admin.php
XoopsModules/gbook/trunk/gbook/language/german/help/
XoopsModules/gbook/trunk/gbook/language/german/help/help.html
XoopsModules/gbook/trunk/gbook/language/german/help/index.html
XoopsModules/gbook/trunk/gbook/language/german/index.html
XoopsModules/gbook/trunk/gbook/language/german/main.php
XoopsModules/gbook/trunk/gbook/language/german/modinfo.php
XoopsModules/gbook/trunk/gbook/language/index.html
XoopsModules/gbook/trunk/gbook/sign.php
XoopsModules/gbook/trunk/gbook/sql/
XoopsModules/gbook/trunk/gbook/sql/index.html
XoopsModules/gbook/trunk/gbook/sql/mysql.sql
XoopsModules/gbook/trunk/gbook/templates/
XoopsModules/gbook/trunk/gbook/templates/gbook.css
XoopsModules/gbook/trunk/gbook/templates/gbook_admin_entries.html
XoopsModules/gbook/trunk/gbook/templates/gbook_sign.html
XoopsModules/gbook/trunk/gbook/templates/gbook_view_entries.html
XoopsModules/gbook/trunk/gbook/templates/index.html
XoopsModules/gbook/trunk/gbook/xoops_version.php
Added: XoopsModules/gbook/releases/1.0/gbook/admin/about.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/about.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/about.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,43 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+include '../../../include/cp_header.php';
+include '../../../class/xoopsformloader.php';
+include 'admin_header.php';
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderabout('', false);
+
+include 'admin_footer.php';
+xoops_cp_footer();
Property changes on: XoopsModules/gbook/releases/1.0/gbook/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/gbook/releases/1.0/gbook/admin/admin_footer.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/admin_footer.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/admin_footer.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,32 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+xoops_cp_footer();
\ No newline at end of file
Property changes on: XoopsModules/gbook/releases/1.0/gbook/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/gbook/releases/1.0/gbook/admin/admin_header.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/admin_header.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/admin_header.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,49 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+include("../../../include/cp_header.php");
+include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.php";
+include_once XOOPS_ROOT_PATH."/Frameworks/art/functions.admin.php";
+
+xoops_loadLanguage('main','gbook');
+xoops_loadLanguage('modinfo','gbook');
+
+$newXoopsModuleGui = false;
+if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+ $moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+ $pathIcon16 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+ $pathIcon32 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+ $newXoopsModuleGui = true;
+ $indexAdmin = new ModuleAdmin();
+}
+$myts = &MyTextSanitizer::getInstance();
+?>
\ No newline at end of file
Property changes on: XoopsModules/gbook/releases/1.0/gbook/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/gbook/releases/1.0/gbook/admin/entries.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/entries.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/entries.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,102 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+include 'admin_header.php';
+xoops_cp_header();
+$indexAdmin = new ModuleAdmin();
+
+echo $indexAdmin->addNavigation('entries.php');
+echo $indexAdmin->renderButton('right', '');
+
+$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : "list");
+
+$handler =& xoops_getmodulehandler('entries');
+
+switch($op ) {
+default:
+case "list":
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('id');
+ $criteria->setOrder('DESC');
+ $GLOBALS['xoopsTpl']->assign('entries', $handler->getObjects($criteria, true, false) );
+ $template_main = "gbook_admin_entries.html";
+ break;
+
+case "edit":
+ $obj = $handler->get($_REQUEST['id']);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+case "save":
+ if ( !$GLOBALS['xoopsSecurity']->check() ) {
+ redirect_header('entries.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() ));
+ }
+ if ( isset($_REQUEST['id']) ) {
+ $obj =& $handler->get($_REQUEST['id']);
+ } else {
+ $obj =& $handler->create();
+ }
+ $obj->setVar('name', $_REQUEST['name']);
+ $obj->setVar('email', $_REQUEST['email']);
+ $obj->setVar('url', $_REQUEST['url']);
+ $obj->setVar('message', $_REQUEST['message']);
+ $obj->setVar('note', $_REQUEST['note']);
+ if ( $handler->insert($obj) ) {
+ redirect_header('entries.php', 3, _GBOOK_AM_ENTRY_EDITED );
+ }
+ include_once '../include/forms.php';
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ $form->display();
+ break;
+
+case "delete":
+ $obj =& $handler->get($_REQUEST['id']);
+ if ( isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1 ) {
+ if ( !$GLOBALS['xoopsSecurity']->check() ) {
+ redirect_header('entries.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() ));
+ }
+ if ( $handler->delete($obj) ) {
+ redirect_header('entries.php', 3, sprintf(_GBOOK_AM_DELETE_SUCCESS, $obj->getVar('name')) );
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_GBOOK_AM_DELETE_SURE, $obj->getVar('name') ));
+ }
+ break;
+}
+
+if ( isset($template_main) ) {
+ $GLOBALS['xoopsTpl']->display("db:{$template_main}");
+}
+include 'admin_footer.php';
\ No newline at end of file
Property changes on: XoopsModules/gbook/releases/1.0/gbook/admin/entries.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/gbook/releases/1.0/gbook/admin/index.html
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/index.html (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/index.html 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/gbook/releases/1.0/gbook/admin/index.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/index.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/index.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,42 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+require_once '../../../include/cp_header.php';
+include 'admin_header.php';
+xoops_cp_header();
+
+$indexAdmin = new ModuleAdmin();
+
+echo $indexAdmin->addNavigation('index.php');
+echo $indexAdmin->renderIndex();
+
+include "admin_footer.php";
+?>
\ No newline at end of file
Property changes on: XoopsModules/gbook/releases/1.0/gbook/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/gbook/releases/1.0/gbook/admin/menu.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/admin/menu.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/admin/menu.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,54 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+$dirname = basename(dirname(dirname(__FILE__)));
+$module_handler = xoops_gethandler('module');
+$module = $module_handler->getByDirname($dirname);
+$pathIcon32 = $module->getInfo('icons32');
+
+xoops_loadLanguage('admin', $dirname);
+
+$i = 0;
+
+// Index
+$adminmenu[$i]['title'] = _GBOOK_AM_HOME;
+$adminmenu[$i]['link'] = 'admin/index.php';
+$adminmenu[$i]['icon'] = '../../'.$pathIcon32.'/home.png';
+$i++;
+
+$adminmenu[$i]['title'] = _GBOOK_AM_MANAGE_ENTRIES;
+$adminmenu[$i]['link'] = 'admin/entries.php';
+$adminmenu[$i]['icon'] = '../../'.$pathIcon32.'/manage.png';
+
+$i++;
+$adminmenu[$i]['title'] = _GBOOK_AM_ABOUT;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = '../../'.$pathIcon32.'/about.png';
Property changes on: XoopsModules/gbook/releases/1.0/gbook/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/gbook/releases/1.0/gbook/class/entries.php
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/class/entries.php (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/class/entries.php 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,104 @@
+<?php
+/**
+ * ****************************************************************************
+ * GBOOK - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * Ingo H. de Boer (http://www.winshell.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright Ingo H. de Boer (http://www.winshell.org)
+ * @license GNU General Public License (GPL)
+ * @package GBook
+ * @author Ingo H. de Boer (id...@wi...)
+ *
+ * Version : 1.00 Wed 2012/06/13 22:32:57 : Ingo H. de Boer Exp $
+ * ****************************************************************************
+ */
+
+/**
+ * @package kernel
+ * @copyright copyright © 2000 XOOPS.org
+ */
+class gbookEntries extends XoopsObject
+{
+ function __construct()
+ {
+ $this->initVar('id', XOBJ_DTYPE_INT, null, true);
+ $this->initVar('name', XOBJ_DTYPE_TXTBOX);
+ $this->initVar('email', XOBJ_DTYPE_TXTBOX);
+ $this->initVar('url', XOBJ_DTYPE_TXTBOX);
+ $this->initVar('message', XOBJ_DTYPE_TXTAREA);
+ $this->initVar('note', XOBJ_DTYPE_TXTAREA);
+ $this->initVar('time', XOBJ_DTYPE_INT);
+ $this->initVar('date', XOBJ_DTYPE_TXTBOX);
+ $this->initVar('ip', XOBJ_DTYPE_TXTBOX);
+ $this->initVar('admin', XOBJ_DTYPE_TXTBOX);
+ }
+
+ function gbookEntries()
+ {
+ $this->__construct();
+ }
+
+ /**
+ * Get {@link XoopsThemeForm} for adding/editing categories
+ *
+ * @param mixed $action URL to submit to or false for $_SERVER['REQUEST_URI']
+ *
+ * @return object
+ */
+ function getForm($action = false)
+ {
+ if ($action === false) {
+ $action = $_SERVER['REQUEST_URI'];
+ }
+ $title = _GBOOK_AM_ENTRY_EDIT;
+
+ include_once $GLOBALS['xoops']->path('class/xoopsformloader.php');
+
+ $form = new XoopsThemeForm($title, 'form', $action, 'post', true);
+
+ $form->addElement(new XoopsFormText(_GBOOK_AM_NAME, 'name', 35, 255, $this->getVar('name')));
+ $form->addElement(new XoopsFormText(_GBOOK_AM_EMAIL, 'email', 35, 255, $this->getVar('email')));
+ $form->addElement(new XoopsFormText(_GBOOK_AM_URL, 'url', 35, 255, $this->getVar('url')));
+ $form->addElement(new XoopsFormTextArea(_GBOOK_AM_MESSAGE, 'message', $this->getVar('message', 'e')));
+ $form->addElement(new XoopsFormTextArea(_GBOOK_AM_NOTE, 'note', $this->getVar('note', 'e')));
+
+ $form->addElement(new XoopsFormHidden('op', 'save') );
+ $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
+
+ return $form;
+ }
+}
+
+/**
+ * @package kernel
+ * @copyright copyright © 2000 XOOPS.org
+ */
+class gbookEntriesHandler extends XoopsPersistableObjectHandler
+{
+ function gbookEntriesHandler(&$db)
+ {
+ $this->__construct($db);
+ }
+
+ function __construct(&$db)
+ {
+ parent::__construct($db, "gbook_entries", "gbookEntries", "id", "name", "email", "url", "message", "note", "time", "date", "ip", "admin");
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/gbook/releases/1.0/gbook/class/entries.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/gbook/releases/1.0/gbook/class/index.html
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/class/index.html (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/class/index.html 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/gbook/releases/1.0/gbook/docs/changelog.txt
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/docs/changelog.txt (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/docs/changelog.txt 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,4 @@
+Version 1.0
+-------------------
+- first release
+
Added: XoopsModules/gbook/releases/1.0/gbook/docs/credits.txt
===================================================================
--- XoopsModules/gbook/releases/1.0/gbook/docs/credits.txt (rev 0)
+++ XoopsModules/gbook/releases/1.0/gbook/docs/credits.txt 2014-03-16 00:55:50 UTC (rev 12379)
@@ -0,0 +1,4 @@
+Credits
+=========...
[truncated message content] |