| @@ 31-37 (lines=7) @@ | ||
| 28 | include_once __DIR__ . '/admin_header.php'; |
|
| 29 | include_once dirname(__DIR__) . '/include/functions.php'; |
|
| 30 | ||
| 31 | if (isset($_GET['op'])) { |
|
| 32 | $op = $_GET['op']; |
|
| 33 | } elseif (isset($_POST['op'])) { |
|
| 34 | $op = $_POST['op']; |
|
| 35 | } else { |
|
| 36 | $op = 'badIpShow'; |
|
| 37 | } |
|
| 38 | ||
| 39 | if (isset($_GET['ip_id'])) { |
|
| 40 | $ip_id = (int)$_GET['ip_id']; |
|
| @@ 39-45 (lines=7) @@ | ||
| 36 | $op = 'badIpShow'; |
|
| 37 | } |
|
| 38 | ||
| 39 | if (isset($_GET['ip_id'])) { |
|
| 40 | $ip_id = (int)$_GET['ip_id']; |
|
| 41 | } elseif (isset($_POST['ip_id'])) { |
|
| 42 | $ip_id = (int)$_POST['ip_id']; |
|
| 43 | } else { |
|
| 44 | $ip_id = 0; |
|
| 45 | } |
|
| 46 | ||
| 47 | $ip_value = isset($_POST['ip_value']) ? $_POST['ip_value'] : ''; |
|
| 48 | ||
| @@ 37-43 (lines=7) @@ | ||
| 34 | include_once dirname(__DIR__) . '/include/functions.php'; |
|
| 35 | //include_once("../class/msg.php"); |
|
| 36 | ||
| 37 | if (isset($_GET['op'])) { |
|
| 38 | $op = $_GET['op']; |
|
| 39 | } elseif (isset($_POST['op'])) { |
|
| 40 | $op = $_POST['op']; |
|
| 41 | } else { |
|
| 42 | $op = 'show'; |
|
| 43 | } |
|
| 44 | ||
| 45 | if (isset($_GET['msg_id'])) { |
|
| 46 | $msg_id = (int)$_GET['msg_id']; |
|
| @@ 45-51 (lines=7) @@ | ||
| 42 | $op = 'show'; |
|
| 43 | } |
|
| 44 | ||
| 45 | if (isset($_GET['msg_id'])) { |
|
| 46 | $msg_id = (int)$_GET['msg_id']; |
|
| 47 | } elseif (isset($_POST['msg_id'])) { |
|
| 48 | $msg_id = (int)$_POST['msg_id']; |
|
| 49 | } else { |
|
| 50 | $msg_id = 0; |
|
| 51 | } |
|
| 52 | ||
| 53 | $msg_handler = xoops_getModuleHandler('msg'); |
|
| 54 | ||
| @@ 29-35 (lines=7) @@ | ||
| 26 | include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 27 | //include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/msg.php"); |
|
| 28 | include_once(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/include/functions.php'); |
|
| 29 | if (isset($_GET['msg_id'])) { |
|
| 30 | $msg_id = (int)$_GET['msg_id']; |
|
| 31 | } elseif (isset($_POST['msg_id'])) { |
|
| 32 | $msg_id = (int)$_POST['msg_id']; |
|
| 33 | } else { |
|
| 34 | $msg_id = 0; |
|
| 35 | } |
|
| 36 | ||
| 37 | if (isset($_GET['op'])) { |
|
| 38 | $op = $_GET['op']; |
|
| @@ 37-43 (lines=7) @@ | ||
| 34 | $msg_id = 0; |
|
| 35 | } |
|
| 36 | ||
| 37 | if (isset($_GET['op'])) { |
|
| 38 | $op = $_GET['op']; |
|
| 39 | } elseif (isset($_POST['op'])) { |
|
| 40 | $op = $_POST['op']; |
|
| 41 | } else { |
|
| 42 | $op = 'show_all'; |
|
| 43 | } |
|
| 44 | ||
| 45 | $msg_handler = xoops_getModuleHandler('msg'); |
|
| 46 | ||
| @@ 58-64 (lines=7) @@ | ||
| 55 | } |
|
| 56 | } |
|
| 57 | ||
| 58 | if (isset($_GET['op'])) { |
|
| 59 | $op = $_GET['op']; |
|
| 60 | } elseif (isset($_POST['op'])) { |
|
| 61 | $op = $_POST['op']; |
|
| 62 | } else { |
|
| 63 | $op = 'show'; |
|
| 64 | } |
|
| 65 | ||
| 66 | switch ($op) { |
|
| 67 | ||
| @@ 36-42 (lines=7) @@ | ||
| 33 | $maxwidth = 80; |
|
| 34 | $format = 'gif'; |
|
| 35 | ||
| 36 | if (isset($_GET['op'])) { |
|
| 37 | $op = $_GET['op']; |
|
| 38 | } elseif (isset($_POST['op'])) { |
|
| 39 | $op = $_POST['op']; |
|
| 40 | } else { |
|
| 41 | $op = 'countryShow'; |
|
| 42 | } |
|
| 43 | ||
| 44 | if (isset($_GET['country_id'])) { |
|
| 45 | $country_id = (int)$_GET['country_id']; |
|
| @@ 44-50 (lines=7) @@ | ||
| 41 | $op = 'countryShow'; |
|
| 42 | } |
|
| 43 | ||
| 44 | if (isset($_GET['country_id'])) { |
|
| 45 | $country_id = (int)$_GET['country_id']; |
|
| 46 | } elseif (isset($_POST['country_id'])) { |
|
| 47 | $country_id = (int)$_POST['country_id']; |
|
| 48 | } else { |
|
| 49 | $country_id = 0; |
|
| 50 | } |
|
| 51 | ||
| 52 | if (isset($_GET['country_code'])) { |
|
| 53 | $country_code = $_GET['country_code']; |
|
| @@ 52-58 (lines=7) @@ | ||
| 49 | $country_id = 0; |
|
| 50 | } |
|
| 51 | ||
| 52 | if (isset($_GET['country_code'])) { |
|
| 53 | $country_code = $_GET['country_code']; |
|
| 54 | } elseif (isset($_POST['country_code'])) { |
|
| 55 | $country_code = $_POST['country_code']; |
|
| 56 | } else { |
|
| 57 | $country_code = ''; |
|
| 58 | } |
|
| 59 | ||
| 60 | $start = isset($_GET['start']) ? (int)$_GET['start'] : 0; |
|
| 61 | $country_name = isset($_POST['country_name']) ? $_POST['country_name'] : ''; |
|
| @@ 32-38 (lines=7) @@ | ||
| 29 | ||
| 30 | $msg_handler = xoops_getModuleHandler('msg'); |
|
| 31 | include_once __DIR__ . '/admin_header.php'; |
|
| 32 | if (isset($_GET['op'])) { |
|
| 33 | $op = $_GET['op']; |
|
| 34 | } elseif (isset($_POST['op'])) { |
|
| 35 | $op = $_POST['op']; |
|
| 36 | } else { |
|
| 37 | $op = 'show'; |
|
| 38 | } |
|
| 39 | ||
| 40 | switch ($op) { |
|
| 41 | ||
| @@ 50-56 (lines=7) @@ | ||
| 47 | $url = (isset($_POST['url']) ? $_POST['url'] : ''); |
|
| 48 | $country = (isset($_POST['country']) ? $_POST['country'] : ''); |
|
| 49 | ||
| 50 | if (isset($_POST['preview'])) { |
|
| 51 | $op = 'preview'; |
|
| 52 | } elseif (isset($_POST['post'])) { |
|
| 53 | $op = 'post'; |
|
| 54 | } else { |
|
| 55 | $op = 'form'; |
|
| 56 | } |
|
| 57 | ||
| 58 | $badip = in_array($_SERVER['REMOTE_ADDR'], xfgb_get_badips()) ? true : false; |
|
| 59 | ||