$ipAddress = getenv("REMOTE_ADDR");
$ipAddress = getenv("REMOTE_ADDR");
$clause .= " {$this->operator} $value";
$crit =& new Criteria('column',null,'','','%s is not null');
function render() {
if ( strtoupper($this->operator) == 'IN' || strtoupper($this->operator) == "NOT IN") {
$value = $this->value;
} else {
if ( '' === ($value = trim($this->value)) ) {
return '';
}
if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) {
$value = "'".addslashes(stripslashes($value))."'";
//$value = "'".$value."'";
}
}
$clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column;
if ( !empty($this->function) ) {
$clause = sprintf($this->function, $clause);
}
$clause .= " {$this->operator} $value";
return $clause;
}
function render() {
if ( strtoupper($this->operator) == 'IN' || strtoupper($this->operator) == "NOT IN") {
$value = $this->value;
} else {
if ( '' === ($value = trim($this->value)) ) {
$value = null;
}
if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') && (!is_numeric($value)) ) {
$value = "'".addslashes(stripslashes($value))."'";
//$value = "'".$value."'";
}
}
$clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column;
if ( !empty($this->function) ) {
$clause = sprintf($this->function, $clause);
}
if (isset($value)) {
$clause .= " {$this->operator} $value";
}
return $clause;
}
select * from xoops_users where uid is not null
$crit =& new Criteria('uid','0','','%s is not null');
select * from xoops_users where uid is not null 0
$crit =& new Criteria('uid','','','%s is not null');
select * from xoops_users where
function render() {
if ( is_numeric($this->value) || strtoupper($this->operator) == 'IN') {
$value = $this->value;
} else {
if ( '' === ($value = trim($this->value)) ) {
$value = null;
}
if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) {
$value = "'$value'";
}
}
$clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column;
if ( !empty($this->function) ) {
$clause = sprintf($this->function, $clause);
} else {
$clause .= " {$this->operator} $value";
}
return $clause;
}
as i did at my site www.smkbandaraya.com
Is like a spyware