diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/changedisplayname.php | 4 | ||||
-rw-r--r-- | settings/ajax/setquota.php | 4 | ||||
-rw-r--r-- | settings/ajax/togglegroups.php | 4 | ||||
-rw-r--r-- | settings/ajax/userlist.php | 6 | ||||
-rw-r--r-- | settings/js/users.js | 8 | ||||
-rw-r--r-- | settings/l10n/de.php | 10 | ||||
-rw-r--r-- | settings/l10n/de_DE.php | 8 | ||||
-rw-r--r-- | settings/l10n/es.php | 1 | ||||
-rw-r--r-- | settings/l10n/hy.php | 4 | ||||
-rw-r--r-- | settings/l10n/id.php | 1 | ||||
-rw-r--r-- | settings/l10n/my_MM.php | 3 | ||||
-rw-r--r-- | settings/oauth.php | 21 | ||||
-rw-r--r-- | settings/routes.php | 2 | ||||
-rw-r--r-- | settings/templates/apps.php | 23 | ||||
-rw-r--r-- | settings/templates/help.php | 18 | ||||
-rw-r--r-- | settings/templates/personal.php | 15 | ||||
-rw-r--r-- | settings/users.php | 6 |
17 files changed, 88 insertions, 50 deletions
diff --git a/settings/ajax/changedisplayname.php b/settings/ajax/changedisplayname.php index 69462330765..08c1b1455cd 100644 --- a/settings/ajax/changedisplayname.php +++ b/settings/ajax/changedisplayname.php @@ -29,5 +29,5 @@ if( OC_User::setDisplayName( $username, $displayName )) { OC_JSON::success(array("data" => array( "username" => $username, 'displayName' => $displayName )));
}
else{
- OC_JSON::error(array("data" => array( "message" => $l->t("Unable to change display name"), displayName => OC_User::getDisplayName($username) )));
-}
\ No newline at end of file + OC_JSON::error(array("data" => array( "message" => $l->t("Unable to change display name"), 'displayName' => OC_User::getDisplayName($username) ))); +} diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index 356466c0c00..cd8dc0e2796 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -10,7 +10,9 @@ OCP\JSON::callCheck(); $username = isset($_POST["username"])?$_POST["username"]:''; -if(($username == '' && !OC_User::isAdminUser(OC_User::getUser()))|| (!OC_User::isAdminUser(OC_User::getUser()) && !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username))) { +if(($username == '' && !OC_User::isAdminUser(OC_User::getUser())) + || (!OC_User::isAdminUser(OC_User::getUser()) + && !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username))) { $l = OC_L10N::get('core'); OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); exit(); diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php index 9bba9c5269d..f6fd9aba6d9 100644 --- a/settings/ajax/togglegroups.php +++ b/settings/ajax/togglegroups.php @@ -13,7 +13,9 @@ if($username == OC_User::getUser() && $group == "admin" && OC_User::isAdminUser exit(); } -if(!OC_User::isAdminUser(OC_User::getUser()) && (!OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username) || !OC_SubAdmin::isGroupAccessible(OC_User::getUser(), $group))) { +if(!OC_User::isAdminUser(OC_User::getUser()) + && (!OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username) + || !OC_SubAdmin::isGroupAccessible(OC_User::getUser(), $group))) { $l = OC_L10N::get('core'); OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); exit(); diff --git a/settings/ajax/userlist.php b/settings/ajax/userlist.php index 9bbff80ea0c..5282f4a7143 100644 --- a/settings/ajax/userlist.php +++ b/settings/ajax/userlist.php @@ -29,10 +29,11 @@ if (isset($_GET['offset'])) { } $users = array(); if (OC_User::isAdminUser(OC_User::getUser())) { - $batch = OC_User::getUsers('', 10, $offset); - foreach ($batch as $user) { + $batch = OC_User::getDisplayNames('', 10, $offset); + foreach ($batch as $user => $displayname) { $users[] = array( 'name' => $user, + 'displayname' => $displayname, 'groups' => join(', ', OC_Group::getUserGroups($user)), 'subadmin' => join(', ', OC_SubAdmin::getSubAdminsGroups($user)), 'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default')); @@ -43,6 +44,7 @@ if (OC_User::isAdminUser(OC_User::getUser())) { foreach ($batch as $user) { $users[] = array( 'name' => $user, + 'displayname' => OC_User::determineDisplayName($user), 'groups' => join(', ', OC_Group::getUserGroups($user)), 'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default')); } diff --git a/settings/js/users.js b/settings/js/users.js index 63a62049839..452bdf5f838 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -66,10 +66,10 @@ var UserList = { } }, - add: function (username, groups, subadmin, quota, sort) { + add: function (username, displayname, groups, subadmin, quota, sort) { var tr = $('tbody tr').first().clone(); tr.attr('data-uid', username); - tr.attr('data-displayName', username); + tr.attr('data-displayName', displayname); tr.find('td.name').text(username); tr.find('td.displayName').text(username); var groupsSelect = $('<select multiple="multiple" class="groupsselect" data-placehoder="Groups" title="' + t('settings', 'Groups') + '"></select>').attr('data-username', username).attr('data-user-groups', groups); @@ -138,7 +138,7 @@ var UserList = { $.get(OC.Router.generate('settings_ajax_userlist', { offset: UserList.offset }), function (result) { if (result.status === 'success') { $.each(result.data, function (index, user) { - var tr = UserList.add(user.name, user.groups, user.subadmin, user.quota, false); + var tr = UserList.add(user.name, user.displayname, user.groups, user.subadmin, user.quota, false); UserList.offset++; if (index == 9) { $(tr).bind('inview', function (event, isInView, visiblePartX, visiblePartY) { @@ -373,7 +373,7 @@ $(document).ready(function () { OC.dialogs.alert(result.data.message, t('settings', 'Error creating user')); } else { - UserList.add(username, result.data.groups, null, 'default', true); + UserList.add(username, username, result.data.groups, null, 'default', true); } } ); diff --git a/settings/l10n/de.php b/settings/l10n/de.php index 4b8ee76e762..42992855ecd 100644 --- a/settings/l10n/de.php +++ b/settings/l10n/de.php @@ -36,7 +36,7 @@ "A valid password must be provided" => "Es muss ein gültiges Passwort angegeben werden", "__language_name__" => "Deutsch (Persönlich)", "Security Warning" => "Sicherheitswarnung", -"Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root." => "Dein Datenverzeichnis und deine Datein sind vielleicht vom Internet aus erreichbar. Die .htaccess Datei, die ownCloud verwendet, arbeitet nicht richtig. Wir schlagen Dir dringend vor, dass du deinen Webserver so konfigurierst, dass das Datenverzeichnis nicht länger erreichbar ist oder, dass du dein Datenverzeichnis aus dem Dokumenten-root des Webservers bewegst.", +"Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root." => "Dein Datenverzeichnis und Deine Datein sind vielleicht vom Internet aus erreichbar. Die .htaccess Datei, die ownCloud verwendet, arbeitet nicht richtig. Wir schlagen Dir dringend vor, dass Du Deinen Webserver so konfigurierst, dass das Datenverzeichnis nicht länger erreichbar ist oder, dass Du Dein Datenverzeichnis aus dem Dokumenten-root des Webservers bewegst.", "Setup Warning" => "Einrichtungswarnung", "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "Dein Web-Server ist noch nicht für Datei-Synchronisation bereit, weil die WebDAV-Schnittstelle vermutlich defekt ist.", "Please double check the <a href='%s'>installation guides</a>." => "Bitte prüfen Sie die <a href='%s'>Instalationsanleitungen</a>.", @@ -45,14 +45,14 @@ "Locale not working" => "Ländereinstellung funktioniert nicht", "This ownCloud server can't set system locale to \"en_US.UTF-8\"/\"en_US.UTF8\". This means that there might be problems with certain characters in file names. We strongly suggest to install the required packages on your system to support en_US.UTF-8/en_US.UTF8." => "Dieser ownCloud Server kann die Ländereinstellung nicht auf \"de_DE.UTF-8\"/\"de_DE.UTF8\" ändern. Dies bedeutet dass es Probleme mit bestimmten Zeichen in Dateinamen geben könnte. Wir empfehlen die für de_DE.UTF-8/de_DE.UTF8 benötigten Pakete auf ihrem System zu installieren.", "Internet connection not working" => "Keine Netzwerkverbindung", -"This ownCloud server has no working internet connection. This means that some of the features like mounting of external storage, notifications about updates or installation of 3rd party apps don´t work. Accessing files from remote and sending of notification emails might also not work. We suggest to enable internet connection for this server if you want to have all features of ownCloud." => "Dieser ownCloud Server hat keine funktionierende Netzwerkverbindung. Dies bedeutet das einige Funktionen wie das einbinden von externen Speichern, Update-Benachrichtigungen oder die Installation von Drittanbieter-Apps nicht funktionieren. Der Fernzugriff auf Dateien und das Senden von Benachrichtigungsmails funktioniert eventuell ebenfalls nicht. Wir empfehlen die Netzwerkverbindung für diesen Server zu aktivieren wenn Sie alle Funktionen von ownCloud nutzen wollen.", +"This ownCloud server has no working internet connection. This means that some of the features like mounting of external storage, notifications about updates or installation of 3rd party apps don´t work. Accessing files from remote and sending of notification emails might also not work. We suggest to enable internet connection for this server if you want to have all features of ownCloud." => "Dieser ownCloud Server hat keine funktionierende Netzwerkverbindung. Dies bedeutet das einige Funktionen wie das Einbinden von externen Speichern, Update-Benachrichtigungen oder die Installation von Drittanbieter-Apps nicht funktionieren. Der Fernzugriff auf Dateien und das Senden von Benachrichtigungsmails funktioniert eventuell ebenfalls nicht. Wir empfehlen die Netzwerkverbindung für diesen Server zu aktivieren wenn Du alle Funktionen von ownCloud nutzen möchtest.", "Cron" => "Cron", "Execute one task with each page loaded" => "Führe eine Aufgabe mit jeder geladenen Seite aus", "cron.php is registered at a webcron service. Call the cron.php page in the owncloud root once a minute over http." => "cron.php ist an einem Webcron-Service registriert. Die cron.php Seite wird einmal pro Minute über http abgerufen.", "Use systems cron service. Call the cron.php file in the owncloud folder via a system cronjob once a minute." => "Nutze den Cron Systemdienst. Rufe die Datei cron.php im owncloud Ordner einmal pro Minute über einen Cronjob auf.", "Sharing" => "Teilen", "Enable Share API" => "Aktiviere Sharing-API", -"Allow apps to use the Share API" => "Erlaube Apps die Nutzung der Sharing-API", +"Allow apps to use the Share API" => "Erlaube Apps die Nutzung der Share-API", "Allow links" => "Erlaube Links", "Allow users to share items to the public with links" => "Erlaube Benutzern Inhalte über öffentliche Links zu teilen", "Allow resharing" => "Erlaube erneutes teilen", @@ -64,7 +64,7 @@ "Enforces the clients to connect to ownCloud via an encrypted connection." => "Erzwingt die Verwendung einer verschlüsselten Verbindung", "Please connect to this ownCloud instance via HTTPS to enable or disable the SSL enforcement." => "Bitte verbinden Sie sich über eine HTTPS Verbindung mit diesem ownCloud Server um diese Einstellung zu ändern", "Log" => "Log", -"Log level" => "Logtiefe", +"Log level" => "Loglevel", "More" => "Mehr", "Version" => "Version", "Developed by the <a href=\"http://ownCloud.org/contact\" target=\"_blank\">ownCloud community</a>, the <a href=\"https://github.com/owncloud\" target=\"_blank\">source code</a> is licensed under the <a href=\"http://www.gnu.org/licenses/agpl-3.0.html\" target=\"_blank\"><abbr title=\"Affero General Public License\">AGPL</abbr></a>." => "Entwickelt von der <a href=\"http://ownCloud.org/contact\" target=\"_blank\">ownCloud-Community</a>, der <a href=\"https://github.com/owncloud\" target=\"_blank\">Quellcode</a> ist unter der <a href=\"http://www.gnu.org/licenses/agpl-3.0.html\" target=\"_blank\"><abbr title=\"Affero General Public License\">AGPL</abbr></a> lizenziert.", @@ -81,7 +81,7 @@ "Bugtracker" => "Bugtracker", "Commercial Support" => "Kommerzieller Support", "You have used <strong>%s</strong> of the available <strong>%s</strong>" => "Du verwendest <strong>%s</strong> der verfügbaren <strong>%s<strong>", -"Get the apps to sync your files" => "Laden Sie die Apps zur Synchronisierung ihrer Daten herunter", +"Get the apps to sync your files" => "Lade die Apps zur Synchronisierung Deiner Daten herunter", "Show First Run Wizard again" => "Erstinstallation erneut durchführen", "Password" => "Passwort", "Your password was changed" => "Dein Passwort wurde geändert.", diff --git a/settings/l10n/de_DE.php b/settings/l10n/de_DE.php index ee235105360..5dd5001548e 100644 --- a/settings/l10n/de_DE.php +++ b/settings/l10n/de_DE.php @@ -43,16 +43,16 @@ "Module 'fileinfo' missing" => "Das Modul 'fileinfo' fehlt", "The PHP module 'fileinfo' is missing. We strongly recommend to enable this module to get best results with mime-type detection." => "Das PHP-Modul 'fileinfo' fehlt. Wir empfehlen Ihnen dieses Modul zu aktivieren um die besten Resultate bei der Bestimmung der Dateitypen zu erzielen.", "Locale not working" => "Lokalisierung funktioniert nicht", -"This ownCloud server can't set system locale to \"en_US.UTF-8\"/\"en_US.UTF8\". This means that there might be problems with certain characters in file names. We strongly suggest to install the required packages on your system to support en_US.UTF-8/en_US.UTF8." => "Dieser ownCloud Server kann die Ländereinstellung nicht auf \"de_DE.UTF-8\"/\"de_DE.UTF8\" ändern. Dies bedeutet dass es Probleme mit bestimmten Zeichen in Dateinamen geben könnte. Wir empfehlen die für de_DE.UTF-8/de_DE.UTF8 benötigten Pakete auf ihrem System zu installieren.", +"This ownCloud server can't set system locale to \"en_US.UTF-8\"/\"en_US.UTF8\". This means that there might be problems with certain characters in file names. We strongly suggest to install the required packages on your system to support en_US.UTF-8/en_US.UTF8." => "Dieser ownCloud Server kann die Ländereinstellung nicht auf \"de_DE.UTF-8\"/\"de_DE.UTF8\" ändern. Dies bedeutet dass es Probleme mit bestimmten Zeichen im Dateinamen geben könnte. Wir empfehlen die für de_DE.UTF-8/de_DE.UTF8 benötigten Pakete auf Ihrem System zu installieren.", "Internet connection not working" => "Keine Netzwerkverbindung", -"This ownCloud server has no working internet connection. This means that some of the features like mounting of external storage, notifications about updates or installation of 3rd party apps don´t work. Accessing files from remote and sending of notification emails might also not work. We suggest to enable internet connection for this server if you want to have all features of ownCloud." => "Dieser ownCloud Server hat keine funktionierende Internetverbindung. Dies bedeutet das einige Funktionen wie das einbinden von externen Speichern, Update-Benachrichtigungen oder die Installation von Drittanbieter-Apps nicht funktionieren. Der Fernzugriff auf Dateien und das Senden von Benachrichtigungsmails funktioniert eventuell ebenfalls nicht. Wir empfehlen die Internetverbindung für diesen Server zu aktivieren wenn Sie alle Funktionen von ownCloud nutzen wollen.", +"This ownCloud server has no working internet connection. This means that some of the features like mounting of external storage, notifications about updates or installation of 3rd party apps don´t work. Accessing files from remote and sending of notification emails might also not work. We suggest to enable internet connection for this server if you want to have all features of ownCloud." => "Dieser ownCloud Server hat keine funktionierende Internetverbindung. Dies bedeutet das einige Funktionen wie das Einbinden von externen Speichern, Update-Benachrichtigungen oder die Installation von Drittanbieter-Apps nicht funktionieren. Der Fernzugriff auf Dateien und das Senden von Benachrichtigungsmails funktioniert eventuell ebenfalls nicht. Wir empfehlen die Internetverbindung für diesen Server zu aktivieren wenn Sie alle Funktionen von ownCloud nutzen wollen.", "Cron" => "Cron", "Execute one task with each page loaded" => "Führe eine Aufgabe bei jedem Laden der Seite aus", "cron.php is registered at a webcron service. Call the cron.php page in the owncloud root once a minute over http." => "cron.php ist bei einem Webcron-Service registriert. Die cron.php Seite im ownCloud Wurzelverzeichniss wird einmal pro Minute über http abgerufen.", "Use systems cron service. Call the cron.php file in the owncloud folder via a system cronjob once a minute." => "Nutzen Sie den Cron Systemdienst. Rufen Sie die Datei cron.php im ownCloud Ordner einmal pro Minute über einen Cronjob auf.", "Sharing" => "Teilen", -"Enable Share API" => "Teilen-API aktivieren", -"Allow apps to use the Share API" => "Erlaube es Anwendungen, die Teilen-API zu benutzen", +"Enable Share API" => "Share-API aktivieren", +"Allow apps to use the Share API" => "Erlaube es Anwendungen, die Share-API zu benutzen", "Allow links" => "Links erlauben", "Allow users to share items to the public with links" => "Erlaube es Benutzern, Items per öffentlichem Link zu teilen", "Allow resharing" => "Erlaube weiterverteilen", diff --git a/settings/l10n/es.php b/settings/l10n/es.php index e0c20c6d97c..ec805cca3c6 100644 --- a/settings/l10n/es.php +++ b/settings/l10n/es.php @@ -34,6 +34,7 @@ "Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root." => "Su directorio de datos y sus archivos están probablemente accesibles desde internet. El archivo .htaccess que ownCloud provee no está funcionando. Sugerimos fuertemente que configure su servidor web de manera que el directorio de datos ya no esté accesible o mueva el directorio de datos fuera del documento raíz de su servidor web.", "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "Su servidor web aún no está configurado adecuadamente para permitir sincronización de archivos ya que la interfaz WebDAV parece no estar funcionando.", "Please double check the <a href='%s'>installation guides</a>." => "Por favor, vuelva a comprobar las <a href='%s'>guías de instalación</a>.", +"Sharing" => "Compartiendo", "More" => "Más", "Version" => "Version", "Developed by the <a href=\"http://ownCloud.org/contact\" target=\"_blank\">ownCloud community</a>, the <a href=\"https://github.com/owncloud\" target=\"_blank\">source code</a> is licensed under the <a href=\"http://www.gnu.org/licenses/agpl-3.0.html\" target=\"_blank\"><abbr title=\"Affero General Public License\">AGPL</abbr></a>." => "Desarrollado por la <a href=\"http://ownCloud.org/contact\" target=\"_blank\">comunidad ownCloud</a>, el <a href=\"https://github.com/owncloud\" target=\"_blank\">código fuente</a> está bajo licencia <a href=\"http://www.gnu.org/licenses/agpl-3.0.html\" target=\"_blank\"><abbr title=\"Affero General Public License\">AGPL</abbr></a>.", diff --git a/settings/l10n/hy.php b/settings/l10n/hy.php new file mode 100644 index 00000000000..9a9e46085ef --- /dev/null +++ b/settings/l10n/hy.php @@ -0,0 +1,4 @@ +<?php $TRANSLATIONS = array( +"Delete" => "Ջնջել", +"Other" => "Այլ" +); diff --git a/settings/l10n/id.php b/settings/l10n/id.php index e62b3e15a7a..7f53a50b248 100644 --- a/settings/l10n/id.php +++ b/settings/l10n/id.php @@ -20,6 +20,7 @@ "Select an App" => "Pilih satu aplikasi", "See application page at apps.owncloud.com" => "Lihat halaman aplikasi di apps.owncloud.com", "Update" => "Pembaruan", +"Get the apps to sync your files" => "Dapatkan aplikasi untuk sinkronisasi berkas anda", "Password" => "Password", "Unable to change your password" => "Tidak dapat merubah password anda", "Current password" => "Password saat ini", diff --git a/settings/l10n/my_MM.php b/settings/l10n/my_MM.php new file mode 100644 index 00000000000..de234d96437 --- /dev/null +++ b/settings/l10n/my_MM.php @@ -0,0 +1,3 @@ +<?php $TRANSLATIONS = array( +"Authentication error" => "ခွင့်ပြုချက်မအောင်မြင်" +); diff --git a/settings/oauth.php b/settings/oauth.php index 07b7ae5c31d..8b4759f999e 100644 --- a/settings/oauth.php +++ b/settings/oauth.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ -require_once('../lib/base.php'); +require_once '../lib/base.php'; // Logic $operation = isset($_GET['operation']) ? $_GET['operation'] : ''; $server = OC_OAuth_server::init(); @@ -23,9 +23,10 @@ switch($operation){ $callbackfail = empty($_GET['callback_fail']) ? null : $_GET['callback_fail']; $consumer = OC_OAuth_Server::register_consumer($_GET['name'], $_GET['url'], $callbacksuccess, $callbackfail); - echo 'Registered consumer successfully! </br></br>Key: ' . $consumer->key . '</br>Secret: ' . $consumer->secret; + echo 'Registered consumer successfully! </br></br>Key: ' . $consumer->key + . '</br>Secret: ' . $consumer->secret; } - break; + break; case 'request_token': @@ -38,7 +39,7 @@ switch($operation){ echo $exception->getMessage(); } - break; + break; case 'authorise'; OC_API::checkLoggedIn(); @@ -61,9 +62,11 @@ switch($operation){ if(!empty($notfound)) { // We need more apps :( Show error if(count($notfound)==1) { - $message = 'requires that you have an extra app installed on your ownCloud. Please contact your ownCloud administrator and ask them to install the app below.'; + $message = 'requires that you have an extra app installed on your ownCloud.' + .' Please contact your ownCloud administrator and ask them to install the app below.'; } else { - $message = 'requires that you have some extra apps installed on your ownCloud. Please contract your ownCloud administrator and ask them to install the apps below.'; + $message = 'requires that you have some extra apps installed on your ownCloud.' + .' Please contract your ownCloud administrator and ask them to install the apps below.'; } $t = new OC_Template('settings', 'oauth-required-apps', 'guest'); OC_Util::addStyle('settings', 'oauth'); @@ -77,7 +80,7 @@ switch($operation){ $t->assign('consumer', $consumer); $t->printPage(); } - break; + break; case 'access_token'; try { @@ -89,10 +92,10 @@ switch($operation){ echo $exception->getMessage(); } - break; + break; default: // Something went wrong, we need an operation! OC_Response::setStatus(400); - break; + break; } diff --git a/settings/routes.php b/settings/routes.php index 0a8af0dde2b..26d933dba45 100644 --- a/settings/routes.php +++ b/settings/routes.php @@ -40,7 +40,7 @@ $this->create('settings_ajax_removegroup', '/settings/ajax/removegroup.php') $this->create('settings_ajax_changepassword', '/settings/ajax/changepassword.php') ->actionInclude('settings/ajax/changepassword.php'); $this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
-->actionInclude('settings/ajax/changedisplayname.php'); + ->actionInclude('settings/ajax/changedisplayname.php'); // personel $this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php') ->actionInclude('settings/ajax/lostpassword.php'); diff --git a/settings/templates/apps.php b/settings/templates/apps.php index ed1232ac322..b6e98c41bd9 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -3,7 +3,8 @@ * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */?> - <script type="text/javascript" src="<?php echo OC_Helper::linkToRoute('apps_custom');?>?appid=<?php echo $_['appid']; ?>"></script> + <script type="text/javascript" + src="<?php echo OC_Helper::linkToRoute('apps_custom');?>?appid=<?php echo $_['appid']; ?>"></script> <script type="text/javascript" src="<?php echo OC_Helper::linkTo('settings/js', 'apps.js');?>"></script> <div id="controls"> @@ -12,21 +13,27 @@ </div> <ul id="leftcontent" class="applist hascontrols"> <?php foreach($_['apps'] as $app):?> - <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>" <?php if ( isset( $app['ocs_id'] ) ) { echo "data-id-ocs=\"{$app['ocs_id']}\""; } ?> - data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1"> - <a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a> - <?php if(!$app['internal']) echo '<small class="'.$app['internalclass'].' list">'.$app['internallabel'].'</small>' ?> + <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>" + <?php if ( isset( $app['ocs_id'] ) ) { echo "data-id-ocs=\"{$app['ocs_id']}\""; } ?> + data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1"> + <a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" + href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a> + <?php if(!$app['internal']) + echo '<small class="'.$app['internalclass'].' list">'.$app['internallabel'].'</small>' ?> </li> <?php endforeach;?> </ul> <div id="rightcontent"> <div class="appinfo"> - <h3><strong><span class="name"><?php echo $l->t('Select an App');?></span></strong><span class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3> + <h3><strong><span class="name"><?php echo $l->t('Select an App');?></span></strong><span + class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3> <span class="score"></span> <p class="description"></p> <img src="" class="preview" /> - <p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p> - <p class="license hidden"><?php echo $l->t('<span class="licence"></span>-licensed by <span class="author"></span>');?></p> + <p class="appslink hidden"><a href="#" target="_blank"><?php + echo $l->t('See application page at apps.owncloud.com');?></a></p> + <p class="license hidden"><?php + echo $l->t('<span class="licence"></span>-licensed by <span class="author"></span>');?></p> <input class="enable hidden" type="submit" /> <input class="update hidden" type="submit" value="<?php echo($l->t('Update')); ?>" /> </div> diff --git a/settings/templates/help.php b/settings/templates/help.php index 315cbfdb9a2..7b2a3321c29 100644 --- a/settings/templates/help.php +++ b/settings/templates/help.php @@ -1,14 +1,20 @@ <div id="controls"> <?php if($_['admin']) { ?> - <a class="button newquestion <?php echo($_['style1']); ?>" href="<?php echo($_['url1']); ?>"><?php echo $l->t( 'User Documentation' ); ?></a> - <a class="button newquestion <?php echo($_['style2']); ?>" href="<?php echo($_['url2']); ?>"><?php echo $l->t( 'Administrator Documentation' ); ?></a> + <a class="button newquestion <?php echo($_['style1']); ?>" + href="<?php echo($_['url1']); ?>"><?php echo $l->t( 'User Documentation' ); ?></a> + <a class="button newquestion <?php echo($_['style2']); ?>" + href="<?php echo($_['url2']); ?>"><?php echo $l->t( 'Administrator Documentation' ); ?></a> <?php } ?> - <a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php echo $l->t( 'Online Documentation' ); ?></a> - <a class="button newquestion" href="http://forum.owncloud.org" target="_blank"><?php echo $l->t( 'Forum' ); ?></a> + <a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php + echo $l->t( 'Online Documentation' ); ?></a> + <a class="button newquestion" href="http://forum.owncloud.org" target="_blank"><?php + echo $l->t( 'Forum' ); ?></a> <?php if($_['admin']) { ?> - <a class="button newquestion" href="https://github.com/owncloud/core/issues" target="_blank"><?php echo $l->t( 'Bugtracker' ); ?></a> + <a class="button newquestion" href="https://github.com/owncloud/core/issues" target="_blank"><?php + echo $l->t( 'Bugtracker' ); ?></a> <?php } ?> - <a class="button newquestion" href="http://owncloud.com" target="_blank"><?php echo $l->t( 'Commercial Support' ); ?></a> + <a class="button newquestion" href="http://owncloud.com" target="_blank"><?php + echo $l->t( 'Commercial Support' ); ?></a> </div> <div class="help-includes"> <iframe src="<?php echo($_['url']); ?>" class="help-iframe">abc</iframe> diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 6e9ad5e1acb..3a4a6093e77 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -5,7 +5,8 @@ */?> <div id="quota" class="personalblock"><div style="width:<?php echo $_['usage_relative'];?>%;"> - <p id="quotatext"><?php echo $l->t('You have used <strong>%s</strong> of the available <strong>%s</strong>', array($_['usage'], $_['total_space']));?></p> + <p id="quotatext"><?php echo $l->t('You have used <strong>%s</strong> of the available <strong>%s</strong>', + array($_['usage'], $_['total_space']));?></p> </div></div> @@ -37,7 +38,8 @@ if($_['passwordChangeSupported']) { <div id="passwordchanged"><?php echo $l->t('Your password was changed');?></div> <div id="passworderror"><?php echo $l->t('Unable to change your password');?></div> <input type="password" id="pass1" name="oldpassword" placeholder="<?php echo $l->t('Current password');?>" /> - <input type="password" id="pass2" name="password" placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#personal-show" /> + <input type="password" id="pass2" name="password" + placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#personal-show" /> <input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label> <input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" /> </fieldset> @@ -66,7 +68,8 @@ if($_['displayNameChangeSupported']) { <form id="lostpassword"> <fieldset class="personalblock"> <legend><strong><?php echo $l->t('Email');?></strong></legend> - <input type="text" name="email" id="email" value="<?php echo $_['email']; ?>" placeholder="<?php echo $l->t('Your email address');?>" /><span class="msg"></span><br /> + <input type="text" name="email" id="email" value="<?php echo $_['email']; ?>" + placeholder="<?php echo $l->t('Your email address');?>" /><span class="msg"></span><br /> <em><?php echo $l->t('Fill in an email address to enable password recovery');?></em> </fieldset> </form> @@ -79,7 +82,8 @@ if($_['displayNameChangeSupported']) { <option value="<?php echo $language['code'];?>"><?php echo $language['name'];?></option> <?php endforeach;?> </select> - <a href="https://www.transifex.net/projects/p/owncloud/team/<?php echo $_['languages'][0]['code'];?>/" target="_blank"><em><?php echo $l->t('Help translate');?></em></a> + <a href="https://www.transifex.net/projects/p/owncloud/team/<?php echo $_['languages'][0]['code'];?>/" + target="_blank"><em><?php echo $l->t('Help translate');?></em></a> </fieldset> </form> @@ -96,7 +100,8 @@ if($_['displayNameChangeSupported']) { <fieldset class="personalblock"> <legend><strong><?php echo $l->t('Version');?></strong></legend> - <strong>ownCloud</strong> <?php echo(OC_Util::getVersionString()); ?> <?php echo(OC_Util::getEditionString()); ?> <br /> + <strong>ownCloud</strong> <?php echo(OC_Util::getVersionString()); ?> + <?php echo(OC_Util::getEditionString()); ?> <br /> <?php echo $l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.'); ?> </fieldset> diff --git a/settings/users.php b/settings/users.php index 7fcd1d3ed02..94e6d0a9a10 100644 --- a/settings/users.php +++ b/settings/users.php @@ -40,12 +40,14 @@ foreach($quotaPreset as &$preset) { $quotaPreset=array_diff($quotaPreset, array('default', 'none')); $defaultQuota=OC_Appconfig::getValue('files', 'default_quota', 'none'); -$defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false && array_search($defaultQuota, array('none', 'default'))===false; +$defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false + && array_search($defaultQuota, array('none', 'default'))===false; // load users and quota foreach($accessibleusers as $uid => $displayName) { $quota=OC_Preferences::getValue($uid, 'files', 'quota', 'default'); - $isQuotaUserDefined=array_search($quota, $quotaPreset)===false && array_search($quota, array('none', 'default'))===false; + $isQuotaUserDefined=array_search($quota, $quotaPreset)===false + && array_search($quota, array('none', 'default'))===false; $name = $displayName; if ( $displayName != $uid ) { |