Loading block_proxies.module +3 −6 Original line number Diff line number Diff line Loading @@ -17,8 +17,7 @@ function block_proxies_menu() return $items; } function block_proxies_boot() { function block_proxies_boot() { $config_values = block_proxies_get_values_list(); $current_ip = ip_address(); Loading Loading @@ -56,16 +55,14 @@ function block_proxies_boot() } } function block_proxies_deny_access($message) { function block_proxies_deny_access($message) { header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden'); print $message; exit(); } function block_proxies_get_values_list() { function block_proxies_get_values_list() { $data = db_select('block_proxies', 'bp')->fields('bp')->execute()->fetchAll(); return $data; Loading Loading
block_proxies.module +3 −6 Original line number Diff line number Diff line Loading @@ -17,8 +17,7 @@ function block_proxies_menu() return $items; } function block_proxies_boot() { function block_proxies_boot() { $config_values = block_proxies_get_values_list(); $current_ip = ip_address(); Loading Loading @@ -56,16 +55,14 @@ function block_proxies_boot() } } function block_proxies_deny_access($message) { function block_proxies_deny_access($message) { header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden'); print $message; exit(); } function block_proxies_get_values_list() { function block_proxies_get_values_list() { $data = db_select('block_proxies', 'bp')->fields('bp')->execute()->fetchAll(); return $data; Loading