Renaming quickfilter functions

This commit is contained in:
Xkeeper
2015-08-08 23:04:19 -07:00
parent 65554021b3
commit 7fe50efae7

View File

@@ -29,7 +29,7 @@
$sql->selectdb($dbname) or die("Another stupid MySQL error happened, panic<br><small>". mysql_error() ."</small>"); $sql->selectdb($dbname) or die("Another stupid MySQL error happened, panic<br><small>". mysql_error() ."</small>");
if (file_exists("lib/firewall.php") && t_i($config_firewall)) { if (file_exists("lib/firewall.php") && filter_int($config_firewall)) {
trigger_error("Loading firewall", E_USER_NOTICE); trigger_error("Loading firewall", E_USER_NOTICE);
require 'lib/firewall.php'; require 'lib/firewall.php';
} }
@@ -239,7 +239,7 @@
*/ */
function t_i(&$v) { function filter_int(&$v) {
if (!isset($v)) { if (!isset($v)) {
return null; return null;
} else { } else {
@@ -249,6 +249,16 @@ function t_i(&$v) {
} }
function filter_string(&$v) {
if (!isset($v)) {
return null;
} else {
$v = (string)$v;
return $v;
}
}
function readsmilies(){ function readsmilies(){
global $x_hacks; global $x_hacks;
if ($x_hacks['host']) { if ($x_hacks['host']) {