Standardize and update code
This commit is contained in:
parent
bd3315d5e7
commit
572eb35167
@ -24,8 +24,8 @@
|
||||
|
||||
require '../../main.inc.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("other","admin"));
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
|
||||
@ -24,8 +24,8 @@
|
||||
|
||||
require '../../main.inc.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("companies");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("companies","admin"));
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
|
||||
@ -40,10 +40,8 @@ if ($user->societe_id > 0)
|
||||
$socid = $user->societe_id;
|
||||
}
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("companies");
|
||||
$langs->load("users");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("companies","admin","users","other"));
|
||||
|
||||
// Load variable for pagination
|
||||
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||
|
||||
$langs->load("install");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("companies","install","users","other"));
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
@ -40,10 +41,6 @@ if ($user->societe_id > 0)
|
||||
$socid = $user->societe_id;
|
||||
}
|
||||
|
||||
$langs->load("companies");
|
||||
$langs->load("users");
|
||||
$langs->load("other");
|
||||
|
||||
$sortfield = GETPOST("sortfield",'alpha');
|
||||
$sortorder = GETPOST("sortorder",'alpha');
|
||||
$page = GETPOST("page",'int');
|
||||
|
||||
@ -27,8 +27,8 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/geturl.lib.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("admin","other"));
|
||||
|
||||
$action=GETPOST('action','alpha');
|
||||
|
||||
@ -76,7 +76,7 @@ print $langs->trans("CurrentVersion").' : <strong>'.DOL_VERSION.'</strong><br>';
|
||||
if (function_exists('curl_init'))
|
||||
{
|
||||
$conf->global->MAIN_USE_RESPONSE_TIMEOUT = 10;
|
||||
|
||||
|
||||
if ($action == 'getlastversion')
|
||||
{
|
||||
if ($sfurl)
|
||||
@ -95,7 +95,7 @@ if (function_exists('curl_init'))
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
// Show version
|
||||
print $langs->trans("LastStableVersion").' : <b>'. (($version != '0.0')?$version:$langs->trans("Unknown")) .'</b><br>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user