From ebfe5b2aa7fc27df6c9aec3929edff632bf3c7dd Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Mon, 30 May 2016 00:52:18 +0200 Subject: fix geoip require, and add basic var check --- mirrorlist/index.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'mirrorlist') diff --git a/mirrorlist/index.php b/mirrorlist/index.php index 69614a769..dd8e3269b 100644 --- a/mirrorlist/index.php +++ b/mirrorlist/index.php @@ -1,7 +1,6 @@ $getvar); + //$out = array($key => $getvar); }else{ - $out = array("Error" => "Error $key: $getvar - not in list - $list"); + $out = "Error $key: $getvar - not in list - $list"; break; } } @@ -55,11 +54,15 @@ if ($source){ if ($release && $arch && $section && $repo){ - $out = str_replace('MIRROR', $dl['mirror_url'], $link); - //$out = check($arraycheck); + $oute = check($arraycheck); + $out= str_replace('MIRROR', $dl['mirror_url'], $link); //print_r($out); }else{ $out = "Invalid options"; } -echo $out; +if ($oute){ + echo $oute;} +else{ + echo $out; +} -- cgit v1.2.1