|
...
|
...
|
@@ -7,8 +7,6 @@ include(_BASEDIR."languages/$lang.php");
|
|
7
|
7
|
//header("Content-Type: text/html; charset=".CHARSET,true);
|
|
8
|
8
|
include("../includes/queries.php");
|
|
9
|
9
|
// Checks that the given $num is actually a number. Used to help prevent XSS attacks.
|
|
10
|
|
-// Peculiar... Leaving both copies of the same exact function in this file prevents
|
|
11
|
|
-// breakage of the character list when using the category list for tinyMCE 4.x and newer...
|
|
12
|
10
|
function isNumber($num) {
|
|
13
|
11
|
if(empty($num)) return false;
|
|
14
|
12
|
return (preg_match("/^[0-9]+$/", $num) || $num == "-1" ? true : false);
|