@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <div id="security-warning" class="section"> |
| 30 | - <h2><?php p($l->t('Security & setup warnings'));?></h2> |
|
| 31 | - <p class="settings-hint"><?php p($l->t('It\'s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the Tips & Tricks section and the documentation for more information.'));?></p> |
|
| 30 | + <h2><?php p($l->t('Security & setup warnings')); ?></h2> |
|
| 31 | + <p class="settings-hint"><?php p($l->t('It\'s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the Tips & Tricks section and the documentation for more information.')); ?></p> |
|
| 32 | 32 | <ul> |
| 33 | 33 | <?php |
| 34 | 34 | // is php setup properly to query system environment variables like getenv('PATH') |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | <?php p($l->t('It was not possible to execute the cron job via CLI. The following technical errors have appeared:')); ?> |
| 131 | 131 | <br> |
| 132 | 132 | <ol> |
| 133 | - <?php foreach(json_decode($_['cronErrors']) as $error) { if(isset($error->error)) {?> |
|
| 133 | + <?php foreach (json_decode($_['cronErrors']) as $error) { if (isset($error->error)) {?> |
|
| 134 | 134 | <li><?php p($error->error) ?> <?php p($error->hint) ?></li> |
| 135 | 135 | <?php }};?> |
| 136 | 136 | </ol> |
@@ -140,35 +140,35 @@ discard block |
||
| 140 | 140 | ?> |
| 141 | 141 | </ul> |
| 142 | 142 | |
| 143 | - <div id="postsetupchecks" data-check-wellknown="<?php if($_['checkForWorkingWellKnownSetup']) { p('true'); } else { p('false'); } ?>"> |
|
| 143 | + <div id="postsetupchecks" data-check-wellknown="<?php if ($_['checkForWorkingWellKnownSetup']) { p('true'); } else { p('false'); } ?>"> |
|
| 144 | 144 | <div class="loading"></div> |
| 145 | 145 | <ul class="errors hidden"></ul> |
| 146 | 146 | <ul class="warnings hidden"></ul> |
| 147 | 147 | <ul class="info hidden"></ul> |
| 148 | 148 | <p class="hint hidden"> |
| 149 | - <?php print_unescaped($l->t('Please double check the <a target="_blank" rel="noreferrer" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="%s">log</a>.', [link_to_docs('admin-install'), \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => 'logging'])] )); ?> |
|
| 149 | + <?php print_unescaped($l->t('Please double check the <a target="_blank" rel="noreferrer" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="%s">log</a>.', [link_to_docs('admin-install'), \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => 'logging'])])); ?> |
|
| 150 | 150 | </p> |
| 151 | 151 | </div> |
| 152 | 152 | <div id="security-warning-state"> |
| 153 | - <span class="hidden icon-checkmark"><?php p($l->t('All checks passed.'));?></span> |
|
| 153 | + <span class="hidden icon-checkmark"><?php p($l->t('All checks passed.')); ?></span> |
|
| 154 | 154 | </div> |
| 155 | 155 | </div> |
| 156 | 156 | |
| 157 | 157 | <div class="section" id="backgroundjobs"> |
| 158 | - <h2 class="inlineblock"><?php p($l->t('Background jobs'));?></h2> |
|
| 158 | + <h2 class="inlineblock"><?php p($l->t('Background jobs')); ?></h2> |
|
| 159 | 159 | <p class="cronlog inlineblock"> |
| 160 | 160 | <?php if ($_['lastcron'] !== false): |
| 161 | 161 | $relative_time = relative_modified_date($_['lastcron']); |
| 162 | 162 | $absolute_time = OC_Util::formatDate($_['lastcron']); |
| 163 | 163 | if (time() - $_['lastcron'] <= 3600): ?> |
| 164 | 164 | <span class="status success"></span> |
| 165 | - <span class="crondate" title="<?php p($absolute_time);?>"> |
|
| 166 | - <?php p($l->t("Last job ran %s.", [$relative_time]));?> |
|
| 165 | + <span class="crondate" title="<?php p($absolute_time); ?>"> |
|
| 166 | + <?php p($l->t("Last job ran %s.", [$relative_time])); ?> |
|
| 167 | 167 | </span> |
| 168 | 168 | <?php else: ?> |
| 169 | 169 | <span class="status error"></span> |
| 170 | - <span class="crondate" title="<?php p($absolute_time);?>"> |
|
| 171 | - <?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?> |
|
| 170 | + <span class="crondate" title="<?php p($absolute_time); ?>"> |
|
| 171 | + <?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time])); ?> |
|
| 172 | 172 | </span> |
| 173 | 173 | <?php endif; |
| 174 | 174 | else: ?> |
@@ -177,10 +177,10 @@ discard block |
||
| 177 | 177 | endif; ?> |
| 178 | 178 | </p> |
| 179 | 179 | <a target="_blank" rel="noreferrer" class="icon-info" |
| 180 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 180 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 181 | 181 | href="<?php p(link_to_docs('admin-background-jobs')); ?>"></a> |
| 182 | 182 | |
| 183 | - <p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.'));?></p> |
|
| 183 | + <p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.')); ?></p> |
|
| 184 | 184 | <p> |
| 185 | 185 | <input type="radio" name="mode" value="ajax" class="radio" |
| 186 | 186 | id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") { |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | }?>> |
| 208 | 208 | <label for="backgroundjobs_cron">Cron</label><br/> |
| 209 | 209 | <em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?> |
| 210 | - <?php if($_['cli_based_cron_possible']) { |
|
| 210 | + <?php if ($_['cli_based_cron_possible']) { |
|
| 211 | 211 | p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); |
| 212 | 212 | } else { |
| 213 | 213 | print_unescaped(str_replace( |
@@ -222,6 +222,6 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | <div class="section"> |
| 224 | 224 | <!-- should be the last part, so Updater can follow if enabled (it has no heading therefore). --> |
| 225 | - <h2><?php p($l->t('Version'));?></h2> |
|
| 225 | + <h2><?php p($l->t('Version')); ?></h2> |
|
| 226 | 226 | <p><strong><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" rel="noreferrer" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></strong></p> |
| 227 | 227 | </div> |
@@ -165,15 +165,20 @@ |
||
| 165 | 165 | <span class="crondate" title="<?php p($absolute_time);?>"> |
| 166 | 166 | <?php p($l->t("Last job ran %s.", [$relative_time]));?> |
| 167 | 167 | </span> |
| 168 | - <?php else: ?> |
|
| 168 | + <?php else { |
|
| 169 | + : ?> |
|
| 169 | 170 | <span class="status error"></span> |
| 170 | - <span class="crondate" title="<?php p($absolute_time);?>"> |
|
| 171 | + <span class="crondate" title="<?php p($absolute_time); |
|
| 172 | +} |
|
| 173 | +?>"> |
|
| 171 | 174 | <?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?> |
| 172 | 175 | </span> |
| 173 | 176 | <?php endif; |
| 174 | - else: ?> |
|
| 177 | + else { |
|
| 178 | + : ?> |
|
| 175 | 179 | <span class="status error"></span> |
| 176 | 180 | <?php p($l->t("Background job didn’t run yet!")); |
| 181 | + } |
|
| 177 | 182 | endif; ?> |
| 178 | 183 | </p> |
| 179 | 184 | <a target="_blank" rel="noreferrer" class="icon-info" |