mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
Look and feel v6
This commit is contained in:
@@ -30,15 +30,15 @@ $dellinkid = GETPOST('dellinkid','int');
|
|||||||
$addlinkid = GETPOST('idtolinkto','int');
|
$addlinkid = GETPOST('idtolinkto','int');
|
||||||
|
|
||||||
// Link invoice to order
|
// Link invoice to order
|
||||||
if ($action == 'addlink' && ! empty($permissiondellink) && ! GETPOST('cancel') && $id > 0 && $addlinkid > 0)
|
if ($action == 'addlink' && ! empty($permissiondellink) && ! GETPOST('cancel','alpha') && $id > 0 && $addlinkid > 0)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
$object->fetch_thirdparty();
|
$object->fetch_thirdparty();
|
||||||
$result = $object->add_object_linked(GETPOST('addlink'), $addlinkid);
|
$result = $object->add_object_linked(GETPOST('addlink','alpha'), $addlinkid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete link
|
// Delete link
|
||||||
if ($action == 'dellink' && ! empty($permissiondellink) && ! GETPOST('cancel') && $dellinkid > 0)
|
if ($action == 'dellink' && ! empty($permissiondellink) && ! GETPOST('cancel','alpha') && $dellinkid > 0)
|
||||||
{
|
{
|
||||||
$result=$object->deleteObjectLinked(0, '', 0, '', $dellinkid);
|
$result=$object->deleteObjectLinked(0, '', 0, '', $dellinkid);
|
||||||
if ($result < 0) setEventMessages($object->error,$object->errors,'errors');
|
if ($result < 0) setEventMessages($object->error,$object->errors,'errors');
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
/*
|
/*
|
||||||
* Add file in email form
|
* Add file in email form
|
||||||
*/
|
*/
|
||||||
if (GETPOST('addfile'))
|
if (GETPOST('addfile','alpha'))
|
||||||
{
|
{
|
||||||
$trackid = GETPOST('trackid','aZ09');
|
$trackid = GETPOST('trackid','aZ09');
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ if (! empty($_POST['removedfile']) && empty($_POST['removAll']))
|
|||||||
/*
|
/*
|
||||||
* Remove all files in email form
|
* Remove all files in email form
|
||||||
*/
|
*/
|
||||||
if (GETPOST('removAll'))
|
if (GETPOST('removAll','alpha'))
|
||||||
{
|
{
|
||||||
$trackid = GETPOST('trackid','aZ09');
|
$trackid = GETPOST('trackid','aZ09');
|
||||||
|
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ function dol_shutdown()
|
|||||||
* @param string $check Type of check
|
* @param string $check Type of check
|
||||||
* ''=no check (deprecated)
|
* ''=no check (deprecated)
|
||||||
* 'none'=no check (only for param that should have very rich content)
|
* 'none'=no check (only for param that should have very rich content)
|
||||||
* 'int'=check it's numeric
|
* 'int'=check it's numeric (integer or float)
|
||||||
* 'alpha'=check it's text and sign
|
* 'alpha'=check it's text and sign
|
||||||
* 'aZ'=check it's a-z only
|
* 'aZ'=check it's a-z only
|
||||||
* 'aZ09'=check it's simple alpha string (recommended for keys)
|
* 'aZ09'=check it's simple alpha string (recommended for keys)
|
||||||
|
|||||||
Reference in New Issue
Block a user