forked from GithubBackups/vichan
commit
420ec4a852
@ -818,7 +818,7 @@ function mod_ip_remove_note($cloaked_ip, $id) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function mod_page_ip($cip) {
|
function mod_ip($cip) {
|
||||||
$ip = uncloak_ip($cip);
|
$ip = uncloak_ip($cip);
|
||||||
global $config, $mod;
|
global $config, $mod;
|
||||||
|
|
||||||
|
2
mod.php
2
mod.php
@ -188,8 +188,6 @@ foreach ($pages as $uri => $handler) {
|
|||||||
if (is_string($handler)) {
|
if (is_string($handler)) {
|
||||||
if ($handler[0] == ':') {
|
if ($handler[0] == ':') {
|
||||||
header('Location: ' . substr($handler, 1), true, $config['redirect_http']);
|
header('Location: ' . substr($handler, 1), true, $config['redirect_http']);
|
||||||
} elseif (is_callable("mod_page_$handler")) {
|
|
||||||
call_user_func_array("mod_page_$handler", $matches);
|
|
||||||
} elseif (is_callable("mod_$handler")) {
|
} elseif (is_callable("mod_$handler")) {
|
||||||
call_user_func_array("mod_$handler", $matches);
|
call_user_func_array("mod_$handler", $matches);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user