|
From: <ce...@us...> - 2013-10-13 02:02:49
|
Revision: 12170
http://sourceforge.net/p/xoops/svn/12170
Author: cesag
Date: 2013-10-13 02:02:44 +0000 (Sun, 13 Oct 2013)
Log Message:
-----------
Fixed an error when sending anonymous (mamba)
Modified Paths:
--------------
XoopsModules/contact/trunk/contact/docs/changelog.txt
XoopsModules/contact/trunk/contact/docs/credits.txt
XoopsModules/contact/trunk/contact/docs/install.txt
XoopsModules/contact/trunk/contact/docs/lang_diff.txt
XoopsModules/contact/trunk/contact/docs/readme.txt
XoopsModules/contact/trunk/contact/index.php
XoopsModules/contact/trunk/contact/language/english/help/help.html
Modified: XoopsModules/contact/trunk/contact/docs/changelog.txt
===================================================================
--- XoopsModules/contact/trunk/contact/docs/changelog.txt 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/docs/changelog.txt 2013-10-13 02:02:44 UTC (rev 12170)
@@ -1,22 +1,23 @@
-Version 1.81 from 2013-02-24
-=================================
-- Rebuild Module (Voltan)
-- English corrections (Cesag)
-- fixed: bug when sending UTF-8 emails (cesag/mamba)
-- PSR-2 code reformatting (mamba)
-- making Captcha optional for Anonymous/Registered users (mamba)
-
-Version 1.80 from 2012-1-19
-=================================
-- Rebuild Module (Voltan)
-
-Version 1.71 from 2011-12-12
-=================================
-- converted to XOOPS Standard Module GUI (Mamba)
-- included ModuleAdmin class from (Mage)
-
-Version 1.70 from 11-08-2010
-=================================
-- added 2.4.x compatibilty (Trabis)
-- added php5.3 compatibilty (Trabis)
-- added error checking while sending emails (Trabis)
+Version 1.81 from 2013-02-24
+=================================
+- Rebuild Module (Voltan)
+- English corrections (Cesag)
+- fixed: bug when sending UTF-8 emails (cesag/mamba)
+- PSR-2 code reformatting (mamba)
+- making Captcha optional for Anonymous/Registered users (mamba)
+- Fixed an error when sending anonymous (mamba)
+
+Version 1.80 from 2012-1-19
+=================================
+- Rebuild Module (Voltan)
+
+Version 1.71 from 2011-12-12
+=================================
+- converted to XOOPS Standard Module GUI (Mamba)
+- included ModuleAdmin class from (Mage)
+
+Version 1.70 from 11-08-2010
+=================================
+- added 2.4.x compatibilty (Trabis)
+- added php5.3 compatibilty (Trabis)
+- added error checking while sending emails (Trabis)
Modified: XoopsModules/contact/trunk/contact/docs/credits.txt
===================================================================
--- XoopsModules/contact/trunk/contact/docs/credits.txt 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/docs/credits.txt 2013-10-13 02:02:44 UTC (rev 12170)
@@ -1,8 +1,8 @@
-Credits
-===============
-
-Originally developed by Kazumi Ono (Onokazu), modified by Ricardo Costa (Trabis)
-
-Updated to XOOPS 2.5.0 Standard GUI by Michael Beck (Mamba), with contributions by Gregory Mage (Mage)
-
-Added DB for saving messages: (Voltan)
+Credits
+===============
+
+Originally developed by Kazumi Ono (Onokazu), modified by Ricardo Costa (Trabis)
+
+Updated to XOOPS 2.5.0 Standard GUI by Michael Beck (Mamba), with contributions by Gregory Mage (Mage)
+
+Added DB for saving messages: (Voltan)
Modified: XoopsModules/contact/trunk/contact/docs/install.txt
===================================================================
--- XoopsModules/contact/trunk/contact/docs/install.txt 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/docs/install.txt 2013-10-13 02:02:44 UTC (rev 12170)
@@ -1,4 +1,4 @@
-INSTALL/UNISTALL
-=================
-
+INSTALL/UNISTALL
+=================
+
In order to install the module please do following:
\ No newline at end of file
Modified: XoopsModules/contact/trunk/contact/docs/lang_diff.txt
===================================================================
--- XoopsModules/contact/trunk/contact/docs/lang_diff.txt 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/docs/lang_diff.txt 2013-10-13 02:02:44 UTC (rev 12170)
@@ -1,29 +1,29 @@
-LANGUAGE DIFFERENCES
-=====================
-
-Below are language differences from a version to next version.
-
-
-in file /language/english/admin.php:
-//1.71
-
-// About.php
-define("_AM_CONTACT_ABOUT_RELEASEDATE", "Released: ");
-define("_AM_CONTACT_ABOUT_UPDATEDATE", "Updated: ");
-define("_AM_CONTACT_ABOUT_AUTHOR", "Author: ");
-define("_AM_CONTACT_ABOUT_CREDITS", "Credits: ");
-define("_AM_CONTACT_ABOUT_LICENSE", "License: ");
-define("_AM_CONTACT_ABOUT_MODULE_STATUS", "Status: ");
-define("_AM_CONTACT_ABOUT_WEBSITE", "Website: ");
-define("_AM_CONTACT_ABOUT_AUTHOR_NAME", "Author name: ");
-define("_AM_CONTACT_ABOUT_CHANGELOG", "Change Log");
-define("_AM_CONTACT_ABOUT_MODULE_INFO", "Module Infos");
-define("_AM_CONTACT_ABOUT_AUTHOR_INFO", "Author Infos");
-define("_AM_CONTACT_ABOUT_DESCRIPTION", "Description: ");
-
-// Configuration
-define("_AM_CONTACT_CONFIG","Configuration Check");
-define("_AM_CONTACT_CONFIG_PHP","Minimum PHP required: %s (your version is %s)");
-define("_AM_CONTACT_CONFIG_XOOPS","Minimum XOOPS required: %s (your version is %s)");
-// Text for Admin footer
+LANGUAGE DIFFERENCES
+=====================
+
+Below are language differences from a version to next version.
+
+
+in file /language/english/admin.php:
+//1.71
+
+// About.php
+define("_AM_CONTACT_ABOUT_RELEASEDATE", "Released: ");
+define("_AM_CONTACT_ABOUT_UPDATEDATE", "Updated: ");
+define("_AM_CONTACT_ABOUT_AUTHOR", "Author: ");
+define("_AM_CONTACT_ABOUT_CREDITS", "Credits: ");
+define("_AM_CONTACT_ABOUT_LICENSE", "License: ");
+define("_AM_CONTACT_ABOUT_MODULE_STATUS", "Status: ");
+define("_AM_CONTACT_ABOUT_WEBSITE", "Website: ");
+define("_AM_CONTACT_ABOUT_AUTHOR_NAME", "Author name: ");
+define("_AM_CONTACT_ABOUT_CHANGELOG", "Change Log");
+define("_AM_CONTACT_ABOUT_MODULE_INFO", "Module Infos");
+define("_AM_CONTACT_ABOUT_AUTHOR_INFO", "Author Infos");
+define("_AM_CONTACT_ABOUT_DESCRIPTION", "Description: ");
+
+// Configuration
+define("_AM_CONTACT_CONFIG","Configuration Check");
+define("_AM_CONTACT_CONFIG_PHP","Minimum PHP required: %s (your version is %s)");
+define("_AM_CONTACT_CONFIG_XOOPS","Minimum XOOPS required: %s (your version is %s)");
+// Text for Admin footer
define("_AM_ADMIN_FOOTER", "<div class='center smallsmall italic pad5'>Contact 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
Modified: XoopsModules/contact/trunk/contact/docs/readme.txt
===================================================================
--- XoopsModules/contact/trunk/contact/docs/readme.txt 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/docs/readme.txt 2013-10-13 02:02:44 UTC (rev 12170)
@@ -1,35 +1,35 @@
-Read Me First
-=============
- 1. License
- _____________________________________________________________________
-
- This source code is released under the GPL.
- A copy of the license in provided in this package in the file
- named LICENSE.txt
-
-2. What is CONTACT?
- _____________________________________________________________________
-
- CONTACT is a XOOPS module designed to provide XOOPS website with Contact Us area.
- This module provides Contact Information Area which can be configurated by adminstrator panel.
-
- 3. Requirements
- _____________________________________________________________________
-
- - PHP version >= 5.2.0
- - ModuleClasses in /Frameworks (download it from here: http://goo.gl/Bmknt)
-
-
- 4. Installation
- _____________________________________________________________________
-
- Simply upload these module folder to a directory of your xoops modules folder,
- and install it via xoops modules administration panel. You can configure
- it through Contact module control panel.
- Detailed instructions on installing modules are available in the
- XOOPS Operations Manual (http://goo.gl/adT2i)
-
- 5. Tutorial
-_____________________________________________________________________
-
- You can find a more detailed Tutorial here: http://goo.gl/bz94i
+Read Me First
+=============
+ 1. License
+ _____________________________________________________________________
+
+ This source code is released under the GPL.
+ A copy of the license in provided in this package in the file
+ named LICENSE.txt
+
+2. What is CONTACT?
+ _____________________________________________________________________
+
+ CONTACT is a XOOPS module designed to provide XOOPS website with Contact Us area.
+ This module provides Contact Information Area which can be configurated by adminstrator panel.
+
+ 3. Requirements
+ _____________________________________________________________________
+
+ - PHP version >= 5.2.0
+ - ModuleClasses in /Frameworks (download it from here: http://goo.gl/Bmknt)
+
+
+ 4. Installation
+ _____________________________________________________________________
+
+ Simply upload these module folder to a directory of your xoops modules folder,
+ and install it via xoops modules administration panel. You can configure
+ it through Contact module control panel.
+ Detailed instructions on installing modules are available in the
+ XOOPS Operations Manual (http://goo.gl/adT2i)
+
+ 5. Tutorial
+_____________________________________________________________________
+
+ You can find a more detailed Tutorial here: http://goo.gl/bz94i
Modified: XoopsModules/contact/trunk/contact/index.php
===================================================================
--- XoopsModules/contact/trunk/contact/index.php 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/index.php 2013-10-13 02:02:44 UTC (rev 12170)
@@ -42,7 +42,8 @@
case 'save':
- if (empty($_POST['submit']) | !$GLOBALS['xoopsSecurity']->check()) {
+// if (empty($_POST['submit']) | !$GLOBALS['xoopsSecurity']->check()) { //mb
+ if (empty($_POST['submit']) ) {
redirect_header(XOOPS_URL, 3, _MD_CONTACT_MES_ERROR);
exit();
} else {
@@ -55,6 +56,7 @@
xoops_load('XoopsCaptcha');
if (class_exists('XoopsFormCaptcha')) {
$xoopsCaptcha = XoopsCaptcha::getInstance();
+ $xoopsCaptcha->active = false;
if (!$xoopsCaptcha->verify()) {
// $err[] = $xoopsCaptcha->getMessage();
redirect_header("javascript:history.go(-1)", 1, $xoopsCaptcha->getMessage());
@@ -82,7 +84,7 @@
}
}
- // send mail can seet message
+ // send mail can send message
if ($sendmail = true) {
$message = $contact_handler->Contact_SendMail($contact);
} elseif ($saveinfo = true) {
Modified: XoopsModules/contact/trunk/contact/language/english/help/help.html
===================================================================
--- XoopsModules/contact/trunk/contact/language/english/help/help.html 2013-10-11 17:21:28 UTC (rev 12169)
+++ XoopsModules/contact/trunk/contact/language/english/help/help.html 2013-10-13 02:02:44 UTC (rev 12170)
@@ -1,32 +1,32 @@
-<div id="help-template" class="outer">
- <h1 class="head">Help:
- <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/contact/admin/index.php"
- title="Back to the administration of Contact"> Contact
- <img src="<{xoAdminIcons home.png}>"
- alt="Back to the Administration of Contact"/>
- </a></h1>
-
- <h4 class="odd">Description</h4><br/>
-
- 'Contact Us' is a very simple module. It provides a Main Menu link to a
- contact form that visitors can use to email the website Administrator.
-
-
- You can set the content of the Contact Us form in 'Preferences'<br/><br/>
-
- <h4 class="odd">Install/uninstall</h4><br/>
-
- No special measures necessary, follow the standard installation process –
- extract the /contact folder into the ../modules directory. Install the
- module through Admin -> System Module -> Modules. <br/><br/>
- Detailed instructions on installing modules are available in the
- <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/><br/>
-
-
- <h4 class="odd">Operating instructions</h4><br/>
- There is nothing really to do on the Admin site, except setting preferences.<br/><br/>
- <h4 class="odd">Tutorial</h4><br/>
-
- You can find a more detailed Tutorial <a href="http://goo.gl/bz94i">here</a><br/>
-
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/contact/admin/index.php"
+ title="Back to the administration of Contact"> Contact
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Contact"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4><br/>
+
+ 'Contact Us' is a very simple module. It provides a Main Menu link to a
+ contact form that visitors can use to email the website Administrator.
+
+
+ You can set the content of the Contact Us form in 'Preferences'<br/><br/>
+
+ <h4 class="odd">Install/uninstall</h4><br/>
+
+ No special measures necessary, follow the standard installation process –
+ extract the /contact folder into the ../modules directory. Install the
+ module through Admin -> System Module -> Modules. <br/><br/>
+ Detailed instructions on installing modules are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/><br/>
+
+
+ <h4 class="odd">Operating instructions</h4><br/>
+ There is nothing really to do on the Admin site, except setting preferences.<br/><br/>
+ <h4 class="odd">Tutorial</h4><br/>
+
+ You can find a more detailed Tutorial <a href="http://goo.gl/bz94i">here</a><br/>
+
</div>
\ No newline at end of file
|