|
From: <rgr...@us...> - 2013-09-15 02:32:40
|
Revision: 12053
http://sourceforge.net/p/xoops/svn/12053
Author: rgriffith
Date: 2013-09-15 02:32:35 +0000 (Sun, 15 Sep 2013)
Log Message:
-----------
Update to reworked XMF 1.0 Alpha
Modified Paths:
--------------
XMF/demo/trunk/demo/admin/about.php
XMF/demo/trunk/demo/admin/admin_header.php
XMF/demo/trunk/demo/admin/index.php
XMF/demo/trunk/demo/admin/menu.php
XMF/demo/trunk/demo/docs/changelog.txt
XMF/demo/trunk/demo/include/common.php
XMF/demo/trunk/demo/include/install.inc.php
XMF/demo/trunk/demo/index.php
XMF/demo/trunk/demo/language/english/manifesto.php
XMF/demo/trunk/demo/xoops_version.php
Added Paths:
-----------
XMF/demo/trunk/demo/admin/admin_footer.php
Removed Paths:
-------------
XMF/demo/trunk/demo/admin/summary.php
Modified: XMF/demo/trunk/demo/admin/about.php
===================================================================
--- XMF/demo/trunk/demo/admin/about.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/admin/about.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -11,24 +11,18 @@
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author trabis <lus...@gm...>
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @author Richard Griffith <ri...@ge...>
* @version $Id$
*/
-include_once dirname(__FILE__) . '/admin_header.php';
-xoops_cp_header();
+require dirname(__FILE__) . '/admin_header.php';
-$menu = new Xmf_Template_Adminmenu();
-$menu->display();
+use Xmf\Module\Admin;
+$aboutAdmin = Admin::getInstance();
-$nav = new Xmf_Template_Adminnav();
-$nav->display();
+$aboutAdmin->displayNavigation('about.php');
+//Admin::setPaypal('AQHQ3WJEPNSUY');
+$aboutAdmin->displayAbout(false);
-$about = new Xmf_Template_Adminabout();
-$about->setPaypal('AQHQ3WJEPNSUY');
-$about->setLogoImageUrl('http://www.xuups.com/images/logo.gif');
-$about->setLogoLinkUrl('http://www.xuups.com');
-$about->display();
-
-xoops_cp_footer();
\ No newline at end of file
+require dirname(__FILE__) . '/admin_footer.php';
Added: XMF/demo/trunk/demo/admin/admin_footer.php
===================================================================
--- XMF/demo/trunk/demo/admin/admin_footer.php (rev 0)
+++ XMF/demo/trunk/demo/admin/admin_footer.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -0,0 +1,29 @@
+<?php
+/*
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+if (!\Xmf\Module\Admin::is26()) {
+ $button_path = \Xmf\Module\Admin::iconUrl('xoopsmicrobutton.gif');
+ echo "<div class='adminfooter'>\n" .
+ " <div style='text-align: center;'>" .
+ " <a href='http://www.xoops.org' rel='external'>" .
+ "<img src='{$button_path}' alt='XOOPS' title='XOOPS'></a>\n" .
+ " </div>\n" . " " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . "</div>";
+}
+xoops_cp_footer();
Modified: XMF/demo/trunk/demo/admin/admin_header.php
===================================================================
--- XMF/demo/trunk/demo/admin/admin_header.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/admin/admin_header.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -1,21 +1,36 @@
<?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.
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author trabis <lus...@gm...>
- * @version $Id$
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
*/
-include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
-include_once dirname(dirname(__FILE__)) . '/include/common.php';
-include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
\ No newline at end of file
+$path = dirname(dirname(dirname(dirname(__FILE__))));
+require_once $path . '/mainfile.php';
+require_once $path . '/include/cp_functions.php';
+require_once $path . '/include/cp_header.php';
+
+defined('XMF_EXEC') or die('Please install or activate Xmf');
+
+global $xoopsModule;
+
+$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+
+// Load language files
+//\Xmf\Language::load('admin', $thisModuleDir);
+\Xmf\Language::load('modinfo', $thisModuleDir);
+
+xoops_cp_header();
\ No newline at end of file
Modified: XMF/demo/trunk/demo/admin/index.php
===================================================================
--- XMF/demo/trunk/demo/admin/index.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/admin/index.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -1,25 +1,27 @@
<?php
-include_once dirname(__FILE__) . '/admin_header.php';
-xoops_cp_header();
+/*
+ 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.
-$menu = new Xmf_Template_Adminmenu();
-$menu->display();
+ 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.
+ */
-$nav = new Xmf_Template_Adminnav();
-$nav->display();
+/**
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @author Richard Griffith <ri...@ge...>
+ * @version $Id$
+ */
-$index = new Xmf_Template_Adminindex();
+require dirname(__FILE__) . '/admin_header.php';
-$infoBox = new Xmf_Template_Infobox();
-$infoBox->setTitle('InfoBox');
-$infoBox->addItem('hello');
-$index->addInfoBox($infoBox);
+use Xmf\Module\Admin;
+$indexAdmin = Admin::getInstance();
+$indexAdmin->displayNavigation('index.php');
+Admin::checkModuleVersion('xmf', 100);
+$indexAdmin->displayIndex();
-
-$configBox = new Xmf_Template_ConfigBox();
-$configBox->addItem(XOOPS_ROOT_PATH . '/uploads/demo', 'folder');
-$configBox->addItem(array(XOOPS_ROOT_PATH . '/modules/demo', '0644'), 'chmod');
-$index->addConfigBox($configBox);
-
-$index->display();
-xoops_cp_footer();
\ No newline at end of file
+require dirname(__FILE__) . '/admin_footer.php';
Modified: XMF/demo/trunk/demo/admin/menu.php
===================================================================
--- XMF/demo/trunk/demo/admin/menu.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/admin/menu.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -11,18 +11,28 @@
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @version $Id$
*/
defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined");
-$i = 0;
-$adminmenu[$i]['title'] = _MI_DEMO_ADMENU1;
-$adminmenu[$i]['link'] = "admin/index.php";
-$adminmenu[$i]["icon"] = '../xmf/images/icons/32/home.png';
+// get path to icons
+$pathIcon32='';
+if (class_exists('Xmf\Module\Admin', true)) {
+ $pathIcon32 = \Xmf\Module\Admin::menuIconPath('');
+}
-$i++;
-$adminmenu[$i]['title'] = _MI_DEMO_ADMENU2;
-$adminmenu[$i]['link'] = "admin/summary.php";
-$adminmenu[$i]["icon"] = '../xmf/images/icons/32/view_detailed.png';
+$adminmenu=array();
+// Index
+$adminmenu[] = array(
+ 'title' => _MI_DEMO_ADMENU1 ,
+ 'link' => 'admin/index.php' ,
+ 'icon' => $pathIcon32.'home.png'
+) ;
+// About
+$adminmenu[] = array(
+ 'title' => _MI_DEMO_ADMENU2 ,
+ 'link' => 'admin/about.php' ,
+ 'icon' => $pathIcon32.'about.png'
+) ;
\ No newline at end of file
Deleted: XMF/demo/trunk/demo/admin/summary.php
===================================================================
--- XMF/demo/trunk/demo/admin/summary.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/admin/summary.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -1,66 +0,0 @@
-<?php
-/*
- You may not change or alter any portion of this comment or credits
- of supporting developers from this source code or any supporting source code
- which is considered copyrighted (c) material of the original comment or credit authors.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-/**
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @author trabis <lus...@gm...>
- * @version $Id$
- */
-
-include_once dirname(__FILE__) . '/admin_header.php';
-xoops_cp_header();
-
-$menu = new Xmf_Template_Adminmenu();
-$menu->display();
-
-$nav = new Xmf_Template_Adminnav();
-$nav->display();
-
-$buttonBox = new Xmf_Template_buttonBox();
-$buttonBox->addItem('Front Page', XOOPS_URL);
-$buttonBox->addItem('Self', '#');
-$buttonBox->display();
-
-$buttonBox2 = new Xmf_Template_buttonBox();
-$buttonBox2->setPosition('left');
-$buttonBox2->setDelimiter('<br /><br />');
-$buttonBox2->addItem('Front Page 2', XOOPS_URL, 'delete');
-$buttonBox2->addItem('Self 2', '#', 'delete');
-$buttonBox2->display();
-
-$infoBox = new Xmf_Template_InfoBox();
-$infoBox->setTitle('This is Info Box 1');
-$infoBox->addItem('My first line <br />');
-$infoBox->addItem('My second line');
-$infoBox->addItem($buttonBox->fetch());
-$infoBox->display();
-
-$infoBox2 = new Xmf_Template_InfoBox();
-$infoBox2->setTitle('This is Info Box 2 with InFo Box 1 Inside');
-$infoBox2->addItem($infoBox->fetch());
-echo $infoBox2->fetch(); //same as $infoBox->display();
-
-$configBox = new Xmf_Template_ConfigBox();
-$configBox->setTitle('This is a Config Box');
-$configBox->addItem('just a line');
-$configBox->addItem(XOOPS_ROOT_PATH . '/uploads/demo', 'folder');
-$configBox->addItem(array(XOOPS_ROOT_PATH . '/modules/demo', '0644'), 'chmod');
-$configBox->display();
-
-
-
-
-
-$addto = new Xmf_Template_Addto();
-$addto->display();
-
-xoops_cp_footer();
\ No newline at end of file
Modified: XMF/demo/trunk/demo/docs/changelog.txt
===================================================================
--- XMF/demo/trunk/demo/docs/changelog.txt 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/docs/changelog.txt 2013-09-15 02:32:35 UTC (rev 12053)
@@ -1,3 +1,7 @@
-v0.1 (Trabis) 2011/09/11
+v0.2 2013/08/05
=================================
+- Update to current xmf
+
+v0.1 (Trabis) 2011/09/11
+=================================
- Original Release
Modified: XMF/demo/trunk/demo/include/common.php
===================================================================
--- XMF/demo/trunk/demo/include/common.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/include/common.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -11,7 +11,7 @@
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @since 1.0
* @author trabis <lus...@gm...>
* @version $Id$
@@ -19,11 +19,11 @@
defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined");
-if (!xoops_isActiveModule('xmf')) {
+if (!class_exists('\Xmf\Loader')) {
if (file_exists($file = dirname(dirname(dirname(__FILE__))) . '/xmf/include/bootstrap.php')) {
include_once $file;
- echo 'Please install or reactivate XMF module';
+ trigger_error( 'Please install or reactivate XMF module');
} else {
redirect_header(XOOPS_URL, 5, 'Please install XMF module');
}
-}
\ No newline at end of file
+}
Modified: XMF/demo/trunk/demo/include/install.inc.php
===================================================================
--- XMF/demo/trunk/demo/include/install.inc.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/include/install.inc.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -11,16 +11,16 @@
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @author trabis <lus...@gm...>
* @version $Id$
*/
function xoops_module_pre_install_log($module)
{
- if (!xoops_isActiveModule('xmf')) {
+ if (!class_exists('\Xmf\Loader')) {
$module->setErrors('<b>Please install or reactivate XMF module</b>');
return false;
}
return true;
-}
\ No newline at end of file
+}
Modified: XMF/demo/trunk/demo/index.php
===================================================================
--- XMF/demo/trunk/demo/index.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/index.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -11,33 +11,146 @@
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @author Richard Griffith <ri...@ge...>
* @author trabis <lus...@gm...>
* @version $Id$
*/
-include dirname(dirname(dirname(__FILE__))) . '/mainfile.php';
-include dirname(__FILE__) .'/include/common.php';
+use Xmf\Debug;
+use Xmf\Highlighter;
+use Xmf\Loader;
+use Xmf\Metagen;
+use Xmf\Request;
+use Xmf\Module\Helper;
+use Xmf\Module\Permission;
+use Xmf\Module\Session;
-include XOOPS_ROOT_PATH . '/header.php';
+require_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php';
-$helper = Xmf_Module_Helper::getInstance('demo');
+require_once XOOPS_ROOT_PATH . '/header.php';
+
+if (!class_exists('XoopsThemeForm', true)) {
+ Loader::loadFile(XOOPS_ROOT_PATH.'/class/xoopsformloader.php');
+}
+
+$dir = basename(dirname(__FILE__));
+$helper = Helper::getHelper($dir);
$helper->setDebug(true);
-Xmf_Debug::dump($helper->getObject()->getInfo());
+$helper->loadLanguage('manifesto');
+$helper->loadLanguage('badmanifesto'); //trows error on log because language was not found
-echo $helper->getObject()->getVar('name') . '<br>';
+echo _MA_DEMO_HI . '<br />';
-echo $helper->getConfig('config1') . '<br>';
-echo $helper->getConfig('config2') . '<br>';
-echo $helper->getConfig('config3') . '<br>'; //trows an error on log cause config3 is missing
+echo '<h2>' . _MA_DEMO_SESSION_VAR_TOGGLE . '</h2>';
+// toggle a session variable
+$sessionHelper = new Session();
+if ($sessionHelper) {
+ $sessionHelper->setDebug(true);
+ $var = $sessionHelper->get('fred');
+ if ($var) {
+ echo sprintf(_MA_DEMO_SESSION_VAR_GET, $var) . '<br />';
+ $sessionHelper->destroy();
+ } else {
+ $var = date('Y-m-d H:i:s');
+ echo sprintf(_MA_DEMO_SESSION_VAR_SET, $var) . '<br />';
+ $sessionHelper->set('fred', $var);
+ }
+}
+echo '<h2>' . _MA_DEMO_MODULE_INFO . '</h2>';
-$helper->loadLanguage('badmanifesto'); //trows error on log because language was not found
-$helper->loadLanguage('manifesto');
+echo 'name: ' . $helper->getModule()->getVar('name') . '<br />';
+echo 'mid: ' . $helper->getModule()->getVar('mid') . '<br />';
+echo 'version: ' . $helper->getModule()->getVar('version') . '<br />';
-$helper = Xmf_Module_Helper::getInstance('nomodulehere');
-$helper->setDebug(true);
-$helper->getObject(); //trows an error on log because module was not found */
+echo '<br /><h3>configs:</h3>';
+echo 'config1: ' . $helper->getConfig('config1') . '<br />';
+echo 'config2: ' . $helper->getConfig('config2') . '<br />';
+echo 'config3: ' . $helper->getConfig('config3') . '<br /><br />'; //throws an error on log cause config3 is missing
-include XOOPS_ROOT_PATH . '/footer.php';
+
+$permHelper = new Permission();
+if ($permHelper) {
+
+ // this is the name and item we are going to work with
+ $gperm_name='fred';
+ $gperm_itemid=1;
+
+ // if this is a post operation get our variables
+ if ('POST'==Request::getMethod()) {
+ echo '<h2>$_POST</h2>';
+ Debug::dump($_POST);
+ $helper->addLog($_POST);
+ $name=$permHelper->defaultFieldName($gperm_name, $gperm_itemid);
+ $groups=Request::getVar($name, array(), $hash = 'POST');
+ $permHelper->savePermissionForItem($gperm_name, $gperm_itemid, $groups);
+ }
+
+ $form = new \XoopsThemeForm(_MA_DEMO_FORM_CAPTION, 'form', '', 'POST');
+ $form->addElement(
+ $permHelper->getGroupSelectFormForItem(
+ $gperm_name,
+ $gperm_itemid,
+ _MA_DEMO_PERM_CAPTION,
+ null,
+ true
+ )
+ );
+ $form->addElement(new \XoopsFormButton('', 'submit', _MA_DEMO_FORM_SUBMIT, 'submit'));
+
+ echo $form->render();
+}
+
+echo '<h4>Metagen</h4>';
+$keywords='';
+$description =<<<EOT
+xmf - XOOPS Module Framework
+
+XMF is Copyright © 2011-2013 The XOOPS Project
+
+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.
+
+Some portions of this work are licensed under the GNU Lesser
+General Public License Version 2.1 as published by the Free Software
+Foundation. Such portions are clearly identified in the source files.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License,
+and the GNU Lesser General Public License along with this program.
+If not, see <http://www.gnu.org/licenses/>.
+
+You may contact the copyright holder through
+http://sourceforge.net/projects/xoops/
+EOT;
+$title="Viva la XOOPS!";
+
+$keywords = Metagen::generateKeywords($description, array('XOOPS', 'xmf', 'Maveric'), 25, 4);
+$metadesc = Metagen::generateDescription($description, 50);
+Metagen::assignTitle($title);
+Metagen::assignKeywords($keywords);
+Metagen::assignDescription($metadesc);
+
+//Debug::dump($metaGen->findMetaKeywords($description,5));
+Debug::dump($keywords);
+Debug::dump($metadesc);
+Debug::dump(Metagen::generateSeoTitle($title, false));
+
+echo Highlighter::apply(array('xoops','xmf','GNU'), $description);
+echo '<br /><h2>Debugging Tools</h2>';
+echo '<h4>Dump our module object</h4>';
+Debug::dump($helper->getModule());
+echo '<h4>Show declared classes</h4>';
+Debug::dump(get_declared_classes());
+
+echo '<br /><br />' . _MA_DEMO_GOODBYE . '<br />';
+
+require_once XOOPS_ROOT_PATH . '/footer.php';
Modified: XMF/demo/trunk/demo/language/english/manifesto.php
===================================================================
--- XMF/demo/trunk/demo/language/english/manifesto.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/language/english/manifesto.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -1,3 +1,13 @@
<?php
-define('_MA_DEMO_HI', 'Hello');
-define('_MA_DEMO_GOODBYE', 'Goodbye');
\ No newline at end of file
+define('_MA_DEMO_HI','Hello');
+define('_MA_DEMO_GOODBYE','Goodbye');
+
+define('_MA_DEMO_FORM_CAPTION','Permission example');
+define('_MA_DEMO_PERM_CAPTION','Fred permission');
+define('_MA_DEMO_FORM_SUBMIT','Submit');
+
+define('_MA_DEMO_SESSION_VAR_TOGGLE','Toggling session variable.');
+define('_MA_DEMO_SESSION_VAR_GET','Clearing session variable value of "%s"');
+define('_MA_DEMO_SESSION_VAR_SET','Session variable not set. Setting as: %s');
+
+define('_MA_DEMO_MODULE_INFO','Get some module data');
Modified: XMF/demo/trunk/demo/xoops_version.php
===================================================================
--- XMF/demo/trunk/demo/xoops_version.php 2013-09-15 02:23:27 UTC (rev 12052)
+++ XMF/demo/trunk/demo/xoops_version.php 2013-09-15 02:32:35 UTC (rev 12053)
@@ -11,20 +11,20 @@
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @author trabis <lus...@gm...>
* @version $Id$
*/
$modversion['dirname'] = basename(dirname(__FILE__));
$modversion['name'] = ucfirst(basename(dirname(__FILE__)));
-$modversion['version'] = '0.1';
-$modversion['description'] = 'This is a basic demo of XMF capabilities. There will be many more new features added in the future.';
-$modversion['author'] = "trabis";
+$modversion['version'] = '1.0';
+$modversion['description'] = 'This is a basic demo of XMF capabilities.';
+$modversion['author'] = "geekwright";
$modversion['credits'] = "trabis(www.xuups.com)";
$modversion['help'] = 'page=help';
-$modversion['license'] = "GNU GPL 2.0";
-$modversion['license_url'] = "http://www.gnu.org/licenses/gpl-2.0.html/";
+$modversion['license'] = "GNU GPL 2 or later";
+$modversion['license_url'] = "http://www.gnu.org/licenses/gpl-2.0.html";
$modversion['official'] = 0;
$modversion['image'] = "images/dummy.png";
@@ -36,6 +36,7 @@
// Admin things
$modversion['hasAdmin'] = 1;
+$modversion['system_menu'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";
@@ -59,19 +60,15 @@
// About stuff
$modversion['module_status'] = "Alpha";
$modversion['status'] = "Alpha";
-$modversion['release_date'] = "11/09/2011";
+$modversion['release_date'] = '08/28/2013';
-$modversion['developer_lead'] = "trabis";
-$modversion['developer_website_url'] = "http://www.xuups.com";
-$modversion['developer_website_name'] = "Xuups";
-$modversion['developer_email'] = "lus...@gm...";
+$modversion['developer_lead'] = "geekwright";
+$modversion['developer_website_url'] = "http://xoops.org";
+$modversion['developer_website_name'] = "Xoops";
+$modversion['developer_email'] = "ri...@ge...";
+$modversion['people']['developers'][] = "geekwright";
$modversion['people']['developers'][] = "trabis";
-$modversion['demo_site_url'] = "http://www.xuups.com";
-$modversion['demo_site_name'] = "XOOPS User Utilitites";
-$modversion['support_site_url'] = "http://www.xuups.com/modules/newbb";
-$modversion['support_site_name'] = "Xuups Support Forums";
-
-$modversion['min_xoops'] = "2.4.5";
-$modversion['min_php'] = "5.2";
+$modversion['min_xoops'] = "2.5.6";
+$modversion['min_php'] = "5.3.3";
|