mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-07-25 17:21:58 -07:00
Renaming quickfilter functions
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
$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);
|
||||
require 'lib/firewall.php';
|
||||
}
|
||||
@@ -239,7 +239,7 @@
|
||||
*/
|
||||
|
||||
|
||||
function t_i(&$v) {
|
||||
function filter_int(&$v) {
|
||||
if (!isset($v)) {
|
||||
return null;
|
||||
} 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(){
|
||||
global $x_hacks;
|
||||
if ($x_hacks['host']) {
|
||||
|
Reference in New Issue
Block a user