Skip to content

Commit e644a03

Browse files
committed
* Changed file headers
* Added isValidURL() helper function * Fixed issue that blocked submit event handlers when form validation was NOK * Fixed issue with helpers_functions.js.tpl that was not found Set version to 1.0.15
1 parent 6b18d29 commit e644a03

32 files changed

+600
-105
lines changed

ajax/existingFile.php

+28-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
6+
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
28+
229
include ("../../../inc/includes.php");
330
$b = "0";
431
if (isset($_GET['filename']) && file_exists(GLPI_ROOT.$_GET['filename'])) {
5-
$b = "1";
32+
$b = "1";
633
}
734
echo $b;
835

ajax/getFormValidations.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* -------------------------------------------------------------------------
44
Form Validation plugin
5-
Copyright (C) 2016 by Raynet SAS a company of A.Raymond Network.
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
66
77
http://www.araymond.com
88
-------------------------------------------------------------------------
@@ -24,7 +24,7 @@
2424
You should have received a copy of the GNU General Public License
2525
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
2626
--------------------------------------------------------------------------
27-
*/
27+
*/
2828

2929
$AJAX_INCLUDE = 1;
3030
include ('../../../inc/includes.php');

ajax/getLocales.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* -------------------------------------------------------------------------
44
Form Validation plugin
5-
Copyright (C) 2016 by Raynet SAS a company of A.Raymond Network.
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
66
77
http://www.araymond.com
88
-------------------------------------------------------------------------

ajax/setUnsetField.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* -------------------------------------------------------------------------
44
Form Validation plugin
5-
Copyright (C) 2016 by Raynet SAS a company of A.Raymond Network.
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
66
77
http://www.araymond.com
88
-------------------------------------------------------------------------

formvalidation.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</authors>
2626
<versions>
2727
<version>
28-
<num>1.0.11</num>
28+
<num>1.0.15</num>
2929
<compatibility>9.5</compatibility>
3030
</version>
3131
<version>

front/config.form.php

+26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
6+
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
228

329
include ("../../../inc/includes.php");
430

front/field.form.php

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
<?php
22
/*
3-
* @version $Id$
4-
-------------------------------------------------------------------------
5-
GLPI - Gestionnaire Libre de Parc Informatique
6-
Copyright (C) 2015 Teclib'.
7-
8-
http://glpi-project.org
9-
10-
based on GLPI - Gestionnaire Libre de Parc Informatique
11-
Copyright (C) 2003-2014 by the INDEPNET Development Team.
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
126
7+
http://www.araymond.com
138
-------------------------------------------------------------------------
149
1510
LICENSE
1611
17-
This file is part of GLPI.
12+
This file is part of Form Validation plugin for GLPI.
1813
19-
GLPI is free software; you can redistribute it and/or modify
14+
This file is free software; you can redistribute it and/or modify
2015
it under the terms of the GNU General Public License as published by
2116
the Free Software Foundation; either version 2 of the License, or
2217
(at your option) any later version.
@@ -29,7 +24,7 @@
2924
You should have received a copy of the GNU General Public License
3025
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
3126
--------------------------------------------------------------------------
32-
*/
27+
*/
3328

3429
/** @file
3530
* @brief

front/field.php

+27
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
6+
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
28+
229
include ("../../../inc/includes.php");
330

431

front/form.form.php

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
<?php
22
/*
3-
* @version $Id$
4-
-------------------------------------------------------------------------
5-
GLPI - Gestionnaire Libre de Parc Informatique
6-
Copyright (C) 2015 Teclib'.
7-
8-
http://glpi-project.org
9-
10-
based on GLPI - Gestionnaire Libre de Parc Informatique
11-
Copyright (C) 2003-2014 by the INDEPNET Development Team.
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
126
7+
http://www.araymond.com
138
-------------------------------------------------------------------------
149
1510
LICENSE
1611
17-
This file is part of GLPI.
12+
This file is part of Form Validation plugin for GLPI.
1813
19-
GLPI is free software; you can redistribute it and/or modify
14+
This file is free software; you can redistribute it and/or modify
2015
it under the terms of the GNU General Public License as published by
2116
the Free Software Foundation; either version 2 of the License, or
2217
(at your option) any later version.
@@ -29,7 +24,7 @@
2924
You should have received a copy of the GNU General Public License
3025
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
3126
--------------------------------------------------------------------------
32-
*/
27+
*/
3328

3429
/** @file
3530
* @brief

front/form.php

+27
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
6+
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
28+
229
include ("../../../inc/includes.php");
330

431

front/formvalidation.backup.php

+25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
26
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
328

429
include ("../../../inc/includes.php");
530

front/itemtype.form.php

+27
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
6+
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
28+
229
include ('../../../inc/includes.php');
330

431
$dropdown = new PluginFormvalidationItemtype();

front/itemtype.php

+26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
<?php
2+
/*
3+
* -------------------------------------------------------------------------
4+
Form Validation plugin
5+
Copyright (C) 2016-2023 by Raynet SAS a company of A.Raymond Network.
6+
7+
http://www.araymond.com
8+
-------------------------------------------------------------------------
9+
10+
LICENSE
11+
12+
This file is part of Form Validation plugin for GLPI.
13+
14+
This file is free software; you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation; either version 2 of the License, or
17+
(at your option) any later version.
18+
19+
GLPI is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
26+
--------------------------------------------------------------------------
27+
*/
228

329
include ('../../../inc/includes.php');
430

0 commit comments

Comments
 (0)