Fix: Removed warnings
This commit is contained in:
parent
8398c093c7
commit
e82923b525
@ -40,7 +40,7 @@ accessforbidden();
|
|||||||
|
|
||||||
$typeconst=array('yesno','texte','chaine');
|
$typeconst=array('yesno','texte','chaine');
|
||||||
|
|
||||||
$action = getpost("action");
|
$action = GETPOST("action");
|
||||||
|
|
||||||
|
|
||||||
// Action mise a jour ou ajout d'une constante
|
// Action mise a jour ou ajout d'une constante
|
||||||
|
|||||||
@ -28,10 +28,10 @@ require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
|||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
$action = GETPOST("action");
|
||||||
|
|
||||||
$action = getpost("action");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
@ -87,11 +87,11 @@ print '<tr><td colspan="3" align="center"><br><input type="submit" class="button
|
|||||||
print '</table></form>';
|
print '</table></form>';
|
||||||
|
|
||||||
/*if (! empty($conf->global->CLICKTODIAL_URL))
|
/*if (! empty($conf->global->CLICKTODIAL_URL))
|
||||||
{
|
{
|
||||||
print $langs->trans("Test");
|
print $langs->trans("Test");
|
||||||
// Add a phone number to test
|
// Add a phone number to test
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dol_htmloutput_mesg($mesg);
|
dol_htmloutput_mesg($mesg);
|
||||||
|
|
||||||
|
|||||||
@ -28,8 +28,7 @@ require_once(DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php');
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
$action = GETPOST("action");
|
$action = GETPOST("action");
|
||||||
$value = GETPOST("value");
|
$value = GETPOST("value");
|
||||||
@ -68,12 +67,12 @@ if ($action == 'setmod')
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// constants of magre model
|
// constants of magre model
|
||||||
if ($action == 'updateMatrice') dolibarr_set_const($db, "CONTRACT_NUM_MATRICE",$_POST["matrice"],'chaine',0,'',$conf->entity);
|
if ($action == 'updateMatrice') dolibarr_set_const($db, "CONTRACT_NUM_MATRICE",$_POST["matrice"],'chaine',0,'',$conf->entity);
|
||||||
if ($action == 'updatePrefix') dolibarr_set_const($db, "CONTRACT_NUM_PREFIX",$_POST["prefix"],'chaine',0,'',$conf->entity);
|
if ($action == 'updatePrefix') dolibarr_set_const($db, "CONTRACT_NUM_PREFIX",$_POST["prefix"],'chaine',0,'',$conf->entity);
|
||||||
if ($action == 'setOffset') dolibarr_set_const($db, "CONTRACT_NUM_DELTA",$_POST["offset"],'chaine',0,'',$conf->entity);
|
if ($action == 'setOffset') dolibarr_set_const($db, "CONTRACT_NUM_DELTA",$_POST["offset"],'chaine',0,'',$conf->entity);
|
||||||
if ($action == 'setNumRestart') dolibarr_set_const($db, "CONTRACT_NUM_RESTART_BEGIN_YEAR",$_POST["numrestart"],'chaine',0,'',$conf->entity);
|
if ($action == 'setNumRestart') dolibarr_set_const($db, "CONTRACT_NUM_RESTART_BEGIN_YEAR",$_POST["numrestart"],'chaine',0,'',$conf->entity);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
|
|||||||
@ -27,15 +27,15 @@ require_once(DOL_DOCUMENT_ROOT."/compta/dons/class/don.class.php");
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("donations");
|
$langs->load("donations");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
|
|
||||||
$typeconst=array('yesno','texte','chaine');
|
$typeconst=array('yesno','texte','chaine');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Action
|
* Action
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($_GET["action"] == 'specimen')
|
if ($_GET["action"] == 'specimen')
|
||||||
{
|
{
|
||||||
$modele=$_GET["module"];
|
$modele=$_GET["module"];
|
||||||
|
|||||||
@ -30,8 +30,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("fckeditor");
|
$langs->load("fckeditor");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
// Constante et traduction de la description du module
|
// Constante et traduction de la description du module
|
||||||
$modules = array(
|
$modules = array(
|
||||||
@ -67,7 +66,6 @@ $picto = array(
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
foreach($modules as $const => $desc)
|
foreach($modules as $const => $desc)
|
||||||
{
|
{
|
||||||
if ($_GET["action"] == 'activate_'.strtolower($const))
|
if ($_GET["action"] == 'activate_'.strtolower($const))
|
||||||
@ -162,11 +160,11 @@ print '<center><br><input class="button" type="submit" name="save" value="'.$lan
|
|||||||
print '</form>'."\n";
|
print '</form>'."\n";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
print '<!-- Result -->';
|
print '<!-- Result -->';
|
||||||
print $_POST["formtestfield"];
|
print $_POST["formtestfield"];
|
||||||
print '<!-- Result -->';
|
print '<!-- Result -->';
|
||||||
print $conf->global->FCKEDITOR_TEST;
|
print $conf->global->FCKEDITOR_TEST;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,7 @@ $value = GETPOST("value");
|
|||||||
if ($action == 'updateMask')
|
if ($action == 'updateMask')
|
||||||
{
|
{
|
||||||
$maskconst=GETPOST("maskconst");
|
$maskconst=GETPOST("maskconst");
|
||||||
$maskvalue=getpost("maskvalue");
|
$maskvalue=GETPOST("maskvalue");
|
||||||
if ($maskconst) $res = dolibarr_set_const($db,$maskconst,$maskvalue,'chaine',0,'',$conf->entity);
|
if ($maskconst) $res = dolibarr_set_const($db,$maskconst,$maskvalue,'chaine',0,'',$conf->entity);
|
||||||
|
|
||||||
if (! $res > 0) $error++;
|
if (! $res > 0) $error++;
|
||||||
|
|||||||
@ -42,7 +42,7 @@ if ($action == 'set')
|
|||||||
{
|
{
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
$gimcdf= getpost("GEOIPMAXMIND_COUNTRY_DATAFILE");
|
$gimcdf= GETPOST("GEOIPMAXMIND_COUNTRY_DATAFILE");
|
||||||
|
|
||||||
if (! $gimcdf && ! file_exists($gimcdf))
|
if (! $gimcdf && ! file_exists($gimcdf))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user