Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-24 22:35:00 +0400
committerkondou <kondou@ts.unde.re>2013-07-24 22:35:00 +0400
commit92af840a51c51440eb6f55d841b47c1b3f5a1b69 (patch)
tree1d0fcd7ef38bb121d1710068cf4ef42cc0a9518d /settings/templates
parent4818e0062e5444a9b657a30001b6dbaca44413c7 (diff)
parentff86b6f1346be9eb90ad82ae49742d22d4ee3e9d (diff)
Merge branch 'master' into css_cleanup_kondou
Conflicts: core/css/styles.css settings/templates/personal.php
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/admin.php60
-rw-r--r--settings/templates/personal.php10
-rw-r--r--settings/templates/users.php8
3 files changed, 45 insertions, 33 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 4af53a649b8..2b14c1460d6 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -4,8 +4,6 @@
* See the COPYING-README file.
*/
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
-
-$defaults = new OC_Defaults(); // initialize themable default strings and urls
?>
<?php
@@ -17,7 +15,7 @@ if (!$_['htaccessworking']) {
<legend><strong><?php p($l->t('Security Warning'));?></strong></legend>
<span class="securitywarning">
- <?php p($l->t('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.')); ?>
+ <?php p($l->t('Your data directory and your files are probably accessible from the internet. The .htaccess file 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.')); ?>
</span>
</fieldset>
@@ -32,7 +30,7 @@ if (!$_['isWebDavWorking']) {
<span class="securitywarning">
<?php p($l->t('Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.')); ?>
- <?php print_unescaped($l->t('Please double check the <a href=\'%s\'>installation guides</a>.', 'http://doc.owncloud.org/server/5.0/admin_manual/installation.html')); ?>
+ <?php print_unescaped($l->t('Please double check the <a href="%s">installation guides</a>.', $theme->getDocBaseUrl().'/server/5.0/admin_manual/installation.html')); ?>
</span>
</fieldset>
@@ -62,7 +60,7 @@ if (!$_['islocaleworking']) {
<span class="connectionwarning">
<?php
$locales = 'en_US.UTF-8/en_US.UTF8';
- p($l->t('This ownCloud server can\'t set system locale to %s. 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 %s.', array($locales, $locales)));
+ p($l->t('System locale can\'t be set to %s. 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 %s.', array($locales, $locales)));
?>
</span>
@@ -77,7 +75,7 @@ if (!$_['internetconnectionworking']) {
<legend><strong><?php p($l->t('Internet connection not working'));?></strong></legend>
<span class="connectionwarning">
- <?php p($l->t('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.')); ?>
+ <?php p($l->t('This 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.')); ?>
</span>
</fieldset>
@@ -96,7 +94,7 @@ if (!$_['internetconnectionworking']) {
<tr>
<td>
<input type="radio" name="mode" value="ajax"
- id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] == "ajax") {
+ id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") {
print_unescaped('checked="checked"');
} ?>>
<label for="backgroundjobs_ajax">AJAX</label><br/>
@@ -106,21 +104,21 @@ if (!$_['internetconnectionworking']) {
<tr>
<td>
<input type="radio" name="mode" value="webcron"
- id="backgroundjobs_webcron" <?php if ($_['backgroundjobs_mode'] == "webcron") {
+ id="backgroundjobs_webcron" <?php if ($_['backgroundjobs_mode'] === "webcron") {
print_unescaped('checked="checked"');
} ?>>
<label for="backgroundjobs_webcron">Webcron</label><br/>
- <em><?php p($l->t("cron.php is registered at a webcron service. Call the cron.php page in the owncloud root once a minute over http.")); ?></em>
+ <em><?php p($l->t("cron.php is registered at a webcron service to call cron.php once a minute over http.")); ?></em>
</td>
</tr>
<tr>
<td>
<input type="radio" name="mode" value="cron"
- id="backgroundjobs_cron" <?php if ($_['backgroundjobs_mode'] == "cron") {
+ id="backgroundjobs_cron" <?php if ($_['backgroundjobs_mode'] === "cron") {
print_unescaped('checked="checked"');
} ?>>
<label for="backgroundjobs_cron">Cron</label><br/>
- <em><?php p($l->t("Use systems cron service. Call the cron.php file in the owncloud folder via a system cronjob once a minute.")); ?></em>
+ <em><?php p($l->t("Use systems cron service to call the cron.php file once a minute.")); ?></em>
</td>
</tr>
</table>
@@ -132,34 +130,44 @@ if (!$_['internetconnectionworking']) {
<tr>
<td id="enable">
<input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled"
- value="1" <?php if ($_['shareAPIEnabled'] == 'yes') print_unescaped('checked="checked"'); ?> />
+ value="1" <?php if ($_['shareAPIEnabled'] === 'yes') print_unescaped('checked="checked"'); ?> />
<label for="shareAPIEnabled"><?php p($l->t('Enable Share API'));?></label><br/>
<em><?php p($l->t('Allow apps to use the Share API')); ?></em>
</td>
</tr>
<tr>
- <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('style="display:none"');?>>
+ <td <?php if ($_['shareAPIEnabled'] === 'no') print_unescaped('style="display:none"');?>>
<input type="checkbox" name="shareapi_allow_links" id="allowLinks"
- value="1" <?php if ($_['allowLinks'] == 'yes') print_unescaped('checked="checked"'); ?> />
+ value="1" <?php if ($_['allowLinks'] === 'yes') print_unescaped('checked="checked"'); ?> />
<label for="allowLinks"><?php p($l->t('Allow links'));?></label><br/>
<em><?php p($l->t('Allow users to share items to the public with links')); ?></em>
</td>
</tr>
+ <?php if (!\OCP\App::isEnabled('files_encryption')) { ?>
<tr>
<td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('style="display:none"');?>>
+ <input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload"
+ value="1" <?php if ($_['allowPublicUpload'] == 'yes') print_unescaped('checked="checked"'); ?> />
+ <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/>
+ <em><?php p($l->t('Allow users to enable others to upload into their publicly shared folders')); ?></em>
+ </td>
+ </tr>
+ <?php } ?>
+ <tr>
+ <td <?php if ($_['shareAPIEnabled'] === 'no') print_unescaped('style="display:none"');?>>
<input type="checkbox" name="shareapi_allow_resharing" id="allowResharing"
- value="1" <?php if ($_['allowResharing'] == 'yes') print_unescaped('checked="checked"'); ?> />
+ value="1" <?php if ($_['allowResharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
<label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
<em><?php p($l->t('Allow users to share items shared with them again')); ?></em>
</td>
</tr>
<tr>
- <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('style="display:none"');?>>
+ <td <?php if ($_['shareAPIEnabled'] === 'no') print_unescaped('style="display:none"');?>>
<input type="radio" name="shareapi_share_policy" id="sharePolicyGlobal"
- value="global" <?php if ($_['sharePolicy'] == 'global') print_unescaped('checked="checked"'); ?> />
+ value="global" <?php if ($_['sharePolicy'] === 'global') print_unescaped('checked="checked"'); ?> />
<label for="sharePolicyGlobal"><?php p($l->t('Allow users to share with anyone')); ?></label><br/>
<input type="radio" name="shareapi_share_policy" id="sharePolicyGroupsOnly"
- value="groups_only" <?php if ($_['sharePolicy'] == 'groups_only') print_unescaped('checked="checked"'); ?> />
+ value="groups_only" <?php if ($_['sharePolicy'] === 'groups_only') print_unescaped('checked="checked"'); ?> />
<label for="sharePolicyGroupsOnly"><?php p($l->t('Allow users to only share with users in their groups'));?></label><br/>
</td>
</tr>
@@ -181,10 +189,16 @@ if (!$_['internetconnectionworking']) {
?>
<?php if (!$_['isConnectedViaHTTPS']) p('disabled'); ?> />
<label for="forcessl"><?php p($l->t('Enforce HTTPS'));?></label><br/>
- <em><?php p($l->t('Enforces the clients to connect to ownCloud via an encrypted connection.')); ?></em>
+ <em><?php p($l->t(
+ 'Forces the clients to connect to %s via an encrypted connection.',
+ $theme->getName()
+ )); ?></em>
<?php if (!$_['isConnectedViaHTTPS']) {
print_unescaped("<br/><em>");
- p($l->t('Please connect to this ownCloud instance via HTTPS to enable or disable the SSL enforcement.'));
+ p($l->t(
+ 'Please connect to your %s via HTTPS to enable or disable the SSL enforcement.',
+ $theme->getName()
+ ));
print_unescaped("</em>");
}
?>
@@ -198,7 +212,7 @@ if (!$_['internetconnectionworking']) {
<?php p($l->t('Log level'));?> <select name='loglevel' id='loglevel'>
<option value='<?php p($_['loglevel'])?>'><?php p($levels[$_['loglevel']])?></option>
<?php for ($i = 0; $i < 5; $i++):
- if ($i != $_['loglevel']):?>
+ if ($i !== $_['loglevel']):?>
<option value='<?php p($i)?>'><?php p($levels[$i])?></option>
<?php endif;
endfor;?>
@@ -234,7 +248,7 @@ endfor;?>
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Version'));?></strong></legend>
- <strong><?php p($defaults->getName()); ?></strong> <?php p(OC_Util::getVersionString()); ?>
+ <strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getVersionString()); ?>
<?php if (OC_Util::getEditionString() === ''): ?>
<p>
<?php print_unescaped($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>.')); ?>
@@ -243,6 +257,6 @@ endfor;?>
</fieldset>
<fieldset class="personalblock credits-footer">
<p>
- <?php print_unescaped($defaults->getShortFooter()); ?>
+ <?php print_unescaped($theme->getShortFooter()); ?>
</p>
</fieldset>
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index e6d43a430fd..7d677bdd455 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -4,8 +4,6 @@
* See the COPYING-README file.
*/?>
-<?php $defaults = new OC_Defaults(); // initialize themable default strings and urls ?>
-
<div class="clientsbox center">
<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
<a href="<?php p($_['clients']['desktop']); ?>" target="_blank">
@@ -96,7 +94,7 @@ if($_['passwordChangeSupported']) {
<?php endforeach;?>
</select>
<?php if (OC_Util::getEditionString() === ''): ?>
- <a href="https://www.transifex.net/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
+ <a href="https://www.transifex.com/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
target="_blank"><em><?php p($l->t('Help translate'));?></em></a>
<?php endif; ?>
</fieldset>
@@ -105,7 +103,7 @@ if($_['passwordChangeSupported']) {
<fieldset class="personalblock">
<legend><strong><?php p($l->t('WebDAV'));?></strong></legend>
<code><?php print_unescaped(OC_Helper::linkToRemote('webdav')); ?></code><br />
- <em><?php p($l->t('Use this address to connect to your ownCloud in your file manager'));?></em>
+ <em><?php print_unescaped($l->t('Use this address to <a href="%s/server/5.0/user_manual/files/files.html" target="_blank">access your Files via WebDAV</a>', array($theme->getDocBaseUrl())));?></em>
</fieldset>
<?php foreach($_['forms'] as $form) {
@@ -114,13 +112,13 @@ if($_['passwordChangeSupported']) {
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Version'));?></strong></legend>
- <strong><?php p($defaults->getName()); ?></strong> <?php p(OC_Util::getVersionString()); ?><br/>
+ <strong><?php p($theme->getName()); ?></strong> <?php p(OC_Util::getVersionString()); ?><br/>
<?php if (OC_Util::getEditionString() === ''): ?>
<?php print_unescaped($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>.')); ?>
<?php endif; ?>
</fieldset>
<fieldset class="personalblock credits-footer">
<p>
- <?php print_unescaped($defaults->getShortFooter()); ?>
+ <?php print_unescaped($theme->getShortFooter()); ?>
</p>
</fieldset>
diff --git a/settings/templates/users.php b/settings/templates/users.php
index 9fcc11ab89a..4ddef3ff1b5 100644
--- a/settings/templates/users.php
+++ b/settings/templates/users.php
@@ -43,12 +43,12 @@ $_['subadmingroups'] = array_flip($items);
<?php if((bool) $_['isadmin']): ?>
<select class='quota'>
<option
- <?php if($_['default_quota']=='none') print_unescaped('selected="selected"');?>
+ <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?>
value='none'>
<?php p($l->t('Unlimited'));?>
</option>
<?php foreach($_['quota_preset'] as $preset):?>
- <?php if($preset!='default'):?>
+ <?php if($preset !== 'default'):?>
<option
<?php if($_['default_quota']==$preset) print_unescaped('selected="selected"');?>
value='<?php p($preset);?>'>
@@ -132,12 +132,12 @@ $_['subadmingroups'] = array_flip($items);
<td class="quota">
<select class='quota-user'>
<option
- <?php if($user['quota']=='default') print_unescaped('selected="selected"');?>
+ <?php if($user['quota'] === 'default') print_unescaped('selected="selected"');?>
value='default'>
<?php p($l->t('Default'));?>
</option>
<option
- <?php if($user['quota']=='none') print_unescaped('selected="selected"');?>
+ <?php if($user['quota'] === 'none') print_unescaped('selected="selected"');?>
value='none'>
<?php p($l->t('Unlimited'));?>
</option>