Replace killme() by exit()

This commit is contained in:
Hypolite Petovan 2018-12-26 00:39:53 -05:00
parent 9845edb8d9
commit aa5fbb4994
7 changed files with 19 additions and 19 deletions

View file

@ -89,7 +89,7 @@ function _randomAlphaNum($length){
function widgets_content(&$a) {
if (!isset($_GET['k'])) {
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); killme();}
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
return;
}
@ -97,7 +97,7 @@ function widgets_content(&$a) {
DBA::escape($_GET['k'])
);
if (!count($r)){
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); killme();}
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
return;
}
$conf = [];
@ -110,7 +110,7 @@ function widgets_content(&$a) {
if (file_exists($widgetfile)){
require_once($widgetfile);
} else {
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); killme();}
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
return;
}
@ -176,5 +176,5 @@ function widgets_content(&$a) {
}
echo $o;
killme();
exit();
}