]> git.mxchange.org Git - friendica-addons.git/commitdiff
Replace killme() by exit()
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 26 Dec 2018 05:39:53 +0000 (00:39 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 26 Dec 2018 15:20:16 +0000 (10:20 -0500)
blockem/blockem.php
jappixmini/jappixmini.php
js_upload/js_upload.php
remote_permissions/remote_permissions.php
superblock/superblock.php
widgets/widgets.php
windowsphonepush/windowsphonepush.php

index fbba29f4064571bacad10df36f36a8e06c9cb355..c8b6c907155f53e02574b1e48c67bcbab51dc1b1 100644 (file)
@@ -243,5 +243,5 @@ function blockem_init(App $a)
 
        PConfig::set(local_user(), 'blockem', 'words', $words);
        info(L10n::t('blockem settings updated') . EOL);
-       killme();
+       exit();
 }
index e2ef01d28b3f7c3a828840de59f40e6b5200ed98..4530556568b2b18c3c719e363885d94d646cd716 100644 (file)
@@ -193,14 +193,14 @@ function jappixmini_init()
        // 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;
@@ -209,14 +209,14 @@ function jappixmini_init()
        } 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"];
@@ -238,7 +238,7 @@ function jappixmini_init()
        // do not return an address if user deactivated addon
        $activated = PConfig::get($uid, 'jappixmini', 'activate');
        if (!$activated) {
-               killme();
+               exit();
        }
 
        // return the requested Jabber address
@@ -259,9 +259,9 @@ function jappixmini_init()
 
                $answer_json = json_encode($answer);
                echo $answer_json;
-               killme();
+               exit();
        } catch (Exception $e) {
-               killme();
+               exit();
        }
 }
 
index 2203c9bfd14c45dbb64594d1f6e5d34882699528..705d47d98feadedbb0f7ff8409d73c486c1aa5de 100644 (file)
@@ -162,7 +162,7 @@ function js_upload_post_init(&$a,&$b) {
        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;
@@ -185,7 +185,7 @@ function js_upload_post_end(&$a,&$b) {
 Logger::log('upload_post_end');
        if(!empty($a->data['upload_jsonresponse'])) {
                echo $a->data['upload_jsonresponse'];
-               killme();
+               exit();
        }
 
 }
index 623d4172a2d72ba2b8efeba8879f7032cd625577..093053e432448c0c38e89d9a50df9cd788f546e4 100644 (file)
@@ -191,7 +191,7 @@ function remote_permissions_content($a, $item_copy) {
                // Sort the names alphabetically, case-insensitive
                natcasesort($allow_names);
                echo $o . implode(', ', $allow_names);
-               killme();
+               exit();
        }
 
        return;
index 895f1ec67578d5259e71fb4f8b12e81072d36d41..9d40509ee10fcac7a1594b01ec2e58fea381a391 100644 (file)
@@ -164,5 +164,5 @@ function superblock_init(&$a)
 
        PConfig::set(local_user(), 'system', 'blocked', $words);
        info(L10n::t('superblock settings updated') . EOL );
-       killme();
+       exit();
 }
index 927d67463ca3e2a0481ebd1be9cfbcbab235ed58..48d3265367ea1ea90258610cb467c94e71173369 100644 (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();
 }
index a6c9aa9b271ef848e7c75c2f45d910f2a38d6375..bd1d3a3849df57734546adae0128b95633c803e2 100644 (file)
@@ -338,19 +338,19 @@ function windowsphonepush_content(App $a)
                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";