X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsettings.php;h=5ae30d7d366274969a767ebbb373a5e3dae2c4c4;hb=0226258e7b11e90bdde3c3eb164aafc0999edade;hp=4c64e4da63aab21439f69a7d9b2a8824d3609989;hpb=ed037124b33d1ad405a8d3fb84c1feda4c22ac86;p=friendica.git diff --git a/mod/settings.php b/mod/settings.php index 4c64e4da63..5ae30d7d36 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -16,6 +16,11 @@ function get_theme_config_file($theme){ function settings_init(&$a) { + if(! local_user()) { + notice( t('Permission denied.') . EOL ); + return; + } + // APC deactivated, since there are problems with PHP 5.5 //if (function_exists("apc_delete")) { // $toDelete = new APCIterator('user', APC_ITER_VALUE); @@ -593,7 +598,7 @@ function settings_content(&$a) { nav_set_selected('settings'); if(! local_user()) { - notice( t('Permission denied.') . EOL ); + #notice( t('Permission denied.') . EOL ); return; } @@ -1126,7 +1131,7 @@ function settings_content(&$a) { '$h_basic' => t('Basic Settings'), '$username' => array('username', t('Full Name:'), $username,''), - '$email' => array('email', t('Email Address:'), $email, ''), + '$email' => array('email', t('Email Address:'), $email, '', '', '', 'email'), '$timezone' => array('timezone_select' , t('Your Timezone:'), select_timezone($timezone), ''), '$defloc' => array('defloc', t('Default Post Location:'), $defloc, ''), '$allowloc' => array('allow_location', t('Use Browser Location:'), ($a->user['allow_location'] == 1), ''),