mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 11:22:34 +09:00
Issue 581: Can not login after r9685
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9702 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
15bc72057b
commit
9f24618740
3 changed files with 12 additions and 2 deletions
|
|
@ -7,7 +7,8 @@
|
|||
var $is_operation = false;
|
||||
var $operation = '';
|
||||
|
||||
var $_is_string = false;
|
||||
var $_is_string = false; ///< Checks if value is plain string or name of XE function (ipaddress, plus, etc).
|
||||
var $_is_string_from_function = false; //< Checks if value is string resulted from evaluating a piece of PHP code (see $_SERVER[REMOTE_ADDR])
|
||||
|
||||
function DefaultValue($column_name, $value){
|
||||
$dbParser = &DB::getParser();
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
function isStringFromFunction(){
|
||||
return $this->_is_string_from_function;
|
||||
}
|
||||
|
||||
function isSequence(){
|
||||
return $this->is_sequence;
|
||||
}
|
||||
|
|
@ -58,6 +63,7 @@
|
|||
switch($func_name) {
|
||||
case 'ipaddress' :
|
||||
$val = '$_SERVER[\'REMOTE_ADDR\']';
|
||||
$this->_is_string_from_function = true;
|
||||
break;
|
||||
case 'unixtime' :
|
||||
$val = 'time()';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue