[xoops-cvslog 3615] CVS update: xoops2jp/html/modules/user/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 7月 19日 (水) 19:21:04 JST


Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php
diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.9 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.10
--- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.9	Thu Jul 13 19:52:08 2006
+++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php	Wed Jul 19 19:21:04 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: UserAdminEditForm.class.php,v 1.1.2.9 2006/07/13 10:52:08 minahito Exp $
+ * @version $Id: UserAdminEditForm.class.php,v 1.1.2.10 2006/07/19 10:21:04 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -76,9 +76,10 @@
 
 		$this->mFieldProperties['email'] =& new XCube_FieldProperty($this);
 		$this->mFieldProperties['email']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_EMAIL, '60');
-		$this->mFieldProperties['email']->setDependsByArray(array('required', 'maxlength'));
+		$this->mFieldProperties['email']->setDependsByArray(array('required', 'maxlength', 'email'));
 		$this->mFieldProperties['email']->addMessage('maxlength', _AD_USER_ERROR_MAXLENGTH, _AD_USER_LANG_EMAIL, '60');
 		$this->mFieldProperties['email']->addVar('maxlength', 60);
+		$this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _AD_USER_LANG_EMAIL);
 
 		$this->mFieldProperties['url'] =& new XCube_FieldProperty($this);
 		$this->mFieldProperties['url']->setDependsByArray(array('maxlength'));
@@ -190,7 +191,7 @@
 	{
 		$t_url = $this->get('url');
 		if (strlen($t_url) > 0) {
-			if (!preg_match('/^https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$', $t_url)) {
+			if (!preg_match('/^https?(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/', $t_url)) {
 				$this->addErrorMessage(XCube_Utils::formatMessage(_AD_USER_ERROR_INJURY, _AD_USER_LANG_URL));
 			}
 		}
Index: xoops2jp/html/modules/user/admin/forms/GroupMemberEditForm.class.php
diff -u xoops2jp/html/modules/user/admin/forms/GroupMemberEditForm.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/forms/GroupMemberEditForm.class.php:1.1.2.3
--- xoops2jp/html/modules/user/admin/forms/GroupMemberEditForm.class.php:1.1.2.2	Tue Mar 28 22:32:04 2006
+++ xoops2jp/html/modules/user/admin/forms/GroupMemberEditForm.class.php	Wed Jul 19 19:21:04 2006
@@ -22,7 +22,6 @@
 		//
 		// Set field properties
 		//
-	
 		$this->mFieldProperties['uid'] =& new XCube_FieldProperty($this);
 		$this->mFieldProperties['uid']->setDependsByArray(array('intRange'));
 		$this->mFieldProperties['uid']->addMessage('intRange', _AD_USER_ERROR_REQUEST_IS_WRONG);


xoops-cvslog メーリングリストの案内
Back to archive index