mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
get rid of: quote_smart, ${print:
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@451 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
b62639db6b
commit
ece83a4cfc
@ -71,8 +71,6 @@ function expand_var($matches) {
|
||||
return form_value($var);
|
||||
} else if($prefix == 'page:') {
|
||||
return $page[$var];
|
||||
} else if($prefix == 'print:') {
|
||||
return htmlspecialchars($page[$var]);
|
||||
} else if($prefix == 'if:' || $prefix == 'else:' || $prefix == 'endif:' || $prefix == 'ifnot:') {
|
||||
return "<!-- wrong $prefix:$var -->";
|
||||
}
|
||||
|
@ -59,15 +59,15 @@ if( isset($_POST['address']) ) {
|
||||
$query = sprintf(
|
||||
"insert into chatban (dtmcreated,dtmtill,address,comment) values (CURRENT_TIMESTAMP,%s,'%s','%s')",
|
||||
"FROM_UNIXTIME($utime)",
|
||||
quote_smart($address,$link),
|
||||
quote_smart($comment,$link));
|
||||
mysql_real_escape_string($address,$link),
|
||||
mysql_real_escape_string($comment,$link));
|
||||
perform_query($query,$link);
|
||||
} else {
|
||||
$query = sprintf(
|
||||
"update chatban set dtmtill = %s,address = '%s',comment = '%s' where banid = $banId",
|
||||
"FROM_UNIXTIME($utime)",
|
||||
quote_smart($address,$link),
|
||||
quote_smart($comment,$link));
|
||||
mysql_real_escape_string($address,$link),
|
||||
mysql_real_escape_string($comment,$link));
|
||||
perform_query($query,$link);
|
||||
}
|
||||
mysql_close($link);
|
||||
|
Loading…
Reference in New Issue
Block a user