You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <dh...@us...> - 2012-06-19 22:28:15
|
Revision: 9677 http://xoops.svn.sourceforge.net/xoops/?rev=9677&view=rev Author: dhcst Date: 2012-06-19 22:28:09 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/newbb/branches/alfred/newbb/language/english/main.php XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/main.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/main.php 2012-06-19 21:05:06 UTC (rev 9676) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/main.php 2012-06-19 22:28:09 UTC (rev 9677) @@ -7,7 +7,7 @@ define('_MD_SELFORUM','Select a Forum'); define('_MD_THIS_FILE_WAS_ATTACHED_TO_THIS_POST','Attached file:'); define('_MD_ALLOWED_EXTENSIONS','Allowed extensions'); -define('_MD_MAX_FILESIZE','Maximum file size'); +define('_MD_MAX_FILESIZE','Maxium file size'); define('_MD_ATTACHMENT','Attach file'); define('_MD_FILESIZE','Size'); define('_MD_HITS','Hits'); @@ -20,10 +20,10 @@ define('_MD_MARK_READ','read'); define('_MD_ALL_FORUM_MARKED','All forums marked'); define('_MD_ALL_TOPIC_MARKED','All topics marked'); -define('_MD_BOARD_DISCLAIMER','Forum Disclaimer'); +define('_MD_BOARD_DISCLAIMER','Board Disclaimer'); //index.php -define('_MD_ADMINCP','Admin Panel'); +define('_MD_ADMINCP','Admin CP'); define('_MD_FORUM','Forum'); define('_MD_WELCOME','Welcome to %s Forum.'); define('_MD_TOPICS','Topics'); @@ -33,7 +33,7 @@ define('_MD_MODERATOR','Moderator'); define('_MD_NEWPOSTS','New posts'); define('_MD_NONEWPOSTS','No new posts'); -define('_MD_PRIVATEFORUM','Inactive Forum'); +define('_MD_PRIVATEFORUM','Inactiv Forum'); define('_MD_BY','by'); // Posted by define('_MD_TOSTART','To start viewing messages, select the forum that you want to visit from the list below.'); define('_MD_TOTALTOPICSC','Total Topics: '); @@ -69,7 +69,7 @@ //search.php define('_MD_SEARCHALLFORUMS','Search All Forums'); define('_MD_FORUMC','Forum'); -define('_MD_AUTHORC','Author:'); +define('_MD_AUTHORC','Autor:'); define('_MD_SORTBY','Sort by'); define('_MD_DATE','Date'); define('_MD_TOPIC','Topic'); @@ -90,11 +90,11 @@ define('_MD_LEGEND','Legend'); define('_MD_NEXTPAGE','Next Page'); define('_MD_SORTEDBY','Sorted by'); -define('_MD_TOPICTITLE','Topic title'); -define('_MD_NUMBERREPLIES','Number of replies'); -define('_MD_TOPICPOSTER','Topic poster'); +define('_MD_TOPICTITLE','topic title'); +define('_MD_NUMBERREPLIES','number of replies'); +define('_MD_TOPICPOSTER','topic poster'); define('_MD_TOPICTIME','Publish time'); -define('_MD_LASTPOSTTIME','Last post time'); +define('_MD_LASTPOSTTIME','last post time'); define('_MD_ASCENDING','Ascending order'); define('_MD_DESCENDING','Descending order'); define('_MD_FROMLASTHOURS','From last %s hours'); @@ -232,8 +232,8 @@ define('_MD_USERNOEXIST','That user does not exist. Please go back and search again.'); define('_MD_COULDNOTREMOVE','Error - Could not remove posts from the database!'); define('_MD_COULDNOTREMOVETXT','Error - Could not remove post texts!'); -define('_MD_TIMEISUP','You\'ve reached the time limit for editing your post.'); -define('_MD_TIMEISUPDEL','You\'ve reached the time limit for deleting your post.'); +define('_MD_TIMEISUP','Your have reach the timelimit for editing your post.'); +define('_MD_TIMEISUPDEL','Your have reach the timelimit for deleting your post.'); //reply.php define('_MD_ON','on'); //Posted on @@ -380,7 +380,7 @@ //report.php define("_MD_REPORTED", "Thank you for reporting this post/thread! A moderator will look into your report shortly."); -define("_MD_REPORT_ERROR", "Error occurred while sending the report."); +define("_MD_REPORT_ERROR", "Error occured while sending the report."); define("_MD_REPORT_TEXT", "Report message:"); define("_MD_PDF", "Create PDF from Post"); define("_MD_PDF_PAGE", "Page %s"); @@ -418,7 +418,7 @@ define("_MD_SUSPEND_SUBJECT", "User %s is suspended for %d days"); define("_MD_SUSPEND_TEXT", "User %s is suspended for %d days due to:<br />[quote]%s[/quote]<br /><br />The suspension is valid till %s"); define("_MD_SUSPEND_UID", "User ID"); -define("_MD_SUSPEND_IP", "IP suspended (full or partial)"); +define("_MD_SUSPEND_IP", "IP suspended (full or segments)"); define("_MD_SUSPEND_DURATION", "Suspension duration (Days)"); define("_MD_SUSPEND_DESC", "Suspension reason"); define("_MD_SUSPEND_LIST", "Suspension list"); Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php 2012-06-19 21:05:06 UTC (rev 9676) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php 2012-06-19 22:28:09 UTC (rev 9677) @@ -139,9 +139,9 @@ define("_MI_DELETE_TIMELIMIT_DESC", "Set a Time limit for user deleting thier own post. In minutes, 0 for no limit"); define("_MI_POST_TIMELIMIT", "Time limit for consecutively posting"); define("_MI_POST_TIMELIMIT_DESC", "Set a Time limit for consecutively posting. In seconds, 0 for no limit"); -define("_MI_RECORDEDIT_TIMELIMIT", "Time limit for recording edit info"); -define("_MI_RECORDEDIT_TIMELIMIT_DESC", "Set a Time limit for waiving recording edit info. In minutes, 0 for no limit"); -define("_MI_SHOW_REALNAME", "Show Real Name"); +define("_MI_RECORDEDIT_TIMELIMIT", "Timelimit for recording edit info"); +define("_MI_RECORDEDIT_TIMELIMIT_DESC", "Set a Timelimit for waiving recording edit info. In minutes, 0 for no limit"); +define("_MI_SHOW_REALNAME", "Show Realname"); define("_MI_SHOW_REALNAME_DESC", "Replace username with user's real name."); define("_MI_CACHE_ENABLE", "Enable Cache"); define("_MI_CACHE_ENABLE_DESC", "Store some intermediate results in session to save queries"); @@ -232,8 +232,8 @@ define("_MI_SPL_DISABLE", 'disabled'); define("_MI_SPL_ANYONE", 'each'); define("_MI_SPL_MEMBER", 'Members'); -define("_MI_SPL_MODERATOR", 'Moderators'); -define("_MI_SPL_ADMIN", 'Administrators'); +define("_MI_SPL_MODERATOR", 'moderators'); +define("_MI_SPL_ADMIN", 'administrators'); define("_MI_STATISTIK_ENABLE","enable Stats"); define("_MI_STATISTIK_ENABLE_DESC",""); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-06-19 21:05:14
|
Revision: 9676 http://xoops.svn.sourceforge.net/xoops/?rev=9676&view=rev Author: mageg Date: 2012-06-19 21:05:06 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Moving sql tables in the module banner Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.data.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.structure.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/banners.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/clients.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/banner.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/bannerclient.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_banners.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_clients.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/banner.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/bannerclient.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/mysql.sql Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/banner.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/bannerclient.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -72,10 +72,6 @@ $dbm->insert("group_permission", " VALUES(0," . $gruops['XOOPS_GROUP_ADMIN'] . ",15,1,'system_admin')"); $dbm->insert("group_permission", " VALUES(0," . $gruops['XOOPS_GROUP_ADMIN'] . ",16,1,'system_admin')"); $dbm->insert("group_permission", " VALUES(0," . $gruops['XOOPS_GROUP_ADMIN'] . ",17,1,'system_admin')"); - // data for table 'banner' - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, datestart, dateend, htmlbanner, htmlcode, status) VALUES (1, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/xoops_flashbanner2.swf', 'http://www.xoops.org/', " . time() . ", 0, 0, '', 1)"); - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, datestart, dateend, htmlbanner, htmlcode, status) VALUES (2, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/xoops_banner_2.gif', 'http://www.xoops.org/', " . time() . ", 0, 0, '', 1)"); - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, datestart, dateend, htmlbanner, htmlcode, status) VALUES (3, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/banner.swf', 'http://www.xoops.org/', " . time() . ", 0, 0, '', 1)"); // default theme $time = time(); $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Default Template Set', '', " . $time . ")"); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.data.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.data.sql 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.data.sql 2012-06-19 21:05:06 UTC (rev 9676) @@ -10,12 +10,6 @@ # -# Dumping data for table `bannerclient` -# - -INSERT INTO bannerclient VALUES (1,0, 'XOOPS', 'XOOPS Dev Team'); - -# # Dumping data for table `comments` # Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.structure.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.structure.sql 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/sql/mysql.structure.sql 2012-06-19 21:05:06 UTC (rev 9676) @@ -28,43 +28,6 @@ # -------------------------------------------------------- # -# Table structure for table `banner` -# - -CREATE TABLE banner ( - bid smallint(5) unsigned NOT NULL auto_increment, - cid tinyint(3) unsigned NOT NULL default '0', - imptotal int(10) unsigned NOT NULL default '0', - impmade mediumint(8) unsigned NOT NULL default '0', - clicks mediumint(8) unsigned NOT NULL default '0', - imageurl varchar(255) NOT NULL default '', - clickurl varchar(255) NOT NULL default '', - datestart int(10) NOT NULL default '0', - dateend int(10) NOT NULL default '0', - htmlbanner tinyint(1) NOT NULL default '0', - htmlcode text, - status tinyint(1) NOT NULL default '0', - PRIMARY KEY (bid), - KEY idxbannercid (cid), - KEY idxbannerbidcid (bid,cid) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# -# Table structure for table `bannerclient` -# - -CREATE TABLE bannerclient ( - cid smallint(5) unsigned NOT NULL auto_increment, - uid mediumint(8) unsigned NOT NULL default '0', - name varchar(60) NOT NULL default '', - extrainfo text, - PRIMARY KEY (cid), - KEY name (name) -) ENGINE=MyISAM; -# -------------------------------------------------------- - -# # Table structure for table `block_module_link` # Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/banner.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/banner.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/banner.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -1,57 +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. -*/ - -/** - * XOOPS Kernel Class - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @package kernel - * @since 2.6.0 - * @author Gregory Mage (AKA Mage) - * @author trabis <lus...@gm...> - * @version $Id$ - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -class XoopsBanner extends XoopsObject -{ - /** - * Constructor - */ - public function __construct() - { - $this->initVar('bid', XOBJ_DTYPE_INT, null, false, 5); - $this->initVar('cid', XOBJ_DTYPE_INT, null, false, 3); - $this->initVar('imptotal', XOBJ_DTYPE_INT, null, false, 8); - $this->initVar('impmade', XOBJ_DTYPE_INT, null, false, 8); - $this->initVar('clicks', XOBJ_DTYPE_INT, null, false, 8); - $this->initVar('imageurl', XOBJ_DTYPE_TXTBOX, null, false); - $this->initVar('clickurl', XOBJ_DTYPE_TXTBOX, null, false); - $this->initVar('datestart', XOBJ_DTYPE_INT, null, false, 10); - $this->initVar('dateend', XOBJ_DTYPE_INT, null, false, 10); - $this->initVar('htmlbanner', XOBJ_DTYPE_INT, null, false, 1); - $this->initVar('htmlcode', XOBJ_DTYPE_TXTBOX, null, false); - $this->initVar('status', XOBJ_DTYPE_INT, null, false, 1); - } -} - -class XoopsBannerHandler extends XoopsPersistableObjectHandler -{ - /** - * @param null|XoopsDatabase $db - */ - public function __construct(XoopsDatabase $db = null) - { - parent::__construct($db, 'banner', 'XoopsBanner', 'bid', 'imageurl'); - } -} \ No newline at end of file Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/bannerclient.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/bannerclient.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/bannerclient.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -1,49 +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. -*/ - -/** - * XOOPS Kernel Class - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @package kernel - * @since 2.6.0 - * @author Gregory Mage (AKA Mage) - * @author trabis <lus...@gm...> - * @version $Id$ - */ - -defined('XOOPS_ROOT_PATH') or die('XOOPS root path not defined'); - -class XoopsBannerclient extends XoopsObject -{ - /** - * Constructor - */ - public function __construct() - { - $this->initVar('cid', XOBJ_DTYPE_INT, null, false, 5); - $this->initVar('uid', XOBJ_DTYPE_INT, 0, true); - $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false); - $this->initVar('extrainfo', XOBJ_DTYPE_TXTAREA, null, false); - } -} - -class XoopsBannerclientHandler extends XoopsPersistableObjectHandler -{ - /** - * @param null|XoopsDatabase $db - */ - public function __construct(XoopsDatabase $db = null) - { - parent::__construct($db, 'bannerclient', 'XoopsBannerclient', 'cid', 'name'); - } -} \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/banners.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/banners.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/banners.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -33,8 +33,8 @@ // Get Action type $op = $system->cleanVars($_REQUEST, 'op', 'default', 'string'); // Get banners handler -$banner_Handler = $xoops->getHandlerBanner(); -$client_Handler = $xoops->getHandlerBannerclient(); +$banner_Handler = $xoops->getModuleHandler('banner'); +$client_Handler = $xoops->getModuleHandler('bannerclient'); // Call header $xoops->header('banners_admin_banners.html'); @@ -197,24 +197,26 @@ case 'new': $admin_page->addTips(sprintf(_AM_BANNERS_TIPS_BANNERS_FORM1, implode(', ', $mimetypes)) . sprintf(_AM_BANNERS_TIPS_BANNERS_FORM2, $upload_size / 1000)); - $admin_page->addItemButton(_AM_BANNERS_BANNERS_LIST, 'banners.php', 'list'); + $admin_page->addItemButton(_AM_BANNERS_BANNERS_LIST, 'banners.php', 'application-view-detail'); $admin_page->renderTips(); $admin_page->renderButton(); $obj = $banner_Handler->create(); $form = $xoops->getModuleForm($obj, 'banner'); - $xoops->tpl->assign('form', $form->render()); + $form->render(); + $xoops->tpl->assign('form', true); break; case 'edit': $admin_page->addTips(sprintf(_AM_BANNERS_TIPS_BANNERS_FORM1, implode(', ', $mimetypes)) . sprintf(_AM_BANNERS_TIPS_BANNERS_FORM2, $upload_size / 1000)); - $admin_page->addItemButton(_AM_BANNERS_BANNERS_LIST, 'banners.php', 'list'); + $admin_page->addItemButton(_AM_BANNERS_BANNERS_LIST, 'banners.php', 'application-view-detail'); $admin_page->renderTips(); $admin_page->renderButton(); $bid = $system->cleanVars($_REQUEST, 'bid', 0, 'int'); if ($bid > 0) { $obj = $banner_Handler->get($bid); $form = $xoops->getModuleForm($obj, 'banner'); - $xoops->tpl->assign('form', $form->render()); + $form->render(); + $xoops->tpl->assign('form', true); } else { $xoops->redirect('banners.php', 1, _AM_SYSTEM_DBERROR); } @@ -264,12 +266,13 @@ } $xoops->error($obj->getHtmlErrors()); $form = $xoops->getModuleForm($obj, 'banner'); - $xoops->tpl->assign('form', $form->render()); + $form->render(); + $xoops->tpl->assign('form', true); break; case 'delete': $admin_page->addItemButton(_AM_BANNERS_BANNERS_ADD, 'banners.php?op=new', 'add'); - $admin_page->addItemButton(_AM_BANNERS_BANNERS_LIST, 'banners.php', 'list'); + $admin_page->addItemButton(_AM_BANNERS_BANNERS_LIST, 'banners.php', 'application-view-detail'); $admin_page->renderButton(); $bid = $system->cleanVars($_REQUEST, 'bid', 0, 'int'); if ($bid > 0) { @@ -291,6 +294,8 @@ $xoops->error($obj->getHtmlErrors()); } } else { + // Define Stylesheet + $xoops->theme->addStylesheet('modules/system/css/admin.css'); $img = ''; $imageurl = $obj->getVar("imageurl"); if ($obj->getVar("htmlbanner")) { Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/clients.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/clients.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/clients.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -32,8 +32,8 @@ // Get Action type $op = $system->cleanVars($_REQUEST, 'op', 'default', 'string'); // Get banners handler -$banner_Handler = $xoops->getHandlerBanner(); -$client_Handler = $xoops->getHandlerBannerclient(); +$banner_Handler = $xoops->getModuleHandler('banner'); +$client_Handler = $xoops->getModuleHandler('bannerclient'); // Get member handler $member_handler = $xoops->getHandlerMember(); // Call header @@ -109,24 +109,26 @@ case 'new': $admin_page->addTips(_AM_BANNERS_TIPS_CLIENTS_ADDEDIT); - $admin_page->addItemButton(_AM_BANNERS_CLIENTS_LIST, 'clients.php', 'list'); + $admin_page->addItemButton(_AM_BANNERS_CLIENTS_LIST, 'clients.php', 'application-view-detail'); $admin_page->renderTips(); $admin_page->renderButton(); $obj = $client_Handler->create(); $form = $xoops->getModuleForm($obj, 'bannerclient'); - $xoops->tpl->assign('form', $form->render()); + $form->render(); + $xoops->tpl->assign('form', true); break; case 'edit': $admin_page->addTips(_AM_BANNERS_TIPS_CLIENTS_ADDEDIT); - $admin_page->addItemButton(_AM_BANNERS_CLIENTS_LIST, 'clients.php', 'list'); + $admin_page->addItemButton(_AM_BANNERS_CLIENTS_LIST, 'clients.php', 'application-view-detail'); $admin_page->renderTips(); $admin_page->renderButton(); $cid = $system->cleanVars($_REQUEST, 'cid', 0, 'int'); if ($cid > 0) { $obj = $client_Handler->get($cid); $form = $xoops->getModuleForm($obj, 'bannerclient'); - $xoops->tpl->assign('form', $form->render()); + $form->render(); + $xoops->tpl->assign('form', true); } else { $xoops->redirect('clients.php', 1, _AM_SYSTEM_DBERROR); } @@ -154,12 +156,13 @@ } $xoops->error($obj->getHtmlErrors()); $form = $xoops->getModuleForm($obj, 'bannerclient'); - $xoops->tpl->assign('form', $form->render()); + $form->render(); + $xoops->tpl->assign('form', true); break; case 'delete': $admin_page->addItemButton(_AM_BANNERS_CLIENTS_ADD, 'clients.php?op=new', 'add'); - $admin_page->addItemButton(_AM_BANNERS_CLIENTS_LIST, 'clients.php', 'list'); + $admin_page->addItemButton(_AM_BANNERS_CLIENTS_LIST, 'clients.php', 'application-view-detail'); $admin_page->renderButton(); $cid = $system->cleanVars($_REQUEST, 'cid', 0, 'int'); if ($cid > 0) { @@ -190,7 +193,9 @@ $xoops->error($obj->getHtmlErrors()); } } else { - $xoops->confirm(array("ok" => 1, "cid" => $cid, "op" => "delete"), 'clients.php', sprintf(_AM_BANNERS_CLIENTS_SUREDEL, $obj->getVar("name"))); + // Define Stylesheet + $xoops->theme->addStylesheet('modules/system/css/admin.css'); + $xoops->confirm(array("ok" => 1, "cid" => $cid, "op" => "delete"), 'clients.php', sprintf(_AM_BANNERS_CLIENTS_SUREDEL, $obj->getVar("name")) . '<br />'); } } else { $xoops->redirect('clients.php', 1, _AM_SYSTEM_DBERROR); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/index.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/index.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -21,21 +21,21 @@ */ include dirname(__FILE__) . '/header.php'; // Get banners handler -$banners_Handler = $xoops->getHandlerBanner(); -$banners_client_Handler = $xoops->getHandlerBannerclient(); +$banner_Handler = $xoops->getModuleHandler('banner'); +$client_Handler = $xoops->getModuleHandler('bannerclient'); // heaser $xoops->header(); // banners $criteria = new CriteriaCompo(); $criteria->add(new Criteria('status', 0, '!=')); -$banners_banner = $banners_Handler->getCount($criteria); +$banners_banner = $banner_Handler->getCount($criteria); // banner clients $criteria = new CriteriaCompo(); -$banners_client = $banners_client_Handler->getCount($criteria); +$banners_client = $client_Handler->getCount($criteria); // banner finish $criteria = new CriteriaCompo(); $criteria->add(new Criteria('status', 0)); -$banners_finish = $banners_Handler->getCount($criteria); +$banners_finish = $banner_Handler->getCount($criteria); // folder path $folder_path = XOOPS_ROOT_PATH . '/uploads/banners'; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/banner.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/banner.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/banner.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -0,0 +1,56 @@ +<?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. +*/ + +/** + * banners module + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package banners + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class BannersBanner extends XoopsObject +{ + /** + * Constructor + */ + public function __construct() + { + $this->initVar('bid', XOBJ_DTYPE_INT, null, false, 5); + $this->initVar('cid', XOBJ_DTYPE_INT, null, false, 3); + $this->initVar('imptotal', XOBJ_DTYPE_INT, null, false, 8); + $this->initVar('impmade', XOBJ_DTYPE_INT, null, false, 8); + $this->initVar('clicks', XOBJ_DTYPE_INT, null, false, 8); + $this->initVar('imageurl', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('clickurl', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('datestart', XOBJ_DTYPE_INT, null, false, 10); + $this->initVar('dateend', XOBJ_DTYPE_INT, null, false, 10); + $this->initVar('htmlbanner', XOBJ_DTYPE_INT, null, false, 1); + $this->initVar('htmlcode', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('status', XOBJ_DTYPE_INT, null, false, 1); + } +} + +class BannersBannerHandler extends XoopsPersistableObjectHandler +{ + /** + * @param null|XoopsDatabase $db + */ + public function __construct(XoopsDatabase $db = null) + { + parent::__construct($db, 'banner', 'bannersbanner', 'bid', 'imageurl'); + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/banner.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/bannerclient.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/bannerclient.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/bannerclient.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -0,0 +1,48 @@ +<?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. +*/ + +/** + * banners module + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package banners + * @since 2.6.0 + * @author Mage Gr\xE9gory (AKA Mage) + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('XOOPS root path not defined'); + +class BannersBannerclient extends XoopsObject +{ + /** + * Constructor + */ + public function __construct() + { + $this->initVar('cid', XOBJ_DTYPE_INT, null, false, 5); + $this->initVar('uid', XOBJ_DTYPE_INT, 0, true); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('extrainfo', XOBJ_DTYPE_TXTAREA, null, false); + } +} + +class BannersBannerclientHandler extends XoopsPersistableObjectHandler +{ + /** + * @param null|XoopsDatabase $db + */ + public function __construct(XoopsDatabase $db = null) + { + parent::__construct($db, 'bannerclient', 'bannersbannerclient', 'cid', 'name'); + } +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/bannerclient.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/banner.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/banner.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/banner.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -27,7 +27,7 @@ /** * @param XoopsBanner|XoopsObject $obj */ - public function __construct(XoopsBanner &$obj) + public function __construct(BannersBanner &$obj) { $xoops = Xoops::getInstance(); @@ -53,7 +53,7 @@ parent::__construct($title, 'form', 'banners.php', 'post', true); $this->setExtra('enctype="multipart/form-data"'); - $client_Handler = $xoops->getHandlerBannerclient(); + $client_Handler = $xoops->getModuleHandler('bannerclient'); $client_select = new XoopsFormSelect( _AM_BANNERS_CLIENTS_NAME, 'cid', $obj->getVar('cid') ); $client_select->addOptionArray($client_Handler->getList()); $this->addElement($client_select, true); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/bannerclient.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/bannerclient.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/form/bannerclient.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -27,7 +27,7 @@ /** * @param XoopsBannerClient|XoopsObject $obj */ - public function __construct(XoopsBannerClient &$obj) + public function __construct(BannersBannerClient &$obj) { $title = $obj->isNew() ? sprintf( _AM_BANNERS_CLIENTS_ADD ) : sprintf( _AM_BANNERS_CLIENTS_EDIT ); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/include/install.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/include/install.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/include/install.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -91,6 +91,13 @@ $banner_Handler->insert($obj); } } + // data for table 'banner' + /*$sql = "DELETE FROM " . $xoops->db->prefix("config") . " WHERE `conf_name` = 'banners'";*/ + $dbm = new XoopsDatabaseManager(); + //$xoops->db->queryF($sql); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, datestart, dateend, htmlbanner, htmlcode, status) VALUES (1, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/xoops_flashbanner2.swf', 'http://www.xoops.org/', " . time() . ", 0, 0, '', 1)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, datestart, dateend, htmlbanner, htmlcode, status) VALUES (2, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/xoops_banner_2.gif', 'http://www.xoops.org/', " . time() . ", 0, 0, '', 1)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, datestart, dateend, htmlbanner, htmlcode, status) VALUES (3, 1, 0, 1, 0, '" . XOOPS_URL . "/uploads/banners/banner.swf', 'http://www.xoops.org/', " . time() . ", 0, 0, '', 1)"); return true; } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/index.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/index.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -27,8 +27,8 @@ // Get main instance $system = System::getInstance(); // Get banners handler -$banner_Handler = $xoops->getHandlerBanner(); -$client_Handler = $xoops->getHandlerBannerclient(); +$banner_Handler = $xoops->getModuleHandler('banner'); +$client_Handler = $xoops->getModuleHandler('bannerclient'); // Get member handler $member_handler = $xoops->getHandlerMember(); // Parameters Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql ___________________________________________________________________ Added: tsvn:autoprops + *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL; Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/index.html 2012-06-19 21:05:06 UTC (rev 9676) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/mysql.sql =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/mysql.sql (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/sql/mysql.sql 2012-06-19 21:05:06 UTC (rev 9676) @@ -0,0 +1,42 @@ +# +# Table structure for table `banner` +# + +CREATE TABLE banner ( + bid smallint(5) unsigned NOT NULL auto_increment, + cid tinyint(3) unsigned NOT NULL default '0', + imptotal int(10) unsigned NOT NULL default '0', + impmade mediumint(8) unsigned NOT NULL default '0', + clicks mediumint(8) unsigned NOT NULL default '0', + imageurl varchar(255) NOT NULL default '', + clickurl varchar(255) NOT NULL default '', + datestart int(10) NOT NULL default '0', + dateend int(10) NOT NULL default '0', + htmlbanner tinyint(1) NOT NULL default '0', + htmlcode text, + status tinyint(1) NOT NULL default '0', + PRIMARY KEY (bid), + KEY idxbannercid (cid), + KEY idxbannerbidcid (bid,cid) +) ENGINE=MyISAM; +# -------------------------------------------------------- + +# +# Table structure for table `bannerclient` +# + +CREATE TABLE bannerclient ( + cid smallint(5) unsigned NOT NULL auto_increment, + uid mediumint(8) unsigned NOT NULL default '0', + name varchar(60) NOT NULL default '', + extrainfo text, + PRIMARY KEY (cid), + KEY name (name) +) ENGINE=MyISAM; +# -------------------------------------------------------- + +# +# Dumping data for table `bannerclient` +# + +INSERT INTO bannerclient VALUES (1,0, 'XOOPS', 'XOOPS Dev Team'); \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_banners.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_banners.html 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_banners.html 2012-06-19 21:05:06 UTC (rev 9676) @@ -101,5 +101,5 @@ <{/if}> <!-- Display form (add,edit) --> <{if $form}> -<div class="spacer"><{$form}></div> +<{includeq file="module:system|system_form.html"}> <{/if}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_clients.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_clients.html 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/templates/admin/banners_admin_clients.html 2012-06-19 21:05:06 UTC (rev 9676) @@ -76,5 +76,5 @@ <{/if}> <!-- Display form (add,edit) --> <{if $form}> -<div class="spacer"><{$form}></div> +<{includeq file="module:system|system_form.html"}> <{/if}> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/xoops_version.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -32,6 +32,7 @@ $modversion['help'] = 'page=help'; $modversion['image'] = 'images/logo.png'; $modversion['dirname'] = 'banners'; + //about $modversion['release_date'] = '2011/01/02'; $modversion['module_website_url'] = 'http://www.xoops.org/'; @@ -62,10 +63,13 @@ // Templates $modversion['templates'][] = array( 'file' => 'banners_client.html', 'description' => '' ); -// Admin Templates -$modversion['templates'][] = array('file' => 'banners_admin_banners.html', 'description' => '', 'type' => 'admin'); -$modversion['templates'][] = array('file' => 'banners_admin_clients.html', 'description' => '', 'type' => 'admin'); +// Mysql file +$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; +// Tables created by sql file (without prefix!) +$modversion['tables'][1] = "banner"; +$modversion['tables'][2] = "bannerclient"; + // blocks $i = 0; $modversion['blocks'][$i]['file'] = 'banners_blocks.php'; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php 2012-06-19 20:38:24 UTC (rev 9675) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php 2012-06-19 21:05:06 UTC (rev 9676) @@ -33,9 +33,9 @@ protected $_reservedTables = array( 'avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups', - 'groups_users_link', 'group_permission', 'online', 'bannerclient', 'banner', 'bannerfinish', 'priv_msgs', + 'groups_users_link', 'group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', - 'xoopsnotifications', 'banner', 'bannerclient', 'bannerfinish' + 'xoopsnotifications', ); public function __construct() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-19 20:38:31
|
Revision: 9675 http://xoops.svn.sourceforge.net/xoops/?rev=9675&view=rev Author: beckmi Date: 2012-06-19 20:38:24 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Fixing English translations Modified Paths: -------------- XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php XoopsModules/newbb/branches/alfred/newbb/language/english/main.php XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php 2012-06-19 15:12:44 UTC (rev 9674) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/admin.php 2012-06-19 20:38:24 UTC (rev 9675) @@ -7,7 +7,7 @@ //%%%%%% File Name index.php %%%%% define("_AM_NEWBB_FORUMCONF", "Forum Configuration"); define("_AM_NEWBB_ADDAFORUM", "Add a Forum"); -define("_AM_NEWBB_SYNCFORUM", "Sync forum"); +define("_AM_NEWBB_SYNCFORUM", "Sync Forum"); define("_AM_NEWBB_REORDERFORUM", "Reorder"); define("_AM_NEWBB_FORUM_MANAGER", "Forums"); define("_AM_NEWBB_PRUNE_TITLE", "Prune"); @@ -35,12 +35,12 @@ define("_AM_NEWBB_POSTSAVED", "Post has been saved"); define("_AM_NEWBB_POSTNOTSAVED", "Post has NOT been saved"); define("_AM_NEWBB_TOPICAPPROVED", "Topic has been approved"); -define("_AM_NEWBB_TOPICNOTAPPROVED", "Topic has been NOT approved"); +define("_AM_NEWBB_TOPICNOTAPPROVED", "Topic has NOT been approved"); define("_AM_NEWBB_TOPICID", "Topic ID"); define("_AM_NEWBB_ORPHAN_TOPICS_FOR_AUTH", "Unapproved topics authorization"); -define('_AM_NEWBB_DEL_ONE','Delete only this message'); +define('_AM_NEWBB_DEL_ONE','Delete only this post'); define('_AM_NEWBB_POSTSDELETED','Selected post deleted.'); -define('_AM_NEWBB_NOAPPROVEPOST','There are presently no posts waiting approval.'); +define('_AM_NEWBB_NOAPPROVEPOST','There are presently no posts waiting for approval.'); define('_AM_NEWBB_SUBJECTC','Subject:'); define('_AM_NEWBB_MESSAGEICON','Message Icon:'); define('_AM_NEWBB_MESSAGEC','Message:'); @@ -57,12 +57,12 @@ define('_AM_NEWBB_NOTWRITABLE','<font color="red">Not writable</font>'); define('_AM_NEWBB_IMAGEMAGICK','ImageMagicK:'); define('_AM_NEWBB_IMAGEMAGICK_NOTSET','Not set'); -define('_AM_NEWBB_ATTACHPATH','Path for attachment storing'); +define('_AM_NEWBB_ATTACHPATH','Path for attachment storage'); define('_AM_NEWBB_THUMBPATH','Path for attached image thumbs'); //define('_AM_NEWBB_RSSPATH','Path for RSS feed'); define('_AM_NEWBB_REPORT','Reported posts'); define('_AM_NEWBB_REPORT_PENDING','Pending report'); -define('_AM_NEWBB_REPORT_PROCESSED','processed report'); +define('_AM_NEWBB_REPORT_PROCESSED','Processed report'); define('_AM_NEWBB_CREATETHEDIR','Create it'); define('_AM_NEWBB_SETMPERM','Set the permission'); define('_AM_NEWBB_DIRCREATED','The directory has been created'); @@ -91,7 +91,7 @@ define("_AM_NEWBB_EDITTHISFORUM", "Editing Forum:"); define("_AM_NEWBB_SET_FORUMORDER", "Set Forum Position:"); define("_AM_NEWBB_ALLOWPOLLS", "Allow Polls:"); -define("_AM_NEWBB_ATTACHMENT_SIZE" ,"Max Size in kb`s:"); +define("_AM_NEWBB_ATTACHMENT_SIZE" ,"Max Size in KB`s:"); define("_AM_NEWBB_ALLOWED_EXTENSIONS", "Allowed Extensions:<span style='font-size: xx-small; font-weight: normal; display: block;'>'*' indicates no limititations.<br /> Extensions delimited by '|'</span>"); define("_AM_NEWBB_ALLOW_ATTACHMENTS", "Allow Attachments:"); define("_AM_NEWBB_ALLOWHTML", "Allow HTML:"); @@ -156,8 +156,8 @@ define("_AM_NEWBB_REORDERID", "ID"); define("_AM_NEWBB_REORDERTITLE", "Title"); define("_AM_NEWBB_REORDERWEIGHT", "Position"); -define("_AM_NEWBB_SETFORUMORDER", "Set Board Ordering"); -define("_AM_NEWBB_BOARDREORDER", "The Board has reordered to your specification"); +define("_AM_NEWBB_SETFORUMORDER", "Set Forum Ordering"); +define("_AM_NEWBB_BOARDREORDER", "The Forum has been reordered to your specification"); // admin_permission.php define("_AM_NEWBB_PERMISSIONS_TO_THIS_FORUM", "Topic permissions for this Forum"); @@ -192,7 +192,7 @@ define ("_AM_NEWBB_PRUNE_RESULTS_POSTS", "Pruned Posts"); define ("_AM_NEWBB_PRUNE_RESULTS_FORUMS", "Pruned Forums"); define ("_AM_NEWBB_PRUNE_STORE", "Store posts in this forum instead of deleting them"); -define ("_AM_NEWBB_PRUNE_ARCHIVE", "Make a copy of posts into Archive"); +define ("_AM_NEWBB_PRUNE_ARCHIVE", "Save a copy of posts to Archive"); define ("_AM_NEWBB_PRUNE_FORUMSELERROR", "You forgot to select forum(s) to prune"); define ("_AM_NEWBB_PRUNE_DAYS", "Remove topics without replies in:"); define ("_AM_NEWBB_PRUNE_FORUMS", "Forums to be pruned"); @@ -213,7 +213,7 @@ define ("_AM_NEWBB_PRUNE_2YEARS", "2 Years"); // About.php constants -define('_AM_NEWBB_AUTHOR_INFO', "Author Informations"); +define('_AM_NEWBB_AUTHOR_INFO', "Author Information"); define('_AM_NEWBB_AUTHOR_NAME', "Author"); define('_AM_NEWBB_AUTHOR_WEBSITE', "Author's website"); define('_AM_NEWBB_AUTHOR_EMAIL', "Author's email"); @@ -236,7 +236,7 @@ define("_AM_NEWBB_PROCESSREPORT", "View new reports"); define("_AM_NEWBB_REPORTTITLE", "Report title"); define("_AM_NEWBB_REPORTEXTRA", "Extra"); -define("_AM_NEWBB_REPORTPOST", "Reported post"); +define("_AM_NEWBB_REPORTPOST", "Report post"); define("_AM_NEWBB_REPORTTEXT", "Report text"); define("_AM_NEWBB_REPORTMEMO", "Process memo"); @@ -252,18 +252,18 @@ define("_AM_NEWBB_VOTE_USER", "User"); define("_AM_NEWBB_VOTE_IP", "IP Address"); define("_AM_NEWBB_VOTE_USERAVG", "Average User Rating"); -define("_AM_NEWBB_VOTE_TOTALRATE", "Total Ratings"); +define("_AM_NEWBB_VOTE_TOTALRATE", "Total Rating"); define("_AM_NEWBB_VOTE_DATE", "Submitted"); define("_AM_NEWBB_VOTE_RATING", "Rating"); define("_AM_NEWBB_VOTE_NOREGVOTES", "No Registered User Votes"); define("_AM_NEWBB_VOTE_NOUNREGVOTES", "No Unregistered User Votes"); -define("_AM_NEWBB_VOTEDELETED", "Vote data deleted."); +define("_AM_NEWBB_VOTEDELETED", "Voting data deleted."); define("_AM_NEWBB_VOTE_ID", "ID"); define("_AM_NEWBB_VOTE_FILETITLE", "Thread Title"); define("_AM_NEWBB_VOTE_DISPLAYVOTES", "Voting Data Information"); define("_AM_NEWBB_VOTE_NOVOTES", "No User Votes to display"); -define("_AM_NEWBB_VOTE_DELETE", "No User Votes to display"); -define("_AM_NEWBB_VOTE_DELETEDSC", "<strong>Deletes</strong> the chosen vote information from the database."); +define("_AM_NEWBB_VOTE_DELETE", "No User Votes to delete"); +define("_AM_NEWBB_VOTE_DELETEDSC", "<strong>Deletes</strong> the selected voting information from the database."); // admin_type_manager.php define("_AM_NEWBB_TYPE_ADD", "Add types"); @@ -276,7 +276,7 @@ define("_AM_NEWBB_TYPE_ORDER", "Order"); define("_AM_NEWBB_TYPE_LIST", "Type list"); define("_AM_NEWBB_TODEL_TYPE", "Are you sure to delete the types: [%s]?"); -define("_AM_NEWBB_TYPE_EDITFORUM_DESC", "The data have not been saved yet. You must submit to save them."); +define("_AM_NEWBB_TYPE_EDITFORUM_DESC", "The data have not been saved yet. You must submit to save it."); define("_AM_NEWBB_TYPE_ORDER_DESC", "To activate a type for a forum, a value greater than 0 is required for 'type_order'; In other words, a type will be inactive for a forum if 'type_order' is set to 0."); // admin_synchronization.php @@ -287,11 +287,11 @@ define("_AM_NEWBB_SYNC_TYPE_STATS", "Stats Info"); define("_AM_NEWBB_SYNC_TYPE_MISC", "MISC"); define("_AM_NEWBB_SYNC_ITEMS", "Items for each loop: "); -define("_AM_NEWBB_ALLOW_SUBJECT_PREFIX", "Thread prefixes allow?"); +define("_AM_NEWBB_ALLOW_SUBJECT_PREFIX", "Allow Thread prefixes?"); define("_AM_NEWBB_ALLOW_SUBJECT_PREFIX_DESC", "This allows for prefixes that are added to the topic name."); -define("_AM_NEWBB_GROUPMOD_TITLE","add moderators per group"); +define("_AM_NEWBB_GROUPMOD_TITLE","Add moderators per group"); define("_AM_NEWBB_GROUPMOD_TITLEDESC","Allows you to enter, users of certain groups as moderators"); -define("_AM_NEWBB_GROUPMOD_ALLFORUMS","all forums"); +define("_AM_NEWBB_GROUPMOD_ALLFORUMS","All forums"); define("_AM_NEWBB_GROUPMOD_ADDMOD","Moderators have been successfully registered."); -define("_AM_NEWBB_GROUPMOD_ERRMOD","You have a Error!"); +define("_AM_NEWBB_GROUPMOD_ERRMOD","You have an Error!"); ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/main.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/main.php 2012-06-19 15:12:44 UTC (rev 9674) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/main.php 2012-06-19 20:38:24 UTC (rev 9675) @@ -7,7 +7,7 @@ define('_MD_SELFORUM','Select a Forum'); define('_MD_THIS_FILE_WAS_ATTACHED_TO_THIS_POST','Attached file:'); define('_MD_ALLOWED_EXTENSIONS','Allowed extensions'); -define('_MD_MAX_FILESIZE','Maxium file size'); +define('_MD_MAX_FILESIZE','Maximum file size'); define('_MD_ATTACHMENT','Attach file'); define('_MD_FILESIZE','Size'); define('_MD_HITS','Hits'); @@ -20,10 +20,10 @@ define('_MD_MARK_READ','read'); define('_MD_ALL_FORUM_MARKED','All forums marked'); define('_MD_ALL_TOPIC_MARKED','All topics marked'); -define('_MD_BOARD_DISCLAIMER','Board Disclaimer'); +define('_MD_BOARD_DISCLAIMER','Forum Disclaimer'); //index.php -define('_MD_ADMINCP','Admin CP'); +define('_MD_ADMINCP','Admin Panel'); define('_MD_FORUM','Forum'); define('_MD_WELCOME','Welcome to %s Forum.'); define('_MD_TOPICS','Topics'); @@ -33,7 +33,7 @@ define('_MD_MODERATOR','Moderator'); define('_MD_NEWPOSTS','New posts'); define('_MD_NONEWPOSTS','No new posts'); -define('_MD_PRIVATEFORUM','Inactiv Forum'); +define('_MD_PRIVATEFORUM','Inactive Forum'); define('_MD_BY','by'); // Posted by define('_MD_TOSTART','To start viewing messages, select the forum that you want to visit from the list below.'); define('_MD_TOTALTOPICSC','Total Topics: '); @@ -69,7 +69,7 @@ //search.php define('_MD_SEARCHALLFORUMS','Search All Forums'); define('_MD_FORUMC','Forum'); -define('_MD_AUTHORC','Autor:'); +define('_MD_AUTHORC','Author:'); define('_MD_SORTBY','Sort by'); define('_MD_DATE','Date'); define('_MD_TOPIC','Topic'); @@ -90,11 +90,11 @@ define('_MD_LEGEND','Legend'); define('_MD_NEXTPAGE','Next Page'); define('_MD_SORTEDBY','Sorted by'); -define('_MD_TOPICTITLE','topic title'); -define('_MD_NUMBERREPLIES','number of replies'); -define('_MD_TOPICPOSTER','topic poster'); +define('_MD_TOPICTITLE','Topic title'); +define('_MD_NUMBERREPLIES','Number of replies'); +define('_MD_TOPICPOSTER','Topic poster'); define('_MD_TOPICTIME','Publish time'); -define('_MD_LASTPOSTTIME','last post time'); +define('_MD_LASTPOSTTIME','Last post time'); define('_MD_ASCENDING','Ascending order'); define('_MD_DESCENDING','Descending order'); define('_MD_FROMLASTHOURS','From last %s hours'); @@ -232,8 +232,8 @@ define('_MD_USERNOEXIST','That user does not exist. Please go back and search again.'); define('_MD_COULDNOTREMOVE','Error - Could not remove posts from the database!'); define('_MD_COULDNOTREMOVETXT','Error - Could not remove post texts!'); -define('_MD_TIMEISUP','Your have reach the timelimit for editing your post.'); -define('_MD_TIMEISUPDEL','Your have reach the timelimit for deleting your post.'); +define('_MD_TIMEISUP','You\'ve reached the time limit for editing your post.'); +define('_MD_TIMEISUPDEL','You\'ve reached the time limit for deleting your post.'); //reply.php define('_MD_ON','on'); //Posted on @@ -380,7 +380,7 @@ //report.php define("_MD_REPORTED", "Thank you for reporting this post/thread! A moderator will look into your report shortly."); -define("_MD_REPORT_ERROR", "Error occured while sending the report."); +define("_MD_REPORT_ERROR", "Error occurred while sending the report."); define("_MD_REPORT_TEXT", "Report message:"); define("_MD_PDF", "Create PDF from Post"); define("_MD_PDF_PAGE", "Page %s"); @@ -418,7 +418,7 @@ define("_MD_SUSPEND_SUBJECT", "User %s is suspended for %d days"); define("_MD_SUSPEND_TEXT", "User %s is suspended for %d days due to:<br />[quote]%s[/quote]<br /><br />The suspension is valid till %s"); define("_MD_SUSPEND_UID", "User ID"); -define("_MD_SUSPEND_IP", "IP segments (full or segments)"); +define("_MD_SUSPEND_IP", "IP suspended (full or partial)"); define("_MD_SUSPEND_DURATION", "Suspension duration (Days)"); define("_MD_SUSPEND_DESC", "Suspension reason"); define("_MD_SUSPEND_LIST", "Suspension list"); Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php 2012-06-19 15:12:44 UTC (rev 9674) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php 2012-06-19 20:38:24 UTC (rev 9675) @@ -120,9 +120,9 @@ define("_MI_ENABLE_KARMA", "Enable karma requirement"); define("_MI_ENABLE_KARMA_DESC", "This allows user to set a karma requirement for other users reading his/her post"); define("_MI_KARMA_OPTIONS", "Karma options for post"); -define("_MI_KARMA_OPTIONS_DESC", "Use ',' as delimer for multi-options."); +define("_MI_KARMA_OPTIONS_DESC", "Use ',' as delimiter for multi-options."); define("_MI_SINCE_OPTIONS", "'Since' options for 'viewform' and 'search'"); -define("_MI_SINCE_OPTIONS_DESC", "Positive value for days and negative value for hours. Use ',' as delimer for multi-options."); +define("_MI_SINCE_OPTIONS_DESC", "Positive value for days and negative value for hours. Use ',' as delimiter for multi-options."); define("_MI_SINCE_DEFAULT", "'Since' default value"); define("_MI_SINCE_DEFAULT_DESC", "Default value if not specified by users. 0 - from beginning"); define("_MI_MODERATOR_HTML", "Allow HTML tags for moderators"); @@ -130,7 +130,7 @@ define("_MI_USER_ANONYMOUS", "Allow registered users to post anonymously"); define("_MI_USER_ANONYMOUS_DESC", "This allows a logged in user to post anonymously"); define("_MI_ANONYMOUS_PRE", "Prefix for anonymous user"); -define("_MI_ANONYMOUS_PRE_DESC", "This will add a prefix to the anonymous username whilst posting"); +define("_MI_ANONYMOUS_PRE_DESC", "This will add a prefix to the anonymous username while posting"); define("_MI_REQUIRE_REPLY", "Allow requiring reply to read a post"); define("_MI_REQUIRE_REPLY_DESC", "This feature forces readers to reply to the original posters post before being able to read the original"); define("_MI_EDIT_TIMELIMIT", "Time limit for edit a post"); @@ -139,9 +139,9 @@ define("_MI_DELETE_TIMELIMIT_DESC", "Set a Time limit for user deleting thier own post. In minutes, 0 for no limit"); define("_MI_POST_TIMELIMIT", "Time limit for consecutively posting"); define("_MI_POST_TIMELIMIT_DESC", "Set a Time limit for consecutively posting. In seconds, 0 for no limit"); -define("_MI_RECORDEDIT_TIMELIMIT", "Timelimit for recording edit info"); -define("_MI_RECORDEDIT_TIMELIMIT_DESC", "Set a Timelimit for waiving recording edit info. In minutes, 0 for no limit"); -define("_MI_SHOW_REALNAME", "Show Realname"); +define("_MI_RECORDEDIT_TIMELIMIT", "Time limit for recording edit info"); +define("_MI_RECORDEDIT_TIMELIMIT_DESC", "Set a Time limit for waiving recording edit info. In minutes, 0 for no limit"); +define("_MI_SHOW_REALNAME", "Show Real Name"); define("_MI_SHOW_REALNAME_DESC", "Replace username with user's real name."); define("_MI_CACHE_ENABLE", "Enable Cache"); define("_MI_CACHE_ENABLE_DESC", "Store some intermediate results in session to save queries"); @@ -232,8 +232,8 @@ define("_MI_SPL_DISABLE", 'disabled'); define("_MI_SPL_ANYONE", 'each'); define("_MI_SPL_MEMBER", 'Members'); -define("_MI_SPL_MODERATOR", 'moderators'); -define("_MI_SPL_ADMIN", 'administrators'); +define("_MI_SPL_MODERATOR", 'Moderators'); +define("_MI_SPL_ADMIN", 'Administrators'); define("_MI_STATISTIK_ENABLE","enable Stats"); define("_MI_STATISTIK_ENABLE_DESC",""); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-19 15:12:56
|
Revision: 9674 http://xoops.svn.sourceforge.net/xoops/?rev=9674&view=rev Author: beckmi Date: 2012-06-19 15:12:44 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Updating to 3.03 Final Modified Paths: -------------- XoopsModules/xlanguage/trunk/xlanguage/admin/about.php XoopsModules/xlanguage/trunk/xlanguage/admin/index.php XoopsModules/xlanguage/trunk/xlanguage/admin/langform.inc.php XoopsModules/xlanguage/trunk/xlanguage/admin/menu.php XoopsModules/xlanguage/trunk/xlanguage/api.php XoopsModules/xlanguage/trunk/xlanguage/blocks/xlanguage_blocks.php XoopsModules/xlanguage/trunk/xlanguage/class/language.php XoopsModules/xlanguage/trunk/xlanguage/images/albania.gif XoopsModules/xlanguage/trunk/xlanguage/images/austria.gif XoopsModules/xlanguage/trunk/xlanguage/images/belgium.gif XoopsModules/xlanguage/trunk/xlanguage/images/brazil.gif XoopsModules/xlanguage/trunk/xlanguage/images/canada.gif XoopsModules/xlanguage/trunk/xlanguage/images/cyprus.gif XoopsModules/xlanguage/trunk/xlanguage/images/czech.gif XoopsModules/xlanguage/trunk/xlanguage/images/danish.gif XoopsModules/xlanguage/trunk/xlanguage/images/english.gif XoopsModules/xlanguage/trunk/xlanguage/images/french.gif XoopsModules/xlanguage/trunk/xlanguage/images/german.gif XoopsModules/xlanguage/trunk/xlanguage/images/greece.gif XoopsModules/xlanguage/trunk/xlanguage/images/ireland.gif XoopsModules/xlanguage/trunk/xlanguage/images/italian.gif XoopsModules/xlanguage/trunk/xlanguage/images/korea.gif XoopsModules/xlanguage/trunk/xlanguage/images/lebanon.gif XoopsModules/xlanguage/trunk/xlanguage/images/luxemburg.gif XoopsModules/xlanguage/trunk/xlanguage/images/malta.gif XoopsModules/xlanguage/trunk/xlanguage/images/mexico.gif XoopsModules/xlanguage/trunk/xlanguage/images/nederlands.gif XoopsModules/xlanguage/trunk/xlanguage/images/noflag.gif XoopsModules/xlanguage/trunk/xlanguage/images/norway.gif XoopsModules/xlanguage/trunk/xlanguage/images/poland.gif XoopsModules/xlanguage/trunk/xlanguage/images/russia.gif XoopsModules/xlanguage/trunk/xlanguage/images/slovakia.gif XoopsModules/xlanguage/trunk/xlanguage/images/spanish.gif XoopsModules/xlanguage/trunk/xlanguage/images/sweden.gif XoopsModules/xlanguage/trunk/xlanguage/images/swiss.gif XoopsModules/xlanguage/trunk/xlanguage/images/turkey.gif XoopsModules/xlanguage/trunk/xlanguage/images/usa.gif XoopsModules/xlanguage/trunk/xlanguage/include/functions.php XoopsModules/xlanguage/trunk/xlanguage/language/english/admin.php XoopsModules/xlanguage/trunk/xlanguage/language/english/modinfo.php XoopsModules/xlanguage/trunk/xlanguage/preloads/core.php XoopsModules/xlanguage/trunk/xlanguage/readme.txt XoopsModules/xlanguage/trunk/xlanguage/templates/blocks/xlanguage_block.html XoopsModules/xlanguage/trunk/xlanguage/xlanguage_logo.png XoopsModules/xlanguage/trunk/xlanguage/xoops_version.php Added Paths: ----------- XoopsModules/xlanguage/trunk/xlanguage/admin/about2.php XoopsModules/xlanguage/trunk/xlanguage/admin/admin_footer.php XoopsModules/xlanguage/trunk/xlanguage/admin/admin_header.php XoopsModules/xlanguage/trunk/xlanguage/admin/main.php XoopsModules/xlanguage/trunk/xlanguage/docs/ XoopsModules/xlanguage/trunk/xlanguage/docs/changelog.txt XoopsModules/xlanguage/trunk/xlanguage/docs/credits.txt XoopsModules/xlanguage/trunk/xlanguage/docs/index.html XoopsModules/xlanguage/trunk/xlanguage/docs/install.txt XoopsModules/xlanguage/trunk/xlanguage/docs/lang_diff.txt XoopsModules/xlanguage/trunk/xlanguage/docs/licence.txt XoopsModules/xlanguage/trunk/xlanguage/docs/readme.txt XoopsModules/xlanguage/trunk/xlanguage/extra/ XoopsModules/xlanguage/trunk/xlanguage/extra/index.html XoopsModules/xlanguage/trunk/xlanguage/extra/readme.txt XoopsModules/xlanguage/trunk/xlanguage/extra/smarty-plugin-xoLanguage.zip XoopsModules/xlanguage/trunk/xlanguage/images/china.gif XoopsModules/xlanguage/trunk/xlanguage/images/japan.gif XoopsModules/xlanguage/trunk/xlanguage/images/taiwan(Republic of China).gif XoopsModules/xlanguage/trunk/xlanguage/language/english/help/ XoopsModules/xlanguage/trunk/xlanguage/language/english/help/help.html XoopsModules/xlanguage/trunk/xlanguage/language/english/help/index.html XoopsModules/xlanguage/trunk/xlanguage/language/italian/ XoopsModules/xlanguage/trunk/xlanguage/language/italian/italian/ XoopsModules/xlanguage/trunk/xlanguage/language/italian/italian/admin.php XoopsModules/xlanguage/trunk/xlanguage/language/italian/italian/blocks.php XoopsModules/xlanguage/trunk/xlanguage/language/italian/italian/index.html XoopsModules/xlanguage/trunk/xlanguage/language/italian/italian/modinfo.php XoopsModules/xlanguage/trunk/xlanguage/language/tchinese_utf8/ XoopsModules/xlanguage/trunk/xlanguage/language/tchinese_utf8/admin.php XoopsModules/xlanguage/trunk/xlanguage/language/tchinese_utf8/blocks.php XoopsModules/xlanguage/trunk/xlanguage/language/tchinese_utf8/index.html XoopsModules/xlanguage/trunk/xlanguage/language/tchinese_utf8/modinfo.php XoopsModules/xlanguage/trunk/xlanguage/readme.tchinese.txt Removed Paths: ------------- XoopsModules/xlanguage/trunk/xlanguage/images/japanese.gif XoopsModules/xlanguage/trunk/xlanguage/images/schinese.gif XoopsModules/xlanguage/trunk/xlanguage/images/taiwan.gif XoopsModules/xlanguage/trunk/xlanguage/images/tchinese.gif XoopsModules/xlanguage/trunk/xlanguage/images/unknown.gif XoopsModules/xlanguage/trunk/xlanguage/language/tchinese/ XoopsModules/xlanguage/trunk/xlanguage/readme.schinese.txt Modified: XoopsModules/xlanguage/trunk/xlanguage/admin/about.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/about.php 2012-06-19 14:53:13 UTC (rev 9673) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/about.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -1,84 +1,29 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://www.xoops.org.cn // -// ------------------------------------------------------------------------- // -include '../../../include/cp_header.php'; -include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; -xoops_cp_header(); -$myts = &MyTextSanitizer::getInstance(); - -$module_handler =& xoops_gethandler('module'); -$versioninfo =& $module_handler->get($xoopsModule->getVar('mid')); - -// Left headings... -echo "<a href='index.php'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule -> dirname() . "/" . $versioninfo -> getInfo('image') . "' alt='' hspace='10' vspace='0' align='left'></a>"; -echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . " ver " . $versioninfo->getInfo('version') . "</div>"; -echo "</div>"; -echo "<div>" . _MI_XLANG_RELEASE . ": " . $versioninfo -> getInfo('releasedate') . "</div>"; - -// Author Information -$sform = new XoopsThemeForm(_MI_XLANG_AUTHOR_INFO, "", ""); -if ( $versioninfo->getInfo('author_realname')) - $author_name = $versioninfo->getInfo('author') . " (" . $versioninfo->getInfo('author_realname') . ")"; -else - $author_name = $versioninfo->getInfo('author'); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_NAME, $author_name)); -$author_sites = $versioninfo -> getInfo('author_website'); -$author_site_info = ""; -foreach($author_sites as $site){ - $author_site_info .= "<a href='" . $site['url'] . "' target='blank'>" . $site['name'] . "</a>; "; -} -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_WEBSITE, $author_site_info)); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_EMAIL, "<a href='mailto:" . $versioninfo -> getInfo('author_email') . "'>" . $versioninfo -> getInfo('author_email') . "</a>")); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_CREDITS, $versioninfo -> getInfo('credits'))); -$sform -> display(); - -$sform = new XoopsThemeForm(_MI_XLANG_MODULE_INFO, "", ""); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_STATUS, $versioninfo -> getInfo('status'))); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_XOOPSVERSION, $versioninfo -> getInfo('xoopsversion'))); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_DEMO, "<a href='" . $versioninfo -> getInfo('demo_site_url') . "' target='blank'>" . $versioninfo -> getInfo('demo_site_name') . "</a>")); -$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_SUPPORT, "<a href='" . $versioninfo -> getInfo('support_site_url') . "' target='blank'>" . $versioninfo -> getInfo('support_site_name') . "</a>")); -$sform -> display(); - -$file = "../bugfixlist.txt"; -if (@file_exists($file)) -{ - $fp = @fopen($file, "r"); - $bugtext = @fread($fp, filesize($file)); - @fclose($file); - $sform = new XoopsThemeForm(_MI_XLANG_AUTHOR_BUGFIXES, "", ""); - ob_start(); - echo "<div class='even' align='left'>".$myts->displayTarea($bugtext)."</div>"; - $sform -> addElement(new XoopsFormLabel('', ob_get_contents(), 0)); - ob_end_clean(); - $sform -> display(); - unset($file); -} - -xoops_cp_footer(); -?> \ No newline at end of file +<?php +/** + * xLanguage module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package xlanguage + * @since 2.0 + * @author XOOPS Development Team + * @version $Id $ + **/ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/xlanguage/trunk/xlanguage/admin/about2.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/about2.php (rev 0) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/about2.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -0,0 +1,84 @@ +<?php +// $Id: about2.php 8203 2011-11-07 03:55:46Z beckmi $ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // +include '../../../include/cp_header.php'; +include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; +xoops_cp_header(); +$myts = &MyTextSanitizer::getInstance(); + +$module_handler =& xoops_gethandler('module'); +$versioninfo =& $module_handler->get($xoopsModule->getVar('mid')); + +// Left headings... +echo "<a href='index.php'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule -> dirname() . "/" . $versioninfo -> getInfo('image') . "' alt='' hspace='10' vspace='0' align='left'></a>"; +echo "<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo->getInfo('name') . " ver " . $versioninfo->getInfo('version') . "</div>"; +echo "</div>"; +echo "<div>" . _MI_XLANG_RELEASE . ": " . $versioninfo -> getInfo('releasedate') . "</div>"; + +// Author Information +$sform = new XoopsThemeForm(_MI_XLANG_AUTHOR_INFO, "", ""); +if ( $versioninfo->getInfo('author_realname')) + $author_name = $versioninfo->getInfo('author') . " (" . $versioninfo->getInfo('author_realname') . ")"; +else + $author_name = $versioninfo->getInfo('author'); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_NAME, $author_name)); +$author_sites = $versioninfo -> getInfo('author_website'); +$author_site_info = ""; +foreach($author_sites as $site){ + $author_site_info .= "<a href='" . $site['url'] . "' target='blank'>" . $site['name'] . "</a>; "; +} +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_WEBSITE, $author_site_info)); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_EMAIL, "<a href='mailto:" . $versioninfo -> getInfo('author_email') . "'>" . $versioninfo -> getInfo('author_email') . "</a>")); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_AUTHOR_CREDITS, $versioninfo -> getInfo('credits'))); +$sform -> display(); + +$sform = new XoopsThemeForm(_MI_XLANG_MODULE_INFO, "", ""); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_STATUS, $versioninfo -> getInfo('status'))); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_XOOPSVERSION, $versioninfo -> getInfo('xoopsversion'))); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_DEMO, "<a href='" . $versioninfo -> getInfo('demo_site_url') . "' target='blank'>" . $versioninfo -> getInfo('demo_site_name') . "</a>")); +$sform -> addElement(new XoopsFormLabel(_MI_XLANG_MODULE_SUPPORT, "<a href='" . $versioninfo -> getInfo('support_site_url') . "' target='blank'>" . $versioninfo -> getInfo('support_site_name') . "</a>")); +$sform -> display(); + +$file = "../bugfixlist.txt"; +if (@file_exists($file)) +{ + $fp = @fopen($file, "r"); + $bugtext = @fread($fp, filesize($file)); + @fclose($file); + $sform = new XoopsThemeForm(_MI_XLANG_AUTHOR_BUGFIXES, "", ""); + ob_start(); + echo "<div class='even' align='left'>".$myts->displayTarea($bugtext)."</div>"; + $sform -> addElement(new XoopsFormLabel('', ob_get_contents(), 0)); + ob_end_clean(); + $sform -> display(); + unset($file); +} + +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xlanguage/trunk/xlanguage/admin/admin_footer.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/admin_footer.php (rev 0) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/admin_footer.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -0,0 +1,10 @@ +<?php + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xlanguage/trunk/xlanguage/admin/admin_header.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/admin_header.php (rev 0) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/admin_header.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -0,0 +1,46 @@ +<?php +/** + * XoopsPartners module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license:: {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package:: XoopsPartners + * @subpackage:: admin + * @since:: 2.5.0 + * @author:: XOOPS Team + * @version:: $Id $ +**/ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_XLANG_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/xlanguage/trunk/xlanguage/admin/index.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/index.php 2012-06-19 14:53:13 UTC (rev 9673) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/index.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -1,213 +1,37 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://www.xoops.org.cn // -// ------------------------------------------------------------------------- // -include '../../../include/cp_header.php'; - -include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php'); -include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php'); - -$op = ""; -if ( isset( $_POST ) ){ - foreach ( $_POST as $k => $v ) { - ${$k} = $v; - } -} -if ( isset( $_GET ) ){ - foreach ( $_GET as $k => $v ) { - ${$k} = $v; - } -} - -define("XLANG_CONFIG_LINK","<a href='index.php' target='_self'>"._AM_XLANG_CONFIG."</a>"); - -$GLOBALS['xlanguage_handler'] =& xoops_getmodulehandler('language', 'xlanguage'); -$GLOBALS['xlanguage_handler']->loadConfig(); - -switch ( $op ) -{ - case "del": - if (!isset($_POST['ok']) || $_POST['ok'] != 1 ){ - xoops_cp_header(); - echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; - xoops_confirm( array( 'op' => 'del', 'type' => $_GET['type'], 'lang_id' => intval( $_GET['lang_id'] ), 'ok' => 1 ), 'index.php', _AM_XLANG_DELETE_CFM ); - }else{ - if(isset($type)&&$type=='ext') $isBase = false; - else $isBase = true; - $lang =& $GLOBALS['xlanguage_handler']->get($lang_id, $isBase); - $GLOBALS['xlanguage_handler']->delete($lang); - redirect_header("index.php",2,_AM_XLANG_DELETED); - } - break; - - case "save": - if(isset($type)&&$type=='ext') $isBase = false; - else $isBase = true; - if(isset($lang_id)&&$lang_id>0){ - $lang =& $GLOBALS['xlanguage_handler']->get($lang_id, $isBase); - }else{ - $lang =& $GLOBALS['xlanguage_handler']->create(true, $isBase); - } - $lang_name = preg_replace("/[^a-zA-Z0-9\_\-]/", "", $lang_name); - - $lang->setVar('lang_name',$lang_name); - $lang->setVar('lang_desc',$lang_desc); - $lang->setVar('lang_code',$lang_code); - $lang->setVar('lang_charset',$lang_charset); - $lang->setVar('lang_image',$lang_image); - if(!$isBase){ - $lang->setVar('lang_base',$lang_base); - } - $lang->setVar('weight',$weight); - $GLOBALS['xlanguage_handler']->insert($lang); - redirect_header("index.php",2,_AM_XLANG_SAVED); - break; - - case "edit": - xoops_cp_header(); - echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; - echo "<br />"; - echo "<h4>" . _AM_XLANG_EDITLANG . "</h4>"; - if(isset($type)&&$type=='ext') $isBase = false; - else $isBase = true; - if(isset($lang_id)&&$lang_id>0){ - $lang =& $GLOBALS['xlanguage_handler']->get($lang_id, $isBase); - }elseif(isset($lang_name)){ - $lang =& $GLOBALS['xlanguage_handler']->getByName($lang_name, $isBase); - }else{ - $lang =& $GLOBALS['xlanguage_handler']->create(true, $isBase); - } - $lang_name = $lang->getVar('lang_name'); - $lang_desc = $lang->getVar('lang_desc'); - $lang_code = $lang->getVar('lang_code'); - $lang_charset = $lang->getVar('lang_charset'); - $lang_image = $lang->getVar('lang_image'); - $weight = $lang->getVar('weight'); - if(!$isBase){ - $lang_base = $lang->getVar('lang_base'); - } - include "langform.inc.php"; - break; - - case "add": - xoops_cp_header(); - echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; - echo "<br />"; - echo "<h4>" . _AM_XLANG_ADDLANG . "</h4>"; - if(isset($type)&&$type=='ext') $isBase = false; - else $isBase = true; - $lang_name = ''; - $lang_desc = ''; - $lang_code = ''; - $lang_charset = ''; - $lang_image = ''; - $weight = 1; - $lang_base = ''; - include "langform.inc.php"; - break; - - case 'createconfig': - xlanguage_createConfig(); - redirect_header( 'index.php', 1, _AM_XLANG_CREATED ); - exit(); - break; - - case "default": - default: - xoops_cp_header(); - echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; - languageList(); - $configfile_status = (@is_readable(XLANGUAGE_CONFIG_FILE))?_AM_XLANG_CONFIGOK:_AM_XLANG_CONFIGNOTOK; - echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">"; - echo " - <b><a href='index.php?op=add&type=base'>" . _AM_XLANG_ADDBASE . "</a></b><br /><br />\n"; - echo " - <b><a href='index.php?op=add&type=ext'>" . _AM_XLANG_ADDEXT . "</a></b><br /><br />\n"; - echo " - <b>".$configfile_status."</b>: ".XLANGUAGE_CONFIG_FILE." (<a href='index.php?op=createconfig' title='"._AM_XLANG_CREATECONFIG."'>" . _AM_XLANG_CREATECONFIG . "</a>)<br /><br />\n"; - echo " - <b><a href='about.php'>" . _AM_XLANG_ABOUT . "</a></b>"; - echo"</td></tr></table>"; - break; -} -xoops_cp_footer(); - - -function languageList() -{ - $lang_list =& $GLOBALS['xlanguage_handler']->getAllList(); - if ( is_array($lang_list)&&count( $lang_list ) > 0 ){ - echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">"; - echo "<div style='text-align: center;'><b>" . _AM_XLANG_LANGLIST . "</b><br />"; - echo "<table width='100%' border='1'><tr class='bg2'><td align='center'>" . _AM_XLANG_DESC . "</td><td align='center'>" . _AM_XLANG_NAME . "</td><td align='center'>" . _AM_XLANG_CHARSET . "</td><td align='center'>" . _AM_XLANG_CODE . "</td><td align='center'>" . _AM_XLANG_IMAGE . "</td><td align='center'>" . _AM_XLANG_WEIGHT . "</td><td align='center'>" . _AM_XLANG_BASE . "</td><td align='center'>" . _EDIT . "</td><td align='center'>" . _DELETE . "</td></tr>\n"; - foreach( array_keys($lang_list) as $lang_name ) { - $lang =& $lang_list[$lang_name]; - $isOrphan = true; - if(isset($lang['base'])){ - echo "<tr>\n"; - echo "<td>" . $lang['base'] -> getVar('lang_desc') . "</td>\n"; - echo "<td><b>" . $lang['base'] -> getVar('lang_name') . "</b></td>\n"; - echo "<td><b>" . $lang['base'] -> getVar('lang_charset') . "</b></td>\n"; - echo "<td>" . $lang['base'] -> getVar('lang_code') . "</td>\n"; - if(is_readable(XOOPS_ROOT_PATH.'/modules/xlanguage/images/'.$lang['base'] -> getVar('lang_image'))){ - $lang_image = $lang['base'] -> getVar('lang_image'); - }else{ - $lang_image = 'noflag.gif'; - } - echo "<td><img src='" . XOOPS_URL.'/modules/xlanguage/images/'.$lang_image . "' alt='".$lang['base'] -> getVar('lang_desc')."' /></td>\n"; - echo "<td>" . $lang['base'] -> getVar('weight') . "</td>\n"; - echo "<td>Ø</td>\n"; - echo "<td><a href='index.php?op=edit&type=base&lang_id=" . $lang['base'] -> getVar('lang_id') . "'>" . _EDIT . "</a></td>\n"; - echo "<td><a href='index.php?op=del&type=base&lang_id=" . $lang['base'] -> getVar('lang_id') . "'>" . _DELETE ."</td>\n"; - echo "</tr>\n"; - $isOrphan = false; - } - if(!isset($lang['ext'])||count($lang['ext'])<1) continue; - foreach($lang['ext'] as $ext){ - echo "<tr>\n"; - echo "<td>" . $ext -> getVar('lang_desc') . "</td>\n"; - echo "<td>" . $ext -> getVar('lang_name') . "</td>\n"; - echo "<td><b>" . $ext -> getVar('lang_charset') . "</b></td>\n"; - echo "<td>" . $ext -> getVar('lang_code') . "</td>\n"; - if(is_readable(XOOPS_ROOT_PATH.'/modules/xlanguage/images/'.$ext -> getVar('lang_image'))){ - $lang_image = $ext -> getVar('lang_image'); - }else{ - $lang_image = 'noflag.gif'; - } - echo "<td><img src='" . XOOPS_URL.'/modules/xlanguage/images/'.$lang_image . "' alt='".$ext -> getVar('lang_desc')."' /></td>\n"; - echo "<td>" . $ext -> getVar('weight') . "</td>\n"; - $lang_base = ($isOrphan)?"<font color='red'>".$ext -> getVar('lang_base')."</font>":$ext -> getVar('lang_base'); - echo "<td><b>" . $lang_base . "</b></td>\n"; - echo "<td><a href='index.php?op=edit&type=ext&lang_id=" . $ext -> getVar('lang_id') . "'>" . _EDIT . "</a></td>\n"; - echo "<td><a href='index.php?op=del&type=ext&lang_id=" . $ext -> getVar('lang_id') . "'>" . _DELETE ."</td>\n"; - echo "</tr>\n"; - } - echo "<tr><td colspan='9' height='2px'></td></tr>\n"; - } - echo "</table></div>\n"; - echo"</td></tr></table>"; - echo "<br />"; - } -} -?> +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +include '../../../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 Modified: XoopsModules/xlanguage/trunk/xlanguage/admin/langform.inc.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/langform.inc.php 2012-06-19 14:53:13 UTC (rev 9673) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/langform.inc.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -33,17 +33,28 @@ if($isBase){ $lang_select = new XoopsFormSelect(_AM_XLANG_NAME, 'lang_name', $lang_name); - $lang_select->addOptionArray($GLOBALS['xlanguage_handler']->getXoopsLangList()); + $lang_select->addOptionArray($xlanguage_handler->getXoopsLangList()); $sform->addElement($lang_select, true); }else{ $sform->addElement(new XoopsFormText(_AM_XLANG_NAME, 'lang_name', 50, 255, $lang_name), true); } $sform->addElement(new XoopsFormText(_AM_XLANG_DESC, 'lang_desc', 50, 255, $lang_desc)); -$sform->addElement(new XoopsFormText(_AM_XLANG_CHARSET, 'lang_charset', 50, 255, $lang_charset), true); -$sform->addElement(new XoopsFormText(_AM_XLANG_CODE, 'lang_code', 50, 255, $lang_code), true); + + +//$sform->addElement(new XoopsFormText(_AM_XLANG_CHARSET, 'lang_charset', 50, 255, $lang_charset), true); +$lang_charset = new XoopsFormText(_AM_XLANG_CHARSET, 'lang_charset', 50, 255, $lang_charset); +$lang_charset->setDescription(_AM_XLANG_CHARSET_DESC); +$sform->addElement($lang_charset, true); + +//$sform->addElement(new XoopsFormText(_AM_XLANG_CODE, 'lang_code', 50, 255, $lang_code), true); +$lang_code = new XoopsFormText(_AM_XLANG_CODE, 'lang_charset', 50, 255, $lang_code); +$lang_code->setDescription(_AM_XLANG_CODE_DESC); +$sform->addElement($lang_code, true); + + if(!$isBase){ - $baseList =& $GLOBALS['xlanguage_handler']->getAll(); + $baseList =& $xlanguage_handler->getAll(); $base_list = array(); foreach($baseList as $base => $baselang){ $base_list[$base] = $base; Added: XoopsModules/xlanguage/trunk/xlanguage/admin/main.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/main.php (rev 0) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/main.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -0,0 +1,245 @@ +<?php +// $Id: main.php 8586 2011-12-27 12:03:19Z beckmi $ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // +include '../../../include/cp_header.php'; +include_once 'admin_header.php'; + +include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php'); +include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php'); + +$op = ""; +if ( isset( $_POST ) ){ + foreach ( $_POST as $k => $v ) { + ${$k} = $v; + } +} +if ( isset( $_GET ) ){ + foreach ( $_GET as $k => $v ) { + ${$k} = $v; + } +} + +define("XLANG_CONFIG_LINK","<a href='main.php' target='_self'>"._AM_XLANG_CONFIG."</a>"); + +$xlanguage_handler =& xoops_getmodulehandler('language', 'xlanguage'); +$xlanguage_handler->loadConfig(); + +switch ( $op ) +{ + case "del": + if (!isset($_POST['ok']) || $_POST['ok'] != 1 ){ + xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation('main.php'); +// echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; + xoops_confirm( array( 'op' => 'del', 'type' => $_GET['type'], 'lang_id' => intval( $_GET['lang_id'] ), 'ok' => 1 ), 'main.php', _AM_XLANG_DELETE_CFM ); + }else{ + if(isset($type)&&$type=='ext') $isBase = false; + else $isBase = true; + $lang =& $xlanguage_handler->get($lang_id, $isBase); + $xlanguage_handler->delete($lang); + redirect_header("main.php",2,_AM_XLANG_DELETED); + } + break; + + case "save": + if(isset($type)&&$type=='ext') $isBase = false; + else $isBase = true; + if(isset($lang_id)&&$lang_id>0){ + $lang =& $xlanguage_handler->get($lang_id, $isBase); + }else{ + $lang =& $xlanguage_handler->create(true, $isBase); + } + $lang_name = preg_replace("/[^a-zA-Z0-9\_\-]/", "", $lang_name); + + $lang->setVar('lang_name',$lang_name); + $lang->setVar('lang_desc',$lang_desc); + $lang->setVar('lang_code',$lang_code); + $lang->setVar('lang_charset',$lang_charset); + $lang->setVar('lang_image',$lang_image); + if(!$isBase){ + $lang->setVar('lang_base',$lang_base); + } + $lang->setVar('weight',$weight); + $xlanguage_handler->insert($lang); + redirect_header("index.php",2,_AM_XLANG_SAVED); + break; + + case "edit": + xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation('main.php'); + // echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; + // echo "<br />"; + echo "<h4>" . _AM_XLANG_EDITLANG . "</h4>"; + if(isset($type)&&$type=='ext') $isBase = false; + else $isBase = true; + if(isset($lang_id)&&$lang_id>0){ + $lang =& $xlanguage_handler->get($lang_id, $isBase); + }elseif(isset($lang_name)){ + $lang =& $xlanguage_handler->getByName($lang_name, $isBase); + }else{ + $lang =& $xlanguage_handler->create(true, $isBase); + } + $lang_name = $lang->getVar('lang_name'); + $lang_desc = $lang->getVar('lang_desc'); + $lang_code = $lang->getVar('lang_code'); + $lang_charset = $lang->getVar('lang_charset'); + $lang_image = $lang->getVar('lang_image'); + $weight = $lang->getVar('weight'); + if(!$isBase){ + $lang_base = $lang->getVar('lang_base'); + } + include "langform.inc.php"; + break; + + case "add": + xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +// echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; +// echo "<br />"; +// echo "<h4>" . _AM_XLANG_ADDLANG . "</h4>"; + if(isset($type)&&$type=='ext') { + $isBase = false; + echo $aboutAdmin->addNavigation('main.php?op=add&type=ext'); } + else { + $isBase = true; + echo $aboutAdmin->addNavigation('main.php?op=add&type=base'); + } + $lang_name = ''; + $lang_desc = ''; + $lang_code = ''; + $lang_charset = ''; + $lang_image = ''; + $weight = 1; + $lang_base = ''; + include "langform.inc.php"; + break; + + case 'createconfig': + xlanguage_createConfig(); + redirect_header( 'main.php', 1, _AM_XLANG_CREATED ); + exit(); + break; + + case "default": + default: + xoops_cp_header(); +$mainAdmin = new ModuleAdmin(); +echo $mainAdmin->addNavigation('main.php'); + + + // if (TDMDownloads_checkModuleAdmin()){ + // $mainAdmin = new ModuleAdmin(); + // echo $mainAdmin->addNavigation('downloads.php'); + $mainAdmin->addItemButton(_MI_XLANGUAGE_ADMENU1, 'main.php?op=add&type=base', 'add'); + $mainAdmin->addItemButton(_MI_XLANGUAGE_ADMENU2, 'main.php?op=add&type=ext', 'insert_table_row'); + + echo $mainAdmin->renderButton(); +// } + +// echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; + languageList(); + $configfile_status = (@is_readable(XLANGUAGE_CONFIG_FILE))?_AM_XLANG_CONFIGOK:_AM_XLANG_CONFIGNOTOK; + echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\"><br />"; +// echo " - <b><a href='index.php?op=add&type=base'>" . _AM_XLANG_ADDBASE . "</a></b><br /><br />\n"; +// echo " - <b><a href='index.php?op=add&type=ext'>" . _AM_XLANG_ADDEXT . "</a></b><br /><br />\n"; + echo "<b>".$configfile_status."</b>: ".XLANGUAGE_CONFIG_FILE." (<a href='main.php?op=createconfig' title='"._AM_XLANG_CREATECONFIG."'>" . _AM_XLANG_CREATECONFIG . "</a>)<br /><br />\n"; +// echo " - <b><a href='about.php'>" . _AM_XLANG_ABOUT . "</a></b>"; + echo"</td></tr></table>"; + break; +} +xoops_cp_footer(); + + +function languageList() +{ + global $xlanguage_handler, $xoopsModule; + +global $pathIcon16; + + $lang_list =& $xlanguage_handler->getAllList(); + if ( is_array($lang_list)&&count( $lang_list ) > 0 ){ + echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">"; + echo "<div style='text-align: center;'><b><h4>" . _AM_XLANG_LANGLIST . "</h4></b><br />"; + echo "<table class='outer' width='100%' border='0' cellpadding='0' cellspacing='0' ><tr class='bg2'><th align='center'>" . _AM_XLANG_DESC . "</th><th align='center'>" . _AM_XLANG_NAME . "</th><th align='center'>" . _AM_XLANG_CHARSET . "</th><th align='center'>" . _AM_XLANG_CODE . "</th><th align='center'>" . _AM_XLANG_IMAGE . "</th><th align='center'>" . _AM_XLANG_WEIGHT . "</th><th align='center'>" . _AM_XLANG_BASE . "</th><th align='center'>" . _AM_XLANG_ACTION . "</th></tr>\n"; + $class = 'even'; + foreach( array_keys($lang_list) as $lang_name ) { + $lang =& $lang_list[$lang_name]; + $isOrphan = true; + if(isset($lang['base'])){ + echo "<tr>\n"; + echo "<td class='$class' >" . $lang['base'] -> getVar('lang_desc') . "</td>\n"; + echo "<td class='$class' ><b>" . $lang['base'] -> getVar('lang_name') . "</b></td>\n"; + echo "<td class='$class' ><b>" . $lang['base'] -> getVar('lang_charset') . "</b></td>\n"; + echo "<td class='$class' >" . $lang['base'] -> getVar('lang_code') . "</td>\n"; + if(is_readable(XOOPS_ROOT_PATH.'/modules/xlanguage/images/'.$lang['base'] -> getVar('lang_image'))){ + $lang_image = $lang['base'] -> getVar('lang_image'); + }else{ + $lang_image = 'noflag.gif'; + } + echo "<td class='$class' ><img src='" . XOOPS_URL.'/modules/xlanguage/images/'.$lang_image . "' alt='".$lang['base'] -> getVar('lang_desc')."' /></td>\n"; + echo "<td class='$class' >" . $lang['base'] -> getVar('weight') . "</td>\n"; + echo "<td class='$class' >Ø</td>\n"; + echo "<td class='$class' ><a href='main.php?op=edit&type=base&lang_id=" . $lang['base'] -> getVar('lang_id') . "'><img src=".$pathIcon16.'/edit.png title=' . _EDIT . "></a>\n". + "<a href='main.php?op=del&type=base&lang_id=" . $lang['base'] -> getVar('lang_id') . "'><img src=".$pathIcon16.'/delete.png title=' . _DELETE ."></td>\n"; + echo "</tr>\n"; + $isOrphan = false; + $class = ($class == 'odd') ? 'even' : 'odd'; + } + if(!isset($lang['ext'])||count($lang['ext'])<1) continue; + foreach($lang['ext'] as $ext){ + echo "<tr>\n"; + echo "<td class='$class' >" . $ext -> getVar('lang_desc') . "</td>\n"; + echo "<td class='$class' >" . $ext -> getVar('lang_name') . "</td>\n"; + echo "<td class='$class' ><b>" . $ext -> getVar('lang_charset') . "</b></td>\n"; + echo "<td class='$class' >" . $ext -> getVar('lang_code') . "</td>\n"; + if(is_readable(XOOPS_ROOT_PATH.'/modules/xlanguage/images/'.$ext -> getVar('lang_image'))){ + $lang_image = $ext -> getVar('lang_image'); + }else{ + $lang_image = 'noflag.gif'; + } + echo "<td class='$class' ><img src='" . XOOPS_URL.'/modules/xlanguage/images/'.$lang_image . "' alt='".$ext -> getVar('lang_desc')."' /></td>\n"; + echo "<td class='$class' >" . $ext -> getVar('weight') . "</td>\n"; + $lang_base = ($isOrphan)?"<font color='red'>".$ext -> getVar('lang_base')."</font>":$ext -> getVar('lang_base'); + echo "<td class='$class' ><b>" . $lang_base . "</b></td>\n"; + echo "<td class='$class' ><a href='main.php?op=edit&type=ext&lang_id=" . $ext -> getVar('lang_id') . "'><img src=".$pathIcon16.'/edit.png title=' . _EDIT . "></a>\n". + "<a href='main.php?op=del&type=ext&lang_id=" . $ext -> getVar('lang_id') . "'><img src=".$pathIcon16.'/delete.png title=' . _DELETE ."></td>\n"; + echo "</tr>\n"; + } + echo "<tr><td colspan='9' ></td></tr>\n"; + $class = ($class == 'odd') ? 'even' : 'odd'; + } + + echo "</table></div>\n"; + echo"</td></tr></table>"; + echo "<br />"; + } +} +?> Modified: XoopsModules/xlanguage/trunk/xlanguage/admin/menu.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/admin/menu.php 2012-06-19 14:53:13 UTC (rev 9673) +++ XoopsModules/xlanguage/trunk/xlanguage/admin/menu.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -27,12 +27,34 @@ // Author: D.J.(phppp) ph...@ho... // // URL: http://www.xoops.org.cn // // ------------------------------------------------------------------------- // -$adminmenu[0]['title'] = _MI_XLANGUAGE_ADMENU0; -$adminmenu[0]['link'] = "admin/index.php"; -$adminmenu[1]['title'] = _MI_XLANGUAGE_ADMENU1; -$adminmenu[1]['link'] = "admin/index.php?op=add&type=base"; -$adminmenu[2]['title'] = _MI_XLANGUAGE_ADMENU2; -$adminmenu[2]['link'] = "admin/index.php?op=add&type=ext"; -$adminmenu[3]['title'] = _MI_XLANGUAGE_ADMENU3; -$adminmenu[3]['link'] = "about.php"; -?> \ No newline at end of file +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& XoopsModule::getByDirname('xlanguage'); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathIcon32 = $moduleInfo->getInfo('icons32'); + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]['title'] = _MI_XLANGUAGE_ADMENU_HOME ; +$adminmenu[$i]['link'] = 'admin/index.php' ; +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png' ; +$i++; +$adminmenu[$i]['title'] = _MI_XLANGUAGE_ADMENU0 ; +$adminmenu[$i]['link'] = 'admin/main.php' ; +$adminmenu[$i]['icon'] = $pathIcon32.'/manage.png' ; +$i++; +$adminmenu[$i]['title'] = _MI_XLANGUAGE_ADMENU1 ; +$adminmenu[$i]['link'] = 'admin/main.php?op=add&type=base' ; +$adminmenu[$i]['icon'] = $pathIcon32.'/add.png' ; +$i++; +$adminmenu[$i]['title'] = _MI_XLANGUAGE_ADMENU2 ; +$adminmenu[$i]['link'] = 'admin/main.php?op=add&type=ext'; +$adminmenu[$i]['icon'] = $pathIcon32.'/insert_table_row.png' ; +$i++; +$adminmenu[$i]['title'] = _MI_XLANGUAGE_ADMENU3 ; +$adminmenu[$i]['link'] = 'admin/about.php' ; +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png' ; +// $i++; +// $adminmenu[$i]['title'] = _MI_XLANGUAGE_ADMENU3; +// $adminmenu[$i]['link'] = "admin/about2.php"; +// $adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; Modified: XoopsModules/xlanguage/trunk/xlanguage/api.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/api.php 2012-06-19 14:53:13 UTC (rev 9673) +++ XoopsModules/xlanguage/trunk/xlanguage/api.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -31,10 +31,10 @@ include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php'); include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php'); -$cookie_prefix = preg_replace("/[^a-z_0-9]+/i", "_", preg_replace("/(http(s)?:\/\/)?(www.)?/i","",XOOPS_URL)); -$cookie_var = $cookie_prefix."_".XLANGUAGE_LANG_TAG; +//$cookie_prefix = preg_replace("/[^a-z_0-9]+/i", "_", preg_replace("/(http(s)?:\/\/)?(www.)?/i","",XOOPS_URL)); +$cookie_var = XLANGUAGE_LANG_TAG; -$xlanguage["action"]=false; +$xlanguage["action"] = false; if (!empty($_GET[XLANGUAGE_LANG_TAG])) { $cookie_path = "/"; setcookie($cookie_var, $_GET[XLANGUAGE_LANG_TAG], time()+3600*24*30, $cookie_path, '', 0); @@ -56,26 +56,28 @@ $xlanguage["lang"] = $xoopsConfig['language']; } -$GLOBALS['xlanguage_handler']=& xoops_getmodulehandler('language', 'xlanguage'); -$GLOBALS['xlanguage_handler']->loadConfig(); -$lang = $GLOBALS['xlanguage_handler']->getByName($xlanguage["lang"]); +$xlanguage_handler=& xoops_getmodulehandler('language', 'xlanguage'); +$xlanguage_handler->loadConfig(); +$lang = $xlanguage_handler->getByName($xlanguage["lang"]); if(is_object($lang) && strcasecmp($lang->getVar('lang_name'),$xoopsConfig['language'])){ if($lang->isBase()){ $xoopsConfig['language'] = $lang->getVar('lang_name'); }else{ - $lang_base = $GLOBALS['xlanguage_handler']->getByName($lang->getVar('lang_base')); + $lang_base = $xlanguage_handler->getByName($lang->getVar('lang_base')); if(is_object($lang_base)){ $xlanguage['charset_base'] = $lang_base->getVar('lang_charset'); - $xlanguage['charset'] = $lang->getVar('lang_charset'); - $xlanguage['code'] = $lang->getVar('lang_code'); $xlanguage["action"] = true; $xoopsConfig['language'] = $lang_base->getVar('lang_name'); unset($lang_base); } } + if($lang->getVar('lang_charset')) $xlanguage['charset'] = $lang->getVar('lang_charset'); + if($lang->getVar('lang_code')) $xlanguage['code'] = $lang->getVar('lang_code'); } unset($lang); +$GLOBALS['xlanguage_handler'] =& $xlanguage_handler; + if($xlanguage["action"]){ //if(CONV_REQUEST && (!empty($_GET)||!empty($_POST))){ if(!empty($_POST)){ @@ -102,12 +104,12 @@ * * To use it: * 1 set "$xlanguage_theme_enable = true;" - * 2 config options "$options = array("images", " ", 5); // display mode, delimitor, number per line"; + * 2 config options "$options = array("images", " ", 5); // display mode, delimitor, number per line"; Options for display mode: image - flag; text - text; dropdown - dropdown selection box with text * 3 insert "<{$smarty.const.XLANGUAGE_SWITCH_CODE}>" into your theme html anywhere you would like to see it present */ -$xlanguage_theme_enable = false; +$xlanguage_theme_enable = true; if(!empty($xlanguage_theme_enable)){ - $options = array("images", " ", 5); // display mode, delimitor, number per line + $options = array("dropdown", " ", 5); // display mode, delimitor, number per line xlanguage_select_show($options); } -?> \ No newline at end of file +?> Modified: XoopsModules/xlanguage/trunk/xlanguage/blocks/xlanguage_blocks.php =================================================================== --- XoopsModules/xlanguage/trunk/xlanguage/blocks/xlanguage_blocks.php 2012-06-19 14:53:13 UTC (rev 9673) +++ XoopsModules/xlanguage/trunk/xlanguage/blocks/xlanguage_blocks.php 2012-06-19 15:12:44 UTC (rev 9674) @@ -1,108 +1,108 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://www.xoops.org.cn // -// ------------------------------------------------------------------------- // - -function b_xlanguage_select_show($options) -{ - global $xlanguage; - - $block = array(); - - $GLOBALS['xlanguage_handler'] =& xoops_getmodulehandler('language', 'xlanguage'); - $GLOBALS['xlanguage_handler']->loadConfig(); - $lang_list = $GLOBALS['xlanguage_handler']->getAllList(); - if ( !is_array($lang_list) || count($lang_list)<1 ) return $block; - - $languages = array(); - foreach( $lang_list as $lang_name => $lang ) { - if(!isset($lang['base'])) continue; - $languages[$lang_name]['name'] = $lang_name; - $languages[$lang_name]['desc'] = $lang['base']->getVar('lang_desc'); - $languages[$lang_name]['image'] = XOOPS_URL."/modules/xlanguage/images/".$lang['base']->getVar('lang_image'); - if( !isset($lang['ext']) || count($lang['ext']) < 1 ) continue; - foreach($lang['ext'] as $ext){ - $languages[$ext->getVar('lang_name')]['name'] = $ext->getVar('lang_name'); - $languages[$ext->getVar('lang_name')]['desc'] = $ext->getVar('lang_desc'); - $languages[$ext->getVar('lang_name')]['image'] = XOOPS_URL."/modules/xlanguage/images/".$ext->getVar('lang_image'); - } - } - - $QUERY_STRING_array = array_filter(explode("&",xoops_getenv('QUERY_STRING'))); - $QUERY_STRING_new = array(); - foreach ($QUERY_STRING_array as $QUERY){ - if(substr($QUERY, 0, (strlen(XLANGUAGE_LANG_TAG)+1)) != XLANGUAGE_LANG_TAG."=") { - $vals = explode("=", $QUERY); - foreach(array_keys($vals) as $key){ - if(preg_match("/^a-z0-9$/i", $vals[$key])) $vals[$key] = urlencode($vals[$key]); - } - $QUERY_STRING_new[] = implode("=", $vals); - } - } - - $block["display"] = $options[0]; - $block["delimitor"] = $options[1]; - $block["number"] = $options[2]; - $block["selected"] = $xlanguage["lang"]; - if ( $options[0] == "images" || $options[0] == "text" ) { - $query_string = htmlSpecialChars(implode("&", $QUERY_STRING_new)); - $query_string .= empty($query_string)? "" : "&"; - }else{ - $query_string = implode("&", array_map("htmlspecialchars", $QUERY_STRING_new)); - $query_string .= empty($query_string)? "" : "&"; - } - $block["url"] = xoops_getenv('PHP_SELF')."?".$query_string.XLANGUAGE_LANG_TAG."="; - $block["languages"] =& $languages; - - return $block; -} - -function b_xlanguage_select_edit($options) -{ - $form = _MB_XLANGUAGE_DISPLAY_METHOD." <select name='options[]'>"; - $form .= "<option value='images'"; - if ( $options[0] == "images" ) { - $form .= " selected='selected'"; - } - $form .= ">"._MB_XLANGUAGE_DISPLAY_FLAGLIST."</option>\n"; - $form .= "<option value='text'"; - if($options[0] == "text"){ - $form .= " selected='selected'"; - } - $form .= ">"._MB_XLANGUAGE_DISPLAY_TEXTLIST."</option>\n"; - $form .= "<option value='dropdown'"; - if($options[0] == "dropdown"){ - $form .= " selected='selected'"; - } - $form .= ">"._MB_XLANGUAGE_DISPLAY_DROPDOWNLIST."</option>\n"; - $form .= "</select>\n"; - $form .= "<br />"._MB_XLANGUAGE_IMAGE_SEPARATOR." ("._MB_XLANGUAGE_OPTIONAL."): <input type='text' name='options[]' value='".$options[1]."' />"; - $form .= "<br />"._MB_XLANGUAGE_IMAGE_PERROW." ("._MB_XLANGUAGE_OPTIONAL."): <input type='text' name='options[]' value='".$options[2]."' />"; - return $form; -} +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// 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 s... [truncated message content] |
From: <be...@us...> - 2012-06-19 14:53:26
|
Revision: 9673 http://xoops.svn.sourceforge.net/xoops/?rev=9673&view=rev Author: beckmi Date: 2012-06-19 14:53:13 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Updating to 3.03 Final Modified Paths: -------------- XoopsModules/xlanguage/branches/mamba/xlanguage/admin/about.php XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_footer.php XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_header.php XoopsModules/xlanguage/branches/mamba/xlanguage/admin/langform.inc.php XoopsModules/xlanguage/branches/mamba/xlanguage/class/language.php XoopsModules/xlanguage/branches/mamba/xlanguage/language/english/admin.php XoopsModules/xlanguage/branches/mamba/xlanguage/xoops_version.php Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/admin/about.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/admin/about.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/admin/about.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,29 +1,29 @@ -<?php -/** - * XOOPS Poll module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} - * @package xoopspoll - * @since 2.5.0 - * @author XOOPS Development Team - * @version $Id $ - **/ - -include_once dirname(__FILE__) . '/admin_header.php'; - -xoops_cp_header(); - -$aboutAdmin = new ModuleAdmin(); - -echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); - +<?php +/** + * xLanguage module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package xlanguage + * @since 2.0 + * @author XOOPS Development Team + * @version $Id $ + **/ + +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_footer.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_footer.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_footer.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,26 +1,10 @@ <?php -/** - * XoopsPoll module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License - * @package XoopsPoll - * @since 2.5.0 - * @author Mamba (www.xoops.org) - * @version $Id $ -**/ + echo "<div class='adminfooter'>\n" ." <div style='text-align: center;'>\n" ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" ." </div>\n" - ." " . _AM_XLANG_FOOTER . "\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" ."</div>"; xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_header.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_header.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/admin/admin_header.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,46 +1,46 @@ -<?php -/** - * XoopsPartners module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license:: {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} - * @package:: XoopsPartners - * @subpackage:: admin - * @since:: 2.5.0 - * @author:: XOOPS Team - * @version:: $Id $ -**/ - -$path = dirname(dirname(dirname(dirname(__FILE__)))); -include_once $path . '/mainfile.php'; -include_once $path . '/include/cp_functions.php'; -require_once $path . '/include/cp_header.php'; - -global $xoopsModule; - -$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); - -//if functions.php file exist -require_once dirname(dirname(__FILE__)) . '/include/functions.php'; - -// Load language files -xoops_loadLanguage('admin', $thisModuleDir); -xoops_loadLanguage('modinfo', $thisModuleDir); -xoops_loadLanguage('main', $thisModuleDir); - -$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); -$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); -$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); - -if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); - }else{ - redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); +<?php +/** + * XoopsPartners module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license:: {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package:: XoopsPartners + * @subpackage:: admin + * @since:: 2.5.0 + * @author:: XOOPS Team + * @version:: $Id $ +**/ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_XLANG_MODULEADMIN_MISSING, false); } \ No newline at end of file Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/admin/langform.inc.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/admin/langform.inc.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/admin/langform.inc.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,84 +1,95 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://www.xoops.org.cn // -// ------------------------------------------------------------------------- // - -include XOOPS_ROOT_PATH."/class/xoopsformloader.php"; -$sform = new XoopsThemeForm(_AM_XLANG_EDITLANG, "langform", xoops_getenv('PHP_SELF')); - -if($isBase){ - $lang_select = new XoopsFormSelect(_AM_XLANG_NAME, 'lang_name', $lang_name); - $lang_select->addOptionArray($xlanguage_handler->getXoopsLangList()); - $sform->addElement($lang_select, true); -}else{ - $sform->addElement(new XoopsFormText(_AM_XLANG_NAME, 'lang_name', 50, 255, $lang_name), true); -} - -$sform->addElement(new XoopsFormText(_AM_XLANG_DESC, 'lang_desc', 50, 255, $lang_desc)); -$sform->addElement(new XoopsFormText(_AM_XLANG_CHARSET, 'lang_charset', 50, 255, $lang_charset), true); -$sform->addElement(new XoopsFormText(_AM_XLANG_CODE, 'lang_code', 50, 255, $lang_code), true); -if(!$isBase){ - $baseList =& $xlanguage_handler->getAll(); - $base_list = array(); - foreach($baseList as $base => $baselang){ - $base_list[$base] = $base; - } - - $base_select = new XoopsFormSelect(_AM_XLANG_BASE, 'lang_base', $lang_base); - $base_select->addOptionArray($base_list); - $sform->addElement($base_select, true); -} -$sform->addElement(new XoopsFormText(_AM_XLANG_WEIGHT, 'weight', 10, 10, $weight)); - -$image_option_tray = new XoopsFormElementTray(_AM_XLANG_IMAGE, ''); -$image_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . "/modules/" . $xoopsModule -> dirname() . "/images/"); -$lang_image =(empty($lang_image))?'noflag.gif':$lang_image; -$image_select = new XoopsFormSelect('', 'lang_image', $lang_image); -$image_select->addOptionArray($image_array); -$image_select->setExtra("onchange='showImgSelected(\"image\", \"lang_image\", \"/modules/" . $xoopsModule -> dirname() . "/images/\", \"\", \"" . XOOPS_URL . "\")'"); -$image_tray = new XoopsFormElementTray('', ' '); -$image_tray->addElement($image_select); -if (!empty($lang_image)){ - $image_tray->addElement(new XoopsFormLabel('', "<div style='padding: 8px;'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule -> dirname() . "/images/" . $lang_image . "' name='image' id='image' alt='' /></div>")); -}else{ - $image_tray->addElement(new XoopsFormLabel('', "<div style='padding: 8px;'><img src='" . XOOPS_URL . "/images/blank.gif' name='image' id='image' alt='' /></div>")); -} -$image_option_tray->addElement($image_tray); -$sform->addElement($image_option_tray); - -if(isset($lang_id)) $sform->addElement(new XoopsFormHidden('lang_id', $lang_id)); -$sform->addElement(new XoopsFormHidden('type', $type)); - -$button_tray = new XoopsFormElementTray('', ''); -$button_tray->addElement(new XoopsFormHidden('op', 'save')); -$button_tray->addElement(new XoopsFormButton('', '', _GO, 'submit')); -$button_tray->addElement(new XoopsFormButton('', '', _CANCEL, 'submit')); -$sform->addElement($button_tray); - -$sform->display(); +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // + +include XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +$sform = new XoopsThemeForm(_AM_XLANG_EDITLANG, "langform", xoops_getenv('PHP_SELF')); + +if($isBase){ + $lang_select = new XoopsFormSelect(_AM_XLANG_NAME, 'lang_name', $lang_name); + $lang_select->addOptionArray($xlanguage_handler->getXoopsLangList()); + $sform->addElement($lang_select, true); +}else{ + $sform->addElement(new XoopsFormText(_AM_XLANG_NAME, 'lang_name', 50, 255, $lang_name), true); +} + +$sform->addElement(new XoopsFormText(_AM_XLANG_DESC, 'lang_desc', 50, 255, $lang_desc)); + + +//$sform->addElement(new XoopsFormText(_AM_XLANG_CHARSET, 'lang_charset', 50, 255, $lang_charset), true); +$lang_charset = new XoopsFormText(_AM_XLANG_CHARSET, 'lang_charset', 50, 255, $lang_charset); +$lang_charset->setDescription(_AM_XLANG_CHARSET_DESC); +$sform->addElement($lang_charset, true); + +//$sform->addElement(new XoopsFormText(_AM_XLANG_CODE, 'lang_code', 50, 255, $lang_code), true); +$lang_code = new XoopsFormText(_AM_XLANG_CODE, 'lang_charset', 50, 255, $lang_code); +$lang_code->setDescription(_AM_XLANG_CODE_DESC); +$sform->addElement($lang_code, true); + + +if(!$isBase){ + $baseList =& $xlanguage_handler->getAll(); + $base_list = array(); + foreach($baseList as $base => $baselang){ + $base_list[$base] = $base; + } + + $base_select = new XoopsFormSelect(_AM_XLANG_BASE, 'lang_base', $lang_base); + $base_select->addOptionArray($base_list); + $sform->addElement($base_select, true); +} +$sform->addElement(new XoopsFormText(_AM_XLANG_WEIGHT, 'weight', 10, 10, $weight)); + +$image_option_tray = new XoopsFormElementTray(_AM_XLANG_IMAGE, ''); +$image_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . "/modules/" . $xoopsModule -> dirname() . "/images/"); +$lang_image =(empty($lang_image))?'noflag.gif':$lang_image; +$image_select = new XoopsFormSelect('', 'lang_image', $lang_image); +$image_select->addOptionArray($image_array); +$image_select->setExtra("onchange='showImgSelected(\"image\", \"lang_image\", \"/modules/" . $xoopsModule -> dirname() . "/images/\", \"\", \"" . XOOPS_URL . "\")'"); +$image_tray = new XoopsFormElementTray('', ' '); +$image_tray->addElement($image_select); +if (!empty($lang_image)){ + $image_tray->addElement(new XoopsFormLabel('', "<div style='padding: 8px;'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule -> dirname() . "/images/" . $lang_image . "' name='image' id='image' alt='' /></div>")); +}else{ + $image_tray->addElement(new XoopsFormLabel('', "<div style='padding: 8px;'><img src='" . XOOPS_URL . "/images/blank.gif' name='image' id='image' alt='' /></div>")); +} +$image_option_tray->addElement($image_tray); +$sform->addElement($image_option_tray); + +if(isset($lang_id)) $sform->addElement(new XoopsFormHidden('lang_id', $lang_id)); +$sform->addElement(new XoopsFormHidden('type', $type)); + +$button_tray = new XoopsFormElementTray('', ''); +$button_tray->addElement(new XoopsFormHidden('op', 'save')); +$button_tray->addElement(new XoopsFormButton('', '', _GO, 'submit')); +$button_tray->addElement(new XoopsFormButton('', '', _CANCEL, 'submit')); +$sform->addElement($button_tray); + +$sform->display(); ?> \ No newline at end of file Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/class/language.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/class/language.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/class/language.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,363 +1,363 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://www.xoops.org.cn // -// ------------------------------------------------------------------------- // -//include_once(XOOPS_ROOT_PATH."/class/xoopslists.php"); -//include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php'); -//include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php'); - -class Blanguage extends XoopsObject -{ - var $isBase; - - function Blanguage() { - $this -> db = & Database :: getInstance(); - $this -> table = $this -> db -> prefix( "xlanguage_base" ); - $this->initVar('lang_id', XOBJ_DTYPE_INT); - $this->initVar('lang_desc', XOBJ_DTYPE_TXTBOX); - $this->initVar('lang_name', XOBJ_DTYPE_TXTBOX); - $this->initVar('lang_code', XOBJ_DTYPE_TXTBOX); - $this->initVar('lang_charset', XOBJ_DTYPE_TXTBOX); - $this->initVar('lang_image', XOBJ_DTYPE_TXTBOX); - $this->initVar('weight', XOBJ_DTYPE_INT); - } - - function prepareVars() - { - foreach ($this->vars as $k => $v) { - $cleanv = $this->cleanVars[$k]; - switch ($v['data_type']) { - case XOBJ_DTYPE_TXTBOX: - case XOBJ_DTYPE_TXTAREA: - case XOBJ_DTYPE_SOURCE: - case XOBJ_DTYPE_EMAIL: - $cleanv = ($v['changed'])?$cleanv:''; - if (!isset($v['not_gpc']) || !$v['not_gpc']) { - $cleanv =$this->db->quoteString($cleanv); - } - break; - case XOBJ_DTYPE_INT: - $cleanv = ($v['changed'])?intval($cleanv):0; - break; - case XOBJ_DTYPE_ARRAY: - $cleanv = ($v['changed'])?$cleanv:serialize(array()); - break; - case XOBJ_DTYPE_STIME: - case XOBJ_DTYPE_MTIME: - case XOBJ_DTYPE_LTIME: - $cleanv = ($v['changed'])?$cleanv:0; - break; - - default: - break; - } - $this->cleanVars[$k] =& $cleanv; - unset($cleanv); - } - return true; - } - - function setBase() - { - $this->isBase = true; - } - - function isBase() - { - return $this->isBase; - } -} - - -class Xlanguage extends Blanguage -{ - function Xlanguage() { - $this->Blanguage(); - $this->table = $this -> db -> prefix( "xlanguage_ext" ); - $this->initVar('lang_base', XOBJ_DTYPE_TXTBOX); - $this->isBase = false; - } -} - -class XlanguageLanguageHandler extends XoopsObjectHandler -{ - var $cached_config; - - function loadConfig() - { - $this->cached_config =& $this->loadFileConfig(); - } - - function &get($id, $isBase =true) - { - $lang = null; - $id = intval($id); - if(!$id) { - return $lang; - } - $prefix = ($isBase) ? "xlanguage_base" : "xlanguage_ext"; - if(isset($this->cached_config[$prefix][$id])) { - $array = $this->cached_config[$prefix][$id]; - }else{ - $sql = 'SELECT * FROM '.$this->db->prefix($prefix).' WHERE lang_id='.$id; - $array = $this->db->fetchArray($this->db->query($sql)); - } - if(!is_array($array) || count($array)==0){ - return $lang; - } - $lang =& $this->create(false, $isBase); - $lang->assignVars($array); - if($isBase) $lang->isBase = true; - return $lang; - } - - function &getByName($name) - { - $lang = null; - if(empty($name) || preg_match("/[^a-zA-Z0-9\_\-]/", $name)) { - return $lang; - } - $isBase = false; - if(isset($this->cached_config['xlanguage_base'][$name])) { - $array = $this->cached_config['xlanguage_base'][$name]; - $isBase = true; - }elseif(isset($this->cached_config['xlanguage_ext'][$name])) { - $array = $this->cached_config['xlanguage_ext'][$name]; - }elseif(!isset($this->cached_config)){ - $sql = 'SELECT * FROM '.$this->db->prefix('xlanguage_base').' WHERE lang_name=\''.$name.'\''; - $result=$this->db->query($sql); - $array = $this->db->fetchArray($result); - if(!is_array($array) || count($array)==0){ - $sql = 'SELECT * FROM '.$this->db->prefix('xlanguage_ext').' WHERE lang_name=\''.$name.'\''; - $result=$this->db->query($sql); - $array = $this->db->fetchArray($result); - if(!is_array($array) || count($array)==0){ - return $lang; - } - }else{ - $isBase = true; - } - } - if(empty($array)) { - return $lang; - } - $lang =& $this->create(false, $isBase); - $lang->assignVars($array); - if(!isset($array['lang_base'])) $lang->isBase = true; - return $lang; - } - - function &getAll($isBase = true) - { - $prefix = ($isBase) ? "xlanguage_base" : "xlanguage_ext"; - $ret = array(); - if(isset($this->cached_config[$prefix])) { - $array = $this->cached_config[$prefix]; - foreach($array as $lang_name=>$myrow){ - $lang =& $this->create(false,$isBase); - $lang->assignVars($myrow); - $ret[$myrow['lang_name']] = $lang; - unset($lang); - } - }elseif(!isset($this->cached_config)){ - $sql = 'SELECT * FROM '.$this->db->prefix($prefix); - $result = $this->db->query($sql); - while ($myrow = $this->db->fetchArray($result)) { - $lang =& $this->create(false,$isBase); - $lang->assignVars($myrow); - $ret[$myrow['lang_name']] = $lang; - unset($lang); - } - } - return $ret; - } - - function &getAllList() - { - $baseArray = $this->getAll(); - - $extArray = $this->getAll(false); - $ret = array(); - if ( is_array($baseArray) && count( $baseArray ) > 0 ){ - foreach( $baseArray as $base ) { - $ret[$base->getVar('lang_name')]['base'] = $base; - unset($base); - } - } - if ( is_array($extArray) && count( $extArray ) > 0 ){ - foreach( $extArray as $ext ) { - $ret[$ext->getVar('lang_base')]['ext'][] = $ext; - unset($ext); - } - } - return $ret; - } - - function &create($isNew = true, $isBase = true) - { - if($isBase) { - $lang = new Blanguage(); - $lang->isBase = true; - } - else $lang = new Xlanguage(); - if ($isNew) $lang->setNew(); - return $lang; - } - - function insert(&$lang) - { - if (!$lang->isDirty()) return true; - if (!$lang->cleanVars()) return false; - $lang->prepareVars(); - foreach ($lang->cleanVars as $k => $v) { - ${$k} = $v; - } - - if ( $lang->isNew() ) { - if($lang->isBase){ - $var_array = array("lang_id", "lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset"); - }else{ - $var_array = array("lang_id", "lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset", "lang_base"); - } - $lang_id = $this->db->genId($lang->table."_lang_id_seq"); - foreach($var_array as $var){ - $val_array[] = ${$var}; - } - $sql = "INSERT INTO ".$lang->table." (".implode(",",$var_array).") VALUES (".implode(",", $val_array).")"; - if ( !$result = $this->db->queryF($sql) ) { - xoops_error( "Insert language error:".$sql ); - return false; - } - if ( $lang_id == 0 ) $lang_id = $this->db->getInsertId(); - $lang->setVar('lang_id', $lang_id); - }else{ - if($lang->isBase){ - $var_array = array("lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset"); - }else{ - $var_array = array("lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset", "lang_base"); - } - $set_array = array(); - foreach($var_array as $var){ - $set_array[] = "$var = ".${$var}; - } - $set_string = implode(',', $set_array); - $sql = "UPDATE ".$lang->table." SET ".$set_string." WHERE lang_id = ".$lang->getVar('lang_id'); - if ( !$result = $this->db->queryF($sql) ) { - xoops_error( "update language error:".$sql ); - return false; - } - } - $this->createConfig(); - return $lang->getVar('lang_id'); - } - - function delete(&$lang) - { - if(!is_object($lang) || !$lang->getVar('lang_id')) return true; - $sql = "DELETE FROM ".$lang->table." WHERE lang_id= ". $lang->getVar('lang_id'); - if (!$result = $this->db->query($sql)) { - return false; - } - $this->createConfig(); - return true; - } - - - function getXoopsLangList() - { - return XoopsLists::getLangList(); - } - - - function createConfig() - { - $file_config = XLANGUAGE_CONFIG_FILE; - @unlink($file_config); - if(!$fp = fopen($file_config, 'w')) { - echo "<br> the config file can not be created: ".$file_config; - return false; - } - - $file_content = "<?php"; - unset($this->cached_config); - $baseArray = $this->getAll(); - if ( is_array($baseArray) && count( $baseArray ) > 0 ){ - $file_content .= "\n \$".XLANGUAGE_CONFIG_VAR."['xlanguage_base'] = array("; - foreach( $baseArray as $lang ) { - $file_content .= "\n \"".$lang->getVar('lang_name')."\"=>array("; - $file_content .= "\n \"lang_name\"=>\"".$lang->getVar('lang_name')."\","; - $file_content .= "\n \"lang_desc\"=>\"".$lang->getVar('lang_desc')."\","; - $file_content .= "\n \"lang_charset\"=>\"".$lang->getVar('lang_charset')."\","; - $file_content .= "\n \"lang_code\"=>\"".$lang->getVar('lang_code')."\","; - $file_content .= "\n \"lang_image\"=>\"".$lang->getVar('lang_image')."\","; - $file_content .= "\n \"lang_id\"=>".$lang->getVar('lang_id').","; - $file_content .= "\n \"weight\"=>".$lang->getVar('weight').""; - $file_content .= "\n ),"; - } - $file_content .= "\n );"; - } - - $extArray = $this->getAll(false); - if ( is_array($extArray) && count( $extArray ) > 0 ){ - $file_content .= "\n \$".XLANGUAGE_CONFIG_VAR."['xlanguage_ext'] = array("; - foreach( $extArray as $lang ) { - $file_content .= "\n \"".$lang->getVar('lang_name')."\"=>array("; - $file_content .= "\n \"lang_name\"=>\"".$lang->getVar('lang_name')."\","; - $file_content .= "\n \"lang_desc\"=>\"".$lang->getVar('lang_desc')."\","; - $file_content .= "\n \"lang_charset\"=>\"".$lang->getVar('lang_charset')."\","; - $file_content .= "\n \"lang_code\"=>\"".$lang->getVar('lang_code')."\","; - $file_content .= "\n \"lang_image\"=>\"".$lang->getVar('lang_image')."\","; - $file_content .= "\n \"lang_base\"=>\"".$lang->getVar('lang_base')."\","; - $file_content .= "\n \"lang_id\"=>".$lang->getVar('lang_id').","; - $file_content .= "\n \"weight\"=>".$lang->getVar('weight').""; - $file_content .= "\n ),"; - } - $file_content .= "\n );"; - } - - $file_content .= "\n?>"; - fputs($fp,$file_content); - fclose($fp); - return true; - } - - function &loadFileConfig() - { - $file_config = XLANGUAGE_CONFIG_FILE; - if(!file_exists($file_config)) $this->createConfig(); - if(!is_readable($file_config)) { - $config = null; - return $config; - }else{ - include $file_config; - return ${XLANGUAGE_CONFIG_VAR}; - } - } - -} +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // +//include_once(XOOPS_ROOT_PATH."/class/xoopslists.php"); +//include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php'); +//include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php'); + +class Blanguage extends XoopsObject +{ + var $isBase; + + function Blanguage() { + $this -> db = & XoopsDatabaseFactory::getDatabaseConnection(); + $this -> table = $this -> db -> prefix( "xlanguage_base" ); + $this->initVar('lang_id', XOBJ_DTYPE_INT); + $this->initVar('lang_desc', XOBJ_DTYPE_TXTBOX); + $this->initVar('lang_name', XOBJ_DTYPE_TXTBOX); + $this->initVar('lang_code', XOBJ_DTYPE_TXTBOX); + $this->initVar('lang_charset', XOBJ_DTYPE_TXTBOX); + $this->initVar('lang_image', XOBJ_DTYPE_TXTBOX); + $this->initVar('weight', XOBJ_DTYPE_INT); + } + + function prepareVars() + { + foreach ($this->vars as $k => $v) { + $cleanv = $this->cleanVars[$k]; + switch ($v['data_type']) { + case XOBJ_DTYPE_TXTBOX: + case XOBJ_DTYPE_TXTAREA: + case XOBJ_DTYPE_SOURCE: + case XOBJ_DTYPE_EMAIL: + $cleanv = ($v['changed'])?$cleanv:''; + if (!isset($v['not_gpc']) || !$v['not_gpc']) { + $cleanv =$this->db->quoteString($cleanv); + } + break; + case XOBJ_DTYPE_INT: + $cleanv = ($v['changed'])?intval($cleanv):0; + break; + case XOBJ_DTYPE_ARRAY: + $cleanv = ($v['changed'])?$cleanv:serialize(array()); + break; + case XOBJ_DTYPE_STIME: + case XOBJ_DTYPE_MTIME: + case XOBJ_DTYPE_LTIME: + $cleanv = ($v['changed'])?$cleanv:0; + break; + + default: + break; + } + $this->cleanVars[$k] =& $cleanv; + unset($cleanv); + } + return true; + } + + function setBase() + { + $this->isBase = true; + } + + function isBase() + { + return $this->isBase; + } +} + + +class Xlanguage extends Blanguage +{ + function Xlanguage() { + $this->Blanguage(); + $this->table = $this -> db -> prefix( "xlanguage_ext" ); + $this->initVar('lang_base', XOBJ_DTYPE_TXTBOX); + $this->isBase = false; + } +} + +class XlanguageLanguageHandler extends XoopsObjectHandler +{ + var $cached_config; + + function loadConfig() + { + $this->cached_config =& $this->loadFileConfig(); + } + + function &get($id, $isBase =true) + { + $lang = null; + $id = intval($id); + if(!$id) { + return $lang; + } + $prefix = ($isBase) ? "xlanguage_base" : "xlanguage_ext"; + if(isset($this->cached_config[$prefix][$id])) { + $array = $this->cached_config[$prefix][$id]; + }else{ + $sql = 'SELECT * FROM '.$this->db->prefix($prefix).' WHERE lang_id='.$id; + $array = $this->db->fetchArray($this->db->query($sql)); + } + if(!is_array($array) || count($array)==0){ + return $lang; + } + $lang =& $this->create(false, $isBase); + $lang->assignVars($array); + if($isBase) $lang->isBase = true; + return $lang; + } + + function &getByName($name) + { + $lang = null; + if(empty($name) || preg_match("/[^a-zA-Z0-9\_\-]/", $name)) { + return $lang; + } + $isBase = false; + if(isset($this->cached_config['xlanguage_base'][$name])) { + $array = $this->cached_config['xlanguage_base'][$name]; + $isBase = true; + }elseif(isset($this->cached_config['xlanguage_ext'][$name])) { + $array = $this->cached_config['xlanguage_ext'][$name]; + }elseif(!isset($this->cached_config)){ + $sql = 'SELECT * FROM '.$this->db->prefix('xlanguage_base').' WHERE lang_name=\''.$name.'\''; + $result=$this->db->query($sql); + $array = $this->db->fetchArray($result); + if(!is_array($array) || count($array)==0){ + $sql = 'SELECT * FROM '.$this->db->prefix('xlanguage_ext').' WHERE lang_name=\''.$name.'\''; + $result=$this->db->query($sql); + $array = $this->db->fetchArray($result); + if(!is_array($array) || count($array)==0){ + return $lang; + } + }else{ + $isBase = true; + } + } + if(empty($array)) { + return $lang; + } + $lang =& $this->create(false, $isBase); + $lang->assignVars($array); + if(!isset($array['lang_base'])) $lang->isBase = true; + return $lang; + } + + function &getAll($isBase = true) + { + $prefix = ($isBase) ? "xlanguage_base" : "xlanguage_ext"; + $ret = array(); + if(isset($this->cached_config[$prefix])) { + $array = $this->cached_config[$prefix]; + foreach($array as $lang_name=>$myrow){ + $lang =& $this->create(false,$isBase); + $lang->assignVars($myrow); + $ret[$myrow['lang_name']] = $lang; + unset($lang); + } + }elseif(!isset($this->cached_config)){ + $sql = 'SELECT * FROM '.$this->db->prefix($prefix); + $result = $this->db->query($sql); + while ($myrow = $this->db->fetchArray($result)) { + $lang =& $this->create(false,$isBase); + $lang->assignVars($myrow); + $ret[$myrow['lang_name']] = $lang; + unset($lang); + } + } + return $ret; + } + + function &getAllList() + { + $baseArray = $this->getAll(); + + $extArray = $this->getAll(false); + $ret = array(); + if ( is_array($baseArray) && count( $baseArray ) > 0 ){ + foreach( $baseArray as $base ) { + $ret[$base->getVar('lang_name')]['base'] = $base; + unset($base); + } + } + if ( is_array($extArray) && count( $extArray ) > 0 ){ + foreach( $extArray as $ext ) { + $ret[$ext->getVar('lang_base')]['ext'][] = $ext; + unset($ext); + } + } + return $ret; + } + + function &create($isNew = true, $isBase = true) + { + if($isBase) { + $lang = new Blanguage(); + $lang->isBase = true; + } + else $lang = new Xlanguage(); + if ($isNew) $lang->setNew(); + return $lang; + } + + function insert(&$lang) + { + if (!$lang->isDirty()) return true; + if (!$lang->cleanVars()) return false; + $lang->prepareVars(); + foreach ($lang->cleanVars as $k => $v) { + ${$k} = $v; + } + + if ( $lang->isNew() ) { + if($lang->isBase){ + $var_array = array("lang_id", "lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset"); + }else{ + $var_array = array("lang_id", "lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset", "lang_base"); + } + $lang_id = $this->db->genId($lang->table."_lang_id_seq"); + foreach($var_array as $var){ + $val_array[] = ${$var}; + } + $sql = "INSERT INTO ".$lang->table." (".implode(",",$var_array).") VALUES (".implode(",", $val_array).")"; + if ( !$result = $this->db->queryF($sql) ) { + xoops_error( "Insert language error:".$sql ); + return false; + } + if ( $lang_id == 0 ) $lang_id = $this->db->getInsertId(); + $lang->setVar('lang_id', $lang_id); + }else{ + if($lang->isBase){ + $var_array = array("lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset"); + }else{ + $var_array = array("lang_name", "lang_desc", "lang_image", "weight", "lang_code", "lang_charset", "lang_base"); + } + $set_array = array(); + foreach($var_array as $var){ + $set_array[] = "$var = ".${$var}; + } + $set_string = implode(',', $set_array); + $sql = "UPDATE ".$lang->table." SET ".$set_string." WHERE lang_id = ".$lang->getVar('lang_id'); + if ( !$result = $this->db->queryF($sql) ) { + xoops_error( "update language error:".$sql ); + return false; + } + } + $this->createConfig(); + return $lang->getVar('lang_id'); + } + + function delete(&$lang) + { + if(!is_object($lang) || !$lang->getVar('lang_id')) return true; + $sql = "DELETE FROM ".$lang->table." WHERE lang_id= ". $lang->getVar('lang_id'); + if (!$result = $this->db->query($sql)) { + return false; + } + $this->createConfig(); + return true; + } + + + function getXoopsLangList() + { + return XoopsLists::getLangList(); + } + + + function createConfig() + { + $file_config = XLANGUAGE_CONFIG_FILE; + @unlink($file_config); + if(!$fp = fopen($file_config, 'w')) { + echo "<br> the config file can not be created: ".$file_config; + return false; + } + + $file_content = "<?php"; + unset($this->cached_config); + $baseArray = $this->getAll(); + if ( is_array($baseArray) && count( $baseArray ) > 0 ){ + $file_content .= "\n \$".XLANGUAGE_CONFIG_VAR."['xlanguage_base'] = array("; + foreach( $baseArray as $lang ) { + $file_content .= "\n \"".$lang->getVar('lang_name')."\"=>array("; + $file_content .= "\n \"lang_name\"=>\"".$lang->getVar('lang_name')."\","; + $file_content .= "\n \"lang_desc\"=>\"".$lang->getVar('lang_desc')."\","; + $file_content .= "\n \"lang_charset\"=>\"".$lang->getVar('lang_charset')."\","; + $file_content .= "\n \"lang_code\"=>\"".$lang->getVar('lang_code')."\","; + $file_content .= "\n \"lang_image\"=>\"".$lang->getVar('lang_image')."\","; + $file_content .= "\n \"lang_id\"=>".$lang->getVar('lang_id').","; + $file_content .= "\n \"weight\"=>".$lang->getVar('weight').""; + $file_content .= "\n ),"; + } + $file_content .= "\n );"; + } + + $extArray = $this->getAll(false); + if ( is_array($extArray) && count( $extArray ) > 0 ){ + $file_content .= "\n \$".XLANGUAGE_CONFIG_VAR."['xlanguage_ext'] = array("; + foreach( $extArray as $lang ) { + $file_content .= "\n \"".$lang->getVar('lang_name')."\"=>array("; + $file_content .= "\n \"lang_name\"=>\"".$lang->getVar('lang_name')."\","; + $file_content .= "\n \"lang_desc\"=>\"".$lang->getVar('lang_desc')."\","; + $file_content .= "\n \"lang_charset\"=>\"".$lang->getVar('lang_charset')."\","; + $file_content .= "\n \"lang_code\"=>\"".$lang->getVar('lang_code')."\","; + $file_content .= "\n \"lang_image\"=>\"".$lang->getVar('lang_image')."\","; + $file_content .= "\n \"lang_base\"=>\"".$lang->getVar('lang_base')."\","; + $file_content .= "\n \"lang_id\"=>".$lang->getVar('lang_id').","; + $file_content .= "\n \"weight\"=>".$lang->getVar('weight').""; + $file_content .= "\n ),"; + } + $file_content .= "\n );"; + } + + $file_content .= "\n?>"; + fputs($fp,$file_content); + fclose($fp); + return true; + } + + function &loadFileConfig() + { + $file_config = XLANGUAGE_CONFIG_FILE; + if(!file_exists($file_config)) $this->createConfig(); + if(!is_readable($file_config)) { + $config = null; + return $config; + }else{ + include $file_config; + return ${XLANGUAGE_CONFIG_VAR}; + } + } + +} ?> \ No newline at end of file Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/language/english/admin.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/language/english/admin.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/language/english/admin.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,59 +1,60 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://www.xoops.org.cn // -// ------------------------------------------------------------------------- // - -define('_AM_XLANG_CONFIG', 'XLanguage Configuration'); -define('_AM_XLANG_DELETE_CFM', 'Are you sure to delete the language?'); -define('_AM_XLANG_DELETED', 'The language has been deleted'); -define('_AM_XLANG_SAVED', 'The language has been saved'); -define('_AM_XLANG_EDITLANG', 'Edit language'); -define('_AM_XLANG_ADDLANG', 'Add language'); -define('_AM_XLANG_CREATED', 'The config file has been created'); -define('_AM_XLANG_CONFIGOK', 'Config file is availabe'); -define('_AM_XLANG_CONFIGNOTOK', 'Config file is not availabe'); -define('_AM_XLANG_ADDBASE', 'Add base language'); -define('_AM_XLANG_ADDEXT', 'Add extended language'); -define('_AM_XLANG_CREATECONFIG', 'Create config file'); -define('_AM_XLANG_ABOUT', 'About this module'); -define('_AM_XLANG_LANGLIST', 'language list'); -define('_AM_XLANG_DESC', 'Desc'); -define('_AM_XLANG_NAME', 'Name'); -define('_AM_XLANG_CHARSET', 'charset'); -define('_AM_XLANG_CODE', 'code'); -define('_AM_XLANG_IMAGE', 'Image'); -define('_AM_XLANG_WEIGHT', 'Weight'); -define('_AM_XLANG_BASE', 'Base language'); -// 3.03 -define('_AM_XLANG_ACTION', 'Action'); - -//ModuleAdmin -define('_AM_MODULEADMIN_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)'); - -// Text for Admin footer -define("_AM_XLANG_FOOTER", "<div class='center smallsmall italic pad5'>xLanguage is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); \ No newline at end of file +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // + +define('_AM_XLANG_CONFIG', 'XLanguage Configuration'); +define('_AM_XLANG_DELETE_CFM', 'Are you sure to delete the language?'); +define('_AM_XLANG_DELETED', 'The language has been deleted'); +define('_AM_XLANG_SAVED', 'The language has been saved'); +define('_AM_XLANG_EDITLANG', 'Edit language'); +define('_AM_XLANG_ADDLANG', 'Add language'); +define('_AM_XLANG_CREATED', 'The config file has been created'); +define('_AM_XLANG_CONFIGOK', 'Config file is availabe'); +define('_AM_XLANG_CONFIGNOTOK', 'Config file is not availabe'); +define('_AM_XLANG_ADDBASE', 'Add base language'); +define('_AM_XLANG_ADDEXT', 'Add extended language'); +define('_AM_XLANG_CREATECONFIG', 'Create config file'); +define('_AM_XLANG_ABOUT', 'About this module'); +define('_AM_XLANG_LANGLIST', 'language list'); +define('_AM_XLANG_DESC', 'Desc'); +define('_AM_XLANG_NAME', 'Name'); +define('_AM_XLANG_CHARSET', 'charset'); +define('_AM_XLANG_CODE', 'code'); +define('_AM_XLANG_IMAGE', 'Image'); +define('_AM_XLANG_WEIGHT', 'Weight'); +define('_AM_XLANG_BASE', 'Base language'); + +// 3.03 +define('_AM_XLANG_ACTION', 'Action'); + +//ModuleAdmin +define('_AM_XLANG_MODULEADMIN_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)'); + +define('_AM_XLANG_CHARSET_DESC', "'For example 'iso-8859-1' or ' gb2312' or 'UTF-8'"); +define('_AM_XLANG_CODE_DESC', "e.g. 'en' or 'xen', not a true language code, just a tag to indicate English content"); \ No newline at end of file Modified: XoopsModules/xlanguage/branches/mamba/xlanguage/xoops_version.php =================================================================== --- XoopsModules/xlanguage/branches/mamba/xlanguage/xoops_version.php 2012-06-19 13:33:41 UTC (rev 9672) +++ XoopsModules/xlanguage/branches/mamba/xlanguage/xoops_version.php 2012-06-19 14:53:13 UTC (rev 9673) @@ -1,92 +1,92 @@ -<?php -// $Id$ -// ------------------------------------------------------------------------ // -// Xlanguage: eXtensible Language Management For Xoops // -// Copyright (c) 2004 Xoops China Community // -// <http://www.xoops.org.cn/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://xoops.org.cn // -// ------------------------------------------------------------------------- // -$modversion['name'] = _MI_XLANGUAGE_NAME; -$modversion['version'] = 3.03; -$modversion['description'] = _MI_XLANGUAGE_DESC; -$modversion['credits'] = "Adi Chiributa - web...@ar...; wjue - http://www.wjue.org; GIJOE - http://www.peak.ne.jp"; -$modversion['author'] = "phppp(D.J.) - http://xoops.org.cn, http://xoopsforge.com"; -$modversion['help'] = "page=help"; -$modversion['license'] = "GNU GPL"; -$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; -$modversion['official'] = 0; -$modversion['image'] = "xlanguage_logo.png"; -$modversion['dirname'] = "xlanguage"; -$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; -$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; -$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; - -//about -$modversion['release_date'] = '2011/12/12'; -$modversion["module_website_url"] = "http://www.xoops.org/"; -$modversion["module_website_name"] = "XOOPS"; -$modversion["module_status"] = "RC"; -$modversion['min_php']='5.2'; -$modversion['min_xoops']="2.5"; -$modversion['min_admin']='1.1'; -$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); - -$modversion['system_menu'] = 1; - -$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; -$modversion['tables'][0] = "xlanguage_base"; -$modversion['tables'][1] = "xlanguage_ext"; - -// Admin things -$modversion['hasAdmin'] = 1; -$modversion['adminindex'] = "admin/index.php"; -$modversion['adminmenu'] = "admin/menu.php"; - -// Use smarty -$modversion["use_smarty"] = 1; - -//language selection block -$modversion['blocks'][1]['file'] = "xlanguage_blocks.php"; -$modversion['blocks'][1]['name'] = _MI_XLANGUAGE_BNAME; -$modversion['blocks'][1]['description'] = ''; -$modversion['blocks'][1]['show_func'] = "b_xlanguage_select_show"; -$modversion['blocks'][1]['edit_func'] = "b_xlanguage_select_edit"; -$modversion['blocks'][1]['options'] = "images| |5"; -$modversion["blocks"][1]["template"] = "xlanguage_block.html"; - -$modversion['releasedate'] = "July 9th, 2006"; -$modversion['status'] = "stable"; -$modversion['xoopsversion'] = "2.0+"; - -$modversion['author_website'][1]['url'] = "http://xoops.org.cn"; -$modversion['author_website'][1]['name'] = "The Xoops China Community"; -$modversion['author_website'][2]['url'] = "http://xoopsforge.com"; -$modversion['author_website'][2]['name'] = "XForge"; - -$modversion['author_email'] = "ph...@ho..."; -$modversion['demo_site_url'] = "http://xoops.org.cn"; -$modversion['demo_site_name'] = "Xoops China"; -$modversion['support_site_url'] = "http://xoopsforge.com"; -$modversion['support_site_name'] = "XForge"; +<?php +// $Id$ +// ------------------------------------------------------------------------ // +// Xlanguage: eXtensible Language Management For Xoops // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// -------------------------------------------------------------... [truncated message content] |
From: <be...@us...> - 2012-06-19 13:33:52
|
Revision: 9672 http://xoops.svn.sourceforge.net/xoops/?rev=9672&view=rev Author: beckmi Date: 2012-06-19 13:33:41 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Fixing errors reported by Cesag Updating to 1.11 Final Modified Paths: -------------- XoopsModules/defacer/trunk/defacer/docs/changelog.txt XoopsModules/defacer/trunk/defacer/docs/readme.txt XoopsModules/defacer/trunk/defacer/language/english/help/help.html XoopsModules/defacer/trunk/defacer/language/english/modinfo.php XoopsModules/defacer/trunk/defacer/xoops_version.php Modified: XoopsModules/defacer/trunk/defacer/docs/changelog.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/changelog.txt 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/docs/changelog.txt 2012-06-19 13:33:41 UTC (rev 9672) @@ -1,8 +1,13 @@ -<b><u>Version 1.1 Final (2012-05-22)</u></b> +<b><u>Version 1.11 Final (2012-06-19)</u></b> - Converted to XOOPS 2.5.x GUI (mamba) - updated Icons to make them consistent with other modules +<b><u>Version 1.10 Final (2012-05-22)</u></b> + +- Converted to XOOPS 2.5.x GUI (mamba) +- updated Icons to make them consistent with other modules + <b><u> Version 1.0 Final (2009-09-05)</u></b> - Added : jgrowl redirection. Modified: XoopsModules/defacer/trunk/defacer/docs/readme.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/readme.txt 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/docs/readme.txt 2012-06-19 13:33:41 UTC (rev 9672) @@ -1,13 +1,12 @@ -What is Defacer Module (v1.0 Final) ? +What is Defacer Module (v1.0 Final) ====================== -With this Xoops module, your can: +With this Xoops module, you can: - change themes, metadata and permissions for any given page. - enable jgrowl redirection system - use blocks anywhere - Requirements ==================== Modified: XoopsModules/defacer/trunk/defacer/language/english/help/help.html =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/help/help.html 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/language/english/help/help.html 2012-06-19 13:33:41 UTC (rev 9672) @@ -16,7 +16,7 @@ templates </p><br/> <p> - With this Xoops module, your can: + With this Xoops module, you can: <ul> <li>change themes, metadata and permissions for any given page.</li> <li>enable jgrowl redirection system</li> Modified: XoopsModules/defacer/trunk/defacer/language/english/modinfo.php =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/modinfo.php 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/language/english/modinfo.php 2012-06-19 13:33:41 UTC (rev 9672) @@ -1,6 +1,6 @@ <?php define("_MI_DEFACER_MD_NAME", "Defacer"); -define("_MI_DEFACER_MD_DSC", "This module enables your site to change themes, metadata and group acess permissions for each given page."); +define("_MI_DEFACER_MD_DSC", "This module enables your site to change themes, metadata and group access permissions for each given page."); define("_MI_DEFACER_PAGEMANAGER", "Page Manager"); define("_MI_DEFACER_THEMEMANAGER", "Theme Manager"); @@ -21,9 +21,9 @@ define("_MI_DEFACER_DISPERMISSIONS_DSC", "This will disable all Defacer's permission actions"); define("_MI_DEFACER_XOOPS_URL", "Xoops Url"); -define("_MI_DEFACER_XOOPS_URL_DSC", "Please provide your site url without tralling slash."); +define("_MI_DEFACER_XOOPS_URL_DSC", "Please provide your site url without trailing slash."); -define("_MI_DEFACER_ENABLE_REDIRECT", "Enable jgrowl redirecting system"); +define("_MI_DEFACER_ENABLE_REDIRECT", "Enable jGrowl redirecting system"); define("_MI_DEFACER_ENABLE_REDIRECT_DSC", "Enable this to replace default redirection pages(xoops 2.4 > only)"); //1.1 Modified: XoopsModules/defacer/trunk/defacer/xoops_version.php =================================================================== --- XoopsModules/defacer/trunk/defacer/xoops_version.php 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/xoops_version.php 2012-06-19 13:33:41 UTC (rev 9672) @@ -24,7 +24,7 @@ * General Information */ $modversion['name'] = _MI_DEFACER_MD_NAME; -$modversion['version'] = 1.1; +$modversion['version'] = 1.11; $modversion['description'] = _MI_DEFACER_MD_DSC; $modversion['author'] = "Trabis (www.xuups.com)"; $modversion['credits'] = "Trabis (http://www.xuups.com), The ImpressCMS Project (http://www.impresscms.org/) & TheRplima (http://community.impresscms.org/userinfo.php?uid=106)"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-19 12:49:22
|
Revision: 9671 http://xoops.svn.sourceforge.net/xoops/?rev=9671&view=rev Author: beckmi Date: 2012-06-19 12:49:12 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Updating deprecated DB functions Updating to RC1 Modified Paths: -------------- XoopsModules/xoopstube/trunk/xoopstube/admin/blocksadmin.php XoopsModules/xoopstube/trunk/xoopstube/admin/permissions.php XoopsModules/xoopstube/trunk/xoopstube/include/functions.php XoopsModules/xoopstube/trunk/xoopstube/xoops_version.php Modified: XoopsModules/xoopstube/trunk/xoopstube/admin/blocksadmin.php =================================================================== --- XoopsModules/xoopstube/trunk/xoopstube/admin/blocksadmin.php 2012-06-18 19:36:48 UTC (rev 9670) +++ XoopsModules/xoopstube/trunk/xoopstube/admin/blocksadmin.php 2012-06-19 12:49:12 UTC (rev 9671) @@ -33,7 +33,7 @@ function listar_blocos() { global $xoopsUser, $xoopsConfig, $xoopsModule; include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); if (file_exists( XOOPS_ROOT_PATH . "/modules/system/language/" . $xoopsConfig['language'] . "/admin/blocksadmin.php" ) @@ -195,7 +195,7 @@ } mpu_adm_menu(); $myblock = new XoopsBlock($bid); - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $sql = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . intval($bid); $result = $db->query($sql); $modules = array(); @@ -285,7 +285,7 @@ $tplfile_handler->insert($tplclone); } } - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); foreach ($bmodule as $bmid) { $sql = 'INSERT INTO ' . $db->prefix('block_module_link') . ' (block_id, module_id) VALUES (' . $newid . ', ' . $bmid . ')'; Modified: XoopsModules/xoopstube/trunk/xoopstube/admin/permissions.php =================================================================== --- XoopsModules/xoopstube/trunk/xoopstube/admin/permissions.php 2012-06-18 19:36:48 UTC (rev 9670) +++ XoopsModules/xoopstube/trunk/xoopstube/admin/permissions.php 2012-06-19 12:49:12 UTC (rev 9671) @@ -20,7 +20,7 @@ <option value='3'" . $selected[2] . ">" . _AM_XTUBE_PERM_APERMISSIONS . "</option> <option value='4'" . $selected[3] . ">" . _AM_XTUBE_PERM_AUTOPERMISSIONS . "</option> <option value='5'" . $selected[4] . ">" . _AM_XTUBE_PERM_RATEPERMISSIONS . "</option> -</select></td></tr><tr><td><input type='submit' name='go'/></td></tr></table></form>"; +</select></td></tr><tr><td><br /></td></tr></table></form>"; $module_id = $xoopsModule->getVar('mid'); switch ($permtoset) { Modified: XoopsModules/xoopstube/trunk/xoopstube/include/functions.php =================================================================== --- XoopsModules/xoopstube/trunk/xoopstube/include/functions.php 2012-06-18 19:36:48 UTC (rev 9670) +++ XoopsModules/xoopstube/trunk/xoopstube/include/functions.php 2012-06-19 12:49:12 UTC (rev 9671) @@ -1261,7 +1261,7 @@ function xtube_getbanner_from_id_banner($banner_id) { ###### Hack by www.stefanosilvestrini.com ###### global $xoopsConfig; - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $bresult = $db->query('SELECT COUNT(*) FROM ' . $db->prefix('banner') . ' WHERE bid=' . $banner_id); list ($numrows) = $db->fetchRow($bresult); if ($numrows > 1) { @@ -1310,7 +1310,7 @@ function xtube_getbanner_from_id_client($client_id) { ###### Hack by www.stefanosilvestrini.com ###### global $xoopsConfig; - $db =& Database::getInstance(); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); $bresult = $db->query('SELECT COUNT(*) FROM ' . $db->prefix('banner') . ' WHERE cid=' . $client_id); list ($numrows) = $db->fetchRow($bresult); if ($numrows > 1) { Modified: XoopsModules/xoopstube/trunk/xoopstube/xoops_version.php =================================================================== --- XoopsModules/xoopstube/trunk/xoopstube/xoops_version.php 2012-06-18 19:36:48 UTC (rev 9670) +++ XoopsModules/xoopstube/trunk/xoopstube/xoops_version.php 2012-06-19 12:49:12 UTC (rev 9671) @@ -8,7 +8,7 @@ $modversion['name'] = _MI_XTUBE_NAME; $modversion['version'] = '1.05'; -$modversion['releasedate'] = 'May 9, 2012'; +$modversion['releasedate'] = 'June 19, 2012'; $modversion['status'] = 'Final'; $modversion['description'] = _MI_XTUBE_DESC; //$modversion['license'] = _MI_XTUBE_LICENSEDSC; @@ -35,10 +35,10 @@ $modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; //about -$modversion['release_date'] = '2012/05/09'; -$modversion["module_website_url"] = "http://www.xoops.org/"; +$modversion['release_date'] = '2012/06/19'; +$modversion["module_website_url"] = "www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; -$modversion["module_status"] = "Beta 1"; +$modversion["module_status"] = "RC 1"; $modversion['min_php'] = '5.2'; $modversion['min_xoops'] = "2.5"; $modversion['min_admin'] = '1.1'; @@ -719,10 +719,10 @@ $modversion['notification']['event'][8]['mail_subject'] = _MI_XTUBE_VIDEO_APPROVE_NOTIFYSBJ; // On Update -if (!empty($_POST['fct']) && !empty($_POST['op']) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' - && $_POST['dirname'] == $modversion['dirname'] -) { - include dirname(__FILE__) . '/include/onupdate.inc.php'; -} +//if (!empty($_POST['fct']) && !empty($_POST['op']) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' +// && $_POST['dirname'] == $modversion['dirname'] +//) { +// include dirname(__FILE__) . '/include/onupdate.inc.php'; +//} ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-18 19:36:54
|
Revision: 9670 http://xoops.svn.sourceforge.net/xoops/?rev=9670&view=rev Author: beckmi Date: 2012-06-18 19:36:48 +0000 (Mon, 18 Jun 2012) Log Message: ----------- fixing Delete Icon (Mazarin) Modified Paths: -------------- XoopsModules/news/branches/mamba/news/admin/index.php Modified: XoopsModules/news/branches/mamba/news/admin/index.php =================================================================== --- XoopsModules/news/branches/mamba/news/admin/index.php 2012-06-18 15:32:39 UTC (rev 9669) +++ XoopsModules/news/branches/mamba/news/admin/index.php 2012-06-18 19:36:48 UTC (rev 9670) @@ -125,7 +125,7 @@ echo "<td align='center'><b>" . $autostory -> storyid() . "</b> </td><td align='left'><a href='" . XOOPS_URL . "/modules/news/article.php?storyid=" . $autostory->storyid() . "'>" . $autostory->title() . "</a> </td><td align='center'>" . $topic->topic_title() . " - </td><td align='center'><a href='" . XOOPS_URL . "/userinfo.php?uid=" . $autostory->uid() . "'>" . $autostory->uname() . "</a></td><td align='center' class='nw'>" . formatTimestamp($autostory->published(),$dateformat) . "</td><td align='center'>" . $expire . "</td><td align='center'><a href='".XOOPS_URL."/modules/news/submit.php?returnside=1&op=edit&storyid=" . $autostory->storyid() . "'><img src='" . $pathIcon16."/edit.png' title="._AM_EDIT."> </a> <a href='".XOOPS_URL."/modules/news/admin/index.php?op=delete&storyid=" . $autostory->storyid() . "'><img src='" . $pathIcon16."/delete.png. ' '. title='._AM_DELETE.'></a>"; + </td><td align='center'><a href='" . XOOPS_URL . "/userinfo.php?uid=" . $autostory->uid() . "'>" . $autostory->uname() . "</a></td><td align='center' class='nw'>" . formatTimestamp($autostory->published(),$dateformat) . "</td><td align='center'>" . $expire . "</td><td align='center'><a href='".XOOPS_URL."/modules/news/submit.php?returnside=1&op=edit&storyid=" . $autostory->storyid() . "'><img src='" . $pathIcon16."/edit.png' title="._AM_EDIT."> </a> <a href='".XOOPS_URL."/modules/news/admin/index.php?op=delete&storyid=" . $autostory->storyid() . "'><img src='" . $pathIcon16."/delete.png' title='"._AM_DELETE."'></a>"; echo "</td></tr>\n"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-18 15:32:45
|
Revision: 9669 http://xoops.svn.sourceforge.net/xoops/?rev=9669&view=rev Author: beckmi Date: 2012-06-18 15:32:39 +0000 (Mon, 18 Jun 2012) Log Message: ----------- Adding Subtitle to template Modified Paths: -------------- XoopsModules/news/branches/mamba/news/article.php XoopsModules/news/branches/mamba/news/templates/news_item.html Modified: XoopsModules/news/branches/mamba/news/article.php =================================================================== --- XoopsModules/news/branches/mamba/news/article.php 2012-06-18 07:52:39 UTC (rev 9668) +++ XoopsModules/news/branches/mamba/news/article.php 2012-06-18 15:32:39 UTC (rev 9669) @@ -183,6 +183,7 @@ $story['posttime'] = formatTimestamp($article->published(),$dateformat); $story['news_title'] = $article->title(); $story['title'] = $article->textlink().' : '.$article->title(); +$story['subtitle'] = $article->subtitle(); $story['topic_title'] = $article->textlink(); Modified: XoopsModules/news/branches/mamba/news/templates/news_item.html =================================================================== --- XoopsModules/news/branches/mamba/news/templates/news_item.html 2012-06-18 07:52:39 UTC (rev 9668) +++ XoopsModules/news/branches/mamba/news/templates/news_item.html 2012-06-18 15:32:39 UTC (rev 9669) @@ -4,6 +4,7 @@ <h2><{$story.news_title}></h2> </span> </div> + <h6> <i><{$story.subtitle}></i></h6> <div class="itemInfo"> <{if $story.files_attached}><{$story.attached_link}> <{/if}> <{if $story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span><{/if}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dh...@us...> - 2012-06-18 07:52:50
|
Revision: 9668 http://xoops.svn.sourceforge.net/xoops/?rev=9668&view=rev Author: dhcst Date: 2012-06-18 07:52:39 +0000 (Mon, 18 Jun 2012) Log Message: ----------- Fix path for seo Modified Paths: -------------- XoopsModules/newbb/branches/alfred/newbb/class/topic.renderer.php XoopsModules/newbb/branches/alfred/newbb/moderate.php XoopsModules/newbb/branches/alfred/newbb/viewforum.php XoopsModules/newbb/branches/alfred/newbb/viewpost.php XoopsModules/newbb/branches/alfred/newbb/viewtopic.php Modified: XoopsModules/newbb/branches/alfred/newbb/class/topic.renderer.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/class/topic.renderer.php 2012-06-17 21:34:05 UTC (rev 9667) +++ XoopsModules/newbb/branches/alfred/newbb/class/topic.renderer.php 2012-06-18 07:52:39 UTC (rev 9668) @@ -485,7 +485,7 @@ } require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; $nav = new XoopsPageNav($count_topic, $this->config['topics_per_page'], @$this->vars["start"], "start", implode("&", $args)); - if (!empty($GLOBALS['xoopsModuleConfig']['do_rewrite'])) $nav->url = XOOPS_URL . $nav->url; + if (isset($xoopsModuleConfig['do_rewrite'])) $nav->url = formatURL($_SERVER['SERVER_NAME']) ." /" . $nav->url; if ($this->config['pagenav_display'] == 'select') $navi = $nav->renderSelect(); elseif ($this->config['pagenav_display'] == 'bild') Modified: XoopsModules/newbb/branches/alfred/newbb/moderate.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/moderate.php 2012-06-17 21:34:05 UTC (rev 9667) +++ XoopsModules/newbb/branches/alfred/newbb/moderate.php 2012-06-18 07:52:39 UTC (rev 9668) @@ -205,6 +205,7 @@ if ( $moderate_count > $xoopsModuleConfig['topics_per_page']) { include XOOPS_ROOT_PATH.'/class/pagenav.php'; $nav = new XoopsPageNav($all_topics, $xoopsModuleConfig['topics_per_page'], $start, "start", 'forum='.$forum_id.'&sort='.$sortname); + if (isset($xoopsModuleConfig['do_rewrite'])) $nav->url = formatURL($_SERVER['SERVER_NAME']) ." /" . $nav->url; echo '<tr><td colspan="6">'.$nav->renderNav(4).'</td></tr>'; } Modified: XoopsModules/newbb/branches/alfred/newbb/viewforum.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/viewforum.php 2012-06-17 21:34:05 UTC (rev 9667) +++ XoopsModules/newbb/branches/alfred/newbb/viewforum.php 2012-06-18 07:52:39 UTC (rev 9668) @@ -261,7 +261,8 @@ $page_query_nav = implode("&", array_values($query_nav)); unset($query_nav); $nav = new XoopsPageNav($all_topics, $xoopsModuleConfig['topics_per_page'], $start, "start", $page_query_nav); - if (!empty($xoopsModuleConfig['do_rewrite'])) $nav->url = XOOPS_URL.$nav->url; + //if (isset($xoopsModuleConfig['do_rewrite'])) $nav->url = formatURL($_SERVER['SERVER_NAME']) . $nav->url; + if (isset($xoopsModuleConfig['do_rewrite'])) $nav->url = XOOPS_URL . $nav->url; if ($xoopsModuleConfig['pagenav_display'] == 'select') $navi = $nav->renderSelect(); elseif ($xoopsModuleConfig['pagenav_display'] == 'bild') Modified: XoopsModules/newbb/branches/alfred/newbb/viewpost.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/viewpost.php 2012-06-17 21:34:05 UTC (rev 9667) +++ XoopsModules/newbb/branches/alfred/newbb/viewpost.php 2012-06-18 07:52:39 UTC (rev 9668) @@ -333,7 +333,8 @@ if ( $postCount > $post_perpage ) { include XOOPS_ROOT_PATH.'/class/pagenav.php'; $nav = new XoopsPageNav($postCount, $post_perpage, $start, "start", 'forum='.$forum_id.'&viewmode='.$viewmode.'&status='.$status.'&uid='.$uid.'&order='.$order."&mode=".$mode); - if (!empty($xoopsModuleConfig['do_rewrite'])) $nav->url = XOOPS_URL . $nav->url; + if (isset($xoopsModuleConfig['do_rewrite'])) $nav->url = formatURL($_SERVER['SERVER_NAME']) . $nav->url; + //if (isset($xoopsModuleConfig['do_rewrite'])) $nav->url = XOOPS_URL . $nav->url; if ($xoopsModuleConfig['pagenav_display'] == 'select') $navi = $nav->renderSelect(); elseif ($xoopsModuleConfig['pagenav_display'] == 'bild') Modified: XoopsModules/newbb/branches/alfred/newbb/viewtopic.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/viewtopic.php 2012-06-17 21:34:05 UTC (rev 9667) +++ XoopsModules/newbb/branches/alfred/newbb/viewtopic.php 2012-06-18 07:52:39 UTC (rev 9668) @@ -255,7 +255,10 @@ if ( $total_posts > $xoopsModuleConfig['posts_per_page'] ) { include XOOPS_ROOT_PATH.'/class/pagenav.php'; $nav = new XoopsPageNav($total_posts, $xoopsModuleConfig['posts_per_page'] , $start , "start", 'topic_id='.$topic_id.'&order='.$order.'&status='.$status."&mode=".$mode); - if (!empty($xoopsModuleConfig['do_rewrite'])) $nav->url = XOOPS_URL . $nav->url; + if (!isset($xoopsModuleConfig['do_rewrite'])) + $nav->url = formatURL($_SERVER['SERVER_NAME']) . $nav->url; + else + $nav->url = XOOPS_URL . $nav->url; if ($xoopsModuleConfig['pagenav_display'] == 'select') { $navi = $nav->renderSelect(); } elseif ($xoopsModuleConfig['pagenav_display'] == 'bild') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ce...@us...> - 2012-06-17 21:34:12
|
Revision: 9667 http://xoops.svn.sourceforge.net/xoops/?rev=9667&view=rev Author: cesag Date: 2012-06-17 21:34:05 +0000 (Sun, 17 Jun 2012) Log Message: ----------- Correction of French for XCenter modinfo.php Modified Paths: -------------- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php Modified: XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php =================================================================== --- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php 2012-06-17 21:17:04 UTC (rev 9666) +++ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php 2012-06-17 21:34:05 UTC (rev 9667) @@ -77,65 +77,65 @@ define('_XTR_TEMPLATE_INDEX', 'xcenter_index.html'); define('_XTR_TEMPLATE_INDEX_DESC', 'Index File for Xcenter'); define('_XTR_TEMPLATE_BREADCRUMB', 'xcenter_breadcrumb.html'); - define('_XTR_TEMPLATE_BREADCRUMB_DESC', 'Fil d\'Ariane pour le fichier Index de Xcenter'); + define('_XTR_TEMPLATE_BREADCRUMB_DESC', 'Breadcrumb for Index File for Xcenter'); define('_XTR_TEMPLATE_CPANEL_ADDEDITPAGE', 'xcenter_cpanel_addeditpage.html'); - define('_XTR_TEMPLATE_CPANEL_ADDEDITPAGE_DESC', 'Modifications XCenter Cpanel pour Xcenter'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITPAGE_DESC', 'Xcenter Cpanel Edit From for Xcenter'); define('_XTR_TEMPLATE_CPANEL_ADDEDITCATEGORY', 'xcenter_cpanel_addeditcategory.html'); - define('_XTR_TEMPLATE_CPANEL_ADDEDITCATEGORY_DESC', 'Modifications XCenter Cpanel pour les catégories'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITCATEGORY_DESC', 'Xcenter Cpanel Edit From for Category'); define('_XTR_TEMPLATE_CPANEL_ADDEDITBLOCK', 'xcenter_cpanel_addeditblock.html'); - define('_XTR_TEMPLATE_CPANEL_ADDEDITBLOCK_DESC', 'Modifications XCenter Cpanel pour les blocs'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITBLOCK_DESC', 'Xcenter Cpanel Edit From for block'); define('_XTR_TEMPLATE_INDEX_ADDEDITPAGE', 'xcenter_index_addeditpage.html'); - define('_XTR_TEMPLATE_INDEX_ADDEDITPAGE_DESC', 'Modifications XCenter Index pour Xcenter'); + define('_XTR_TEMPLATE_INDEX_ADDEDITPAGE_DESC', 'Xcenter Index Edit From for Xcenter'); define('_XTR_TEMPLATE_INDEX_ADDEDITCATEGORY', 'xcenter_index_addeditcategory.html'); - define('_XTR_TEMPLATE_INDEX_ADDEDITCATEGORY_DESC', 'Modifications XCenter Index pour les catégories'); + define('_XTR_TEMPLATE_INDEX_ADDEDITCATEGORY_DESC', 'Xcenter Index Edit From for Category'); define('_XTR_TEMPLATE_INDEX_ADDEDITBLOCK', 'xcenter_index_addeditblock.html'); - define('_XTR_TEMPLATE_INDEX_ADDEDITBLOCK_DESC', 'Modifications XCenter Cpanel pour les blocs'); + define('_XTR_TEMPLATE_INDEX_ADDEDITBLOCK_DESC', 'Xcenter Cpanel Edit From for block'); define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITPAGE', 'xcenter_cpanel_json_addeditpage.html'); - define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITPAGE_DESC', 'Modifications XCenter Cpanel pour le json de Xcenter'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITPAGE_DESC', 'Xcenter Cpanel Edit From for Xcenter for json'); define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITCATEGORY', 'xcenter_cpanel_json_addeditcategory.html'); - define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITCATEGORY_DESC', 'Modifications XCenter Cpanel pour le json des catégories'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITCATEGORY_DESC', 'Xcenter Cpanel Edit From for Category for json'); define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITBLOCK', 'xcenter_cpanel_json_addeditblock.html'); - define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITBLOCK_DESC', 'Modifications XCenter Cpanel pour le json des blocs'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITBLOCK_DESC', 'Xcenter Cpanel Edit From for block for json'); define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITPAGE', 'xcenter_index_json_addeditpage.html'); - define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITPAGE_DESC', 'Modifications XCenter Index pour le json de Xcenter'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITPAGE_DESC', 'Xcenter Index Edit From for Xcenter for json'); define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITCATEGORY', 'xcenter_index_json_addeditcategory.html'); - define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITCATEGORY_DESC', 'Modifications XCenter Index pour le json des catégories'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITCATEGORY_DESC', 'Xcenter Index Edit From for Category for json'); define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITBLOCK', 'xcenter_index_json_addeditblock.html'); - define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITBLOCK_DESC', 'Modifications XCenter Index pour le json des blocs'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITBLOCK_DESC', 'Xcenter Cpanel Edit From for block for json'); define('_XTR_TEMPLATE_INDEX_MANAGE', 'xcenter_index_manage.html'); - define('_XTR_TEMPLATE_INDEX_MANAGE_DESC', 'Modèle du gestionnaire Xcenter - affichage de listes'); + define('_XTR_TEMPLATE_INDEX_MANAGE_DESC', 'Xcenter Manager Template - Displays lists'); define('_XTR_TEMPLATE_INDEX_PASSWORD', 'xcenter_index_password.html'); - define('_XTR_TEMPLATE_INDEX_PASSWORD_DESC', 'Modèle pour l\'invite de mot de passe de Xcenter'); + define('_XTR_TEMPLATE_INDEX_PASSWORD_DESC', 'Xcenter Password Prompt Template'); //CLASS NAMES // DO NOT CHANGE define('_XTR_CLASS_XCENTER', 'xcenter'); - define('_XTR_CLASS_CATEGORY', 'catégorie'); - define('_XTR_CLASS_TEXT', 'texte'); - define('_XTR_CLASS_BLOCK', 'bloc'); + define('_XTR_CLASS_CATEGORY', 'category'); + define('_XTR_CLASS_TEXT', 'text'); + define('_XTR_CLASS_BLOCK', 'block'); define('_XTR_CLASS_XLANGUAGE_EXT', 'xlanguage_ext'); //FUNCTIOnAL PAGE OpERATORs -- DO NOT CHANGE - define('_XTR_URL_OP_SAVE', 'enregistrer'); - define('_XTR_URL_OP_EDIT', 'modifier'); - define('_XTR_URL_OP_ADD', 'ajouter'); - define('_XTR_URL_OP_DELETE', 'supprimer'); - define('_XTR_URL_OP_COPY', 'copier'); - define('_XTR_URL_OP_MANAGE', 'gérer'); - define('_XTR_URL_OP_PERMISSIONS', 'autorisations'); + define('_XTR_URL_OP_SAVE', 'save'); + define('_XTR_URL_OP_EDIT', 'edit'); + define('_XTR_URL_OP_ADD', 'add'); + define('_XTR_URL_OP_DELETE', 'delete'); + define('_XTR_URL_OP_COPY', 'copy'); + define('_XTR_URL_OP_MANAGE', 'manage'); + define('_XTR_URL_OP_PERMISSIONS', 'permissions'); define('_XTR_URL_FORM_XCENTER', 'xcenter'); - define('_XTR_URL_FORM_CATEGORY', 'catégorie'); - define('_XTR_URL_FORM_BLOCK', 'bloc'); - define('_XTR_URL_FCT_CATEGORIES', 'catégories'); + define('_XTR_URL_FORM_CATEGORY', 'category'); + define('_XTR_URL_FORM_BLOCK', 'block'); + define('_XTR_URL_FCT_CATEGORIES', 'categories'); define('_XTR_URL_FCT_XCENTER', 'xcenter'); - define('_XTR_URL_FCT_CATEGORY', 'catégorie'); - define('_XTR_URL_FCT_BLOCK', 'bloc'); - define('_XTR_URL_FCT_BLOCKS', 'blocs'); + define('_XTR_URL_FCT_CATEGORY', 'category'); + define('_XTR_URL_FCT_BLOCK', 'block'); + define('_XTR_URL_FCT_BLOCKS', 'blocks'); define('_XTR_URL_FCT_PAGES', 'pages'); - define('_XTR_URL_FCT_TEMPLATE', 'modèle'); + define('_XTR_URL_FCT_TEMPLATE', 'template'); //ENUMERATORS // DO NOT CHANGE - define('_XTR_ENUM_TYPE_BLOCK', 'bloc'); - define('_XTR_ENUM_TYPE_CATEGORY', 'catégorie'); + define('_XTR_ENUM_TYPE_BLOCK', 'block'); + define('_XTR_ENUM_TYPE_CATEGORY', 'category'); define('_XTR_ENUM_TYPE_XCENTER', 'xcenter'); // PATHs // DO NOT CHANGE @@ -165,24 +165,24 @@ define('_XTR_PATH_PHP_FORM_HTMLTEMPLATES', '/modules/'._XTR_DIRNAME.'/include/formselecttemplates.php'); // PERMiSSION OPTIONS // DO NOT CHANGE - define('_XTR_PERM_VIEW_CATEGORY', 'Affichage des autorisations des catégories'); - define('_XTR_PERM_VIEW_XCENTER', 'Affichage des autorisations du contenu'); - define('_XTR_PERM_VIEW_BLOCK', 'Affichage des autorisations des blocs'); - define('_XTR_PERM_EDIT_CATEGORY', 'Modification des autorisations des catégories'); - define('_XTR_PERM_EDIT_XCENTER', 'Modification des autorisations du contenu'); - define('_XTR_PERM_EDIT_BLOCK', 'Modification des autorisations des blocs'); - define('_XTR_PERM_ADD_CATEGORY', 'Ajout des autorisations des catégories'); - define('_XTR_PERM_ADD_XCENTER', 'Ajout des autorisations du contenu'); - define('_XTR_PERM_ADD_BLOCK', 'Ajout des autorisations des blocs'); - define('_XTR_PERM_DEFAULT_TEMPLATE', 'Autorisations par défaut'); + define('_XTR_PERM_VIEW_CATEGORY', 'Categories Viewing Permissions'); + define('_XTR_PERM_VIEW_XCENTER', 'Content Viewing Permissions'); + define('_XTR_PERM_VIEW_BLOCK', 'Block Viewing Permissions'); + define('_XTR_PERM_EDIT_CATEGORY', 'Categories Edit Permissions'); + define('_XTR_PERM_EDIT_XCENTER', 'Content Edit Permissions'); + define('_XTR_PERM_EDIT_BLOCK', 'Block Edit Permissions'); + define('_XTR_PERM_ADD_CATEGORY', 'Categories Adding Permissions'); + define('_XTR_PERM_ADD_XCENTER', 'Content Adding Permissions'); + define('_XTR_PERM_ADD_BLOCK', 'Block Adding Permissions'); + define('_XTR_PERM_DEFAULT_TEMPLATE', 'Default Permissions'); // PERMISSION TYPES & MODES // DO NOT CHANGE - define('_XTR_PERM_MODE_VIEW', 'voir'); - define('_XTR_PERM_MODE_EDIT', 'modifier'); - define('_XTR_PERM_MODE_ADD', 'ajouter'); - define('_XTR_PERM_MODE_COPY', 'copier'); - define('_XTR_PERM_MODE_DELETE', 'supprimer'); - define('_XTR_PERM_MODE_ALL', 'tout'); + define('_XTR_PERM_MODE_VIEW', 'view'); + define('_XTR_PERM_MODE_EDIT', 'edit'); + define('_XTR_PERM_MODE_ADD', 'add'); + define('_XTR_PERM_MODE_COPY', 'copy'); + define('_XTR_PERM_MODE_DELETE', 'delete'); + define('_XTR_PERM_MODE_ALL', 'all'); define('_XTR_PERM_TYPE_CATEGORY', '_category'); define('_XTR_PERM_TYPE_XCENTER', '_xcenter'); define('_XTR_PERM_TYPE_BLOCK', '_block'); @@ -245,7 +245,7 @@ define('_XTR_SECURITY_DESC', 'Type de complexité de la sécurité que vous souhaitez utiliser !'); define('_XTR_MUlTILINGUAL', 'Documents Multilingues'); define('_XTR_SUPPORTTAGS', 'Soutien du module Tag'); - define('_XTR_SUPPORTTAGS_DESC', 'Soutien du module Tag (2.3 ou supérieur)<br/><a href="http://sourceforge.net/projects/xoops/files/XOOPS%20Module%20Repository/XOOPS%20tag%202.30%20RC/">Télécharger le module Tag</a>'); + define('_XTR_SUPPORTTAGS_DESC', 'Soutien du module Tag (2.3 ou supérieur)<br/><a href="http://xoops.svn.sourceforge.net/viewvc/xoops/XoopsModules/tag/trunk/tag/?view=tar">Télécharger le module Tag</a>'); define('_XTR_MUlTILINGUAL_DESC', 'Permet de spécifier plusieurs langues par page'); define('_XTR_XCENTER_NAME', 'Contenu multilingue'); define('_XTR_XCENTER_DIRNAME', 'xcenter'); @@ -288,8 +288,8 @@ // Version 2.16 //FUNCTIOnAL PAGE OpERATORs -- DO NOT CHANGE - define('_XTR_URL_OP_DASHBOARD', 'Tableau de bord'); - define('_XTR_URL_OP_ABOUT', 'À propos'); + define('_XTR_URL_OP_DASHBOARD', 'dashboard'); + define('_XTR_URL_OP_ABOUT', 'about'); //ADMINISTRATION SETTINGS // DO NOT CHANGE define('_XTR_HASADMIN', true); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-17 21:17:10
|
Revision: 9666 http://xoops.svn.sourceforge.net/xoops/?rev=9666&view=rev Author: beckmi Date: 2012-06-17 21:17:04 +0000 (Sun, 17 Jun 2012) Log Message: ----------- fixing typos and errors reported by Cesag Modified Paths: -------------- XoopsModules/news/branches/mamba/news/templates/news_article.html Modified: XoopsModules/news/branches/mamba/news/templates/news_article.html =================================================================== --- XoopsModules/news/branches/mamba/news/templates/news_article.html 2012-06-17 20:21:31 UTC (rev 9665) +++ XoopsModules/news/branches/mamba/news/templates/news_article.html 2012-06-17 21:17:04 UTC (rev 9666) @@ -3,8 +3,8 @@ <div class="marg2 pad2"><{include file="db:news_item.html" story=$story}> <{if $xoops_isadmin}> - <a href="<{$xoops_url}>/modules/news/submit.php?op=edit&storyid=<{$story.id}>"><img src="<{xoModuleIcons16 edit.png}>" title="NW_EDIT"></a> - <a href="<{$xoops_url}>/modules/news/admin/index.php?op=delete&storyid=<{$story.id}>"><img src="<{xoModuleIcons16 delete.png}>" title="._NW_DELETE."></a> + <a href="<{$xoops_url}>/modules/news/submit.php?op=edit&storyid=<{$story.id}>"><img src="<{xoModuleIcons16 edit.png}>" title="<{$smarty.const._EDIT}>"></a> + <a href="<{$xoops_url}>/modules/news/admin/index.php?op=delete&storyid=<{$story.id}>"><img src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>"></a> <{/if}> <{if $showicons == true}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-17 20:21:39
|
Revision: 9665 http://xoops.svn.sourceforge.net/xoops/?rev=9665&view=rev Author: beckmi Date: 2012-06-17 20:21:31 +0000 (Sun, 17 Jun 2012) Log Message: ----------- fixing typos and errors reported by Cesag replacing GoogleBuzz with GooglePlus Modified Paths: -------------- XoopsModules/news/branches/mamba/news/admin/amsimport.php XoopsModules/news/branches/mamba/news/class/class.newsstory.php XoopsModules/news/branches/mamba/news/docs/changelog.txt XoopsModules/news/branches/mamba/news/docs/lang.diff XoopsModules/news/branches/mamba/news/include/storyform.inc.php XoopsModules/news/branches/mamba/news/language/english/admin.php XoopsModules/news/branches/mamba/news/language/english/main.php XoopsModules/news/branches/mamba/news/language/englishUTF8/admin.php XoopsModules/news/branches/mamba/news/language/german/admin.php XoopsModules/news/branches/mamba/news/language/italian/admin.php XoopsModules/news/branches/mamba/news/language/italian/main.php XoopsModules/news/branches/mamba/news/submit.php XoopsModules/news/branches/mamba/news/templates/news_article.html Modified: XoopsModules/news/branches/mamba/news/admin/amsimport.php =================================================================== --- XoopsModules/news/branches/mamba/news/admin/amsimport.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/admin/amsimport.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -161,8 +161,8 @@ $news->setNosmiley($article['nosmiley']); $news->setHometext($text_lastversion['hometext']); $news->setBodytext($text_lastversion['bodytext'].$links.$forum); - $news->Setkeywords(''); - $news->Setdescription(''); + $news->setKeywords(''); + $news->setDescription(''); $news->counter=$article['counter']; $news->setTopicId($news_topicid); $news->setIhome($article['ihome']); Modified: XoopsModules/news/branches/mamba/news/class/class.newsstory.php =================================================================== --- XoopsModules/news/branches/mamba/news/class/class.newsstory.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/class/class.newsstory.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -936,12 +936,12 @@ return $this->votes; } - function Setpicture($data) + function setPicture($data) { $this->picture = $data; } - function Setpictureinfo($data) + function setPictureinfo($data) { $this->pictureinfo = $data; } @@ -952,12 +952,12 @@ } - function Setdescription($data) + function setDescription($data) { $this->description=$data; } - function Setkeywords($data) + function setKeywords($data) { $this->keywords=$data; } Modified: XoopsModules/news/branches/mamba/news/docs/changelog.txt =================================================================== --- XoopsModules/news/branches/mamba/news/docs/changelog.txt 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/docs/changelog.txt 2012-06-17 20:21:31 UTC (rev 9665) @@ -12,8 +12,8 @@ - Improve xoops_version.php (voltan) - Add tag support in submit page for users (voltan) - Improve templates (voltan) -- Add local Style sheet support in print page (voltan) -- Add two new fild photo info and sub title (voltan) +- Add local Stylesheet support in print page (voltan) +- Add two new fields photoinfo and subtitle (voltan) ******* v1.66 Modified: XoopsModules/news/branches/mamba/news/docs/lang.diff =================================================================== --- XoopsModules/news/branches/mamba/news/docs/lang.diff 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/docs/lang.diff 2012-06-17 20:21:31 UTC (rev 9665) @@ -32,9 +32,9 @@ + _NW_BOOKMARK_TO_MYSPACE + _NW_BOOKMARK_TO_DESIGNFLOAT + _NW_BOOKMARK_TO_BALATARIN -+ _NW_BOOKMARK_TO_GOOLGEBUZZ -+ _NW_BOOKMARK_TO_GOOLGEREADER -+ _NW_BOOKMARK_TO_GOOLGEBOOKMARKS ++ _NW_BOOKMARK_TO_GOOGLEPLUS ++ _NW_BOOKMARK_TO_GOOGLEREADER ++ _NW_BOOKMARK_TO_GOOGLEBOOKMARKS + _NW_DELETE + _NW_EDIT Modified: XoopsModules/news/branches/mamba/news/include/storyform.inc.php =================================================================== --- XoopsModules/news/branches/mamba/news/include/storyform.inc.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/include/storyform.inc.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -37,6 +37,8 @@ include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php'; include_once XOOPS_ROOT_PATH.'/modules/news/config.php'; +if (!isset($subtitle)) $subtitle=''; + $sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/submit.php'); $sform->setExtra('enctype="multipart/form-data"'); $sform->addElement(new XoopsFormText(_NW_TITLE, 'title', 50, 255, $title), true); @@ -164,7 +166,7 @@ $sform->addElement($pictureTray); } } - $pictureinfo = ''; + if (!isset($pictureinfo)) $pictureinfo = ''; $sform->addElement(new XoopsFormFile(_NW_SELECT_IMAGE, 'attachedimage', $xoopsModuleConfig['maxuploadsize']), false); $sform->addElement(new XoopsFormText(_NW_SELECT_IMAGE_DESC, 'pictureinfo', 50, 255, $pictureinfo), false); } Modified: XoopsModules/news/branches/mamba/news/language/english/admin.php =================================================================== --- XoopsModules/news/branches/mamba/news/language/english/admin.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/language/english/admin.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -175,7 +175,7 @@ // Added in 1.3 RC2 define('_AM_NEWS_PLEASE_UPGRADE',"<a href='upgrade.php'><font color='#FF0000'>Please upgrade the module !</font></a>"); -// Added in verisn 1.50 +// Added in version 1.50 define('_AM_NEWS_NEWSLETTER_HEADER', "Header"); define('_AM_NEWS_NEWSLETTER_FOOTER', "Footer"); define('_AM_NEWS_NEWSLETTER_HTML_TAGS', "Remove html tags ?"); @@ -192,7 +192,7 @@ define('_AM_NEWS_META_KEYWORDS_FREQ1',"Words frequency's order"); define('_AM_NEWS_META_KEYWORDS_FREQ2',"Reverse order of words frequency"); -// Added in verisn 1.67 +// Added in version 1.67 // About.php define('_AM_NEWS_ABOUT_RELEASEDATE', "Released: "); define('_AM_NEWS_ABOUT_UPDATEDATE', "Updated: "); Modified: XoopsModules/news/branches/mamba/news/language/english/main.php =================================================================== --- XoopsModules/news/branches/mamba/news/language/english/main.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/language/english/main.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -126,9 +126,9 @@ define('_NW_BOOKMARK_TO_MYSPACE', "Bookmark to Myspace"); define('_NW_BOOKMARK_TO_DESIGNFLOAT', "Bookmark to Designfloat"); define('_NW_BOOKMARK_TO_BALATARIN', "Bookmark to Balatarin"); -define('_NW_BOOKMARK_TO_GOOLGEBUZZ', "Bookmark to Google Buzz"); -define('_NW_BOOKMARK_TO_GOOLGEREADER', "Bookmark to Google Reader"); -define('_NW_BOOKMARK_TO_GOOLGEBOOKMARKS', "Bookmark to Google Bookmarks"); +define('_NW_BOOKMARK_TO_GOOGLEPLUS', "Bookmark to Google Plus"); +define('_NW_BOOKMARK_TO_GOOGLEREADER', "Bookmark to Google Reader"); +define('_NW_BOOKMARK_TO_GOOGLEBOOKMARKS', "Bookmark to Google Bookmarks"); define('_NW_DELETE', "Delete"); define('_NW_EDIT', "Edit"); Modified: XoopsModules/news/branches/mamba/news/language/englishUTF8/admin.php =================================================================== --- XoopsModules/news/branches/mamba/news/language/englishUTF8/admin.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/language/englishUTF8/admin.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -175,7 +175,7 @@ // Added in 1.3 RC2 define('_AM_NEWS_PLEASE_UPGRADE',"<a href='upgrade.php'><font color='#FF0000'>Please upgrade the module !</font></a>"); -// Added in verisn 1.50 +// Added in version 1.50 define('_AM_NEWS_NEWSLETTER_HEADER', "Header"); define('_AM_NEWS_NEWSLETTER_FOOTER', "Footer"); define('_AM_NEWS_NEWSLETTER_HTML_TAGS', "Remove html tags ?"); Modified: XoopsModules/news/branches/mamba/news/language/german/admin.php =================================================================== --- XoopsModules/news/branches/mamba/news/language/german/admin.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/language/german/admin.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -190,7 +190,7 @@ // Added in 1.3 RC2 define("_AM_NEWS_PLEASE_UPGRADE","<a href='upgrade.php'><font color='#FF0000'>Bitte das Modul updaten!</font></a>"); -// Added in verisn 1.50 +// Added in version 1.50 define('_AM_NEWS_NEWSLETTER_HEADER', "Header"); define('_AM_NEWS_NEWSLETTER_FOOTER', "Footer"); define('_AM_NEWS_NEWSLETTER_HTML_TAGS', "Html Tags entfernen?"); Modified: XoopsModules/news/branches/mamba/news/language/italian/admin.php =================================================================== --- XoopsModules/news/branches/mamba/news/language/italian/admin.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/language/italian/admin.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -175,7 +175,7 @@ // Added in 1.3 RC2 define("_AM_NEWS_PLEASE_UPGRADE", "<font color='#FF0000'><a href='upgrade.php'>Si prega di aggiornare il modulo!</a></font>"); -// Added in verisn 1.50 +// Added in version 1.50 define("_AM_NEWS_NEWSLETTER_HEADER", "intestazione"); define("_AM_NEWS_NEWSLETTER_FOOTER", "piè di pagina"); define("_AM_NEWS_NEWSLETTER_HTML_TAGS", "Rimuovere i tag html?"); @@ -192,7 +192,7 @@ define("_AM_NEWS_META_KEYWORDS_FREQ1", "Frequenza le parole di ordine"); define("_AM_NEWS_META_KEYWORDS_FREQ2", "Ordine inverso della frequenza di parole"); -// Added in verisn 1.67 +// Added in version 1.67 // About.php define('_AM_NEWS_ABOUT_RELEASEDATE', "Released: "); define('_AM_NEWS_ABOUT_UPDATEDATE', "Updated: "); Modified: XoopsModules/news/branches/mamba/news/language/italian/main.php =================================================================== --- XoopsModules/news/branches/mamba/news/language/italian/main.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/language/italian/main.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -126,9 +126,9 @@ define("_NW_BOOKMARK_TO_MYSPACE", "Segnalibro a Myspace"); define("_NW_BOOKMARK_TO_DESIGNFLOAT", "Segnalibro per Designfloat"); define("_NW_BOOKMARK_TO_BALATARIN", "Segnalibro per Balatarin"); -define("_NW_BOOKMARK_TO_GOOLGEBUZZ", "Segnalibro per Google Buzz"); -define("_NW_BOOKMARK_TO_GOOLGEREADER", "Segnalibro per Google Reader"); -define("_NW_BOOKMARK_TO_GOOLGEBOOKMARKS", "Segnalibro a Google Bookmarks"); +define("_NW_BOOKMARK_TO_GOOGLEPLUS", "Segnalibro per Google Plus"); +define("_NW_BOOKMARK_TO_GOOGLEREADER", "Segnalibro per Google Reader"); +define("_NW_BOOKMARK_TO_GOOGLEBOOKMARKS", "Segnalibro a Google Bookmarks"); define("_NW_DELETE", "Elimina"); define("_NW_EDIT", "Modifica"); Modified: XoopsModules/news/branches/mamba/news/submit.php =================================================================== --- XoopsModules/news/branches/mamba/news/submit.php 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/submit.php 2012-06-17 20:21:31 UTC (rev 9665) @@ -238,7 +238,7 @@ $story->setBodytext($_POST['bodytext']); if(news_getmoduleoption('metadata')) { $story->Setkeywords($_POST['keywords']); - $story->Setdescription($_POST['description']); + $story->setDescription($_POST['description']); $story->setIhome(intval($_POST['ihome'])); } } else { @@ -269,6 +269,7 @@ } $title = $story->title('InForm'); + $subtitle = $story->subtitle('InForm'); $hometext = $story->hometext('InForm'); if ($approveprivilege) { $bodytext = $story->bodytext('InForm'); @@ -276,6 +277,7 @@ $description = $story->description('E'); $keywords = $story->keywords('E'); } + $pictureinfo = $story->pictureinfo('InForm'); //Display post preview $newsauthor=$story->uid(); @@ -357,7 +359,7 @@ if ($approveprivilege) { if(news_getmoduleoption('metadata')) { - $story->Setdescription($_POST['description']); + $story->setDescription($_POST['description']); $story->Setkeywords($_POST['keywords']); } $story->setTopicdisplay($_POST['topicdisplay']); // Display Topic Image ? (Yes or No) @@ -444,8 +446,8 @@ } } } - $story->Setpicture(''); - $story->Setpictureinfo(''); + $story->setPicture(''); + $story->setPictureinfo(''); } if($allowupload) { // L'image @@ -467,7 +469,7 @@ @unlink($fullPictureName); rename($newName, $fullPictureName); } - $story->Setpicture(basename($destname)); + $story->setPicture(basename($destname)); } else { echo _AM_UPLOAD_ERROR. ' ' . $uploader->getErrors(); @@ -476,7 +478,7 @@ echo $uploader->getErrors(); } } - $story->Setpictureinfo($_POST['pictureinfo']); + $story->setPictureinfo($_POST['pictureinfo']); } } $destname = ''; Modified: XoopsModules/news/branches/mamba/news/templates/news_article.html =================================================================== --- XoopsModules/news/branches/mamba/news/templates/news_article.html 2012-06-17 20:08:09 UTC (rev 9664) +++ XoopsModules/news/branches/mamba/news/templates/news_article.html 2012-06-17 20:21:31 UTC (rev 9665) @@ -76,9 +76,9 @@ <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_MIXX}>" href="http://www.mixx.com/submit?page_url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_MIXX}>" src="<{xoModuleIconsBookmarks mixx.png}>" /></a> <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_MYSPACE}>" href="http://www.myspace.com/Modules/PostTo/Pages/?u=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_MYSPACE}>" src="<{xoModuleIconsBookmarks myspace.jpg}>" /></a> <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_DESIGNFLOAT}>" href="http://www.designfloat.com/submit.php?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_DESIGNFLOAT}>" src="<{xoModuleIconsBookmarks designfloat.png}>" /></a> - <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_GOOLGEBUZZ}>" href="http://www.google.com/buzz/post?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_GOOLGEBUZZ}>" src="<{xoModuleIconsBookmarks google_buzz_icon.png}>" /></a> - <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_GOOLGEREADER}>" href="http://www.google.com/reader/link?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>&title=<{$story.news_title}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_GOOLGEREADER}>" src="<{xoModuleIconsBookmarks google-reader-icon.png}>" /></a> - <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_GOOLGEBOOKMARKS}>" href="https://www.google.com/bookmarks/mark?op=add&bkmk=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>&title=<{$story.news_title}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_GOOLGEBOOKMARKS}>" src="<{xoModuleIconsBookmarks google-icon.png}>" /></a> + <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_GOOGLEPLUS}>" href="http://www.google.com/buzz/post?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_GOOGLEPLUS}>" src="<{xoModuleIconsBookmarks google_plus.png}>" /></a> + <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_GOOGLEREADER}>" href="http://www.google.com/reader/link?url=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>&title=<{$story.news_title}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_GOOGLEREADER}>" src="<{xoModuleIconsBookmarks google-reader-icon.png}>" /></a> + <a rel="external nofollow" target="_blank" title="<{$smarty.const._NW_BOOKMARK_TO_GOOGLEBOOKMARKS}>" href="https://www.google.com/bookmarks/mark?op=add&bkmk=<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>&title=<{$story.news_title}>" ><img alt="<{$smarty.const._NW_BOOKMARK_TO_GOOGLEBOOKMARKS}>" src="<{xoModuleIconsBookmarks google-icon.png}>" /></a> </div> </div> <{/if}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ce...@us...> - 2012-06-17 20:08:16
|
Revision: 9664 http://xoops.svn.sourceforge.net/xoops/?rev=9664&view=rev Author: cesag Date: 2012-06-17 20:08:09 +0000 (Sun, 17 Jun 2012) Log Message: ----------- XCenter 2.16 french translation. Added Paths: ----------- XoopsLanguages/french/modules/xcenter/ XoopsLanguages/french/modules/xcenter/xcenter 2.16/ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/admin.php XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/blocks.php XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/index.html XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/main.php XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php Added: XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/admin.php =================================================================== --- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/admin.php (rev 0) +++ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/admin.php 2012-06-17 20:08:09 UTC (rev 9664) @@ -0,0 +1,40 @@ +<?php + +/* +Module: Xcenter + +Version: 2.01 + +Description: Multilingual Content Module with tags and lists with search functions + +Author: Written by Simon Roberts aka. Wishcraft (si...@ch...) + +Owner: Chronolabs + +License: See /docs - GPL 2.0 +*/ + + xoops_loadlanguage('modinfo', 'xcenter'); + //Permissions + define('_XTR_NOPERMSSET', 'Aucune autorisation à définir !'); + define('_XTR_PERMISSIONSVIEWCATEGORY', 'Afficher les catégories !'); + define('_XTR_VIEW_FUNCTION', 'Voir'); + define('_XTR_PERMISSIONSVIEWPAGE', 'Voir la page de Xcenter'); + + define('_XTR_AM_ADDPAGE_TITLEA', 'Contenu de la page'); + define('_XTR_AM_ADDPAGE_TITLEB', 'Nouvelle page'); + define('_XTR_AM_CATEGORY_TITLEA', 'Catégorie'); + define('_XTR_AM_CATEGORY_TITLEB', 'Nouvelle catégorie'); + define('_XTR_AM_BLOCK_TITLEA', 'Bloc'); + define('_XTR_AM_BLOCK_TITLEB', 'Nouveau bloc'); + + // Version 2.16 + // Dashboard + define('_XTR_ADMIN_COUNTS', 'Dénombrement des articles et des catégories'); + define('_XTR_ADMIN_THEREARE_CATEGORIES', 'Il y a %s catégories'); + define('_XTR_ADMIN_THEREARE_ARTICLES', 'Il y a %s articles / blogs'); + + // About + define('_XTR_ABOUT_MAKEDONATE', 'Faire un don pour l\'utilisation de XCenter !'); + // Traduction par Cesag pour frxoops.org le 17 Juin 2012 +?> \ No newline at end of file Added: XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/blocks.php =================================================================== --- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/blocks.php (rev 0) +++ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/blocks.php 2012-06-17 20:08:09 UTC (rev 9664) @@ -0,0 +1,23 @@ +<?php + +/* +Module: Xcenter + +Version: 2.01 + +Description: Multilingual Content Module with tags and lists with search functions + +Author: Written by Simon Roberts aka. Wishcraft (si...@ch...) + +Owner: Chronolabs + +License: See /docs - GPL 2.0 +*/ + +include_once('modinfo.php'); +define('_XTR_ADDPAGE', 'Ajouter une page'); +//BlOCKS +define('_XTR_PAGE', 'Section de la page'); +define('_XTR_NONE', 'Aucun'); +// Traduction par Cesag pour frxoops.org le 17 Juin 2012 +?> \ No newline at end of file Added: XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/index.html =================================================================== --- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/index.html (rev 0) +++ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/index.html 2012-06-17 20:08:09 UTC (rev 9664) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/main.php =================================================================== --- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/main.php (rev 0) +++ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/main.php 2012-06-17 20:08:09 UTC (rev 9664) @@ -0,0 +1,149 @@ +<?php + +/* +Module: Xcenter + +Version: 2.01 + +Description: Multilingual Content Module with tags and lists with search functions + +Author: Written by Simon Roberts aka. Wishcraft (si...@ch...) + +Owner: Chronolabs + +License: See /docs - GPL 2.0 +*/ + + + include_once('modinfo.php'); + + // Options & Messages + define('_XTR_AD_PAGE', 'Contenu de la page'); + define('_XTR_AD_CATEGORY', 'Catégorie'); + define('_XTR_AD_PARENT', 'Nœud parent'); + define('_XTR_AD_SUBMENUS', 'Sous-menu'); + define('_XTR_AD_HOMEPAGE', 'Page d\'accueil'); + define('_XTR_AD_ACTIONS', 'Actions'); + define('_XTR_AD_WEIGHT', 'Poids'); + define('_XTR_AD_RSSENABLED', 'RSS activé'); + define('_XTR_AD_TITLE', 'Description du bloc'); + define('_XTR_AD_CREATED', 'Créé'); + define('_XTR_AD_MADEBY', 'Dernière édition par'); + define('_XTR_NONE', '(aucun)'); + define('_XTR_MSG_XCENTERSAVED', 'Contenu sauvegardé !'); + define('_XTR_NOPERMISSIONS', 'Pas d\'autorisations pour afficher la page ou son contenu'); + define('_XTR_NOTVISIBLE', 'Page non autorisée, cette page n\'est pas visible actuellement !'); + define('_XTR_PAGETITLESEP', ' : '); + define('_XTR_NOSTORY', 'Aucune histoire / contenu spécifié !'); + define('_XTR_CRUMBSEP', '>'); + define('_XTR_WRITTENBY', 'Écrit par : '); + define('_XTR_MSG_SECURITYTOKEN', 'La clé de sécurité doit être actualisée - Veuillez actualiser l\'écran !'); + define('_XTR_AD_CONFIRM_DELETE', 'Êtes-vous sûr de que vouloir supprimer la page <strong>%s</strong>'); + define('_XTR_AD_MSG_DELETE', 'Contenu supprimé avec succès !'); + define('_XTR_AD_CONFIRM_COPY', 'Êtes-vous sûr de vouloir copier la page <strong>%s</strong>'); + define('_XTR_AD_MSG_COPY', 'XCenter copié avec succès - %s parties copiées !'); + define('_XTR_NEEDCATEGORIES', 'Les catégories doivent être chargées !'); + define('_XTR_MSG_CATEGORYSAVED', 'Catégorie enregistrée avec succès'); + define('_XTR_MSG_CATEGORYNOTSAVED', 'La catégorie n\'a pas été enregistrée'); + define('_XTR_MSG_BLOCKSAVED', 'Bloc enregistré avec succès'); + define('_XTR_MSG_BLOCKNOTSAVED', 'Le bloc n\'a pas été enregistré'); + define('_XTR_XCENTEREXPIRED', 'XCenter a dépassé la date d\'expiration !'); + define('_XTR_TOBEPUBLISHED', 'XCenter doit atteindre la date de publication !'); + + // PAssWord form + define('_XTR_MF_ENTERPASSWORD', 'Entrez le mot de passe pour voir le contenu !'); + define('_XTR_MF_PASSWORD', 'Mot de passe du contenu'); + define('_XTR_MF_PASSWORD_DESC', ''); + + // PRINTING + define('_XTR_PRINTERFRIENDLY', 'Version imprimable'); + define('_XTR_URLFORSTORY', 'Lien direct'); + define('_XTR_THISCOMESFROM', 'Cela vient de :'); + + //PDF + define('_XTR_PDF_AUTHOR', 'Auteur'); + define('_XTR_PDF_DATE', 'Publié'); + define('_XTR_POSTEDBY', 'Posté par'); + define('_XTR_POSTEDON', 'Posté le'); + define('_XTR_PAGE', '%s générés, Page %s'); + + // EDIT BLOCK FORM + define('_XTR_AD_NEWBLOCK', 'Créer le nouveau bloc'); + define('_XTR_AD_EDITBLOCK', 'Modifier le bloc'); + define('_XTR_AD_OPENDESCRIPTION', 'Référence'); + define('_XTR_AD_OPENDESCRIPTION_DESC', 'Ce qui fait aussi référence au bloc'); + define('_XTR_AD_BLOCKHTML', 'Code du bloc'); + define('_XTR_AD_BLOCKHTML_DESC', 'HTML/XCODE/TEXT Codes à transmettre'); + + // EDIT CATEGORY FORM + define('_XTR_AD_NEWCATEGORY', 'Nouvelle catégorie'); + define('_XTR_AD_EDITCATEGORY', 'Modifier la catégorie'); + define('_XTR_AD_CAT_MENUTITLE', 'Titre du menu'); + define('_XTR_AD_CAT_RSSENABLED', 'RSS activé'); + define('_XTR_AD_CAT_OPTIONS', 'Options'); + define('_XTR_AD_CAT_LANGUAGE', 'Catégorie de langue'); + define('_XTR_AD_CAT_LANGUAGE_DESC', ''); + define('_XTR_AD_CAT_CATEGORYPARENT', 'Nœud Parent de la catégorie'); + define('_XTR_AD_CAT_KEYWORDS', 'Mots clés meta'); + define('_XTR_AD_CAT_PAGEDESCRIPTION', 'Meta description de la page'); + define('_XTR_AD_CAT_RSSDESCRIPTION', 'Description des éléments RSS'); + define('_XTR_AD_CAT_TEXT', 'Légende de la catégorie'); + + // EDIT XCENTER FORM + define('_XTR_AD_EDITXCENTER', 'Modifier la Page de contenu multilingue'); + define('_XTR_AD_NEWXCENTER', 'Nouvelle Page de contenu multilingue'); + define('_XTR_AD_LANGUAGE', 'Langue de la page'); + define('_XTR_AD_MENUTITLE', 'Titre du menu'); + define('_XTR_AD_PAGETITLE', 'Titre de la page'); + define('_XTR_AD_INHERITBLOCK', 'Bloc hérité'); + define('_XTR_AD_KEYWORDS', 'Mots clés meta'); + define('_XTR_AD_PAGEDESCRIPTION', 'Meta Description de la Page'); + define('_XTR_AD_TEMPLATES', 'RSS & modèle de contenu'); + define('_XTR_AD_RSS', 'Flux RSS de l\'élément'); + define('_XTR_AD_TEXT', 'Contenu de l\'élément'); + define('_XTR_AD_URL', 'Lien'); + define('_XTR_AD_PASSWORD', 'Mot de passe de la page'); + define('_XTR_AD_PASSWORD_CONFIRM', 'Confirmer :'); + define('_XTR_AD_OPTIONS', 'Options'); + define('_XTR_AD_URLADDRESS', 'Lien :'); + define('_XTR_AD_REDIRECTLINK', 'Lien de redirection pendant le chargement'); + define('_XTR_AD_PUBLISH', 'Publié ou redirigé'); + define('_XTR_AD_EXPIRE', 'Expiré puis redirection'); + define('_XTR_AD_SET', 'Sauver la configuration maintenant ?'); + define('_XTR_AD_PUBlISHDATETIME', 'Publié par :'); + define('_XTR_AD_EXPIREDATETIME', 'Expire le :'); + define('_XTR_AD_REDIRECTPAGE', 'ou redirection vers la page :'); + define('_XTR_AD_VISIBLE', 'Visible'); + define('_XTR_AD_NOHTML', 'Aucun Html'); + define('_XTR_AD_NOSMILEY', 'Aucun émoticône'); + define('_XTR_AD_NOBREAKS', 'Aucun saut de ligne'); + define('_XTR_AD_NOCOMMENTS', 'Aucun commentaire'); + define('_XTR_AD_SUBMENU', 'Éléments du Sous-menu'); + define('_XTR_AD_TITLE_DESC', 'Apparaît dans les menus de la page !'); + define('_XTR_AD_PAGETITLE_DESC', 'Apparaît comme titre de la page !'); + define('_XTR_AD_PARENTPAGE_DESC', 'Page parent'); + define('_XTR_AD_CATEGORY_DESC', 'Catégorisation de la page'); + define('_XTR_AD_INHERITBLOCK_DESC', 'Bloc hérité pour la page'); + define('_XTR_AD_KEYWORDS_DESC', 'Ce sont les mots-clés de la page'); + define('_XTR_AD_PAGEDESCRIPTION_DESC', 'Description de la page dans les moteurs de recherche'); + define('_XTR_AD_TEMPLATE_DESC', 'Modèles prédéfinis'); + define('_XTR_AD_RSS_DESC', 'Document RSS à faire apparaître dans la catégorie flux rss !'); + define('_XTR_AD_TEXT_DESC', 'XCenter qui apparaît dans la page sous l\'ID'); + define('_XTR_AD_URL_DESC', 'Lien de redirection !'); + define('_XTR_AD_PASSWORD_DESC', 'Protection par mot de passe de la page'); + define('_XTR_AD_TAGS_DESC', 'Étiquettes / phrases clé pour la page !'); + define('_XTR_AD_PUBLISH_DESC', 'La page apparaîtra et sera uniquement publiée après cette date !'); + define('_XTR_AD_EXPIRE_DESC', 'La page sera uniquement publiée jusqu\'à cette date et heure !'); + define('_XTR_AD_LANGUAGE_DESC', 'Sélectionnez la langue pour cette page !'); + define('_XTR_AD_CAT_PAGETITLE', 'Titre de la Page catégorie'); + define('_XTR_AD_PUBLISHED', 'Publié'); + + define('_XTR_AD_ADDPAGE_TITLEA', 'Contenu de la page'); + define('_XTR_AD_ADDPAGE_TITLEB', 'Nouvelle Page'); + define('_XTR_AD_CATEGORY_TITLEA', 'Catégorie'); + define('_XTR_AD_CATEGORY_TITLEB', 'Nouvelle catégorie'); + define('_XTR_AD_BLOCK_TITLEA', 'Bloc'); + define('_XTR_AD_BLOCK_TITLEB', 'Nouveau bloc'); + define('_XTR_AM_MANAGE_TITLEA', 'Gestion du contenu'); + // Traduction par Cesag pour frxoops.org le 17 Juin 2012 +?> \ No newline at end of file Added: XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php =================================================================== --- XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php (rev 0) +++ XoopsLanguages/french/modules/xcenter/xcenter 2.16/xcenter/language/french/modinfo.php 2012-06-17 20:08:09 UTC (rev 9664) @@ -0,0 +1,308 @@ +<?php + +/* +Module: Xcenter + +Version: 2.01 + +Description: Multilingual Content Module with tags and lists with search functions + +Author: Written by Simon Roberts aka. Wishcraft (si...@ch...) + +Owner: Chronolabs + +License: See /docs - GPL 2.0 +*/ + + + // XOOPS VERSION + + // DO NOT CHANGE - HEADER INFORMATION + define('_XTR_MODULENAME', 'Contenu du module'); + define('_XTR_VERSION', 2.16); + define('_XTR_AUTHOR', 'Écrit par Simon Roberts alias Wishcraft'); + define('_XTR_OWNER', 'Chronolabs'); + define('_XTR_CONTACT', 'Toutes les demandes de renseignements concernant le module peuvent être envoyées à si...@ch...'); + define('_XTR_DESCRIPTION', 'Module avancé de contenu multilingue'); + define('_XTR_LICENSE', 'GPL 2.0 - voir le fichier /docs/LICENCE'); + define('_XTR_OFFICIAL', true); + define('_XTR_LOGOIMAGE', 'images/xcenter_slogo.png'); + define('_XTR_DIRNAME', 'xcenter'); + define('_XTR_SQLFILE_MYSQL', 'sql/mysql.sql'); + + // MAINTENANCE ACtioNS + define('_XTR_INSTALL', 'include/install.php'); + define('_XTR_UNINSTALL', 'include/uninstall.php'); + define('_XTR_UPDATE', 'include/update.php'); + + // MENUs + define('_XTR_XCENTER_ADMENU1', 'Gestion du contenu'); + define('_XTR_XCENTER_ADMENU2', 'Ajouter du contenu'); + define('_XTR_XCENTER_ADMENU3', 'Gérer les catégories'); + define('_XTR_XCENTER_ADMENU4', 'Ajouter une catégorie'); + define('_XTR_XCENTER_ADMENU5', 'Gérer les blocs pouvant être hérités'); + define('_XTR_XCENTER_ADMENU6', 'Ajoutez le bloc pouvant être hérité'); + define('_XTR_XCENTER_ADMENU7', 'Autorisations'); + + // MENU ICONS?IMAGES + define('_XTR_XCENTER_ADMENU1_ICON', 'images/manage.xcenter.png'); + define('_XTR_XCENTER_ADMENU2_ICON', 'images/add.xcenter.png'); + define('_XTR_XCENTER_ADMENU3_ICON', 'images/manage.categories.png'); + define('_XTR_XCENTER_ADMENU4_ICON', 'images/add.category.png'); + define('_XTR_XCENTER_ADMENU5_ICON', 'images/manage.inheritable.blocks.png'); + define('_XTR_XCENTER_ADMENU6_ICON', 'images/add.inheritable.block.png'); + define('_XTR_XCENTER_ADMENU7_ICON', 'images/permissions.png'); + + //MYSQL TABLES WITHOUT PREFIX // DO NOT CHANGE + define('_XTR_TABLE_XCENTER', 'xcenter_xcenter'); + define('_XTR_TABLE_CATEGORY', 'xcenter_categories'); + define('_XTR_TABLE_TEXT', 'xcenter_text'); + define('_XTR_TABLE_BLOCK', 'xcenter_blocks'); + + //SEARCH SETTINGS // DO NOT CHANGE + define('_XTR_HASSEARCH', false); + define('_XTR_SEARCH_FILE', 'include/search.inc.php'); + define('_XTR_SEARCH_FUNCTION', 'xcenter_search'); + + //COMMENT SETTINGS // DO NOT CHANGE + define('_XTR_HASCOMMENT', true); + define('_XTR_COMMENT_ITEM', 'storyid'); + define('_XTR_COMMENT_PAGE', 'index.php'); + + //MAIN PAGES SETTING // DO NOT CHANGE + define('_XTR_HASMAIN', true); + define('_XTR_USESMARTY', true); + + //TEMPLATE SETTINGS // DO NOT CHANGE + define('_XTR_TEMPLATE_INDEX', 'xcenter_index.html'); + define('_XTR_TEMPLATE_INDEX_DESC', 'Index File for Xcenter'); + define('_XTR_TEMPLATE_BREADCRUMB', 'xcenter_breadcrumb.html'); + define('_XTR_TEMPLATE_BREADCRUMB_DESC', 'Fil d\'Ariane pour le fichier Index de Xcenter'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITPAGE', 'xcenter_cpanel_addeditpage.html'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITPAGE_DESC', 'Modifications XCenter Cpanel pour Xcenter'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITCATEGORY', 'xcenter_cpanel_addeditcategory.html'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITCATEGORY_DESC', 'Modifications XCenter Cpanel pour les catégories'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITBLOCK', 'xcenter_cpanel_addeditblock.html'); + define('_XTR_TEMPLATE_CPANEL_ADDEDITBLOCK_DESC', 'Modifications XCenter Cpanel pour les blocs'); + define('_XTR_TEMPLATE_INDEX_ADDEDITPAGE', 'xcenter_index_addeditpage.html'); + define('_XTR_TEMPLATE_INDEX_ADDEDITPAGE_DESC', 'Modifications XCenter Index pour Xcenter'); + define('_XTR_TEMPLATE_INDEX_ADDEDITCATEGORY', 'xcenter_index_addeditcategory.html'); + define('_XTR_TEMPLATE_INDEX_ADDEDITCATEGORY_DESC', 'Modifications XCenter Index pour les catégories'); + define('_XTR_TEMPLATE_INDEX_ADDEDITBLOCK', 'xcenter_index_addeditblock.html'); + define('_XTR_TEMPLATE_INDEX_ADDEDITBLOCK_DESC', 'Modifications XCenter Cpanel pour les blocs'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITPAGE', 'xcenter_cpanel_json_addeditpage.html'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITPAGE_DESC', 'Modifications XCenter Cpanel pour le json de Xcenter'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITCATEGORY', 'xcenter_cpanel_json_addeditcategory.html'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITCATEGORY_DESC', 'Modifications XCenter Cpanel pour le json des catégories'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITBLOCK', 'xcenter_cpanel_json_addeditblock.html'); + define('_XTR_TEMPLATE_CPANEL_JSON_ADDEDITBLOCK_DESC', 'Modifications XCenter Cpanel pour le json des blocs'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITPAGE', 'xcenter_index_json_addeditpage.html'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITPAGE_DESC', 'Modifications XCenter Index pour le json de Xcenter'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITCATEGORY', 'xcenter_index_json_addeditcategory.html'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITCATEGORY_DESC', 'Modifications XCenter Index pour le json des catégories'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITBLOCK', 'xcenter_index_json_addeditblock.html'); + define('_XTR_TEMPLATE_INDEX_JSON_ADDEDITBLOCK_DESC', 'Modifications XCenter Index pour le json des blocs'); + define('_XTR_TEMPLATE_INDEX_MANAGE', 'xcenter_index_manage.html'); + define('_XTR_TEMPLATE_INDEX_MANAGE_DESC', 'Modèle du gestionnaire Xcenter - affichage de listes'); + define('_XTR_TEMPLATE_INDEX_PASSWORD', 'xcenter_index_password.html'); + define('_XTR_TEMPLATE_INDEX_PASSWORD_DESC', 'Modèle pour l\'invite de mot de passe de Xcenter'); + + //CLASS NAMES // DO NOT CHANGE + define('_XTR_CLASS_XCENTER', 'xcenter'); + define('_XTR_CLASS_CATEGORY', 'catégorie'); + define('_XTR_CLASS_TEXT', 'texte'); + define('_XTR_CLASS_BLOCK', 'bloc'); + define('_XTR_CLASS_XLANGUAGE_EXT', 'xlanguage_ext'); + + //FUNCTIOnAL PAGE OpERATORs -- DO NOT CHANGE + define('_XTR_URL_OP_SAVE', 'enregistrer'); + define('_XTR_URL_OP_EDIT', 'modifier'); + define('_XTR_URL_OP_ADD', 'ajouter'); + define('_XTR_URL_OP_DELETE', 'supprimer'); + define('_XTR_URL_OP_COPY', 'copier'); + define('_XTR_URL_OP_MANAGE', 'gérer'); + define('_XTR_URL_OP_PERMISSIONS', 'autorisations'); + define('_XTR_URL_FORM_XCENTER', 'xcenter'); + define('_XTR_URL_FORM_CATEGORY', 'catégorie'); + define('_XTR_URL_FORM_BLOCK', 'bloc'); + define('_XTR_URL_FCT_CATEGORIES', 'catégories'); + define('_XTR_URL_FCT_XCENTER', 'xcenter'); + define('_XTR_URL_FCT_CATEGORY', 'catégorie'); + define('_XTR_URL_FCT_BLOCK', 'bloc'); + define('_XTR_URL_FCT_BLOCKS', 'blocs'); + define('_XTR_URL_FCT_PAGES', 'pages'); + define('_XTR_URL_FCT_TEMPLATE', 'modèle'); + + //ENUMERATORS // DO NOT CHANGE + define('_XTR_ENUM_TYPE_BLOCK', 'bloc'); + define('_XTR_ENUM_TYPE_CATEGORY', 'catégorie'); + define('_XTR_ENUM_TYPE_XCENTER', 'xcenter'); + + // PATHs // DO NOT CHANGE + define('_XTR_PATH_PHP_GROUPPERMS', '/class/xoopsform/grouppermform.php'); + define('_XTR_PATH_PHP_TEMPLATE', '/class/template.php'); + define('_XTR_PATH_PHP_FORMLOADER', '/class/xoopsformloader.php'); + define('_XTR_PATH_PHP_FORM_TAG', '/modules/tag/include/formtag.php'); + define('_XTR_PATH_PHP_HEADER', '/header.php'); + define('_XTR_PATH_PHP_FOOTER', '/footer.php'); + define('_XTR_PATH_PHP_COMMENTVIEW', '/include/comment_view.php'); + define('_XTR_PATH_MODULE_ROOT', '/modules/'._XTR_DIRNAME.'/index.php'); + define('_XTR_PATH_PHP_FPDF', '/modules/'._XTR_DIRNAME.'/include/fpdf/fpdf.inc.php'); + define('_XTR_PATH_PHP_JSON', '/modules/'._XTR_DIRNAME.'/include/JSON.php'); + define('_XTR_PATH_PREDEFINED_HTML', '/modules/'._XTR_DIRNAME.'/templates/predefined/xcenter/'); + define('_XTR_PATH_PREDEFINED_RSS', '/modules/'._XTR_DIRNAME.'/templates/predefined/rss/'); + define('_XTR_PATH_CSS_INDEX', '/modules/'._XTR_DIRNAME.'/templates/css/xcenter.css'); + define('_XTR_PATH_CSS_PRINT', '/modules/'._XTR_DIRNAME.'/templates/css/print.css'); + define('_XTR_PATH_JS_CORE', '/modules/'._XTR_DIRNAME.'/templates/js/core.js'); + define('_XTR_PATH_JS_JQUERY', '/browse.php?Frameworks/jquery/jquery.js'); + define('_XTR_PATH_PHP_FUNCTIONS', '/modules/'._XTR_DIRNAME.'/include/functions.php'); + define('_XTR_PATH_PHP_FORMOBJECTS', '/modules/'._XTR_DIRNAME.'/include/formobjects.xcenter.php'); + define('_XTR_PATH_PHP_FORMS', '/modules/'._XTR_DIRNAME.'/include/forms.xcenter.php'); + define('_XTR_PATH_PHP_FORM_LANGUAGES', '/modules/'._XTR_DIRNAME.'/include/formselectlanguages.php'); + define('_XTR_PATH_PHP_FORM_CATEGORIES', '/modules/'._XTR_DIRNAME.'/include/formselectcategories.php'); + define('_XTR_PATH_PHP_FORM_PAGES', '/modules/'._XTR_DIRNAME.'/include/formselectpages.php'); + define('_XTR_PATH_PHP_FORM_BLOCKS', '/modules/'._XTR_DIRNAME.'/include/formselectblocks.php'); + define('_XTR_PATH_PHP_FORM_HTMLTEMPLATES', '/modules/'._XTR_DIRNAME.'/include/formselecttemplates.php'); + + // PERMiSSION OPTIONS // DO NOT CHANGE + define('_XTR_PERM_VIEW_CATEGORY', 'Affichage des autorisations des catégories'); + define('_XTR_PERM_VIEW_XCENTER', 'Affichage des autorisations du contenu'); + define('_XTR_PERM_VIEW_BLOCK', 'Affichage des autorisations des blocs'); + define('_XTR_PERM_EDIT_CATEGORY', 'Modification des autorisations des catégories'); + define('_XTR_PERM_EDIT_XCENTER', 'Modification des autorisations du contenu'); + define('_XTR_PERM_EDIT_BLOCK', 'Modification des autorisations des blocs'); + define('_XTR_PERM_ADD_CATEGORY', 'Ajout des autorisations des catégories'); + define('_XTR_PERM_ADD_XCENTER', 'Ajout des autorisations du contenu'); + define('_XTR_PERM_ADD_BLOCK', 'Ajout des autorisations des blocs'); + define('_XTR_PERM_DEFAULT_TEMPLATE', 'Autorisations par défaut'); + + // PERMISSION TYPES & MODES // DO NOT CHANGE + define('_XTR_PERM_MODE_VIEW', 'voir'); + define('_XTR_PERM_MODE_EDIT', 'modifier'); + define('_XTR_PERM_MODE_ADD', 'ajouter'); + define('_XTR_PERM_MODE_COPY', 'copier'); + define('_XTR_PERM_MODE_DELETE', 'supprimer'); + define('_XTR_PERM_MODE_ALL', 'tout'); + define('_XTR_PERM_TYPE_CATEGORY', '_category'); + define('_XTR_PERM_TYPE_XCENTER', '_xcenter'); + define('_XTR_PERM_TYPE_BLOCK', '_block'); + define('_XTR_PERM_TYPE_TEMPLATE', '_default'); + + // PERMISSION TEMPLATES // DO NOT CHANGE + define('_XTR_PERM_TEMPLATE_ADD_XCENTER', 1); + define('_XTR_PERM_TEMPLATE_ADD_CATEGORY', 2); + define('_XTR_PERM_TEMPLATE_ADD_BLOCK', 3); + define('_XTR_PERM_TEMPLATE_EDIT_XCENTER', 4); + define('_XTR_PERM_TEMPLATE_EDIT_CATEGORY', 5); + define('_XTR_PERM_TEMPLATE_EDIT_BLOCK', 6); + define('_XTR_PERM_TEMPLATE_VIEW_XCENTER', 7); + define('_XTR_PERM_TEMPLATE_VIEW_CATEGORY', 8); + define('_XTR_PERM_TEMPLATE_VIEW_BLOCK', 9); + define('_XTR_PERM_TEMPLATE_COPY_XCENTER', 10); + define('_XTR_PERM_TEMPLATE_COPY_CATEGORY', 11); + define('_XTR_PERM_TEMPLATE_COPY_BLOCK', 12); + define('_XTR_PERM_TEMPLATE_DELETE_XCENTER', 13); + define('_XTR_PERM_TEMPLATE_DELETE_CATEGORY', 14); + define('_XTR_PERM_TEMPLATE_DELETE_BLOCK', 15); + define('_XTR_PERM_TEMPLATE_PERMISSIONS', 16); + define('_XTR_PERM_TEMPLATE_MANAGE_XCENTER', 17); + define('_XTR_PERM_TEMPLATE_MANAGE_CATEGORY', 18); + define('_XTR_PERM_TEMPLATE_MANAGE_BLOCK', 19); + + // PERMISSION TEMPLATES desCRIPTIons + define('_XTR_PERM_TEMPLATE_ADD_XCENTER_DESC', 'Ajouter du contenu'); + define('_XTR_PERM_TEMPLATE_ADD_CATEGORY_DESC', 'Ajouter une catégorie'); + define('_XTR_PERM_TEMPLATE_ADD_BLOCK_DESC', 'Ajouter un bloc'); + define('_XTR_PERM_TEMPLATE_EDIT_XCENTER_DESC', 'Modifier le contenu'); + define('_XTR_PERM_TEMPLATE_EDIT_CATEGORY_DESC', 'Modifier la catégorie'); + define('_XTR_PERM_TEMPLATE_EDIT_BLOCK_DESC', 'Modifier les blocs'); + define('_XTR_PERM_TEMPLATE_VIEW_XCENTER_DESC', 'Afficher le contenu'); + define('_XTR_PERM_TEMPLATE_VIEW_CATEGORY_DESC', 'Afficher la catégorie'); + define('_XTR_PERM_TEMPLATE_VIEW_BLOCK_DESC', 'Voir le bloc'); + define('_XTR_PERM_TEMPLATE_COPY_XCENTER_DESC', 'Copier le contenu'); + define('_XTR_PERM_TEMPLATE_COPY_CATEGORY_DESC', 'Copier la catégorie'); + define('_XTR_PERM_TEMPLATE_COPY_BLOCK_DESC', 'Copier le bloc'); + define('_XTR_PERM_TEMPLATE_DELETE_XCENTER_DESC', 'Supprimer le contenu'); + define('_XTR_PERM_TEMPLATE_DELETE_CATEGORY_DESC', 'Supprimer la catégorie'); + define('_XTR_PERM_TEMPLATE_DELETE_BLOCK_DESC', 'Supprimer le bloc'); + define('_XTR_PERM_TEMPLATE_PERMISSIONS_DESC', 'Accès et modification des autorisations'); + define('_XTR_PERM_TEMPLATE_MANAGE_XCENTER_DESC', 'Gestion du contenu'); + define('_XTR_PERM_TEMPLATE_MANAGE_CATEGORY_DESC', 'Gestion des catégories'); + define('_XTR_PERM_TEMPLATE_MANAGE_BLOCK_DESC', 'Gestion des blocs'); + + //PERMISSIOn TITLES + define('_XTR_PERMISSIONS_CATEGORY', 'Autorisations pour les catégories'); + define('_XTR_PERMISSIONS_XCENTER', 'Autorisations pour le contenu'); + define('_XTR_PERMISSIONS_BLOCKS', 'Autorisations pour les blocs'); + define('_XTR_PERMISSIONS_DEFAULT', 'Autorisations par défaut'); + + // LANGUAGE DESCRIPTIONS + define('_XTR_USEJSON', 'Utiliser JSON sécurisé pour les formulaires ?'); + define('_XTR_USEJSON_DESC', 'L\'activation de cette option utilisera la méthode JQuery et JSON sécurisé pour le chargement des formulaires, attention, tous les éditeurs ne fonctionnent pas avec !'); + define('_XTR_WRITENBY', 'Afficher : Écrit par'); + define('_XTR_WRITENBY_DESC', 'Cela affichera l\'auteur de l\'article et le contenu.'); + define('_XTR_SECURITY', 'Type de sécurité'); + define('_XTR_SECURITY_DESC', 'Type de complexité de la sécurité que vous souhaitez utiliser !'); + define('_XTR_MUlTILINGUAL', 'Documents Multilingues'); + define('_XTR_SUPPORTTAGS', 'Soutien du module Tag'); + define('_XTR_SUPPORTTAGS_DESC', 'Soutien du module Tag (2.3 ou supérieur)<br/><a href="http://sourceforge.net/projects/xoops/files/XOOPS%20Module%20Repository/XOOPS%20tag%202.30%20RC/">Télécharger le module Tag</a>'); + define('_XTR_MUlTILINGUAL_DESC', 'Permet de spécifier plusieurs langues par page'); + define('_XTR_XCENTER_NAME', 'Contenu multilingue'); + define('_XTR_XCENTER_DIRNAME', 'xcenter'); + define('_XTR_EDITORS', 'Éditeur !'); + define('_XTR_EDITORS_DESC', 'Éditeur à utiliser pour l\'édition de texte !'); + define('_XTR_RSSICON', 'Activer l\'icône RSS'); + define('_XTR_RSSICON_DESC', 'Permet l\'accès RSS'); + define('_XTR_PRINTICON', 'Activer l\'icône Imprimer'); + define('_XTR_PRINTICON_DESC', 'Active l\'impression'); + define('_XTR_ADDTHIS', 'Activer les Réseaux sociaux'); + define('_XTR_ADDTHISICON_DESC', 'Permet la création de Réseaux sociaux'); + define('_XTR_ADDTHISCODE', 'Code du Réseau social'); + define('_XTR_ADDTHISCODE_DESC', 'Code pour le partage des réseaux <a href="http://www.addthis.com">L\'obtenir ici</a>'); + define('_XTR_PDFICON', 'Activer le PDF ?'); + define('_XTR_PDFICON_DESC', 'Permet les fonctions PDF'); + define('_XTR_BREADCRUMB', 'Activer le fil d\'Ariane ?'); + define('_XTR_BREADCRUMB_DESC', 'Permets l\'aide à la navigation'); + define('_XTR_HTACCESS', 'Activer le HTACCESS SEO'); + define('_XTR_HTACCESS_DESC', 'Cela permet le SEO'); + define('_XTR_BASEURL', 'Lien de base pour le SEO'); + define('_XTR_BASEURL_DESC', 'Lien de base pour le SEO'); + define('_XTR_ENDOFURL', 'Fin du lien'); + define('_XTR_ENDOFURL_DESC', 'Extension de fichier pour les fichiers HTML'); + define('_XTR_ENDOFURLRSS', 'Fin du lien'); + define('_XTR_ENDOFURLRSS_DESC', 'Extension de fichier des pages RSS'); + define('_XTR_ENDOFURLPDF', 'Fin du lien'); + define('_XTR_ENDOFURLPDF_DESC', 'Extension de fichier pour les fichiers Adobe Acrobat (PDF)'); + define('_XTR_FORCECPANELJQUERY', 'Forcer JQuery sur le panneau de contrôle'); + define('_XTR_FORCECPANELJQUERY_DESC', 'Force la copie d\'exécution installée de JQuery !'); + define('_XTR_FORCEJQUERY', 'Forcer JQuery sur les contenus des pages'); + define('_XTR_FORCEJQUERY_DESC', 'Force la copie d\'exécution installée de JQuery !'); + + //SECURITY TYPES + define('_XTR_SECURITY_BASIC', 'Base'); + define('_XTR_SECURITY_INTERMEDIATE', 'Intermédiaire'); + define('_XTR_SECURITY_ADVANCED', 'Avancée'); + define('_XTR_SECURITY_BASIC_DESC', 'Autorisations de base'); + define('_XTR_SECURITY_INTERMEDIATE_DESC', 'Autorisations intermédiaires'); + define('_XTR_SECURITY_ADVANCED_DESC', 'Autorisations avancées'); + + // Version 2.16 + //FUNCTIOnAL PAGE OpERATORs -- DO NOT CHANGE + define('_XTR_URL_OP_DASHBOARD', 'Tableau de bord'); + define('_XTR_URL_OP_ABOUT', 'À propos'); + + //ADMINISTRATION SETTINGS // DO NOT CHANGE + define('_XTR_HASADMIN', true); + define('_XTR_ADMIN_INDEX', 'admin/index.php?op='._XTR_URL_OP_DASHBOARD); + define('_XTR_ADMIN_MENU', 'admin/menu.php'); + define('_XTR_SYSTEM_MENU', true); + + // MENUs + define('_XTR_XCENTER_ADMENU0', 'Tableau de bord'); + define('_XTR_XCENTER_ADMENU8', 'À propos de XCenter'); + + // MENU ICONS?IMAGES + define('_XTR_XCENTER_ADMENU0_ICON', '../../Frameworks/moduleclasses/icons/32/home.png'); + define('_XTR_XCENTER_ADMENU8_ICON', '../../Frameworks/moduleclasses/icons/32/about.png'); + // Traduction par Cesag pour frxoops.org le 17 Juin 2012 +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dh...@us...> - 2012-06-17 09:59:40
|
Revision: 9663 http://xoops.svn.sourceforge.net/xoops/?rev=9663&view=rev Author: dhcst Date: 2012-06-17 09:59:33 +0000 (Sun, 17 Jun 2012) Log Message: ----------- Update to RC1 Modified Paths: -------------- XoopsModules/newbb/branches/alfred/newbb/admin/about.php XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php XoopsModules/newbb/branches/alfred/newbb/templates/newbb_viewforum.html XoopsModules/newbb/branches/alfred/newbb/xoops_version.php Modified: XoopsModules/newbb/branches/alfred/newbb/admin/about.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/admin/about.php 2012-06-16 20:45:34 UTC (rev 9662) +++ XoopsModules/newbb/branches/alfred/newbb/admin/about.php 2012-06-17 09:59:33 UTC (rev 9663) @@ -36,7 +36,7 @@ $module_info =& $module_handler->get($xoopsModule->getVar("mid")); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation('about.php'); - echo $aboutAdmin->renderabout('PBQZ7D6LT6UBC', false); + echo $aboutAdmin->renderabout('PBQZ7D6LT6UBC', true); } else { $module_handler =& xoops_gethandler('module'); Modified: XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php 2012-06-16 20:45:34 UTC (rev 9662) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/modinfo.php 2012-06-17 09:59:33 UTC (rev 9663) @@ -62,7 +62,7 @@ define("_MI_IMAGELIB_DESC", "Select which Image library to use for creating Thumbnails. Leave AUTO for automatic choice."); define("_MI_MAX_IMG_WIDTH", "Maximum Image Width"); define("_MI_MAX_IMG_WIDTH_DESC", "Sets the maximum allowed <strong>Width</strong> size of an uploaded image otherwise thumbnail will be used. <br >Input 0 if you do not want to create thumbnails."); -define("_MI_MAX_IMG_HEIGHT","Maximum height of an image"); +define("_MI_MAX_IMG_HEIGHT","Maximum height of an image"); define("_MI_MAX_IMG_HEIGHT_DESC", "Sets the maximum allowed height of an uploaded image."); define("_MI_MAX_IMAGE_WIDTH", "Maximum Image Width for creating thumbnail"); define("_MI_MAX_IMAGE_WIDTH_DESC", "Sets the maximum width of an uploaded image to create thumbnail. <br >Image with width larger than the value will not use thumbnail."); @@ -257,6 +257,4 @@ define("_MI_USERATTACH_ENABLE","Display attachments only for registered users"); define("_MI_USERATTACH_DESC","shows attachments in the forum only after logging in."); -define("_MI_MAX_IMG_HEIGHT","Maximum height of an image"); -define("_MI_MAX_IMG_HEIGHT_DESC", "Sets the maximum allowed height of an uploaded image."); ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/alfred/newbb/templates/newbb_viewforum.html =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/templates/newbb_viewforum.html 2012-06-16 20:45:34 UTC (rev 9662) +++ XoopsModules/newbb/branches/alfred/newbb/templates/newbb_viewforum.html 2012-06-17 09:59:33 UTC (rev 9663) @@ -63,7 +63,7 @@ </div> <{else}> <div class="right" style="padding: 5px;"> - <{$forum_post_or_register}> + <{$forum_addpoll}> <{$forum_post_or_register}> </div> <{/if}> <div class="clear"></div> Modified: XoopsModules/newbb/branches/alfred/newbb/xoops_version.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/xoops_version.php 2012-06-16 20:45:34 UTC (rev 9662) +++ XoopsModules/newbb/branches/alfred/newbb/xoops_version.php 2012-06-17 09:59:33 UTC (rev 9663) @@ -27,10 +27,10 @@ $modversion['status_version'] = "4.2"; //about -$modversion['release_date'] = '2012/03/17'; +$modversion['release_date'] = '2012/06/17'; $modversion["module_website_url"] = "http://www.simple-xoops.de/"; $modversion["module_website_name"] = "SIMPLE-XOOPS"; -$modversion["module_status"] = "BETA 2"; +$modversion["module_status"] = "RC 1"; $modversion['min_php'] = "5.2"; $modversion['min_xoops'] = "2.5"; $modversion['min_admin'] = "1.1"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-06-16 20:45:40
|
Revision: 9662 http://xoops.svn.sourceforge.net/xoops/?rev=9662&view=rev Author: mageg Date: 2012-06-16 20:45:34 +0000 (Sat, 16 Jun 2012) Log Message: ----------- Use moduleadmin for system/preferences Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_preferences.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php 2012-06-16 18:12:06 UTC (rev 9661) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php 2012-06-16 20:45:34 UTC (rev 9662) @@ -66,10 +66,12 @@ if (!is_object($confcat)) { $xoops->redirect('admin.php?fct=preferences', 1); } - $system_breadcrumb->addLink(_AM_SYSTEM_PREFERENCES_NAV_MAIN, system_adminVersion('preferences', 'adminpath')); - $system_breadcrumb->addLink(constant($confcat->getVar('confcat_name'))); - $system_breadcrumb->addHelp(system_adminVersion('preferences', 'help')); - $system_breadcrumb->render(); + // Define Breadcrumb and tips + $admin_page = new XoopsModuleAdmin(); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_CPANEL, XOOPS_URL . '/admin.php', true); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_PREFERENCES_NAV_MAIN, $system->adminVersion('preferences', 'adminpath')); + $admin_page->addBreadcrumbLink(constant($confcat->getVar('confcat_name'))); + $admin_page->renderBreadcrumb(); /* @var $form SystemPreferenceForm */ $form = $xoops->getModuleForm(null, 'preference'); $form->getForm($confcat); @@ -94,10 +96,12 @@ $module = $module_handler->getById($mod); $xoops->loadLanguage('modinfo', $module->getVar('dirname')); - $system_breadcrumb->addLink(_AM_SYSTEM_PREFERENCES_NAV_MAIN, system_adminVersion('preferences', 'adminpath')); - $system_breadcrumb->addLink($module->getVar('name')); - $system_breadcrumb->addHelp(system_adminVersion('preferences', 'help')); - $system_breadcrumb->render(); + // Define Breadcrumb and tips + $admin_page = new XoopsModuleAdmin(); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_CPANEL, XOOPS_URL . '/admin.php', true); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_PREFERENCES_NAV_MAIN, $system->adminVersion('plugins', 'adminpath')); + $admin_page->addBreadcrumbLink($module->getVar('name')); + $admin_page->renderBreadcrumb(); /* @var $form SystemPreferenceForm */ $form = $xoops->getModuleForm(null, 'preference'); @@ -175,10 +179,14 @@ default: // Display setting cats - $system_breadcrumb->addLink(_AM_SYSTEM_PREFERENCES_NAV_MAIN); - $system_breadcrumb->addTips(_AM_SYSTEM_PREFERENCES_NAV_TIPS); - $system_breadcrumb->addHelp(system_adminVersion('preferences', 'help')); - $system_breadcrumb->render(); + // Define Breadcrumb and tips + $admin_page = new XoopsModuleAdmin(); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_CPANEL, XOOPS_URL . '/admin.php', true); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_PREFERENCES_NAV_MAIN, $system->adminVersion('plugins', 'adminpath')); + $admin_page->addBreadcrumbLink(_AM_SYSTEM_PREFERENCES_MAIN); + $admin_page->addTips(_AM_SYSTEM_PREFERENCES_NAV_TIPS); + $admin_page->renderBreadcrumb(); + $admin_page->renderTips(); $confcat_handler = $xoops->getHandlerConfigcategory(); $confcats = $confcat_handler->getCategoryObjects(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php 2012-06-16 18:12:06 UTC (rev 9661) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php 2012-06-16 20:45:34 UTC (rev 9662) @@ -12,6 +12,7 @@ //Nav define("_AM_SYSTEM_PREFERENCES_NAV_MAIN","Preferences"); +define("_AM_SYSTEM_PREFERENCES_MAIN","Main"); /*define("_AM_SYSTEM_PREFERENCES_NAV_MD_AM_GENERAL","General Settings"); define("_AM_SYSTEM_PREFERENCES_NAV_MD_AM_USERSETTINGS","User Info Settings"); define("_AM_SYSTEM_PREFERENCES_NAV_MD_AM_METAFOOTER","Meta Tags and Footer"); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_preferences.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_preferences.html 2012-06-16 18:12:06 UTC (rev 9661) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_preferences.html 2012-06-16 20:45:34 UTC (rev 9662) @@ -1,4 +1,6 @@ -<{includeq file="admin:system|system_header.html"}> +<{includeq file="admin:system|admin_breadcrumb.html"}> +<{includeq file="admin:system|admin_tips.html"}> + <!--Preferences--> <{if $menu}> <div class="xo-catsetting"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-06-16 18:12:13
|
Revision: 9661 http://xoops.svn.sourceforge.net/xoops/?rev=9661&view=rev Author: mageg Date: 2012-06-16 18:12:06 +0000 (Sat, 16 Jun 2012) Log Message: ----------- correction of an error html Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_plugins.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_plugins.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_plugins.html 2012-06-16 18:11:10 UTC (rev 9660) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_plugins.html 2012-06-16 18:12:06 UTC (rev 9661) @@ -26,7 +26,8 @@ <td class="span4"> <{if $plugin->getInfo('install')}> <a href="<{$xoops_url}>/modules/<{$plugin->getInfo('dirname')}>/<{$plugin->getInfo('adminindex')}>"> - <{$plugin->getInfo('name')}> + <{$plugin->getInfo('name')}> + </a> <{else}> <{$plugin->getInfo('name')}> <{/if}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-06-16 18:11:15
|
Revision: 9660 http://xoops.svn.sourceforge.net/xoops/?rev=9660&view=rev Author: mageg Date: 2012-06-16 18:11:10 +0000 (Sat, 16 Jun 2012) Log Message: ----------- update maintenance (template maintenance_dump.html) Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/templates/admin/maintenance_dump.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/templates/admin/maintenance_dump.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/templates/admin/maintenance_dump.html 2012-06-16 18:09:51 UTC (rev 9659) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/templates/admin/maintenance_dump.html 2012-06-16 18:11:10 UTC (rev 9660) @@ -116,11 +116,9 @@ <{$file_arr.size}> </td> <td class="xo-actions txtcenter span2"> -<!-- <a class="btn btn-success btn-mini" href="<{$xoops_url}>/modules/maintenance/dump/<{$file_arr.name}>" target="_blank" ><i class="icon-download icon-white"></i> <{$smarty.const._AM_MAINTENANCE_DUMP_DOWNLOAD}></a> ---> <a href="<{$xoops_url}>/modules/maintenance/dump/<{$file_arr.name}>" title="<{$smarty.const._AM_MAINTENANCE_DUMP_DOWNLOAD}>"> <img src="<{xoModuleIcons16 download.png}>" alt="<{$smarty.const._AM_MAINTENANCE_DUMP_DOWNLOAD}>"> - + </a> <a href="dump.php?op=dump_delete&filename=<{$file_arr.name}>" title="<{$smarty.const._AM_MAINTENANCE_DELETE}>"> <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._AM_MAINTENANCE_DELETE}>"> </a> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-06-16 18:09:58
|
Revision: 9659 http://xoops.svn.sourceforge.net/xoops/?rev=9659&view=rev Author: mageg Date: 2012-06-16 18:09:51 +0000 (Sat, 16 Jun 2012) Log Message: ----------- Standardization of the help section (html5) Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/css/help.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/help.html Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,15 +1,19 @@ -<!-- ===== Help Content ======= --> -<h4>Description</h4><br/> -Avatars are small graphics or pictures that can be used in various content settings around the site. They are often used next to a user name to add a bit of "visual identification." Typical applications are the forum. -<br/><br/> -The Avatar Manager allows the Site administrator to add, edit or delete System Avatars as well as Custom Avatars. -<br/><br/> -<h4>System Avatar</h4><br/> -System Avatars are images uploaded by the Site administrator in the Avatar Manager section. -<br/><br/> -<h4>Custom Avatar</h4><br/> -Custom Avatars are images directly uploaded by a user. For a user to be able to upload an avatar, the correct option must be configured in the User Info Settings of the Site Preferences. -<br/><br/> -<h4>Edit and delete Avatars</h4><br/> -The Site administrator can edit the name and the display order of all the System Avatars, as well as deleting any of them. Note that if the Site administrator has deleted an avatar that is used by a user, this user will lose his avatar and will need to upload a new one. -<!-- ===== Help Content ======= --> \ No newline at end of file +<h4>Description</h4> +<p> + Avatars are small graphics or pictures that can be used in various content settings around the site. They are often used next to a user name to add a bit of "visual identification." Typical applications are the forum. + <br /> + <br /> + The Avatar Manager allows the Site administrator to add, edit or delete System Avatars as well as Custom Avatars. +</p> +<h4>System Avatar</h4> +<p> + System Avatars are images uploaded by the Site administrator in the Avatar Manager section. +</p> +<h4>Custom Avatar</h4> +<p> + Custom Avatars are images directly uploaded by a user. For a user to be able to upload an avatar, the correct option must be configured in the User Info Settings of the Site Preferences. +</p> +<h4>Edit and delete Avatars</h4> +<p> + The Site administrator can edit the name and the display order of all the System Avatars, as well as deleting any of them. Note that if the Site administrator has deleted an avatar that is used by a user, this user will lose his avatar and will need to upload a new one. +</p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,10 +1,10 @@ -<!-- ===== Help Content ======= --> <h4>Description</h4> <p> -Banners are advertisements displayed in the top section of the page. They may be images or flash movies, e.g. the wildly gyrating XOOPS banner that is part of the default installation. XOOPS has a built in system for managing banners and creating accounts for advertising clients, which is found in the System Module -> Banners. You can have multiple banners on a XOOPS site – the display area rotates through each of the active banners in turn each time a new page is loaded.<br /><br /> - -Each time a banner is displayed to a visitor this counts as one ‘impression’, which is the common trading currency of banners. Clients typically pay for a certain number of impressions – i.e. to have their advertisement displayed a certain number of times.<br /><br /> - -Please note: If you are in the business of selling banners based on the number of impressions there is one important thing you should do: Go to System Module -> Preferences -> General Settings and fill in the ‘Your IP Address’ field (if you have one). This will prevent your visits to the site from being included in the impression count. Failure to do this could be considered somewhat dishonest (noting, however, that many Administrators don’t have a permanent IP – e.g. those using dial up modems). + Banners are advertisements displayed in the top section of the page. They may be images or flash movies, e.g. the wildly gyrating XOOPS banner that is part of the default installation. XOOPS has a built in system for managing banners and creating accounts for advertising clients, which is found in the System Module -> Banners. You can have multiple banners on a XOOPS site – the display area rotates through each of the active banners in turn each time a new page is loaded. + <br /> + <br /> + Each time a banner is displayed to a visitor this counts as one ‘impression’, which is the common trading currency of banners. Clients typically pay for a certain number of impressions – i.e. to have their advertisement displayed a certain number of times. + <br /> + <br /> + Please note: If you are in the business of selling banners based on the number of impressions there is one important thing you should do: Go to System Module -> Preferences -> General Settings and fill in the ‘Your IP Address’ field (if you have one). This will prevent your visits to the site from being included in the impression count. Failure to do this could be considered somewhat dishonest (noting, however, that many Administrators don’t have a permanent IP – e.g. those using dial up modems). </p> -<!-- ===== Help Content ======= --> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,24 +1,18 @@ -<div id="help-template" class="outer"> - <h1 class="head">Help: - <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/mailusers/admin/index.php" title="Back to the administration of Mailusers"> - MailUsers <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of Mailusers"/> - </a> - </h1> - <!-- ===== Help Content ======= --> - <h4 class="odd">Description</h4><br/> +<h4>Description</h4> +<p> Module for managing mails -XOOPS has a built in messaging system that enables you to send a message to your entire registered user base or subgroups thereof, or using date filters. This can be in the form of a private message (i.e. through the XOOPS built-in messaging system) or through an email. A range of options is available for filtering out subgroups of users from your membership. - -You can also use predefined tags that will enable you to personalize your message. - + XOOPS has a built in messaging system that enables you to send a message to your entire registered user base or subgroups thereof, or using date filters. This can be in the form of a private message (i.e. through the XOOPS built-in messaging system) or through an email. A range of options is available for filtering out subgroups of users from your membership. + <br /> + <br /> + You can also use predefined tags that will enable you to personalize your message. + <br /> +</p> <ul> <li>You can send mail to your member. </li> <li>You can send Private Message to your member. </li> <li>You can send Mail and Private Message to your member at the same time. </li> <li>Can send mail or Private message to Special Group. </li> </ul> - -Mailuser module only available in XOOP Admin page so Webmaster or Moderator can use it. - - <!-- ===== Help Content ======= --> -</div> \ No newline at end of file +<p> + Mailuser module only available in XOOP Admin page so Webmaster or Moderator can use it. +</p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,12 +1,13 @@ -<!-- ===== Help Content ======= --> <h4>Description</h4> <p> -Maintenance provides several basic functions to help you in maintaining your XOOPS installation and keep it healthy:<br /><br /> - -- clean cache folder<br /> -- empty the session table<br /> -- perform maintenance of the database tables (analyze, check, optimize, and repair) <br /><br /> - -You can also perform a "Dump" of the whole database or individual tables for backup purposes. + Maintenance provides several basic functions to help you in maintaining your XOOPS installation and keep it healthy: + <br /> </p> -<!-- ===== Help Content ======= --> \ No newline at end of file +<ul> + <li>You can clean cache folder. </li> + <li>You can empty the session table. </li> + <li>perform maintenance of the database tables (analyze, check, optimize, and repair).</li> +</ul> +<p> + You can also perform a "Dump" of the whole database or individual tables for backup purposes. +</p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,19 +1,16 @@ -<div id="help-template" class="outer"> - <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> - <!-- -----Help Content ---------- --> - <h4 class="odd">Description</h4> - <p class="even">The PM module is for private messaging between users</p> - <h4 class="odd">Install/uninstall</h4> +<p> + <h4>Description</h4> + <p>The PM module is for private messaging between users</p> + <h4>Install/uninstall</h4> <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> - <h4 class="odd">Operating instructions</h4> - <p class="even">To set up this module you need to:</p> + <h4>Operating instructions</h4> + <p>To set up this module you need to:</p> <ul> <li>You enter your Inbox directly from the front page, or by clicking on the top link "Go to module" in the PM's Admin area.</li> <li>Configure your preferences for the module (see ‘Preferences’) and optionally the PM block if you intend to use it (see ‘Blocks’).</li> <li>ou can do mass deleting of your messages by using the "Prune Messages" tab.</li> </ul> - <h4 class="odd">Tutorial</h4> - <p class="even">Tutorial coming soon.</p> - <!-- -----Help Content ---------- --> -</div> \ No newline at end of file + <h4>Tutorial</h4> + <p>Tutorial coming soon.</p> +<p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,11 +1,18 @@ -<!-- -----Help Content ---------- --> -<h4 class="odd">Description</h4> -<p class="even">The Profile module is for managing custom user profile fields.</p> -<h4 class="odd">Install/uninstall</h4> -<p>No special measures necessary, follow the standard installation process – extract the /profile folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> -<p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> -<h4 class="odd">Operating instructions</h4> -<p class="even">To set up this module you need to:</p> +<h4>Description</h4> +<p> + The Profile module is for managing custom user profile fields. +</p> +<h4>Install/uninstall</h4> +<p> + No special measures necessary, follow the standard installation process – extract the /profile folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. +</p> +<p> + Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> +</p> +<h4>Operating instructions</h4> +<p> + To set up this module you need to: +</p> <ul> <li>Configure your preferences for the module (see ‘Preferences’) and optionally the Profile block if you intend to use it (see ‘Blocks’).</li> <li>Edit existing Categories or add new ones.</li> @@ -13,6 +20,7 @@ <li>Define the order of Registration steps.</li> <li>And finally, you can set permissions for individual fields - which ones are editable, which ones are searchable.</li> </ul> -<h4 class="odd">Tutorial</h4> -<p class="even">Tutorial coming soon.</p> -<!-- -----Help Content ---------- --> \ No newline at end of file +<h4>Tutorial</h4> +<p> + Tutorial coming soon. +</p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,18 +1,23 @@ -<!-- -----Help Content ---------- --> -<h4 class="odd">Description</h4> -<p class="even">Protector is a module to defend your XOOPS CMS from various malicious attacks.</p> -<h4 class="odd">Install/uninstall</h4> -<p>First, define XOOPS_TRUST_PATH into mainfile.php if you've never done it yet.</p> -<br /> -<p>Copy html/modules/protector in the archive into your XOOPS_ROOT_PATH/modules/</p> -<p>Copy xoops_trust_path/modules/protector in the archive into your XOOPS_TRUST_PATH/modules/</p> -<br /> -<p>Turn permission of XOOPS_TRUST_PATH/modules/protector/configs writable</p> -<h4 class="odd">= How to rescue =</h4> -<p class="even">If you've been banned from Protector, just delete files under XOOPS_TRUST_PATH/modules/protector/configs/</p> -<h4 class="odd">Introduction for filter-plugins in this archive.</h4> -<p class="even">- postcommon_post_deny_by_rbl.php +<h4>Description</h4> +<p> + Protector is a module to defend your XOOPS CMS from various malicious attacks. +</p> +<h4>Install/uninstall</h4> +<p> + First, define XOOPS_TRUST_PATH into mainfile.php if you've never done it yet. <br /> + Copy html/modules/protector in the archive into your XOOPS_ROOT_PATH/modules/ + Copy xoops_trust_path/modules/protector in the archive into your XOOPS_TRUST_PATH/modules/ + <br /> + Turn permission of XOOPS_TRUST_PATH/modules/protector/configs writable +</p> +<h4>= How to rescue =</h4> +<p> + If you've been banned from Protector, just delete files under XOOPS_TRUST_PATH/modules/protector/configs/ +</p> +<h4>Introduction for filter-plugins in this archive.</h4> +<p>- postcommon_post_deny_by_rbl.php + <br /> an anti-SPAM plugin. <br /> All of Post from IP registered in RBL will be rejected. @@ -29,7 +34,7 @@ <br /> define( 'PROTECTOR_HTTPBL_KEY' , '............' ) ; </p> -<p class="even">- postcommon_post_need_multibyte.php +<p>- postcommon_post_need_multibyte.php <br /> an anti-SPAM plugin. <br /> @@ -43,7 +48,7 @@ <br /> If you allow guests posting HTML, I strongly recommend you to enable it. </p> -<p class="even">-postcommon_register_insert_js_check.php +<p>-postcommon_register_insert_js_check.php <br /> This plugin prevents your site from robot's user registering. <br /> @@ -55,11 +60,12 @@ <br /> All plugins named *_message.php specifys the message for rejected accesses. </p> -<p class="even">- precommon_bwlimit_errorlog.php +<p>- precommon_bwlimit_errorlog.php <br /> When band width limitaion works unfortunately, this plugin logs it into Apache's error_log. </p> <p>All plugins named *_errorlog.php log some informations into Apaches error_log.</p> -<h4 class="odd">Tutorial</h4> -<p class="even">Tutorial coming soon.</p> -<!-- -----Help Content ---------- --> \ No newline at end of file +<h4>Tutorial</h4> +<p> + Tutorial coming soon. +</p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,10 +1,8 @@ -<!-- ===== Help Content ======= --> <h4>Description</h4> <p> -Smiles are little graphic symbols that people can use to express themselves. They can be inserted anywhere in the text of an article, comment or post from both the user and admin sides of the system. XOOPS ships with a collection of 17 smilies built in. Some of these are displayed on the submission forms in various modules (including forums, news, downloads, links and others). Clicking on a smilie will insert it into the post. Smilies can also be inserted by typing in their unique ‘codes’ (keyboard shortcuts), for example typing ':' '-' 'D' in a post will insert this smilie: <img src="http://www.xoops.org/uploads/smil42e7a3d4c7b9f.gif" alt=""/> -<br/><br/> -The full list of smilies available on your system and their codes is accessible through the Smilies, which is where you're now. Here you can add, edit and delete smilies, and control which are displayed on submission forms (only nine of the 17 are displayed by default) -<br/><br/> -If you don’t want smilies on your system, you can either uncheck the “display in form?” box (in which case they won’t appear on submission forms, but will still be available via their codes), or use the delete link to remove them entirely. <br/><br/> -</p> -<!-- ===== Help Content ======= --> \ No newline at end of file + Smiles are little graphic symbols that people can use to express themselves. They can be inserted anywhere in the text of an article, comment or post from both the user and admin sides of the system. XOOPS ships with a collection of 17 smilies built in. Some of these are displayed on the submission forms in various modules (including forums, news, downloads, links and others). Clicking on a smilie will insert it into the post. Smilies can also be inserted by typing in their unique ‘codes’ (keyboard shortcuts), for example typing ':' '-' 'D' in a post will insert this smilie: <img src="http://www.xoops.org/uploads/smil42e7a3d4c7b9f.gif" alt=""/> + <br /><br /> + The full list of smilies available on your system and their codes is accessible through the Smilies, which is where you're now. Here you can add, edit and delete smilies, and control which are displayed on submission forms (only nine of the 17 are displayed by default) + <br /><br /> + If you don’t want smilies on your system, you can either uncheck the “display in form?” box (in which case they won’t appear on submission forms, but will still be available via their codes), or use the delete link to remove them entirely. <br/><br/> +</p> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/css/help.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/css/help.css 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/css/help.css 2012-06-16 18:09:51 UTC (rev 9659) @@ -2,14 +2,28 @@ text-align:justify; } -.xo-help-menu { +.system-help { + float: left; + width: 100%; +} + +.help-menu { + float: left; + width: 20%; +} + +.help-content { + float: right; + width: 79%; +} +/*.xo-help-menu { border:1px solid #ccc; padding: 5px; margin: 5px auto; border-radius: 3px; -moz-border-radius: 3px; - -webkit-border-radius: 3px; - -khtml-border-radius: 3px; + -webkit-border-radius: 3px; + -khtml-border-radius: 3px; } #help-template { @@ -18,21 +32,16 @@ padding: 5px; } -#help-content { +/*.help-content { width: 98% !important; margin: 0 auto; } #non-modhelp { - padding: 20px; - background-color: #dfdfdf; - border:1px solid #ccc; - font-style: 12px; - font-weight: bold; - -} - -.system-help { - float: left; - width: 100%; -} \ No newline at end of file + padding: 20px; + background-color: #dfdfdf; + border:1px solid #ccc; + font-style: 12px; + font-weight: bold; + +}*/ \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,55 +1,54 @@ <{includeq file="admin:system|system_header.html"}> -<table> - <tr> - <td class="width20" valign="top"> - <{if $help}> - <div id="help-content"> - <div class="system-help outer"> - <div class="xo-window"> - <div class="xo-window-title"><span class="ico ico-application"></span> <{$smarty.const._AM_SYSTEM_HELP}></div> - <div class="xo-window-data"> - <{foreach item=help from=$help}> - <div><a href="<{$help.link}>"><{$help.name}></a></div> - <{/foreach}> - </div> - </div> - </div> +<{if $help}> +<div class="help-menu"> + <div class="system-help outer"> + <div class="xo-window"> + <div class="xo-window-title"> + <span class="ico ico-application"></span> <{$smarty.const._AM_SYSTEM_HELP}> </div> - <{/if}> - <{if $list_mods}> - <div id="help-content"> - <div class="system-help outer"> - <div class="xo-window"> - <div class="xo-window-title"><span class="ico ico-application"></span> <{$smarty.const._AM_SYSTEM_HELP}></div> - <div class="xo-window-data"> - <{foreach item=row from=$list_mods}> - <h2 class="head"><{$row.name}></h2> - <{foreach item=list from=$row.help_page}> - <div title="<{$list.name}>"><a href="<{$list.link}>"><{$list.name}></a></div> - <{/foreach}> - <{/foreach}> - </div> - </div> - </div> + <div class="xo-window-data"> + <{foreach item=help from=$help}> + <div><a href="<{$help.link}>"><{$help.name}></a></div> + <{/foreach}> </div> - <{/if}> - </td> - <td valign="top"> - <div id="help-content"> - <div class="system-help outer"> - <div class="xo-window"> - <div class="xo-window-title"><span class="ico ico-help"></span> <{$smarty.const._AM_SYSTEM_HELP}>: <{$modname}></div> - <div class="xo-window-data"> - <{$helpcontent}> - <{if $help_module}> - <div class="txtcenter"> - <a class="btn btn-primary btn-mini" href="<{$xoops_url}>/modules/<{$moddirname}>/admin/index.php"><i class="icon-home icon-white"></i> <{$modname}></a> - </div> - <{/if}> - </div> - </div> + </div> + </div> +</div> +<{/if}> +<{if $list_mods}> +<div class="help-menu"> + <div class="system-help outer"> + <div class="xo-window"> + <div class="xo-window-title"> + <span class="ico ico-application"></span> <{$smarty.const._AM_SYSTEM_HELP}> + </div> + <div class="xo-window-data"> + <{foreach item=row from=$list_mods}> + <h3 class="head"><{$row.name}></h3> + <{foreach item=list from=$row.help_page}> + <div title="<{$list.name}>"><a href="<{$list.link}>"><{$list.name}></a></div> + <{/foreach}> + <{/foreach}> + </div> + </div> + </div> +</div> +<{/if}> +<div class="help-content"> + <div class="system-help outer"> + <div class="xo-window"> + <div class="xo-window-title"> + <span class="ico ico-application"></span> <{$smarty.const._AM_SYSTEM_HELP}> + </div> + <div class="xo-window-data"> + <{$helpcontent}> + <{if $help_module}> + <div class="txtcenter"> + <a class="btn btn-primary btn-mini" href="<{$xoops_url}>/modules/<{$moddirname}>/admin/index.php"><i class="icon-home icon-white"></i> <{$modname}></a> </div> + <{/if}> </div> - </td> - </tr> -</table> \ No newline at end of file + </div> + </div> +</div> +<div class="clear"></div> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/help.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/help.html 2012-06-16 15:32:44 UTC (rev 9658) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/language/english/help/help.html 2012-06-16 18:09:51 UTC (rev 9659) @@ -1,10 +1,14 @@ +<h4>Description</h4> <p> -User Ranks allow you to give people some ‘<em>status</em>’ based on either their role or level of participation in the community. It is important to note that user ranks are functionally irrelevant - they *do not* confer any extra privileges or administrative rights at all – they are just titles. User access rights are actually controlled elsewhere (through the Groups section of the control panel). If you assign someone the Webmaster user rank but forget to also assign them to the Webmaster user group (a common mistake) they may look cool but they won’t be able to administer the site !<br /><br /> - -‘<em>Normal</em>’ ranks are assigned on the basis of the number of forum posts and comments a user has made. A user’s rank will change as they make enough posts to qualify for the next level. XOOPS ships with the following default ranks: Just popping in; Not too shy to talk; Quite a regular; Just can’t stay away; and Home away from home. -XOOPS also ships with two ‘<em>special ranks</em>’: Moderator and Webmaster. Special ranks differ in that they can be assigned to users irrespective of the number of posts they have made. A typical use of special ranks is to give recognition to people performing various administrative functions.<br /><br /> - -The ‘<em>edit</em>’ link allows you to change the name of a rank, to alter the minimum / maximum number of posts needed to qualify, to designate it as a ‘<em>special</em>’ rank (or not), and to upload a new rank image. You can remove unnecessary ranks (‘delete’ link). <br /><br /> - -You can create additional ranks through the form at the bottom of the user rank page. Simply assign a name, minimum and maximum number of posts (if desired), upload a rank image and assign it as either normal or special. + User Ranks allow you to give people some ‘<em>status</em>’ based on either their role or level of participation in the community. It is important to note that user ranks are functionally irrelevant - they *do not* confer any extra privileges or administrative rights at all – they are just titles. User access rights are actually controlled elsewhere (through the Groups section of the control panel). If you assign someone the Webmaster user rank but forget to also assign them to the Webmaster user group (a common mistake) they may look cool but they won’t be able to administer the site ! + <br /> + <br /> + ‘<em>Normal</em>’ ranks are assigned on the basis of the number of forum posts and comments a user has made. A user’s rank will change as they make enough posts to qualify for the next level. XOOPS ships with the following default ranks: Just popping in; Not too shy to talk; Quite a regular; Just can’t stay away; and Home away from home. + XOOPS also ships with two ‘<em>special ranks</em>’: Moderator and Webmaster. Special ranks differ in that they can be assigned to users irrespective of the number of posts they have made. A typical use of special ranks is to give recognition to people performing various administrative functions. + <br /> + <br /> + The ‘<em>edit</em>’ link allows you to change the name of a rank, to alter the minimum / maximum number of posts needed to qualify, to designate it as a ‘<em>special</em>’ rank (or not), and to upload a new rank image. You can remove unnecessary ranks (‘delete’ link). + <br /> + <br /> + You can create additional ranks through the form at the bottom of the user rank page. Simply assign a name, minimum and maximum number of posts (if desired), upload a rank image and assign it as either normal or special. </p> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dh...@us...> - 2012-06-16 15:32:51
|
Revision: 9658 http://xoops.svn.sourceforge.net/xoops/?rev=9658&view=rev Author: dhcst Date: 2012-06-16 15:32:44 +0000 (Sat, 16 Jun 2012) Log Message: ----------- remove user.php from language Removed Paths: ------------- XoopsModules/newbb/branches/alfred/newbb/language/english/user.php XoopsModules/newbb/branches/alfred/newbb/language/german/user.php Deleted: XoopsModules/newbb/branches/alfred/newbb/language/english/user.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/english/user.php 2012-06-16 13:06:30 UTC (rev 9657) +++ XoopsModules/newbb/branches/alfred/newbb/language/english/user.php 2012-06-16 15:32:44 UTC (rev 9658) @@ -1,46 +0,0 @@ -<?php -// For user info -// If you have customized userbar, define here. -require_once(XOOPS_ROOT_PATH."/modules/newbb/class/user.php"); -class User_language extends User -{ - function User_language() - { - } - - function getUserbar() - { - global $xoopsModuleConfig, $xoopsUser, $isadmin; - - $userbar = array(); - if (empty($xoopsModuleConfig['userbar_enabled'])) return $userbar; - - $user = $this->user; - $userbar[] = array("link" => XOOPS_URL . "/userinfo.php?uid=" . $user->getVar("uid"), "name" => _PROFILE); - - if (is_object($xoopsUser)) { - $userbar[] = array("link" => "javascript:void openWithSelfMain('" . XOOPS_URL . "/pmlite.php?send2=1&to_userid=" . $user->getVar("uid") . "', 'pmlite', 450, 380);", "name" => _MD_PM); - } - if ($user->getVar('user_viewemail') || $isadmin) { - $userbar[] = array("link" => "javascript:void window.open('mailto:" . $user->getVar('email') . "', 'new');", "name" => _MD_EMAIL); - } - if ($url = $user->getVar('url')) { - $userbar[] = array("link" => "javascript:void window.open('" . $url . "', 'new');", "name" => _MD_WWW); - } - if ($icq = $user->getVar('user_icq')) { - $userbar[] = array("link" => "javascript:void window.open('http://wwp.icq.com/scripts/search.dll?to=" . $icq."', 'new');", "name" => _MD_ICQ); - } - if ($aim = $user->getVar('user_aim')) { - $userbar[]= array("link" => "javascript:void window.open('aim:goim?screenname=" . $aim . "&message=Hi+" . $aim . "+Are+you+there?" . "', 'new');", "name" => _MD_AIM); - } - if ($yim = $user->getVar('user_yim')) { - $userbar[] = array("link" => "javascript:void window.open('http://edit.yahoo.com/config/send_webmesg?.target=" . $yim . "&.src=pg" . "', 'new');", "name" => _MD_YIM); - } - if ($msn = $user->getVar('user_msnm')) { - $userbar[] = array("link" => "javascript:void window.open('http://members.msn.com?mem=" . $msn . "', 'new');", "name" => _MD_MSNM); - } - - return $userbar; - } -} -?> \ No newline at end of file Deleted: XoopsModules/newbb/branches/alfred/newbb/language/german/user.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/language/german/user.php 2012-06-16 13:06:30 UTC (rev 9657) +++ XoopsModules/newbb/branches/alfred/newbb/language/german/user.php 2012-06-16 15:32:44 UTC (rev 9658) @@ -1,46 +0,0 @@ -<?php -// For user info -// If you have customized userbar, define here. -require_once(XOOPS_ROOT_PATH."/modules/newbb/class/user.php"); -class User_language extends User -{ - function User_language() - { - } - - function getUserbar() - { - global $xoopsModuleConfig, $xoopsUser, $isadmin; - - $userbar = array(); - if (empty($xoopsModuleConfig['userbar_enabled'])) return $userbar; - - $user = $this->user; - $userbar[] = array("link" => XOOPS_URL . "/userinfo.php?uid=" . $user->getVar("uid"), "name" => _PROFILE); - - if (is_object($xoopsUser)) { - $userbar[] = array("link" => "javascript:void openWithSelfMain('" . XOOPS_URL . "/pmlite.php?send2=1&to_userid=" . $user->getVar("uid") . "', 'pmlite', 450, 380);", "name" => _MD_PM); - } - if ($user->getVar('user_viewemail') || $isadmin) { - $userbar[] = array("link" => "javascript:void window.open('mailto:" . $user->getVar('email') . "', 'new');", "name" => _MD_EMAIL); - } - if ($url = $user->getVar('url')) { - $userbar[] = array("link" => "javascript:void window.open('" . $url . "', 'new');", "name" => _MD_WWW); - } - if ($icq = $user->getVar('user_icq')) { - $userbar[] = array("link" => "javascript:void window.open('http://wwp.icq.com/scripts/search.dll?to=" . $icq."', 'new');", "name" => _MD_ICQ); - } - if ($aim = $user->getVar('user_aim')) { - $userbar[]= array("link" => "javascript:void window.open('aim:goim?screenname=" . $aim . "&message=Hi+" . $aim . "+Are+you+there?" . "', 'new');", "name" => _MD_AIM); - } - if ($yim = $user->getVar('user_yim')) { - $userbar[] = array("link" => "javascript:void window.open('http://edit.yahoo.com/config/send_webmesg?.target=" . $yim . "&.src=pg" . "', 'new');", "name" => _MD_YIM); - } - if ($msn = $user->getVar('user_msnm')) { - $userbar[] = array("link" => "javascript:void window.open('http://members.msn.com?mem=" . $msn . "', 'new');", "name" => _MD_MSNM); - } - - return $userbar; - } -} -?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-06-16 13:06:40
|
Revision: 9657 http://xoops.svn.sourceforge.net/xoops/?rev=9657&view=rev Author: txmodxoops Date: 2012-06-16 13:06:30 +0000 (Sat, 16 Jun 2012) Log Message: ----------- Updated Reformat folders Added Paths: ----------- XoopsModules/fullcalendar/releases/1.01/modules/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/credits.txt XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/install.txt XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/lang_diff.txt XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/licence.txt XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/readme.txt XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/events.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/header.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/addevent.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/dashboard.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/deleteallevents.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/editevent.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/default_slogo.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/off.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/on.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/bg.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/left_both.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/right_both.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/txmodxoops_logo.png XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/config.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/functions.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/install.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/index.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/fullcalendar.js XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/fullcalendar.min.js XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/gcal.js XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/jqinit.js XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/json-events.js XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/json-events.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/admin.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/help/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/help/help.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/help/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/main.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/modinfo.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/admin.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/help/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/help/help.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/help/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/main.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/modinfo.php XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/sql/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/sql/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/sql/mysql.sql XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/admin/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/admin/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/blocks/ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/blocks/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_events.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_footer.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_header.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/index.html XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/xoops_version.php XoopsModules/fullcalendar/releases/1.01/modules/system/ XoopsModules/fullcalendar/releases/1.01/modules/system/templates/ XoopsModules/fullcalendar/releases/1.01/modules/system/templates/system_barsocials.html XoopsModules/fullcalendar/releases/1.01/modules/system/templates/system_fbcomments.html XoopsModules/fullcalendar/releases/1.01/modules/system/xoops_version.php XoopsModules/fullcalendar/releases/1.01/themes/ XoopsModules/fullcalendar/releases/1.01/themes/yourtheme/ XoopsModules/fullcalendar/releases/1.01/themes/yourtheme/css/ XoopsModules/fullcalendar/releases/1.01/themes/yourtheme/css/style.css Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +echo $adminMenu->addNavigation("about.php"); +echo $adminMenu->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,35 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +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_FULLCALENDAR_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,68 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/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 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); +$pathIcon32 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); +$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); + +//load class +$eventsHandler=& xoops_getModuleHandler('fullcalendar_events', $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); +//xoops_cp_header(); + +//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'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); +}else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); +} + +$adminMenu = new ModuleAdmin(); Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,121 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +//It recovered the value of argument op in URL$ +$op = fullcalendar_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "prune_events": + default: + include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; + echo $adminMenu->addNavigation('delete_events.php'); + echo '<br /><br /><br />'; + $sform = new XoopsThemeForm(_AM_FULLCALENDAR_PRUNEEVENTS, 'pruneform', $_SERVER["REQUEST_URI"], 'post'); + $sform->addElement(new XoopsFormTextDateSelect(_AM_FULLCALENDAR_PRUNE_BEFORE, 'prune_date',15,time()), true); + $onlyexpired = new xoopsFormCheckBox(_AM_FULLCALENDAR_PRUNE_CAPTIONEXPIREDONLY, 'onlyexpired'); + $onlyexpired->addOption(1, _AM_FULLCALENDAR_PRUNE_EXPIREDONLY); + $sform->addElement($onlyexpired, false); + $sform->addElement(new XoopsFormHidden('op', 'confirmbeforetoprune'), false); + $eventslist = new XoopsFormSelect(_AM_FULLCALENDAR_PRUNE_EVENTS, 'pruned_events','',5,true); + $criteria = new CriteriaCompo(); + $criteria->setSort("event_id ASC, event_title"); + $criteria->setOrder("ASC"); + $events_arr = $eventsHandler->getAll($criteria); + if(count($events_arr)) { + foreach ($events_arr as $oneevent) { + $eventslist->addOption($oneevent->getVar('event_id'),$oneevent->getVar('event_title')); + } + } + $eventslist->setDescription(_AM_FULLCALENDAR_EXPORT_PRUNE_DSC); + $sform->addElement($eventslist,false); + $button_tray = new XoopsFormElementTray('' ,''); + $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); + $button_tray->addElement($submit_btn); + $sform->addElement($button_tray); + $sform->display(); + break; + + case "confirmbeforetoprune": + $events = $eventsHandler->get($_GET['event_id']); + $eventlist = ''; + if(isset($_POST['pruned_events'])) { + $eventlist = implode(',',$_POST['pruned_events']); + } + $expired = 0; + if(isset($_POST['onlyexpired'])) { + $expired = intval($_POST['onlyexpired']); + } + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("event_id", $_GET['event_id'])); + $criteria->add(new Criteria("event_end", $_GET['event_end'])); + $count = $eventsHandler->getCount($criteria); + $date = $_POST['prune_date']; + $timestamp = mktime( 0, 0, 0, intval(substr($date, 5, 2)), intval(substr($date, 8, 2)), intval(substr($date, 0, 4))); + if($count) { + $displaydate = formatTimestamp($timestamp); + $msg = sprintf(_AM_FULLCALENDAR_PRUNE_CONFIRM, $displaydate, $count); + xoops_confirm(array( 'op' => 'delete_allevents', "event_id" => $_REQUEST["event_id"], 'expired' => $expired, 'pruned_events' => $eventlist, 'prune_date' => $timestamp, 'ok' => 1), 'delete_events.php', $msg); + } + unset($events); + break; + + case "delete_allevents": + $events = $eventsHandler->get($_GET['event_id']); + $timestamp = intval($_POST['prune_date']); + $expired = intval($_POST['expired']); + $criteria = new CriteriaCompo(new Criteria("event_id", $_GET['event_id'])); + $eventlist = $eventsHandler->getAll($criteria); + if(isset($_POST['pruned_events'])) { + $eventlist=$_POST['pruned_events']; + } + if( intval($_POST['ok']) == 1 ) { + $criteria = new CriteriaCompo(new Criteria("event_id", 0, '>')); + $criteria->add(new Criteria("event_end", $_GET['event_end'])); + $count = $eventsHandler->getCount($criteria); + $msg = sprintf(_AM_FULLCALENDAR_PRUNE_DELETED,$count); + $events->DeleteBeforeDate($timestamp, $expired, $eventlist); + + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($eventsHandler->delete($events)) { + redirect_header( 'delete_events.php', 3, $msg); + } else { + echo $obj->getHtmlErrors(); + } + } + unset($events); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,203 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +//It recovered the value of argument op in URL$ +$op = fullcalendar_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "list": + default: + echo $adminMenu->addNavigation('events.php'); + $adminMenu->addItemButton(_AM_FULLCALENDAR_NEWEVENT, 'events.php?op=new_event', 'add'); + echo $adminMenu->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("event_id ASC, event_title"); + $criteria->setOrder("ASC"); + $numrows = $eventsHandler->getCount(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $events_arr = $eventsHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ID."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_TITLE."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th> + <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($events_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td class='center'>".$i."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_title")."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_description")."</td>"; + echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_start"), 'm')."</td>"; + echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_end"), 'm')."</td>"; + $fc_events_allday = $events_arr[$i]->getVar('event_allday'); + $fc_event_allday = ($fc_events_allday == 1) ? _YES : _NO; + echo "<td class='center'>".$fc_event_allday."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_weight")."</td>"; + + if ( $events_arr[$i]->getVar("event_display") == 1 ) { + echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=0'><img src='".$pathIcon16."/on.png' border='0' alt='"._AM_FULLCALENDAR_ONLINE."' title='"._AM_FULLCALENDAR_ONLINE."'></a></td>"; + } else { + echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=1'><img src='".$pathIcon16."/off.png' border='0' alt='"._AM_FULLCALENDAR_OFFLINE."' title='"._AM_FULLCALENDAR_OFFLINE."'></a></td>"; + } + + echo "<td align='center' width='10%'> + <a href='events.php?op=edit_event&event_id=".$events_arr[$i]->getVar("event_id")."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='events.php?op=delete_event&event_id=".$events_arr[$i]->getVar("event_id")."'><img src=".$pathIcon16."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br /><br />"; + echo "<div class='center'>".$pagenav."</div>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ID."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_TITLE."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th> + <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th> + </tr>"; + echo "</table><br /><br />"; + } + + break; + + case "new_event": + echo $adminMenu->addNavigation("events.php"); + $adminMenu->addItemButton(_AM_FULLCALENDAR_EVENTSLIST, 'events.php?op=list', 'list'); + echo $adminMenu->renderButton(); + + $obj =& $eventsHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_event": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["event_id"])) { + $obj =& $eventsHandler->get($_REQUEST["event_id"]); + } else { + $obj =& $eventsHandler->create(); + } + //Form event_display + $verif_event_allday = ($_REQUEST["event_allday"] == 1) ? "1" : "0"; + //Form event_display + $verif_event_display = ($_REQUEST["event_display"] == 1) ? "1" : "0"; + //Form events + $obj->setVars(array("event_title" => $_POST["event_title"], "event_description" => $_POST["event_description"], "event_start" => fullcalendar_convertDate($_POST["event_start"]), "event_end" => fullcalendar_convertDate($_POST["event_end"]), "event_url" => $_POST["event_url"], "event_allday" => $_POST["event_allday"], "event_weight" => $_POST["event_weight"], "event_display" => $verif_event_display)); + + if ($eventsHandler->insert($obj)) { + redirect_header("events.php?op=list", 2, _AM_FULLCALENDAR_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_event": + echo $adminMenu->addNavigation("events.php"); + $adminMenu->addItemButton(_AM_FULLCALENDAR_NEWEVENT, 'events.php?op=new_event', 'add'); + $adminMenu->addItemButton(_AM_FULLCALENDAR_EVENTSLIST, 'events.php?op=list', 'list'); + echo $adminMenu->renderButton(); + $obj = $eventsHandler->get($_REQUEST["event_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_event": + $obj =& $eventsHandler->get($_REQUEST["event_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($eventsHandler->delete($obj)) { + redirect_header("events.php", 3, _AM_FULLCALENDAR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "event_id" => $_REQUEST["event_id"], "op" => "delete_event"), $_SERVER["REQUEST_URI"], sprintf(_AM_FULLCALENDAR_FORMSUREDEL, $obj->getVar("event_title"))); + } + break; + + case "update_display": + if (isset($_GET["event_id"])) { + $obj =& $eventsHandler->get($_GET["event_id"]); + } + $obj->setVar("event_display", $_REQUEST["event_display"]); + if ($eventsHandler->insert($obj)) { + redirect_header("events.php", 3, _AM_FULLCALENDAR_FORMOK); + } + echo $obj->getHtmlErrors(); + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,47 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); + //count "total events" + $count_events = $eventsHandler->getCount(); + //count "total expired events" + $criteria = new CriteriaCompo(new Criteria('event_end', date( _DATESTRING ), '<')); //time() + $count_expired_events = $eventsHandler->getCount($criteria); + $r = '#FF0000'; /* Red */ $g = '#00AA00'; // Green + $expired = ($count_events == 0) && ($count_expired_events == 0); + // InfoBox events + $adminMenu->addInfoBox(_AM_FULLCALENDAR_EVENTS); + $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EVENTS, $count_events, ($count_events != 0) ? $g : $r); + $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EXPIRED_EVENTS, $count_events, $expired ? $g : $r ); + // Render Index + echo $adminMenu->addNavigation("index.php"); + echo $adminMenu->renderIndex(); +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,47 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); +$adminmenu = array(); $i = 1; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = "images/32/dashboard.png"; $i++; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU2; +$adminmenu[$i]["link"] = "admin/events.php"; +$adminmenu[$i]["icon"] = "images/32/addevent.png"; $i++; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU3; +$adminmenu[$i]["link"] = "admin/delete_events.php"; +$adminmenu[$i]["icon"] = "images/32/deleteallevents.png"; $i++; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU4; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; unset( $i ); \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,139 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} + +class fullcalendar_events extends XoopsObject +{ + //Constructor + function __construct() + { + $this->XoopsObject(); + $this->initVar("event_id", XOBJ_DTYPE_INT, '0', false, 8); + $this->initVar("event_title", XOBJ_DTYPE_TXTBOX, 'Event Title', false, 255); + $this->initVar("event_description", XOBJ_DTYPE_TXTAREA, 'Event Description', false); + $this->initVar("event_start", XOBJ_DTYPE_LTIME, null, false); + $this->initVar("event_end", XOBJ_DTYPE_LTIME, null, false); + $this->initVar("event_url", XOBJ_DTYPE_TXTBOX, 'http://www.txmodxoops.org', false, 255); + $this->initVar("event_allday", XOBJ_DTYPE_INT, '0', false, 1); + $this->initVar("event_weight", XOBJ_DTYPE_INT, '0', false, 11); + $this->initVar("event_display", XOBJ_DTYPE_INT, '0', false, 1); + } + + function fullcalendar_events() + { + $this->__construct(); + } + + function getForm($action = false) + { + global $xoopsDB, $xoopsModuleConfig; + + if ($action === false) { + $action = $_SERVER["REQUEST_URI"]; + } + + $title = $this->isNew() ? sprintf(_AM_FULLCALENDAR_EVENT_ADD) : sprintf(_AM_FULLCALENDAR_EVENT_EDIT); + + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $form = new XoopsThemeForm($title, "form", $action, "post", true); + $form->setExtra('enctype="multipart/form-data"'); + // event_title + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_TITLE, "event_title", 50, 255, $this->getVar("event_title")), true); + // event_description + $editor_configs=array(); + $editor_configs["name"] ="event_description"; + $editor_configs["value"] = $this->getVar("event_description", "e"); + $editor_configs["rows"] = 5; + $editor_configs["cols"] = 50; + $editor_configs["width"] = "50%"; + $editor_configs["height"] = "200px"; + $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["fullcalendar_editor"]; + $form->addElement( new XoopsFormEditor(_AM_FULLCALENDAR_EVENT_DESCRIPTION, "event_description", $editor_configs), false ); + // event_start + $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_START, "event_start", 15, $this->getVar("event_start")), true); + // event_end + $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_END, "event_end", 15, $this->getVar("event_end")), true); + // event_url + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_URL, "event_url", 50, 255, $this->getVar("event_url")), false); + // event_weight + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_WEIGHT, "event_weight", 5, 15, $this->getVar("event_weight")), true); + // options_tray + $options_tray = new XoopsFormElementTray(_OPTIONS, '<br />'); + // event_allday + $event_allday = $this->isNew() ? 0 : $this->getVar("event_allday"); + $check_event_allday = new XoopsFormCheckBox(" ", "event_allday", $event_allday); + $check_event_allday->addOption(1, _AM_FULLCALENDAR_EVENT_ALLDAY); + $options_tray->addElement($check_event_allday); + // event_display + $event_display = $this->isNew() ? 0 : $this->getVar("event_display"); + $check_event_display = new XoopsFormCheckBox(" ", "event_display", $event_display); + $check_event_display->addOption(1, _AM_FULLCALENDAR_EVENT_DISPLAY); + $options_tray->addElement($check_event_display); + $form->addElement($options_tray); + + // save_event + $form->addElement(new XoopsFormHidden("op", "save_event")); + $form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); + return $form; + } + + /** + * Delete events that were published before a given date + */ + function DeleteBeforeDate($timestamp, $expired, $eventslist='') + { + global $xoopsModule; + $mid= $xoopsModule->getVar('mid'); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $prefix = $db->prefix('fullcalendar_events'); + $sql = 'SELECT event_id FROM '.$prefix.' WHERE event_start <=' . $timestamp; + if($expired) { + $sql .=' (AND event_end > 0 AND event_end <= '.time().')'; + } + if(strlen(trim($eventslist))>0) { + $sql .=' AND event_id IN ('.$eventslist.')'; + } + $result = $db->query($sql); + while ($myrow = $db->fetchArray($result)) { + $db->queryF('DELETE FROM '.$prefix.' WHERE event_id='.$myrow['event_id']); // Delete the event + } + return true; + } +} +class fullcalendarfullcalendar_eventsHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "fullcalendar_events", "fullcalendar_events", "event_id", "event_title"); + } +} +?> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,618 @@ +/* + * FullCalendar v1.5.3 Stylesheet + * + * Copyright (c) 2011 Adam Shaw + * Dual licensed under the MIT and GPL licenses, located in + * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. + * + * Date: Mon Feb 6 22:40:40 2012 -0800 + * + */ + + +.fc { + direction: ltr; + text-align: left; + } + +.fc table { + border-collapse: collapse; + border-spacing: 0; + } + +html .fc, +.fc table { + font-size: 1em; + } + +.fc td, +.fc th { + padding: 0; + vertical-align: top; + } + + + +/* Header +------------------------------------------------------------------------*/ + +.fc-header td { + white-space: nowrap; + } + +.fc-header-left { + width: 25%; + text-align: left; + } + +.fc-header-center { + text-align: center; + } + +.fc-header-right { + width: 25%; + text-align: right; + } + +.fc-header-title { + display: inline-block; + vertical-align: top; + } + +.fc-header-title h2 { + margin-top: 0; + white-space: nowrap; + } + +.fc .fc-header-space { + padding-left: 10px; + } + +.fc-header .fc-button { + margin-bottom: 1em; + vertical-align: top; + } + +/* buttons edges butting together */ + +.fc-header .fc-button { + margin-right: -1px; + } + +.fc-header .fc-corner-right { + margin-right: 1px; /* back to normal */ + } + +.fc-header .ui-corner-right { + margin-right: 0; /* back to normal */ + } + +/* button layering (for border precedence) */ + +.fc-header .fc-state-hover, +.fc-header .ui-state-hover { + z-index: 2; + } + +.fc-header .fc-state-down { + z-index: 3; + } + +.fc-header .fc-state-active, +.fc-header .ui-state-active { + z-index: 4; + } + + + +/* Content +------------------------------------------------------------------------*/ + +.fc-content { + clear: both; + } + +.fc-view { + width: 100%; /* needed for view switching (when view is absolute) */ + overflow: hidden; + } + + + +/* Cell Styles +------------------------------------------------------------------------*/ + +.fc-widget-header, /* <th>, usually */ +.fc-widget-content { /* <td>, usually */ + border: 1px solid #ccc; + } + +.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */ + background: #ffc; + } + +.fc-cell-overlay { /* semi-transparent rectangle while dragging */ + background: #9cf; + opacity: .2; + filter: alpha(opacity=20); /* for IE */ + } + + + +/* Buttons +------------------------------------------------------------------------*/ + +.fc-button { + position: relative; + display: inline-block; + cursor: pointer; + } + +.fc-state-default { /* non-theme */ + border-style: solid; + border-width: 1px 0; + } + +.fc-button-inner { + position: relative; + float: left; + overflow: hidden; + } + +.fc-state-default .fc-button-inner { /* non-theme */ + border-style: solid; + border-width: 0 1px; + } + +.fc-button-content { + position: relative; + float: left; + height: 1.9em; + line-height: 1.9em; + padding: 0 .6em; + white-space: nowrap; + } + +/* icon (for jquery ui) */ + +.fc-button-content .fc-icon-wrap { + position: relative; + float: left; + top: 50%; + } + +.fc-button-content .ui-icon { + position: relative; + float: left; + margin-top: -50%; + *margin-top: 0; + *top: -50%; + } + +/* gloss effect */ + +.fc-state-default .fc-button-effect { + position: absolute; + top: 50%; + left: 0; + } + +.fc-state-default .fc-button-effect span { + position: absolute; + top: -100px; + left: 0; + width: 500px; + height: 100px; + border-width: 100px 0 0 1px; + border-style: solid; + border-color: #fff; + background: #444; + opacity: .09; + filter: alpha(opacity=9); + } + +/* button states (determines colors) */ + +.fc-state-default, +.fc-state-default .fc-button-inner { + border-style: solid; + border-color: #ccc #bbb #aaa; + background: #F3F3F3; + color: #000; + } + +.fc-state-hover, +.fc-state-hover .fc-button-inner { + border-color: #999; + } + +.fc-state-down, +.fc-state-down .fc-button-inner { + border-color: #555; + background: #777; + } + +.fc-state-active, +.fc-state-active .fc-button-inner { + border-color: #555; + background: #777; + color: #fff; + } + +.fc-state-disabled, +.fc-state-disabled .fc-button-inner { + color: #999; + border-color: #ddd; + } + +.fc-state-disabled { + cursor: default; + } + +.fc-state-disabled .fc-button-effect { + display: none; + } + + + +/* Global Event Styles +------------------------------------------------------------------------*/ + +.fc-event { + border-style: solid; + border-width: 0; + font-size: .85em; + cursor: default; + } + +a.fc-event, +.fc-event-draggable { + cursor: pointer; + } + +a.fc-event { + text-decoration: none; + } + +.fc-rtl .fc-event { + text-align: right; + } + +.fc-event-skin { + border-color: #36c; /* default BORDER color */ + background-color: #36c; /* default BACKGROUND color */ + color: #fff; /* default TEXT color */ + } + +.fc-event-inner { + position: relative; + width: 100%; + height: 100%; + border-style: solid; + border-width: 0; + overflow: hidden; + } + +.fc-event-time, +.fc-event-title { + padding: 0 1px; + } + +.fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/ + display: block; + position: absolute; + z-index: 99999; + overflow: hidden; /* hacky spaces (IE6/7) */ + font-size: 300%; /* */ + line-height: 50%; /* */ + } + + + +/* Horizontal Events +------------------------------------------------------------------------*/ + +.fc-event-hori { + border-width: 1px 0; + margin-bottom: 1px; + } + +/* resizable */ + +.fc-event-hori .ui-resizable-e { + top: 0 !important; /* importants override pre jquery ui 1.7 styles */ + right: -3px !important; + width: 7px !important; + height: 100% !important; + cursor: e-resize; + } + +.fc-event-hori .ui-resizable-w { + top: 0 !important; + left: -3px !important; + width: 7px !important; + height: 100% !important; + cursor: w-resize; + } + +.fc-event-hori .ui-resizable-handle { + _padding-bottom: 14px; /* IE6 had 0 height */ + } + + + +/* Fake Rounded Corners (for buttons and events) +------------------------------------------------------------*/ + +.fc-corner-left { + margin-left: 1px; + } + +.fc-corner-left .fc-button-inner, +.fc-corner-left .fc-event-inner { + margin-left: -1px; + } + +.fc-corner-right { + margin-right: 1px; + } + +.fc-corner-right .fc-button-inner, +.fc-corner-right .fc-event-inner { + margin-right: -1px; + } + +.fc-corner-top { + margin-top: 1px; + } + +.fc-corner-top .fc-event-inner { + margin-top: -1px; + } + +.fc-corner-bottom { + margin-bottom: 1px; + } + +.fc-corner-bottom .fc-event-inner { + margin-bottom: -1px; + } + + + +/* Fake Rounded Corners SPECIFICALLY FOR EVENTS +-----------------------------------------------------------------*/ + +.fc-corner-left .fc-event-inner { + border-left-width: 1px; + } + +.fc-corner-right .fc-event-inner { + border-right-width: 1px; + } + +.fc-corner-top .fc-event-inner { + border-top-width: 1px; + } + +.fc-corner-bottom .fc-event-inner { + border-bottom-width: 1px; + } + + + +/* Reusable Separate-border Table +------------------------------------------------------------*/ + +table.fc-border-separate { + border-collapse: separate; + } + +.fc-border-separate th, +.fc-border-separate td { + border-width: 1px 0 0 1px; + } + +.fc-border-separate th.fc-last, +.fc-border-separate td.fc-last { + border-right-width: 1px; + } + +.fc-border-separate tr.fc-last th, +.fc-border-separate tr.fc-last td { + border-bottom-width: 1px; + } + +.fc-border-separate tbody tr.fc-first td, +.fc-border-separate tbody tr.fc-first th { + border-top-width: 0; + } + + + +/* Month View, Basic Week View, Basic Day View +------------------------------------------------------------------------*/ + +.fc-grid th { + text-align: center; + } + +.fc-grid .fc-day-number { + float: right; + padding: 0 2px; + } + +.fc-grid .fc-other-month .fc-day-number { + opacity: 0.3; + filter: alpha(opacity=30); /* for IE */ + /* opacity with small font can sometimes look too faded + might want to set the 'color' property instead + making day-numbers bold also fixes the problem */ + } + +.fc-grid .fc-day-content { + clear: both; + padding: 2px 2px 1px; /* distance between events and day edges */ + } + +/* event styles */ + +.fc-grid .fc-event-time { + font-weight: bold; + } + +/* right-to-left */ + +.fc-rtl .fc-grid .fc-day-number { + float: left; + } + +.fc-rtl .fc-grid .fc-event-time { + float: right; + } + + + +/* Agenda Week View, Agenda Day View +------------------------------------------------------------------------*/ + +.fc-agenda table { + border-collapse: separate; + } + +.fc-agenda-days th { + text-align: center; + } + +.fc-agenda .fc-agenda-axis { + width: 50px; + padding: 0 4px; + vertical-align: middle; + text-align: right; + white-space: nowrap; + font-weight: normal; + } + +.fc-agenda .fc-day-content { + padding: 2px 2px 1px; + } + +/* make axis border take precedence */ + +.fc-agenda-days .fc-agenda-axis { + border-right-width: 1px; + } + +.fc-agenda-days .fc-col0 { + border-left-width: 0; + } + +/* all-day area */ + +.fc-agenda-allday th { + border-width: 0 1px; + } + +.fc-agenda-allday .fc-day-content { + min-height: 34px; /* TODO: doesnt work well in quirksmode */ + _height: 34px; + } + +/* divider (between all-day and slots) */ + +.fc-agenda-divider-inner { + height: 2px; + overflow: hidden; + } + +.fc-widget-header .fc-agenda-divider-inner { + background: #eee; + } + +/* slot rows */ + +.fc-agenda-slots th { + border-width: 1px 1px 0; + } + +.fc-agenda-slots td { + border-width: 1px 0 0; + background: none; + } + +.fc-agenda-slots td div { + height: 20px; + } + +.fc-agenda-slots tr.fc-slot0 th, +.fc-agenda-slots tr.fc-slot0 td { + border-top-width: 0; + } + +.fc-agenda-slots tr.fc-minor th, +.fc-agenda-slots tr.fc-minor td { + border-top-style: dotted; + } + +.fc-agenda-slots tr.fc-minor th.ui-widget-header { + *border-top-style: solid; /* doesn't work with background in IE6/7 */ + } + + + +/* Vertical Events +------------------------------------------------------------------------*/ + +.fc-event-vert { + border-width: 0 1px; + } + +.fc-event-vert .fc-event-head, +.fc-event-vert .fc-event-content { + position: relative; + z-index: 2; + width: 100%; + overflow: hidden; + } + +.fc-event-vert .fc-event-time { + white-space: nowrap; + font-size: 10px; + } + +.fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */ + position: absolute; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: #fff; + opacity: .3; + filter: alpha(opacity=30); + } + +.fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */ +.fc-select-helper .fc-event-bg { + display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */ + } + +/* resizable */ + +.fc-event-vert .ui-resizable-s { + bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */ + width: 100% !important; + height: 8px !important; + overflow: hidden !important; + line-height: 8px !important; + font-size: 11px !important; + font-family: monospace; + text-align: center; + cursor: s-resize; + } + +.fc-agenda .ui-resizable-resizing { /* TODO: better selector */ + _overflow: hidden; + } + + Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,61 @@ +/* + * FullCalendar v1.5.3 Print Stylesheet + * + * Include this stylesheet on your page to get a more printer-friendly calendar. + * When including this stylesheet, use the media='print' attribute of the <link> tag. + * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css. + * + * Copyright (c) 2011 Adam Shaw + * Dual licensed under the MIT and GPL licenses, located in + * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. + * + * Date: Mon Feb 6 22:40:40 2012 -0800 + * + */ + + + /* Events +-----------------------------------------------------*/ + +.fc-event-skin { + background: none !important; + color: #000 !important; + } + +/* horizontal events */ + +.fc-event-hori { + border-width: 0 0 1px 0 !important; + border-bottom-style: dotted !important; + border-bottom-color: #000 !important; + padding: 1px 0 0 0 !important; + } + +.fc-event-hori .fc-event-inner { + border-width: 0 !important; + padding: 0 1px !important; + } + +/* vertical events */ + +.fc-event-vert { + border-width: 0 0 0 1px !important; + border-left-style: dotted !important; + border-left-color: #000 !important; + padding: 0 1px 0 0 !important; + } + +.fc-event-vert .fc-event-inner { + border-width: 0 !important; + padding: 1px 0 !important; + } + +.fc-event-bg { + display: none !important; + } + +.fc-event .ui-resizable-handle { + display: none !important; + } + + Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,17 @@ +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +#calendar { + width: 800px; + margin: 0 auto; +} \ No newline at end of file Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt =================================================================== --- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt 2012-06-16 13:06:30 UTC (rev 9657) @@ -0,0 +1,5 @@ + +=======================... [truncated message content] |
From: <txm...@us...> - 2012-06-16 13:04:24
|
Revision: 9656 http://xoops.svn.sourceforge.net/xoops/?rev=9656&view=rev Author: txmodxoops Date: 2012-06-16 13:04:14 +0000 (Sat, 16 Jun 2012) Log Message: ----------- Updated Reformat folders Added Paths: ----------- XoopsModules/fullcalendar/trunk/modules/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/about.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_footer.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_header.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/delete_events.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/events.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/menu.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/blocks/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/blocks/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/fullcalendar_events.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.css XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.print.css XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/style.css XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/changelog.txt XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/credits.txt XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/install.txt XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/lang_diff.txt XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/licence.txt XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/readme.txt XoopsModules/fullcalendar/trunk/modules/fullcalendar/events.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/header.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/32/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/32/addevent.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/32/dashboard.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/32/deleteallevents.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/32/editevent.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/32/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/default_slogo.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/icons/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/icons/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/icons/off.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/icons/on.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/menu/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/menu/bg.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/menu/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/menu/left_both.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/menu/right_both.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/images/txmodxoops_logo.png XoopsModules/fullcalendar/trunk/modules/fullcalendar/include/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/include/config.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/include/functions.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/include/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/include/install.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/index.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/fullcalendar.js XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/fullcalendar.min.js XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/gcal.js XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/jqinit.js XoopsModules/fullcalendar/trunk/modules/fullcalendar/js/json-events.js XoopsModules/fullcalendar/trunk/modules/fullcalendar/json-events.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/admin.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/help/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/help/help.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/help/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/main.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/english/modinfo.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/admin.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/help/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/help/help.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/help/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/main.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/language/italian/modinfo.php XoopsModules/fullcalendar/trunk/modules/fullcalendar/sql/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/sql/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/sql/mysql.sql XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/admin/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/admin/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/blocks/ XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/blocks/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/fullcalendar_events.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/fullcalendar_footer.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/fullcalendar_header.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/fullcalendar_index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/templates/index.html XoopsModules/fullcalendar/trunk/modules/fullcalendar/xoops_version.php XoopsModules/fullcalendar/trunk/modules/system/ XoopsModules/fullcalendar/trunk/modules/system/templates/ XoopsModules/fullcalendar/trunk/modules/system/templates/system_barsocials.html XoopsModules/fullcalendar/trunk/modules/system/templates/system_fbcomments.html XoopsModules/fullcalendar/trunk/modules/system/xoops_version.php XoopsModules/fullcalendar/trunk/themes/ XoopsModules/fullcalendar/trunk/themes/yourtheme/ XoopsModules/fullcalendar/trunk/themes/yourtheme/css/ XoopsModules/fullcalendar/trunk/themes/yourtheme/css/style.css Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/about.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/about.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/about.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +echo $adminMenu->addNavigation("about.php"); +echo $adminMenu->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_footer.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_footer.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_footer.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,35 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +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_FULLCALENDAR_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_header.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_header.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/admin_header.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,68 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/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 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); +$pathIcon32 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); +$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); + +//load class +$eventsHandler=& xoops_getModuleHandler('fullcalendar_events', $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); +//xoops_cp_header(); + +//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'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); +}else{ + redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false); +} + +$adminMenu = new ModuleAdmin(); Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/delete_events.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/delete_events.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/delete_events.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,121 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +//It recovered the value of argument op in URL$ +$op = fullcalendar_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "prune_events": + default: + include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; + echo $adminMenu->addNavigation('delete_events.php'); + echo '<br /><br /><br />'; + $sform = new XoopsThemeForm(_AM_FULLCALENDAR_PRUNEEVENTS, 'pruneform', $_SERVER["REQUEST_URI"], 'post'); + $sform->addElement(new XoopsFormTextDateSelect(_AM_FULLCALENDAR_PRUNE_BEFORE, 'prune_date',15,time()), true); + $onlyexpired = new xoopsFormCheckBox(_AM_FULLCALENDAR_PRUNE_CAPTIONEXPIREDONLY, 'onlyexpired'); + $onlyexpired->addOption(1, _AM_FULLCALENDAR_PRUNE_EXPIREDONLY); + $sform->addElement($onlyexpired, false); + $sform->addElement(new XoopsFormHidden('op', 'confirmbeforetoprune'), false); + $eventslist = new XoopsFormSelect(_AM_FULLCALENDAR_PRUNE_EVENTS, 'pruned_events','',5,true); + $criteria = new CriteriaCompo(); + $criteria->setSort("event_id ASC, event_title"); + $criteria->setOrder("ASC"); + $events_arr = $eventsHandler->getAll($criteria); + if(count($events_arr)) { + foreach ($events_arr as $oneevent) { + $eventslist->addOption($oneevent->getVar('event_id'),$oneevent->getVar('event_title')); + } + } + $eventslist->setDescription(_AM_FULLCALENDAR_EXPORT_PRUNE_DSC); + $sform->addElement($eventslist,false); + $button_tray = new XoopsFormElementTray('' ,''); + $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); + $button_tray->addElement($submit_btn); + $sform->addElement($button_tray); + $sform->display(); + break; + + case "confirmbeforetoprune": + $events = $eventsHandler->get($_GET['event_id']); + $eventlist = ''; + if(isset($_POST['pruned_events'])) { + $eventlist = implode(',',$_POST['pruned_events']); + } + $expired = 0; + if(isset($_POST['onlyexpired'])) { + $expired = intval($_POST['onlyexpired']); + } + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("event_id", $_GET['event_id'])); + $criteria->add(new Criteria("event_end", $_GET['event_end'])); + $count = $eventsHandler->getCount($criteria); + $date = $_POST['prune_date']; + $timestamp = mktime( 0, 0, 0, intval(substr($date, 5, 2)), intval(substr($date, 8, 2)), intval(substr($date, 0, 4))); + if($count) { + $displaydate = formatTimestamp($timestamp); + $msg = sprintf(_AM_FULLCALENDAR_PRUNE_CONFIRM, $displaydate, $count); + xoops_confirm(array( 'op' => 'delete_allevents', "event_id" => $_REQUEST["event_id"], 'expired' => $expired, 'pruned_events' => $eventlist, 'prune_date' => $timestamp, 'ok' => 1), 'delete_events.php', $msg); + } + unset($events); + break; + + case "delete_allevents": + $events = $eventsHandler->get($_GET['event_id']); + $timestamp = intval($_POST['prune_date']); + $expired = intval($_POST['expired']); + $criteria = new CriteriaCompo(new Criteria("event_id", $_GET['event_id'])); + $eventlist = $eventsHandler->getAll($criteria); + if(isset($_POST['pruned_events'])) { + $eventlist=$_POST['pruned_events']; + } + if( intval($_POST['ok']) == 1 ) { + $criteria = new CriteriaCompo(new Criteria("event_id", 0, '>')); + $criteria->add(new Criteria("event_end", $_GET['event_end'])); + $count = $eventsHandler->getCount($criteria); + $msg = sprintf(_AM_FULLCALENDAR_PRUNE_DELETED,$count); + $events->DeleteBeforeDate($timestamp, $expired, $eventlist); + + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($eventsHandler->delete($events)) { + redirect_header( 'delete_events.php', 3, $msg); + } else { + echo $obj->getHtmlErrors(); + } + } + unset($events); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/events.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/events.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/events.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,203 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +//It recovered the value of argument op in URL$ +$op = fullcalendar_CleanVars($_REQUEST, 'op', 'list', 'string'); +switch ($op) +{ + case "list": + default: + echo $adminMenu->addNavigation('events.php'); + $adminMenu->addItemButton(_AM_FULLCALENDAR_NEWEVENT, 'events.php?op=new_event', 'add'); + echo $adminMenu->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("event_id ASC, event_title"); + $criteria->setOrder("ASC"); + $numrows = $eventsHandler->getCount(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $events_arr = $eventsHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ID."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_TITLE."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th> + <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($events_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td class='center'>".$i."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_title")."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_description")."</td>"; + echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_start"), 'm')."</td>"; + echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_end"), 'm')."</td>"; + $fc_events_allday = $events_arr[$i]->getVar('event_allday'); + $fc_event_allday = ($fc_events_allday == 1) ? _YES : _NO; + echo "<td class='center'>".$fc_event_allday."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_weight")."</td>"; + + if ( $events_arr[$i]->getVar("event_display") == 1 ) { + echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=0'><img src='".$pathIcon16."/on.png' border='0' alt='"._AM_FULLCALENDAR_ONLINE."' title='"._AM_FULLCALENDAR_ONLINE."'></a></td>"; + } else { + echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=1'><img src='".$pathIcon16."/off.png' border='0' alt='"._AM_FULLCALENDAR_OFFLINE."' title='"._AM_FULLCALENDAR_OFFLINE."'></a></td>"; + } + + echo "<td align='center' width='10%'> + <a href='events.php?op=edit_event&event_id=".$events_arr[$i]->getVar("event_id")."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='events.php?op=delete_event&event_id=".$events_arr[$i]->getVar("event_id")."'><img src=".$pathIcon16."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br /><br />"; + echo "<div class='center'>".$pagenav."</div>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ID."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_TITLE."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th> + <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th> + </tr>"; + echo "</table><br /><br />"; + } + + break; + + case "new_event": + echo $adminMenu->addNavigation("events.php"); + $adminMenu->addItemButton(_AM_FULLCALENDAR_EVENTSLIST, 'events.php?op=list', 'list'); + echo $adminMenu->renderButton(); + + $obj =& $eventsHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_event": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["event_id"])) { + $obj =& $eventsHandler->get($_REQUEST["event_id"]); + } else { + $obj =& $eventsHandler->create(); + } + //Form event_display + $verif_event_allday = ($_REQUEST["event_allday"] == 1) ? "1" : "0"; + //Form event_display + $verif_event_display = ($_REQUEST["event_display"] == 1) ? "1" : "0"; + //Form events + $obj->setVars(array("event_title" => $_POST["event_title"], "event_description" => $_POST["event_description"], "event_start" => fullcalendar_convertDate($_POST["event_start"]), "event_end" => fullcalendar_convertDate($_POST["event_end"]), "event_url" => $_POST["event_url"], "event_allday" => $_POST["event_allday"], "event_weight" => $_POST["event_weight"], "event_display" => $verif_event_display)); + + if ($eventsHandler->insert($obj)) { + redirect_header("events.php?op=list", 2, _AM_FULLCALENDAR_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_event": + echo $adminMenu->addNavigation("events.php"); + $adminMenu->addItemButton(_AM_FULLCALENDAR_NEWEVENT, 'events.php?op=new_event', 'add'); + $adminMenu->addItemButton(_AM_FULLCALENDAR_EVENTSLIST, 'events.php?op=list', 'list'); + echo $adminMenu->renderButton(); + $obj = $eventsHandler->get($_REQUEST["event_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_event": + $obj =& $eventsHandler->get($_REQUEST["event_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($eventsHandler->delete($obj)) { + redirect_header("events.php", 3, _AM_FULLCALENDAR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "event_id" => $_REQUEST["event_id"], "op" => "delete_event"), $_SERVER["REQUEST_URI"], sprintf(_AM_FULLCALENDAR_FORMSUREDEL, $obj->getVar("event_title"))); + } + break; + + case "update_display": + if (isset($_GET["event_id"])) { + $obj =& $eventsHandler->get($_GET["event_id"]); + } + $obj->setVar("event_display", $_REQUEST["event_display"]); + if ($eventsHandler->insert($obj)) { + redirect_header("events.php", 3, _AM_FULLCALENDAR_FORMOK); + } + echo $obj->getHtmlErrors(); + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.html =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.html (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.html 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/index.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,47 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); + //count "total events" + $count_events = $eventsHandler->getCount(); + //count "total expired events" + $criteria = new CriteriaCompo(new Criteria('event_end', date( _DATESTRING ), '<')); //time() + $count_expired_events = $eventsHandler->getCount($criteria); + $r = '#FF0000'; /* Red */ $g = '#00AA00'; // Green + $expired = ($count_events == 0) && ($count_expired_events == 0); + // InfoBox events + $adminMenu->addInfoBox(_AM_FULLCALENDAR_EVENTS); + $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EVENTS, $count_events, ($count_events != 0) ? $g : $r); + $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EXPIRED_EVENTS, $count_events, $expired ? $g : $r ); + // Render Index + echo $adminMenu->addNavigation("index.php"); + echo $adminMenu->renderIndex(); +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/menu.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/menu.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/admin/menu.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,47 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); +$adminmenu = array(); $i = 1; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = "images/32/dashboard.png"; $i++; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU2; +$adminmenu[$i]["link"] = "admin/events.php"; +$adminmenu[$i]["icon"] = "images/32/addevent.png"; $i++; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU3; +$adminmenu[$i]["link"] = "admin/delete_events.php"; +$adminmenu[$i]["icon"] = "images/32/deleteallevents.png"; $i++; +$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU4; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; unset( $i ); \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/blocks/index.html =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/blocks/index.html (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/blocks/index.html 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/fullcalendar_events.php =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/fullcalendar_events.php (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/fullcalendar_events.php 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,139 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * FULLCALENDAR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * Created by TDMCreate version 1.37 + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} + +class fullcalendar_events extends XoopsObject +{ + //Constructor + function __construct() + { + $this->XoopsObject(); + $this->initVar("event_id", XOBJ_DTYPE_INT, '0', false, 8); + $this->initVar("event_title", XOBJ_DTYPE_TXTBOX, 'Event Title', false, 255); + $this->initVar("event_description", XOBJ_DTYPE_TXTAREA, 'Event Description', false); + $this->initVar("event_start", XOBJ_DTYPE_LTIME, null, false); + $this->initVar("event_end", XOBJ_DTYPE_LTIME, null, false); + $this->initVar("event_url", XOBJ_DTYPE_TXTBOX, 'http://www.txmodxoops.org', false, 255); + $this->initVar("event_allday", XOBJ_DTYPE_INT, '0', false, 1); + $this->initVar("event_weight", XOBJ_DTYPE_INT, '0', false, 11); + $this->initVar("event_display", XOBJ_DTYPE_INT, '0', false, 1); + } + + function fullcalendar_events() + { + $this->__construct(); + } + + function getForm($action = false) + { + global $xoopsDB, $xoopsModuleConfig; + + if ($action === false) { + $action = $_SERVER["REQUEST_URI"]; + } + + $title = $this->isNew() ? sprintf(_AM_FULLCALENDAR_EVENT_ADD) : sprintf(_AM_FULLCALENDAR_EVENT_EDIT); + + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $form = new XoopsThemeForm($title, "form", $action, "post", true); + $form->setExtra('enctype="multipart/form-data"'); + // event_title + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_TITLE, "event_title", 50, 255, $this->getVar("event_title")), true); + // event_description + $editor_configs=array(); + $editor_configs["name"] ="event_description"; + $editor_configs["value"] = $this->getVar("event_description", "e"); + $editor_configs["rows"] = 5; + $editor_configs["cols"] = 50; + $editor_configs["width"] = "50%"; + $editor_configs["height"] = "200px"; + $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["fullcalendar_editor"]; + $form->addElement( new XoopsFormEditor(_AM_FULLCALENDAR_EVENT_DESCRIPTION, "event_description", $editor_configs), false ); + // event_start + $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_START, "event_start", 15, $this->getVar("event_start")), true); + // event_end + $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_END, "event_end", 15, $this->getVar("event_end")), true); + // event_url + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_URL, "event_url", 50, 255, $this->getVar("event_url")), false); + // event_weight + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_WEIGHT, "event_weight", 5, 15, $this->getVar("event_weight")), true); + // options_tray + $options_tray = new XoopsFormElementTray(_OPTIONS, '<br />'); + // event_allday + $event_allday = $this->isNew() ? 0 : $this->getVar("event_allday"); + $check_event_allday = new XoopsFormCheckBox(" ", "event_allday", $event_allday); + $check_event_allday->addOption(1, _AM_FULLCALENDAR_EVENT_ALLDAY); + $options_tray->addElement($check_event_allday); + // event_display + $event_display = $this->isNew() ? 0 : $this->getVar("event_display"); + $check_event_display = new XoopsFormCheckBox(" ", "event_display", $event_display); + $check_event_display->addOption(1, _AM_FULLCALENDAR_EVENT_DISPLAY); + $options_tray->addElement($check_event_display); + $form->addElement($options_tray); + + // save_event + $form->addElement(new XoopsFormHidden("op", "save_event")); + $form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); + return $form; + } + + /** + * Delete events that were published before a given date + */ + function DeleteBeforeDate($timestamp, $expired, $eventslist='') + { + global $xoopsModule; + $mid= $xoopsModule->getVar('mid'); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $prefix = $db->prefix('fullcalendar_events'); + $sql = 'SELECT event_id FROM '.$prefix.' WHERE event_start <=' . $timestamp; + if($expired) { + $sql .=' (AND event_end > 0 AND event_end <= '.time().')'; + } + if(strlen(trim($eventslist))>0) { + $sql .=' AND event_id IN ('.$eventslist.')'; + } + $result = $db->query($sql); + while ($myrow = $db->fetchArray($result)) { + $db->queryF('DELETE FROM '.$prefix.' WHERE event_id='.$myrow['event_id']); // Delete the event + } + return true; + } +} +class fullcalendarfullcalendar_eventsHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "fullcalendar_events", "fullcalendar_events", "event_id", "event_title"); + } +} +?> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/index.html =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/index.html (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/class/index.html 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.css =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.css (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.css 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,618 @@ +/* + * FullCalendar v1.5.3 Stylesheet + * + * Copyright (c) 2011 Adam Shaw + * Dual licensed under the MIT and GPL licenses, located in + * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. + * + * Date: Mon Feb 6 22:40:40 2012 -0800 + * + */ + + +.fc { + direction: ltr; + text-align: left; + } + +.fc table { + border-collapse: collapse; + border-spacing: 0; + } + +html .fc, +.fc table { + font-size: 1em; + } + +.fc td, +.fc th { + padding: 0; + vertical-align: top; + } + + + +/* Header +------------------------------------------------------------------------*/ + +.fc-header td { + white-space: nowrap; + } + +.fc-header-left { + width: 25%; + text-align: left; + } + +.fc-header-center { + text-align: center; + } + +.fc-header-right { + width: 25%; + text-align: right; + } + +.fc-header-title { + display: inline-block; + vertical-align: top; + } + +.fc-header-title h2 { + margin-top: 0; + white-space: nowrap; + } + +.fc .fc-header-space { + padding-left: 10px; + } + +.fc-header .fc-button { + margin-bottom: 1em; + vertical-align: top; + } + +/* buttons edges butting together */ + +.fc-header .fc-button { + margin-right: -1px; + } + +.fc-header .fc-corner-right { + margin-right: 1px; /* back to normal */ + } + +.fc-header .ui-corner-right { + margin-right: 0; /* back to normal */ + } + +/* button layering (for border precedence) */ + +.fc-header .fc-state-hover, +.fc-header .ui-state-hover { + z-index: 2; + } + +.fc-header .fc-state-down { + z-index: 3; + } + +.fc-header .fc-state-active, +.fc-header .ui-state-active { + z-index: 4; + } + + + +/* Content +------------------------------------------------------------------------*/ + +.fc-content { + clear: both; + } + +.fc-view { + width: 100%; /* needed for view switching (when view is absolute) */ + overflow: hidden; + } + + + +/* Cell Styles +------------------------------------------------------------------------*/ + +.fc-widget-header, /* <th>, usually */ +.fc-widget-content { /* <td>, usually */ + border: 1px solid #ccc; + } + +.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */ + background: #ffc; + } + +.fc-cell-overlay { /* semi-transparent rectangle while dragging */ + background: #9cf; + opacity: .2; + filter: alpha(opacity=20); /* for IE */ + } + + + +/* Buttons +------------------------------------------------------------------------*/ + +.fc-button { + position: relative; + display: inline-block; + cursor: pointer; + } + +.fc-state-default { /* non-theme */ + border-style: solid; + border-width: 1px 0; + } + +.fc-button-inner { + position: relative; + float: left; + overflow: hidden; + } + +.fc-state-default .fc-button-inner { /* non-theme */ + border-style: solid; + border-width: 0 1px; + } + +.fc-button-content { + position: relative; + float: left; + height: 1.9em; + line-height: 1.9em; + padding: 0 .6em; + white-space: nowrap; + } + +/* icon (for jquery ui) */ + +.fc-button-content .fc-icon-wrap { + position: relative; + float: left; + top: 50%; + } + +.fc-button-content .ui-icon { + position: relative; + float: left; + margin-top: -50%; + *margin-top: 0; + *top: -50%; + } + +/* gloss effect */ + +.fc-state-default .fc-button-effect { + position: absolute; + top: 50%; + left: 0; + } + +.fc-state-default .fc-button-effect span { + position: absolute; + top: -100px; + left: 0; + width: 500px; + height: 100px; + border-width: 100px 0 0 1px; + border-style: solid; + border-color: #fff; + background: #444; + opacity: .09; + filter: alpha(opacity=9); + } + +/* button states (determines colors) */ + +.fc-state-default, +.fc-state-default .fc-button-inner { + border-style: solid; + border-color: #ccc #bbb #aaa; + background: #F3F3F3; + color: #000; + } + +.fc-state-hover, +.fc-state-hover .fc-button-inner { + border-color: #999; + } + +.fc-state-down, +.fc-state-down .fc-button-inner { + border-color: #555; + background: #777; + } + +.fc-state-active, +.fc-state-active .fc-button-inner { + border-color: #555; + background: #777; + color: #fff; + } + +.fc-state-disabled, +.fc-state-disabled .fc-button-inner { + color: #999; + border-color: #ddd; + } + +.fc-state-disabled { + cursor: default; + } + +.fc-state-disabled .fc-button-effect { + display: none; + } + + + +/* Global Event Styles +------------------------------------------------------------------------*/ + +.fc-event { + border-style: solid; + border-width: 0; + font-size: .85em; + cursor: default; + } + +a.fc-event, +.fc-event-draggable { + cursor: pointer; + } + +a.fc-event { + text-decoration: none; + } + +.fc-rtl .fc-event { + text-align: right; + } + +.fc-event-skin { + border-color: #36c; /* default BORDER color */ + background-color: #36c; /* default BACKGROUND color */ + color: #fff; /* default TEXT color */ + } + +.fc-event-inner { + position: relative; + width: 100%; + height: 100%; + border-style: solid; + border-width: 0; + overflow: hidden; + } + +.fc-event-time, +.fc-event-title { + padding: 0 1px; + } + +.fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/ + display: block; + position: absolute; + z-index: 99999; + overflow: hidden; /* hacky spaces (IE6/7) */ + font-size: 300%; /* */ + line-height: 50%; /* */ + } + + + +/* Horizontal Events +------------------------------------------------------------------------*/ + +.fc-event-hori { + border-width: 1px 0; + margin-bottom: 1px; + } + +/* resizable */ + +.fc-event-hori .ui-resizable-e { + top: 0 !important; /* importants override pre jquery ui 1.7 styles */ + right: -3px !important; + width: 7px !important; + height: 100% !important; + cursor: e-resize; + } + +.fc-event-hori .ui-resizable-w { + top: 0 !important; + left: -3px !important; + width: 7px !important; + height: 100% !important; + cursor: w-resize; + } + +.fc-event-hori .ui-resizable-handle { + _padding-bottom: 14px; /* IE6 had 0 height */ + } + + + +/* Fake Rounded Corners (for buttons and events) +------------------------------------------------------------*/ + +.fc-corner-left { + margin-left: 1px; + } + +.fc-corner-left .fc-button-inner, +.fc-corner-left .fc-event-inner { + margin-left: -1px; + } + +.fc-corner-right { + margin-right: 1px; + } + +.fc-corner-right .fc-button-inner, +.fc-corner-right .fc-event-inner { + margin-right: -1px; + } + +.fc-corner-top { + margin-top: 1px; + } + +.fc-corner-top .fc-event-inner { + margin-top: -1px; + } + +.fc-corner-bottom { + margin-bottom: 1px; + } + +.fc-corner-bottom .fc-event-inner { + margin-bottom: -1px; + } + + + +/* Fake Rounded Corners SPECIFICALLY FOR EVENTS +-----------------------------------------------------------------*/ + +.fc-corner-left .fc-event-inner { + border-left-width: 1px; + } + +.fc-corner-right .fc-event-inner { + border-right-width: 1px; + } + +.fc-corner-top .fc-event-inner { + border-top-width: 1px; + } + +.fc-corner-bottom .fc-event-inner { + border-bottom-width: 1px; + } + + + +/* Reusable Separate-border Table +------------------------------------------------------------*/ + +table.fc-border-separate { + border-collapse: separate; + } + +.fc-border-separate th, +.fc-border-separate td { + border-width: 1px 0 0 1px; + } + +.fc-border-separate th.fc-last, +.fc-border-separate td.fc-last { + border-right-width: 1px; + } + +.fc-border-separate tr.fc-last th, +.fc-border-separate tr.fc-last td { + border-bottom-width: 1px; + } + +.fc-border-separate tbody tr.fc-first td, +.fc-border-separate tbody tr.fc-first th { + border-top-width: 0; + } + + + +/* Month View, Basic Week View, Basic Day View +------------------------------------------------------------------------*/ + +.fc-grid th { + text-align: center; + } + +.fc-grid .fc-day-number { + float: right; + padding: 0 2px; + } + +.fc-grid .fc-other-month .fc-day-number { + opacity: 0.3; + filter: alpha(opacity=30); /* for IE */ + /* opacity with small font can sometimes look too faded + might want to set the 'color' property instead + making day-numbers bold also fixes the problem */ + } + +.fc-grid .fc-day-content { + clear: both; + padding: 2px 2px 1px; /* distance between events and day edges */ + } + +/* event styles */ + +.fc-grid .fc-event-time { + font-weight: bold; + } + +/* right-to-left */ + +.fc-rtl .fc-grid .fc-day-number { + float: left; + } + +.fc-rtl .fc-grid .fc-event-time { + float: right; + } + + + +/* Agenda Week View, Agenda Day View +------------------------------------------------------------------------*/ + +.fc-agenda table { + border-collapse: separate; + } + +.fc-agenda-days th { + text-align: center; + } + +.fc-agenda .fc-agenda-axis { + width: 50px; + padding: 0 4px; + vertical-align: middle; + text-align: right; + white-space: nowrap; + font-weight: normal; + } + +.fc-agenda .fc-day-content { + padding: 2px 2px 1px; + } + +/* make axis border take precedence */ + +.fc-agenda-days .fc-agenda-axis { + border-right-width: 1px; + } + +.fc-agenda-days .fc-col0 { + border-left-width: 0; + } + +/* all-day area */ + +.fc-agenda-allday th { + border-width: 0 1px; + } + +.fc-agenda-allday .fc-day-content { + min-height: 34px; /* TODO: doesnt work well in quirksmode */ + _height: 34px; + } + +/* divider (between all-day and slots) */ + +.fc-agenda-divider-inner { + height: 2px; + overflow: hidden; + } + +.fc-widget-header .fc-agenda-divider-inner { + background: #eee; + } + +/* slot rows */ + +.fc-agenda-slots th { + border-width: 1px 1px 0; + } + +.fc-agenda-slots td { + border-width: 1px 0 0; + background: none; + } + +.fc-agenda-slots td div { + height: 20px; + } + +.fc-agenda-slots tr.fc-slot0 th, +.fc-agenda-slots tr.fc-slot0 td { + border-top-width: 0; + } + +.fc-agenda-slots tr.fc-minor th, +.fc-agenda-slots tr.fc-minor td { + border-top-style: dotted; + } + +.fc-agenda-slots tr.fc-minor th.ui-widget-header { + *border-top-style: solid; /* doesn't work with background in IE6/7 */ + } + + + +/* Vertical Events +------------------------------------------------------------------------*/ + +.fc-event-vert { + border-width: 0 1px; + } + +.fc-event-vert .fc-event-head, +.fc-event-vert .fc-event-content { + position: relative; + z-index: 2; + width: 100%; + overflow: hidden; + } + +.fc-event-vert .fc-event-time { + white-space: nowrap; + font-size: 10px; + } + +.fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */ + position: absolute; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: #fff; + opacity: .3; + filter: alpha(opacity=30); + } + +.fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */ +.fc-select-helper .fc-event-bg { + display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */ + } + +/* resizable */ + +.fc-event-vert .ui-resizable-s { + bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */ + width: 100% !important; + height: 8px !important; + overflow: hidden !important; + line-height: 8px !important; + font-size: 11px !important; + font-family: monospace; + text-align: center; + cursor: s-resize; + } + +.fc-agenda .ui-resizable-resizing { /* TODO: better selector */ + _overflow: hidden; + } + + Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.print.css =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.print.css (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/fullcalendar.print.css 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,61 @@ +/* + * FullCalendar v1.5.3 Print Stylesheet + * + * Include this stylesheet on your page to get a more printer-friendly calendar. + * When including this stylesheet, use the media='print' attribute of the <link> tag. + * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css. + * + * Copyright (c) 2011 Adam Shaw + * Dual licensed under the MIT and GPL licenses, located in + * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. + * + * Date: Mon Feb 6 22:40:40 2012 -0800 + * + */ + + + /* Events +-----------------------------------------------------*/ + +.fc-event-skin { + background: none !important; + color: #000 !important; + } + +/* horizontal events */ + +.fc-event-hori { + border-width: 0 0 1px 0 !important; + border-bottom-style: dotted !important; + border-bottom-color: #000 !important; + padding: 1px 0 0 0 !important; + } + +.fc-event-hori .fc-event-inner { + border-width: 0 !important; + padding: 0 1px !important; + } + +/* vertical events */ + +.fc-event-vert { + border-width: 0 0 0 1px !important; + border-left-style: dotted !important; + border-left-color: #000 !important; + padding: 0 1px 0 0 !important; + } + +.fc-event-vert .fc-event-inner { + border-width: 0 !important; + padding: 1px 0 !important; + } + +.fc-event-bg { + display: none !important; + } + +.fc-event .ui-resizable-handle { + display: none !important; + } + + Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/index.html =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/index.html (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/index.html 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/style.css =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/style.css (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/css/style.css 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,17 @@ +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package fullcalendar + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +#calendar { + width: 800px; + margin: 0 auto; +} \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/changelog.txt =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/changelog.txt (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/changelog.txt 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,5 @@ + +==================================== + 2012/06/11 19:23:28 Version 1.01 +==================================== + - Original release fullcalendar (TXMod Xoops (Timgno)) Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/credits.txt =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/credits.txt (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/credits.txt 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/index.html =================================================================== --- XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/index.html (rev 0) +++ XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/index.html 2012-06-16 13:04:14 UTC (rev 9656) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/fullcalendar/trunk/modules/fullcalendar/docs/install.txt ================================... [truncated message content] |
From: <txm...@us...> - 2012-06-16 13:00:41
|
Revision: 9655 http://xoops.svn.sourceforge.net/xoops/?rev=9655&view=rev Author: txmodxoops Date: 2012-06-16 13:00:35 +0000 (Sat, 16 Jun 2012) Log Message: ----------- deleted for reformat folder Removed Paths: ------------- XoopsModules/fullcalendar/trunk/fullcalendar/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-06-16 13:00:05
|
Revision: 9654 http://xoops.svn.sourceforge.net/xoops/?rev=9654&view=rev Author: txmodxoops Date: 2012-06-16 12:59:59 +0000 (Sat, 16 Jun 2012) Log Message: ----------- deleted for reformat folder Removed Paths: ------------- XoopsModules/fullcalendar/releases/1.01/fullcalendar/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-06-16 09:32:34
|
Revision: 9653 http://xoops.svn.sourceforge.net/xoops/?rev=9653&view=rev Author: txmodxoops Date: 2012-06-16 09:32:27 +0000 (Sat, 16 Jun 2012) Log Message: ----------- Updated Modified Paths: -------------- XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/delete_events.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/events.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/index.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/class/fullcalendar_events.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/include/functions.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/index.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/admin.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/modinfo.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/italian/admin.php XoopsModules/fullcalendar/releases/1.01/fullcalendar/sql/mysql.sql XoopsModules/fullcalendar/releases/1.01/fullcalendar/xoops_version.php Added Paths: ----------- XoopsModules/fullcalendar/releases/1.01/fullcalendar/style.css Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/delete_events.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/delete_events.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/delete_events.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -64,36 +64,57 @@ break; case "confirmbeforetoprune": - $events = $eventsHandler->get($_GET['event_id']); + $events = $eventsHandler->get($_GET['event_id']); + $eventlist = ''; + if(isset($_POST['pruned_events'])) { + $eventlist = implode(',',$_POST['pruned_events']); + } + $expired = 0; if(isset($_POST['onlyexpired'])) { $expired = intval($_POST['onlyexpired']); - } + } $criteria = new CriteriaCompo(); $criteria->add(new Criteria("event_id", $_GET['event_id'])); $criteria->add(new Criteria("event_end", $_GET['event_end'])); $count = $eventsHandler->getCount($criteria); $date = $_POST['prune_date']; - $timestamp = mktime(0,0,0,intval(substr($date,5,2)), intval(substr($date,8,2)), intval(substr($date,0,4))); + $timestamp = mktime( 0, 0, 0, intval(substr($date, 5, 2)), intval(substr($date, 8, 2)), intval(substr($date, 0, 4))); if($count) { $displaydate = formatTimestamp($timestamp); $msg = sprintf(_AM_FULLCALENDAR_PRUNE_CONFIRM, $displaydate, $count); - xoops_confirm(array( 'op' => 'delete_allevents', "event_id" => $_REQUEST["event_id"], 'prune_date' => $timestamp, 'ok' => 1), 'delete_events.php', $msg); - } else { - printf(_AM_FULLCALENDAR_NOTHING_PRUNE); + xoops_confirm(array( 'op' => 'delete_allevents', "event_id" => $_REQUEST["event_id"], 'expired' => $expired, 'pruned_events' => $eventlist, 'prune_date' => $timestamp, 'ok' => 1), 'delete_events.php', $msg); } - unset($story); + unset($events); break; - case "delete_allevents": + case "delete_allevents": + $events = $eventsHandler->get($_GET['event_id']); + $timestamp = intval($_POST['prune_date']); + $expired = intval($_POST['expired']); + $criteria = new CriteriaCompo(new Criteria("event_id", $_GET['event_id'])); + $eventlist = $eventsHandler->getAll($criteria); + if(isset($_POST['pruned_events'])) { + $eventlist=$_POST['pruned_events']; + } if( intval($_POST['ok']) == 1 ) { - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria("event_id", 0, '>')); + $criteria = new CriteriaCompo(new Criteria("event_id", 0, '>')); $criteria->add(new Criteria("event_end", $_GET['event_end'])); $count = $eventsHandler->getCount($criteria); $msg = sprintf(_AM_FULLCALENDAR_PRUNE_DELETED,$count); - - redirect_header( 'delete_events.php', 3, $msg); - } + $events->DeleteBeforeDate($timestamp, $expired, $eventlist); + + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($eventsHandler->delete($events)) { + redirect_header( 'delete_events.php', 3, $msg); + } else { + echo $obj->getHtmlErrors(); + } + } + unset($events); + } break; } include "admin_footer.php"; Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/events.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/events.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/events.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -74,6 +74,7 @@ <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th> <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th> @@ -88,8 +89,11 @@ echo "<td class='center'>".$events_arr[$i]->getVar("event_title")."</td>"; echo "<td class='center'>".$events_arr[$i]->getVar("event_description")."</td>"; echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_start"))."</td>"; - echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_end"))."</td>"; - echo "<td class='center'>".$events_arr[$i]->getVar("event_weight")."</td>"; + echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_end"))."</td>"; + $fc_events_allday = $events_arr[$i]->getVar('event_allday'); + $fc_event_allday = ($fc_events_allday == 1) ? _YES : _NO; + echo "<td class='center'>".$fc_event_allday."</td>"; + echo "<td class='center'>".$events_arr[$i]->getVar("event_weight")."</td>"; if ( $events_arr[$i]->getVar("event_display") == 1 ) { echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=0'><img src='".$pathIcon16."/on.png' border='0' alt='"._AM_FULLCALENDAR_ONLINE."' title='"._AM_FULLCALENDAR_ONLINE."'></a></td>"; @@ -113,6 +117,7 @@ <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th> + <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th> <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th> <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th> @@ -142,9 +147,11 @@ $obj =& $eventsHandler->create(); } //Form event_display + $verif_event_allday = ($_REQUEST["event_allday"] == 1) ? "1" : "0"; + //Form event_display $verif_event_display = ($_REQUEST["event_display"] == 1) ? "1" : "0"; //Form events - $obj->setVars(array("event_title" => $_POST["event_title"], "event_description" => $_POST["event_description"], "event_start" => fullcalendar_convertDateTime($_POST["event_start"]), "event_end" => fullcalendar_convertDateTime($_POST["event_end"]), "event_weight" => $_POST["event_weight"], "event_display" => $verif_event_display)); + $obj->setVars(array("event_title" => $_POST["event_title"], "event_description" => $_POST["event_description"], "event_start" => fullcalendar_convertDate($_POST["event_start"]), "event_end" => fullcalendar_convertDate($_POST["event_end"]), "event_url" => $_POST["event_url"], "event_allday" => $_POST["event_allday"], "event_weight" => $_POST["event_weight"], "event_display" => $verif_event_display)); if ($eventsHandler->insert($obj)) { redirect_header("events.php?op=list", 2, _AM_FULLCALENDAR_FORMOK); Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/index.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/index.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/admin/index.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -31,11 +31,15 @@ xoops_cp_header(); //count "total events" $count_events = $eventsHandler->getCount(); - $r = '#FF0000'; // Red - $g = '#00AA00'; // Green + //count "total expired events" + $criteria = new CriteriaCompo(new Criteria('event_end', date( _DATESTRING ), '<')); //time() + $count_expired_events = $eventsHandler->getCount($criteria); + $r = '#FF0000'; /* Red */ $g = '#00AA00'; // Green + $expired = ($count_events == 0) && ($count_expired_events == 0); // InfoBox events $adminMenu->addInfoBox(_AM_FULLCALENDAR_EVENTS); - $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EVENTS, $count_events, ($count_events == 0) ? $r : $g); + $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EVENTS, $count_events, ($count_events != 0) ? $g : $r); + $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EXPIRED_EVENTS, $count_events, $expired ? $g : $r ); // Render Index echo $adminMenu->addNavigation("index.php"); echo $adminMenu->renderIndex(); Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/class/fullcalendar_events.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/class/fullcalendar_events.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/class/fullcalendar_events.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -42,6 +42,8 @@ $this->initVar("event_description", XOBJ_DTYPE_TXTAREA, 'Event Description', false); $this->initVar("event_start", XOBJ_DTYPE_LTIME, null, false); $this->initVar("event_end", XOBJ_DTYPE_LTIME, null, false); + $this->initVar("event_url", XOBJ_DTYPE_TXTBOX, 'http://www.txmodxoops.org', false, 255); + $this->initVar("event_allday", XOBJ_DTYPE_INT, '0', false, 1); $this->initVar("event_weight", XOBJ_DTYPE_INT, '0', false, 11); $this->initVar("event_display", XOBJ_DTYPE_INT, '0', false, 1); } @@ -70,34 +72,68 @@ $editor_configs=array(); $editor_configs["name"] ="event_description"; $editor_configs["value"] = $this->getVar("event_description", "e"); - $editor_configs["rows"] = 10; - $editor_configs["cols"] = 80; - $editor_configs["width"] = "100%"; - $editor_configs["height"] = "400px"; + $editor_configs["rows"] = 5; + $editor_configs["cols"] = 50; + $editor_configs["width"] = "50%"; + $editor_configs["height"] = "200px"; $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["fullcalendar_editor"]; $form->addElement( new XoopsFormEditor(_AM_FULLCALENDAR_EVENT_DESCRIPTION, "event_description", $editor_configs), false ); // event_start $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_START, "event_start", 15, $this->getVar("event_start")), true); // event_end $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_END, "event_end", 15, $this->getVar("event_end")), true); + // event_url + $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_URL, "event_url", 50, 255, $this->getVar("event_url")), false); // event_weight $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_WEIGHT, "event_weight", 5, 15, $this->getVar("event_weight")), true); - // event_display - $event_display = $this->isNew() ? 0 : $this->getVar("event_display"); - $check_event_display = new XoopsFormCheckBox(_AM_FULLCALENDAR_EVENT_DISPLAY, "event_display", $event_display); - $check_event_display->addOption(1, " "); - $form->addElement($check_event_display); - // event_event + // options_tray + $options_tray = new XoopsFormElementTray(_OPTIONS, '<br />'); + // event_allday + $event_allday = $this->isNew() ? 0 : $this->getVar("event_allday"); + $check_event_allday = new XoopsFormCheckBox(" ", "event_allday", $event_allday); + $check_event_allday->addOption(1, _AM_FULLCALENDAR_EVENT_ALLDAY); + $options_tray->addElement($check_event_allday); + // event_display + $event_display = $this->isNew() ? 0 : $this->getVar("event_display"); + $check_event_display = new XoopsFormCheckBox(" ", "event_display", $event_display); + $check_event_display->addOption(1, _AM_FULLCALENDAR_EVENT_DISPLAY); + $options_tray->addElement($check_event_display); + $form->addElement($options_tray); + + // save_event $form->addElement(new XoopsFormHidden("op", "save_event")); $form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); return $form; } + + /** + * Delete events that were published before a given date + */ + function DeleteBeforeDate($timestamp, $expired, $eventslist='') + { + global $xoopsModule; + $mid= $xoopsModule->getVar('mid'); + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $prefix = $db->prefix('fullcalendar_events'); + $sql = 'SELECT event_id FROM '.$prefix.' WHERE event_start <=' . $timestamp; + if($expired) { + $sql .=' (AND event_end > 0 AND event_end <= '.time().')'; + } + if(strlen(trim($eventslist))>0) { + $sql .=' AND event_id IN ('.$eventslist.')'; + } + $result = $db->query($sql); + while ($myrow = $db->fetchArray($result)) { + $db->queryF('DELETE FROM '.$prefix.' WHERE event_id='.$myrow['event_id']); // Delete the event + } + return true; + } } class fullcalendarfullcalendar_eventsHandler extends XoopsPersistableObjectHandler { function __construct(&$db) { parent::__construct($db, "fullcalendar_events", "fullcalendar_events", "event_id", "event_title"); - } + } } ?> \ No newline at end of file Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/include/functions.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/include/functions.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/include/functions.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -58,7 +58,13 @@ } function fullcalendar_Events($title, $allDay = false, $editable = false ) { - // With JSON for external events + + $events_type = $eventsHandler->get($_GET['event_id']); + $criteria = new Criteria("event_id", $_GET['event_id']); + $criteria->setSort("event_start"); + $criteria->setOrder("ASC"); + $events = $eventsHandler->getAll($criteria); + // With JSON for external events $ret = "$(document).ready(function() { var date = new Date(); var d = date.getDate(); @@ -71,12 +77,30 @@ right: 'month,agendaWeek,agendaDay' }, editable: ".$editable.", - events: [ - { - title: 'Evento che dura tutto il giorno', - start: new Date(".$y.", ".$m.", 1) - }, - { + events: ["; + $ret = ""; + foreach($events as $event) { + if($events[$event]->getVar('event_display') == 1){ + $ret .= " { + id: ".$events[$event]->getVar('event_id').", + title: '".$events[$event]->getVar('event_title')."', + start: new Date(y, m, d+1, 19, 0), + end: new Date(y, m, d+1, 22, 30),"; + if($events[$event]->getVar('event_allday') != 1){ + $ret .= " allDay: false"; + } else { + $ret .= ""; + } + if($events[$event]->getVar('event_url') != ''){ + $ret .= " url: '".$events[$event]->getVar('event_url')."'"; + } else { + $ret .= ""; + } + $ret .= "},"; + } + } + + /* { title: 'Evento che dura piu giorni', start: new Date(y, m, d-5), end: new Date(y, m, d-2) @@ -88,7 +112,7 @@ allDay: false }, { - id: 999, + title: 'Evento ripetuto', start: new Date(y, m, d+4, 16, 0), allDay: false @@ -115,8 +139,8 @@ start: new Date(y, m, 28), end: new Date(y, m, 29), url: 'http://www.txmodxoops.org/' - } - ] + }*/ + $ret .= "] }); });"; @@ -153,7 +177,7 @@ * @param mixed $date * @return */ -function fullcalendar_convertDateTime($date) +function fullcalendar_convertDate($date) { if (strpos(_DATESTRING, "/")) { Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/index.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/index.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/index.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -42,6 +42,8 @@ $GLOBALS['xoTheme']->addScript( "modules/".$GLOBALS['xoopsModule']->getVar('dirname')."/js/jqinit.js", null ); // $GLOBALS['xoopsTpl']->assign('xoops_mpageurl', FULLCALENDAR_URL."/index.php"); +$GLOBALS['xoopsTpl']->assign('fbcomments_width', $GLOBALS['xoopsConfig']['fbcomments_width']); +// $GLOBALS['xoopsTpl']->assign('fullcalendar_url', FULLCALENDAR_URL); $GLOBALS['xoopsTpl']->assign('adv', $GLOBALS['xoopsModuleConfig']['advertise']); // Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/admin.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/admin.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/admin.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -30,14 +30,16 @@ //Index define("_AM_FULLCALENDAR_EVENTS","Events Statistics"); define("_AM_FULLCALENDAR_THEREARE_EVENTS","There are <span class='bold'>%s</span> Events in the Database"); +define("_AM_FULLCALENDAR_THEREARE_EXPIRED_EVENTS","There are <span class='bold'>%s</span> Expired Events"); //Buttons define("_AM_FULLCALENDAR_NEWEVENT","Add New Event"); define("_AM_FULLCALENDAR_EVENTSLIST","List Events"); //General define("_AM_FULLCALENDAR_FORMOK","Registered successfull"); define("_AM_FULLCALENDAR_FORMDELOK","Deleted successfull"); -define("_AM_FULLCALENDAR_FORMSUREDEL", "Are you sure you want to delete: <b><span style='color : Red'>%s</span></b>"); -define("_AM_FULLCALENDAR_FORMSURERENEW", "Are you sure you want renew: <b><span style='color : Red'>%s</span></b>"); +define("_AM_FULLCALENDAR_FORMSUREDEL", "Are you sure you want to delete: <b><span style='color : Red'>%s</span></b>?"); + +define("_AM_FULLCALENDAR_FORMSURERENEW", "Are you sure you want renew: <b><span style='color : Red'>%s</span></b>?"); define("_AM_FULLCALENDAR_FORMUPLOAD","Upload"); define("_AM_FULLCALENDAR_FORMIMAGE_PATH","File presents in %s"); define("_AM_FULLCALENDAR_FORMACTION","Action"); @@ -45,15 +47,27 @@ define("_AM_FULLCALENDAR_ONLINE","Online"); define("_AM_FULLCALENDAR_OFFLINE","Offline"); -define("_AM_FULLCALENDAR_EVENT_ADD","Add event"); -define("_AM_FULLCALENDAR_EVENT_EDIT","Edit event"); -define("_AM_FULLCALENDAR_EVENT_DELETE","Delete event"); +define("_AM_FULLCALENDAR_EVENT_ADD","Add Event"); +define("_AM_FULLCALENDAR_EVENT_EDIT","Edit Event"); +define("_AM_FULLCALENDAR_EVENT_DELETE","Delete Event"); +define("_AM_FULLCALENDAR_PRUNEEVENTS","Delete Events"); +define("_AM_FULLCALENDAR_PRUNE_BEFORE","Delete Events Before"); +define("_AM_FULLCALENDAR_PRUNE_CAPTIONEXPIREDONLY","Expired Only"); +define("_AM_FULLCALENDAR_PRUNE_EXPIREDONLY","Remove only Events who have expired"); +define("_AM_FULLCALENDAR_PRUNE_EVENTS","Limit to the following Events"); +define("_AM_FULLCALENDAR_EXPORT_PRUNE_DSC","If you don't check anything then all the events will be used +else only the selected events will be used"); +define("_AM_FULLCALENDAR_PRUNE_CONFIRM", "Are you sure you want to delete all events before: <b><span style='color : Red'>%s</span></b>?"); +define("_AM_FULLCALENDAR_PRUNE_DELETED", "All events have been successfully deleted"); + define("_AM_FULLCALENDAR_EVENT_ID","Id"); define("_AM_FULLCALENDAR_EVENT_TITLE","Title"); define("_AM_FULLCALENDAR_EVENT_DESCRIPTION","Description"); define("_AM_FULLCALENDAR_EVENT_START","Start"); define("_AM_FULLCALENDAR_EVENT_END","End"); +define("_AM_FULLCALENDAR_EVENT_URL","Url"); +define("_AM_FULLCALENDAR_EVENT_ALLDAY","AllDay"); define("_AM_FULLCALENDAR_EVENT_WEIGHT","Weight"); define("_AM_FULLCALENDAR_EVENT_DISPLAY","Display"); //Blocks.php Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/modinfo.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/modinfo.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/english/modinfo.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -32,8 +32,9 @@ define("_MI_FULLCALENDAR_DESC","Fullcalendar is a module for write your events, based on jquery and jquery ui"); //Menu define("_MI_FULLCALENDAR_ADMENU1","Home"); -define("_MI_FULLCALENDAR_ADMENU2","Events"); -define("_MI_FULLCALENDAR_ADMENU3","About"); +define("_MI_FULLCALENDAR_ADMENU2","Manage Events"); +define("_MI_FULLCALENDAR_ADMENU3","Delete Events"); +define("_MI_FULLCALENDAR_ADMENU4","About"); //Blocks define("_MI_FULLCALENDAR_EVENTS_BLOCK_RECENT","events recents"); define("_MI_FULLCALENDAR_EVENTS_BLOCK_DAY","events d'aujourdh'ui"); Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/italian/admin.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/italian/admin.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/language/italian/admin.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -30,15 +30,16 @@ //Index define("_AM_FULLCALENDAR_EVENTS","Events Statistics"); define("_AM_FULLCALENDAR_THEREARE_EVENTS","There are <span class='bold'>%s</span> Events in the Database"); +define("_AM_FULLCALENDAR_THEREARE_EXPIRED_EVENTS","There are <span class='bold'>%s</span> Expired Events"); //Buttons define("_AM_FULLCALENDAR_NEWEVENT","Add New Event"); define("_AM_FULLCALENDAR_EVENTSLIST","List Events"); //General define("_AM_FULLCALENDAR_FORMOK","Registered successfull"); define("_AM_FULLCALENDAR_FORMDELOK","Deleted successfull"); -define("_AM_FULLCALENDAR_FORMSUREDEL", "Are you sure you want to delete: <b><span style='color : Red'>%s</span></b>"); +define("_AM_FULLCALENDAR_FORMSUREDEL", "Are you sure you want to delete: <b><span style='color : Red'>%s</span></b>?"); -define("_AM_FULLCALENDAR_FORMSURERENEW", "Are you sure you want renew: <b><span style='color : Red'>%s</span></b>"); +define("_AM_FULLCALENDAR_FORMSURERENEW", "Are you sure you want renew: <b><span style='color : Red'>%s</span></b>?"); define("_AM_FULLCALENDAR_FORMUPLOAD","Upload"); define("_AM_FULLCALENDAR_FORMIMAGE_PATH","File presents in %s"); define("_AM_FULLCALENDAR_FORMACTION","Action"); @@ -57,7 +58,7 @@ define("_AM_FULLCALENDAR_PRUNE_EVENTS","Limit to the following Events"); define("_AM_FULLCALENDAR_EXPORT_PRUNE_DSC","If you don't check anything then all the events will be used else only the selected events will be used"); -define("_AM_FULLCALENDAR_PRUNE_CONFIRM", "Are you sure you want to delete all events: <b><span style='color : Red'>%s</span></b>"); +define("_AM_FULLCALENDAR_PRUNE_CONFIRM", "Are you sure you want to delete all events before: <b><span style='color : Red'>%s</span></b>?"); define("_AM_FULLCALENDAR_PRUNE_DELETED", "All events have been successfully deleted"); define("_AM_FULLCALENDAR_EVENT_ID","Id"); @@ -65,6 +66,8 @@ define("_AM_FULLCALENDAR_EVENT_DESCRIPTION","Description"); define("_AM_FULLCALENDAR_EVENT_START","Start"); define("_AM_FULLCALENDAR_EVENT_END","End"); +define("_AM_FULLCALENDAR_EVENT_URL","Url"); +define("_AM_FULLCALENDAR_EVENT_ALLDAY","AllDay"); define("_AM_FULLCALENDAR_EVENT_WEIGHT","Weight"); define("_AM_FULLCALENDAR_EVENT_DISPLAY","Display"); //Blocks.php Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/sql/mysql.sql =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/sql/mysql.sql 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/sql/mysql.sql 2012-06-16 09:32:27 UTC (rev 9653) @@ -7,8 +7,10 @@ `event_id` int (8) unsigned NOT NULL auto_increment, `event_title` varchar (255) NOT NULL default '', `event_description` tinytext NOT NULL, -`event_start` int(20) NOT NULL default '0', -`event_end` int(20) NOT NULL default '0', +`event_start` int(10) NOT NULL default '0', +`event_end` int(10) NOT NULL default '0', +`event_url` varchar (255) NOT NULL default '', +`event_allday` tinyint (1) unsigned NOT NULL default '0', `event_weight` int (11) unsigned NOT NULL default '0', `event_display` tinyint (1) unsigned NOT NULL default '0', PRIMARY KEY (`event_id`) Added: XoopsModules/fullcalendar/releases/1.01/fullcalendar/style.css =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/style.css (rev 0) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/style.css 2012-06-16 09:32:27 UTC (rev 9653) @@ -0,0 +1,61 @@ +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @since 2.5.0 + * @package barsocials & fbcomments + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $ + * **************************************************************************** + */ +div#bar-social { + margin: 0; + padding: 0; + width: 100%; + height: auto; + border: 1px solid #eee; + clear: both; +} + +ul.style-social { + width: auto; + margin: 2px 0 2px 0; + z-index: 10; +} + +ul.style-social > li { + display: inline; + background-image: url('../img/postbullets.png'); + background-repeat: no-repeat; + vertical-align: top; + border-left: 1px solid #ddd; + padding-left: 13px; + height: 10px; +} + +li.fb-like, li.fb-bsend, li.gl-button, li.send-email, li.pin-it, li.linke-in, li.tw-tweets { + margin: 2px; + padding: 2px 0 2px 0; + width: auto; +} + +element.style { + height:20px; + width:90px; +} + +div#fb-comments { + margin: 0; + padding: 0; + width: 100%; + border: 1px solid #eee; + clear: both; +} + +div.fb-comments { + margin: 0; + padding: 0; +} \ No newline at end of file Modified: XoopsModules/fullcalendar/releases/1.01/fullcalendar/xoops_version.php =================================================================== --- XoopsModules/fullcalendar/releases/1.01/fullcalendar/xoops_version.php 2012-06-16 09:31:20 UTC (rev 9652) +++ XoopsModules/fullcalendar/releases/1.01/fullcalendar/xoops_version.php 2012-06-16 09:32:27 UTC (rev 9653) @@ -107,7 +107,7 @@ $modversion["config"][$i]["description"] = "_MI_FULLCALENDAR_EDITOR_DESC"; $modversion["config"][$i]["formtype"] = "select"; $modversion["config"][$i]["valuetype"] = "text"; -$modversion["config"][$i]["default"] = "dhtmltextarea"; +$modversion["config"][$i]["default"] = "textarea"; $modversion["config"][$i]["options"] = XoopsLists::getEditorList(); $modversion["config"][$i]["category"] = "global"; $i++; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |