mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-08-01 20:52:04 -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>");
|
$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']) {
|
||||||
|
Reference in New Issue
Block a user