Changeset 450 for branches/eli_branch/lib
- Timestamp:
- Dec 18, 2013 7:49:24 PM (11 years ago)
- Location:
- branches/eli_branch/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch/lib/DB.inc.php
r445 r450 146 146 147 147 // Connect to database. Always create a new link to the server. 148 if ($this->dbh = mysql_connect($this->getParam('db_server'), $this->getParam('db_user'), $this->getParam('db_pass'), true)) {148 if ($this->dbh = @mysql_connect($this->getParam('db_server'), $this->getParam('db_user'), $this->getParam('db_pass'), true)) { 149 149 // Select database 150 150 mysql_select_db($this->getParam('db_name'), $this->dbh); -
branches/eli_branch/lib/FormValidator.inc.php
r447 r450 399 399 * @return bool true if value passes regex test 400 400 */ 401 public function checkRegex($form_name, $regex, $valid_on_match , $msg='')401 public function checkRegex($form_name, $regex, $valid_on_match=true, $msg='') 402 402 { 403 403 if (parent::checkRegex(getFormData($form_name), $regex, $valid_on_match)) { -
branches/eli_branch/lib/Validator.inc.php
r447 r450 138 138 * @return bool true if value passes regex test 139 139 */ 140 public function checkRegex($val, $regex, $valid_on_match=true )140 public function checkRegex($val, $regex, $valid_on_match=true, $msg='') 141 141 { 142 142 return $valid_on_match ? preg_match($regex, $val) : !preg_match($regex, $val);
Note: See TracChangeset
for help on using the changeset viewer.