mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Clean admin menu entries
This commit is contained in:
@@ -26,16 +26,13 @@
|
|||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
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/files.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
|
|
||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("help");
|
$langs->load("help");
|
||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
|
||||||
$youuselaststable = 0;
|
|
||||||
|
|
||||||
$action=GETPOST('action','alpha');
|
$action=GETPOST('action','alpha');
|
||||||
|
|
||||||
if (! $user->admin) accessforbidden();
|
if (! $user->admin) accessforbidden();
|
||||||
@@ -48,12 +45,7 @@ $version='0.0';
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($action == 'getlastversion')
|
// None
|
||||||
{
|
|
||||||
$result = getURLContent('http://sourceforge.net/projects/dolibarr/rss');
|
|
||||||
//var_dump($result['content']);
|
|
||||||
$sfurl = simplexml_load_string($result['content']);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -196,25 +188,29 @@ print '</div>';
|
|||||||
print '<div class="clearboth"></div>';
|
print '<div class="clearboth"></div>';
|
||||||
|
|
||||||
|
|
||||||
if ($youuselaststable)
|
$showpromotemessage=1;
|
||||||
|
if ($showpromotemessage)
|
||||||
{
|
{
|
||||||
print '<br>';
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
$tmp=versiondolibarrarray();
|
$tmp=versiondolibarrarray();
|
||||||
if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0))
|
if (is_numeric($tmp[2])) // Not alpha, beta or rc
|
||||||
{
|
{
|
||||||
print $langs->trans("TitleExampleForMajorRelease").':<br>';
|
print '<br>';
|
||||||
print '<textarea style="width:80%; min-height: 60px">';
|
print '<br>';
|
||||||
print $langs->trans("ExampleOfNewsMessageForMajorRelease", DOL_VERSION, DOL_VERSION);
|
|
||||||
print '</textarea>';
|
if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0))
|
||||||
}
|
{
|
||||||
else
|
print $langs->trans("TitleExampleForMajorRelease").':<br>';
|
||||||
{
|
print '<textarea style="width:80%; min-height: 60px">';
|
||||||
print $langs->trans("TitleExampleForMaintenanceRelease").':<br>';
|
print $langs->trans("ExampleOfNewsMessageForMajorRelease", DOL_VERSION, DOL_VERSION);
|
||||||
print '<textarea style="width:80%; min-height: 60px">';
|
print '</textarea>';
|
||||||
print $langs->trans("ExampleOfNewsMessageForMaintenanceRelease", DOL_VERSION, DOL_VERSION);
|
}
|
||||||
print '</textarea>';
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans("TitleExampleForMaintenanceRelease").':<br>';
|
||||||
|
print '<textarea style="width:80%; min-height: 60px">';
|
||||||
|
print $langs->trans("ExampleOfNewsMessageForMaintenanceRelease", DOL_VERSION, DOL_VERSION);
|
||||||
|
print '</textarea>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,15 +25,36 @@
|
|||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("install");
|
$langs->load("install");
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
|
||||||
|
$action=GETPOST('action','alpha');
|
||||||
|
|
||||||
if (! $user->admin)
|
if (! $user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
$sfurl = '';
|
||||||
|
$version='0.0';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Actions
|
||||||
|
*/
|
||||||
|
|
||||||
|
if ($action == 'getlastversion')
|
||||||
|
{
|
||||||
|
$result = getURLContent('http://sourceforge.net/projects/dolibarr/rss');
|
||||||
|
//var_dump($result['content']);
|
||||||
|
$sfurl = simplexml_load_string($result['content']);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user