]> git.mxchange.org Git - friendica.git/blobdiff - mod/admin.php
autocomplete contacts nickname while writting in a comment box.
[friendica.git] / mod / admin.php
index ebef1ccb9378b784d86107789fc33f4ca218cfc6..f178e67f612587dbd2727e195696914a377d92fa 100644 (file)
@@ -5,16 +5,9 @@
   */
 require_once("include/remoteupdate.php");
  
-function admin_init(&$a) {
-       if(!is_site_admin()) {
-               notice( t('Permission denied.') . EOL);
-               return;
-       }
-}
-
 function admin_post(&$a){
        if(!is_site_admin()) {
-               return login(false);
+               return;
        }
        
        // urls
@@ -672,7 +665,7 @@ function admin_page_logs(&$a){
 function admin_page_remoteupdate_post(&$a) {
        // this function should be called via ajax post
        if(!is_site_admin()) {
-               return login(false);
+               return;
        }