Uniformize code
This commit is contained in:
parent
49146c4f83
commit
8a83b273ef
@ -26,8 +26,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
|
||||
$form=new Form($db);
|
||||
@ -38,7 +37,8 @@ $formfile = new FormFile($db);
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('','','EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad');
|
||||
$help_url='EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
|
||||
llxHeader('','',$help_url);
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
@ -108,7 +108,10 @@ $label=getStaticMember($db, 'label');
|
||||
<div class="formelementrow"><input type="radio" name="what" value="mysql" id="radio_dump_mysql" />
|
||||
<label for="radio_dump_mysql">MySQL Dump (mysqldump)</label>
|
||||
</div>
|
||||
<?php if (! empty($conf->global->MAIN_FEATURES_LEVEL)) { ?>
|
||||
<?php
|
||||
if (! empty($conf->global->MAIN_FEATURES_LEVEL))
|
||||
{
|
||||
?>
|
||||
<div class="formelementrow"><input type="radio" name="what" value="mysqlnobin" id="radio_dump_mysql_nobin" />
|
||||
<label for="radio_dump_mysql">MySQL Dump (php) <?php print img_warning('Backup can\'t be guaranted with this method. Prefer previous one'); ?></label>
|
||||
</div>
|
||||
|
||||
@ -26,15 +26,15 @@ require("../../main.inc.php");
|
||||
$langs->load("admin");
|
||||
$langs->load("other");
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('','','EN:Restores|FR:Restaurations|ES:Restauraciones');
|
||||
$help_url='EN:Restores|FR:Restaurations|ES:Restauraciones';
|
||||
llxHeader('','',$help_url);
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -24,8 +24,7 @@ require("../../main.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
if (!$user->admin) accessforbidden();
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -52,7 +52,8 @@ if ($file && ! $what)
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('','','EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad');
|
||||
$help_url='EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
|
||||
llxHeader('','',$help_url);
|
||||
|
||||
$form=new Form($db);
|
||||
$formfile = new FormFile($db);
|
||||
|
||||
@ -26,8 +26,7 @@ require("../../main.inc.php");
|
||||
$langs->load("admin");
|
||||
$langs->load("companies");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
if (!$user->admin) accessforbidden();
|
||||
|
||||
|
||||
|
||||
|
||||
@ -27,8 +27,7 @@ require_once(DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php');
|
||||
|
||||
$langs->load("install");
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
// Security check
|
||||
if ($user->societe_id > 0)
|
||||
|
||||
@ -27,8 +27,7 @@ include_once $dolibarr_main_document_root."/core/lib/files.lib.php";
|
||||
$langs->load("admin");
|
||||
$langs->load("other");
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
if ($_GET["msg"]) $message='<div class="error">'.$_GET["msg"].'</div>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user