mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 02:09:58 +01:00
Use constants in place of class constants
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
* Please see LICENSE file for your rights under this license
|
||||
*/
|
||||
|
||||
// List Type Constants
|
||||
const LISTTYPE_WHITELIST = 0;
|
||||
const LISTTYPE_BLACKLIST = 1;
|
||||
const LISTTYPE_REGEX_WHITELIST = 2;
|
||||
const LISTTYPE_REGEX_BLACKLIST = 3;
|
||||
|
||||
function getGravityDBFilename()
|
||||
{
|
||||
// Get possible non-standard location of FTL's database
|
||||
@@ -278,13 +284,3 @@ function remove_from_table($db, $table, $domains, $returnnum = false, $type = -1
|
||||
|
||||
return 'Success, removed '.$num.' domain'.$plural;
|
||||
}
|
||||
|
||||
if (!class_exists('ListType')) {
|
||||
class ListType
|
||||
{
|
||||
public const whitelist = 0;
|
||||
public const blacklist = 1;
|
||||
public const regex_whitelist = 2;
|
||||
public const regex_blacklist = 3;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user