function checkall($conf) { checkip($conf); checken(); checkref(); }
default: if ($ref_req == $dest_req) { $ref = true; } } if ($ref_path == $dest_path) { $ref = true; } } if ($ref !== true) { die(sprintf('<div>%s %s!</div>', $ref_admin, $dest_admin)); } else { return; } } checkref('admin'); $get = (object) $_GET; $allowed_scale = array(1, 2, 3, 4, 5, 6); if (!isset($get->scale) or isset($get->scale) and !in_array($get->scale, $allowed_scale)) { $get->scale = 2; } // include php-barcode lib require "php-barcode.php"; // http vars $code = isset($get->code) ? trim($get->code) : '1234567890'; if (get_magic_quotes_gpc()) { $code = stripslashes($code); } $encoding = isset($get->encoding) ? trim($get->encoding) : '128'; $scale = isset($get->scale) ? trim($get->scale) : '2'; $mode = isset($get->mode) ? trim($get->mode) : 'png';