PConfig::set(local_user(), 'blockem', 'words', $words);
info(L10n::t('blockem settings updated') . EOL);
- killme();
+ exit();
}
// of local users
$dfrn_id = $_REQUEST["dfrn_id"];
if (!$dfrn_id) {
- killme();
+ exit();
}
$role = $_REQUEST["role"];
if ($role == "pub") {
$r = q("SELECT * FROM `contact` WHERE LENGTH(`pubkey`) AND `dfrn-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
if (!count($r)) {
- killme();
+ exit();
}
$encrypt_func = openssl_public_encrypt;
} else if ($role == "prv") {
$r = q("SELECT * FROM `contact` WHERE LENGTH(`prvkey`) AND `issued-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
if (!count($r)) {
- killme();
+ exit();
}
$encrypt_func = openssl_private_encrypt;
$decrypt_func = openssl_private_decrypt;
$key = $r[0]["prvkey"];
} else {
- killme();
+ exit();
}
$uid = $r[0]["uid"];
// do not return an address if user deactivated addon
$activated = PConfig::get($uid, 'jappixmini', 'activate');
if (!$activated) {
- killme();
+ exit();
}
// return the requested Jabber address
$answer_json = json_encode($answer);
echo $answer_json;
- killme();
+ exit();
} catch (Exception $e) {
- killme();
+ exit();
}
}
if(isset($result['error'])) {
Logger::log('mod/photos.php: photos_post(): error uploading photo: ' . $result['error'] , Logger::DEBUG);
echo json_encode($result);
- killme();
+ exit();
}
$a->data['upload_result'] = $result;
Logger::log('upload_post_end');
if(!empty($a->data['upload_jsonresponse'])) {
echo $a->data['upload_jsonresponse'];
- killme();
+ exit();
}
}
// Sort the names alphabetically, case-insensitive
natcasesort($allow_names);
echo $o . implode(', ', $allow_names);
- killme();
+ exit();
}
return;
PConfig::set(local_user(), 'system', 'blocked', $words);
info(L10n::t('superblock settings updated') . EOL );
- killme();
+ exit();
}
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;
}
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 = [];
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;
}
}
echo $o;
- killme();
+ exit();
}
switch ($path2) {
case "show_settings":
windowsphonepush_showsettings($a);
- killme();
+ exit();
break;
case "update_settings":
$ret = windowsphonepush_updatesettings($a);
header("Content-Type: application/json; charset=utf-8");
echo json_encode(['status' => $ret]);
- killme();
+ exit();
break;
case "update_counterunseen":
$ret = windowsphonepush_updatecounterunseen();
header("Content-Type: application/json; charset=utf-8");
echo json_encode(['status' => $ret]);
- killme();
+ exit();
break;
default:
echo "Fehler";