2016-01-24 21:35:41 +01:00
< ? php
2024-06-11 01:05:16 +02:00
/* Copyright ( C ) 2016 - 2023 Laurent Destailleur < eldy @ users . sourceforge . net >
* Copyright ( C ) 2020 Nicolas ZABOURI < info @ inovea - conseil . com >
2024-03-13 16:45:14 +01:00
* Copyright ( C ) 2024 MDW < mdeweerd @ users . noreply . github . com >
2024-06-03 13:44:14 +02:00
* Copyright ( C ) 2024 Frédéric France < frederic . france @ free . fr >
2016-01-24 21:35:41 +01:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
2019-09-23 21:55:30 +02:00
* along with this program . If not , see < https :// www . gnu . org / licenses />.
2016-01-24 21:35:41 +01:00
*/
/**
2016-05-01 19:49:03 +02:00
* \file htdocs / website / index . php
2016-02-02 16:24:12 +01:00
* \ingroup website
2016-05-01 19:49:03 +02:00
* \brief Page to website view / edit
2016-01-24 21:35:41 +01:00
*/
2024-02-23 16:54:23 +01:00
/** @phan-file-suppress PhanPluginSuspiciousParamPosition */
2024-01-30 13:13:58 +01:00
// We allow POST of rich content with js and style, but only for this php file and if into some given POST variable
2024-02-26 21:47:12 +01:00
define ( 'NOSCANPOSTFORINJECTION' , array ( 'PAGE_CONTENT' , 'WEBSITE_CSS_INLINE' , 'WEBSITE_JS_INLINE' , 'WEBSITE_HTML_HEADER' , 'htmlheader' ));
2024-01-30 13:13:58 +01:00
2019-08-13 05:22:49 +02:00
define ( 'USEDOLIBARREDITOR' , 1 );
2020-02-21 17:53:37 +01:00
define ( 'FORCE_CKEDITOR' , 1 ); // We need CKEditor, even if module is off.
2023-12-04 13:53:48 +01:00
if ( ! defined ( 'DISABLE_JS_GRAHP' )) {
define ( 'DISABLE_JS_GRAPH' , 1 );
}
2016-05-01 19:49:03 +02:00
2019-12-07 15:46:14 +01:00
//header('X-XSS-Protection:0'); // Disable XSS filtering protection of some browsers (note: use of Content-Security-Policy is more efficient). Disabled as deprecated.
2019-01-04 19:10:25 +01:00
2022-08-29 17:40:32 +02:00
// Load Dolibarr environment
2016-01-24 21:35:41 +01:00
require '../main.inc.php' ;
2016-02-02 16:24:12 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php' ;
2016-05-01 16:34:50 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php' ;
2017-08-21 03:13:44 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/website.lib.php' ;
2019-08-12 22:19:24 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/website2.lib.php' ;
2021-04-07 11:13:14 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/images.lib.php' ;
2017-07-19 16:38:00 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php' ;
2017-07-22 20:01:29 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formadmin.class.php' ;
2017-07-23 16:20:53 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formwebsite.class.php' ;
2018-02-19 19:47:42 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php' ;
2021-02-10 09:11:53 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php' ;
2017-10-20 21:39:19 +02:00
require_once DOL_DOCUMENT_ROOT . '/website/class/website.class.php' ;
require_once DOL_DOCUMENT_ROOT . '/website/class/websitepage.class.php' ;
2020-05-26 00:19:32 +02:00
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php' ;
2024-03-21 03:47:16 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php' ;
2016-02-02 16:24:12 +01:00
2024-11-04 23:53:20 +01:00
/**
* @ var Conf $conf
* @ var DoliDB $db
* @ var HookManager $hookmanager
* @ var Translate $langs
* @ var User $user
*/
2022-08-29 17:40:32 +02:00
// Load translation files required by the page
2020-02-21 17:53:37 +01:00
$langs -> loadLangs ( array ( " admin " , " other " , " website " , " errors " ));
2016-02-02 16:24:12 +01:00
2022-08-29 17:40:32 +02:00
// Security check
2023-10-15 18:46:18 +02:00
if ( ! $user -> hasRight ( 'website' , 'read' )) {
2021-02-26 12:03:07 +01:00
accessforbidden ();
}
2016-02-02 16:24:12 +01:00
2020-02-21 17:53:37 +01:00
$conf -> dol_hide_leftmenu = 1 ; // Force hide of left menu.
2016-04-19 11:02:55 +02:00
2020-02-21 17:53:37 +01:00
$error = 0 ;
2024-06-11 01:05:16 +02:00
$virtualurl = '' ;
$dataroot = '' ;
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$websiteid = GETPOSTINT ( 'websiteid' );
2020-02-21 17:53:37 +01:00
$websitekey = GETPOST ( 'website' , 'alpha' );
$page = GETPOST ( 'page' , 'alpha' );
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$pageid = GETPOSTINT ( 'pageid' );
2020-03-13 10:05:54 +01:00
$pageref = GETPOST ( 'pageref' , 'alphanohtml' );
2020-04-11 18:18:53 +02:00
2020-02-21 17:53:37 +01:00
$action = GETPOST ( 'action' , 'aZ09' );
2020-04-11 18:18:53 +02:00
$massaction = GETPOST ( 'massaction' , 'alpha' ); // The bulk action (combo box choice into lists)
2020-02-21 17:53:37 +01:00
$confirm = GETPOST ( 'confirm' , 'alpha' );
$cancel = GETPOST ( 'cancel' , 'alpha' );
2020-04-11 18:18:53 +02:00
$toselect = GETPOST ( 'toselect' , 'array' ); // Array of ids of elements selected into a list
2023-12-04 13:53:48 +01:00
$contextpage = GETPOST ( 'contextpage' , 'aZ' ) ? GETPOST ( 'contextpage' , 'aZ' ) : 'websitelist' ; // To manage different context of search
2020-02-21 17:53:37 +01:00
$backtopage = GETPOST ( 'backtopage' , 'alpha' ); // Go back to a dedicated page
$optioncss = GETPOST ( 'optioncss' , 'aZ' ); // Option for the css output (always '' except when 'print')
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$dol_hide_topmenu = GETPOSTINT ( 'dol_hide_topmenu' );
$dol_hide_leftmenu = GETPOSTINT ( 'dol_hide_leftmenu' );
2022-05-12 20:18:58 +02:00
$dol_openinpopup = GETPOST ( 'dol_openinpopup' , 'aZ09' );
2017-11-18 15:41:30 +01:00
2020-02-21 17:53:37 +01:00
$type_container = GETPOST ( 'WEBSITE_TYPE_CONTAINER' , 'alpha' );
2017-11-18 15:41:30 +01:00
$section_dir = GETPOST ( 'section_dir' , 'alpha' );
$file_manager = GETPOST ( 'file_manager' , 'alpha' );
2019-05-28 16:10:11 +02:00
$replacesite = GETPOST ( 'replacesite' , 'alpha' );
2022-10-08 17:04:20 +02:00
$mode = GETPOST ( 'mode' , 'alpha' );
2016-02-02 16:24:12 +01:00
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'deletesite' , 'alpha' )) {
$action = 'deletesite' ;
}
if ( GETPOST ( 'delete' , 'alpha' )) {
$action = 'delete' ;
}
if ( GETPOST ( 'preview' , 'alpha' )) {
$action = 'preview' ;
}
if ( GETPOST ( 'createsite' , 'alpha' )) {
$action = 'createsite' ;
}
if ( GETPOST ( 'createcontainer' , 'alpha' )) {
$action = 'createcontainer' ;
}
if ( GETPOST ( 'editcss' , 'alpha' )) {
$action = 'editcss' ;
}
if ( GETPOST ( 'editmenu' , 'alpha' )) {
$action = 'editmenu' ;
}
if ( GETPOST ( 'setashome' , 'alpha' )) {
$action = 'setashome' ;
}
if ( GETPOST ( 'editmeta' , 'alpha' )) {
$action = 'editmeta' ;
}
if ( GETPOST ( 'editsource' , 'alpha' )) {
$action = 'editsource' ;
}
if ( GETPOST ( 'editcontent' , 'alpha' )) {
$action = 'editcontent' ;
}
if ( GETPOST ( 'exportsite' , 'alpha' )) {
$action = 'exportsite' ;
}
if ( GETPOST ( 'importsite' , 'alpha' )) {
$action = 'importsite' ;
}
if ( GETPOST ( 'createfromclone' , 'alpha' )) {
$action = 'createfromclone' ;
}
if ( GETPOST ( 'createpagefromclone' , 'alpha' )) {
$action = 'createpagefromclone' ;
}
if ( empty ( $action ) && $file_manager ) {
$action = 'file_manager' ;
}
2024-08-31 17:23:13 +02:00
if ( $action == 'replacesite' || ( empty ( $action ) && $replacesite )) { // Test on permission not required
2022-10-08 17:04:20 +02:00
$mode = 'replacesite' ;
2021-02-26 12:03:07 +01:00
}
if ( GETPOST ( 'refreshsite' ) || GETPOST ( 'refreshsite_x' ) || GETPOST ( 'refreshsite.x' )) {
$pageid = 0 ;
}
2019-11-09 12:03:11 +01:00
2017-11-10 13:45:38 +01:00
// Load variable for pagination
2024-03-16 11:41:00 +01:00
$limit = GETPOSTINT ( 'limit' ) ? GETPOSTINT ( 'limit' ) : $conf -> liste_limit ;
2022-01-13 11:09:37 +01:00
$sortfield = GETPOST ( 'sortfield' , 'aZ09comma' );
$sortorder = GETPOST ( 'sortorder' , 'aZ09comma' );
2024-03-01 01:52:40 +01:00
$page = GETPOSTISSET ( 'pageplusone' ) ? ( GETPOSTINT ( 'pageplusone' ) - 1 ) : GETPOSTINT ( " page " );
2021-02-26 12:03:07 +01:00
if ( empty ( $page ) || $page == - 1 ) {
$page = 0 ;
} // If $page is not defined, or '' or -1
2017-11-10 13:45:38 +01:00
$offset = $limit * $page ;
$pageprev = $page - 1 ;
$pagenext = $page + 1 ;
//if (! $sortfield) $sortfield='name';
//if (! $sortorder) $sortorder='ASC';
2021-02-26 12:03:07 +01:00
if ( empty ( $action )) {
$action = 'preview' ;
}
2016-01-24 21:35:41 +01:00
2019-11-12 00:15:34 +01:00
$object = new Website ( $db );
$objectpage = new WebsitePage ( $db );
2016-02-02 16:24:12 +01:00
2023-09-05 13:36:55 +02:00
$listofwebsites = $object -> fetchAll ( 'ASC' , 'position' ); // Init list of websites
2016-04-29 20:35:38 +02:00
// If website not defined, we take first found
2021-02-26 12:03:07 +01:00
if ( ! ( $websiteid > 0 ) && empty ( $websitekey ) && $action != 'createsite' ) {
2023-09-05 13:36:55 +02:00
foreach ( $listofwebsites as $key => $valwebsite ) {
2019-11-12 00:15:34 +01:00
$websitekey = $valwebsite -> ref ;
2017-10-07 13:09:31 +02:00
break ;
}
2016-04-29 20:35:38 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $websiteid > 0 || $websitekey ) {
2019-10-31 21:09:33 +01:00
$res = $object -> fetch ( $websiteid , $websitekey );
$websitekey = $object -> ref ;
2016-04-23 21:34:10 +02:00
}
2019-10-31 21:09:33 +01:00
2018-07-22 17:18:35 +02:00
$website = $object ;
2016-05-01 19:49:03 +02:00
2020-03-23 14:12:48 +01:00
// Check pageid received as parameter
2021-02-26 12:03:07 +01:00
if ( $pageid < 0 ) {
$pageid = 0 ;
}
if (( $pageid > 0 || $pageref ) && $action != 'addcontainer' ) {
2018-09-24 17:12:51 +02:00
$res = $objectpage -> fetch ( $pageid , ( $object -> id > 0 ? $object -> id : null ), $pageref );
2024-02-23 16:54:23 +01:00
// @phan-suppress
2021-02-26 12:03:07 +01:00
if ( $res == 0 ) {
2020-10-07 15:01:28 +02:00
$res = $objectpage -> fetch ( $pageid , ( $object -> id > 0 ? $object -> id : null ), null , $pageref );
}
2018-09-24 17:12:51 +02:00
// Check if pageid is inside the new website, if not we reset param pageid
2021-02-26 12:03:07 +01:00
if ( $res >= 0 && $object -> id > 0 ) {
if ( $objectpage -> fk_website != $object -> id ) { // We have a bad page that does not belong to web site
if ( $object -> fk_default_home > 0 ) {
2019-11-12 00:15:34 +01:00
$res = $objectpage -> fetch ( $object -> fk_default_home , $object -> id , '' ); // We search first page of web site
2021-02-26 12:03:07 +01:00
if ( $res > 0 ) {
$pageid = $object -> fk_default_home ;
}
} else {
2019-11-12 00:15:34 +01:00
$res = $objectpage -> fetch ( 0 , $object -> id , '' ); // We search first page of web site
2021-02-26 12:03:07 +01:00
if ( $res == 0 ) { // Page was not found, we reset it
2019-11-12 00:15:34 +01:00
$objectpage = new WebsitePage ( $db );
2023-12-04 13:53:48 +01:00
} else { // We found a page, we set pageid to it.
2018-10-01 13:09:12 +02:00
$pageid = $objectpage -> id ;
}
2018-09-24 17:12:51 +02:00
}
2023-12-04 13:53:48 +01:00
} else { // We have a valid page. We force pageid for the case we got the page with a fetch on ref.
2018-09-24 17:12:51 +02:00
$pageid = $objectpage -> id ;
}
}
}
// Define pageid if pageid and pageref not received as parameter or was wrong
2021-02-26 12:03:07 +01:00
if ( empty ( $pageid ) && empty ( $pageref ) && $object -> id > 0 && $action != 'createcontainer' ) {
2018-09-24 15:14:32 +02:00
$pageid = $object -> fk_default_home ;
2021-02-26 12:03:07 +01:00
if ( empty ( $pageid )) {
2019-11-12 00:15:34 +01:00
$array = $objectpage -> fetchAll ( $object -> id , 'ASC,ASC' , 'type_container,pageurl' );
2021-02-26 12:03:07 +01:00
if ( ! is_array ( $array ) && $array < 0 ) {
2024-01-20 09:22:38 +01:00
dol_print_error ( null , $objectpage -> error , $objectpage -> errors );
2021-02-26 12:03:07 +01:00
}
2019-11-12 00:15:34 +01:00
$atleastonepage = ( is_array ( $array ) && count ( $array ) > 0 );
2018-09-24 15:14:32 +02:00
2023-12-04 13:53:48 +01:00
$firstpageid = 0 ;
$homepageid = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $array as $key => $valpage ) {
if ( empty ( $firstpageid )) {
$firstpageid = $valpage -> id ;
}
if ( $object -> fk_default_home && $key == $object -> fk_default_home ) {
$homepageid = $valpage -> id ;
}
2018-09-24 15:14:32 +02:00
}
2019-11-12 00:15:34 +01:00
$pageid = ( $homepageid ? $homepageid : $firstpageid ); // We choose home page and if not defined yet, we take first page
2018-09-24 15:14:32 +02:00
}
}
2016-04-23 21:34:10 +02:00
2016-05-01 16:34:50 +02:00
global $dolibarr_main_data_root ;
2022-04-25 10:14:30 +02:00
$pathofwebsite = $dolibarr_main_data_root . ( $conf -> entity > 1 ? '/' . $conf -> entity : '' ) . '/website/' . $websitekey ;
2019-11-12 00:15:34 +01:00
$filehtmlheader = $pathofwebsite . '/htmlheader.html' ;
$filecss = $pathofwebsite . '/styles.css.php' ;
$filejs = $pathofwebsite . '/javascript.js.php' ;
$filerobot = $pathofwebsite . '/robots.txt' ;
$filehtaccess = $pathofwebsite . '/.htaccess' ;
$filetpl = $pathofwebsite . '/page' . $pageid . '.tpl.php' ;
$fileindex = $pathofwebsite . '/index.php' ;
$filewrapper = $pathofwebsite . '/wrapper.php' ;
$filemanifestjson = $pathofwebsite . '/manifest.json.php' ;
$filereadme = $pathofwebsite . '/README.md' ;
2022-09-03 19:02:42 +02:00
$filelicense = $pathofwebsite . '/LICENSE' ;
2020-05-23 13:10:33 +02:00
$filemaster = $pathofwebsite . '/master.inc.php' ;
2016-05-01 16:34:50 +02:00
2016-05-07 16:38:32 +02:00
// Define $urlwithroot
2019-11-12 00:15:34 +01:00
$urlwithouturlroot = preg_replace ( '/' . preg_quote ( DOL_URL_ROOT , '/' ) . '$/i' , '' , trim ( $dolibarr_main_url_root ));
$urlwithroot = $urlwithouturlroot . DOL_URL_ROOT ; // This is to use external domain name found into config file
2016-05-07 16:38:32 +02:00
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
2016-05-01 16:34:50 +02:00
2022-11-14 01:19:15 +01:00
$permtouploadfile = $user -> hasRight ( 'website' , 'write' );
2017-11-18 15:41:30 +01:00
$diroutput = $conf -> medias -> multidir_output [ $conf -> entity ];
2019-11-12 00:15:34 +01:00
$relativepath = $section_dir ;
2020-06-12 14:35:50 +02:00
$upload_dir = preg_replace ( '/\/$/' , '' , $diroutput ) . '/' . preg_replace ( '/^\//' , '' , $relativepath );
2017-11-18 15:41:30 +01:00
2018-01-08 12:31:11 +01:00
$htmlheadercontentdefault = '' ;
2019-11-12 00:15:34 +01:00
$htmlheadercontentdefault .= '<link rel="stylesheet" id="google-fonts-css" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,700" />' . " \n " ;
$htmlheadercontentdefault .= '<link rel="stylesheet" id="font-wasesome-css" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />' . " \n " ;
$htmlheadercontentdefault .= '<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>' . " \n " ;
$htmlheadercontentdefault .= '<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>' . " \n " ;
$htmlheadercontentdefault .= '<!--' . " \n " ;
$htmlheadercontentdefault .= '<script src="/document.php?modulepart=medias&file=css/myfile.css"></script>' . " \n " ;
$htmlheadercontentdefault .= '<script src="/document.php?modulepart=medias&file=js/myfile.js"></script>' . " \n " ;
$htmlheadercontentdefault .= '-->' . " \n " ;
2018-01-02 17:27:05 +01:00
2019-08-12 17:34:18 +02:00
$manifestjsoncontentdefault = '' ;
2019-11-12 00:15:34 +01:00
$manifestjsoncontentdefault .= ' {
2019-08-12 17:34:18 +02:00
" name " : " MyWebsite " ,
" short_name " : " MyWebsite " ,
" start_url " : " / " ,
" lang " : " en-US " ,
" display " : " standalone " ,
" background_color " : " #fff " ,
" description " : " A simple Web app. " ,
" icons " : [{
2022-02-03 19:21:59 +01:00
" src " : " images/'.urlencode( $website->ref ).'/homescreen48.png " ,
2019-08-12 17:34:18 +02:00
" sizes " : " 48x48 " ,
" type " : " image/png "
}, {
2022-02-03 19:21:59 +01:00
" src " : " image/'.urlencode( $website->ref ).'/homescreen72.png " ,
2019-08-12 17:34:18 +02:00
" sizes " : " 72x72 " ,
" type " : " image/png "
}, {
2022-02-03 19:21:59 +01:00
" src " : " image/'.urlencode( $website->ref ).'/homescreen96.png " ,
2019-08-12 17:34:18 +02:00
" sizes " : " 96x96 " ,
" type " : " image/png "
}, {
2022-02-03 19:21:59 +01:00
" src " : " image/'.urlencode( $website->ref ).'/homescreen144.png " ,
2019-08-12 17:34:18 +02:00
" sizes " : " 144x144 " ,
" type " : " image/png "
}, {
2022-02-03 19:21:59 +01:00
" src " : " image/'.urlencode( $website->ref ).'/homescreen168.png " ,
2019-08-12 17:34:18 +02:00
" sizes " : " 168x168 " ,
" type " : " image/png "
}, {
2022-02-03 19:21:59 +01:00
" src " : " image/'.urlencode( $website->ref ).'/homescreen192.png " ,
2019-08-12 17:34:18 +02:00
" sizes " : " 192x192 " ,
" type " : " image/png "
}],
" related_applications " : [{
" platform " : " play " ,
" url " : " https://play.google.com/store/apps/details?id=com.nltechno.dolidroidpro "
}]
} ' ;
2020-04-11 18:18:53 +02:00
$listofpages = array ();
$algo = '' ;
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'optionmeta' )) {
$algo .= 'meta' ;
}
if ( GETPOST ( 'optioncontent' )) {
$algo .= 'content' ;
}
if ( GETPOST ( 'optionsitefiles' )) {
$algo .= 'sitefiles' ;
}
2020-04-11 18:18:53 +02:00
if ( empty ( $sortfield )) {
2024-08-31 17:23:13 +02:00
if ( $action == 'file_manager' ) { // Test on permission not required
2023-12-04 13:53:48 +01:00
$sortfield = 'name' ;
$sortorder = 'ASC' ;
2020-05-03 13:00:39 +02:00
} else {
2023-12-04 13:53:48 +01:00
$sortfield = 'pageurl' ;
$sortorder = 'ASC' ;
2020-05-03 13:00:39 +02:00
}
2020-04-11 18:18:53 +02:00
}
2024-09-17 14:06:36 +02:00
$searchkey = GETPOST ( 'searchstring' , 'restricthtmlallowunvalid' ); // or 'none', must be same then $searchstring
2020-04-11 18:18:53 +02:00
2024-08-31 17:23:13 +02:00
if ( $action == 'replacesite' || $mode == 'replacesite' ) { // Test on permission not required
2020-05-26 12:25:41 +02:00
$containertype = GETPOST ( 'optioncontainertype' , 'aZ09' ) != '-1' ? GETPOST ( 'optioncontainertype' , 'aZ09' ) : '' ;
$langcode = GETPOST ( 'optionlanguage' , 'aZ09' );
$otherfilters = array ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
if ( GETPOSTINT ( 'optioncategory' ) > 0 ) {
$otherfilters [ 'category' ] = GETPOSTINT ( 'optioncategory' );
2020-05-26 12:25:41 +02:00
}
2020-07-09 14:07:41 +02:00
$listofpages = getPagesFromSearchCriterias ( $containertype , $algo , $searchkey , 1000 , $sortfield , $sortorder , $langcode , $otherfilters , - 1 );
2020-04-11 18:18:53 +02:00
}
2024-02-09 15:58:49 +01:00
$usercanedit = $user -> hasRight ( 'website' , 'write' );
$permissiontoadd = $user -> hasRight ( 'website' , 'write' ); // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles
2023-02-01 03:39:40 +01:00
$permissiontodelete = $user -> hasRight ( 'website' , 'delete' );
2019-08-12 17:34:18 +02:00
2017-11-18 15:41:30 +01:00
2016-02-02 16:24:12 +01:00
/*
* Actions
*/
2019-04-05 11:34:06 +02:00
// Protections
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'refreshsite' ) || GETPOST ( 'refreshsite_x' ) || GETPOST ( 'refreshsite.x' ) || GETPOST ( 'refreshpage' ) || GETPOST ( 'refreshpage_x' ) || GETPOST ( 'refreshpage.x' )) {
2020-10-07 15:01:28 +02:00
$action = 'preview' ; // To avoid to make an action on another page or another site when we click on button to select another site or page.
2019-04-05 11:34:06 +02:00
}
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'refreshsite' , 'alpha' ) || GETPOST ( 'refreshsite.x' , 'alpha' ) || GETPOST ( 'refreshsite_x' , 'alpha' )) { // If we change the site, we reset the pageid and cancel addsite action.
2024-08-31 19:15:14 +02:00
if ( $action == 'addsite' ) { // Test on permission not required here
2021-02-26 12:03:07 +01:00
$action = 'preview' ;
}
2024-08-31 19:15:14 +02:00
if ( $action == 'updatesource' ) { // Test on permission not required here
2021-02-26 12:03:07 +01:00
$action = 'preview' ;
}
2020-10-07 15:01:28 +02:00
$pageid = $object -> fk_default_home ;
2021-02-26 12:03:07 +01:00
if ( empty ( $pageid )) {
2020-10-07 15:01:28 +02:00
$array = $objectpage -> fetchAll ( $object -> id , 'ASC,ASC' , 'type_container,pageurl' );
2021-02-26 12:03:07 +01:00
if ( ! is_array ( $array ) && $array < 0 ) {
2024-01-20 09:22:38 +01:00
dol_print_error ( null , $objectpage -> error , $objectpage -> errors );
2021-02-26 12:03:07 +01:00
}
2020-10-07 15:01:28 +02:00
$atleastonepage = ( is_array ( $array ) && count ( $array ) > 0 );
2023-12-04 13:53:48 +01:00
$firstpageid = 0 ;
$homepageid = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $array as $key => $valpage ) {
if ( empty ( $firstpageid )) {
$firstpageid = $valpage -> id ;
}
if ( $object -> fk_default_home && $key == $object -> fk_default_home ) {
$homepageid = $valpage -> id ;
}
2020-10-07 15:01:28 +02:00
}
$pageid = ( $homepageid ? $homepageid : $firstpageid ); // We choose home page and if not defined yet, we take first page
}
2019-04-05 11:34:06 +02:00
}
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'refreshpage' , 'alpha' ) && ! in_array ( $action , array ( 'updatecss' ))) {
$action = 'preview' ;
}
2019-04-05 11:34:06 +02:00
2024-08-31 19:15:14 +02:00
if ( $cancel && $action == 'renamefile' ) { // Test on permission not required here
2020-06-03 11:40:51 +02:00
$cancel = '' ;
}
2019-09-02 18:43:22 +02:00
// Cancel
2021-02-26 12:03:07 +01:00
if ( $cancel ) {
2019-09-02 18:43:22 +02:00
$action = 'preview' ;
2022-10-08 17:04:20 +02:00
$mode = '' ;
2021-02-26 12:03:07 +01:00
if ( $backtopage ) {
2019-09-02 18:43:22 +02:00
header ( " Location: " . $backtopage );
exit ;
}
}
2019-04-05 11:34:06 +02:00
2019-09-02 18:43:22 +02:00
$savbacktopage = $backtopage ;
2024-09-05 16:05:37 +02:00
$backtopage = $_SERVER [ " PHP_SELF " ] . '?file_manager=1&website=' . urlencode ( $websitekey ) . '&pageid=' . urlencode (( string ) $pageid ) . ( GETPOST ( 'section_dir' , 'alpha' ) ? '§ion_dir=' . urlencode ( GETPOST ( 'section_dir' , 'alpha' )) : '' ); // used after a confirm_deletefile into actions_linkedfiles.inc.php
2021-02-26 12:03:07 +01:00
if ( $sortfield ) {
2021-03-13 12:33:26 +01:00
$backtopage .= '&sortfield=' . urlencode ( $sortfield );
2021-02-26 12:03:07 +01:00
}
if ( $sortorder ) {
2021-03-13 12:33:26 +01:00
$backtopage .= '&sortorder=' . urlencode ( $sortorder );
2021-02-26 12:03:07 +01:00
}
2022-11-14 01:19:15 +01:00
include DOL_DOCUMENT_ROOT . '/core/actions_linkedfiles.inc.php' ; // This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file.
2021-06-19 23:52:52 +02:00
2019-09-02 18:43:22 +02:00
$backtopage = $savbacktopage ;
2022-05-17 14:55:38 +02:00
//var_dump($backtopage);
//var_dump($action);
2017-11-18 15:41:30 +01:00
2024-08-31 19:15:14 +02:00
if ( $action == 'renamefile' ) { // Test on permission not required here. Must be after include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; If action were renamefile, we set it to 'file_manager'
2020-06-03 12:34:09 +02:00
$action = 'file_manager' ;
}
2023-08-13 15:56:09 +02:00
if ( $action == 'setwebsiteonline' && $usercanedit ) {
2022-10-09 20:52:50 +02:00
$website -> setStatut ( $website :: STATUS_VALIDATED , null , '' , 'WEBSITE_MODIFY' , 'status' );
2024-03-05 00:26:24 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( GETPOST ( 'website' )) . '&pageid=' . GETPOSTINT ( 'websitepage' ));
2022-10-09 20:52:50 +02:00
exit ;
}
2023-08-13 15:56:09 +02:00
if ( $action == 'setwebsiteoffline' && $usercanedit ) {
2022-10-09 20:52:50 +02:00
$result = $website -> setStatut ( $website :: STATUS_DRAFT , null , '' , 'WEBSITE_MODIFY' , 'status' );
2024-03-05 00:26:24 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( GETPOST ( 'website' )) . '&pageid=' . GETPOSTINT ( 'websitepage' ));
2022-10-09 20:52:50 +02:00
exit ;
}
2024-08-31 19:15:14 +02:00
if ( $action == 'seteditinline' ) { // Test on permission not required here
2024-12-30 03:14:20 +01:00
if ( ! getDolGlobalString ( 'WEBSITE_EDITINLINE_SAVE_CKEDITOR_EDIT' )) {
// Show warning for feature not yet ready
setEventMessages ( $langs -> trans ( " FeatureNotYetAvailable " ), null , 'warnings' );
}
2018-07-20 15:01:50 +02:00
dolibarr_set_const ( $db , 'WEBSITE_EDITINLINE' , 1 );
2021-02-21 14:46:52 +01:00
//dolibarr_set_const($db, 'WEBSITE_SUBCONTAINERSINLINE', 0); // Force disable of 'Include dynamic content'
2024-03-05 00:26:24 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( GETPOST ( 'website' )) . '&pageid=' . GETPOSTINT ( 'pageid' ));
2018-07-20 15:01:50 +02:00
exit ;
}
2024-08-31 19:15:14 +02:00
if ( $action == 'unseteditinline' ) { // Test on permission not required here
2018-07-20 15:01:50 +02:00
dolibarr_del_const ( $db , 'WEBSITE_EDITINLINE' );
2024-03-05 00:26:24 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( GETPOST ( 'website' )) . '&pageid=' . GETPOSTINT ( 'pageid' ));
2018-09-10 19:36:46 +02:00
exit ;
}
2024-08-31 19:15:14 +02:00
if ( $action == 'setshowsubcontainers' ) { // Test on permission not required here
2018-09-10 19:36:46 +02:00
dolibarr_set_const ( $db , 'WEBSITE_SUBCONTAINERSINLINE' , 1 );
2021-02-21 14:46:52 +01:00
//dolibarr_set_const($db, 'WEBSITE_EDITINLINE', 0); // Force disable of edit inline
2024-03-05 00:26:24 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( GETPOST ( 'website' )) . '&pageid=' . GETPOSTINT ( 'pageid' ));
2018-09-10 19:36:46 +02:00
exit ;
}
2024-08-31 19:15:14 +02:00
if ( $action == 'unsetshowsubcontainers' ) { // Test on permission not required here
2018-09-10 19:36:46 +02:00
dolibarr_del_const ( $db , 'WEBSITE_SUBCONTAINERSINLINE' );
2024-03-05 00:26:24 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( GETPOST ( 'website' )) . '&pageid=' . GETPOSTINT ( 'pageid' ));
2018-07-20 15:01:50 +02:00
exit ;
}
2023-08-13 15:56:09 +02:00
if ( $massaction == 'replace' && GETPOST ( 'confirmmassaction' , 'alpha' ) && ! $searchkey && $usercanedit ) {
2022-10-08 17:04:20 +02:00
$mode = 'replacesite' ;
2023-08-22 15:22:03 +02:00
$action = 'replacesite' ;
2020-05-26 12:46:51 +02:00
$massaction = '' ;
2019-08-13 00:34:42 +02:00
}
2023-08-13 15:56:09 +02:00
if ( $action == 'deletetemplate' && $usercanedit ) {
2022-10-09 15:52:37 +02:00
$dirthemes = array ( '/doctemplates/websites' );
if ( ! empty ( $conf -> modules_parts [ 'websitetemplates' ])) { // Using this feature slow down application
foreach ( $conf -> modules_parts [ 'websitetemplates' ] as $reldir ) {
$dirthemes = array_merge ( $dirthemes , ( array ) ( $reldir . 'doctemplates/websites' ));
}
}
$dirthemes = array_unique ( $dirthemes );
// Delete template files and dir
$mode = 'importsite' ;
$action = 'importsite' ;
if ( count ( $dirthemes )) {
$i = 0 ;
foreach ( $dirthemes as $dir ) {
//print $dirroot.$dir;exit;
$dirtheme = DOL_DATA_ROOT . $dir ; // This include loop on $conf->file->dol_document_root
if ( is_dir ( $dirtheme )) {
$templateuserfile = GETPOST ( 'templateuserfile' );
$imguserfile = preg_replace ( '/\.zip$/' , '' , $templateuserfile ) . '.jpg' ;
dol_delete_file ( $dirtheme . '/' . $templateuserfile );
dol_delete_file ( $dirtheme . '/' . $imguserfile );
}
}
}
}
2020-06-03 01:02:48 +02:00
// Set category
2021-02-26 12:03:07 +01:00
if ( $massaction == 'setcategory' && GETPOST ( 'confirmmassaction' , 'alpha' ) && $usercanedit ) {
2020-05-26 22:29:46 +02:00
$error = 0 ;
2020-06-03 00:46:09 +02:00
$nbupdate = 0 ;
2020-05-26 22:29:46 +02:00
$db -> begin ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$categoryid = GETPOSTINT ( 'setcategory' );
2020-05-26 22:29:46 +02:00
if ( $categoryid > 0 ) {
$tmpwebsitepage = new WebsitePage ( $db );
$category = new Categorie ( $db );
$category -> fetch ( $categoryid );
2020-05-28 20:02:07 +02:00
foreach ( $toselect as $tmpid ) {
2020-05-26 22:29:46 +02:00
$tmpwebsitepage -> id = $tmpid ;
$result = $category -> add_type ( $tmpwebsitepage , 'website_page' );
if ( $result < 0 && $result != - 3 ) {
$error ++ ;
setEventMessages ( $category -> error , $category -> errors , 'errors' );
break ;
} else {
$nbupdate ++ ;
}
}
}
if ( $error ) {
$db -> rollback ();
} else {
if ( $nbupdate ) {
setEventMessages ( $langs -> trans ( " RecordsModified " , $nbupdate ), null , 'mesgs' );
}
$db -> commit ();
}
// Now we reload list
2020-07-09 14:07:41 +02:00
$listofpages = getPagesFromSearchCriterias ( $containertype , $algo , $searchkey , 1000 , $sortfield , $sortorder , $langcode , $otherfilters , - 1 );
2020-05-26 22:29:46 +02:00
}
2022-10-09 20:52:50 +02:00
// Del category
2022-10-08 17:04:20 +02:00
if ( $massaction == 'delcategory' && GETPOST ( 'confirmmassaction' , 'alpha' ) && $usercanedit ) {
$error = 0 ;
$nbupdate = 0 ;
$db -> begin ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$categoryid = GETPOSTINT ( 'setcategory' );
2022-10-08 17:04:20 +02:00
if ( $categoryid > 0 ) {
$tmpwebsitepage = new WebsitePage ( $db );
$category = new Categorie ( $db );
$category -> fetch ( $categoryid );
foreach ( $toselect as $tmpid ) {
$tmpwebsitepage -> id = $tmpid ;
$result = $category -> del_type ( $tmpwebsitepage , 'website_page' );
if ( $result < 0 && $result != - 3 ) {
$error ++ ;
setEventMessages ( $category -> error , $category -> errors , 'errors' );
break ;
} else {
$nbupdate ++ ;
}
}
}
if ( $error ) {
$db -> rollback ();
} else {
if ( $nbupdate ) {
setEventMessages ( $langs -> trans ( " RecordsModified " , $nbupdate ), null , 'mesgs' );
}
$db -> commit ();
}
// Now we reload list
$listofpages = getPagesFromSearchCriterias ( $containertype , $algo , $searchkey , 1000 , $sortfield , $sortorder , $langcode , $otherfilters , - 1 );
}
2020-05-26 22:29:46 +02:00
2020-04-11 18:18:53 +02:00
// Replacement of string into pages
2021-03-20 19:30:08 +01:00
if ( $massaction == 'replace' && GETPOST ( 'confirmmassaction' , 'alpha' ) && $usercanedit ) {
2024-09-17 14:06:36 +02:00
$replacestring = GETPOST ( 'replacestring' , 'restricthtmlallowunvalid' ); // or 'none', must be same then $searchstring
2020-04-12 13:25:19 +02:00
2022-11-29 18:01:27 +01:00
$dolibarrdataroot = preg_replace ( '/([\\/]+)$/i' , '' , DOL_DATA_ROOT );
$allowimportsite = true ;
if ( dol_is_file ( $dolibarrdataroot . '/installmodules.lock' )) {
$allowimportsite = false ;
}
if ( ! $allowimportsite ) {
// Blocked by installmodules.lock
if ( getDolGlobalString ( 'MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US' )) {
// Show clean corporate message
$message = $langs -> trans ( 'InstallModuleFromWebHasBeenDisabledContactUs' );
} else {
// Show technical generic message
$message = $langs -> trans ( " InstallModuleFromWebHasBeenDisabledByFile " , $dolibarrdataroot . '/installmodules.lock' );
}
setEventMessages ( $message , null , 'errors' );
2023-10-15 18:46:18 +02:00
} elseif ( ! $user -> hasRight ( 'website' , 'writephp' )) {
2020-04-12 13:25:19 +02:00
setEventMessages ( " NotAllowedToAddDynamicContent " , null , 'errors' );
2021-02-26 12:03:07 +01:00
} elseif ( ! $replacestring ) {
2020-04-11 18:18:53 +02:00
setEventMessages ( " ErrorReplaceStringEmpty " , null , 'errors' );
2021-02-26 12:03:07 +01:00
} else {
2020-04-11 18:18:53 +02:00
$nbreplacement = 0 ;
2020-04-13 13:24:42 +02:00
foreach ( $toselect as $keyselected ) {
2020-04-11 18:18:53 +02:00
$objectpage = $listofpages [ 'list' ][ $keyselected ];
if ( $objectpage -> pageurl ) {
dol_syslog ( " Replace string into page " . $objectpage -> pageurl );
if ( GETPOST ( 'optioncontent' , 'aZ09' )) {
$objectpage -> content = str_replace ( $searchkey , $replacestring , $objectpage -> content );
}
if ( GETPOST ( 'optionmeta' , 'aZ09' )) {
$objectpage -> title = str_replace ( $searchkey , $replacestring , $objectpage -> title );
$objectpage -> description = str_replace ( $searchkey , $replacestring , $objectpage -> description );
$objectpage -> keywords = str_replace ( $searchkey , $replacestring , $objectpage -> keywords );
}
2020-04-11 18:29:42 +02:00
$filealias = $pathofwebsite . '/' . $objectpage -> pageurl . '.php' ;
$filetpl = $pathofwebsite . '/page' . $objectpage -> id . '.tpl.php' ;
// Save page alias
$result = dolSavePageAlias ( $filealias , $object , $objectpage );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
2020-04-11 18:29:42 +02:00
setEventMessages ( 'Failed to write file ' . basename ( $filealias ), null , 'errors' );
}
// Save page of content
2021-10-20 17:08:33 +02:00
$result = dolSavePageContent ( $filetpl , $object , $objectpage , 1 );
2021-02-26 12:03:07 +01:00
if ( $result ) {
2020-04-11 18:29:42 +02:00
$nbreplacement ++ ;
//var_dump($objectpage->content);exit;
$objectpage -> update ( $user );
} else {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filetpl , null , 'errors' );
$action = 'createcontainer' ;
break ;
2020-04-11 18:18:53 +02:00
}
}
}
2020-04-11 18:29:42 +02:00
if ( $nbreplacement > 0 ) {
2020-04-11 18:18:53 +02:00
setEventMessages ( $langs -> trans ( " ReplacementDoneInXPages " , $nbreplacement ), null , 'mesgs' );
}
2020-04-11 18:29:42 +02:00
2020-05-26 12:25:41 +02:00
$containertype = GETPOST ( 'optioncontainertype' , 'aZ09' ) != '-1' ? GETPOST ( 'optioncontainertype' , 'aZ09' ) : '' ;
$langcode = GETPOST ( 'optionlanguage' , 'aZ09' );
$otherfilters = array ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
if ( GETPOSTINT ( 'optioncategory' ) > 0 ) {
$otherfilters [ 'category' ] = GETPOSTINT ( 'optioncategory' );
2020-05-26 12:25:41 +02:00
}
2020-04-11 18:29:42 +02:00
// Now we reload list
2020-05-26 12:25:41 +02:00
$listofpages = getPagesFromSearchCriterias ( $containertype , $algo , $searchkey , 1000 , $sortfield , $sortorder , $langcode , $otherfilters );
2020-04-11 18:18:53 +02:00
}
}
2019-08-13 00:34:42 +02:00
2017-11-18 15:41:30 +01:00
// Add directory
2017-12-02 13:24:21 +01:00
/*
if ( $action == 'adddir' && $permtouploadfile )
2017-11-18 15:41:30 +01:00
{
$ecmdir -> ref = 'NOTUSEDYET' ;
$ecmdir -> label = GETPOST ( " label " );
$ecmdir -> description = GETPOST ( " desc " );
//$id = $ecmdir->create($user);
if ( $id > 0 )
{
header ( " Location: " . $_SERVER [ " PHP_SELF " ]);
exit ;
}
else
{
setEventMessages ( 'Error ' . $langs -> trans ( $ecmdir -> error ), null , 'errors' );
2017-12-12 01:40:34 +01:00
$action = " createcontainer " ;
2017-11-18 15:41:30 +01:00
}
clearstatcache ();
}
2017-12-02 13:24:21 +01:00
*/
2017-11-18 15:41:30 +01:00
2024-03-18 17:27:06 +01:00
// Add a website
2021-03-20 19:30:08 +01:00
if ( $action == 'addsite' && $usercanedit ) {
2017-09-01 12:19:55 +02:00
$db -> begin ();
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'virtualhost' , 'alpha' ) && ! preg_match ( '/^http/' , GETPOST ( 'virtualhost' , 'alpha' ))) {
2020-10-07 15:01:28 +02:00
$error ++ ;
setEventMessages ( $langs -> trans ( 'ErrorURLMustStartWithHttp' , $langs -> transnoentitiesnoconv ( " VirtualHost " )), null , 'errors' );
2019-01-23 15:06:28 +01:00
}
2021-02-26 12:03:07 +01:00
if ( ! $error && ! GETPOST ( 'WEBSITE_REF' , 'alpha' )) {
2017-09-01 12:19:55 +02:00
$error ++ ;
2018-08-20 19:10:33 +02:00
$langs -> load ( " errors " );
2022-07-27 20:11:57 +02:00
setEventMessages ( $langs -> transnoentities ( " ErrorFieldRequired " , $langs -> transnoentities ( " WebsiteName " )), null , 'errors' );
2017-09-01 12:19:55 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! $error && ! preg_match ( '/^[a-z0-9_\-\.]+$/i' , GETPOST ( 'WEBSITE_REF' , 'alpha' ))) {
2017-09-01 12:19:55 +02:00
$error ++ ;
2018-02-19 16:46:29 +01:00
$langs -> load ( " errors " );
2017-09-01 12:19:55 +02:00
setEventMessages ( $langs -> transnoentities ( " ErrorFieldCanNotContainSpecialCharacters " , $langs -> transnoentities ( " Ref " )), null , 'errors' );
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2020-04-10 10:59:32 +02:00
$arrayotherlang = explode ( ',' , GETPOST ( 'WEBSITE_OTHERLANG' , 'alphanohtml' ));
foreach ( $arrayotherlang as $key => $val ) {
2021-04-07 09:29:40 +02:00
// It possible we have empty val here if postparam WEBSITE_OTHERLANG is empty or set like this : 'en,,sv' or 'en,sv,'
2023-12-04 13:53:48 +01:00
if ( empty ( trim ( $val ))) {
continue ;
}
2020-04-10 10:59:32 +02:00
$arrayotherlang [ $key ] = substr ( trim ( $val ), 0 , 2 ); // Kept short language code only
2020-02-27 22:58:36 +01:00
}
2019-11-12 00:15:34 +01:00
$tmpobject = new Website ( $db );
2019-01-27 11:55:16 +01:00
$tmpobject -> ref = GETPOST ( 'WEBSITE_REF' , 'alpha' );
2020-02-19 18:32:04 +01:00
$tmpobject -> description = GETPOST ( 'WEBSITE_DESCRIPTION' , 'alphanohtml' );
$tmpobject -> lang = GETPOST ( 'WEBSITE_LANG' , 'aZ09' );
Qual: Apply automatic phan fixes (deprecations, unneeded imports) (#28154)
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
2024-02-13 21:46:12 +01:00
$tmpobject -> otherlang = implode ( ',' , $arrayotherlang );
2019-01-27 11:55:16 +01:00
$tmpobject -> virtualhost = GETPOST ( 'virtualhost' , 'alpha' );
2017-09-01 12:19:55 +02:00
$result = $tmpobject -> create ( $user );
2022-11-20 12:54:43 +01:00
if ( $result == 0 ) {
$error ++ ;
setEventMessages ( $langs -> trans ( " ErrorLabelAlreadyExists " ), null , 'errors' );
} elseif ( $result < 0 ) {
2017-09-01 12:19:55 +02:00
$error ++ ;
setEventMessages ( $tmpobject -> error , $tmpobject -> errors , 'errors' );
}
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-09-01 12:19:55 +02:00
$db -> commit ();
setEventMessages ( $langs -> trans ( " SiteAdded " , $object -> ref ), null , 'mesgs' );
2019-11-12 00:15:34 +01:00
$action = '' ;
2017-09-01 12:19:55 +02:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . $tmpobject -> ref );
exit ;
2021-02-26 12:03:07 +01:00
} else {
2017-09-01 12:19:55 +02:00
$db -> rollback ();
2019-11-12 00:15:34 +01:00
$action = 'createsite' ;
2017-09-01 12:19:55 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-09-01 12:19:55 +02:00
$action = 'preview' ;
$id = $object -> id ;
}
}
2024-03-13 16:45:14 +01:00
'@phan-var-force int $error' ;
2017-12-12 01:40:34 +01:00
// Add page/container
2021-03-20 19:30:08 +01:00
if ( $action == 'addcontainer' && $usercanedit ) {
2017-10-13 15:23:24 +02:00
dol_mkdir ( $pathofwebsite );
2017-10-07 13:09:31 +02:00
$db -> begin ();
$objectpage -> fk_website = $object -> id ;
2020-12-18 14:27:22 +01:00
2021-02-26 12:03:07 +01:00
if ( GETPOSTISSET ( 'fetchexternalurl' )) { // Fetch from external url
2019-11-12 00:15:34 +01:00
$urltograb = GETPOST ( 'externalurl' , 'alpha' );
2024-09-16 01:46:20 +02:00
$grabimages = GETPOSTINT ( 'grabimages' ) ? 1 : 0 ;
2019-11-12 00:15:34 +01:00
$grabimagesinto = GETPOST ( 'grabimagesinto' , 'alpha' );
2017-10-07 13:09:31 +02:00
2017-12-10 17:59:19 +01:00
include_once DOL_DOCUMENT_ROOT . '/core/lib/geturl.lib.php' ;
2024-03-13 16:45:14 +01:00
// The include seems to break typing on variables
2017-12-10 17:59:19 +01:00
2021-02-26 12:03:07 +01:00
if ( empty ( $urltograb )) {
2019-10-31 21:09:33 +01:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorFieldRequired " , $langs -> transnoentitiesnoconv ( " URL " )), null , 'errors' );
$action = 'createcontainer' ;
2021-02-26 12:03:07 +01:00
} elseif ( ! preg_match ( '/^http/' , $urltograb )) {
2018-11-30 14:30:00 +01:00
$error ++ ;
2019-01-23 15:06:28 +01:00
$langs -> load ( " errors " );
2018-11-30 14:30:00 +01:00
setEventMessages ( 'Error URL must start with http:// or https://' , null , 'errors' );
$action = 'createcontainer' ;
2017-10-07 02:29:27 +02:00
}
2024-09-28 11:15:38 +02:00
$pageurl = '' ;
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2018-11-30 14:30:00 +01:00
// Clean url to grab, so url can be
// http://www.example.com/ or http://www.example.com/dir1/ or http://www.example.com/dir1/aaa
$urltograbwithoutdomainandparam = preg_replace ( '/^https?:\/\/[^\/]+\/?/i' , '' , $urltograb );
2019-08-14 01:43:06 +02:00
//$urltograbwithoutdomainandparam = preg_replace('/^file:\/\/[^\/]+\/?/i', '', $urltograb);
2018-11-30 14:30:00 +01:00
$urltograbwithoutdomainandparam = preg_replace ( '/\?.*$/' , '' , $urltograbwithoutdomainandparam );
2021-02-26 12:03:07 +01:00
if ( empty ( $urltograbwithoutdomainandparam ) && ! preg_match ( '/\/$/' , $urltograb )) {
2019-11-12 00:15:34 +01:00
$urltograb .= '/' ;
2018-11-30 14:30:00 +01:00
}
2019-01-27 11:55:16 +01:00
$pageurl = dol_sanitizeFileName ( preg_replace ( '/[\/\.]/' , '-' , preg_replace ( '/\/+$/' , '' , $urltograbwithoutdomainandparam )));
2018-12-17 17:29:04 +01:00
2018-11-30 14:30:00 +01:00
$urltograbdirwithoutslash = dirname ( $urltograb . '.' );
$urltograbdirrootwithoutslash = getRootURLFromURL ( $urltograbdirwithoutslash );
2024-01-12 17:18:52 +01:00
// Example, now $urltograbdirwithoutslash is https://www.dolimed.com/screenshots
2018-11-30 14:30:00 +01:00
// and $urltograbdirrootwithoutslash is https://www.dolimed.com
}
2017-08-20 18:50:51 +02:00
2018-02-19 14:56:37 +01:00
// Check pageurl is not already used
2021-02-26 12:03:07 +01:00
if ( $pageurl ) {
2018-02-19 18:07:59 +01:00
$tmpwebsitepage = new WebsitePage ( $db );
$result = $tmpwebsitepage -> fetch ( 0 , $object -> id , $pageurl );
2021-02-26 12:03:07 +01:00
if ( $result > 0 ) {
2018-02-19 18:07:59 +01:00
setEventMessages ( $langs -> trans ( " AliasPageAlreadyExists " , $pageurl ), null , 'errors' );
$error ++ ;
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2018-02-19 18:07:59 +01:00
}
2017-12-10 17:59:19 +01:00
}
2017-08-20 18:50:51 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2021-04-07 23:43:10 +02:00
$tmp = getURLContent ( $urltograb , 'GET' , '' , 1 , array (), array ( 'http' , 'https' ), 0 );
2023-11-30 21:23:13 +01:00
// Test charset of result and convert it into UTF-8 if not in this encoding charset
if ( ! empty ( $tmp [ 'content_type' ]) && preg_match ( '/ISO-8859-1/' , $tmp [ 'content_type' ])) {
if ( function_exists ( 'mb_check_encoding' )) {
if ( mb_check_encoding ( $tmp [ 'content' ], 'ISO-8859-1' )) {
// This is a ISO-8829-1 encoding string
$tmp [ 'content' ] = mb_convert_encoding ( $tmp [ 'content' ], 'ISO-8859-1' , 'UTF-8' );
} else {
$error ++ ;
setEventMessages ( 'Error getting ' . $urltograb . ': content seems non valid ISO-8859-1' , null , 'errors' );
$action = 'createcontainer' ;
}
} else {
$error ++ ;
setEventMessages ( 'Error getting ' . $urltograb . ': content seems ISO-8859-1 but functions to convert into UTF-8 are not available in your PHP' , null , 'errors' );
$action = 'createcontainer' ;
}
}
if ( empty ( $tmp [ 'content_type' ]) || ( ! empty ( $tmp [ 'content_type' ]) && preg_match ( '/UTF-8/' , $tmp [ 'content_type' ]))) {
if ( function_exists ( 'mb_check_encoding' )) {
if ( mb_check_encoding ( $tmp [ 'content' ], 'UTF-8' )) {
// This is a UTF8 or ASCII compatible string
} else {
$error ++ ;
setEventMessages ( 'Error getting ' . $urltograb . ': content seems not a valid UTF-8' , null , 'errors' );
$action = 'createcontainer' ;
}
}
}
2021-02-26 12:03:07 +01:00
if ( $tmp [ 'curl_error_no' ]) {
2018-02-19 14:56:37 +01:00
$error ++ ;
setEventMessages ( 'Error getting ' . $urltograb . ': ' . $tmp [ 'curl_error_msg' ], null , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2021-02-26 12:03:07 +01:00
} elseif ( $tmp [ 'http_code' ] != '200' ) {
2018-02-19 14:56:37 +01:00
$error ++ ;
setEventMessages ( 'Error getting ' . $urltograb . ': ' . $tmp [ 'http_code' ], null , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2021-02-26 12:03:07 +01:00
} else {
2018-02-19 14:56:37 +01:00
// Remove comments
$tmp [ 'content' ] = removeHtmlComment ( $tmp [ 'content' ]);
2017-10-07 13:09:31 +02:00
2023-02-13 13:29:30 +01:00
// Check there is no PHP content into the imported file (must be only HTML + JS)
2023-02-13 13:33:48 +01:00
$phpcontent = dolKeepOnlyPhpCode ( $tmp [ 'content' ]);
2023-02-13 13:29:30 +01:00
if ( $phpcontent ) {
$error ++ ;
setEventMessages ( 'Error getting ' . $urltograb . ': file that include PHP content is not allowed' , null , 'errors' );
$action = 'createcontainer' ;
}
}
if ( ! $error ) {
2019-11-12 00:15:34 +01:00
$regs = array ();
2019-08-29 04:38:24 +02:00
preg_match ( '/<head>(.*)<\/head>/ims' , $tmp [ 'content' ], $regs );
$head = $regs [ 1 ];
2018-02-19 14:56:37 +01:00
$objectpage -> type_container = 'page' ;
2021-02-26 12:03:07 +01:00
$objectpage -> pageurl = $pageurl ;
if ( empty ( $objectpage -> pageurl )) {
$tmpdomain = getDomainFromURL ( $urltograb );
$objectpage -> pageurl = $tmpdomain . '-home' ;
}
2017-10-07 13:09:31 +02:00
2021-02-26 12:03:07 +01:00
$objectpage -> aliasalt = '' ;
2018-02-28 14:36:22 +01:00
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/^(\d+)\-/' , basename ( $urltograb ), $regs )) {
$objectpage -> aliasalt = $regs [ 1 ];
}
2019-08-29 04:38:24 +02:00
2021-02-26 12:03:07 +01:00
$regtmp = array ();
if ( preg_match ( '/<title>(.*)<\/title>/ims' , $head , $regtmp )) {
2018-02-19 14:56:37 +01:00
$objectpage -> title = $regtmp [ 1 ];
2017-12-10 17:59:19 +01:00
}
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/<meta name="title"[^"]+content="([^"]+)"/ims' , $head , $regtmp )) {
if ( empty ( $objectpage -> title )) {
$objectpage -> title = $regtmp [ 1 ]; // If title not found into <title>, we get it from <meta title>
}
2018-02-19 16:46:29 +01:00
}
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/<meta name="description"[^"]+content="([^"]+)"/ims' , $head , $regtmp )) {
2018-02-19 14:56:37 +01:00
$objectpage -> description = $regtmp [ 1 ];
2017-12-10 17:59:19 +01:00
}
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/<meta name="keywords"[^"]+content="([^"]+)"/ims' , $head , $regtmp )) {
2018-02-19 14:56:37 +01:00
$objectpage -> keywords = $regtmp [ 1 ];
2017-10-07 13:09:31 +02:00
}
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/<html\s+lang="([^"]+)"/ims' , $tmp [ 'content' ], $regtmp )) {
2019-11-12 00:15:34 +01:00
$tmplang = explode ( '-' , $regtmp [ 1 ]);
2018-02-19 14:56:37 +01:00
$objectpage -> lang = $tmplang [ 0 ] . ( $tmplang [ 1 ] ? '_' . strtoupper ( $tmplang [ 1 ]) : '' );
2017-12-10 17:59:19 +01:00
}
2017-10-01 21:29:49 +02:00
2018-02-19 16:46:29 +01:00
$tmp [ 'content' ] = preg_replace ( '/\s*<meta name="generator"[^"]+content="([^"]+)"\s*\/?>/ims' , '' , $tmp [ 'content' ]);
2018-02-19 14:56:37 +01:00
$objectpage -> content = $tmp [ 'content' ];
$objectpage -> content = preg_replace ( '/^.*<body(\s[^>]*)*>/ims' , '' , $objectpage -> content );
$objectpage -> content = preg_replace ( '/<\/body(\s[^>]*)*>.*$/ims' , '' , $objectpage -> content );
// TODO Replace 'action="$urltograbdirwithoutslash' into action="/"
// TODO Replace 'action="$urltograbdirwithoutslash..."' into action="..."
// TODO Replace 'a href="$urltograbdirwithoutslash' into a href="/"
// TODO Replace 'a href="$urltograbdirwithoutslash..."' into a href="..."
// Now loop to fetch all css files. Include them inline into header of page
$objectpage -> htmlheader = $tmp [ 'content' ];
$objectpage -> htmlheader = preg_replace ( '/^.*<head(\s[^>]*)*>/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<\/head(\s[^>]*)*>.*$/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<base(\s[^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
2018-02-19 16:46:29 +01:00
$objectpage -> htmlheader = preg_replace ( '/<meta http-equiv="content-type"([^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<meta name="robots"([^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<meta name="title"([^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<meta name="description"([^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<meta name="keywords"([^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<meta name="generator"([^>]*)*>\n*/ims' , '' , $objectpage -> htmlheader );
2018-02-19 14:56:37 +01:00
//$objectpage->htmlheader = preg_replace('/<meta name="verify-v1[^>]*>\n*/ims', '', $objectpage->htmlheader);
//$objectpage->htmlheader = preg_replace('/<meta name="msvalidate.01[^>]*>\n*/ims', '', $objectpage->htmlheader);
$objectpage -> htmlheader = preg_replace ( '/<title>[^<]*<\/title>\n*/ims' , '' , $objectpage -> htmlheader );
$objectpage -> htmlheader = preg_replace ( '/<link[^>]*rel="shortcut[^>]*>\n/ims' , '' , $objectpage -> htmlheader );
2020-05-19 00:50:30 +02:00
$objectpage -> htmlheader = preg_replace ( '/<link[^>]*rel="alternate[^>]*>\n/ims' , '' , $objectpage -> htmlheader );
2018-10-15 17:48:39 +02:00
$objectpage -> htmlheader = preg_replace ( '/<link[^>]*rel="canonical[^>]*>\n/ims' , '' , $objectpage -> htmlheader );
2018-02-19 14:56:37 +01:00
// Now loop to fetch JS
$tmp = $objectpage -> htmlheader ;
2020-12-18 14:27:22 +01:00
// We grab files found into <script> tags
2018-02-19 14:56:37 +01:00
preg_match_all ( '/<script([^\.>]+)src=["\']([^"\'>]+)["\']([^>]*)><\/script>/i' , $objectpage -> htmlheader , $regs );
2018-11-30 14:30:00 +01:00
$errorforsubresource = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $regs [ 0 ] as $key => $val ) {
2019-08-29 04:38:24 +02:00
dol_syslog ( " We will grab the script resource found into script tag " . $regs [ 2 ][ $key ]);
2017-10-01 21:29:49 +02:00
2018-02-19 14:56:37 +01:00
$linkwithoutdomain = $regs [ 2 ][ $key ];
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/^\//' , $regs [ 2 ][ $key ])) {
2019-11-12 00:15:34 +01:00
$urltograbbis = $urltograbdirrootwithoutslash . $regs [ 2 ][ $key ]; // We use dirroot
2021-02-26 12:03:07 +01:00
} else {
2019-11-12 00:15:34 +01:00
$urltograbbis = $urltograbdirwithoutslash . '/' . $regs [ 2 ][ $key ]; // We use dir of grabbed file
2018-02-19 14:56:37 +01:00
}
2017-10-06 22:49:08 +02:00
2018-02-19 14:56:37 +01:00
//$filetosave = $conf->medias->multidir_output[$conf->entity].'/css/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $regs[2][$key])?'':'/').$regs[2][$key];
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/^http/' , $regs [ 2 ][ $key ])) {
2018-02-19 14:56:37 +01:00
$urltograbbis = $regs [ 2 ][ $key ];
$linkwithoutdomain = preg_replace ( '/^https?:\/\/[^\/]+\//i' , '' , $regs [ 2 ][ $key ]);
//$filetosave = $conf->medias->multidir_output[$conf->entity].'/css/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $linkwithoutdomain)?'':'/').$linkwithoutdomain;
}
2017-10-13 15:23:24 +02:00
2018-02-19 14:56:37 +01:00
//print $domaintograb.' - '.$domaintograbbis.' - '.$urltograbdirwithoutslash.' - ';
//print $linkwithoutdomain.' - '.$urltograbbis."<br>\n";
// Test if this is an external URL of grabbed web site. If yes, we do not load resource
$domaintograb = getDomainFromURL ( $urltograbdirwithoutslash );
$domaintograbbis = getDomainFromURL ( $urltograbbis );
2021-02-26 12:03:07 +01:00
if ( $domaintograb != $domaintograbbis ) {
continue ;
}
2018-02-19 14:56:37 +01:00
/*
2021-04-07 23:43:10 +02:00
$tmpgeturl = getURLContent ( $urltograbbis , 'GET' , '' , 1 , array (), array ( 'http' , 'https' ), 0 );
2021-02-26 12:03:07 +01:00
if ( $tmpgeturl [ 'curl_error_no' ])
{
$error ++ ;
setEventMessages ( 'Error getting script url ' . $urltograbbis . ': ' . $tmpgeturl [ 'curl_error_msg' ], null , 'errors' );
$errorforsubresource ++ ;
$action = 'createcontainer' ;
}
2018-02-19 14:56:37 +01:00
elseif ( $tmpgeturl [ 'http_code' ] != '200' )
{
$error ++ ;
2018-11-30 14:30:00 +01:00
setEventMessages ( 'Error getting script url ' . $urltograbbis . ': ' . $tmpgeturl [ 'http_code' ], null , 'errors' );
$errorforsubresource ++ ;
2018-02-19 14:56:37 +01:00
$action = 'createcontainer' ;
}
else
2021-02-26 12:03:07 +01:00
{
dol_mkdir ( dirname ( $filetosave ));
$fp = fopen ( $filetosave , " w " );
fputs ( $fp , $tmpgeturl [ 'content' ]);
fclose ( $fp );
2023-02-17 19:30:50 +01:00
dolChmod ( $file );
2021-02-26 12:03:07 +01:00
}
2018-02-19 14:56:37 +01:00
*/
//$filename = 'image/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $linkwithoutdomain)?'':'/').$linkwithoutdomain;
2019-01-27 11:55:16 +01:00
$tmp = preg_replace ( '/' . preg_quote ( $regs [ 0 ][ $key ], '/' ) . '/i' , '' , $tmp );
2017-12-10 17:59:19 +01:00
}
2018-02-19 16:46:29 +01:00
$objectpage -> htmlheader = trim ( $tmp ) . " \n " ;
2018-02-19 14:56:37 +01:00
2017-10-13 15:23:24 +02:00
2020-12-18 14:27:22 +01:00
// Now we grab CSS found into <link> tags
2018-02-19 14:56:37 +01:00
$pagecsscontent = " \n " . '<style>' . " \n " ;
preg_match_all ( '/<link([^\.>]+)href=["\']([^"\'>]+\.css[^"\'>]*)["\']([^>]*)>/i' , $objectpage -> htmlheader , $regs );
2018-11-30 14:30:00 +01:00
$errorforsubresource = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $regs [ 0 ] as $key => $val ) {
2019-08-29 04:38:24 +02:00
dol_syslog ( " We will grab the css resources found into link tag " . $regs [ 2 ][ $key ]);
2017-10-07 13:09:31 +02:00
2018-02-19 14:56:37 +01:00
$linkwithoutdomain = $regs [ 2 ][ $key ];
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/^\//' , $regs [ 2 ][ $key ])) {
2019-11-12 00:15:34 +01:00
$urltograbbis = $urltograbdirrootwithoutslash . $regs [ 2 ][ $key ]; // We use dirroot
2021-02-26 12:03:07 +01:00
} else {
2019-11-12 00:15:34 +01:00
$urltograbbis = $urltograbdirwithoutslash . '/' . $regs [ 2 ][ $key ]; // We use dir of grabbed file
2018-02-19 14:56:37 +01:00
}
2017-10-13 15:23:24 +02:00
2018-02-19 14:56:37 +01:00
//$filetosave = $conf->medias->multidir_output[$conf->entity].'/css/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $regs[2][$key])?'':'/').$regs[2][$key];
2021-02-26 12:03:07 +01:00
if ( preg_match ( '/^http/' , $regs [ 2 ][ $key ])) {
2018-02-19 14:56:37 +01:00
$urltograbbis = $regs [ 2 ][ $key ];
$linkwithoutdomain = preg_replace ( '/^https?:\/\/[^\/]+\//i' , '' , $regs [ 2 ][ $key ]);
//$filetosave = $conf->medias->multidir_output[$conf->entity].'/css/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $linkwithoutdomain)?'':'/').$linkwithoutdomain;
}
2017-10-13 15:23:24 +02:00
2018-02-19 14:56:37 +01:00
//print $domaintograb.' - '.$domaintograbbis.' - '.$urltograbdirwithoutslash.' - ';
//print $linkwithoutdomain.' - '.$urltograbbis."<br>\n";
// Test if this is an external URL of grabbed web site. If yes, we do not load resource
$domaintograb = getDomainFromURL ( $urltograbdirwithoutslash );
$domaintograbbis = getDomainFromURL ( $urltograbbis );
2021-02-26 12:03:07 +01:00
if ( $domaintograb != $domaintograbbis ) {
continue ;
}
2018-02-19 14:56:37 +01:00
2021-04-07 23:43:10 +02:00
$tmpgeturl = getURLContent ( $urltograbbis , 'GET' , '' , 1 , array (), array ( 'http' , 'https' ), 0 );
2021-02-26 12:03:07 +01:00
if ( $tmpgeturl [ 'curl_error_no' ]) {
2018-11-30 14:30:00 +01:00
$errorforsubresource ++ ;
setEventMessages ( 'Error getting link tag url ' . $urltograbbis . ': ' . $tmpgeturl [ 'curl_error_msg' ], null , 'errors' );
dol_syslog ( 'Error getting ' . $urltograbbis . ': ' . $tmpgeturl [ 'curl_error_msg' ]);
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2021-02-26 12:03:07 +01:00
} elseif ( $tmpgeturl [ 'http_code' ] != '200' ) {
2018-11-30 14:30:00 +01:00
$errorforsubresource ++ ;
2019-08-19 18:39:40 +02:00
setEventMessages ( 'Error getting link tag url ' . $urltograbbis . ': ' . $tmpgeturl [ 'http_code' ], null , 'errors' );
2018-11-30 14:30:00 +01:00
dol_syslog ( 'Error getting ' . $urltograbbis . ': ' . $tmpgeturl [ 'curl_error_msg' ]);
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2021-02-26 12:03:07 +01:00
} else {
2019-08-29 04:38:24 +02:00
// Clean some comment
2019-08-29 13:17:14 +02:00
//$tmpgeturl['content'] = dol_string_is_good_iso($tmpgeturl['content'], 1);
//$tmpgeturl['content'] = mb_convert_encoding($tmpgeturl['content'], 'UTF-8', 'UTF-8');
//$tmpgeturl['content'] = remove_bs($tmpgeturl['content']);
//$tmpgeturl['content'] = str_replace('$screen-md-max', 'auto', $tmpgeturl['content']);
//var_dump($tmpgeturl['content']);exit;
2019-08-29 04:38:24 +02:00
$tmpgeturl [ 'content' ] = preg_replace ( '/\/\*\s+CSS content[a-z\s]*\s+\*\//' , '' , $tmpgeturl [ 'content' ]);
2018-02-19 14:56:37 +01:00
//dol_mkdir(dirname($filetosave));
2017-10-07 13:09:31 +02:00
2018-02-19 14:56:37 +01:00
//$fp = fopen($filetosave, "w");
//fputs($fp, $tmpgeturl['content']);
//fclose($fp);
2023-02-17 19:30:50 +01:00
//dolChmod($file);
2017-10-07 13:09:31 +02:00
2018-02-19 14:56:37 +01:00
// $filename = 'image/'.$object->ref.'/'.$objectpage->pageurl.(preg_match('/^\//', $linkwithoutdomain)?'':'/').$linkwithoutdomain;
2019-11-12 00:15:34 +01:00
$pagecsscontent .= '/* Content of file ' . $urltograbbis . ' */' . " \n " ;
2017-10-07 13:09:31 +02:00
2018-02-19 14:56:37 +01:00
getAllImages ( $object , $objectpage , $urltograbbis , $tmpgeturl [ 'content' ], $action , 1 , $grabimages , $grabimagesinto );
2017-10-07 13:09:31 +02:00
2022-09-02 08:53:13 +02:00
// We try to convert the CSS we got by adding a prefix .bodywebsite with lessc to avoid conflict with CSS of Dolibarr.
2019-08-29 04:38:24 +02:00
include_once DOL_DOCUMENT_ROOT . '/core/class/lessc.class.php' ;
2019-09-06 10:36:49 +02:00
$lesscobj = new Lessc ();
2019-08-29 04:38:24 +02:00
try {
$contentforlessc = " .bodywebsite { \n " . $tmpgeturl [ 'content' ] . " \n } \n " ;
//print '<pre>'.$contentforlessc.'</pre>';
$contentforlessc = $lesscobj -> compile ( $contentforlessc );
//var_dump($contentforlessc); exit;
2019-11-12 00:15:34 +01:00
$pagecsscontent .= $contentforlessc . " \n " ;
2019-08-29 04:38:24 +02:00
//$pagecsscontent.=$tmpgeturl['content']."\n";
} catch ( exception $e ) {
//echo "failed to compile lessc";
2019-08-29 13:17:14 +02:00
dol_syslog ( " Failed to compile the CSS from URL " . $urltograbbis . " with lessc: " . $e -> getMessage (), LOG_WARNING );
2019-11-12 00:15:34 +01:00
$pagecsscontent .= $tmpgeturl [ 'content' ] . " \n " ;
2019-08-29 04:38:24 +02:00
}
2017-10-07 13:09:31 +02:00
2019-01-27 11:55:16 +01:00
$objectpage -> htmlheader = preg_replace ( '/' . preg_quote ( $regs [ 0 ][ $key ], '/' ) . '\n*/ims' , '' , $objectpage -> htmlheader );
2018-02-19 14:56:37 +01:00
}
2017-12-10 17:59:19 +01:00
}
2017-10-06 22:49:08 +02:00
2019-11-12 00:15:34 +01:00
$pagecsscontent .= '</style>' ;
2018-02-19 14:56:37 +01:00
//var_dump($pagecsscontent);
2017-10-06 22:49:08 +02:00
2018-02-19 14:56:37 +01:00
//print dol_escape_htmltag($tmp);exit;
2018-02-19 16:46:29 +01:00
$objectpage -> htmlheader .= trim ( $pagecsscontent ) . " \n " ;
2017-10-01 18:27:54 +02:00
2017-10-07 02:29:27 +02:00
2020-12-18 14:27:22 +01:00
// Now we have to fetch all images into page
2018-02-19 14:56:37 +01:00
$tmp = $objectpage -> content ;
2017-10-06 22:49:08 +02:00
2018-02-19 14:56:37 +01:00
getAllImages ( $object , $objectpage , $urltograb , $tmp , $action , 1 , $grabimages , $grabimagesinto );
2017-10-01 20:37:41 +02:00
2018-02-20 11:16:13 +01:00
// Normalize links href to Dolibarr internal naming
$tmp = preg_replace ( '/a href="\/([^\/"]+)\/([^\/"]+)"/' , 'a href="/\1-\2.php"' , $tmp );
$tmp = preg_replace ( '/a href="\/([^\/"]+)\/([^\/"]+)\/([^\/"]+)"/' , 'a href="/\1-\2-\3.php"' , $tmp );
$tmp = preg_replace ( '/a href="\/([^\/"]+)\/([^\/"]+)\/([^\/"]+)\/([^\/"]+)"/' , 'a href="/\1-\2-\3-\4.php"' , $tmp );
2018-02-19 14:56:37 +01:00
//print dol_escape_htmltag($tmp);exit;
$objectpage -> content = $tmp ;
2017-10-01 18:27:54 +02:00
2018-02-19 14:56:37 +01:00
$objectpage -> grabbed_from = $urltograb ;
}
2017-10-07 13:09:31 +02:00
}
2020-06-09 22:09:57 +02:00
} else {
2021-04-11 18:49:17 +02:00
$newaliasnames = '' ;
if ( ! $error && GETPOST ( 'WEBSITE_ALIASALT' , 'alpha' )) {
$arrayofaliastotest = explode ( ',' , str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_ALIASALT' , 'alpha' )));
$websitepagetemp = new WebsitePage ( $db );
foreach ( $arrayofaliastotest as $aliastotest ) {
$aliastotest = trim ( preg_replace ( '/\.php$/i' , '' , $aliastotest ));
// Disallow alias name pageX (already used to save the page with id)
if ( preg_match ( '/^page\d+/i' , $aliastotest )) {
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( " Alias name 'pageX' is not allowed " , null , 'errors' );
$action = 'createcontainer' ;
break ;
} else {
$result = $websitepagetemp -> fetch ( 0 , $object -> id , $aliastotest );
if ( $result < 0 ) {
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $websitepagetemp -> error , $websitepagetemp -> errors , 'errors' );
$action = 'createcontainer' ;
break ;
}
if ( $result > 0 ) {
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorAPageWithThisNameOrAliasAlreadyExists " , $websitepagetemp -> pageurl ), null , 'errors' );
$action = 'createcontainer' ;
break ;
}
$newaliasnames .= ( $newaliasnames ? ', ' : '' ) . $aliastotest ;
}
}
}
2020-06-09 21:43:42 +02:00
$objectpage -> title = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_TITLE' , 'alphanohtml' ));
2020-02-20 01:08:53 +01:00
$objectpage -> type_container = GETPOST ( 'WEBSITE_TYPE_CONTAINER' , 'aZ09' );
2019-01-27 11:55:16 +01:00
$objectpage -> pageurl = GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' );
2021-04-11 18:49:17 +02:00
$objectpage -> aliasalt = $newaliasnames ;
2020-06-09 21:43:42 +02:00
$objectpage -> description = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_DESCRIPTION' , 'alphanohtml' ));
2019-01-27 11:55:16 +01:00
$objectpage -> lang = GETPOST ( 'WEBSITE_LANG' , 'aZ09' );
2020-02-20 01:08:53 +01:00
$objectpage -> otherlang = GETPOST ( 'WEBSITE_OTHERLANG' , 'aZ09comma' );
$objectpage -> image = GETPOST ( 'WEBSITE_IMAGE' , 'alpha' );
2020-06-09 21:43:42 +02:00
$objectpage -> keywords = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_KEYWORDS' , 'alphanohtml' ));
2024-09-28 11:15:38 +02:00
$objectpage -> allowed_in_frames = GETPOST ( 'WEBSITE_ALLOWED_IN_FRAMES' , 'aZ09' ) ? 1 : 0 ;
2024-07-21 14:44:14 +02:00
$objectpage -> htmlheader = GETPOST ( 'htmlheader' , 'none' ); // Must accept tags like '<script>' and '<link>'
2020-03-12 20:50:36 +01:00
$objectpage -> author_alias = GETPOST ( 'WEBSITE_AUTHORALIAS' , 'alphanohtml' );
2020-10-01 15:18:19 +02:00
$objectpage -> object_type = GETPOST ( 'WEBSITE_OBJECTCLASS' );
2020-09-28 20:39:02 +02:00
$objectpage -> fk_object = GETPOST ( 'WEBSITE_OBJECTID' );
2019-11-12 00:15:34 +01:00
$substitutionarray = array ();
2024-03-24 05:23:06 +01:00
$substitutionarray [ '__WEBSITE_CREATED_BY__' ] = $user -> getFullName ( $langs );
2018-01-07 22:04:31 +01:00
2024-03-14 10:29:36 +01:00
// Define id of the page the new page is translation of
/*
if ( $objectpage -> lang == $object -> lang ) {
// If
$pageidfortranslation = ( GETPOSTINT ( 'pageidfortranslation' ) > 0 ? GETPOSTINT ( 'pageidfortranslation' ) : 0 );
if ( $pageidfortranslation > 0 ) {
// We must update the page $pageidfortranslation to set fk_page = $object->id.
// But what if page $pageidfortranslation is already linked to another ?
}
} else {
*/
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$pageidfortranslation = ( GETPOSTINT ( 'pageidfortranslation' ) > 0 ? GETPOSTINT ( 'pageidfortranslation' ) : 0 );
2020-12-19 13:44:15 +01:00
if ( $pageidfortranslation > 0 ) {
2024-01-12 17:18:52 +01:00
// Check if the page we are translation of is already a translation of a source page. if yes, we will use source id instead
2020-12-19 13:44:15 +01:00
$objectpagetmp = new WebsitePage ( $db );
$objectpagetmp -> fetch ( $pageidfortranslation );
if ( $objectpagetmp -> fk_page > 0 ) {
$pageidfortranslation = $objectpagetmp -> fk_page ;
}
}
$objectpage -> fk_page = $pageidfortranslation ;
2024-03-14 10:29:36 +01:00
//}
2020-12-19 13:44:15 +01:00
2024-03-24 05:23:06 +01:00
$content = '' ;
if ( GETPOSTISSET ( 'content' )) {
//$content = GETPOST('content', 'restricthtmlallowunvalid'); // @TODO Use a restricthtmlallowunvalidwithphp
$content = GETPOST ( 'content' , 'none' ); // @TODO Use a restricthtmlallowunvalidwithphp
$objectpage -> content = make_substitutions ( $content , $substitutionarray );
} else {
/* $sample = GETPOST ( 'sample' , 'alpha' );
if ( empty ( $sample )) {
$sample = 'empty' ;
}
2018-02-20 18:10:11 +01:00
2024-03-24 05:23:06 +01:00
$pathtosample = DOL_DOCUMENT_ROOT . '/website/samples/page-sample-' . dol_sanitizeFileName ( strtolower ( $sample )) . '.html' ;
*/
// Init content with content into page-sample-...
//$objectpage->content = make_substitutions(@file_get_contents($pathtosample), $substitutionarray);
}
2017-10-07 13:09:31 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
if ( empty ( $objectpage -> pageurl )) {
2018-02-19 16:46:29 +01:00
$langs -> load ( " errors " );
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> trans ( " ErrorFieldRequired " , $langs -> transnoentitiesnoconv ( " WEBSITE_PAGENAME " )), null , 'errors' );
$error ++ ;
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2021-02-26 12:03:07 +01:00
} elseif ( ! preg_match ( '/^[a-z0-9\-\_]+$/i' , $objectpage -> pageurl )) {
2018-02-19 16:46:29 +01:00
$langs -> load ( " errors " );
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> transnoentities ( " ErrorFieldCanNotContainSpecialCharacters " , $langs -> transnoentities ( 'WEBSITE_PAGENAME' )), null , 'errors' );
$error ++ ;
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2017-10-07 13:09:31 +02:00
}
2021-02-26 12:03:07 +01:00
if ( empty ( $objectpage -> title )) {
2018-02-19 16:46:29 +01:00
$langs -> load ( " errors " );
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> trans ( " ErrorFieldRequired " , $langs -> transnoentitiesnoconv ( " WEBSITE_TITLE " )), null , 'errors' );
$error ++ ;
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2017-10-07 13:09:31 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $objectpage -> fk_page > 0 && empty ( $objectpage -> lang )) {
2020-12-19 13:03:40 +01:00
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorLanguageRequiredIfPageIsTranslationOfAnother " ), null , 'errors' );
$error ++ ;
$action = 'createcontainer' ;
}
2021-02-26 12:03:07 +01:00
if ( $objectpage -> fk_page > 0 && ! empty ( $objectpage -> lang )) {
2020-12-19 13:03:40 +01:00
if ( $objectpage -> lang == $website -> lang ) {
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorLanguageMustNotBeSourceLanguageIfPageIsTranslationOfAnother " ), null , 'errors' );
$error ++ ;
$action = 'createcontainer' ;
}
}
2017-10-07 13:09:31 +02:00
}
2024-03-24 05:23:06 +01:00
$pageid = 0 ;
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2019-11-24 20:59:17 +01:00
$pageid = $objectpage -> create ( $user );
if ( $pageid <= 0 ) {
2017-10-07 13:09:31 +02:00
$error ++ ;
setEventMessages ( $objectpage -> error , $objectpage -> errors , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'createcontainer' ;
2017-10-07 13:09:31 +02:00
}
2020-06-30 02:50:58 +02:00
}
2020-03-09 19:49:14 +01:00
2020-06-30 02:50:58 +02:00
if ( ! $error ) {
// Website categories association
$categoriesarray = GETPOST ( 'categories' , 'array' );
$result = $objectpage -> setCategories ( $categoriesarray );
2021-02-26 12:03:07 +01:00
if ( $result < 0 ) {
2020-06-30 02:50:58 +02:00
$error ++ ;
setEventMessages ( $object -> error , $object -> errors , 'errors' );
}
}
2020-03-09 19:49:14 +01:00
2020-06-30 02:50:58 +02:00
if ( ! $error ) {
// If there is no home page yet, this new page will be set as the home page
if ( empty ( $object -> fk_default_home )) {
$object -> fk_default_home = $pageid ;
$res = $object -> update ( $user );
2021-02-26 12:03:07 +01:00
if ( $res <= 0 ) {
2020-06-30 02:50:58 +02:00
$error ++ ;
setEventMessages ( $object -> error , $object -> errors , 'errors' );
} else {
$filetpl = $pathofwebsite . '/page' . $pageid . '.tpl.php' ;
2021-05-20 10:34:49 +02:00
// Generate the index.php page (to be the home page) and the wrapper.php file
2022-05-12 00:52:28 +02:00
$result = dolSaveIndexPage ( $pathofwebsite , $fileindex , $filetpl , $filewrapper , $object );
2020-06-30 02:50:58 +02:00
2021-02-26 12:03:07 +01:00
if ( $result <= 0 ) {
setEventMessages ( 'Failed to write file ' . $fileindex , null , 'errors' );
}
2019-11-24 20:59:17 +01:00
}
}
2017-10-07 13:09:31 +02:00
}
2019-11-24 20:59:17 +01:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2024-03-24 05:23:06 +01:00
if ( $pageid > 0 ) {
2019-11-12 00:15:34 +01:00
$filealias = $pathofwebsite . '/' . $objectpage -> pageurl . '.php' ;
$filetpl = $pathofwebsite . '/page' . $objectpage -> id . '.tpl.php' ;
2017-10-01 20:37:41 +02:00
2017-10-07 13:09:31 +02:00
// Save page alias
2019-11-12 00:15:34 +01:00
$result = dolSavePageAlias ( $filealias , $object , $objectpage );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
2020-02-21 11:36:16 +01:00
setEventMessages ( 'Failed to write file ' . basename ( $filealias ), null , 'errors' );
2019-08-14 16:28:41 +02:00
}
2017-10-07 13:09:31 +02:00
// Save page of content
2021-10-20 17:08:33 +02:00
$result = dolSavePageContent ( $filetpl , $object , $objectpage , 1 );
2021-02-26 12:03:07 +01:00
if ( $result ) {
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> trans ( " Saved " ), null , 'mesgs' );
2021-02-26 12:03:07 +01:00
} else {
2017-10-07 13:09:31 +02:00
setEventMessages ( 'Failed to write file ' . $filetpl , null , 'errors' );
2018-11-30 14:30:00 +01:00
$action = 'createcontainer' ;
2017-10-07 13:09:31 +02:00
}
}
}
2020-12-18 14:27:22 +01:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2016-04-23 21:34:10 +02:00
$db -> commit ();
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> trans ( " PageAdded " , $objectpage -> pageurl ), null , 'mesgs' );
2019-11-12 00:15:34 +01:00
$action = '' ;
2021-02-26 12:03:07 +01:00
} else {
2016-04-23 21:34:10 +02:00
$db -> rollback ();
}
2017-07-02 23:38:19 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-10-01 21:29:49 +02:00
$pageid = $objectpage -> id ;
2017-10-01 20:37:41 +02:00
2017-10-01 21:29:49 +02:00
// To generate the CSS, robot and htmlheader file.
2017-10-01 20:37:41 +02:00
2017-10-13 15:23:24 +02:00
// Check symlink to medias and restore it if ko
2019-11-12 00:15:34 +01:00
$pathtomedias = DOL_DATA_ROOT . '/medias' ;
$pathtomediasinwebsite = $pathofwebsite . '/medias' ;
2021-02-26 12:03:07 +01:00
if ( ! is_link ( dol_osencode ( $pathtomediasinwebsite ))) {
2017-10-13 15:23:24 +02:00
dol_syslog ( " Create symlink for " . $pathtomedias . " into name " . $pathtomediasinwebsite );
2019-11-12 00:15:34 +01:00
dol_mkdir ( dirname ( $pathtomediasinwebsite )); // To be sure dir for website exists
2017-10-13 15:23:24 +02:00
$result = symlink ( $pathtomedias , $pathtomediasinwebsite );
}
2020-12-18 14:27:22 +01:00
// Now generate the master.inc.php page if it does not exists yet
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filemaster )) {
2020-12-18 14:27:22 +01:00
$result = dolSaveMasterFile ( $filemaster );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
2020-12-18 14:27:22 +01:00
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filemaster , null , 'errors' );
}
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filehtmlheader )) {
2019-11-12 00:15:34 +01:00
$htmlheadercontent = " <html> \n " ;
$htmlheadercontent .= $htmlheadercontentdefault ;
$htmlheadercontent .= " </html> " ;
$result = dolSaveHtmlHeader ( $filehtmlheader , $htmlheadercontent );
2017-10-01 20:37:41 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filecss )) {
2017-12-19 12:54:10 +01:00
$csscontent = " /* CSS content (all pages) */ \n body.bodywebsite { margin: 0; font-family: 'Open Sans', sans-serif; } \n .bodywebsite h1 { margin-top: 0; margin-bottom: 0; padding: 10px;} " ;
2019-11-12 00:15:34 +01:00
$result = dolSaveCssFile ( $filecss , $csscontent );
2017-10-01 20:37:41 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filejs )) {
2017-10-07 03:08:01 +02:00
$jscontent = " /* JS content (all pages) */ \n " ;
2019-11-12 00:15:34 +01:00
$result = dolSaveJsFile ( $filejs , $jscontent );
2017-10-07 03:08:01 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filerobot )) {
2017-10-01 20:37:41 +02:00
$robotcontent = " # Robot file. Generated with Dolibarr \n User-agent: * \n Allow: /public/ \n Disallow: /administrator/ " ;
2019-11-12 00:15:34 +01:00
$result = dolSaveRobotFile ( $filerobot , $robotcontent );
2017-10-01 20:37:41 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filehtaccess )) {
2017-10-01 20:37:41 +02:00
$htaccesscontent = " # Order allow,deny \n # Deny from all " ;
2019-11-12 00:15:34 +01:00
$result = dolSaveHtaccessFile ( $filehtaccess , $htaccesscontent );
2017-10-01 20:37:41 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filemanifestjson )) {
2019-08-12 17:34:18 +02:00
$manifestjsoncontent = " " ;
2019-11-12 00:15:34 +01:00
$result = dolSaveManifestJson ( $filemanifestjson , $manifestjsoncontent );
2019-08-12 17:34:18 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! dol_is_file ( $filereadme )) {
2019-08-15 00:55:47 +02:00
$readmecontent = " Website generated by Dolibarr ERP CRM " ;
2019-11-12 00:15:34 +01:00
$result = dolSaveReadme ( $filereadme , $readmecontent );
2019-08-15 00:55:47 +02:00
}
2019-08-12 17:34:18 +02:00
2022-09-03 19:02:42 +02:00
if ( ! dol_is_file ( $filelicense )) {
$licensecontent = " MIT License " ;
$result = dolSaveLicense ( $filelicense , $licensecontent );
}
2017-10-01 20:37:41 +02:00
$action = 'preview' ;
2017-07-02 23:38:19 +02:00
}
2016-04-23 21:34:10 +02:00
}
2018-09-08 12:04:40 +02:00
// Delete site
2021-03-20 19:30:08 +01:00
if ( $action == 'confirm_deletesite' && $confirm == 'yes' && $permissiontodelete ) {
2018-09-08 12:04:40 +02:00
$error = 0 ;
$db -> begin ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$res = $object -> fetch ( GETPOSTINT ( 'id' ));
2018-09-08 12:04:40 +02:00
$website = $object ;
2021-02-26 12:03:07 +01:00
if ( $res > 0 ) {
2018-09-08 12:04:40 +02:00
$res = $object -> delete ( $user );
2021-02-26 12:03:07 +01:00
if ( $res <= 0 ) {
2018-09-08 12:04:40 +02:00
$error ++ ;
setEventMessages ( $object -> error , $object -> errors , 'errors' );
}
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
if ( GETPOST ( 'delete_also_js' , 'alpha' ) == 'on' ) {
2019-11-12 00:15:34 +01:00
$pathofwebsitejs = DOL_DATA_ROOT . '/medias/js/' . $object -> ref ;
2019-06-02 17:27:00 +02:00
dol_delete_dir_recursive ( $pathofwebsitejs );
}
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'delete_also_medias' , 'alpha' ) == 'on' ) {
2019-11-12 00:15:34 +01:00
$pathofwebsitemedias = DOL_DATA_ROOT . '/medias/image/' . $object -> ref ;
2019-06-02 17:27:00 +02:00
dol_delete_dir_recursive ( $pathofwebsitemedias );
}
}
2018-09-08 12:04:40 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2018-09-08 12:04:40 +02:00
$db -> commit ();
2019-06-02 17:27:00 +02:00
setEventMessages ( $langs -> trans ( " SiteDeleted " , $object -> ref ), null , 'mesgs' );
2018-09-08 12:04:40 +02:00
2019-06-02 17:27:00 +02:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?id=' . $object -> id );
2018-09-08 12:04:40 +02:00
exit ;
2021-02-26 12:03:07 +01:00
} else {
2018-09-08 12:04:40 +02:00
$db -> rollback ();
2022-07-27 23:01:33 +02:00
setEventMessages ( $object -> error , $object -> errors , 'errors' );
2018-09-08 12:04:40 +02:00
}
}
2020-06-03 00:46:09 +02:00
// Delete page (from website page menu)
2021-10-10 21:11:48 +02:00
if ( GETPOSTISSET ( 'pageid' ) && $action == 'delete' && $permissiontodelete && ! GETPOST ( 'file_manager' )) {
2018-02-15 00:01:25 +01:00
$error = 0 ;
2017-10-07 13:09:31 +02:00
$db -> begin ();
2016-05-01 17:01:38 +02:00
2018-07-22 17:18:35 +02:00
$res = $object -> fetch ( 0 , $websitekey );
$website = $object ;
2016-05-01 17:01:38 +02:00
2020-07-02 03:48:32 +02:00
$res = $objectpage -> fetch ( $pageid , $object -> id );
2016-05-01 17:01:38 +02:00
2021-02-26 12:03:07 +01:00
if ( $res > 0 ) {
2017-10-07 13:09:31 +02:00
$res = $objectpage -> delete ( $user );
2021-02-26 12:03:07 +01:00
if ( $res <= 0 ) {
2017-10-07 13:09:31 +02:00
$error ++ ;
setEventMessages ( $objectpage -> error , $objectpage -> errors , 'errors' );
}
2018-02-15 00:01:25 +01:00
}
2016-05-01 17:01:38 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2018-02-15 00:01:25 +01:00
$db -> commit ();
2018-07-22 17:18:35 +02:00
setEventMessages ( $langs -> trans ( " PageDeleted " , $objectpage -> pageurl , $websitekey ), null , 'mesgs' );
2017-07-02 23:38:19 +02:00
2018-07-22 17:18:35 +02:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . $websitekey );
2018-02-15 00:01:25 +01:00
exit ;
2021-02-26 12:03:07 +01:00
} else {
2018-02-15 00:01:25 +01:00
$db -> rollback ();
2017-10-07 13:09:31 +02:00
dol_print_error ( $db );
}
2016-05-01 17:01:38 +02:00
}
2020-06-03 00:46:09 +02:00
// Delete page (from menu search)
2020-10-31 14:32:18 +01:00
if ( ! GETPOSTISSET ( 'pageid' )) {
2020-06-03 00:46:09 +02:00
$objectclass = 'WebsitePage' ;
// Add part of code from actions_massactions.inc.php
// Delete record from mass action (massaction = 'delete' for direct delete, action/confirm='delete'/'yes' with a confirmation step before)
2021-02-26 12:03:07 +01:00
if ( ! $error && ( $massaction == 'delete' || ( $action == 'delete' && $confirm == 'yes' )) && $permissiontodelete ) {
2020-06-03 00:46:09 +02:00
$db -> begin ();
$objecttmp = new $objectclass ( $db );
$nbok = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $toselect as $toselectid ) {
2020-06-03 00:46:09 +02:00
$result = $objecttmp -> fetch ( $toselectid );
2021-02-26 12:03:07 +01:00
if ( $result > 0 ) {
2020-06-03 00:46:09 +02:00
$result = $objecttmp -> delete ( $user );
2021-02-26 12:03:07 +01:00
if ( $result <= 0 ) {
2020-06-03 00:46:09 +02:00
setEventMessages ( $objecttmp -> error , $objecttmp -> errors , 'errors' );
$error ++ ;
break ;
2021-02-26 12:03:07 +01:00
} else {
$nbok ++ ;
}
2020-06-03 00:46:09 +02:00
} else {
setEventMessages ( $objecttmp -> error , $objecttmp -> errors , 'errors' );
$error ++ ;
break ;
}
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
if ( $nbok > 1 ) {
setEventMessages ( $langs -> trans ( " RecordsDeleted " , $nbok ), null , 'mesgs' );
} else {
setEventMessages ( $langs -> trans ( " RecordDeleted " , $nbok ), null , 'mesgs' );
}
2020-06-03 00:46:09 +02:00
$db -> commit ();
} else {
$db -> rollback ();
}
//var_dump($listofobjectthirdparties);exit;
}
2024-08-31 19:15:14 +02:00
if ( $action == 'delete' ) { // Test on permission not required here
2022-10-08 17:04:20 +02:00
$mode = 'replacesite' ;
2023-08-22 15:22:03 +02:00
$action = 'replacesite' ;
2020-06-03 00:46:09 +02:00
$containertype = GETPOST ( 'optioncontainertype' , 'aZ09' ) != '-1' ? GETPOST ( 'optioncontainertype' , 'aZ09' ) : '' ;
$langcode = GETPOST ( 'optionlanguage' , 'aZ09' );
$otherfilters = array ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
if ( GETPOSTINT ( 'optioncategory' ) > 0 ) {
$otherfilters [ 'category' ] = GETPOSTINT ( 'optioncategory' );
2020-06-03 00:46:09 +02:00
}
$listofpages = getPagesFromSearchCriterias ( $containertype , $algo , $searchkey , 1000 , $sortfield , $sortorder , $langcode , $otherfilters );
}
}
2016-05-01 17:01:38 +02:00
2021-05-20 10:34:49 +02:00
// Update css site properties. Re-generates also the wrapper.
2021-03-20 19:30:08 +01:00
if ( $action == 'updatecss' && $usercanedit ) {
2019-09-02 18:43:22 +02:00
// If we tried to reload another site/page, we stay on editcss mode.
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'refreshsite' ) || GETPOST ( 'refreshsite_x' ) || GETPOST ( 'refreshsite.x' ) || GETPOST ( 'refreshpage' ) || GETPOST ( 'refreshpage_x' ) || GETPOST ( 'refreshpage.x' )) {
2019-11-12 00:15:34 +01:00
$action = 'editcss' ;
2021-02-26 12:03:07 +01:00
} else {
2018-07-22 17:18:35 +02:00
$res = $object -> fetch ( 0 , $websitekey );
$website = $object ;
2017-07-19 16:38:00 +02:00
2021-02-26 12:03:07 +01:00
if ( GETPOSTISSET ( 'virtualhost' )) {
2020-05-19 00:50:30 +02:00
$tmpvirtualhost = preg_replace ( '/\/$/' , '' , GETPOST ( 'virtualhost' , 'alpha' ));
2021-02-26 12:03:07 +01:00
if ( $tmpvirtualhost && ! preg_match ( '/^http/' , $tmpvirtualhost )) {
2020-10-07 15:01:28 +02:00
$error ++ ;
setEventMessages ( $langs -> trans ( 'ErrorURLMustStartWithHttp' , $langs -> transnoentitiesnoconv ( " VirtualHost " )), null , 'errors' );
$action = 'editcss' ;
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2020-10-07 15:01:28 +02:00
$arrayotherlang = explode ( ',' , GETPOST ( 'WEBSITE_OTHERLANG' , 'alphanohtml' ));
foreach ( $arrayotherlang as $key => $val ) {
2021-04-07 09:29:40 +02:00
// It possible we have empty val here if postparam WEBSITE_OTHERLANG is empty or set like this : 'en,,sv' or 'en,sv,'
2023-12-04 13:53:48 +01:00
if ( empty ( trim ( $val ))) {
continue ;
}
2020-10-07 15:01:28 +02:00
$arrayotherlang [ $key ] = substr ( trim ( $val ), 0 , 2 ); // Kept short language code only
}
$object -> virtualhost = $tmpvirtualhost ;
$object -> lang = GETPOST ( 'WEBSITE_LANG' , 'aZ09' );
Qual: Apply automatic phan fixes (deprecations, unneeded imports) (#28154)
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
* Qual: Apply automatic phan fixes (deprecations, unneeded imports)
# Qual: Apply automatic phan fixes (deprecations, unneeded imports)
This applies automatic fixes by phan for deprecated functions, unneeded imports).
2024-02-13 21:46:12 +01:00
$object -> otherlang = implode ( ',' , $arrayotherlang );
2023-08-06 13:19:34 +02:00
$object -> use_manifest = GETPOSTINT ( 'use_manifest' );
2020-10-07 15:01:28 +02:00
$result = $object -> update ( $user );
2021-02-26 12:03:07 +01:00
if ( $result < 0 ) {
2020-10-07 15:01:28 +02:00
$error ++ ;
setEventMessages ( $object -> error , $object -> errors , 'errors' );
$action = 'editcss' ;
}
}
2019-01-23 14:57:43 +01:00
}
2018-11-30 14:46:44 +01:00
2021-04-07 11:13:14 +02:00
if ( ! $error ) {
if (( $_FILES [ 'addedfile' ][ " name " ] != '' )) {
$uploadfolder = $conf -> website -> dir_output . '/' . $websitekey ;
if ( $_FILES [ 'addedfile' ][ 'type' ] != 'image/png' ) {
$error ++ ;
setEventMessages ( $langs -> trans ( 'ErrorFaviconType' ), array (), 'errors' );
}
$filetoread = realpath ( dol_osencode ( $_FILES [ 'addedfile' ][ 'tmp_name' ]));
$filesize = getimagesize ( $filetoread );
2021-04-18 23:25:47 +02:00
if ( $filesize [ 0 ] != $filesize [ 1 ]) {
$error ++ ;
setEventMessages ( $langs -> trans ( 'ErrorFaviconMustBeASquaredImage' ), array (), 'errors' );
}
2021-04-18 23:27:39 +02:00
if ( ! $error && ( $filesize [ 0 ] != 16 && $filesize [ 0 ] != 32 && $filesize [ 0 ] != 64 )) {
2021-04-07 11:13:14 +02:00
$error ++ ;
setEventMessages ( $langs -> trans ( 'ErrorFaviconSize' ), array (), 'errors' );
}
if ( ! $error ) {
dol_add_file_process ( $uploadfolder , 1 , 0 , 'addedfile' , 'favicon.png' );
}
}
if ( $error ) {
if ( ! GETPOSTISSET ( 'updateandstay' )) { // If we click on "Save And Stay", we don not make the redirect
$action = 'preview' ;
if ( $backtopage ) {
$backtopage = preg_replace ( '/searchstring=[^&]*/' , '' , $backtopage ); // Clean backtopage url
header ( " Location: " . $backtopage );
exit ;
}
} else {
$action = 'editcss' ;
}
}
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2020-10-07 15:01:28 +02:00
// Save master.inc.php file
dol_syslog ( " Save master file " . $filemaster );
2018-11-30 14:46:44 +01:00
2020-10-07 15:01:28 +02:00
dol_mkdir ( $pathofwebsite );
2018-11-30 14:46:44 +01:00
2020-10-07 15:01:28 +02:00
// Now generate the master.inc.php page
$result = dolSaveMasterFile ( $filemaster );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
2020-10-07 15:01:28 +02:00
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filemaster , null , 'errors' );
}
2018-12-17 17:29:04 +01:00
2017-07-21 20:16:53 +02:00
2024-08-21 14:10:09 +02:00
$dataposted = trim ( GETPOST ( 'WEBSITE_HTML_HEADER' , 'restricthtmlallowlinkscript' )); // Must accept tags like '<script>' and '<link>'
2022-02-24 18:15:04 +01:00
$dataposted = preg_replace ( array ( '/<html>\n*/ims' , '/<\/html>\n*/ims' ), array ( '' , '' ), $dataposted );
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2020-10-07 15:01:28 +02:00
// Html header file
2022-02-21 22:50:32 +01:00
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2017-07-21 20:16:53 +02:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
2017-07-19 16:38:00 +02:00
2022-02-21 22:50:32 +01:00
if ( ! $errorphpcheck ) {
$htmlheadercontent = '' ;
2017-07-21 20:16:53 +02:00
2022-02-21 22:50:32 +01:00
/* We disable php code since htmlheader is never executed as an include but only read by fgets_content .
$htmlheadercontent .= " <?php // BEGIN PHP \n " ;
$htmlheadercontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$htmlheadercontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load env if not already loaded " . " \n " ;
$htmlheadercontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$htmlheadercontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$htmlheadercontent .= " ob_start(); \n " ;
// $htmlheadercontent.= "header('Content-type: text/html');\n"; // Not required. htmlheader.html is never call as a standalone page
$htmlheadercontent .= " // END PHP ?> \n " ; */
2017-08-21 04:17:28 +02:00
2022-02-24 18:15:04 +01:00
$htmlheadercontent .= $dataposted . " \n " ;
2017-07-19 16:38:00 +02:00
2022-02-21 22:50:32 +01:00
/* $htmlheadercontent .= " \n " . '<?php // BEGIN PHP' . " \n " ;
$htmlheadercontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp);' . " \n " ;
2024-05-12 21:35:23 +02:00
$htmlheadercontent .= " // END PHP " . " \n " ; */
2022-02-21 22:50:32 +01:00
$result = dolSaveHtmlHeader ( $filehtmlheader , $htmlheadercontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filehtmlheader , null , 'errors' );
}
} else {
2020-10-07 15:01:28 +02:00
$error ++ ;
}
2017-07-19 16:38:00 +02:00
2022-02-24 18:15:04 +01:00
$dataposted = trim ( GETPOST ( 'WEBSITE_CSS_INLINE' , 'none' ));
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2017-07-21 20:16:53 +02:00
2020-10-07 15:01:28 +02:00
// Css file
2022-02-21 22:50:32 +01:00
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2019-11-12 00:15:34 +01:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
2019-11-12 00:15:34 +01:00
2022-02-21 22:50:32 +01:00
if ( ! $errorphpcheck ) {
$csscontent = '' ;
2019-11-12 00:15:34 +01:00
2022-02-21 22:50:32 +01:00
$csscontent .= " <?php // BEGIN PHP \n " ;
$csscontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$csscontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__.'/master.inc.php'; } // Load env if not already loaded \n " ; // For the css, we need to set path of master using the dirname of css file.
$csscontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$csscontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$csscontent .= " ob_start(); \n " ;
$csscontent .= " if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ \n " ;
$csscontent .= " header('Cache-Control: max-age=3600, public, must-revalidate'); \n " ;
$csscontent .= " header('Content-type: text/css'); \n " ;
$csscontent .= " } \n " ;
$csscontent .= " // END PHP ?> \n " ;
2017-07-19 16:38:00 +02:00
2022-02-24 18:15:04 +01:00
$csscontent .= $dataposted . " \n " ;
2017-07-19 16:38:00 +02:00
2022-02-21 22:50:32 +01:00
$csscontent .= '<?php // BEGIN PHP' . " \n " ;
$csscontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "css");' . " \n " ;
2024-05-12 21:35:23 +02:00
$csscontent .= " // END PHP \n " ;
2022-02-21 22:50:32 +01:00
dol_syslog ( " Save css content into " . $filecss );
$result = dolSaveCssFile ( $filecss , $csscontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filecss , null , 'errors' );
}
} else {
2020-10-07 15:01:28 +02:00
$error ++ ;
}
2017-07-19 16:38:00 +02:00
2017-10-07 03:08:01 +02:00
2022-02-24 18:15:04 +01:00
$dataposted = trim ( GETPOST ( 'WEBSITE_JS_INLINE' , 'none' ));
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2020-10-07 15:01:28 +02:00
// Js file
2022-02-21 22:50:32 +01:00
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2017-10-07 03:08:01 +02:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
2017-10-07 03:08:01 +02:00
2022-02-21 22:50:32 +01:00
if ( ! $errorphpcheck ) {
$jscontent = '' ;
2017-10-07 03:08:01 +02:00
2022-02-21 22:50:32 +01:00
$jscontent .= " <?php // BEGIN PHP \n " ;
$jscontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$jscontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__.'/master.inc.php'; } // Load env if not already loaded \n " ; // For the css, we need to set path of master using the dirname of css file.
$jscontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$jscontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$jscontent .= " ob_start(); \n " ;
$jscontent .= " header('Cache-Control: max-age=3600, public, must-revalidate'); \n " ;
$jscontent .= " header('Content-type: application/javascript'); \n " ;
$jscontent .= " // END PHP ?> \n " ;
2017-10-07 03:08:01 +02:00
2022-02-24 18:15:04 +01:00
$jscontent .= $dataposted . " \n " ;
2022-02-21 22:50:32 +01:00
$jscontent .= '<?php // BEGIN PHP' . " \n " ;
$jscontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "js");' . " \n " ;
2024-05-12 21:35:23 +02:00
$jscontent .= " // END PHP \n " ;
2022-02-21 22:50:32 +01:00
$result = dolSaveJsFile ( $filejs , $jscontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filejs , null , 'errors' );
}
} else {
2020-10-07 15:01:28 +02:00
$error ++ ;
}
2017-10-07 03:08:01 +02:00
2024-05-12 21:35:23 +02:00
$dataposted = trim ( GETPOST ( 'WEBSITE_ROBOT' , 'nohtml' ));
2022-02-24 18:15:04 +01:00
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2017-07-23 17:44:26 +02:00
2020-10-07 15:01:28 +02:00
// Robot file
2022-02-21 22:50:32 +01:00
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2017-07-23 17:44:26 +02:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
2017-07-23 17:44:26 +02:00
2022-02-21 22:50:32 +01:00
if ( ! $errorphpcheck ) {
$robotcontent = '' ;
2017-07-23 17:44:26 +02:00
2022-02-21 22:50:32 +01:00
/* $robotcontent .= " <?php // BEGIN PHP \n " ;
$robotcontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$robotcontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load env if not already loaded " . " \n " ;
$robotcontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$robotcontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$robotcontent .= " ob_start(); \n " ;
$robotcontent .= " header('Cache-Control: max-age=3600, public, must-revalidate'); \n " ;
$robotcontent .= " header('Content-type: text/css'); \n " ;
$robotcontent .= " // END PHP ?> \n " ; */
2017-07-23 17:44:26 +02:00
2022-02-24 18:15:04 +01:00
$robotcontent .= $dataposted . " \n " ;
2022-02-21 22:50:32 +01:00
/* $robotcontent .= " \n " . '<?php // BEGIN PHP' . " \n " ;
$robotcontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "robot");' . " \n " ;
$robotcontent .= " // END PHP ?> " . " \n " ; */
$result = dolSaveRobotFile ( $filerobot , $robotcontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filerobot , null , 'errors' );
}
} else {
2020-10-07 15:01:28 +02:00
$error ++ ;
}
2017-07-23 17:44:26 +02:00
2024-05-12 21:35:23 +02:00
$dataposted = trim ( GETPOST ( 'WEBSITE_HTACCESS' , 'nohtml' ));
2022-02-24 18:15:04 +01:00
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2017-07-23 17:44:26 +02:00
2020-10-07 15:01:28 +02:00
// Htaccess file
2022-02-21 22:50:32 +01:00
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2019-01-23 14:57:43 +01:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
if ( ! $errorphpcheck ) {
2024-12-03 11:18:35 +01:00
if ( $dataposted ) {
$htaccesscontent = '' ;
$htaccesscontent .= $dataposted . " \n " ;
2022-02-21 22:50:32 +01:00
2024-12-03 11:18:35 +01:00
$result = dolSaveHtaccessFile ( $filehtaccess , $htaccesscontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filehtaccess , null , 'errors' );
}
} else {
dol_delete_file ( $filehtaccess , 0 , 0 );
2022-02-21 22:50:32 +01:00
}
} else {
2020-10-07 15:01:28 +02:00
$error ++ ;
}
2017-07-23 17:44:26 +02:00
2024-07-21 14:44:14 +02:00
$dataposted = trim ( GETPOST ( 'WEBSITE_MANIFEST_JSON' , 'restricthtmlallowunvalid' ));
2022-02-24 18:15:04 +01:00
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2022-02-21 22:50:32 +01:00
// Manifest.json file
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2019-08-12 17:34:18 +02:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
2019-08-12 17:34:18 +02:00
2022-02-21 22:50:32 +01:00
if ( ! $errorphpcheck ) {
$manifestjsoncontent = '' ;
2019-08-12 17:34:18 +02:00
2022-02-21 22:50:32 +01:00
$manifestjsoncontent .= " <?php // BEGIN PHP \n " ;
$manifestjsoncontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$manifestjsoncontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__.'/master.inc.php'; } // Load env if not already loaded \n " ; // For the css, we need to set path of master using the dirname of css file.
$manifestjsoncontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$manifestjsoncontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$manifestjsoncontent .= " ob_start(); \n " ;
$manifestjsoncontent .= " header('Cache-Control: max-age=3600, public, must-revalidate'); \n " ;
$manifestjsoncontent .= " header('Content-type: application/manifest+json'); \n " ;
$manifestjsoncontent .= " // END PHP ?> \n " ;
2019-08-12 17:34:18 +02:00
2022-02-24 18:15:04 +01:00
$manifestjsoncontent .= $dataposted . " \n " ;
2022-02-21 22:50:32 +01:00
$manifestjsoncontent .= '<?php // BEGIN PHP' . " \n " ;
$manifestjsoncontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "manifest");' . " \n " ;
2024-05-12 21:35:23 +02:00
$manifestjsoncontent .= " // END PHP \n " ;
2022-02-21 22:50:32 +01:00
$result = dolSaveManifestJson ( $filemanifestjson , $manifestjsoncontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filemanifestjson , null , 'errors' );
}
} else {
2021-02-26 12:03:07 +01:00
$error ++ ;
}
2019-08-12 17:34:18 +02:00
2024-05-12 21:35:23 +02:00
$dataposted = trim ( GETPOST ( 'WEBSITE_README' , 'nohtml' ));
2022-02-24 18:15:04 +01:00
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
2019-08-12 17:34:18 +02:00
2021-02-26 12:03:07 +01:00
// README.md file
2022-02-21 22:50:32 +01:00
$phpfullcodestringold = '' ;
2022-02-24 18:15:04 +01:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
2019-08-15 00:55:47 +02:00
2022-02-21 22:50:32 +01:00
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
2019-08-15 00:55:47 +02:00
2022-02-21 22:50:32 +01:00
if ( ! $errorphpcheck ) {
$readmecontent = '' ;
2019-08-15 00:55:47 +02:00
2022-02-21 22:50:32 +01:00
/* $readmecontent .= " <?php // BEGIN PHP \n " ;
$readmecontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$readmecontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__.'/master.inc.php'; } // Load env if not already loaded " . " \n " ; // For the css, we need to set path of master using the dirname of css file.
$readmecontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$readmecontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$readmecontent .= " ob_start(); \n " ;
$readmecontent .= " header('Cache-Control: max-age=3600, public, must-revalidate'); \n " ;
$readmecontent .= " header('Content-type: application/manifest+json'); \n " ;
$readmecontent .= " // END PHP ?> \n " ; */
2019-08-15 00:55:47 +02:00
2022-02-24 18:15:04 +01:00
$readmecontent .= $dataposted . " \n " ;
2022-02-21 22:50:32 +01:00
/* $readmecontent .= '<?php // BEGIN PHP' . " \n " ;
$readmecontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "manifest");' . " \n " ;
$readmecontent .= " // END PHP ?> " . " \n " ; */
$result = dolSaveReadme ( $filereadme , $readmecontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filereadme , null , 'errors' );
}
} else {
2021-02-26 12:03:07 +01:00
$error ++ ;
}
2019-08-15 00:55:47 +02:00
2024-05-12 21:35:23 +02:00
$dataposted = trim ( GETPOST ( 'WEBSITE_LICENSE' , 'nohtml' ));
2022-09-03 19:02:42 +02:00
$dataposted = str_replace ( '<?=' , '<?php' , $dataposted );
// LICENSE file
$phpfullcodestringold = '' ;
$phpfullcodestring = dolKeepOnlyPhpCode ( $dataposted );
// Security analysis
$errorphpcheck = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring ); // Contains the setEventMessages
if ( ! $errorphpcheck ) {
$licensecontent = '' ;
/* $readmecontent .= " <?php // BEGIN PHP \n " ;
$readmecontent .= '$websitekey=basename(__DIR__);' . " \n " ;
$readmecontent .= " if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__.'/master.inc.php'; } // Load env if not already loaded " . " \n " ; // For the css, we need to set path of master using the dirname of css file.
$readmecontent .= " require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; \n " ;
$readmecontent .= " require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; \n " ;
$readmecontent .= " ob_start(); \n " ;
$readmecontent .= " header('Cache-Control: max-age=3600, public, must-revalidate'); \n " ;
$readmecontent .= " header('Content-type: application/manifest+json'); \n " ;
$readmecontent .= " // END PHP ?> \n " ; */
$licensecontent .= $dataposted . " \n " ;
/* $readmecontent .= '<?php // BEGIN PHP' . " \n " ;
$readmecontent .= '$tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "manifest");' . " \n " ;
$readmecontent .= " // END PHP ?> " . " \n " ; */
$result = dolSaveLicense ( $filelicense , $licensecontent );
if ( ! $result ) {
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filelicense , null , 'errors' );
}
} else {
$error ++ ;
}
2019-08-15 00:55:47 +02:00
2021-02-26 12:03:07 +01:00
// Save wrapper.php
2022-05-12 00:52:28 +02:00
$result = dolSaveIndexPage ( $pathofwebsite , '' , '' , $filewrapper , $object );
2020-05-23 13:10:33 +02:00
2020-10-07 15:01:28 +02:00
// Message if no error
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2020-10-07 15:01:28 +02:00
setEventMessages ( $langs -> trans ( " Saved " ), null , 'mesgs' );
}
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'updateandstay' )) { // If we click on "Save And Stay", we don not make the redirect
2020-10-07 15:01:28 +02:00
$action = 'preview' ;
2021-02-26 12:03:07 +01:00
if ( $backtopage ) {
2021-03-13 12:33:26 +01:00
$backtopage = preg_replace ( '/searchstring=[^&]*/' , '' , $backtopage ); // Clean backtopage url
2020-10-07 15:01:28 +02:00
header ( " Location: " . $backtopage );
exit ;
}
2021-02-26 12:03:07 +01:00
} else {
2020-10-07 15:01:28 +02:00
$action = 'editcss' ;
}
2017-10-07 13:09:31 +02:00
}
2017-07-19 16:38:00 +02:00
}
2016-05-01 16:34:50 +02:00
}
2016-05-02 15:51:18 +02:00
// Update page
2021-03-20 19:30:08 +01:00
if ( $action == 'setashome' && $usercanedit ) {
2017-10-07 13:09:31 +02:00
$db -> begin ();
2018-07-22 17:18:35 +02:00
$object -> fetch ( 0 , $websitekey );
$website = $object ;
2017-10-07 13:09:31 +02:00
$object -> fk_default_home = $pageid ;
$res = $object -> update ( $user );
2021-02-26 12:03:07 +01:00
if ( ! ( $res > 0 )) {
2017-10-07 13:09:31 +02:00
$error ++ ;
setEventMessages ( $object -> error , $object -> errors , 'errors' );
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-10-07 13:09:31 +02:00
$db -> commit ();
2020-03-09 19:49:14 +01:00
$filetpl = $pathofwebsite . '/page' . $pageid . '.tpl.php' ;
2017-10-07 13:09:31 +02:00
// Generate the index.php page to be the home page
2022-05-12 00:52:28 +02:00
$result = dolSaveIndexPage ( $pathofwebsite , $fileindex , $filetpl , $filewrapper , $object );
2017-07-02 23:38:19 +02:00
2021-02-26 12:03:07 +01:00
if ( $result ) {
setEventMessages ( $langs -> trans ( " Saved " ), null , 'mesgs' );
} else {
setEventMessages ( 'Failed to write file ' . $fileindex , null , 'errors' );
}
2017-07-02 23:38:19 +02:00
2019-11-12 00:15:34 +01:00
$action = 'preview' ;
2021-02-26 12:03:07 +01:00
} else {
2017-10-07 13:09:31 +02:00
$db -> rollback ();
}
2016-05-02 15:51:18 +02:00
}
2020-11-26 11:09:35 +01:00
// Update page properties (meta)
2021-03-20 19:30:08 +01:00
if ( $action == 'updatemeta' && $usercanedit ) {
2017-10-07 13:09:31 +02:00
$db -> begin ();
2018-02-19 16:46:29 +01:00
2018-08-20 19:10:33 +02:00
$result = $object -> fetch ( 0 , $websitekey );
2018-07-22 17:18:35 +02:00
$website = $object ;
2016-04-27 09:41:42 +02:00
2017-10-07 13:09:31 +02:00
$objectpage -> fk_website = $object -> id ;
2016-05-01 16:34:50 +02:00
2017-07-21 02:30:02 +02:00
// Check parameters
2021-02-26 12:03:07 +01:00
if ( ! preg_match ( '/^[a-z0-9\-\_]+$/i' , GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' ))) {
2017-10-07 13:09:31 +02:00
$error ++ ;
2018-02-19 16:46:29 +01:00
$langs -> load ( " errors " );
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> transnoentities ( " ErrorFieldCanNotContainSpecialCharacters " , $langs -> transnoentities ( 'WEBSITE_PAGENAME' )), null , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'editmeta' ;
2017-10-07 13:09:31 +02:00
}
2016-04-27 09:41:42 +02:00
2018-08-20 19:10:33 +02:00
$res = $objectpage -> fetch ( $pageid , $object -> id );
2021-02-26 12:03:07 +01:00
if ( $res <= 0 ) {
2017-10-07 13:09:31 +02:00
$error ++ ;
2018-02-19 16:46:29 +01:00
setEventMessages ( 'Page not found ' . $objectpage -> error , $objectpage -> errors , 'errors' );
2017-10-07 13:09:31 +02:00
}
2016-08-08 18:25:37 +02:00
2018-08-20 19:10:33 +02:00
// Check alias not exists
2021-02-26 12:03:07 +01:00
if ( ! $error && GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' )) {
2019-11-12 00:15:34 +01:00
$websitepagetemp = new WebsitePage ( $db );
2018-08-20 19:10:33 +02:00
$result = $websitepagetemp -> fetch ( - 1 * $objectpage -> id , $object -> id , GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' ));
2021-02-26 12:03:07 +01:00
if ( $result < 0 ) {
2018-08-20 19:10:33 +02:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $websitepagetemp -> error , $websitepagetemp -> errors , 'errors' );
$action = 'editmeta' ;
}
2021-02-26 12:03:07 +01:00
if ( $result > 0 ) {
2018-08-20 19:10:33 +02:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorAPageWithThisNameOrAliasAlreadyExists " , $websitepagetemp -> pageurl ), null , 'errors' );
$action = 'editmeta' ;
}
}
2021-04-11 18:49:17 +02:00
$newaliasnames = '' ;
2021-02-26 12:03:07 +01:00
if ( ! $error && GETPOST ( 'WEBSITE_ALIASALT' , 'alpha' )) {
2021-04-11 18:49:17 +02:00
$arrayofaliastotest = explode ( ',' , str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_ALIASALT' , 'alpha' )));
2019-11-12 00:15:34 +01:00
$websitepagetemp = new WebsitePage ( $db );
2021-02-26 12:03:07 +01:00
foreach ( $arrayofaliastotest as $aliastotest ) {
2021-04-11 18:49:17 +02:00
$aliastotest = trim ( preg_replace ( '/\.php$/i' , '' , $aliastotest ));
2020-06-09 21:43:42 +02:00
// Disallow alias name pageX (already used to save the page with id)
if ( preg_match ( '/^page\d+/i' , $aliastotest )) {
2018-08-20 19:10:33 +02:00
$error ++ ;
$langs -> load ( " errors " );
2021-04-11 18:49:17 +02:00
setEventMessages ( " Alias name 'pageX' is not allowed " , null , 'errors' );
2018-08-20 19:10:33 +02:00
$action = 'editmeta' ;
break ;
2020-06-09 21:43:42 +02:00
} else {
$result = $websitepagetemp -> fetch ( - 1 * $objectpage -> id , $object -> id , $aliastotest );
2021-02-26 12:03:07 +01:00
if ( $result < 0 ) {
2020-06-09 21:43:42 +02:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $websitepagetemp -> error , $websitepagetemp -> errors , 'errors' );
$action = 'editmeta' ;
break ;
}
2021-02-26 12:03:07 +01:00
if ( $result > 0 ) {
2020-06-09 21:43:42 +02:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorAPageWithThisNameOrAliasAlreadyExists " , $websitepagetemp -> pageurl ), null , 'errors' );
$action = 'editmeta' ;
break ;
}
2021-04-11 18:49:17 +02:00
$newaliasnames .= ( $newaliasnames ? ', ' : '' ) . $aliastotest ;
2018-08-20 19:10:33 +02:00
}
}
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-10-07 13:09:31 +02:00
$objectpage -> old_object = clone $objectpage ;
2016-09-16 01:23:54 +02:00
2020-06-09 21:43:42 +02:00
$objectpage -> title = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_TITLE' , 'alphanohtml' ));
$objectpage -> type_container = GETPOST ( 'WEBSITE_TYPE_CONTAINER' , 'aZ09' );
2017-10-07 13:09:31 +02:00
$objectpage -> pageurl = GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' );
2021-04-11 18:49:17 +02:00
$objectpage -> aliasalt = $newaliasnames ;
2020-02-19 18:32:04 +01:00
$objectpage -> lang = GETPOST ( 'WEBSITE_LANG' , 'aZ09' );
$objectpage -> otherlang = GETPOST ( 'WEBSITE_OTHERLANG' , 'aZ09comma' );
2020-06-09 21:43:42 +02:00
$objectpage -> description = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_DESCRIPTION' , 'alphanohtml' ));
2018-11-20 18:29:29 +01:00
$objectpage -> image = GETPOST ( 'WEBSITE_IMAGE' , 'alpha' );
2020-06-09 21:43:42 +02:00
$objectpage -> keywords = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_KEYWORDS' , 'alphanohtml' ));
2024-09-28 11:15:38 +02:00
$objectpage -> allowed_in_frames = GETPOST ( 'WEBSITE_ALLOWED_IN_FRAMES' , 'aZ09' ) ? 1 : 0 ;
2024-09-09 15:56:47 +02:00
$objectpage -> htmlheader = trim ( GETPOST ( 'htmlheader' , 'restricthtmlallowlinkscript' )); // Must accept tags like '<script>' and '<link>'
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$objectpage -> fk_page = ( GETPOSTINT ( 'pageidfortranslation' ) > 0 ? GETPOSTINT ( 'pageidfortranslation' ) : 0 );
2020-03-12 20:50:36 +01:00
$objectpage -> author_alias = trim ( GETPOST ( 'WEBSITE_AUTHORALIAS' , 'alphanohtml' ));
2020-10-01 15:18:19 +02:00
$objectpage -> object_type = GETPOST ( 'WEBSITE_OBJECTCLASS' , 'alpha' );
2020-10-07 15:01:28 +02:00
$objectpage -> fk_object = GETPOST ( 'WEBSITE_OBJECTID' , 'aZ09' );
2019-10-31 21:09:33 +01:00
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$newdatecreation = dol_mktime ( GETPOSTINT ( 'datecreationhour' ), GETPOSTINT ( 'datecreationmin' ), GETPOSTINT ( 'datecreationsec' ), GETPOSTINT ( 'datecreationmonth' ), GETPOSTINT ( 'datecreationday' ), GETPOSTINT ( 'datecreationyear' ));
2021-02-26 12:03:07 +01:00
if ( $newdatecreation ) {
$objectpage -> date_creation = $newdatecreation ;
}
2016-09-16 01:00:24 +02:00
2017-10-07 13:09:31 +02:00
$res = $objectpage -> update ( $user );
2021-02-26 12:03:07 +01:00
if ( ! ( $res > 0 )) {
2018-08-20 19:10:33 +02:00
$langs -> load ( " errors " );
2021-02-26 12:03:07 +01:00
if ( $db -> lasterrno == 'DB_ERROR_RECORD_ALREADY_EXISTS' ) {
2018-08-20 19:10:33 +02:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorAPageWithThisNameOrAliasAlreadyExists " ), null , 'errors' );
$action = 'editmeta' ;
2021-02-26 12:03:07 +01:00
} else {
2018-08-20 19:10:33 +02:00
$error ++ ;
$langs -> load ( " errors " );
setEventMessages ( $objectpage -> error , $objectpage -> errors , 'errors' );
$action = 'editmeta' ;
}
2017-10-07 13:09:31 +02:00
}
2018-02-19 16:46:29 +01:00
}
2017-07-02 23:38:19 +02:00
2020-05-26 00:19:32 +02:00
if ( ! $error ) {
2020-06-30 02:50:58 +02:00
// Website categories association
2020-05-26 00:19:32 +02:00
$categoriesarray = GETPOST ( 'categories' , 'array' );
2020-05-26 01:07:09 +02:00
$result = $objectpage -> setCategories ( $categoriesarray );
2021-02-26 12:03:07 +01:00
if ( $result < 0 ) {
2020-05-26 00:19:32 +02:00
$error ++ ;
setEventMessages ( $object -> error , $object -> errors , 'errors' );
}
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2018-02-19 16:46:29 +01:00
$db -> commit ();
2021-02-26 12:03:07 +01:00
} else {
2018-02-19 16:46:29 +01:00
$db -> rollback ();
}
2017-10-07 13:09:31 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2019-11-12 00:15:34 +01:00
$filemaster = $pathofwebsite . '/master.inc.php' ;
$fileoldalias = $pathofwebsite . '/' . $objectpage -> old_object -> pageurl . '.php' ;
$filealias = $pathofwebsite . '/' . $objectpage -> pageurl . '.php' ;
2017-07-02 23:38:19 +02:00
2018-02-19 16:46:29 +01:00
dol_mkdir ( $pathofwebsite );
2017-07-02 23:38:19 +02:00
2018-02-19 16:46:29 +01:00
// Now generate the master.inc.php page
2018-09-10 23:20:31 +02:00
$result = dolSaveMasterFile ( $filemaster );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
setEventMessages ( 'Failed to write file ' . $filemaster , null , 'errors' );
}
2017-10-07 13:09:31 +02:00
2018-06-14 16:33:11 +02:00
// Now delete the alias.php page
2021-02-26 12:03:07 +01:00
if ( ! empty ( $fileoldalias )) {
2018-06-14 16:33:11 +02:00
dol_syslog ( " We delete old alias page name= " . $fileoldalias . " to build a new alias page= " . $filealias );
2018-02-19 16:46:29 +01:00
dol_delete_file ( $fileoldalias );
2021-01-26 13:57:56 +01:00
// Delete also pages into language subdirectories
if ( empty ( $objectpage -> lang ) || ! in_array ( $objectpage -> lang , explode ( ',' , $object -> otherlang ))) {
$dirname = dirname ( $fileoldalias );
$filename = basename ( $fileoldalias );
$sublangs = explode ( ',' , $object -> otherlang );
foreach ( $sublangs as $sublang ) {
2021-04-07 09:29:40 +02:00
// Under certain conditions $sublang can be an empty string
// ($object->otherlang with empty string or with string like this 'en,,sv')
// if is the case we try to re-delete the main alias file. Avoid it.
2023-12-04 13:53:48 +01:00
if ( empty ( trim ( $sublang ))) {
continue ;
}
2021-01-26 13:57:56 +01:00
$fileoldaliassub = $dirname . '/' . $sublang . '/' . $filename ;
dol_delete_file ( $fileoldaliassub );
}
}
2018-02-19 16:46:29 +01:00
}
2018-06-14 16:33:11 +02:00
// Now delete the alternative alias.php pages
2021-02-26 12:03:07 +01:00
if ( ! empty ( $objectpage -> old_object -> aliasalt )) {
2019-11-12 00:15:34 +01:00
$tmpaltaliases = explode ( ',' , $objectpage -> old_object -> aliasalt );
2021-02-26 12:03:07 +01:00
if ( is_array ( $tmpaltaliases )) {
foreach ( $tmpaltaliases as $tmpaliasalt ) {
2018-06-14 16:33:11 +02:00
dol_syslog ( " We delete old alt alias pages name= " . trim ( $tmpaliasalt ));
dol_delete_file ( $pathofwebsite . '/' . trim ( $tmpaliasalt ) . '.php' );
2021-01-26 13:57:56 +01:00
// Delete also pages into language subdirectories
if ( empty ( $objectpage -> lang ) || ! in_array ( $objectpage -> lang , explode ( ',' , $object -> otherlang ))) {
$dirname = dirname ( $pathofwebsite . '/' . trim ( $tmpaliasalt ) . '.php' );
$filename = basename ( $pathofwebsite . '/' . trim ( $tmpaliasalt ) . '.php' );
$sublangs = explode ( ',' , $object -> otherlang );
foreach ( $sublangs as $sublang ) {
2021-04-07 09:29:40 +02:00
// Under certain conditions $ sublang can be an empty string
// ($object->otherlang with empty string or with string like this 'en,,sv')
// if is the case we try to re-delete the main alias file. Avoid it.
2023-12-04 13:53:48 +01:00
if ( empty ( trim ( $sublang ))) {
continue ;
}
2021-01-26 13:57:56 +01:00
$fileoldaliassub = $dirname . '/' . $sublang . '/' . $filename ;
dol_delete_file ( $fileoldaliassub );
}
}
2018-06-14 16:33:11 +02:00
}
}
}
2016-08-08 18:25:37 +02:00
2021-01-26 13:57:56 +01:00
// Save page main alias
2019-11-12 00:15:34 +01:00
$result = dolSavePageAlias ( $filealias , $object , $objectpage );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
setEventMessages ( 'Failed to write file ' . $filealias , null , 'errors' );
}
2018-06-14 16:33:11 +02:00
// Save alt aliases
2021-02-26 12:03:07 +01:00
if ( ! empty ( $objectpage -> aliasalt )) {
2019-11-12 00:15:34 +01:00
$tmpaltaliases = explode ( ',' , $objectpage -> aliasalt );
2021-02-26 12:03:07 +01:00
if ( is_array ( $tmpaltaliases )) {
foreach ( $tmpaltaliases as $tmpaliasalt ) {
if ( trim ( $tmpaliasalt )) {
2020-02-21 11:36:16 +01:00
$filealias = $pathofwebsite . '/' . trim ( $tmpaliasalt ) . '.php' ;
$result = dolSavePageAlias ( $filealias , $object , $objectpage );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
setEventMessages ( 'Failed to write file ' . basename ( $filealias ), null , 'errors' );
}
2019-08-16 02:31:06 +02:00
}
2018-06-14 16:33:11 +02:00
}
}
}
2017-10-07 13:09:31 +02:00
2018-02-19 16:46:29 +01:00
// Save page of content
2021-10-20 17:08:33 +02:00
$result = dolSavePageContent ( $filetpl , $object , $objectpage , 1 );
2021-02-26 12:03:07 +01:00
if ( $result ) {
2018-02-19 16:46:29 +01:00
setEventMessages ( $langs -> trans ( " Saved " ), null , 'mesgs' );
2019-12-08 15:57:51 +01:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'updateandstay' )) { // If we click on "Save And Stay", we do not make the redirect
2019-12-08 15:57:51 +01:00
//header("Location: ".$_SERVER["PHP_SELF"].'?website='.$websitekey.'&pageid='.$pageid);
//exit;
$action = 'preview' ;
2021-02-26 12:03:07 +01:00
} else {
2019-12-08 15:57:51 +01:00
$action = 'editmeta' ;
}
2021-02-26 12:03:07 +01:00
} else {
2018-02-19 16:46:29 +01:00
setEventMessages ( 'Failed to write file ' . $filetpl , null , 'errors' );
2018-07-22 17:18:35 +02:00
//header("Location: ".$_SERVER["PHP_SELF"].'?website='.$websitekey.'&pageid='.$pageid);
2021-02-26 12:03:07 +01:00
//exit;
2019-12-08 15:57:51 +01:00
$action = 'preview' ;
2017-10-07 13:09:31 +02:00
}
}
2016-05-01 16:34:50 +02:00
}
2016-04-23 21:34:10 +02:00
// Update page
2024-08-31 19:15:14 +02:00
if ((( $action == 'updatesource' || $action == 'updatecontent' || $action == 'confirm_createfromclone' || $action == 'confirm_createpagefromclone' ) || ( $action == 'preview' && ( GETPOST ( 'refreshsite' ) || GETPOST ( 'refreshpage' ) || GETPOST ( 'preview' )))) && $usercanedit ) {
2018-07-22 17:18:35 +02:00
$object -> fetch ( 0 , $websitekey );
$website = $object ;
2016-05-01 16:34:50 +02:00
2024-08-31 19:15:14 +02:00
if ( $action == 'confirm_createfromclone' ) { // Test on permissions already done
2018-09-25 20:34:05 +02:00
$db -> begin ();
2017-08-03 01:45:31 +02:00
$objectnew = new Website ( $db );
2024-09-09 18:16:42 +02:00
$result = $objectnew -> createFromClone ( $user , GETPOSTINT ( 'id' ), GETPOST ( 'siteref' ), ( GETPOSTINT ( 'newlang' ) ? GETPOSTINT ( 'newlang' ) : '' ));
2020-06-08 23:37:49 +02:00
2021-02-26 12:03:07 +01:00
if ( $result < 0 ) {
2017-08-03 01:45:31 +02:00
$error ++ ;
setEventMessages ( $objectnew -> error , $objectnew -> errors , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'preview' ;
2018-09-25 20:34:05 +02:00
$db -> rollback ();
2021-02-26 12:03:07 +01:00
} else {
2024-09-09 18:16:42 +02:00
setEventMessages ( " ObjectClonedSuccessfuly " , null , 'mesgs' );
2017-08-21 00:40:45 +02:00
$object = $objectnew ;
$id = $object -> id ;
$pageid = $object -> fk_default_home ;
2019-01-27 11:55:16 +01:00
$websitekey = GETPOST ( 'siteref' , 'aZ09' );
2018-09-25 20:34:05 +02:00
$db -> commit ();
2017-08-03 01:45:31 +02:00
}
}
2024-08-31 19:15:14 +02:00
if ( $action == 'confirm_createpagefromclone' ) { // Test on permissions already done
2019-11-12 00:15:34 +01:00
$istranslation = ( GETPOST ( 'is_a_translation' , 'aZ09' ) == 'on' ? 1 : 0 );
2020-01-11 14:44:12 +01:00
// Protection if it is a translation page
2021-02-26 12:03:07 +01:00
if ( $istranslation ) {
2020-12-06 15:59:19 +01:00
if ( GETPOST ( 'newlang' , 'aZ09' ) == $objectpage -> lang || ! GETPOST ( 'newlang' , 'aZ09' )) {
2017-07-22 20:01:29 +02:00
$error ++ ;
setEventMessages ( $langs -> trans ( " LanguageMustNotBeSameThanClonedPage " ), null , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'preview' ;
2017-07-22 20:01:29 +02:00
}
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
if ( GETPOSTINT ( 'newwebsite' ) != $object -> id ) {
2020-01-11 14:44:12 +01:00
$error ++ ;
setEventMessages ( $langs -> trans ( " WebsiteMustBeSameThanClonedPageIfTranslation " ), null , 'errors' );
$action = 'preview' ;
}
2017-07-21 13:38:13 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2018-09-25 20:34:05 +02:00
$db -> begin ();
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$newwebsiteid = GETPOSTINT ( 'newwebsite' );
2018-09-25 20:34:05 +02:00
$pathofwebsitenew = $pathofwebsite ;
2019-11-12 00:15:34 +01:00
$tmpwebsite = new Website ( $db );
2021-02-26 12:03:07 +01:00
if ( $newwebsiteid > 0 && $newwebsiteid != $object -> id ) {
2018-09-25 20:34:05 +02:00
$tmpwebsite -> fetch ( $newwebsiteid );
2022-04-25 10:14:30 +02:00
$pathofwebsitenew = $dolibarr_main_data_root . ( $conf -> entity > 1 ? '/' . $conf -> entity : '' ) . '/website/' . $tmpwebsite -> ref ;
2021-02-26 12:03:07 +01:00
} else {
2018-09-25 20:34:05 +02:00
$tmpwebsite = $object ;
}
2017-10-07 13:09:31 +02:00
$objectpage = new WebsitePage ( $db );
2024-08-26 20:51:42 +02:00
$resultpage = $objectpage -> createFromClone ( $user , $pageid , GETPOST ( 'newpageurl' , 'aZ09' ), ( GETPOST ( 'newlang' , 'aZ09' ) ? GETPOST ( 'newlang' , 'aZ09' ) : '' ), $istranslation , $newwebsiteid , GETPOST ( 'newtitle' , 'alphanohtml' ), $tmpwebsite );
2021-02-26 12:03:07 +01:00
if ( $resultpage < 0 ) {
2017-07-22 20:01:29 +02:00
$error ++ ;
setEventMessages ( $objectpage -> error , $objectpage -> errors , 'errors' );
2019-11-12 00:15:34 +01:00
$action = 'createpagefromclone' ;
2018-09-25 20:34:05 +02:00
$db -> rollback ();
2020-05-23 18:34:58 +02:00
} else {
2019-11-12 00:15:34 +01:00
$filetpl = $pathofwebsitenew . '/page' . $resultpage -> id . '.tpl.php' ;
2020-05-23 13:10:33 +02:00
$fileindex = $pathofwebsitenew . '/index.php' ;
2019-11-12 00:15:34 +01:00
$filewrapper = $pathofwebsitenew . '/wrapper.php' ;
2018-09-25 20:34:05 +02:00
//var_dump($pathofwebsitenew);
//var_dump($filetpl);
//exit;
2021-10-20 17:08:33 +02:00
dolSavePageContent ( $filetpl , $tmpwebsite , $resultpage , 1 );
2018-09-25 20:34:05 +02:00
// Switch on the new page if web site of new page/container is same
2021-02-26 12:03:07 +01:00
if ( empty ( $newwebsiteid ) || $newwebsiteid == $object -> id ) {
2018-09-25 20:34:05 +02:00
$pageid = $resultpage -> id ;
}
$db -> commit ();
2017-10-26 14:16:59 +02:00
}
2017-07-22 20:01:29 +02:00
}
2017-10-07 13:09:31 +02:00
}
2017-07-03 02:09:14 +02:00
2017-10-07 13:09:31 +02:00
$res = 0 ;
2017-07-22 20:01:29 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-10-07 13:09:31 +02:00
// Check symlink to medias and restore it if ko
2019-11-12 00:15:34 +01:00
$pathtomedias = DOL_DATA_ROOT . '/medias' ;
$pathtomediasinwebsite = $pathofwebsite . '/medias' ;
2021-02-26 12:03:07 +01:00
if ( ! is_link ( dol_osencode ( $pathtomediasinwebsite ))) {
2017-10-07 13:09:31 +02:00
dol_syslog ( " Create symlink for " . $pathtomedias . " into name " . $pathtomediasinwebsite );
2019-11-12 00:15:34 +01:00
dol_mkdir ( dirname ( $pathtomediasinwebsite )); // To be sure dir for website exists
2017-10-07 13:09:31 +02:00
$result = symlink ( $pathtomedias , $pathtomediasinwebsite );
}
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
/* if ( GETPOST ( 'savevirtualhost' ) && $object -> virtualhost != GETPOST ( 'previewsite' ))
2021-02-26 12:03:07 +01:00
{
$object -> virtualhost = GETPOST ( 'previewsite' , 'alpha' );
$object -> update ( $user );
} */
2016-05-02 20:27:34 +02:00
2017-10-07 13:09:31 +02:00
$objectpage -> fk_website = $object -> id ;
2017-07-22 20:01:29 +02:00
2021-02-26 12:03:07 +01:00
if ( $pageid > 0 ) {
2017-10-07 13:09:31 +02:00
$res = $objectpage -> fetch ( $pageid );
2021-02-26 12:03:07 +01:00
} else {
2019-11-12 00:15:34 +01:00
$res = 0 ;
2021-02-26 12:03:07 +01:00
if ( $object -> fk_default_home > 0 ) {
2017-10-07 13:09:31 +02:00
$res = $objectpage -> fetch ( $object -> fk_default_home );
}
2021-02-26 12:03:07 +01:00
if ( ! ( $res > 0 )) {
2017-10-07 13:09:31 +02:00
$res = $objectpage -> fetch ( 0 , $object -> id );
}
}
}
2017-07-02 23:38:19 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error && $res > 0 ) {
2024-08-31 19:15:14 +02:00
if ( $action == 'updatesource' || $action == 'updatecontent' ) { // Test on permissions already done
2017-10-07 13:09:31 +02:00
$db -> begin ();
2017-07-02 23:38:19 +02:00
2019-04-30 13:05:13 +02:00
$phpfullcodestringold = dolKeepOnlyPhpCode ( $objectpage -> content );
2023-08-13 15:45:45 +02:00
$objectpage -> content = GETPOST ( 'PAGE_CONTENT' , 'none' ); // any HTML content allowed
2017-07-02 23:38:19 +02:00
2019-04-25 23:21:25 +02:00
$phpfullcodestring = dolKeepOnlyPhpCode ( $objectpage -> content );
2021-06-09 16:37:15 +02:00
2023-08-13 15:45:45 +02:00
// Security analysis (check PHP content and check permission website->writephp if php content is modified)
2022-02-21 22:50:32 +01:00
$error = checkPHPCode ( $phpfullcodestringold , $phpfullcodestring );
2020-10-07 15:01:28 +02:00
2022-02-21 22:50:32 +01:00
if ( $error ) {
2024-09-01 13:02:28 +02:00
if ( $action == 'updatesource' ) { // Test on permissions already done
2022-02-21 22:50:32 +01:00
$action = 'editsource' ;
}
2024-09-01 13:02:28 +02:00
if ( $action == 'updatecontent' ) { // Test on permissions already done
2022-02-21 22:50:32 +01:00
$action = 'editcontent' ;
2020-10-07 15:01:28 +02:00
}
}
2019-04-25 23:21:25 +02:00
2017-10-07 13:09:31 +02:00
// Clean data. We remove all the head section.
2018-09-25 15:00:37 +02:00
$objectpage -> content = preg_replace ( '/<head>.*<\/head>/ims' , '' , $objectpage -> content );
2017-10-07 13:09:31 +02:00
/* $objectpage->content = preg_replace('/<base\s+href=[\'"][^\'"]+[\'"]\s/?>/s', '', $objectpage->content); */
2017-08-21 03:13:44 +02:00
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
$res = $objectpage -> update ( $user );
2021-02-26 12:03:07 +01:00
if ( $res < 0 ) {
2017-10-07 13:09:31 +02:00
$error ++ ;
setEventMessages ( $objectpage -> error , $objectpage -> errors , 'errors' );
2024-09-01 13:48:58 +02:00
if ( $action == 'updatesource' ) { // Test on permissions already done
2021-02-26 12:03:07 +01:00
$action = 'editsource' ;
}
2024-09-01 13:48:58 +02:00
if ( $action == 'updatecontent' ) { // Test on permissions already done
2021-02-26 12:03:07 +01:00
$action = 'editcontent' ;
}
2017-10-07 13:09:31 +02:00
}
2017-07-02 23:38:19 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
2017-10-07 13:09:31 +02:00
$db -> commit ();
2019-11-12 00:15:34 +01:00
$filemaster = $pathofwebsite . '/master.inc.php' ;
2017-10-07 13:09:31 +02:00
//$fileoldalias=$pathofwebsite.'/'.$objectpage->old_object->pageurl.'.php';
2019-11-12 00:15:34 +01:00
$filealias = $pathofwebsite . '/' . $objectpage -> pageurl . '.php' ;
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
dol_mkdir ( $pathofwebsite );
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
// Now generate the master.inc.php page
2018-09-10 23:20:31 +02:00
$result = dolSaveMasterFile ( $filemaster );
2017-07-02 23:38:19 +02:00
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
setEventMessages ( 'Failed to write the master file file ' . $filemaster , null , 'errors' );
}
2017-07-02 23:38:19 +02:00
2021-01-26 13:57:56 +01:00
// Now delete the old alias.php page if we removed one
/* if ( ! empty ( $fileoldalias ))
2017-10-07 13:09:31 +02:00
{
dol_syslog ( " We regenerate alias page new name= " . $filealias . " , old name= " . $fileoldalias );
dol_delete_file ( $fileoldalias );
2021-01-26 13:38:41 +01:00
// Delete also pages into language subdirectories
if ( empty ( $objectpage -> lang ) || ! in_array ( $objectpage -> lang , explode ( ',' , $object -> otherlang ))) {
$dirname = dirname ( $fileoldalias );
$filename = basename ( $fileoldalias );
2021-01-26 13:40:38 +01:00
$sublangs = explode ( ',' , $object -> otherlang );
foreach ( $sublangs as $sublang ) {
2021-01-26 13:38:41 +01:00
$fileoldaliassub = $dirname . '/' . $sublang . '/' . $filename ;
dol_delete_file ( $fileoldaliassub );
}
}
2021-01-26 13:57:56 +01:00
} */
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
// Save page alias
2019-11-12 00:15:34 +01:00
$result = dolSavePageAlias ( $filealias , $object , $objectpage );
2021-02-26 12:03:07 +01:00
if ( ! $result ) {
setEventMessages ( 'Failed to write the alias file ' . basename ( $filealias ), null , 'errors' );
}
2017-07-02 23:38:19 +02:00
2017-07-28 15:32:15 +02:00
// Save page content
2021-04-01 19:48:15 +02:00
$result = dolSavePageContent ( $filetpl , $object , $objectpage , 1 );
2021-02-26 12:03:07 +01:00
if ( $result ) {
2017-10-07 13:09:31 +02:00
setEventMessages ( $langs -> trans ( " Saved " ), null , 'mesgs' );
2019-12-08 15:57:51 +01:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'updateandstay' )) { // If we click on "Save And Stay", we do not make the redirect
2019-12-08 15:57:51 +01:00
if ( $backtopage ) {
header ( " Location: " . $backtopage );
exit ;
} else {
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . $websitekey . '&pageid=' . $pageid );
exit ;
}
2020-05-21 15:11:06 +02:00
} else {
2024-09-01 13:48:58 +02:00
if ( $action == 'updatesource' ) { // Test on permissions already done
2021-02-26 12:03:07 +01:00
$action = 'editsource' ;
}
2024-09-01 13:48:58 +02:00
if ( $action == 'updatecontent' ) { // Test on permissions already done
2021-02-26 12:03:07 +01:00
$action = 'editcontent' ;
}
2019-12-08 15:57:51 +01:00
}
2020-05-21 15:11:06 +02:00
} else {
2017-10-07 13:09:31 +02:00
setEventMessages ( 'Failed to write file ' . $filetpl , null , 'errors' );
2018-07-22 17:18:35 +02:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . $websitekey . '&pageid=' . $pageid );
2021-02-26 12:03:07 +01:00
exit ;
2017-10-07 13:09:31 +02:00
}
2020-05-21 15:11:06 +02:00
} else {
2017-10-07 13:09:31 +02:00
$db -> rollback ();
}
2020-05-21 15:11:06 +02:00
} else {
2018-07-22 17:18:35 +02:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . $websitekey . '&pageid=' . $pageid );
2017-10-07 13:09:31 +02:00
exit ;
}
2020-05-21 15:11:06 +02:00
} else {
2021-02-26 12:03:07 +01:00
if ( ! $error ) {
if ( empty ( $websitekey ) || $websitekey == '-1' ) {
2018-12-17 17:29:04 +01:00
setEventMessages ( $langs -> trans ( " NoWebSiteCreateOneFirst " ), null , 'warnings' );
2020-05-21 15:11:06 +02:00
} else {
2018-12-17 17:29:04 +01:00
setEventMessages ( $langs -> trans ( " NoPageYet " ), null , 'warnings' );
setEventMessages ( $langs -> trans ( " YouCanCreatePageOrImportTemplate " ), null , 'warnings' );
}
2018-08-16 21:48:16 +02:00
}
2017-10-07 13:09:31 +02:00
}
2016-04-23 21:34:10 +02:00
}
2016-01-24 21:35:41 +01:00
2024-03-14 10:29:36 +01:00
if ( $action == 'deletelang' && $usercanedit ) {
$sql = " UPDATE " . MAIN_DB_PREFIX . " website_page SET fk_page = NULL " ;
$sql .= " WHERE rowid = " . GETPOSTINT ( 'deletelangforid' );
//$sql .= " AND fk_page = ".((int) $objectpage->id);
$resql = $db -> query ( $sql );
if ( ! $resql ) {
setEventMessages ( $db -> lasterror (), null , 'errors' );
} else {
$objectpage -> fk_page = null ;
}
$action = 'editmeta' ;
}
2017-09-01 11:10:03 +02:00
// Export site
2023-10-15 18:46:18 +02:00
if ( $action == 'exportsite' && $user -> hasRight ( 'website' , 'export' )) {
2017-11-05 03:39:27 +01:00
$fileofzip = $object -> exportWebSite ();
2017-09-01 11:10:03 +02:00
2021-02-26 12:03:07 +01:00
if ( $fileofzip ) {
2017-12-11 18:25:23 +01:00
$file_name = basename ( $fileofzip );
header ( " Content-Type: application/zip " );
header ( " Content-Disposition: attachment; filename= " . $file_name );
2019-11-12 00:15:34 +01:00
header ( " Content-Length: " . filesize ( $fileofzip ));
2017-09-01 11:10:03 +02:00
2017-12-11 18:25:23 +01:00
readfile ( $fileofzip );
exit ;
2021-02-26 12:03:07 +01:00
} else {
2019-08-14 01:43:06 +02:00
setEventMessages ( $object -> error , $object -> errors , 'errors' );
2020-05-20 13:19:32 +02:00
$action = 'preview' ;
}
}
2024-01-28 16:36:01 +01:00
// Overwrite site
if ( $action == 'overwritesite' && $user -> hasRight ( 'website' , 'export' )) {
if ( getDolGlobalString ( 'WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE' )) {
2024-01-31 15:48:15 +01:00
$fileofzip = $object -> exportWebSite ();
2024-05-05 01:15:32 +02:00
$pathToExport = GETPOST ( 'export_path' );
2024-01-31 15:48:15 +01:00
if ( $fileofzip ) {
2024-05-05 01:15:32 +02:00
$object -> overwriteTemplate ( $fileofzip , $pathToExport );
2024-01-31 15:48:15 +01:00
} else {
setEventMessages ( $object -> error , $object -> errors , 'errors' );
}
2024-01-28 16:36:01 +01:00
}
2023-12-11 17:52:46 +01:00
}
2020-05-20 13:19:32 +02:00
// Regenerate site
2021-03-20 19:30:08 +01:00
if ( $action == 'regeneratesite' && $usercanedit ) {
2021-03-11 14:10:08 +01:00
// Check symlink to medias and restore it if ko. Recreate also dir of website if not found.
$pathtomedias = DOL_DATA_ROOT . '/medias' ;
$pathtomediasinwebsite = $pathofwebsite . '/medias' ;
if ( ! is_link ( dol_osencode ( $pathtomediasinwebsite ))) {
dol_syslog ( " Create symlink for " . $pathtomedias . " into name " . $pathtomediasinwebsite );
2022-05-12 00:52:28 +02:00
dol_mkdir ( dirname ( $pathtomediasinwebsite )); // To be sure that the directory for website exists
2021-03-11 14:10:08 +01:00
$result = symlink ( $pathtomedias , $pathtomediasinwebsite );
if ( ! $result ) {
2023-08-15 00:05:51 +02:00
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorFailedToCreateSymLinkToMedias " , $pathtomediasinwebsite , $pathtomedias ), null , 'errors' );
2021-03-11 14:10:50 +01:00
$action = 'preview' ;
2021-03-11 14:10:08 +01:00
}
}
2020-05-20 13:19:32 +02:00
$result = $object -> rebuildWebSiteFiles ();
2021-02-26 12:03:07 +01:00
if ( $result > 0 ) {
2020-06-09 21:43:42 +02:00
setEventMessages ( $langs -> trans ( " PagesRegenerated " , $result ), null , 'mesgs' );
2020-05-20 13:19:32 +02:00
$action = 'preview' ;
2020-05-21 15:11:06 +02:00
} else {
2020-05-20 13:19:32 +02:00
setEventMessages ( $object -> error , $object -> errors , 'errors' );
$action = 'preview' ;
2019-08-14 01:43:06 +02:00
}
2017-09-01 11:10:03 +02:00
}
2018-08-15 14:24:33 +02:00
// Import site
2021-03-20 19:30:08 +01:00
if ( $action == 'importsiteconfirm' && $usercanedit ) {
2022-11-29 18:01:27 +01:00
$dolibarrdataroot = preg_replace ( '/([\\/]+)$/i' , '' , DOL_DATA_ROOT );
$allowimportsite = true ;
if ( dol_is_file ( $dolibarrdataroot . '/installmodules.lock' )) {
$allowimportsite = false ;
}
2018-09-10 21:25:30 +02:00
2022-11-29 18:01:27 +01:00
if ( $allowimportsite ) {
if ( empty ( $_FILES ) && ! GETPOSTISSET ( 'templateuserfile' )) {
setEventMessages ( $langs -> trans ( " ErrorFieldRequired " , $langs -> transnoentitiesnoconv ( " File " )), null , 'errors' );
$action = 'importsite' ;
} else {
if ( ! empty ( $_FILES ) || GETPOSTISSET ( 'templateuserfile' )) {
// Check symlink to medias and restore it if ko. Recreate also dir of website if not found.
$pathtomedias = DOL_DATA_ROOT . '/medias' ;
$pathtomediasinwebsite = $pathofwebsite . '/medias' ;
if ( ! is_link ( dol_osencode ( $pathtomediasinwebsite ))) {
dol_syslog ( " Create symlink for " . $pathtomedias . " into name " . $pathtomediasinwebsite );
dol_mkdir ( dirname ( $pathtomediasinwebsite )); // To be sure dir for website exists
$result = symlink ( $pathtomedias , $pathtomediasinwebsite );
if ( ! $result ) {
2023-08-15 00:05:51 +02:00
$langs -> load ( " errors " );
setEventMessages ( $langs -> trans ( " ErrorFailedToCreateSymLinkToMedias " , $pathtomediasinwebsite , $pathtomedias ), null , 'errors' );
2022-11-29 18:01:27 +01:00
$action = 'importsite' ;
}
2021-02-26 12:03:07 +01:00
}
2019-08-12 22:19:24 +02:00
2022-11-29 18:01:27 +01:00
$fileofzip = '' ;
if ( GETPOSTISSET ( 'templateuserfile' )) {
2022-11-30 16:28:44 +01:00
// Case we selected one template
$fileofzip = DOL_DATA_ROOT . '/doctemplates/websites/' . GETPOST ( 'templateuserfile' , 'alpha' ); // $fileofzip will be sanitized later into the importWebSite()
2023-10-20 13:14:10 +02:00
} elseif ( ! empty ( $_FILES ) && is_array ( $_FILES [ 'userfile' ])) {
2022-11-30 16:28:44 +01:00
// Case we upload a new template
2022-11-29 18:01:27 +01:00
if ( is_array ( $_FILES [ 'userfile' ][ 'tmp_name' ])) {
$userfiles = $_FILES [ 'userfile' ][ 'tmp_name' ];
} else {
$userfiles = array ( $_FILES [ 'userfile' ][ 'tmp_name' ]);
}
2022-11-30 16:28:44 +01:00
// Check if $_FILES is ok
2022-11-29 18:01:27 +01:00
foreach ( $userfiles as $key => $userfile ) {
if ( empty ( $_FILES [ 'userfile' ][ 'tmp_name' ][ $key ])) {
$error ++ ;
if ( $_FILES [ 'userfile' ][ 'error' ][ $key ] == 1 || $_FILES [ 'userfile' ][ 'error' ][ $key ] == 2 ) {
setEventMessages ( $langs -> trans ( 'ErrorFileSizeTooLarge' ), null , 'errors' );
$action = 'importsite' ;
} else {
setEventMessages ( $langs -> trans ( " ErrorFieldRequired " , $langs -> transnoentitiesnoconv ( " File " )), null , 'errors' );
$action = 'importsite' ;
}
2019-08-12 22:19:24 +02:00
}
2018-08-16 21:48:16 +02:00
}
2018-08-15 14:24:33 +02:00
2022-11-29 18:01:27 +01:00
if ( ! $error ) {
2022-11-30 16:28:44 +01:00
//$upload_dir = $conf->website->dir_temp;
$upload_dir = DOL_DATA_ROOT . '/doctemplates/websites/' ;
2022-11-29 18:01:27 +01:00
$result = dol_add_file_process ( $upload_dir , 1 , - 1 , 'userfile' , '' );
}
2018-08-16 21:48:16 +02:00
2022-11-29 18:01:27 +01:00
// Get name of file (take last one if several name provided)
2022-11-30 16:28:44 +01:00
/*
2022-11-29 18:01:27 +01:00
$fileofzip = $upload_dir . '/unknown' ;
foreach ( $_FILES as $key => $ifile ) {
foreach ( $ifile [ 'name' ] as $key2 => $ifile2 ) {
$fileofzip = $upload_dir . '/' . $ifile2 ;
}
2018-08-16 21:48:16 +02:00
}
2022-11-30 16:28:44 +01:00
*/
$action = 'importsite' ;
2018-08-16 21:48:16 +02:00
}
2022-11-30 16:28:44 +01:00
if ( ! $error && GETPOSTISSET ( 'templateuserfile' )) {
2023-12-11 17:52:46 +01:00
$templatewithoutzip = preg_replace ( '/\.zip$/i' , '' , GETPOST ( 'templateuserfile' ));
$object -> setTemplateName ( $templatewithoutzip );
2022-11-29 18:01:27 +01:00
$result = $object -> importWebSite ( $fileofzip );
2022-07-12 10:56:03 +02:00
2022-11-29 18:01:27 +01:00
if ( $result < 0 ) {
setEventMessages ( $object -> error , $object -> errors , 'errors' );
$action = 'importsite' ;
} else {
// Force mode dynamic on
dolibarr_set_const ( $db , 'WEBSITE_SUBCONTAINERSINLINE' , 1 , 'chaine' , 0 , '' , $conf -> entity );
2019-10-09 15:01:19 +02:00
2022-11-29 18:01:27 +01:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref );
exit ();
}
2018-08-16 21:48:16 +02:00
}
}
2018-08-16 00:03:19 +02:00
}
2022-11-29 18:01:27 +01:00
} else {
if ( getDolGlobalString ( 'MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US' )) {
// Show clean corporate message
$message = $langs -> trans ( 'InstallModuleFromWebHasBeenDisabledContactUs' );
} else {
// Show technical generic message
$message = $langs -> trans ( " InstallModuleFromWebHasBeenDisabledByFile " , $dolibarrdataroot . '/installmodules.lock' );
}
setEventMessages ( $message , null , 'errors' );
2018-08-16 00:03:19 +02:00
}
2018-08-15 14:24:33 +02:00
}
2021-02-12 12:02:17 +01:00
$domainname = '0.0.0.0:8080' ;
$tempdir = $conf -> website -> dir_output . '/' . $websitekey . '/' ;
// Generate web site sitemaps
2021-03-20 19:30:08 +01:00
if ( $action == 'generatesitemaps' && $usercanedit ) {
2023-03-19 12:22:23 +01:00
// Define $domainname
if ( $website -> virtualhost ) {
$domainname = $website -> virtualhost ;
}
if ( ! preg_match ( '/^http/i' , $domainname )) {
$domainname = 'https://' . $domainname ;
}
2021-02-12 12:02:17 +01:00
$domtree = new DOMDocument ( '1.0' , 'UTF-8' );
2021-04-18 13:45:46 +02:00
2021-02-12 12:02:17 +01:00
$root = $domtree -> createElementNS ( 'http://www.sitemaps.org/schemas/sitemap/0.9' , 'urlset' );
2021-04-19 15:30:30 +02:00
$root -> setAttributeNS ( 'http://www.w3.org/2000/xmlns/' , 'xmlns:xhtml' , 'http://www.w3.org/1999/xhtml' );
2021-04-18 13:45:46 +02:00
2021-02-12 12:02:17 +01:00
$domtree -> formatOutput = true ;
2021-04-18 13:45:46 +02:00
2023-03-19 12:22:23 +01:00
$addrsswrapper = 0 ;
2021-04-27 11:20:04 +02:00
$xmlname = 'sitemap.xml' ;
2021-02-12 12:02:17 +01:00
2021-04-18 13:45:46 +02:00
$sql = " SELECT wp.rowid, wp.type_container , wp.pageurl, wp.lang, wp.fk_page, wp.tms as tms, " ;
$sql .= " w.virtualhost, w.fk_default_home " ;
2021-02-12 12:02:17 +01:00
$sql .= " FROM " . MAIN_DB_PREFIX . " website_page as wp, " . MAIN_DB_PREFIX . " website as w " ;
$sql .= " WHERE wp.type_container IN ('page', 'blogpost') " ;
$sql .= " AND wp.fk_website = w.rowid " ;
2021-04-18 14:44:33 +02:00
$sql .= " AND wp.status = " . WebsitePage :: STATUS_VALIDATED ;
2021-04-18 12:51:37 +02:00
$sql .= " AND wp.pageurl NOT IN ('404', '500', '501', '503') " ;
2021-02-12 12:31:42 +01:00
$sql .= " AND w.ref = ' " . dol_escape_json ( $websitekey ) . " ' " ;
2021-04-18 14:48:38 +02:00
$sql .= " ORDER BY wp.tms DESC, wp.rowid DESC " ;
2021-02-12 12:02:17 +01:00
$resql = $db -> query ( $sql );
if ( $resql ) {
$num_rows = $db -> num_rows ( $resql );
if ( $num_rows > 0 ) {
$i = 0 ;
while ( $i < $num_rows ) {
$objp = $db -> fetch_object ( $resql );
$url = $domtree -> createElement ( 'url' );
2021-04-18 13:45:46 +02:00
$shortlangcode = '' ;
2021-02-12 12:02:17 +01:00
if ( $objp -> lang ) {
2021-04-18 13:45:46 +02:00
$shortlangcode = substr ( $objp -> lang , 0 , 2 ); // en_US or en-US -> en
}
if ( empty ( $shortlangcode )) {
2021-04-27 11:47:33 +02:00
$shortlangcode = substr ( $object -> lang , 0 , 2 ); // Use short lang code of website
2021-02-12 12:02:17 +01:00
}
2021-04-18 13:45:46 +02:00
2023-03-19 12:22:23 +01:00
// Is it a blog post for the RSS wrapper ?
if ( $objp -> type_container == 'blogpost' ) {
$addrsswrapper = 1 ;
}
2021-04-18 13:45:46 +02:00
// Forge $pageurl, adding language prefix if it is an alternative language
2021-04-18 14:32:17 +02:00
$pageurl = $objp -> pageurl . '.php' ;
2021-04-18 13:45:46 +02:00
if ( $objp -> fk_default_home == $objp -> rowid ) {
$pageurl = '' ;
} else {
if ( $shortlangcode != substr ( $object -> lang , 0 , 2 )) {
2021-04-18 14:32:17 +02:00
$pageurl = $shortlangcode . '/' . $pageurl ;
2021-04-18 13:45:46 +02:00
}
}
2021-04-18 12:51:37 +02:00
//$pathofpage = $dolibarr_main_url_root.'/'.$pageurl.'.php';
2021-04-18 13:45:46 +02:00
// URL of sitemaps must end with trailing slash if page is ''
$loc = $domtree -> createElement ( 'loc' , $domainname . '/' . $pageurl );
2021-04-18 15:28:52 +02:00
$lastmod = $domtree -> createElement ( 'lastmod' , dol_print_date ( $db -> jdate ( $objp -> tms ), 'dayrfc' , 'gmt' ));
2021-04-18 13:45:46 +02:00
$priority = $domtree -> createElement ( 'priority' , '1' );
2016-02-02 16:24:12 +01:00
2021-02-12 12:02:17 +01:00
$url -> appendChild ( $loc );
$url -> appendChild ( $lastmod );
2021-04-18 13:45:46 +02:00
// Add suggested frequency for refresh
2023-11-27 12:08:48 +01:00
if ( getDolGlobalString ( 'WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ' )) {
2023-03-19 12:22:23 +01:00
$changefreq = $domtree -> createElement ( 'changefreq' , 'weekly' ); // TODO Manage other values
2021-04-18 13:45:46 +02:00
$url -> appendChild ( $changefreq );
}
// Add higher priority for home page
if ( $objp -> fk_default_home == $objp -> rowid ) {
$url -> appendChild ( $priority );
}
// Now add alternate language entries
if ( $object -> isMultiLang ()) {
2021-04-18 14:32:17 +02:00
$alternatefound = 0 ;
2021-04-18 13:45:46 +02:00
// Add page "translation of"
$translationof = $objp -> fk_page ;
if ( $translationof ) {
$tmppage = new WebsitePage ( $db );
$tmppage -> fetch ( $translationof );
if ( $tmppage -> id > 0 ) {
$tmpshortlangcode = '' ;
if ( $tmppage -> lang ) {
$tmpshortlangcode = preg_replace ( '/[_-].*$/' , '' , $tmppage -> lang ); // en_US or en-US -> en
}
if ( empty ( $tmpshortlangcode )) {
$tmpshortlangcode = preg_replace ( '/[_-].*$/' , '' , $object -> lang ); // en_US or en-US -> en
}
if ( $tmpshortlangcode != $shortlangcode ) {
$xhtmllink = $domtree -> createElement ( 'xhtml:link' , '' );
2021-11-28 15:53:55 +01:00
$xhtmllink -> setAttribute ( " rel " , " alternate " );
2021-04-18 14:18:05 +02:00
$xhtmllink -> setAttribute ( " hreflang " , $tmpshortlangcode );
2021-04-27 11:47:33 +02:00
$xhtmllink -> setAttribute ( " href " , $domainname . ( $objp -> fk_default_home == $tmppage -> id ? '/' : (( $tmpshortlangcode != substr ( $object -> lang , 0 , 2 )) ? '/' . $tmpshortlangcode : '' ) . '/' . $tmppage -> pageurl . '.php' ));
2021-04-18 14:11:22 +02:00
$url -> appendChild ( $xhtmllink );
2021-04-18 14:32:17 +02:00
$alternatefound ++ ;
2021-04-18 13:45:46 +02:00
}
}
}
// Add "has translation pages"
2021-04-27 12:12:45 +02:00
$sql = 'SELECT rowid as id, lang, pageurl from ' . MAIN_DB_PREFIX . 'website_page' ;
2021-08-28 03:09:18 +02:00
$sql .= " WHERE status = " . (( int ) WebsitePage :: STATUS_VALIDATED ) . ' AND fk_page IN (' . $db -> sanitize ( $objp -> rowid . ( $translationof ? " , " . $translationof : " " )) . " ) " ;
2021-04-18 14:11:22 +02:00
$resqlhastrans = $db -> query ( $sql );
if ( $resqlhastrans ) {
$num_rows_hastrans = $db -> num_rows ( $resqlhastrans );
if ( $num_rows_hastrans > 0 ) {
while ( $objhastrans = $db -> fetch_object ( $resqlhastrans )) {
2021-04-18 13:45:46 +02:00
$tmpshortlangcode = '' ;
if ( $objhastrans -> lang ) {
$tmpshortlangcode = preg_replace ( '/[_-].*$/' , '' , $objhastrans -> lang ); // en_US or en-US -> en
}
if ( $tmpshortlangcode != $shortlangcode ) {
$xhtmllink = $domtree -> createElement ( 'xhtml:link' , '' );
2021-04-18 14:32:17 +02:00
$xhtmllink -> setAttribute ( " rel " , " alternate " );
2021-04-18 14:18:05 +02:00
$xhtmllink -> setAttribute ( " hreflang " , $tmpshortlangcode );
2021-04-27 11:47:33 +02:00
$xhtmllink -> setAttribute ( " href " , $domainname . ( $objp -> fk_default_home == $objhastrans -> id ? '/' : (( $tmpshortlangcode != substr ( $object -> lang , 0 , 2 ) ? '/' . $tmpshortlangcode : '' )) . '/' . $objhastrans -> pageurl . '.php' ));
2021-04-18 14:11:22 +02:00
$url -> appendChild ( $xhtmllink );
2021-04-18 14:32:17 +02:00
$alternatefound ++ ;
2021-04-18 13:45:46 +02:00
}
}
}
} else {
dol_print_error ( $db );
}
2021-04-18 14:32:17 +02:00
if ( $alternatefound ) {
// Add myself
$xhtmllink = $domtree -> createElement ( 'xhtml:link' , '' );
$xhtmllink -> setAttribute ( " rel " , " alternate " );
$xhtmllink -> setAttribute ( " hreflang " , $shortlangcode );
$xhtmllink -> setAttribute ( " href " , $domainname . '/' . $pageurl );
$url -> appendChild ( $xhtmllink );
}
2021-04-18 13:45:46 +02:00
}
2021-05-17 06:54:39 +02:00
// Now add sitempas extension for news
// TODO When adding and when not ?
/*< news : news >
< news : publication >
2021-05-17 11:29:51 +02:00
< news : name > The Example Times </ news : name >
< news : language > en </ news : language >
2021-05-17 06:54:39 +02:00
</ news : publication >
< news : publication_date > 2008 - 12 - 23 </ news : publication_date >
2021-05-17 11:29:51 +02:00
< news : title > Companies A , B in Merger Talks </ news : title >
</ news : news >
2021-05-17 06:54:39 +02:00
*/
2021-02-12 12:02:17 +01:00
$root -> appendChild ( $url );
$i ++ ;
}
2023-03-19 12:22:23 +01:00
2024-01-12 17:18:52 +01:00
// Adding a RSS feed into a sitemap should not be required. The RSS contains pages that are already included into
2023-03-19 12:22:23 +01:00
// the sitemap and RSS feeds are not shown into index.
if ( $addrsswrapper && getDolGlobalInt ( 'WEBSITE_ADD_RSS_FEED_INTO_SITEMAP' )) {
$url = $domtree -> createElement ( 'url' );
$pageurl = 'wrapper.php?rss=1' ;
// URL of sitemaps must end with trailing slash if page is ''
$loc = $domtree -> createElement ( 'loc' , $domainname . '/' . $pageurl );
$lastmod = $domtree -> createElement ( 'lastmod' , dol_print_date ( $db -> jdate ( dol_now ()), 'dayrfc' , 'gmt' ));
$url -> appendChild ( $loc );
$url -> appendChild ( $lastmod );
// Add suggested frequency for refresh
2023-11-27 12:08:48 +01:00
if ( getDolGlobalString ( 'WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ' )) {
2023-03-19 12:22:23 +01:00
$changefreq = $domtree -> createElement ( 'changefreq' , 'weekly' ); // TODO Manage other values
$url -> appendChild ( $changefreq );
}
$root -> appendChild ( $url );
}
2021-02-12 12:02:17 +01:00
$domtree -> appendChild ( $root );
2023-03-19 12:22:23 +01:00
2021-03-02 15:05:29 +01:00
if ( $domtree -> save ( $tempdir . $xmlname )) {
2023-02-17 19:30:50 +01:00
dolChmod ( $tempdir . $xmlname );
2021-04-27 11:20:04 +02:00
setEventMessages ( $langs -> trans ( " SitemapGenerated " , $xmlname ), null , 'mesgs' );
2021-02-12 12:02:17 +01:00
} else {
setEventMessages ( $object -> error , $object -> errors , 'errors' );
}
}
2021-03-02 16:39:04 +01:00
} else {
2021-02-12 12:02:17 +01:00
dol_print_error ( $db );
}
2021-04-18 12:51:37 +02:00
2022-12-28 05:08:15 +01:00
// Add the entry Sitemap: into the robot.txt file.
2021-02-12 12:02:17 +01:00
$robotcontent = @ file_get_contents ( $filerobot );
2024-01-10 15:25:16 +01:00
$result = preg_replace ( '/<?php \/\/ BEGIN PHP[^?]END PHP ?>\n/ims' , '' , $robotcontent );
2021-03-02 16:39:04 +01:00
if ( $result ) {
2021-02-12 12:02:17 +01:00
$robotcontent = $result ;
}
$robotsitemap = " Sitemap: " . $domainname . " / " . $xmlname ;
2021-02-12 12:03:09 +01:00
$result = strpos ( $robotcontent , 'Sitemap: ' );
2021-03-02 16:39:04 +01:00
if ( $result ) {
2021-04-27 11:29:47 +02:00
$result = preg_replace ( '/Sitemap:.*/' , $robotsitemap , $robotcontent );
2021-02-12 12:02:17 +01:00
$robotcontent = $result ? $result : $robotcontent ;
2021-03-02 16:39:04 +01:00
} else {
2021-02-12 12:02:17 +01:00
$robotcontent .= $robotsitemap . " \n " ;
}
$result = dolSaveRobotFile ( $filerobot , $robotcontent );
2021-03-02 16:34:04 +01:00
if ( ! $result ) {
2021-02-12 12:02:17 +01:00
$error ++ ;
setEventMessages ( 'Failed to write file ' . $filerobot , null , 'errors' );
}
$action = 'preview' ;
}
2016-02-02 16:24:12 +01:00
2021-03-18 11:39:23 +01:00
2021-03-01 09:52:34 +01:00
/*
2021-03-18 11:39:23 +01:00
* View
*/
2021-03-01 09:52:34 +01:00
$form = new Form ( $db );
$formadmin = new FormAdmin ( $db );
$formwebsite = new FormWebsite ( $db );
$formother = new FormOther ( $db );
2022-03-16 15:56:39 +01:00
$formconfirm = " " ;
2021-03-01 09:52:34 +01:00
// Confirm generation of website sitemaps
2021-03-02 16:39:04 +01:00
if ( $action == 'confirmgeneratesitemaps' ) {
2022-02-03 19:21:59 +01:00
$formconfirm = $form -> formconfirm ( $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( $website -> ref ), $langs -> trans ( 'ConfirmSitemapsCreation' ), $langs -> trans ( 'ConfirmGenerateSitemaps' , $object -> ref ), 'generatesitemaps' , '' , " yes " , 1 );
2021-03-01 09:52:34 +01:00
$action = 'preview' ;
}
2020-09-23 16:36:19 +02:00
$helpurl = 'EN:Module_Website|FR:Module_Website_FR|ES:Módulo_Website' ;
2016-02-02 16:24:12 +01:00
2017-10-13 13:22:24 +02:00
$arrayofjs = array (
2019-09-28 13:50:32 +02:00
'/includes/ace/src/ace.js' ,
'/includes/ace/src/ext-statusbar.js' ,
'/includes/ace/src/ext-language_tools.js' ,
//'/includes/ace/src/ext-chromevox.js'
2017-12-17 16:24:47 +01:00
//'/includes/jquery/plugins/jqueryscoped/jquery.scoped.js',
2017-10-13 13:22:24 +02:00
);
$arrayofcss = array ();
2019-11-12 00:15:34 +01:00
$moreheadcss = '' ;
$moreheadjs = '' ;
2017-11-05 02:04:05 +01:00
2019-11-12 00:15:34 +01:00
$arrayofjs [] = 'includes/jquery/plugins/blockUI/jquery.blockUI.js' ;
$arrayofjs [] = 'core/js/blockUI.js' ; // Used by ecm/tpl/enabledfiletreeajax.tpl.php
2023-11-27 12:08:48 +01:00
if ( ! getDolGlobalString ( 'MAIN_ECM_DISABLE_JS' )) {
2021-02-26 12:03:07 +01:00
$arrayofjs [] = " includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js " ;
}
2017-11-05 02:04:05 +01:00
2019-11-12 00:15:34 +01:00
$moreheadjs .= '<script type="text/javascript">' . " \n " ;
$moreheadjs .= 'var indicatorBlockUI = \'' . DOL_URL_ROOT . " /theme/ " . $conf -> theme . " /img/working.gif " . '\';' . " \n " ;
$moreheadjs .= '</script>' . " \n " ;
2017-11-05 02:04:05 +01:00
2024-08-23 15:22:03 +02:00
llxHeader ( $moreheadcss . $moreheadjs , $langs -> trans ( " Website " ) . ( empty ( $website -> ref ) ? '' : ' - ' . $website -> ref ), $helpurl , '' , 0 , 0 , $arrayofjs , $arrayofcss , '' , 'mod-website page-index' , '<!-- Begin div class="fiche" -->' . " \n " . '<div class="fichebutwithotherclass">' );
2016-04-12 19:17:50 +02:00
2019-08-13 00:34:42 +02:00
print " \n " ;
2021-06-20 01:04:16 +02:00
print '<!-- Open form for all page -->' . " \n " ;
2023-12-04 13:53:48 +01:00
print '<form action="' . $_SERVER [ " PHP_SELF " ] . ( $action == 'file_manager' ? '?uploadform=1' : '' ) . '" method="POST" enctype="multipart/form-data" class="websiteformtoolbar">' ;
2019-12-18 23:12:31 +01:00
print '<input type="hidden" name="token" value="' . newToken () . '">' ;
2019-09-02 18:43:22 +02:00
print '<input type="hidden" name="backtopage" value="' . $backtopage . '">' ;
2022-05-12 20:18:58 +02:00
print '<input type="hidden" name="dol_openinpopup" value="' . $dol_openinpopup . '">' ;
2019-08-13 00:34:42 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'createsite' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="addsite">' ;
2017-09-01 12:19:55 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'createcontainer' ) {
2017-12-12 01:40:34 +01:00
print '<input type="hidden" name="action" value="addcontainer">' ;
2016-04-23 21:34:10 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editcss' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="updatecss">' ;
2016-05-01 16:34:50 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editmenu' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="updatemenu">' ;
2016-05-01 16:34:50 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'setashome' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="updateashome">' ;
2016-05-02 15:51:18 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editmeta' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="updatemeta">' ;
2016-05-01 16:34:50 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editsource' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="updatesource">' ;
2017-07-22 20:19:10 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editcontent' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="updatecontent">' ;
2016-04-23 21:34:10 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'edit' ) {
2017-10-07 13:09:31 +02:00
print '<input type="hidden" name="action" value="update">' ;
2016-04-23 21:34:10 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'importsite' ) {
2018-08-15 14:24:33 +02:00
print '<input type="hidden" name="action" value="importsiteconfirm">' ;
}
2021-02-26 12:03:07 +01:00
if ( $action == 'file_manager' ) {
2017-11-18 15:41:30 +01:00
print '<input type="hidden" name="action" value="file_manager">' ;
}
2022-10-08 17:04:20 +02:00
if ( $mode ) {
print '<input type="hidden" name="mode" value="' . $mode . '">' ;
2019-05-28 16:10:11 +02:00
}
2016-02-02 16:24:12 +01:00
2017-11-15 19:47:07 +01:00
print '<div>' ;
2016-02-02 16:24:12 +01:00
2016-04-23 21:34:10 +02:00
// Add a margin under toolbar ?
2019-11-12 00:15:34 +01:00
$style = '' ;
2021-02-26 12:03:07 +01:00
if ( $action != 'preview' && $action != 'editcontent' && $action != 'editsource' && ! GETPOST ( 'createpagefromclone' , 'alphanohtml' )) {
$style = ' margin-bottom: 5px;' ;
}
2016-04-23 21:34:10 +02:00
2017-12-12 01:40:34 +01:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOST ( 'hide_websitemenu' )) {
2020-02-21 17:53:37 +01:00
$disabled = '' ;
2023-10-15 18:46:18 +02:00
if ( ! $user -> hasRight ( 'website' , 'write' )) {
2021-02-26 12:03:07 +01:00
$disabled = ' disabled="disabled"' ;
}
2021-03-20 19:30:08 +01:00
$disabledexport = '' ;
2023-10-15 18:46:18 +02:00
if ( ! $user -> hasRight ( 'website' , 'export' )) {
2021-03-20 19:30:08 +01:00
$disabledexport = ' disabled="disabled"' ;
}
2019-11-09 11:30:08 +01:00
2021-02-26 12:03:07 +01:00
if ( $websitekey ) {
2020-02-21 17:53:37 +01:00
$virtualurl = '' ;
2022-04-25 10:14:30 +02:00
$dataroot = DOL_DATA_ROOT . ( $conf -> entity > 1 ? '/' . $conf -> entity : '' ) . '/website/' . $websitekey ;
2021-02-26 12:03:07 +01:00
if ( ! empty ( $object -> virtualhost )) {
$virtualurl = $object -> virtualhost ;
}
2017-10-07 13:09:31 +02:00
}
2020-02-21 17:53:37 +01:00
$array = array ();
2021-02-26 12:03:07 +01:00
if ( $object -> id > 0 ) {
2020-02-21 17:53:37 +01:00
$array = $objectpage -> fetchAll ( $object -> id , 'ASC,ASC' , 'type_container,pageurl' );
2019-10-31 21:09:33 +01:00
$object -> lines = $array ;
2018-12-17 17:29:04 +01:00
}
2021-02-26 12:03:07 +01:00
if ( ! is_array ( $array ) && $array < 0 ) {
2024-01-20 09:22:38 +01:00
dol_print_error ( null , $objectpage -> error , $objectpage -> errors );
2021-02-26 12:03:07 +01:00
}
2020-02-21 17:53:37 +01:00
$atleastonepage = ( is_array ( $array ) && count ( $array ) > 0 );
2018-08-15 14:24:33 +02:00
2023-08-04 03:45:15 +02:00
$websitepage = new WebsitePage ( $db );
2023-02-07 13:40:28 +01:00
if ( $pageid > 0 ) {
2022-10-09 20:52:50 +02:00
$websitepage -> fetch ( $pageid );
}
2017-08-20 21:23:19 +02:00
2020-09-23 16:36:19 +02:00
//var_dump($objectpage);exit;
2023-08-15 00:38:18 +02:00
print '<div class="centpercent websitebar' . ( GETPOST ( 'dol_openinpopup' , 'aZ09' ) ? ' hiddenforpopup' : '' ) . '">' ;
2019-05-28 16:10:11 +02:00
2020-09-23 16:36:19 +02:00
//
// Toolbar for websites
//
2020-05-17 15:06:09 +02:00
2022-10-11 11:45:01 +02:00
print '<!-- Toolbar for website -->' ;
2020-09-23 16:36:19 +02:00
if ( $action != 'file_manager' ) {
2022-10-09 17:49:44 +02:00
print '<div class="websiteselection hideonsmartphoneimp minwidth75 tdoverflowmax100 inline-block">' ;
2021-09-07 17:26:31 +02:00
print $langs -> trans ( " Website " ) . ': ' ;
2022-10-09 17:49:44 +02:00
print '</div>' ;
2020-09-23 16:36:19 +02:00
2022-10-09 20:52:50 +02:00
// Button Add new website
2021-09-01 17:44:54 +02:00
$urltocreatenewwebsite = $_SERVER [ " PHP_SELF " ] . '?action=createsite' ;
2022-10-09 20:52:50 +02:00
print '<span class="websiteselection paddingrightonly">' ;
print '<a href="' . $urltocreatenewwebsite . '" class=""' . $disabled . ' title="' . dol_escape_htmltag ( $langs -> trans ( " AddWebsite " )) . '"><span class="fa fa-plus-circle valignmiddle btnTitle-icon"><span></a>' ;
print '</span>' ;
2020-09-23 16:36:19 +02:00
// List of website
2022-10-09 20:52:50 +02:00
print '<span class="websiteselection nopaddingrightimp">' ;
2022-10-09 17:49:44 +02:00
2020-09-23 16:36:19 +02:00
$out = '' ;
$out .= '<select name="website" class="minwidth100 width200 maxwidth150onsmartphone" id="website">' ;
2023-09-05 13:36:55 +02:00
if ( empty ( $listofwebsites )) {
2021-02-26 12:03:07 +01:00
$out .= '<option value="-1"> </option>' ;
}
2022-10-09 17:49:44 +02:00
2020-09-23 16:36:19 +02:00
// Loop on each sites
$i = 0 ;
2023-09-05 13:36:55 +02:00
foreach ( $listofwebsites as $key => $valwebsite ) {
2020-09-23 16:36:19 +02:00
if ( empty ( $websitekey )) {
2021-02-26 12:03:07 +01:00
if ( $action != 'createsite' ) {
$websitekey = $valwebsite -> ref ;
}
2020-09-23 16:36:19 +02:00
}
2017-07-02 23:38:19 +02:00
2020-09-23 16:36:19 +02:00
$out .= '<option value="' . $valwebsite -> ref . '"' ;
2021-02-26 12:03:07 +01:00
if ( $websitekey == $valwebsite -> ref ) {
$out .= ' selected' ; // To preselect a value
}
2020-09-23 16:36:19 +02:00
//$outoption = $valwebsite->getLibStatut(3).' '.$valwebsite->ref.' ';
2020-10-31 14:32:18 +01:00
$outoption = (( $valwebsite -> status == $valwebsite :: STATUS_DRAFT ) ? '<span class="opacitymedium">' : '' ) . $valwebsite -> ref . (( $valwebsite -> status == $valwebsite :: STATUS_DRAFT ) ? '</span>' : '' );
2020-09-23 16:36:19 +02:00
$out .= ' data-html="' . dol_escape_htmltag ( $outoption ) . '"' ;
$out .= '>' ;
$out .= $valwebsite -> ref ;
$out .= '</option>' ;
$i ++ ;
}
$out .= '</select>' ;
$out .= ajax_combobox ( 'website' );
if ( ! empty ( $conf -> use_javascript_ajax )) {
2021-11-29 15:09:18 +01:00
$out .= '<script type="text/javascript">' ;
2020-09-23 16:36:19 +02:00
$out .= 'jQuery(document).ready(function () {' ;
$out .= ' jQuery("#website").change(function () {' ;
$out .= ' console.log("We select "+jQuery("#website option:selected").val());' ;
$out .= ' if (jQuery("#website option:selected").val() == \'-2\') {' ;
2021-06-19 23:52:52 +02:00
$out .= ' window.location.href = "' . dol_escape_js ( $urltocreatenewwebsite ) . '";' ;
2020-09-23 16:36:19 +02:00
$out .= ' } else {' ;
2021-09-01 17:44:54 +02:00
$out .= ' window.location.href = "' . $_SERVER [ " PHP_SELF " ] . '?website="+jQuery("#website option:selected").val();' ;
2020-09-23 16:36:19 +02:00
$out .= ' }' ;
$out .= ' });' ;
$out .= '});' ;
$out .= '</script>' ;
}
print $out ;
2022-10-09 20:52:50 +02:00
print '</span>' ;
// Switch offline/onine
if ( ! empty ( $conf -> use_javascript_ajax )) {
print '<span class="websiteselection">' ;
// Do not use ajax, we need a refresh of full page when we change status of a website
//print '<div class="inline-block marginrightonly">';
2023-07-31 21:43:36 +02:00
//print ajax_object_onoff($object, 'status', 'status', 'Online', 'Offline', array(), 'valignmiddle inline-block', 'statuswebsite');
2022-10-09 20:52:50 +02:00
//print '</div>';
if ( $website -> status == $website :: STATUS_DRAFT ) {
$text_off = 'Offline' ;
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=setwebsiteonline&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '&websitepage=' . (( int ) $websitepage -> id ) . '">' . img_picto ( $langs -> trans ( $text_off ), 'switch_off' ) . '</a>' ;
} else {
$text_off = 'Online' ;
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=setwebsiteoffline&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '&websitepage=' . (( int ) $websitepage -> id ) . '">' . img_picto ( $langs -> trans ( $text_off ), 'switch_on' ) . '</a>' ;
}
print '</span>' ;
}
2024-01-12 17:18:52 +01:00
// Refresh / Reload web site (for non javascript browsers)
2020-09-23 16:36:19 +02:00
if ( empty ( $conf -> use_javascript_ajax )) {
2022-10-09 20:52:50 +02:00
print '<span class="websiteselection">' ;
2020-09-23 16:36:19 +02:00
print '<input type="image" class="valignmiddle" src="' . img_picto ( '' , 'refresh' , '' , 0 , 1 ) . '" name="refreshsite" value="' . $langs -> trans ( " Load " ) . '">' ;
2022-10-09 20:52:50 +02:00
print '</span>' ;
2020-09-23 16:36:19 +02:00
}
2022-10-09 17:49:44 +02:00
print '<span class="websiteselection">' ;
2021-02-26 12:03:07 +01:00
if ( $websitekey && $websitekey != '-1' && ( $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite' )) {
2022-10-09 20:52:50 +02:00
// Edit website properties
2024-12-03 11:55:43 +01:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( $object -> ref ) . '&pageid=' . (( int ) $pageid ) . '&action=editcss&token=' . newToken () . '" class="button bordertransp valignmiddle" title="' . dol_escape_htmltag ( $langs -> trans ( " EditCss " )) . '"' . $disabled . '>' ;
print img_picto ( '' , 'setup' );
print '<span class="hideonsmartphone paddingleft">' . dol_escape_htmltag ( $langs -> trans ( " EditCss " )) . '</span>' ;
print '</a>' ;
2018-09-08 12:04:40 +02:00
2022-10-09 20:52:50 +02:00
// Import web site
2020-09-23 16:36:19 +02:00
$importlabel = $langs -> trans ( " ImportSite " );
$exportlabel = $langs -> trans ( " ExportSite " );
2020-10-31 14:32:18 +01:00
if ( ! empty ( $conf -> dol_optimize_smallscreen )) {
2020-09-23 16:36:19 +02:00
$importlabel = $langs -> trans ( " Import " );
$exportlabel = $langs -> trans ( " Export " );
}
2016-04-27 09:41:42 +02:00
2021-02-26 12:03:07 +01:00
if ( $atleastonepage ) {
2020-09-23 16:36:19 +02:00
print '<input type="submit" class="button bordertransp" disabled="disabled" value="' . dol_escape_htmltag ( $importlabel ) . '" name="importsite">' ;
2021-02-26 12:03:07 +01:00
} else {
2020-09-23 16:36:19 +02:00
print '<input type="submit" class="button bordertransp"' . $disabled . ' value="' . dol_escape_htmltag ( $importlabel ) . '" name="importsite">' ;
}
2019-05-28 16:10:11 +02:00
2024-05-05 01:15:32 +02:00
// // Export web site
$extraCssClass = getDolGlobalString ( 'WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE' ) ? 'hideobject' : '' ;
print '<input type="submit" class="button bordertransp ' . $extraCssClass . '" ' . $disabledexport . ' value="' . dol_escape_htmltag ( $exportlabel ) . '" name="exportsite">' ;
2021-01-24 13:27:52 +01:00
2024-01-28 17:47:50 +01:00
if ( getDolGlobalString ( 'WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE' )) {
// Overwrite template in sources
2024-05-05 01:15:32 +02:00
$overwriteGitUrl = $_SERVER [ " PHP_SELF " ] . '?action=overwritesite&website=' . urlencode ( $website -> ref );
2024-05-12 20:27:03 +02:00
print dolButtonToOpenExportDialog ( 'exportpopup' , $langs -> trans ( 'ExportOptions' ), $langs -> trans ( 'ExportSite' ), 'exportsite' , $overwriteGitUrl , $website );
2024-05-05 01:15:32 +02:00
//print '<a href="'.$_SERVER["PHP_SELF"].'?action=overwritesite&website='.urlencode($website->ref).'" class="button bordertransp hideobject" title="'.dol_escape_htmltag($langs->trans("ExportIntoGIT").". Directory ".getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE')).'">'.dol_escape_htmltag($langs->trans("ExportIntoGIT")).'</a>';
2024-01-28 17:47:50 +01:00
}
2022-10-09 20:52:50 +02:00
// Clone web site
2020-09-23 16:36:19 +02:00
print '<input type="submit" class="button bordertransp"' . $disabled . ' value="' . dol_escape_htmltag ( $langs -> trans ( " CloneSite " )) . '" name="createfromclone">' ;
2020-05-23 15:50:15 +02:00
2022-08-03 19:10:38 +02:00
// Delete website
2023-02-01 03:39:40 +01:00
if ( ! $permissiontodelete ) {
2022-10-09 17:49:44 +02:00
$disabled = ' disabled="disabled"' ;
2023-02-01 03:39:40 +01:00
$title = $langs -> trans ( " NotEnoughPermissions " );
2022-10-09 17:49:44 +02:00
$url = '#' ;
2022-08-03 19:10:38 +02:00
} else {
2023-02-01 03:39:40 +01:00
if ( $website -> status == $website :: STATUS_VALIDATED ) {
$disabled = ' disabled="disabled"' ;
$title = $langs -> trans ( " WebsiteMustBeDisabled " , $langs -> transnoentitiesnoconv ( $website -> LibStatut ( 0 , 0 )));
$url = '#' ;
} else {
$disabled = '' ;
$title = $langs -> trans ( " Delete " );
$url = $_SERVER [ " PHP_SELF " ] . '?action=deletesite&token=' . newToken () . '&website=' . urlencode ( $website -> ref );
}
2022-08-03 19:10:38 +02:00
}
2023-02-27 14:29:34 +01:00
print '<a href="' . $url . '" class="button buttonDelete bordertransp' . ( $disabled ? ' disabled' : '' ) . '"' . $disabled . ' title="' . dol_escape_htmltag ( $title ) . '">' . img_picto ( '' , 'delete' , 'class=""' ) . '<span class="hideonsmartphone paddingleft">' . $langs -> trans ( " Delete " ) . '</span></a>' ;
2020-09-23 16:36:19 +02:00
2021-01-24 13:27:52 +01:00
// Regenerate all pages
2022-06-24 11:26:26 +02:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=regeneratesite&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '" class="button bordertransp"' . $disabled . ' title="' . dol_escape_htmltag ( $langs -> trans ( " RegenerateWebsiteContent " )) . '"><span class="far fa-hdd"></span></a>' ;
2021-01-24 13:27:52 +01:00
2021-02-11 10:05:40 +01:00
// Generate site map
2022-06-24 11:26:26 +02:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=confirmgeneratesitemaps&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '" class="button bordertransp"' . $disabled . ' title="' . dol_escape_htmltag ( $langs -> trans ( " GenerateSitemaps " )) . '"><span class="fa fa-sitemap"></span></a>' ;
2021-02-10 09:11:53 +01:00
2022-10-09 17:49:44 +02:00
// Find / replace tool
2024-09-14 02:43:27 +02:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=replacesite&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '" class="button bordertransp"' . $disabled . ' title="' . dol_escape_htmltag ( $langs -> trans ( " ReplaceWebsiteContent " )) . '"><span class="fa fa-search"></span></a>' ;
2020-05-20 13:19:32 +02:00
}
2017-10-07 13:09:31 +02:00
2020-09-23 16:36:19 +02:00
print '</span>' ;
2016-04-27 09:41:42 +02:00
2021-02-26 12:03:07 +01:00
if ( $websitekey && $websitekey != '-1' && ( $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite' )) {
2020-09-23 16:36:19 +02:00
print '<span class="websiteselection">' ;
2022-06-24 11:26:26 +02:00
2022-02-03 19:21:59 +01:00
print dolButtonToOpenUrlInDialogPopup ( 'file_manager' , $langs -> transnoentitiesnoconv ( " MediaFiles " ), '<span class="fa fa-image"></span>' , '/website/index.php?action=file_manager&website=' . urlencode ( $website -> ref ) . '§ion_dir=' . urlencode ( 'image/' . $website -> ref . '/' ), $disabled );
2020-09-23 16:36:19 +02:00
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' )) {
2022-01-19 14:32:15 +01:00
//print '<a href="'.DOL_URL_ROOT.'/categories/index.php?leftmenu=website&dol_hide_leftmenu=1&nosearch=1&type=website_page&website='.$website->ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("Categories")).'"><span class="fa fa-tags"></span></a>';
2024-04-05 14:45:34 +02:00
print dolButtonToOpenUrlInDialogPopup ( 'categories' , $langs -> transnoentitiesnoconv ( " Categories " ), '<span class="fa fa-tags"></span>' , '/categories/index.php?leftmenu=website&nosearch=1&type=' . urlencode ( Categorie :: TYPE_WEBSITE_PAGE ) . '&website=' . urlencode ( $website -> ref ), $disabled );
2020-09-23 16:36:19 +02:00
}
print '</span>' ;
}
} else {
2020-10-02 03:07:31 +02:00
print '<input type="hidden" name="website" id="website" value="' . $websitekey . '">' ;
2020-09-23 16:36:19 +02:00
}
2018-08-15 14:24:33 +02:00
2018-09-25 15:00:37 +02:00
2021-09-07 17:26:31 +02:00
print '<span class="websitetools">' ;
2017-10-07 02:29:27 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite' ) {
2019-11-12 00:15:34 +01:00
$urlext = $virtualurl ;
$urlint = $urlwithroot . '/public/website/index.php?website=' . $websitekey ;
2018-02-19 21:31:03 +01:00
2019-10-02 16:18:33 +02:00
print '<span class="websiteinputurl valignmiddle" id="websiteinputurl">' ;
2019-11-12 00:15:34 +01:00
$linktotestonwebserver = '<a href="' . ( $virtualurl ? $virtualurl : '#' ) . '" class="valignmiddle">' ;
2020-09-23 16:36:19 +02:00
$linktotestonwebserver .= '<span class="hideonsmartphone paddingrightonly">' . $langs -> trans ( " TestDeployOnWeb " , $virtualurl ) . '</span>' . img_picto ( '' , 'globe' );
2019-11-12 00:15:34 +01:00
$linktotestonwebserver .= '</a>' ;
2024-06-27 09:43:49 +02:00
2019-01-23 14:57:43 +01:00
$htmltext = '' ;
2021-02-26 12:03:07 +01:00
if ( empty ( $object -> fk_default_home )) {
2020-10-07 15:01:28 +02:00
$htmltext .= '<br><span class="error">' . $langs -> trans ( " YouMustDefineTheHomePage " ) . '</span><br><br>' ;
2021-02-26 12:03:07 +01:00
} elseif ( empty ( $virtualurl )) {
2020-10-07 15:01:28 +02:00
//$htmltext .= '<br><span class="error">'.$langs->trans("VirtualHostUrlNotDefined").'</span><br><br>';
2021-02-26 12:03:07 +01:00
} else {
2020-10-07 15:01:28 +02:00
$htmltext .= '<br><center>' . $langs -> trans ( " GoTo " ) . ' <a href="' . $virtualurl . '" target="_website">' . $virtualurl . '</a></center><br>' ;
2018-02-15 01:29:51 +01:00
}
2023-11-27 12:08:48 +01:00
if ( getDolGlobalString ( 'WEBSITE_REPLACE_INFO_ABOUT_USAGE_WITH_WEBSERVER' )) {
2022-05-17 20:31:50 +02:00
$htmltext .= '<!-- Message defined translate key set into WEBSITE_REPLACE_INFO_ABOUT_USAGE_WITH_WEBSERVER -->' ;
2024-01-05 04:18:53 +01:00
$htmltext .= '<br>' . $langs -> trans ( getDolGlobalString ( 'WEBSITE_REPLACE_INFO_ABOUT_USAGE_WITH_WEBSERVER' ));
2021-02-26 12:03:07 +01:00
} else {
2024-06-27 09:43:49 +02:00
$htmltext .= $langs -> trans ( " ToDeployYourWebsiteOnLiveYouHave3Solutions " ) . '<br><br>' ;
$htmltext .= '<div class="titre inline-block">1</div> - ' . $langs -> trans ( " SetHereVirtualHost " , $dataroot );
2020-10-07 15:01:28 +02:00
$htmltext .= '<br>' ;
$htmltext .= '<br>' . $langs -> trans ( " CheckVirtualHostPerms " , $langs -> transnoentitiesnoconv ( " ReadPerm " ), DOL_DOCUMENT_ROOT );
2020-12-15 00:16:58 +01:00
$htmltext .= '<br>' . $langs -> trans ( " CheckVirtualHostPerms " , $langs -> transnoentitiesnoconv ( " WritePerm " ), '{s1}' );
$htmltext = str_replace ( '{s1}' , DOL_DATA_ROOT . '/website<br>' . DOL_DATA_ROOT . '/medias' , $htmltext );
2020-10-07 15:01:28 +02:00
2024-06-27 09:43:49 +02:00
$examplewithapache = " <VirtualHost *:80> \n " ;
$examplewithapache .= '#php_admin_value open_basedir /tmp/:' . DOL_DOCUMENT_ROOT . ':' . DOL_DATA_ROOT . ':/dev/urandom' . " \n " ;
$examplewithapache .= " \n " ;
$examplewithapache .= 'DocumentRoot "' . DOL_DOCUMENT_ROOT . '"' . " \n " ;
$examplewithapache .= " \n " ;
2020-10-07 15:01:28 +02:00
$examplewithapache .= '<Directory "' . DOL_DOCUMENT_ROOT . '">' . " \n " ;
$examplewithapache .= ' AllowOverride FileInfo Options
2020-03-11 12:53:41 +01:00
Options - Indexes - MultiViews - FollowSymLinks - ExecCGI
Require all granted
2024-06-27 09:43:49 +02:00
</ Directory > '."\n".'
2020-03-11 12:53:41 +01:00
< Directory " '.DOL_DATA_ROOT.'/website " >
AllowOverride FileInfo Options
Options - Indexes - MultiViews + FollowSymLinks - ExecCGI
Require all granted
2024-06-27 09:43:49 +02:00
</ Directory > '."\n".'
2020-03-11 12:53:41 +01:00
< Directory " '.DOL_DATA_ROOT.'/medias " >
AllowOverride FileInfo Options
Options - Indexes - MultiViews - FollowSymLinks - ExecCGI
Require all granted
2024-06-27 09:43:49 +02:00
</ Directory > ' . " \n " ;
$examplewithapache .= " \n " ;
$examplewithapache .= " #ErrorLog /var/log/apache2/ " . $websitekey . " _error_log \n " ;
$examplewithapache .= " #TransferLog /var/log/apache2/ " . $websitekey . " _access_log \n " ;
$examplewithapache .= " </VirtualHost> \n " ;
2020-03-11 12:53:41 +01:00
2020-10-07 15:01:28 +02:00
$htmltext .= '<br>' . $langs -> trans ( " ExampleToUseInApacheVirtualHostConfig " ) . ':<br>' ;
2024-06-27 09:43:49 +02:00
$htmltext .= '<div class="quatrevingtpercent exampleapachesetup wordbreak" spellcheck="false">' . dol_nl2br ( dol_escape_htmltag ( $examplewithapache , 1 , 1 )) . '</div>' ;
2020-03-11 12:53:41 +01:00
2020-10-07 15:01:28 +02:00
$htmltext .= '<br>' ;
2024-06-27 09:43:49 +02:00
$htmltext .= '<div class="titre inline-block">2</div> - ' . $langs -> trans ( " YouCanAlsoTestWithPHPS " );
2024-06-27 09:20:04 +02:00
$htmltext .= '<br><div class="urllink"><input type="text" id="cliphpserver" spellcheck="false" class="quatrevingtpercent" value="php -S 0.0.0.0:8080 -t ' . $dataroot . '"></div>' ;
$htmltext .= ajax_autoselect ( " cliphpserver " );
2020-10-07 15:01:28 +02:00
$htmltext .= '<br>' ;
2024-06-27 09:43:49 +02:00
$htmltext .= '<div class="titre inline-block">3</div> - ' . $langs -> trans ( " YouCanAlsoDeployToAnotherWHP " );
2019-01-23 14:57:43 +01:00
}
2019-10-02 16:18:33 +02:00
print $form -> textwithpicto ( $linktotestonwebserver , $htmltext , 1 , 'none' , 'valignmiddle' , 0 , 3 , 'helpvirtualhost' );
print '</span>' ;
2017-10-07 13:09:31 +02:00
}
2017-07-02 23:38:19 +02:00
2022-10-08 17:04:20 +02:00
if ( in_array ( $action , array ( 'editcss' , 'editmenu' , 'file_manager' , 'replacesiteconfirm' )) || in_array ( $mode , array ( 'replacesite' ))) {
2021-02-26 12:03:07 +01:00
if ( $action == 'editcss' ) {
2024-02-29 11:45:50 +01:00
// accesskey is for Windows or Linux: ALT + key for chrome, ALT + SHIFT + KEY for firefox
// accesskey is for Mac: CTRL + key for all browsers
$stringforfirstkey = $langs -> trans ( " KeyboardShortcut " );
if ( $conf -> browser -> name == 'chrome' ) {
$stringforfirstkey .= ' ALT +' ;
} elseif ( $conf -> browser -> name == 'firefox' ) {
$stringforfirstkey .= ' ALT + SHIFT +' ;
} else {
$stringforfirstkey .= ' CTL +' ;
}
print '<input type="submit" accesskey="s" title="' . dol_escape_htmltag ( $stringforfirstkey . ' s' ) . '" id="savefileandstay" class="button buttonforacesave hideonsmartphone small" value="' . dol_escape_htmltag ( $langs -> trans ( " SaveAndStay " )) . '" name="updateandstay">' ;
2021-02-26 12:03:07 +01:00
}
if ( preg_match ( '/^create/' , $action ) && $action != 'file_manager' && $action != 'replacesite' && $action != 'replacesiteconfirm' ) {
2022-03-24 15:39:02 +01:00
print '<input type="submit" id="savefile" class="button buttonforacesave button-save small" value="' . dol_escape_htmltag ( $langs -> trans ( " Save " )) . '" name="update">' ;
2021-02-26 12:03:07 +01:00
}
if ( preg_match ( '/^edit/' , $action ) && $action != 'file_manager' && $action != 'replacesite' && $action != 'replacesiteconfirm' ) {
2022-03-24 15:39:02 +01:00
print '<input type="submit" id="savefile" class="button buttonforacesave button-save small" value="' . dol_escape_htmltag ( $langs -> trans ( " Save " )) . '" name="update">' ;
2021-02-26 12:03:07 +01:00
}
if ( $action != 'preview' ) {
2022-01-30 01:58:29 +01:00
print '<input type="submit" class="button button-cancel small" value="' . dol_escape_htmltag ( $langs -> trans ( " Cancel " )) . '" name="cancel">' ;
2021-02-26 12:03:07 +01:00
}
2017-10-07 13:09:31 +02:00
}
2016-04-27 09:41:42 +02:00
2019-10-02 16:18:33 +02:00
print '</span>' ;
2017-07-02 23:38:19 +02:00
2020-09-23 16:36:19 +02:00
//
2018-08-15 14:24:33 +02:00
// Toolbar for pages
2020-09-23 16:36:19 +02:00
//
2023-08-22 15:22:03 +02:00
if ( $websitekey && $websitekey != '-1' && ( ! in_array ( $action , array ( 'editcss' , 'editmenu' , 'importsite' , 'file_manager' , 'replacesite' , 'replacesiteconfirm' ))) && ( ! in_array ( $mode , array ( 'replacesite' ))) && ! $file_manager ) {
2019-11-12 00:15:34 +01:00
print '</div>' ; // Close current websitebar to open a new one
2017-07-02 23:38:19 +02:00
2022-10-11 11:45:01 +02:00
print '<!-- Toolbar for websitepage -->' ;
2023-07-31 21:43:36 +02:00
print '<div class="centpercent websitebar"' . ( $style ? ' style="' . $style . '"' : '' ) . '>' ;
2017-07-02 23:38:19 +02:00
2022-10-09 17:49:44 +02:00
print '<div class="websiteselection hideonsmartphoneimp minwidth75 tdoverflowmax100 inline-block">' ;
2017-11-15 19:47:07 +01:00
print $langs -> trans ( " PageContainer " ) . ': ' ;
2022-10-09 17:49:44 +02:00
print '</div>' ;
2017-07-21 13:38:13 +02:00
2022-10-09 20:52:50 +02:00
// Button Add new web page
2022-10-09 17:49:44 +02:00
print '<span class="websiteselection paddingrightonly">' ;
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=createcontainer&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '" class=""' . $disabled . ' title="' . dol_escape_htmltag ( $langs -> trans ( " AddPage " )) . '"><span class="fa fa-plus-circle valignmiddle btnTitle-icon"></span></a>' ;
2019-10-02 16:18:33 +02:00
print '</span>' ;
2017-11-15 19:47:07 +01:00
2017-07-21 13:38:13 +02:00
2022-10-09 20:52:50 +02:00
$out = '' ;
2020-12-11 02:02:41 +01:00
2022-10-09 20:52:50 +02:00
$s = $formwebsite -> selectContainer ( $website , 'pageid' , $pageid , 0 , $action , 'minwidth100 maxwidth200onsmartphone' );
2022-10-09 17:49:44 +02:00
2022-10-09 20:52:50 +02:00
$out .= '<span class="websiteselection nopaddingrightimp">' ;
$out .= $s ;
$out .= '</span>' ;
2022-10-09 17:49:44 +02:00
2022-10-09 20:52:50 +02:00
$urltocreatenewpage = $_SERVER [ " PHP_SELF " ] . '?action=createcontainer&token=' . newToken () . '&website=' . urlencode ( $website -> ref );
2022-10-09 17:49:44 +02:00
2022-10-09 20:52:50 +02:00
if ( ! empty ( $conf -> use_javascript_ajax )) {
$out .= '<script type="text/javascript">' ;
$out .= 'jQuery(document).ready(function () {' ;
$out .= ' jQuery("#pageid").change(function () {' ;
$out .= ' console.log("We select "+jQuery("#pageid option:selected").val());' ;
$out .= ' if (jQuery("#pageid option:selected").val() == \'-2\') {' ;
$out .= ' window.location.href = "' . $urltocreatenewpage . '";' ;
$out .= ' } else {' ;
$out .= ' window.location.href = "' . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( $website -> ref ) . '&pageid="+jQuery("#pageid option:selected").val();' ;
$out .= ' }' ;
$out .= ' });' ;
$out .= '});' ;
$out .= '</script>' ;
}
2017-07-02 23:38:19 +02:00
2022-10-09 20:52:50 +02:00
print $out ;
2024-08-26 20:51:42 +02:00
// Button to switch status
2022-10-09 20:52:50 +02:00
if ( ! empty ( $conf -> use_javascript_ajax )) {
print '<span class="websiteselection">' ;
//print '<div class="inline-block marginrightonly">';
if ( $object -> status == $object :: STATUS_DRAFT ) { // website is off, we do not allow to change status of page
$text_off = 'SetWebsiteOnlineBefore' ;
2022-10-11 11:45:01 +02:00
if ( $websitepage -> status == $websitepage :: STATUS_DRAFT ) { // page is off
2022-10-09 20:52:50 +02:00
print '<span class="valignmiddle disabled opacitymedium">' . img_picto ( $langs -> trans ( $text_off ), 'switch_off' ) . '</span>' ;
} else {
print '<span class="valignmiddle disabled opacitymedium">' . img_picto ( $langs -> trans ( $text_off ), 'switch_on' ) . '</span>' ;
}
} else {
2024-08-26 20:51:42 +02:00
print ajax_object_onoff ( $websitepage , 'status' , 'status' , 'Online' , 'Offline' , array (), 'valignmiddle inline-block' . ( empty ( $websitepage -> id ) ? ' opacitymedium disabled' : '' ), 'statuswebsitepage' , 1 , 'pageid=' . $websitepage -> id );
2022-10-09 20:52:50 +02:00
}
//print '</div>';
print '</span>' ;
}
2016-08-08 14:21:43 +02:00
2022-01-19 14:32:15 +01:00
print '<span class="websiteselection">' ;
2022-10-09 17:49:44 +02:00
print '<input type="image" class="valignmiddle buttonwebsite" src="' . img_picto ( '' , 'refresh' , '' , 0 , 1 ) . '" name="refreshpage" value="' . $langs -> trans ( " Load " ) . '"' . (( $action != 'editsource' ) ? '' : ' disabled="disabled"' ) . '>' ;
2018-05-25 17:47:03 +02:00
// Print nav arrows
2019-11-12 00:15:34 +01:00
$pagepreviousid = 0 ;
$pagenextid = 0 ;
2021-02-26 12:03:07 +01:00
if ( $pageid ) {
2021-08-28 03:09:18 +02:00
$sql = " SELECT MAX(rowid) as pagepreviousid FROM " . MAIN_DB_PREFIX . " website_page WHERE rowid < " . (( int ) $pageid ) . " AND fk_website = " . (( int ) $object -> id );
2018-06-11 09:22:50 +02:00
$resql = $db -> query ( $sql );
2021-02-26 12:03:07 +01:00
if ( $resql ) {
2018-06-11 09:22:50 +02:00
$obj = $db -> fetch_object ( $resql );
2021-02-26 12:03:07 +01:00
if ( $obj ) {
2018-06-11 09:22:50 +02:00
$pagepreviousid = $obj -> pagepreviousid ;
}
2021-02-26 12:03:07 +01:00
} else {
dol_print_error ( $db );
2018-05-25 17:47:03 +02:00
}
2021-08-28 03:09:18 +02:00
$sql = " SELECT MIN(rowid) as pagenextid FROM " . MAIN_DB_PREFIX . " website_page WHERE rowid > " . (( int ) $pageid ) . " AND fk_website = " . (( int ) $object -> id );
2018-06-11 09:22:50 +02:00
$resql = $db -> query ( $sql );
2021-02-26 12:03:07 +01:00
if ( $resql ) {
2018-06-11 09:22:50 +02:00
$obj = $db -> fetch_object ( $resql );
2021-02-26 12:03:07 +01:00
if ( $obj ) {
2018-06-11 09:22:50 +02:00
$pagenextid = $obj -> pagenextid ;
}
2021-02-26 12:03:07 +01:00
} else {
dol_print_error ( $db );
2018-05-25 17:47:03 +02:00
}
}
2018-05-25 17:59:58 +02:00
2021-02-26 12:03:07 +01:00
if ( $pagepreviousid ) {
2022-10-09 20:52:50 +02:00
print '<a class="valignmiddle" href="' . $_SERVER [ 'PHP_SELF' ] . '?website=' . urlencode ( $object -> ref ) . '&pageid=' . (( int ) $pagepreviousid ) . '&action=' . urlencode ( $action ) . '&token=' . newToken () . '">' . img_previous ( $langs -> trans ( " PreviousContainer " )) . '</a>' ;
2021-02-26 12:03:07 +01:00
} else {
2022-07-27 19:01:26 +02:00
print '<span class="valignmiddle opacitymedium">' . img_previous ( $langs -> trans ( " PreviousContainer " )) . '</span>' ;
2021-02-26 12:03:07 +01:00
}
if ( $pagenextid ) {
2022-10-09 20:52:50 +02:00
print '<a class="valignmiddle" href="' . $_SERVER [ 'PHP_SELF' ] . '?website=' . urlencode ( $object -> ref ) . '&pageid=' . (( int ) $pagenextid ) . '&action=' . urlencode ( $action ) . '&token=' . newToken () . '">' . img_next ( $langs -> trans ( " NextContainer " )) . '</a>' ;
2021-02-26 12:03:07 +01:00
} else {
2022-07-27 19:01:26 +02:00
print '<span class="valignmiddle opacitymedium">' . img_next ( $langs -> trans ( " NextContainer " )) . '</span>' ;
2021-02-26 12:03:07 +01:00
}
2018-05-25 17:47:03 +02:00
2022-01-19 14:32:15 +01:00
print '</span>' ;
2021-02-26 12:03:07 +01:00
if ( $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite' ) {
2019-11-12 00:15:34 +01:00
$disabled = '' ;
2023-10-15 18:46:18 +02:00
if ( ! $user -> hasRight ( 'website' , 'write' )) {
2021-02-26 12:03:07 +01:00
$disabled = ' disabled="disabled"' ;
}
2017-10-07 13:09:31 +02:00
2019-06-02 17:27:00 +02:00
// Confirmation delete site
if ( $action == 'deletesite' ) {
// Create an array for form
$formquestion = array (
array ( 'type' => 'checkbox' , 'name' => 'delete_also_js' , 'label' => $langs -> trans ( " DeleteAlsoJs " ), 'value' => 0 ),
array ( 'type' => 'checkbox' , 'name' => 'delete_also_medias' , 'label' => $langs -> trans ( " DeleteAlsoMedias " ), 'value' => 0 ),
2019-09-24 14:20:45 +02:00
//array('type' => 'other','name' => 'newlang','label' => $langs->trans("Language"), 'value' => $formadmin->select_language(GETPOST('newlang', 'aZ09')?GETPOST('newlang', 'aZ09'):$langs->defaultlang, 'newlang', 0, null, '', 0, 0, 'minwidth200')),
2019-06-02 17:27:00 +02:00
//array('type' => 'other','name' => 'newwebsite','label' => $langs->trans("WebSite"), 'value' => $formwebsite->selectWebsite($object->id, 'newwebsite', 0))
);
2022-07-27 23:01:33 +02:00
if ( $atleastonepage ) {
$langs -> load ( " errors " );
$formquestion [] = array ( 'type' => 'onecolumn' , 'value' => '<div class="warning">' . $langs -> trans ( " WarningPagesWillBeDeleted " ) . '</div>' );
}
$formconfirm = $form -> formconfirm ( $_SERVER [ " PHP_SELF " ] . '?id=' . $object -> id , $langs -> trans ( 'DeleteWebsite' ), '' , 'confirm_deletesite' , $formquestion , 0 , 1 , 210 + ( $atleastonepage ? 70 : 0 ), 580 );
2019-06-02 17:27:00 +02:00
print $formconfirm ;
}
2017-10-07 13:09:31 +02:00
// Confirmation to clone
if ( $action == 'createfromclone' ) {
// Create an array for form
$formquestion = array (
2024-02-23 16:54:23 +01:00
array ( 'type' => 'text' , 'name' => 'siteref' , 'label' => $langs -> trans ( " WebSite " ), 'value' => 'copy_of_' . $object -> ref )
2017-10-07 13:09:31 +02:00
);
2019-11-12 00:15:34 +01:00
$formconfirm = $form -> formconfirm ( $_SERVER [ " PHP_SELF " ] . '?id=' . $object -> id , $langs -> trans ( 'CloneSite' ), '' , 'confirm_createfromclone' , $formquestion , 0 , 1 , 200 );
2017-10-07 13:09:31 +02:00
print $formconfirm ;
}
2017-07-02 23:38:19 +02:00
2021-02-26 12:03:07 +01:00
if ( $pageid > 0 && $atleastonepage ) { // pageid can be set without pages, if homepage of site is set and all pages were removed
2017-10-07 13:09:31 +02:00
// Confirmation to clone
if ( $action == 'createpagefromclone' ) {
// Create an array for form
2020-10-31 14:32:18 +01:00
$preselectedlanguage = GETPOST ( 'newlang' , 'aZ09' ) ? GETPOST ( 'newlang' , 'aZ09' ) : '' ; // Dy default, we do not force any language on pages
2020-04-16 14:31:30 +02:00
$onlylang = array ();
if ( $website -> otherlang ) {
2020-10-31 14:32:18 +01:00
if ( ! empty ( $website -> lang )) {
2020-12-06 15:59:19 +01:00
$onlylang [ $website -> lang ] = $website -> lang . ' (' . $langs -> trans ( " Default " ) . ')' ;
2020-06-06 17:12:37 +02:00
}
2020-04-23 18:55:10 +02:00
foreach ( explode ( ',' , $website -> otherlang ) as $langkey ) {
2023-12-04 13:53:48 +01:00
if ( empty ( trim ( $langkey ))) {
continue ;
}
2020-04-16 14:31:30 +02:00
$onlylang [ $langkey ] = $langkey ;
}
2020-12-06 15:59:19 +01:00
$textifempty = $langs -> trans ( " Default " );
2020-04-16 14:31:30 +02:00
} else {
2020-12-06 15:59:19 +01:00
$onlylang [ 'none' ] = 'none' ;
$textifempty = $langs -> trans ( " Default " );
2020-04-16 14:31:30 +02:00
}
2017-07-22 20:01:29 +02:00
$formquestion = array (
2024-02-23 16:54:23 +01:00
array ( 'type' => 'hidden' , 'name' => 'sourcepageurl' , 'value' => $objectpage -> pageurl ),
array ( 'type' => 'other' , 'tdclass' => 'fieldrequired' , 'name' => 'newwebsite' , 'label' => $langs -> trans ( " WebSite " ), 'value' => $formwebsite -> selectWebsite ( $object -> id , 'newwebsite' , 0 )),
array ( 'type' => 'text' , 'tdclass' => 'maxwidth200 fieldrequired' , 'moreattr' => 'autofocus="autofocus"' , 'name' => 'newtitle' , 'label' => $langs -> trans ( " WEBSITE_TITLE " ), 'value' => $langs -> trans ( " CopyOf " ) . ' ' . $objectpage -> title ),
array ( 'type' => 'text' , 'tdclass' => 'maxwidth200' , 'name' => 'newpageurl' , 'label' => $langs -> trans ( " WEBSITE_PAGENAME " ), 'value' => '' )
2020-12-06 15:59:19 +01:00
);
if ( count ( $onlylang ) > 1 ) {
2024-02-23 16:54:23 +01:00
$formquestion [] = array ( 'type' => 'checkbox' , 'tdclass' => 'maxwidth200' , 'name' => 'is_a_translation' , 'label' => $langs -> trans ( " PageIsANewTranslation " ), 'value' => 0 , 'morecss' => 'margintoponly' );
2020-12-06 15:59:19 +01:00
}
2024-10-14 01:59:44 +02:00
$value = $formadmin -> select_language ( $preselectedlanguage , 'newlang' , 0 , array (), $textifempty , 0 , 0 , 'minwidth200' , 1 , 0 , 0 , $onlylang , 1 );
2020-12-06 15:59:19 +01:00
$formquestion [] = array ( 'type' => 'other' , 'name' => 'newlang' , 'label' => $form -> textwithpicto ( $langs -> trans ( " Language " ), $langs -> trans ( " DefineListOfAltLanguagesInWebsiteProperties " )), 'value' => $value );
2017-07-22 20:01:29 +02:00
2021-02-26 12:03:07 +01:00
$formconfirm = $form -> formconfirm ( $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $pageid , $langs -> trans ( 'ClonePage' ), '' , 'confirm_createpagefromclone' , $formquestion , 0 , 1 , 300 , 550 );
2017-07-22 20:01:29 +02:00
print $formconfirm ;
2017-10-07 13:09:31 +02:00
}
2017-07-02 23:38:19 +02:00
2022-01-19 14:32:15 +01:00
print '<span class="websiteselection">' ;
2022-10-09 20:52:50 +02:00
// Edit web page properties
2024-12-03 11:55:43 +01:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $pageid . '&action=editmeta&token=' . newToken () . '" class="button bordertransp valignmiddle" title="' . dol_escape_htmltag ( $langs -> trans ( " EditPageMeta " )) . '"' . $disabled . '>' ;
print img_picto ( '' , 'setup' );
print '<span class="hideonsmartphone paddingleft">' . dol_escape_htmltag ( $langs -> trans ( " EditPageMeta " )) . '</span>' ;
print '</a>' ;
2018-07-19 21:35:21 +02:00
2022-10-09 20:52:50 +02:00
// Edit HTML content
2024-12-03 11:55:43 +01:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $pageid . '&action=editsource&token=' . newToken () . '" class="button bordertransp"' . $disabled . '>' ;
print img_picto ( '' , 'code' );
print '<span class="hideonsmartphone paddingleft">' . dol_escape_htmltag ( $langs -> trans ( $conf -> dol_optimize_smallscreen ? " HTML " : " EditHTMLSource " )) . '</span>' ;
print '</a>' ;
2023-03-27 20:54:07 +02:00
// Edit CKEditor
if ( getDolGlobalInt ( 'WEBSITE_ALLOW_CKEDITOR' )) {
2024-03-16 14:20:23 +01:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $pageid . '&action=editcontent&token=' . newToken () . '" class="button bordertransp"' . $disabled . '>' . dol_escape_htmltag ( " CKEditor " ) . '</a>' ;
2024-08-28 18:50:18 +02:00
} else {
print '<!-- Add option WEBSITE_ALLOW_CKEDITOR to allow ckeditor -->' ;
2023-03-27 20:54:07 +02:00
}
2022-01-19 14:32:15 +01:00
print '</span>' ;
2018-07-19 21:35:21 +02:00
2022-10-09 20:52:50 +02:00
// Switch include dynamic content / edit inline
2018-10-14 14:26:18 +02:00
print '<!-- button EditInLine and ShowSubcontainers -->' . " \n " ;
2018-09-10 09:09:51 +02:00
print '<div class="websiteselectionsection inline-block">' ;
2021-02-21 14:46:52 +01:00
2024-01-12 17:18:52 +01:00
print '<div class="inline-block marginrightonly">' ; // Button includes dynamic content
2021-02-21 14:46:52 +01:00
print $langs -> trans ( " ShowSubcontainers " );
2023-11-27 12:08:48 +01:00
if ( ! getDolGlobalString ( 'WEBSITE_SUBCONTAINERSINLINE' )) {
2024-09-25 22:21:31 +02:00
print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"' . $disabled . ' href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $websitepage -> id . '&action=setshowsubcontainers&token=' . newToken () . '">' . img_picto ( $langs -> trans ( " ShowSubContainersOnOff " , $langs -> transnoentitiesnoconv ( " Off " )), 'switch_off' , '' , 0 , 0 , 0 , '' , 'nomarginleft' ) . '</a>' ;
2021-02-26 12:03:07 +01:00
} else {
2024-09-25 22:21:31 +02:00
print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"' . $disabled . ' href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $websitepage -> id . '&action=unsetshowsubcontainers&token=' . newToken () . '">' . img_picto ( $langs -> trans ( " ShowSubContainersOnOff " , $langs -> transnoentitiesnoconv ( " On " )), 'switch_on' , '' , 0 , 0 , 0 , '' , 'nomarginleft' ) . '</a>' ;
2021-02-21 14:46:52 +01:00
}
print '</div>' ;
print '<div class="inline-block marginrightonly">' ; // Button edit inline
2019-08-14 19:48:52 +02:00
2019-09-10 17:50:55 +02:00
print '<span id="switchckeditorinline">' . " \n " ;
2023-08-02 16:11:53 +02:00
// Enable CKEditor inline with js on section and div with conteneditable=true
2019-09-10 17:50:55 +02:00
print '<!-- Code to enabled edit inline ckeditor -->' . " \n " ;
2019-08-14 19:48:52 +02:00
print ' < script type = " text/javascript " >
$ ( document ) . ready ( function () {
2022-03-16 15:56:39 +01:00
var isEditingEnabled = '.(getDolGlobalString("WEBSITE_EDITINLINE") ? ' true ' : ' false ').' ;
2019-08-14 19:48:52 +02:00
if ( isEditingEnabled )
{
switchEditorOnline ( true );
}
$ ( " #switchckeditorinline " ) . click ( function () {
switchEditorOnline ();
});
function switchEditorOnline ( forceenable )
{
if ( ! isEditingEnabled || forceenable )
{
2024-03-26 00:49:34 +01:00
console . log ( " Enable inline edit for some html tags with contenteditable=true attribute " );
2023-08-02 16:04:13 +02:00
2024-03-26 00:49:34 +01:00
jQuery ( \ ' section [ contenteditable = " true " ], div [ contenteditable = " true " ], header [ contenteditable = " true " ], main [ contenteditable = " true " ], footer [ contenteditable = " true " ] \ ' ) . each ( function ( idx ){
2019-08-14 19:48:52 +02:00
var idtouse = $ ( this ) . attr ( \ ' id\ ' );
console . log ( " Enable inline edit for " + idtouse );
2023-08-02 16:04:13 +02:00
if ( idtouse !== undefined ) {
var inlineditor = CKEDITOR . inline ( idtouse , {
// Allow some non-standard markup that we used in the introduction.
// + a[target];div{float,display} ?
2024-03-26 00:49:34 +01:00
extraAllowedContent : \ ' span ( * ); cite ( * ); q ( * ); dl ( * ); dt ( * ); dd ( * ); ul ( * ); li ( * ); header ( * ); main ( * ); footer ( * ); button ( * ); h1 ( * ); h2 ( * ); h3 ( * ); \ ' ,
2023-08-02 16:04:13 +02:00
//extraPlugins: \'sourcedialog\',
removePlugins : \ ' flash , stylescombo , exportpdf , scayt , wsc , pagebreak , iframe , smiley\ ' ,
// Show toolbar on startup (optional).
// startupFocus: true
});
// Custom bar tool
// Note the Source tool does not work on inline
inlineditor . config . toolbar = [
[ \ ' Templates\ ' , \ ' NewPage\ ' ],
[ \ ' Save\ ' ],
[ \ ' Maximize\ ' , \ ' Preview\ ' ],
[ \ ' PasteText\ ' ],
[ \ ' Undo\ ' , \ ' Redo\ ' , \ ' - \ ' , \ ' Find\ ' , \ ' Replace\ ' , \ ' - \ ' , \ ' SelectAll\ ' , \ ' RemoveFormat\ ' ],
[ \ ' CreateDiv\ ' , \ ' ShowBlocks\ ' ],
[ \ ' Form\ ' , \ ' Checkbox\ ' , \ ' Radio\ ' , \ ' TextField\ ' , \ ' Textarea\ ' , \ ' Select\ ' , \ ' Button\ ' , \ ' ImageButton\ ' , \ ' HiddenField\ ' ],
[ \ ' Bold\ ' , \ ' Italic\ ' , \ ' Underline\ ' , \ ' Strike\ ' , \ ' Superscript\ ' ],
[ \ ' NumberedList\ ' , \ ' BulletedList\ ' , \ ' - \ ' , \ ' Outdent\ ' , \ ' Indent\ ' , \ ' Blockquote\ ' ],
[ \ ' JustifyLeft\ ' , \ ' JustifyCenter\ ' , \ ' JustifyRight\ ' , \ ' JustifyBlock\ ' ],
[ \ ' Link\ ' , \ ' Unlink\ ' ],
[ \ ' Image\ ' , \ ' Table\ ' , \ ' HorizontalRule\ ' ],
[ \ ' Styles\ ' , \ ' Format\ ' , \ ' Font\ ' , \ ' FontSize\ ' ],
[ \ ' TextColor\ ' , \ ' BGColor\ ' ]
];
// Start editor
//inlineditor.on(\'instanceReady\', function () {
// ...
//});
2024-05-05 02:48:23 +02:00
CKEDITOR . instances [ idtouse ] . on ( \ ' change\ ' , function () {
$ ( this . element . $ ) . addClass ( \ ' modified\ ' );
})
2024-03-26 00:49:34 +01:00
} else {
console . warn ( " A html section has the contenteditable=true attribute but has no id attribute " );
2023-08-02 16:04:13 +02:00
}
2019-08-14 19:48:52 +02:00
})
isEditingEnabled = true ;
2024-05-05 02:48:23 +02:00
// Trigger the function when clicking outside the elements with contenteditable=true attribute
2024-12-30 03:14:20 +01:00
// so we can save the change.
2024-05-05 02:48:23 +02:00
$ ( document ) . on ( \ ' click\ ' , function ( e ) {
var target = $ ( e . target );
2024-12-30 03:14:20 +01:00
2024-05-05 02:48:23 +02:00
// Check if the click is outside the elements with contenteditable=true attribute
if ( ! target . closest ( \ ' [ contenteditable = " true " ] \ ' ) . length ) {
// Repeat through the elements with contenteditable="true" attribute
$ ( \ ' [ contenteditable = " true " ] \ ' ) . each ( function () {
var idToUse = $ ( this ) . attr ( \ ' id\ ' );
var elementType = $ ( this ) . prop ( " tagName " ) . toLowerCase (); // Get the tag name (div, section, footer...)
var instance = CKEDITOR . instances [ idToUse ];
2024-12-30 03:14:20 +01:00
2024-05-05 02:48:23 +02:00
// Check if the element has been modified
if ( $ ( this ) . hasClass ( \ ' modified\ ' )) {
var content = instance . getData ();
content = " \\ n " + content ;
// Retrieving the content and ID of the element
var elementId = $ ( this ) . attr ( \ ' id\ ' );
2024-12-30 03:14:20 +01:00
' ;
if ( getDolGlobalString ( 'WEBSITE_EDITINLINE_SAVE_CKEDITOR_EDIT' )) {
print '
console . log ( " A change has been detected, we send new content for update with ajax " );
// Sending data via AJAX to update section
2024-05-05 02:48:23 +02:00
$ . ajax ({
type : \ ' POST\ ' ,
url : \ '' . DOL_URL_ROOT . ' / core / ajax / editinline . php\ ' ,
data : {
2024-12-30 03:14:20 +01:00
website_ref : \ '' . dol_escape_js ( $website -> ref ) . ' \ ' ,
page_id : \ '' . (( int ) $websitepage -> id ) . ' \ ' ,
2024-05-05 02:48:23 +02:00
content : content ,
element_id : elementId ,
element_type : elementType ,
action : \ ' updatedElementContent\ ' ,
token : \ '' . newToken () . ' \ '
},
success : function ( response ) {
console . log ( response );
2024-07-09 19:38:23 +02:00
var $lastWebsitebar = $ ( " .websitebar " ) . last ();
var $span = $ ( " <span></span> " ) . html ( " '. $langs->trans ( " Saved " ).' " ) . css ({
\ ' display\ ' : \ ' block\ ' ,
\ ' position\ ' : \ ' absolute\ ' ,
\ ' margin - top\ ' : \ ' 6 px\ ' ,
\ ' right\ ' : \ ' 5 px\ ' ,
\ ' background - color\ ' : \ ' #e3f0db\',
\ ' color\ ' : \ ' #446548\',
\ ' font - size\ ' : \ ' 14 px\ ' ,
\ ' padding\ ' : \ ' 0 px 5 px\ ' ,
\ ' z - index\ ' : 1000
});
$lastWebsitebar . after ( $span );
// Close message after 2 seconds
setTimeout ( function () {
$span . fadeOut ( 500 , function () {
$ ( this ) . remove ();
});
}, 2000 );
2024-05-05 02:48:23 +02:00
}
});
2024-12-30 03:14:20 +01:00
' ;
} else {
print 'console.log("A change has been detected, but saving is not enabled by option WEBSITE_EDITINLINE_SAVE_CKEDITOR_EDIT, so no ajax update is done");' ;
}
print '
2024-05-05 02:48:23 +02:00
$ ( this ) . removeClass ( \ ' modified\ ' );
}
});
}
});
2023-08-02 16:11:53 +02:00
} else {
2019-08-14 19:48:52 +02:00
console . log ( " Disable inline edit " );
2023-08-02 16:11:53 +02:00
for ( name in CKEDITOR . instances ) {
2019-08-14 19:48:52 +02:00
CKEDITOR . instances [ name ] . destroy ( true );
}
isEditingEnabled = false ;
}
2022-12-30 18:43:43 +01:00
}
2019-08-14 19:48:52 +02:00
});
</ script > ' ;
2018-09-28 00:59:02 +02:00
print $langs -> trans ( " EditInLine " );
2019-08-14 19:48:52 +02:00
print '</span>' ;
2020-03-11 12:53:41 +01:00
//$disableeditinline = $websitepage->grabbed_from;
$disableeditinline = 0 ;
2021-02-26 12:03:07 +01:00
if ( $disableeditinline ) {
2019-08-15 18:59:08 +02:00
//print '<input type="submit" class="button bordertransp" disabled="disabled" title="'.dol_escape_htmltag($langs->trans("OnlyEditionOfSourceForGrabbedContent")).'" value="'.dol_escape_htmltag($langs->trans("EditWithEditor")).'" name="editcontent">';
2024-09-25 22:21:31 +02:00
print '<a class="nobordertransp opacitymedium nohoverborder marginleftonlyshort"' . $disabled . ' href="#" disabled="disabled" title="' . dol_escape_htmltag ( $langs -> trans ( " OnlyEditionOfSourceForGrabbedContent " )) . '">' . img_picto ( $langs -> trans ( " OnlyEditionOfSourceForGrabbedContent " ), 'switch_off' , '' , 0 , 0 , 0 , '' , 'nomarginleft' ) . '</a>' ;
2021-02-26 12:03:07 +01:00
} else {
2018-07-19 21:35:21 +02:00
//print '<input type="submit" class="button nobordertransp"'.$disabled.' value="'.dol_escape_htmltag($langs->trans("EditWithEditor")).'" name="editcontent">';
2023-11-27 12:08:48 +01:00
if ( ! getDolGlobalString ( 'WEBSITE_EDITINLINE' )) {
2024-09-25 22:21:31 +02:00
print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"' . $disabled . ' href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $websitepage -> id . '&action=seteditinline&token=' . newToken () . '">' . img_picto ( $langs -> trans ( " EditInLineOnOff " , $langs -> transnoentitiesnoconv ( " Off " )), 'switch_off' , '' , 0 , 0 , 0 , '' , 'nomarginleft' ) . '</a>' ;
2021-02-26 12:03:07 +01:00
} else {
2024-09-25 22:21:31 +02:00
print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"' . $disabled . ' href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . $object -> ref . '&pageid=' . $websitepage -> id . '&action=unseteditinline&token=' . newToken () . '">' . img_picto ( $langs -> trans ( " EditInLineOnOff " , $langs -> transnoentitiesnoconv ( " On " )), 'switch_on' , '' , 0 , 0 , 0 , '' , 'nomarginleft' ) . '</a>' ;
2018-07-19 21:35:21 +02:00
}
2018-02-14 20:33:48 +01:00
}
2019-08-14 19:48:52 +02:00
2018-09-10 09:09:51 +02:00
print '</div>' ;
2021-02-21 14:46:52 +01:00
2018-09-10 09:09:51 +02:00
print '</div>' ;
2018-07-19 21:35:21 +02:00
2019-11-09 12:03:11 +01:00
// Set page as homepage
2023-07-31 21:43:36 +02:00
print '<span class="websiteselection">' ;
2021-02-26 12:03:07 +01:00
if ( $object -> fk_default_home > 0 && $pageid == $object -> fk_default_home ) {
2019-06-02 17:27:00 +02:00
//$disabled=' disabled="disabled"';
2023-10-13 15:00:51 +02:00
//print '<span class="button bordertransp disabled"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("SetAsHomePage")).'"><span class="fas fa-home"></span></span>';
2019-11-09 12:03:11 +01:00
//print '<input type="submit" class="button bordertransp" disabled="disabled" value="'.dol_escape_htmltag($langs->trans("SetAsHomePage")).'" name="setashome">';
2023-10-13 15:00:51 +02:00
print '<a href="#" class="button bordertransp disabled" disabled="disabled" title="' . dol_escape_htmltag ( $langs -> trans ( " SetAsHomePage " )) . '"><span class="fas fa-home valignmiddle btnTitle-icon"></span></a>' ;
2021-02-26 12:03:07 +01:00
} else {
2019-06-02 17:27:00 +02:00
//$disabled='';
2019-11-09 12:03:11 +01:00
//print '<input type="submit" class="button bordertransp"'.$disabled.' value="'.dol_escape_htmltag($langs->trans("SetAsHomePage")).'" name="setashome">';
2023-10-13 15:00:51 +02:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=setashome&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '&pageid=' . (( int ) $pageid ) . '" class="button bordertransp"' . $disabled . ' title="' . dol_escape_htmltag ( $langs -> trans ( " SetAsHomePage " )) . '"><span class="fas fa-home valignmiddle btnTitle-icon"></span></a>' ;
2019-06-02 17:27:00 +02:00
}
2019-08-15 18:59:08 +02:00
print '<input type="submit" class="button bordertransp"' . $disabled . ' value="' . dol_escape_htmltag ( $langs -> trans ( " ClonePage " )) . '" name="createpagefromclone">' ;
2022-10-09 17:49:44 +02:00
// Delete
2022-12-23 15:52:48 +01:00
if ( $websitepage -> status != $websitepage :: STATUS_DRAFT ) {
2022-10-09 17:49:44 +02:00
$disabled = ' disabled="disabled"' ;
$title = $langs -> trans ( " WebpageMustBeDisabled " , $langs -> transnoentitiesnoconv ( $websitepage -> LibStatut ( 0 , 0 )));
$url = '#' ;
} else {
$disabled = '' ;
$title = '' ;
2022-12-23 16:00:27 +01:00
$url = $_SERVER [ " PHP_SELF " ] . '?action=delete&token=' . newToken () . '&pageid=' . (( int ) $websitepage -> id ) . '&website=' . urlencode ( $website -> ref ); // action=delete for webpage, deletesite for website
2022-10-09 17:49:44 +02:00
}
2023-02-27 14:29:34 +01:00
print '<a href="' . $url . '" class="button buttonDelete bordertransp' . ( $disabled ? ' disabled' : '' ) . '"' . $disabled . ' title="' . dol_escape_htmltag ( $title ) . '">' . img_picto ( '' , 'delete' , 'class=""' ) . '<span class="hideonsmartphone paddingleft">' . $langs -> trans ( " Delete " ) . '</span></a>' ;
2023-07-31 21:43:36 +02:00
print '</span>' ;
2017-10-07 13:09:31 +02:00
}
}
2016-09-14 23:23:22 +02:00
2019-10-31 21:09:33 +01:00
//print '</span>'; // end website selection
2017-07-02 23:38:19 +02:00
2019-10-02 16:18:33 +02:00
print '<span class="websitetools">' ;
2016-04-27 09:41:42 +02:00
2021-02-26 12:03:07 +01:00
if (( $pageid > 0 && $atleastonepage ) && ( $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite' )) {
2019-11-12 00:15:34 +01:00
$realpage = $urlwithroot . '/public/website/index.php?website=' . $websitekey . '&pageref=' . $websitepage -> pageurl ;
2017-10-07 13:09:31 +02:00
$pagealias = $websitepage -> pageurl ;
2024-10-05 12:57:39 +02:00
$htmltext = $langs -> trans ( " PreviewSiteServedByDolibarr " , $langs -> transnoentitiesnoconv ( " Page " ), $langs -> transnoentitiesnoconv ( " Page " ), $realpage , $langs -> transnoentitiesnoconv ( " TestDeployOnWeb " ));
//$htmltext .= '<br>'.$langs->trans("CheckVirtualHostPerms", $langs->transnoentitiesnoconv("ReadPerm"), '{s1}');
//$htmltext = str_replace('{s1}', $dataroot.'<br>'.DOL_DATA_ROOT.'/medias<br>'.DOL_DOCUMENT_ROOT, $htmltext);
2021-02-16 12:32:03 +01:00
//$htmltext .= '<br>'.$langs->trans("CheckVirtualHostPerms", $langs->transnoentitiesnoconv("WritePerm"), '{s1}');
//$htmltext = str_replace('{s1}', DOL_DATA_ROOT.'/medias', $htmltext);
2018-02-19 21:31:03 +01:00
2020-03-02 17:35:49 +01:00
print '<div class="websiteinputurl inline-block paddingright">' ;
print '<a class="websitebuttonsitepreview inline-block" id="previewpage" href="' . $realpage . '&nocache=' . dol_now () . '" class="button" target="tab' . $websitekey . '" alt="' . dol_escape_htmltag ( $htmltext ) . '">' ;
2018-02-19 21:31:03 +01:00
print $form -> textwithpicto ( '' , $htmltext , 1 , 'preview' );
2019-11-12 00:15:34 +01:00
print '</a>' ; // View page in new Tab
2020-03-02 17:35:49 +01:00
print '</div>' ;
2017-10-07 13:09:31 +02:00
2020-03-02 17:35:49 +01:00
/* print '<div class="websiteinputurl inline-block" id="websiteinputpage">' ;
2017-10-07 13:09:31 +02:00
print '<input type="text" id="previewpageurl" class="minwidth200imp" name="previewsite" value="' . $pagealias . '" disabled="disabled">' ;
2019-11-12 00:15:34 +01:00
$htmltext = $langs -> trans ( " PageNameAliasHelp " , $langs -> transnoentitiesnoconv ( " EditPageMeta " ));
2017-10-07 13:09:31 +02:00
print $form -> textwithpicto ( '' , $htmltext , 1 , 'help' , '' , 0 , 2 , 'helppagealias' );
2020-03-02 17:35:49 +01:00
print '</div>' ; */
2017-10-07 13:09:31 +02:00
2020-03-02 17:35:49 +01:00
/*
2019-11-12 00:15:34 +01:00
$urlext = $virtualurl . '/' . $pagealias . '.php' ;
$urlint = $urlwithroot . '/public/website/index.php?website=' . $websitekey ;
2018-02-19 21:31:03 +01:00
2019-11-12 00:15:34 +01:00
$htmltext = $langs -> trans ( " PreviewSiteServedByWebServer " , $langs -> transnoentitiesnoconv ( " Page " ), $langs -> transnoentitiesnoconv ( " Page " ), $dataroot , $virtualurl ? $urlext : '<span class="error">' . $langs -> trans ( " VirtualHostUrlNotDefined " ) . '</span>' );
2018-02-19 21:31:03 +01:00
2019-11-12 00:15:34 +01:00
print '<a class="websitebuttonsitepreview' . ( $virtualurl ? '' : ' websitebuttonsitepreviewdisabled cursornotallowed' ) . '" id="previewpageext" href="' . $urlext . '" target="tab' . $websitekey . 'ext" alt="' . dol_escape_htmltag ( $htmltext ) . '">' ;
2018-02-19 21:31:03 +01:00
print $form -> textwithpicto ( '' , $htmltext , 1 , 'preview_ext' );
2017-10-07 13:09:31 +02:00
print '</a>' ;
2020-03-02 17:35:49 +01:00
*/
2018-07-22 17:18:35 +02:00
//print '<input type="submit" class="button" name="previewpage" target="tab'.$websitekey.'"value="'.$langs->trans("ViewPageInNewTab").'">';
2017-10-07 13:09:31 +02:00
// TODO Add js to save alias like we save virtual host name and use dynamic virtual host for url of id=previewpageext
}
2022-10-08 17:04:20 +02:00
if ( ! in_array ( $mode , array ( 'replacesite' )) && ! in_array ( $action , array ( 'editcss' , 'editmenu' , 'file_manager' , 'replacesiteconfirm' , 'createsite' , 'createcontainer' , 'createfromclone' , 'createpagefromclone' , 'deletesite' ))) {
2021-02-26 12:03:07 +01:00
if ( $action == 'editsource' || $action == 'editmeta' ) {
2024-02-29 11:45:50 +01:00
// accesskey is for Windows or Linux: ALT + key for chrome, ALT + SHIFT + KEY for firefox
// accesskey is for Mac: CTRL + key for all browsers
$stringforfirstkey = $langs -> trans ( " KeyboardShortcut " );
if ( $conf -> browser -> name == 'chrome' ) {
$stringforfirstkey .= ' ALT +' ;
} elseif ( $conf -> browser -> name == 'firefox' ) {
$stringforfirstkey .= ' ALT + SHIFT +' ;
} else {
$stringforfirstkey .= ' CTL +' ;
}
print '<input type="submit" accesskey="s" title="' . dol_escape_htmltag ( $stringforfirstkey . ' s' ) . '" id="savefileandstay" class="button buttonforacesave hideonsmartphone small" value="' . dol_escape_htmltag ( $langs -> trans ( " SaveAndStay " )) . '" name="updateandstay">' ;
2021-02-26 12:03:07 +01:00
}
if ( preg_match ( '/^create/' , $action )) {
2022-04-02 19:52:12 +02:00
print '<input type="submit" id="savefile" class="button buttonforacesave button-save small" value="' . dol_escape_htmltag ( $langs -> trans ( " Save " )) . '" name="update">' ;
2021-02-26 12:03:07 +01:00
}
if ( preg_match ( '/^edit/' , $action )) {
2022-04-02 19:52:12 +02:00
print '<input type="submit" id="savefile" class="button buttonforacesave button-save small" value="' . dol_escape_htmltag ( $langs -> trans ( " Save " )) . '" name="update">' ;
2021-02-26 12:03:07 +01:00
}
if ( $action != 'preview' ) {
2022-01-30 01:58:29 +01:00
print '<input type="submit" class="button button-cancel small" value="' . dol_escape_htmltag ( $langs -> trans ( " Cancel " )) . '" name="cancel">' ;
2021-02-26 12:03:07 +01:00
}
2017-10-07 13:09:31 +02:00
}
2017-07-20 16:49:20 +02:00
2019-11-12 00:15:34 +01:00
print '</span>' ; // end websitetools
2017-07-20 16:49:20 +02:00
2019-10-02 16:18:33 +02:00
print '<span class="websitehelp">' ;
2021-09-18 12:09:08 +02:00
if ( $action == 'editsource' || $action == 'editcontent' || GETPOST ( 'editsource' , 'alpha' ) || GETPOST ( 'editcontent' , 'alpha' )) {
2019-12-05 14:17:40 +01:00
$url = 'https://wiki.dolibarr.org/index.php/Module_Website' ;
2024-01-12 13:45:10 +01:00
$htmltext = '<small>' ;
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource " , $url );
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource1 " , $url );
2020-06-17 22:29:05 +02:00
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource2 " , $url );
2024-01-12 13:45:10 +01:00
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource3 " , $url );
2024-10-02 11:29:52 +02:00
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource4 " , $url );
2020-06-17 22:29:05 +02:00
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSourceMore " , $url );
$htmltext .= '<br>' ;
2024-01-12 13:45:10 +01:00
$htmltext .= '</small>' ;
2021-02-26 12:03:07 +01:00
if ( $conf -> browser -> layout == 'phone' ) {
2020-10-07 15:01:28 +02:00
print $form -> textwithpicto ( '' , $htmltext , 1 , 'help' , 'inline-block' , 1 , 2 , 'tooltipsubstitution' );
2021-02-26 12:03:07 +01:00
} else {
2020-10-07 15:01:28 +02:00
//img_help(($tooltiptrigger != '' ? 2 : 1), $alt)
print $form -> textwithpicto ( $langs -> trans ( " SyntaxHelp " ) . ' ' . img_help ( 2 , $langs -> trans ( " SyntaxHelp " )), $htmltext , 1 , 'none' , 'inline-block' , 1 , 2 , 'tooltipsubstitution' );
}
2017-10-07 13:09:31 +02:00
}
2019-11-12 00:15:34 +01:00
print '</span>' ; // end websitehelp
2017-07-20 16:49:20 +02:00
2017-10-07 13:09:31 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' ) {
2017-10-07 13:09:31 +02:00
// Adding jquery code to change on the fly url of preview ext
2021-02-26 12:03:07 +01:00
if ( ! empty ( $conf -> use_javascript_ajax )) {
2021-11-29 15:09:18 +01:00
print ' < script type = " text/javascript " >
2016-09-14 23:23:22 +02:00
jQuery ( document ) . ready ( function () {
2017-07-20 11:51:30 +02:00
jQuery ( " #websiteinputurl " ) . keyup ( function () {
console . log ( " Website external url modified " + jQuery ( " #previewsiteurl " ) . val ());
2018-06-11 10:34:54 +02:00
if ( jQuery ( " #previewsiteurl " ) . val () != " " && jQuery ( " #previewsiteurl " ) . val () . startsWith ( " http " ))
{
jQuery ( " a.websitebuttonsitepreviewdisabled img " ) . css ({ opacity : 1 });
}
2017-07-20 11:51:30 +02:00
else jQuery ( " a.websitebuttonsitepreviewdisabled img " ) . css ({ opacity : 0.2 });
2018-02-15 01:29:51 +01:00
' ;
print '
2017-07-20 11:51:30 +02:00
});
2016-09-14 23:23:22 +02:00
jQuery ( " #previewsiteext,#previewpageext " ) . click ( function () {
2018-06-11 10:34:54 +02:00
2016-09-14 23:23:22 +02:00
newurl = jQuery ( " #previewsiteurl " ) . val ();
2018-06-11 10:34:54 +02:00
if ( ! newurl . startsWith ( " http " ))
{
2019-01-23 15:06:28 +01:00
alert ( \ '' . dol_escape_js ( $langs -> trans ( " ErrorURLMustStartWithHttp " )) . ' \ ' );
2018-06-11 10:38:04 +02:00
return false ;
2018-06-11 10:34:54 +02:00
}
2016-09-14 23:23:22 +02:00
newpage = jQuery ( " #previewsiteurl " ) . val () + " / " + jQuery ( " #previewpageurl " ) . val () + " .php " ;
console . log ( " Open url " + newurl );
/* Save url */
jQuery . ajax ({
method : " POST " ,
url : " '.DOL_URL_ROOT.'/core/ajax/saveinplace.php " ,
data : {
field : \ ' editval_virtualhost\ ' ,
2017-10-20 21:39:19 +02:00
element : \ ' website\ ' ,
2016-09-14 23:23:22 +02:00
table_element : \ ' website\ ' ,
2022-02-07 09:26:03 +01:00
fk_element : '.((int) $object->id).' ,
2016-09-14 23:23:22 +02:00
value : newurl ,
},
context : document . body
});
2017-07-02 23:38:19 +02:00
2016-09-14 23:23:22 +02:00
jQuery ( " #previewsiteext " ) . attr ( " href " , newurl );
jQuery ( " #previewpageext " ) . attr ( " href " , newpage );
});
});
</ script > ' ;
2017-10-07 13:09:31 +02:00
}
}
}
2016-02-02 16:24:12 +01:00
2019-11-12 00:15:34 +01:00
print '</div>' ; // end current websitebar
2017-11-10 15:29:12 +01:00
}
2016-02-02 16:24:12 +01:00
$head = array ();
/*
2017-12-19 16:16:31 +01:00
* Edit Site HTML header and CSS
2016-02-02 16:24:12 +01:00
*/
2021-02-26 12:03:07 +01:00
if ( $action == 'editcss' ) {
2017-10-07 13:09:31 +02:00
print '<div class="fiche">' ;
print '<br>' ;
2019-09-02 18:43:22 +02:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_CSS_INLINE' )) {
2017-12-19 11:40:29 +01:00
$csscontent = @ file_get_contents ( $filecss );
// Clean the php css file to remove php code and get only css part
2024-05-12 21:35:23 +02:00
$csscontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $csscontent );
2021-02-26 12:03:07 +01:00
} else {
2019-09-02 18:43:22 +02:00
$csscontent = GETPOST ( 'WEBSITE_CSS_INLINE' , 'none' );
2017-12-19 11:40:29 +01:00
}
2020-04-27 00:09:21 +02:00
if ( ! trim ( $csscontent )) {
$csscontent = '/* CSS content (all pages) */' . " \n body.bodywebsite { margin: 0; font-family: 'Open Sans', sans-serif; } \n .bodywebsite h1 { margin-top: 0; margin-bottom: 0; padding: 10px;} " ;
}
2017-10-07 13:09:31 +02:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_JS_INLINE' )) {
2017-12-19 11:40:29 +01:00
$jscontent = @ file_get_contents ( $filejs );
// Clean the php js file to remove php code and get only js part
2024-05-12 21:35:23 +02:00
$jscontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $jscontent );
2021-02-26 12:03:07 +01:00
} else {
2019-09-02 18:43:22 +02:00
$jscontent = GETPOST ( 'WEBSITE_JS_INLINE' , 'none' );
2017-12-19 11:40:29 +01:00
}
2021-02-26 12:03:07 +01:00
if ( ! trim ( $jscontent )) {
$jscontent = '/* JS content (all pages) */' . " \n " ;
}
2017-10-07 13:09:31 +02:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_HTML_HEADER' )) {
2017-12-19 12:54:10 +01:00
$htmlheadercontent = @ file_get_contents ( $filehtmlheader );
2017-12-19 11:40:29 +01:00
// Clean the php htmlheader file to remove php code and get only html part
2024-05-12 21:35:23 +02:00
$htmlheadercontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $htmlheadercontent );
2021-02-26 12:03:07 +01:00
} else {
2024-07-21 14:44:14 +02:00
$htmlheadercontent = GETPOST ( 'WEBSITE_HTML_HEADER' , 'none' ); // Must accept tags like '<script>' and '<link>'
2017-12-19 11:40:29 +01:00
}
2021-02-26 12:03:07 +01:00
if ( ! trim ( $htmlheadercontent )) {
2019-11-12 00:15:34 +01:00
$htmlheadercontent = " <html> \n " ;
$htmlheadercontent .= $htmlheadercontentdefault ;
$htmlheadercontent .= " </html> " ;
2021-02-26 12:03:07 +01:00
} else {
2017-12-19 16:16:31 +01:00
$htmlheadercontent = preg_replace ( '/^\s*<html>/ims' , '' , $htmlheadercontent );
$htmlheadercontent = preg_replace ( '/<\/html>\s*$/ims' , '' , $htmlheadercontent );
2019-11-12 00:15:34 +01:00
$htmlheadercontent = '<html>' . " \n " . trim ( $htmlheadercontent ) . " \n " . '</html>' ;
2017-12-19 16:16:31 +01:00
}
2017-10-07 13:09:31 +02:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_ROBOT' )) {
2017-12-19 11:40:29 +01:00
$robotcontent = @ file_get_contents ( $filerobot );
// Clean the php htmlheader file to remove php code and get only html part
2024-05-12 21:35:23 +02:00
$robotcontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $robotcontent );
2021-02-26 12:03:07 +01:00
} else {
2024-01-23 20:27:51 +01:00
$robotcontent = GETPOST ( 'WEBSITE_ROBOT' , 'nohtml' );
2017-12-19 11:40:29 +01:00
}
2021-02-26 12:03:07 +01:00
if ( ! trim ( $robotcontent )) {
2019-11-12 00:15:34 +01:00
$robotcontent .= " # Robot file. Generated with " . DOL_APPLICATION_TITLE . " \n " ;
$robotcontent .= " User-agent: * \n " ;
$robotcontent .= " Allow: /public/ \n " ;
$robotcontent .= " Disallow: /administrator/ \n " ;
2017-10-07 13:09:31 +02:00
}
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_HTACCESS' )) {
2017-12-19 11:40:29 +01:00
$htaccesscontent = @ file_get_contents ( $filehtaccess );
// Clean the php htaccesscontent file to remove php code and get only html part
2024-05-12 21:35:23 +02:00
$htaccesscontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $htaccesscontent );
2021-02-26 12:03:07 +01:00
} else {
2022-06-13 10:44:20 +02:00
$htaccesscontent = GETPOST ( 'WEBSITE_HTACCESS' , 'nohtml' ); // We must use 'nohtml' and not 'alphanohtml' because we must accept "
2017-12-19 11:40:29 +01:00
}
2019-08-12 17:34:18 +02:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_MANIFEST_JSON' )) {
2019-08-12 17:34:18 +02:00
$manifestjsoncontent = @ file_get_contents ( $filemanifestjson );
// Clean the manifestjson file to remove php code and get only html part
2024-05-12 21:35:23 +02:00
$manifestjsoncontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $manifestjsoncontent );
2021-02-26 12:03:07 +01:00
} else {
2020-09-18 01:29:17 +02:00
$manifestjsoncontent = GETPOST ( 'WEBSITE_MANIFEST_JSON' , 'restricthtml' );
2019-08-12 17:34:18 +02:00
}
2024-10-14 01:59:44 +02:00
//if (!trim($manifestjsoncontent)) {
//$manifestjsoncontent.="";
//}
2017-07-23 17:44:26 +02:00
2021-02-26 12:03:07 +01:00
if ( ! GETPOSTISSET ( 'WEBSITE_README' )) {
2019-08-15 00:55:47 +02:00
$readmecontent = @ file_get_contents ( $filereadme );
// Clean the readme file to remove php code and get only html part
2024-05-12 21:35:23 +02:00
$readmecontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $readmecontent );
2021-02-26 12:03:07 +01:00
} else {
2024-07-21 14:44:14 +02:00
$readmecontent = GETPOST ( 'WEBSITE_README' , 'restricthtmlallowunvalid' );
2019-08-15 00:55:47 +02:00
}
2024-10-14 01:59:44 +02:00
//if (!trim($readmecontent)) {
//$readmecontent.="";
//}
2019-08-15 00:55:47 +02:00
2022-09-03 19:02:42 +02:00
if ( ! GETPOSTISSET ( 'WEBSITE_LICENSE' )) {
$licensecontent = @ file_get_contents ( $filelicense );
// Clean the readme file to remove php code and get only html part
2024-05-12 21:35:23 +02:00
$licensecontent = preg_replace ( '/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims' , '' , $licensecontent );
2022-09-03 19:02:42 +02:00
} else {
2024-07-21 14:44:14 +02:00
$licensecontent = GETPOST ( 'WEBSITE_LICENSE' , 'restricthtmlallowunvalid' );
2022-09-03 19:02:42 +02:00
}
2024-10-14 01:59:44 +02:00
//if (!trim($licensecontent)) {
//$readmecontent.="";
//}
2022-09-03 19:02:42 +02:00
2020-10-22 22:50:03 +02:00
print dol_get_fiche_head ();
2016-04-27 09:41:42 +02:00
2020-12-01 20:00:02 +01:00
print '<!-- Edit Website properties -->' . " \n " ;
2019-11-05 21:24:41 +01:00
print '<table class="border centpercent">' ;
2016-04-27 09:41:42 +02:00
2017-10-07 13:09:31 +02:00
// Website
2020-02-21 16:37:07 +01:00
print '<tr><td class="titlefieldcreate fieldrequired">' ;
2017-10-07 13:09:31 +02:00
print $langs -> trans ( 'WebSite' );
print '</td><td>' ;
2018-07-22 17:18:35 +02:00
print $websitekey ;
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2016-04-27 09:41:42 +02:00
2020-08-04 02:50:56 +02:00
// Status of web site
2022-10-09 20:52:50 +02:00
if ( $action != 'createcontainer' ) {
if ( empty ( $conf -> use_javascript_ajax )) {
print '<!-- Status of web site page -->' . " \n " ;
print '<tr><td class="fieldrequired">' ;
print $langs -> trans ( 'Status' );
print '</td><td>' ;
print $form -> selectyesno ( 'status' , $object -> status );
print '</td></tr>' ;
}
}
2020-08-04 02:50:56 +02:00
2020-02-19 18:32:04 +01:00
// Main language
2020-02-21 16:37:07 +01:00
print '<tr><td class="tdtop fieldrequired">' ;
2020-04-10 10:59:32 +02:00
$htmltext = '' ;
2020-02-19 18:32:04 +01:00
print $form -> textwithpicto ( $langs -> trans ( 'MainLanguage' ), $htmltext , 1 , 'help' , '' , 0 , 2 , 'WEBSITE_LANG' );
print '</td><td>' ;
2022-07-27 23:09:29 +02:00
print img_picto ( '' , 'language' , 'class="picotfixedwidth"' );
2024-10-14 01:59:44 +02:00
print $formadmin -> select_language (( GETPOSTISSET ( 'WEBSITE_LANG' ) ? GETPOST ( 'WEBSITE_LANG' , 'aZ09comma' ) : ( $object -> lang ? $object -> lang : '0' )), 'WEBSITE_LANG' , 0 , array (), 1 , 0 , 0 , 'minwidth300' , 2 , 0 , 0 , array (), 1 );
2020-02-19 18:32:04 +01:00
print '</td>' ;
print '</tr>' ;
// Other languages
print '<tr><td class="tdtop">' ;
2020-12-01 20:00:02 +01:00
$htmltext = $langs -> trans ( " Example " ) . ': fr,de,sv,it,pt' ;
print $form -> textwithpicto ( $langs -> trans ( 'OtherLanguages' ), $htmltext , 1 , 'help' , '' , 0 , 2 );
2020-02-19 18:32:04 +01:00
print '</td><td>' ;
2022-07-27 23:09:29 +02:00
print img_picto ( '' , 'language' , 'class="picotfixedwidth"' );
2024-12-03 11:55:43 +01:00
print '<input type="text" class="flat maxwidth200" value="' . ( GETPOSTISSET ( 'WEBSITE_OTHERLANG' ) ? GETPOST ( 'WEBSITE_OTHERLANG' , 'alpha' ) : $object -> otherlang ) . '" name="WEBSITE_OTHERLANG">' ;
2020-02-19 18:32:04 +01:00
print '</td>' ;
print '</tr>' ;
2019-08-12 17:34:18 +02:00
// VirtualHost
print '<tr><td class="tdtop">' ;
2022-07-27 23:09:29 +02:00
$htmltext = $langs -> trans ( " VirtualhostDesc " );
2019-08-12 17:34:18 +02:00
print $form -> textwithpicto ( $langs -> trans ( 'Virtualhost' ), $htmltext , 1 , 'help' , '' , 0 , 2 , 'virtualhosttooltip' );
print '</td><td>' ;
2021-04-18 23:18:32 +02:00
print '<input type="text" class="flat minwidth300" value="' . ( GETPOSTISSET ( 'virtualhost' ) ? GETPOST ( 'virtualhost' , 'alpha' ) : $virtualurl ) . '" name="virtualhost">' ;
2019-08-12 17:34:18 +02:00
print '</td>' ;
print '</tr>' ;
2021-04-07 11:13:14 +02:00
// Favicon
print '<tr><td>' ;
2021-04-07 11:21:41 +02:00
print $form -> textwithpicto ( $langs -> trans ( 'ImportFavicon' ), $langs -> trans ( 'FaviconTooltip' ));
2021-04-07 11:13:14 +02:00
print '</td><td>' ;
2022-06-19 19:02:16 +02:00
$maxfilesizearray = getMaxFileSizeArray ();
$maxmin = $maxfilesizearray [ 'maxmin' ];
if ( $maxmin > 0 ) {
2022-08-12 11:31:40 +02:00
print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ( $maxmin * 1024 ) . '">' ; // MAX_FILE_SIZE must precede the field type=file
2022-06-19 19:02:16 +02:00
}
2021-04-07 11:13:14 +02:00
print '<input type="file" class="flat minwidth300" name="addedfile" id="addedfile"/>' ;
2023-09-06 18:35:40 +02:00
$uploadfolder = $conf -> website -> dir_output . '/' . $websitekey ;
if ( dol_is_file ( $uploadfolder . '/favicon.png' )) {
print '<div class="inline-block valignmiddle marginrightonly">' ;
print '<img style="max-height: 80px" src="' . DOL_URL_ROOT . '/viewimage.php?modulepart=website&file=' . $websitekey . '/favicon.png">' ;
print '</div>' ;
}
2021-04-07 11:13:14 +02:00
print '</tr></td>' ;
2017-10-07 13:09:31 +02:00
// CSS file
print '<tr><td class="tdtop">' ;
2019-11-12 00:15:34 +01:00
$htmlhelp = $langs -> trans ( " CSSContentTooltipHelp " );
2019-08-14 23:47:01 +02:00
print $form -> textwithpicto ( $langs -> trans ( 'WEBSITE_CSS_INLINE' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'csstooltip' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2017-07-19 16:38:00 +02:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_CSS_INLINE_x' ), 'y' => GETPOST ( 'WEBSITE_CSS_INLINE_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_CSS_INLINE' , $csscontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2017-07-19 16:38:00 +02:00
print $doleditor -> Create ( 1 , '' , true , 'CSS' , 'css' );
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2016-05-01 16:34:50 +02:00
2017-10-07 13:09:31 +02:00
// JS file
print '<tr><td class="tdtop">' ;
2020-06-03 00:46:09 +02:00
$textwithhelp = $langs -> trans ( 'WEBSITE_JS_INLINE' );
$htmlhelp2 = $langs -> trans ( " LinkAndScriptsHereAreNotLoadedInEditor " ) . '<br>' ;
print $form -> textwithpicto ( $textwithhelp , $htmlhelp2 , 1 , 'warning' , '' , 0 , 2 , 'htmljstooltip2' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2017-10-07 03:08:01 +02:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_JS_INLINE_x' ), 'y' => GETPOST ( 'WEBSITE_JS_INLINE_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_JS_INLINE' , $jscontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2017-10-07 03:08:01 +02:00
print $doleditor -> Create ( 1 , '' , true , 'JS' , 'javascript' );
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-10-07 03:08:01 +02:00
2017-10-07 13:09:31 +02:00
// Common HTML header
2017-07-19 16:38:00 +02:00
print '<tr><td class="tdtop">' ;
2019-08-14 23:57:44 +02:00
print $langs -> trans ( 'WEBSITE_HTML_HEADER' );
2019-11-12 00:15:34 +01:00
$htmlhelp = $langs -> trans ( " Example " ) . ' :<br>' ;
2024-09-12 03:17:22 +02:00
$htmlhelp .= dol_nl2br ( dol_htmlentities ( $htmlheadercontentdefault )); // do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
2019-08-14 23:57:44 +02:00
$textwithhelp = $form -> textwithpicto ( '' , $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'htmlheadertooltip' );
2019-11-12 00:15:34 +01:00
$htmlhelp2 = $langs -> trans ( " LinkAndScriptsHereAreNotLoadedInEditor " ) . '<br>' ;
2019-08-14 23:57:44 +02:00
print $form -> textwithpicto ( $textwithhelp , $htmlhelp2 , 1 , 'warning' , '' , 0 , 2 , 'htmlheadertooltip2' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2017-07-19 16:38:00 +02:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_HTML_HEADER_x' ), 'y' => GETPOST ( 'WEBSITE_HTML_HEADER_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_HTML_HEADER' , $htmlheadercontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2017-07-19 16:38:00 +02:00
print $doleditor -> Create ( 1 , '' , true , 'HTML Header' , 'html' );
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-07-23 17:44:26 +02:00
2017-10-07 13:09:31 +02:00
// Robot file
2017-07-23 17:44:26 +02:00
print '<tr><td class="tdtop">' ;
2017-10-07 13:09:31 +02:00
print $langs -> trans ( 'WEBSITE_ROBOT' );
print '</td><td>' ;
2017-07-23 17:44:26 +02:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_ROBOT_x' ), 'y' => GETPOST ( 'WEBSITE_ROBOT_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_ROBOT' , $robotcontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2017-12-10 19:54:04 +01:00
print $doleditor -> Create ( 1 , '' , true , 'Robot file' , 'text' );
2017-07-23 17:44:26 +02:00
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-07-23 17:44:26 +02:00
2017-10-07 13:09:31 +02:00
// .htaccess
2017-07-23 17:44:26 +02:00
print '<tr><td class="tdtop">' ;
2024-12-03 11:18:35 +01:00
2024-12-03 11:55:43 +01:00
$textwithhelp3 = $langs -> trans ( " Example " ) . ' :' ;
2024-12-03 11:18:35 +01:00
$textwithhelp3 .= " <br># Order allow,deny \n " ;
$textwithhelp3 .= " <br># Deny from all \n " ;
$textwithhelp3 .= " <br># Require all granted \n " ;
print $form -> textwithpicto ( $langs -> trans ( 'WEBSITE_HTACCESS' ), $textwithhelp3 , 1 , 'help' , '' , 0 , 2 , 'htmlheadertooltip3' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2017-07-23 17:44:26 +02:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_HTACCESS_x' ), 'y' => GETPOST ( 'WEBSITE_HTACCESS_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_HTACCESS' , $htaccesscontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2017-12-10 19:54:04 +01:00
print $doleditor -> Create ( 1 , '' , true , $langs -> trans ( " File " ) . ' .htaccess' , 'text' );
2017-07-23 17:44:26 +02:00
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-07-10 23:44:46 +02:00
2019-08-12 17:34:18 +02:00
// Manifest.json
2019-01-23 14:57:43 +01:00
print '<tr><td class="tdtop">' ;
2019-11-12 00:15:34 +01:00
$htmlhelp = $langs -> trans ( " Example " ) . ' :<br>' ;
2022-11-20 15:01:07 +01:00
$htmlhelp .= '<small>' . dol_htmlentitiesbr ( $manifestjsoncontentdefault ) . '</small>' ;
2019-08-12 17:34:18 +02:00
print $form -> textwithpicto ( $langs -> trans ( 'WEBSITE_MANIFEST_JSON' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'manifestjsontooltip' );
print '</td><td>' ;
2019-12-07 13:09:55 +01:00
print $langs -> trans ( " UseManifest " ) . ': ' . $form -> selectyesno ( 'use_manifest' , $website -> use_manifest , 1 ) . '<br>' ;
2022-02-27 14:46:40 +01:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_MANIFEST_JSON_x' ), 'y' => GETPOST ( 'WEBSITE_MANIFEST_JSON_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_MANIFEST_JSON' , $manifestjsoncontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2019-08-12 17:34:18 +02:00
print $doleditor -> Create ( 1 , '' , true , $langs -> trans ( " File " ) . ' manifest.json' , 'text' );
print '</td></tr>' ;
2019-01-23 14:57:43 +01:00
2019-08-15 00:55:47 +02:00
// README.md
print '<tr><td class="tdtop">' ;
2022-09-03 19:02:42 +02:00
$htmlhelp = $langs -> trans ( " EnterHereReadmeInformation " );
print $form -> textwithpicto ( $langs -> trans ( " File " ) . ' README.md' , $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'readmetooltip' );
2019-08-15 00:55:47 +02:00
print '</td><td>' ;
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_README_x' ), 'y' => GETPOST ( 'WEBSITE_README_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_README' , $readmecontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2019-08-15 00:55:47 +02:00
print $doleditor -> Create ( 1 , '' , true , $langs -> trans ( " File " ) . ' README.md' , 'text' );
print '</td></tr>' ;
2022-09-03 19:02:42 +02:00
// LICENSE
print '<tr><td class="tdtop">' ;
$htmlhelp = $langs -> trans ( " EnterHereLicenseInformation " );
print $form -> textwithpicto ( $langs -> trans ( " File " ) . ' LICENSE' , $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'licensetooltip' );
print '</td><td>' ;
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'WEBSITE_LICENSE_x' ), 'y' => GETPOST ( 'WEBSITE_LICENSE_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'WEBSITE_LICENSE' , $licensecontent , '' , 220 , 'ace' , 'In' , true , false , 'ace' , 0 , '100%' , 0 , $poscursor );
2022-09-03 19:02:42 +02:00
print $doleditor -> Create ( 1 , '' , true , $langs -> trans ( " File " ) . ' LICENSE' , 'text' );
print '</td></tr>' ;
2020-05-23 12:51:44 +02:00
// RSS
print '<tr><td class="tdtop">' ;
2020-05-23 12:57:58 +02:00
$htmlhelp = $langs -> trans ( 'RSSFeedDesc' );
print $form -> textwithpicto ( $langs -> trans ( 'RSSFeed' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , '' );
2020-05-23 12:51:44 +02:00
print '</td><td>' ;
2020-05-23 12:57:58 +02:00
print '/wrapper.php?rss=1[&l=XX][&limit=123]' ;
2020-05-23 12:51:44 +02:00
print '</td></tr>' ;
2017-10-07 13:09:31 +02:00
print '</table>' ;
2016-05-01 16:34:50 +02:00
2020-10-27 18:19:31 +01:00
print dol_get_fiche_end ();
2016-05-01 16:34:50 +02:00
2017-10-07 13:09:31 +02:00
print '</div>' ;
2016-05-01 16:34:50 +02:00
2017-10-07 13:09:31 +02:00
print '<br>' ;
2016-05-01 16:34:50 +02:00
}
2018-05-25 17:52:24 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'createsite' ) {
2017-10-07 13:09:31 +02:00
print '<div class="fiche">' ;
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '<br>' ;
2017-09-01 12:19:55 +02:00
/* $h = 0 ;
$head = array ();
2017-10-20 21:39:19 +02:00
$head [ $h ][ 0 ] = dol_buildpath ( '/website/index.php' , 1 ) . '?id=' . $object -> id ;
2017-09-01 12:19:55 +02:00
$head [ $h ][ 1 ] = $langs -> trans ( " AddSite " );
2021-02-26 12:03:07 +01:00
$head [ $h ][ 2 ] = 'card' ;
2017-09-01 12:19:55 +02:00
$h ++ ;
2024-04-03 16:22:16 +02:00
print dol_get_fiche_head ( $head , 'card' , '' , - 1 , 'globe' );
2021-02-26 12:03:07 +01:00
*/
if ( $action == 'createcontainer' ) {
print load_fiche_titre ( $langs -> trans ( " AddSite " ));
}
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '<!-- Add site -->' . " \n " ;
2022-07-27 19:01:26 +02:00
print '<div class="tabBar tabBarWithBottom">' ;
2017-09-01 12:19:55 +02:00
2019-11-05 21:24:41 +01:00
print '<table class="border centpercent">' ;
2017-09-01 12:19:55 +02:00
2020-02-19 18:32:04 +01:00
$siteref = $sitedesc = $sitelang = $siteotherlang = '' ;
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'WEBSITE_REF' )) {
2022-02-22 18:48:25 +01:00
$siteref = GETPOST ( 'WEBSITE_REF' , 'aZ09' );
2021-02-26 12:03:07 +01:00
}
if ( GETPOST ( 'WEBSITE_DESCRIPTION' )) {
$sitedesc = GETPOST ( 'WEBSITE_DESCRIPTION' , 'alpha' );
}
if ( GETPOST ( 'WEBSITE_LANG' )) {
$sitelang = GETPOST ( 'WEBSITE_LANG' , 'aZ09' );
}
if ( GETPOST ( 'WEBSITE_OTHERLANG' )) {
$siteotherlang = GETPOST ( 'WEBSITE_OTHERLANG' , 'aZ09comma' );
}
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '<tr><td class="titlefieldcreate fieldrequired">' ;
2022-07-27 19:01:26 +02:00
print $form -> textwithpicto ( $langs -> trans ( 'WebsiteName' ), $langs -> trans ( " Example " ) . ': MyPortal, www.mywebsite.com, ...' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2020-02-06 23:35:04 +01:00
print '<input type="text" class="flat maxwidth300" name="WEBSITE_REF" value="' . dol_escape_htmltag ( $siteref ) . '" autofocus>' ;
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-09-01 12:19:55 +02:00
2020-02-21 16:37:07 +01:00
print '<tr><td class="fieldrequired">' ;
print $langs -> trans ( 'MainLanguage' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2020-02-21 16:37:07 +01:00
$shortlangcode = preg_replace ( '/[_-].*$/' , '' , trim ( $langs -> defaultlang ));
2022-07-27 19:01:26 +02:00
print img_picto ( '' , 'language' , 'class="pictofixedwidth"' );
2024-10-14 01:59:44 +02:00
print $formadmin -> select_language (( GETPOSTISSET ( 'WEBSITE_LANG' ) ? GETPOST ( 'WEBSITE_LANG' , 'aZ09comma' ) : $shortlangcode ), 'WEBSITE_LANG' , 0 , array (), 1 , 0 , 0 , 'minwidth300' , 2 , 0 , 0 , array (), 1 );
2020-02-19 18:32:04 +01:00
print '</td></tr>' ;
print '<tr><td>' ;
2022-07-27 19:01:26 +02:00
$htmltext = $langs -> trans ( " Example " ) . ': fr,de,sv,it,pt' ;
print $form -> textwithpicto ( $langs -> trans ( 'OtherLanguages' ), $htmltext , 1 , 'help' , '' , 0 , 2 );
2020-02-19 18:32:04 +01:00
print '</td><td>' ;
2022-07-27 19:01:26 +02:00
print img_picto ( '' , 'language' , 'class="pictofixedwidth"' );
print '<input type="text" class="flat minwidth300" name="WEBSITE_OTHERLANG" value="' . dol_escape_htmltag ( $siteotherlang ) . '">' ;
2020-02-19 18:32:04 +01:00
print '</td></tr>' ;
print '<tr><td>' ;
2022-07-27 19:01:26 +02:00
print $langs -> trans ( 'Description' );
2020-02-19 18:32:04 +01:00
print '</td><td>' ;
2022-07-27 19:01:26 +02:00
print '<input type="text" class="flat minwidth500" name="WEBSITE_DESCRIPTION" value="' . dol_escape_htmltag ( $sitedesc ) . '">' ;
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '<tr><td>' ;
2019-01-23 14:57:43 +01:00
2022-07-27 19:01:26 +02:00
$htmltext = $langs -> trans ( " VirtualhostDesc " );
/* $htmltext = str_replace ( '{s1}' , DOL_DATA_ROOT . ( $conf -> entity > 1 ? '/' . $conf -> entity : '' ) . '/website/<i>websiteref</i>' , $htmltext );
2019-11-12 00:15:34 +01:00
$htmltext .= '<br>' ;
$htmltext .= '<br>' . $langs -> trans ( " CheckVirtualHostPerms " , $langs -> transnoentitiesnoconv ( " ReadPerm " ), DOL_DOCUMENT_ROOT );
2020-12-15 00:16:58 +01:00
$htmltext .= '<br>' . $langs -> trans ( " CheckVirtualHostPerms " , $langs -> transnoentitiesnoconv ( " WritePerm " ), '{s1}' );
2022-07-27 19:01:26 +02:00
$htmltext = str_replace ( '{s1}' , DOL_DATA_ROOT . '/website<br>' . DOL_DATA_ROOT . '/medias' , $htmltext ); */
2018-02-19 21:57:30 +01:00
2022-07-27 19:01:26 +02:00
print $form -> textwithpicto ( $langs -> trans ( 'Virtualhost' ), $htmltext , 1 , 'help' , '' , 0 , 2 , '' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2019-01-27 11:55:16 +01:00
print '<input type="text" class="flat minwidth300" name="virtualhost" value="' . dol_escape_htmltag ( GETPOST ( 'virtualhost' , 'alpha' )) . '">' ;
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '</table>' ;
2022-07-27 19:01:26 +02:00
print '</div>' ;
2017-09-01 12:19:55 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'createsite' ) {
2017-10-07 13:09:31 +02:00
print '<div class="center">' ;
2017-09-01 12:19:55 +02:00
2022-01-30 01:58:29 +01:00
print '<input type="submit" class="button small" name="addcontainer" value="' . $langs -> trans ( " Create " ) . '">' ;
print '<input class="button button-cancel small" type="submit" name="preview" value="' . $langs -> trans ( " Cancel " ) . '">' ;
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '</div>' ;
}
2017-09-01 12:19:55 +02:00
//print '</div>';
2020-10-27 18:19:31 +01:00
//print dol_get_fiche_end();
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '</div>' ;
2017-09-01 12:19:55 +02:00
2017-10-07 13:09:31 +02:00
print '<br>' ;
2017-09-01 12:19:55 +02:00
}
2024-12-29 20:14:21 +01:00
// Page view to import a website template
2021-02-26 12:03:07 +01:00
if ( $action == 'importsite' ) {
2024-02-09 17:54:57 +01:00
print '<!-- action=importsite -->' ;
2018-08-16 00:03:19 +02:00
print '<div class="fiche">' ;
print '<br>' ;
2018-09-09 15:52:55 +02:00
print load_fiche_titre ( $langs -> trans ( " ImportSite " ));
2018-08-16 00:03:19 +02:00
2020-10-22 22:50:03 +02:00
print dol_get_fiche_head ( array (), '0' , '' , - 1 );
2018-08-16 00:03:19 +02:00
2019-08-12 22:19:24 +02:00
print '<span class="opacitymedium">' . $langs -> trans ( " ZipOfWebsitePackageToImport " ) . '</span><br><br>' ;
2018-08-15 14:24:33 +02:00
2022-11-29 18:01:27 +01:00
$dolibarrdataroot = preg_replace ( '/([\\/]+)$/i' , '' , DOL_DATA_ROOT );
$allowimportsite = true ;
if ( dol_is_file ( $dolibarrdataroot . '/installmodules.lock' )) {
$allowimportsite = false ;
2022-06-19 19:02:16 +02:00
}
2018-08-15 14:24:33 +02:00
2022-11-29 18:01:27 +01:00
if ( $allowimportsite ) {
$maxfilesizearray = getMaxFileSizeArray ();
$maxmin = $maxfilesizearray [ 'maxmin' ];
if ( $maxmin > 0 ) {
print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ( $maxmin * 1024 ) . '">' ; // MAX_FILE_SIZE must precede the field type=file
}
print '<input class="flat minwidth400" type="file" name="userfile[]" accept=".zip">' ;
print '<input type="submit" class="button small" name="buttonsubmitimportfile" value="' . dol_escape_htmltag ( $langs -> trans ( " Upload " )) . '">' ;
print '<input type="submit" class="button button-cancel small" name="preview" value="' . dol_escape_htmltag ( $langs -> trans ( " Cancel " )) . '">' ;
print '<br><br><br>' ;
} else {
if ( getDolGlobalString ( 'MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US' )) {
// Show clean corporate message
$message = $langs -> trans ( 'InstallModuleFromWebHasBeenDisabledContactUs' );
} else {
// Show technical generic message
$message = $langs -> trans ( " InstallModuleFromWebHasBeenDisabledByFile " , $dolibarrdataroot . '/installmodules.lock' );
}
print info_admin ( $message ) . '<br><br>' ;
}
2019-08-12 22:19:24 +02:00
print '<span class="opacitymedium">' . $langs -> trans ( " ZipOfWebsitePackageToLoad " ) . '</span><br><br>' ;
showWebsiteTemplates ( $website );
2020-10-27 18:19:31 +01:00
print dol_get_fiche_end ();
2018-08-16 00:03:19 +02:00
print '</div>' ;
print '<br>' ;
2018-08-15 14:24:33 +02:00
}
2018-05-25 17:52:24 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'editmeta' || $action == 'createcontainer' ) { // Edit properties of a web site OR properties of a web page
2017-10-07 13:09:31 +02:00
print '<div class="fiche">' ;
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
print '<br>' ;
2017-07-02 23:38:19 +02:00
2017-09-01 12:19:55 +02:00
/* $h = 0 ;
2017-08-03 01:45:31 +02:00
$head = array ();
2017-10-20 21:39:19 +02:00
$head [ $h ][ 0 ] = dol_buildpath ( '/website/index.php' , 1 ) . '?id=' . $object -> id ;
2017-08-03 01:45:31 +02:00
$head [ $h ][ 1 ] = $langs -> trans ( " AddPage " );
2021-02-26 12:03:07 +01:00
$head [ $h ][ 2 ] = 'card' ;
2017-08-03 01:45:31 +02:00
$h ++ ;
2024-04-03 16:22:16 +02:00
print dol_get_fiche_head ( $head , 'card' , '' , - 1 , 'globe' );
2021-02-26 12:03:07 +01:00
*/
if ( $action == 'createcontainer' ) {
print load_fiche_titre ( $langs -> trans ( " AddPage " ));
}
2017-07-02 23:38:19 +02:00
2017-12-12 01:40:34 +01:00
print '<!-- Edit or create page/container -->' . " \n " ;
2017-10-07 13:09:31 +02:00
//print '<div class="fichecenter">';
2017-08-03 01:45:31 +02:00
2019-10-31 21:09:33 +01:00
$hiddenfromfetchingafterload = ' hideobject' ;
$hiddenmanuallyafterload = ' hideobject' ;
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'radiocreatefrom' ) == 'checkboxcreatefromfetching' ) {
$hiddenfromfetchingafterload = '' ;
}
if ( GETPOST ( 'radiocreatefrom' ) == 'checkboxcreatemanually' ) {
$hiddenmanuallyafterload = '' ;
}
2019-10-31 21:09:33 +01:00
if ( $action == 'editmeta' || empty ( $conf -> use_javascript_ajax )) { // No autohide/show in such case
2019-11-12 00:15:34 +01:00
$hiddenfromfetchingafterload = '' ;
$hiddenmanuallyafterload = '' ;
2019-10-31 21:09:33 +01:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'createcontainer' ) {
2018-02-19 14:56:37 +01:00
print '<br>' ;
2021-02-26 12:03:07 +01:00
if ( ! empty ( $conf -> use_javascript_ajax )) {
print '<input type="radio" name="radiocreatefrom" id="checkboxcreatemanually" value="checkboxcreatemanually"' . ( GETPOST ( 'radiocreatefrom' ) == 'checkboxcreatemanually' ? ' checked' : '' ) . '> ' ;
}
2019-11-24 20:59:17 +01:00
print '<label for="checkboxcreatemanually"><span class="opacitymediumxx">' . $langs -> trans ( " OrEnterPageInfoManually " ) . '</span></label><br>' ;
2019-10-31 21:09:33 +01:00
print '<hr class="tablecheckboxcreatemanually' . $hiddenmanuallyafterload . '">' ;
2017-10-07 13:09:31 +02:00
}
2017-10-01 21:29:49 +02:00
2019-10-31 21:09:33 +01:00
print '<table class="border tableforfield nobackground centpercent tablecheckboxcreatemanually' . $hiddenmanuallyafterload . '">' ;
2017-08-20 19:47:55 +02:00
2021-02-26 12:03:07 +01:00
if ( $action != 'createcontainer' ) {
2020-08-04 02:50:56 +02:00
print '<tr><td class="titlefield fieldrequired">' ;
print $langs -> trans ( 'IDOfPage' ) . ' - ' . $langs -> trans ( 'InternalURLOfPage' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
print $pageid ;
2020-08-04 02:50:56 +02:00
//print '</td></tr>';
2017-10-07 13:09:31 +02:00
2020-08-04 02:50:56 +02:00
//print '<tr><td class="titlefield fieldrequired">';
//print $langs->trans('InternalURLOfPage');
//print '</td><td>';
print ' - ' ;
2024-10-14 01:59:44 +02:00
print '/public/website/index.php?website=' . urlencode ( $websitekey ) . '&pageid=' . urlencode (( string ) $pageid );
2019-10-31 21:09:33 +01:00
//if ($objectpage->grabbed_from) print ' - <span class="opacitymedium">'.$langs->trans('InitiallyGrabbedFrom').' '.$objectpage->grabbed_from.'</span>';
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2019-11-12 00:15:34 +01:00
$type_container = $objectpage -> type_container ;
$pageurl = $objectpage -> pageurl ;
$pagealiasalt = $objectpage -> aliasalt ;
$pagetitle = $objectpage -> title ;
$pagedescription = $objectpage -> description ;
$pageimage = $objectpage -> image ;
$pagekeywords = $objectpage -> keywords ;
$pagelang = $objectpage -> lang ;
2020-11-26 11:09:35 +01:00
$pageallowedinframes = $objectpage -> allowed_in_frames ;
2019-11-12 00:15:34 +01:00
$pagehtmlheader = $objectpage -> htmlheader ;
$pagedatecreation = $objectpage -> date_creation ;
$pagedatemodification = $objectpage -> date_modification ;
$pageauthorid = $objectpage -> fk_user_creat ;
$pageusermodifid = $objectpage -> fk_user_modif ;
2020-03-12 20:50:36 +01:00
$pageauthoralias = $objectpage -> author_alias ;
2021-02-26 12:03:07 +01:00
$pagestatus = $objectpage -> status ;
2022-10-09 17:49:44 +02:00
} else { // $action = 'createcontainer'
2018-06-06 23:12:09 +02:00
$type_container = 'page' ;
2022-09-10 01:21:41 +02:00
$pageurl = '' ;
$pagealiasalt = '' ;
$pagetitle = '' ;
$pagedescription = '' ;
$pageimage = '' ;
$pagekeywords = '' ;
$pagelang = '' ;
$pageallowedinframes = 0 ;
$pagehtmlheader = '' ;
2019-11-12 00:15:34 +01:00
$pagedatecreation = dol_now ();
2022-09-10 01:21:41 +02:00
$pagedatemodification = '' ;
2019-11-12 00:15:34 +01:00
$pageauthorid = $user -> id ;
$pageusermodifid = 0 ;
2020-03-12 20:50:36 +01:00
$pageauthoralias = '' ;
2020-05-14 18:14:55 +02:00
$pagestatus = 1 ;
2019-11-12 00:15:34 +01:00
}
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'WEBSITE_TITLE' , 'alpha' )) {
$pagetitle = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_TITLE' , 'alphanohtml' ));
}
if ( GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' )) {
$pageurl = GETPOST ( 'WEBSITE_PAGENAME' , 'alpha' );
}
if ( GETPOST ( 'WEBSITE_ALIASALT' , 'alpha' )) {
$pagealiasalt = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_ALIASALT' , 'alphanohtml' ));
}
if ( GETPOST ( 'WEBSITE_DESCRIPTION' , 'alpha' )) {
$pagedescription = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_DESCRIPTION' , 'alphanohtml' ));
}
if ( GETPOST ( 'WEBSITE_IMAGE' , 'alpha' )) {
$pageimage = GETPOST ( 'WEBSITE_IMAGE' , 'alpha' );
}
if ( GETPOST ( 'WEBSITE_KEYWORDS' , 'alpha' )) {
$pagekeywords = str_replace ( array ( '<' , '>' ), '' , GETPOST ( 'WEBSITE_KEYWORDS' , 'alphanohtml' ));
}
if ( GETPOST ( 'WEBSITE_LANG' , 'aZ09' )) {
$pagelang = GETPOST ( 'WEBSITE_LANG' , 'aZ09' );
}
if ( GETPOST ( 'WEBSITE_ALLOWED_IN_FRAMES' , 'aZ09' )) {
2024-09-28 11:15:38 +02:00
$pageallowedinframes = GETPOST ( 'WEBSITE_ALLOWED_IN_FRAMES' , 'aZ09' ) ? 1 : 0 ;
2021-02-26 12:03:07 +01:00
}
2024-07-21 14:44:14 +02:00
if ( GETPOST ( 'htmlheader' , 'none' )) { // Must accept tags like '<script>' and '<link>'
2021-02-26 12:03:07 +01:00
$pagehtmlheader = GETPOST ( 'htmlheader' , 'none' );
}
if ( $action != 'createcontainer' ) {
2022-10-09 20:52:50 +02:00
if ( empty ( $conf -> use_javascript_ajax )) {
print '<!-- Status of web site page -->' . " \n " ;
print '<tr><td class="fieldrequired">' ;
print $langs -> trans ( 'Status' );
print '</td><td>' ;
print $form -> selectyesno ( 'status' , $objectpage -> status );
print '</td></tr>' ;
}
2020-08-04 02:50:56 +02:00
}
2020-05-26 00:19:32 +02:00
// Type of container
print '<tr><td class="titlefield fieldrequired">' ;
print $langs -> trans ( 'WEBSITE_TYPE_CONTAINER' );
print '</td><td>' ;
2020-05-26 12:53:58 +02:00
print img_picto ( '' , 'object_technic' , 'class="paddingrightonly"' ) . ' ' ;
2024-05-12 19:21:39 +02:00
print $formwebsite -> selectTypeOfContainer ( 'WEBSITE_TYPE_CONTAINER' , ( GETPOST ( 'WEBSITE_TYPE_CONTAINER' , 'alpha' ) ? GETPOST ( 'WEBSITE_TYPE_CONTAINER' , 'alpha' ) : $type_container ), 0 , '' , 1 , 'minwidth300' );
2020-05-26 00:19:32 +02:00
print '</td></tr>' ;
2024-05-12 12:32:33 +02:00
print ' < script type = " text/javascript " >
jQuery ( document ) . ready ( function () {
jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . change ( function () {
console . log ( " We change type of page : " + jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . val ());
if ( jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == \ ' blogpost\ ' ) {
jQuery ( " .trpublicauthor " ) . show ();
} else {
jQuery ( " .trpublicauthor " ) . hide ();
}
2024-05-21 20:13:39 +02:00
if ( jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == \ ' service\ ' || jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == \ ' library\ ' ) {
2024-06-27 09:20:04 +02:00
$ ( " .spanprefix " ) . html ( " _ " + $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () + " _ " );
2024-05-21 20:13:39 +02:00
jQuery ( " .spanprefix " ) . show ();
} else {
jQuery ( " .spanprefix " ) . hide ();
}
2024-05-12 12:32:33 +02:00
});
2024-09-12 03:28:17 +02:00
// Force at init execution a first time of the handler change
jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . trigger ( \ ' change\ ' );
2024-05-12 12:32:33 +02:00
});
</ script >
' ;
2018-05-15 11:36:39 +02:00
// Title
print '<tr><td class="fieldrequired">' ;
print $langs -> trans ( 'WEBSITE_TITLE' );
print '</td><td>' ;
2019-10-31 21:09:33 +01:00
print '<input type="text" class="flat quatrevingtpercent" name="WEBSITE_TITLE" id="WEBSITE_TITLE" value="' . dol_escape_htmltag ( $pagetitle ) . '" autofocus>' ;
2018-05-15 11:36:39 +02:00
print '</td></tr>' ;
2024-04-20 20:12:32 +02:00
// Alias page
2018-02-28 14:36:22 +01:00
print '<tr><td class="titlefieldcreate fieldrequired">' ;
print $langs -> trans ( 'WEBSITE_PAGENAME' );
2017-12-02 13:24:21 +01:00
print '</td><td>' ;
2024-05-21 20:13:39 +02:00
print '<span class="opacitymedium spanprefix hidden"></span> ' ;
2024-06-27 09:20:04 +02:00
print '<input type="text" class="flat minwidth300" name="WEBSITE_PAGENAME" id="WEBSITE_PAGENAME" value="' . dol_escape_htmltag (( string ) preg_replace ( '/^_[a-z]+_/' , '' , ( string ) $pageurl )) . '">' ;
2017-12-02 13:24:21 +01:00
print '</td></tr>' ;
2024-05-21 20:13:39 +02:00
print ' < script type = " text/javascript " >
$ ( document ) . ready ( function () {
2024-06-27 09:20:04 +02:00
console . log ( " Manage prefix for service or library " );
2024-05-21 20:13:39 +02:00
if ( $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == " service " || $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == " library " ) {
2024-06-27 09:20:04 +02:00
$ ( " .spanprefix " ) . html ( " _ " + $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () + " _ " );
2024-05-21 20:13:39 +02:00
$ ( " .spanprefix " ) . show ();
}
$ ( " .websiteformtoolbar " ) . on ( " submit " , function ( event ) {
if ( $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == " service " || $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == " library " ) {
2024-06-27 09:20:04 +02:00
var prefix = " _ " + $ ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () + " _ " ;
2024-05-21 20:13:39 +02:00
var userInput = $ ( " #WEBSITE_PAGENAME " ) . val ();
var $inputField = $ ( " #WEBSITE_PAGENAME " );
if ( userInput . indexOf ( prefix ) !== 0 ) {
$inputField . val ( prefix + userInput );
}
}
});
});
</ script >
' ;
2020-05-26 00:19:32 +02:00
print '<tr><td class="titlefieldcreate">' ;
$htmlhelp = $langs -> trans ( " WEBSITE_ALIASALTDesc " );
print $form -> textwithpicto ( $langs -> trans ( 'WEBSITE_ALIASALT' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'aliastooltip' );
2018-02-20 18:10:11 +01:00
print '</td><td>' ;
2020-05-26 00:19:32 +02:00
print '<input type="text" class="flat minwidth500" name="WEBSITE_ALIASALT" value="' . dol_escape_htmltag ( $pagealiasalt ) . '">' ;
2018-02-20 18:10:11 +01:00
print '</td></tr>' ;
2017-10-07 13:09:31 +02:00
print '<tr><td>' ;
print $langs -> trans ( 'WEBSITE_DESCRIPTION' );
print '</td><td>' ;
print '<input type="text" class="flat quatrevingtpercent" name="WEBSITE_DESCRIPTION" value="' . dol_escape_htmltag ( $pagedescription ) . '">' ;
print '</td></tr>' ;
2024-04-20 20:12:32 +02:00
// Deprecated. Image for RSS or Thumbs must be taken from the content.
if ( getDolGlobalInt ( 'WEBSITE_MANAGE_IMAGE_FOR_PAGES' )) {
print '<tr class="trimageforpage hidden"><td>' ;
$htmlhelp = $langs -> trans ( " WEBSITE_IMAGEDesc " );
print $form -> textwithpicto ( $langs -> trans ( 'WEBSITE_IMAGE' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'imagetooltip' );
print '</td><td>' ;
print '<input type="text" class="flat quatrevingtpercent" name="WEBSITE_IMAGE" value="' . dol_escape_htmltag ( $pageimage ) . '">' ;
print '</td></tr>' ;
print ' < script type = " text/javascript " >
jQuery ( document ) . ready ( function () {
jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . change ( function () {
console . log ( " We change type of page : " + jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . val ());
if ( jQuery ( " #selectWEBSITE_TYPE_CONTAINER " ) . val () == \ ' blogpost\ ' ) {
jQuery ( " .trimageforpage " ) . show ();
} else {
jQuery ( " .trimageforpage " ) . hide ();
}
});
});
</ script >
' ;
}
2018-11-20 16:48:34 +01:00
2020-06-08 15:03:10 +02:00
// Keywords
2017-10-07 13:09:31 +02:00
print '<tr><td>' ;
2020-06-08 15:03:10 +02:00
$htmlhelp = $langs -> trans ( " WEBSITE_KEYWORDSDesc " );
print $form -> textwithpicto ( $langs -> trans ( 'WEBSITE_KEYWORDS' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'keywordtooltip' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
print '<input type="text" class="flat quatrevingtpercent" name="WEBSITE_KEYWORDS" value="' . dol_escape_htmltag ( $pagekeywords ) . '">' ;
print '</td></tr>' ;
print '<tr><td>' ;
print $langs -> trans ( 'Language' );
print '</td><td>' ;
2020-02-20 01:08:53 +01:00
$onlykeys = array ();
2021-02-26 12:03:07 +01:00
if ( $object -> lang ) {
$onlykeys [ $object -> lang ] = $object -> lang ;
} else {
$onlykeys [ $langs -> defaultlang ] = $langs -> defaultlang ;
}
2020-02-20 01:08:53 +01:00
if ( $object -> otherlang ) {
$tmparray = explode ( ',' , $object -> otherlang );
2020-02-21 17:53:37 +01:00
foreach ( $tmparray as $key ) {
2020-02-20 01:08:53 +01:00
$tmpkey = trim ( $key );
if ( strlen ( $key ) == 2 ) {
2020-02-21 11:36:16 +01:00
$tmpkey = strtolower ( $key );
2020-02-20 01:08:53 +01:00
}
$onlykeys [ $tmpkey ] = $tmpkey ;
}
}
if ( empty ( $object -> lang ) && empty ( $object -> otherlang )) {
2020-02-21 17:53:37 +01:00
$onlykeys = null ; // We keep full list of languages
2020-02-20 01:08:53 +01:00
}
2024-10-14 01:59:44 +02:00
print img_picto ( '' , 'language' , 'class="pictofixedwidth"' ) . $formadmin -> select_language ( $pagelang ? $pagelang : '' , 'WEBSITE_LANG' , 0 , array (), '1' , 0 , 0 , 'minwidth200' , 0 , 0 , 0 , $onlykeys , 1 );
2020-02-20 01:08:53 +01:00
$htmltext = $langs -> trans ( " AvailableLanguagesAreDefinedIntoWebsiteProperties " );
print $form -> textwithpicto ( '' , $htmltext );
2017-10-07 13:09:31 +02:00
print '</td></tr>' ;
2019-10-31 21:09:33 +01:00
// Translation of
2019-11-12 00:15:34 +01:00
$translationof = 0 ;
$translatedby = 0 ;
2019-10-31 21:09:33 +01:00
print '<!-- Translation of --><tr><td>' ;
print $langs -> trans ( 'TranslationLinks' );
print '</td><td>' ;
2021-02-26 12:03:07 +01:00
if ( $action != 'createcontainer' ) {
2018-10-14 18:44:29 +02:00
// Has translation pages
2021-09-30 15:59:47 +02:00
$sql = " SELECT rowid, lang from " . MAIN_DB_PREFIX . " website_page where fk_page = " . (( int ) $objectpage -> id );
2018-10-14 18:44:29 +02:00
$resql = $db -> query ( $sql );
2021-02-26 12:03:07 +01:00
if ( $resql ) {
2018-10-14 18:44:29 +02:00
$num_rows = $db -> num_rows ( $resql );
2021-02-26 12:03:07 +01:00
if ( $num_rows > 0 ) {
2019-11-16 12:54:05 +01:00
print '<span class="opacitymedium">' . $langs -> trans ( 'ThisPageHasTranslationPages' ) . ':</span>' ;
2019-11-12 00:15:34 +01:00
$i = 0 ;
2019-11-16 12:17:37 +01:00
$tmppage = new WebsitePage ( $db );
2019-11-16 12:54:05 +01:00
$tmpstring = '' ;
2021-02-26 12:03:07 +01:00
while ( $obj = $db -> fetch_object ( $resql )) {
2019-11-16 12:17:37 +01:00
$result = $tmppage -> fetch ( $obj -> rowid );
if ( $result > 0 ) {
2021-02-26 12:03:07 +01:00
if ( $i > 0 ) {
$tmpstring .= '<br>' ;
}
2024-03-14 10:29:36 +01:00
$tmpstring .= $tmppage -> getNomUrl ( 1 ) . ' ' . picto_from_langcode ( $tmppage -> lang ) . ' ' . $tmppage -> lang ;
// Button unlink
$tmpstring .= ' <a class="paddingleft" href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( $object -> ref ) . '&pageid=' . (( int ) $objectpage -> id ) . '&action=deletelang&token=' . newToken () . '&deletelangforid=' . (( int ) $tmppage -> id ) . '">' . img_picto ( $langs -> trans ( " Remove " ), 'unlink' ) . '</a>' ;
2019-11-16 12:17:37 +01:00
$translatedby ++ ;
$i ++ ;
}
2018-10-14 18:44:29 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $i > 1 ) {
print '<br>' ;
} else {
print ' ' ;
}
2019-11-16 12:54:05 +01:00
print $tmpstring ;
2018-10-14 18:44:29 +02:00
}
2021-02-26 12:03:07 +01:00
} else {
dol_print_error ( $db );
2018-10-14 18:44:29 +02:00
}
}
2024-03-14 10:29:36 +01:00
if (( empty ( $translatedby ) || ( $objectpage -> lang != $object -> lang )) && ( $action == 'editmeta' || $action == 'createcontainer' || $objectpage -> fk_page > 0 )) {
2019-11-12 00:15:34 +01:00
$sourcepage = new WebsitePage ( $db );
2024-03-14 10:29:36 +01:00
$result = 1 ;
if ( $objectpage -> fk_page > 0 ) {
$result = $sourcepage -> fetch ( $objectpage -> fk_page );
if ( $result == 0 ) {
// not found, we can reset value to clean database
// TODO
}
}
if ( $result >= 0 ) {
if ( $translatedby ) {
print '<br>' ;
}
2019-11-16 12:43:32 +01:00
$translationof = $objectpage -> fk_page ;
2019-10-31 21:27:25 +01:00
print '<span class="opacitymedium">' . $langs -> trans ( 'ThisPageIsTranslationOf' ) . '</span> ' ;
2024-03-14 10:29:36 +01:00
print $sourcepage -> getNomUrl ( 2 ) . ' ' . $formwebsite -> selectContainer ( $website , 'pageidfortranslation' , ( $translationof ? $translationof : - 1 ), 1 , $action , 'minwidth300' , array ( $objectpage -> id ));
2020-12-19 13:03:40 +01:00
if ( $translationof > 0 && $sourcepage -> lang ) {
2024-03-14 10:29:36 +01:00
print picto_from_langcode ( $sourcepage -> lang ) . ' ' . $sourcepage -> lang ;
// Button unlink
print ' <a class="paddingleft" href="' . $_SERVER [ " PHP_SELF " ] . '?website=' . urlencode ( $object -> ref ) . '&pageid=' . (( int ) $objectpage -> id ) . '&action=deletelang&token=' . newToken () . '&deletelangforid=' . (( int ) $objectpage -> id ) . '">' . img_picto ( $langs -> trans ( " Remove " ), 'unlink' ) . '</a>' ;
2019-11-16 12:54:05 +01:00
}
2019-10-31 21:27:25 +01:00
}
}
2019-10-31 21:09:33 +01:00
print '</td></tr>' ;
2018-10-14 18:44:29 +02:00
2020-05-26 00:19:32 +02:00
// Categories
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' ) && $user -> hasRight ( 'categorie' , 'lire' )) {
2020-05-26 00:19:32 +02:00
$langs -> load ( 'categories' );
2020-10-31 14:32:18 +01:00
if ( ! GETPOSTISSET ( 'categories' )) {
2020-05-26 00:19:32 +02:00
$c = new Categorie ( $db );
$cats = $c -> containing ( $objectpage -> id , Categorie :: TYPE_WEBSITE_PAGE );
$arrayselected = array ();
2020-07-02 03:48:32 +02:00
if ( is_array ( $cats )) {
foreach ( $cats as $cat ) {
$arrayselected [] = $cat -> id ;
}
2020-05-26 00:19:32 +02:00
}
2024-05-12 18:59:21 +02:00
//$cate_arbo = $form->select_all_categories(Categorie::TYPE_WEBSITE_PAGE, '', '', 0, 0, 3);
$cate_arbo = $form -> select_all_categories ( Categorie :: TYPE_WEBSITE_PAGE , '' , 'parent' , 0 , 0 , 3 );
2020-05-26 00:19:32 +02:00
}
2020-12-19 13:03:40 +01:00
print '<tr><td class="toptd">' . $form -> editfieldkey ( 'Categories' , 'categories' , '' , $objectpage , 0 ) . '</td><td>' ;
2022-01-30 01:43:53 +01:00
print img_picto ( '' , 'category' , 'class="pictofixedwidth"' );
2024-10-14 01:59:44 +02:00
print $form -> multiselectarray ( 'categories' , $cate_arbo , ( GETPOSTISSET ( 'categories' ) ? GETPOST ( 'categories' , 'array' ) : $arrayselected ), 0 , 0 , 'minwidth200 widthcentpercentminusxx' );
2024-04-05 14:45:34 +02:00
print dolButtonToOpenUrlInDialogPopup ( 'categories' , $langs -> transnoentitiesnoconv ( " Categories " ), img_picto ( '' , 'add' ), '/categories/index.php?leftmenu=website&nosearch=1&type=' . urlencode ( Categorie :: TYPE_WEBSITE_PAGE ) . '&website=' . urlencode ( $website -> ref ), $disabled );
2020-05-26 00:19:32 +02:00
print " </td></tr> " ;
}
2023-11-27 12:08:48 +01:00
if ( getDolGlobalString ( 'WEBSITE_PAGE_SHOW_INTERNAL_LINKS_TO_OBJECT' )) { // TODO Replace this with link into element_element ?
2020-11-26 11:09:35 +01:00
print '<tr><td class="titlefieldcreate">' ;
print 'ObjectClass' ;
print '</td><td>' ;
print '<input type="text" class="flat minwidth300" name="WEBSITE_OBJECTCLASS" placeholder="ClassName::/path/class/ObjectClass.class.php" >' ;
print '</td></tr>' ;
2020-09-28 18:17:23 +02:00
2020-11-26 11:09:35 +01:00
print '<tr><td class="titlefieldcreate">' ;
print 'ObjectID' ;
print '</td><td>' ;
print '<input type="text" class="flat minwidth300" name="WEBSITE_OBJECTID" >' ;
print '</td></tr>' ;
}
2018-02-28 14:36:22 +01:00
2019-11-12 00:15:34 +01:00
$fuser = new User ( $db );
2018-09-24 17:12:51 +02:00
2024-05-12 12:20:00 +02:00
// Date last modification
2021-02-26 12:03:07 +01:00
if ( $action != 'createcontainer' ) {
2020-10-07 15:01:28 +02:00
print '<tr><td>' ;
2024-04-20 20:12:32 +02:00
print $langs -> trans ( 'DateLastModification' );
2020-10-07 15:01:28 +02:00
print '</td><td>' ;
2024-04-20 20:12:32 +02:00
print dol_print_date ( $pagedatemodification , 'dayhour' , 'tzuser' );
2020-10-07 15:01:28 +02:00
print '</td></tr>' ;
2019-01-15 10:53:28 +01:00
2020-10-07 15:01:28 +02:00
print '<tr><td>' ;
2024-04-20 20:12:32 +02:00
print $langs -> trans ( 'UserModification' );
2018-09-24 17:12:51 +02:00
print '</td><td>' ;
2024-04-20 20:12:32 +02:00
if ( $pageusermodifid > 0 ) {
$fuser -> fetch ( $pageusermodifid );
print $fuser -> getNomUrl ( - 1 );
} else {
print '<span class="opacitymedium">' . $langs -> trans ( " Unknown " ) . '</span>' ;
}
2018-09-24 17:12:51 +02:00
print '</td></tr>' ;
}
2024-05-12 12:20:00 +02:00
// Content - Example/templates of page
2024-05-12 19:21:39 +02:00
$url = 'https://wiki.dolibarr.org/index.php/Module_Website' ;
2024-05-12 18:59:21 +02:00
$htmltext = '<small>' ;
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource " , $url );
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource1 " , $url );
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource2 " , $url );
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource3 " , $url );
2024-10-02 11:29:52 +02:00
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSource4 " , $url );
2024-05-12 18:59:21 +02:00
$htmltext .= $langs -> transnoentitiesnoconv ( " YouCanEditHtmlSourceMore " , $url );
$htmltext .= '<br>' ;
$htmltext .= '</small>' ;
2024-05-12 12:20:00 +02:00
$formmail = new FormMail ( $db );
$formmail -> withaiprompt = 'html' ;
2024-10-14 23:38:14 +02:00
$formmail -> withlayout = 'websitepage' ;
2024-05-12 12:20:00 +02:00
$showlinktolayout = $formmail -> withlayout ;
$showlinktoai = ( $formmail -> withaiprompt && isModEnabled ( 'ai' )) ? 'textgenerationwebpage' : '' ;
2024-06-22 16:01:56 +02:00
if (( $action == 'createcontainer' && $showlinktolayout ) || ( $action == 'createcontainer' && $showlinktoai )) {
2024-05-12 12:20:00 +02:00
print '<tr><td class="titlefield tdtop">' ;
if ( $conf -> browser -> layout == 'phone' ) {
print $form -> textwithpicto ( '' , $htmltext , 1 , 'help' , 'inline-block' , 1 , 2 , 'tooltipsubstitution' );
} else {
//img_help(($tooltiptrigger != '' ? 2 : 1), $alt)
print $form -> textwithpicto ( $langs -> trans ( " PreviewPageContent " ) . ' ' . img_help ( 2 , $langs -> trans ( " PreviewPageContent " )), $htmltext , 1 , 'none' , 'inline-block' , 1 , 2 , 'tooltipsubstitution' );
}
print '</td><td class="tdtop">' ;
$out = '' ;
$showlinktolayoutlabel = $langs -> trans ( " FillPageWithALayout " );
$showlinktoailabel = $langs -> trans ( " FillPageWithAIContent " );
$htmlname = 'content' ;
// Fill $out
include DOL_DOCUMENT_ROOT . '/core/tpl/formlayoutai.tpl.php' ;
print $out ;
print '</td></tr>' ;
2024-04-20 20:12:32 +02:00
}
2024-05-12 12:20:00 +02:00
2024-05-12 19:21:39 +02:00
if ( $action == 'createcontainer' ) {
print '<tr id="pageContent"><td class="tdtop">' ;
if ( ! $showlinktolayout || ! $showlinktoai ) {
if ( $conf -> browser -> layout == 'phone' ) {
print $form -> textwithpicto ( '' , $htmltext , 1 , 'help' , 'inline-block' , 1 , 2 , 'tooltipsubstitution' );
} else {
//img_help(($tooltiptrigger != '' ? 2 : 1), $alt)
print $form -> textwithpicto ( $langs -> trans ( " PreviewPageContent " ) . ' ' . img_help ( 2 , $langs -> trans ( " PreviewPageContent " )), $htmltext , 1 , 'none' , 'inline-block' , 1 , 2 , 'tooltipsubstitution' );
}
2024-05-12 18:59:21 +02:00
}
2024-05-12 19:21:39 +02:00
print '</td><td>' ;
//$doleditor = new DolEditor('content', GETPOST('content', 'restricthtmlallowunvalid'), '', 200, 'dolibarr_mailings', 'In', true, true, true, 40, '90%');
2024-06-06 11:09:43 +02:00
$doleditor = new DolEditor ( 'content' , GETPOST ( 'content' , 'none' ), '' , 200 , 'dolibarr_mailings' , 'In' , true , true , true , 40 , '90%' );
2024-05-12 19:21:39 +02:00
$doleditor -> Create ();
print '</div>' ;
print '</td></tr>' ;
2024-05-12 18:59:21 +02:00
}
2024-03-21 03:47:16 +01:00
2024-04-20 20:12:32 +02:00
// Date creation
print '<tr><td>' ;
print $langs -> trans ( 'DateCreation' );
print '</td><td>' ;
print $form -> selectDate ( $pagedatecreation , 'datecreation' , 1 , 1 , 0 , '' , 1 , 1 );
//print dol_print_date($pagedatecreation, 'dayhour');
print '</td></tr>' ;
// Author
print '<tr><td>' ;
print $langs -> trans ( 'Author' );
print '</td><td>' ;
if ( $pageauthorid > 0 ) {
$fuser -> fetch ( $pageauthorid );
print $fuser -> getNomUrl ( - 1 );
} else {
print '<span class="opacitymedium">' . $langs -> trans ( " Unknown " ) . '</span>' ;
}
print '</td></tr>' ;
// Author - public alias
2024-05-12 12:32:33 +02:00
print '<tr class="trpublicauthor hidden"><td>' ;
2024-04-20 20:12:32 +02:00
print $langs -> trans ( 'PublicAuthorAlias' );
print '</td><td>' ;
print '<input type="text" class="flat minwidth300" name="WEBSITE_AUTHORALIAS" value="' . dol_escape_htmltag ( $pageauthoralias ) . '" placeholder="Anonymous">' ;
print '</td></tr>' ;
2017-12-10 19:03:18 +01:00
print '<tr><td class="tdhtmlheader tdtop">' ;
2019-11-12 00:15:34 +01:00
$htmlhelp = $langs -> trans ( " EditTheWebSiteForACommonHeader " ) . '<br><br>' ;
$htmlhelp .= $langs -> trans ( " Example " ) . ' :<br>' ;
2024-09-12 03:17:22 +02:00
$htmlhelp .= dol_nl2br ( dol_htmlentities ( $htmlheadercontentdefault )); // do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
print $form -> textwithpicto ( $langs -> transnoentitiesnoconv ( 'HtmlHeaderPage' ), $htmlhelp , 1 , 'help' , '' , 0 , 2 , 'htmlheadertooltip' );
2017-10-07 13:09:31 +02:00
print '</td><td>' ;
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'htmlheader_x' ), 'y' => GETPOST ( 'htmlheader_y' ));
2024-08-01 10:52:53 +02:00
$doleditor = new DolEditor ( 'htmlheader' , $pagehtmlheader , '' , 120 , 'ace' , 'In' , true , false , 'ace' , ROWS_3 , '100%' , 0 , $poscursor );
2017-10-07 13:09:31 +02:00
print $doleditor -> Create ( 1 , '' , true , 'HTML Header' , 'html' );
print '</td></tr>' ;
2016-04-27 09:41:42 +02:00
2024-03-24 05:23:06 +01:00
// Allowed in frames
print '<tr><td>' ;
print $langs -> trans ( 'AllowedInFrames' );
//$htmlhelp = $langs->trans("AllowedInFramesDesc");
//print $form->textwithpicto($langs->trans('AllowedInFrames'), $htmlhelp, 1, 'help', '', 0, 2, 'allowedinframestooltip');
print '</td><td>' ;
print '<input type="checkbox" class="flat" name="WEBSITE_ALLOWED_IN_FRAMES" value="1"' . ( $pageallowedinframes ? 'checked="checked"' : '' ) . '>' ;
print '</td></tr>' ;
2017-10-07 13:09:31 +02:00
print '</table>' ;
2022-10-09 17:49:44 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'createcontainer' ) {
2019-10-31 21:09:33 +01:00
print '<div class="center tablecheckboxcreatemanually' . $hiddenmanuallyafterload . '">' ;
2017-08-20 18:50:51 +02:00
2022-01-30 01:58:29 +01:00
print '<input type="submit" class="button small" name="addcontainer" value="' . $langs -> trans ( " Create " ) . '">' ;
print '<input class="button button-cancel small" type="submit" name="preview" value="' . $langs -> trans ( " Cancel " ) . '">' ;
2017-08-20 18:50:51 +02:00
2017-10-07 13:09:31 +02:00
print '</div>' ;
2022-01-30 01:43:53 +01:00
print '<br>' ;
if ( ! empty ( $conf -> use_javascript_ajax )) {
print '<input type="radio" name="radiocreatefrom" id="checkboxcreatefromfetching" value="checkboxcreatefromfetching"' . ( GETPOST ( 'radiocreatefrom' ) == 'checkboxcreatefromfetching' ? ' checked' : '' ) . '> ' ;
}
print '<label for="checkboxcreatefromfetching"><span class="opacitymediumxx">' . $langs -> trans ( " CreateByFetchingExternalPage " ) . '</span></label><br>' ;
print '<hr class="tablecheckboxcreatefromfetching' . $hiddenfromfetchingafterload . '">' ;
print '<table class="tableforfield centpercent tablecheckboxcreatefromfetching' . $hiddenfromfetchingafterload . '">' ;
print '<tr><td class="titlefield">' ;
print $langs -> trans ( " URL " );
print '</td><td>' ;
print info_admin ( $langs -> trans ( " OnlyEditionOfSourceForGrabbedContentFuture " ), 0 , 0 , 'warning' );
print '<input class="flat minwidth500" type="text" name="externalurl" value="' . dol_escape_htmltag ( GETPOST ( 'externalurl' , 'alpha' )) . '" placeholder="https://externalsite/pagetofetch"> ' ;
print '<br><input class="flat paddingtop" type="checkbox" name="grabimages" value="1" checked="checked"> ' . $langs -> trans ( " GrabImagesInto " );
print ' ' ;
print $langs -> trans ( " ImagesShouldBeSavedInto " ) . ' ' ;
2024-02-23 16:54:23 +01:00
$arraygrabimagesinto = array ( 'root' => $langs -> trans ( " WebsiteRootOfImages " ), 'subpage' => $langs -> trans ( " SubdirOfPage " ));
2022-01-30 01:43:53 +01:00
print $form -> selectarray ( 'grabimagesinto' , $arraygrabimagesinto , GETPOSTISSET ( 'grabimagesinto' ) ? GETPOST ( 'grabimagesinto' ) : 'root' , 0 , 0 , 0 , '' , 0 , 0 , 0 , '' , '' , 1 );
print '<br>' ;
2022-10-09 17:49:44 +02:00
print '<input class="button small" style="margin-top: 5px" type="submit" name="fetchexternalurl" value="' . dol_escape_htmltag ( $langs -> trans ( " FetchAndCreate " )) . '">' ;
print '<input class="button button-cancel small" type="submit" name="preview" value="' . $langs -> trans ( " Cancel " ) . '">' ;
2022-01-30 01:43:53 +01:00
print '</td></tr>' ;
print '</table>' ;
2017-10-07 13:09:31 +02:00
}
2017-08-20 18:50:51 +02:00
2021-02-26 12:03:07 +01:00
if ( $action == 'createcontainer' ) {
2021-11-29 15:09:18 +01:00
print ' < script type = " text/javascript " >
2018-06-07 19:12:18 +02:00
jQuery ( document ) . ready ( function () {
var disableautofillofalias = 0 ;
2022-01-30 01:43:53 +01:00
var selectedm = \ ' \ ' ;
var selectedf = \ ' \ ' ;
2024-04-20 20:12:32 +02:00
2018-06-07 19:12:18 +02:00
jQuery ( " #WEBSITE_TITLE " ) . keyup ( function () {
2024-04-24 11:36:14 +02:00
if ( disableautofillofalias == 0 ) {
2019-08-15 16:58:36 +02:00
var valnospecial = jQuery ( " #WEBSITE_TITLE " ) . val ();
valnospecial = valnospecial . replace ( / [ éèê ] / g , \ ' e\ ' ) . replace ( / [ à ] / g , \ ' a\ ' ) . replace ( / [ ù ] / g , \ ' u\ ' ) . replace ( / [ î ] / g , \ ' i\ ' );
valnospecial = valnospecial . replace ( / [ ç ] / g , \ ' c\ ' ) . replace ( / [ ö ] / g , \ ' o\ ' );
valnospecial = valnospecial . replace ( / [ ^ \w ] / gi , \ ' - \ ' ) . toLowerCase ();
2018-06-07 19:12:18 +02:00
valnospecial = valnospecial . replace ( / \ -+/ g , \ ' - \ ' ) . replace ( / \ - $ / , \ ' \ ' );
console . log ( " disableautofillofalias=0 so we replace WEBSITE_TITLE with " + valnospecial );
jQuery ( " #WEBSITE_PAGENAME " ) . val ( valnospecial );
}
});
jQuery ( " #WEBSITE_PAGENAME " ) . keyup ( function () {
2024-04-24 11:36:14 +02:00
if ( jQuery ( " #WEBSITE_PAGENAME " ) . val () == \ ' \ ' ) {
disableautofillofalias = 0 ;
} else {
disableautofillofalias = 1 ;
}
});
jQuery ( " #WEBSITE_PAGENAME " ) . blur ( function () {
if ( jQuery ( " #WEBSITE_PAGENAME " ) . val () == \ ' \ ' ) {
disableautofillofalias = 0 ;
jQuery ( " #WEBSITE_TITLE " ) . trigger ( \ ' keyup\ ' );
}
2018-06-07 19:12:18 +02:00
});
2019-10-31 21:09:33 +01:00
2022-01-30 01:43:53 +01:00
jQuery ( " #checkboxcreatefromfetching,#checkboxcreatemanually " ) . click ( function () {
console . log ( " we select a method to create a new container " + jQuery ( " #checkboxcreatefromfetching:checked " ) . val ())
jQuery ( " .tablecheckboxcreatefromfetching " ) . hide ();
jQuery ( " .tablecheckboxcreatemanually " ) . hide ();
if ( typeof ( jQuery ( " #checkboxcreatefromfetching:checked " ) . val ()) != \ ' undefined\ ' ) {
2024-03-24 05:23:06 +01:00
console . log ( " show create from spider form " );
2022-01-30 01:43:53 +01:00
if ( selectedf != \ ' createfromfetching\ ' ) {
jQuery ( " .tablecheckboxcreatefromfetching " ) . show ();
selectedf = \ ' createfromfetching\ ' ;
selectedm = \ ' \ ' ;
} else {
jQuery ( " .tablecheckboxcreatefromfetching " ) . hide ();
selectedf = \ ' \ ' ;
}
2019-10-31 21:09:33 +01:00
}
2022-01-30 01:43:53 +01:00
if ( typeof ( jQuery ( " #checkboxcreatemanually:checked " ) . val ()) != \ ' undefined\ ' ) {
2024-03-24 05:23:06 +01:00
console . log ( " show create from scratch or template form " );
2022-01-30 01:43:53 +01:00
if ( selectedm != \ ' createmanually\ ' ) {
jQuery ( " .tablecheckboxcreatemanually " ) . show ();
selectedm = \ ' createmanually\ ' ;
selectedf = \ ' \ ' ;
} else {
jQuery ( " .tablecheckboxcreatemanually " ) . hide ();
selectedm = \ ' \ ' ;
}
2019-10-31 21:09:33 +01:00
}
});
2018-06-07 19:12:18 +02:00
});
</ script > ' ;
}
2017-08-03 01:45:31 +02:00
//print '</div>';
2016-04-27 09:41:42 +02:00
2020-10-27 18:19:31 +01:00
//print dol_get_fiche_end();
2016-04-27 09:41:42 +02:00
2017-10-07 13:09:31 +02:00
print '</div>' ;
2016-04-27 09:41:42 +02:00
2017-10-07 13:09:31 +02:00
print '<br>' ;
2016-04-19 11:02:55 +02:00
}
2021-03-01 09:03:38 +01:00
2021-02-11 10:05:40 +01:00
// Print formconfirm
2021-03-02 14:55:42 +01:00
if ( $action == 'preview' ) {
2021-02-11 10:06:39 +01:00
print $formconfirm ;
2021-02-10 09:11:53 +01:00
}
2021-04-09 15:44:47 +02:00
if ( $action == 'editfile' || $action == 'file_manager' || $action == 'convertimgwebp' || $action == 'confirmconvertimgwebp' ) {
2017-10-07 13:09:31 +02:00
print '<!-- Edit Media -->' . " \n " ;
2019-05-28 16:10:11 +02:00
print '<div class="fiche"><br>' ;
2021-06-19 23:52:52 +02:00
2017-11-05 02:04:05 +01:00
$module = 'medias' ;
2024-05-14 02:01:39 +02:00
$formalreadyopen = 2 ; // So the form to submit a new file will not be open another time inside the core/tpl/filemanager.tpl.php
2021-02-26 12:03:07 +01:00
if ( empty ( $url )) {
$url = DOL_URL_ROOT . '/website/index.php' ; // Must be an url without param
}
2017-11-19 12:22:01 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/filemanager.tpl.php' ;
2017-11-18 13:09:12 +01:00
print '</div>' ;
2016-05-01 16:34:50 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editmenu' ) {
2017-10-07 13:09:31 +02:00
print '<!-- Edit Menu -->' . " \n " ;
print '<div class="center">' . $langs -> trans ( " FeatureNotYetAvailable " ) . '</center>' ;
2016-04-19 11:02:55 +02:00
}
2021-02-26 12:03:07 +01:00
if ( $action == 'editsource' ) {
2018-09-24 15:14:32 +02:00
// Editing with source editor
2017-07-22 20:19:10 +02:00
$contentforedit = '' ;
2018-09-24 15:14:32 +02:00
//$contentforedit.='<style scoped>'."\n"; // "scoped" means "apply to parent element only". Not yet supported by browsers
//$contentforedit.=$csscontent;
//$contentforedit.='</style>'."\n";
2017-07-22 20:19:10 +02:00
$contentforedit .= $objectpage -> content ;
2018-09-24 15:14:32 +02:00
//var_dump($_SESSION["dol_screenheight"]);
2019-11-12 00:15:34 +01:00
$maxheightwin = 480 ;
2021-02-26 12:03:07 +01:00
if ( isset ( $_SESSION [ " dol_screenheight " ])) {
if ( $_SESSION [ " dol_screenheight " ] > 680 ) {
$maxheightwin = $_SESSION [ " dol_screenheight " ] - 400 ;
}
if ( $_SESSION [ " dol_screenheight " ] > 800 ) {
$maxheightwin = $_SESSION [ " dol_screenheight " ] - 490 ;
}
2018-09-24 15:14:32 +02:00
}
2022-02-27 14:46:40 +01:00
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'PAGE_CONTENT_x' ), 'y' => GETPOST ( 'PAGE_CONTENT_y' ));
2017-07-22 20:19:10 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php' ;
2022-02-27 14:46:40 +01:00
$doleditor = new DolEditor ( 'PAGE_CONTENT' , $contentforedit , '' , $maxheightwin , 'Full' , '' , true , true , 'ace' , ROWS_5 , '40%' , 0 , $poscursor );
2017-07-22 20:46:02 +02:00
$doleditor -> Create ( 0 , '' , false , 'HTML Source' , 'php' );
2017-07-22 20:19:10 +02:00
}
2023-03-27 20:54:07 +02:00
if ( $action == 'editcontent' ) {
2018-09-24 15:14:32 +02:00
// Editing with default ckeditor
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
$contentforedit = '' ;
2018-09-24 15:14:32 +02:00
//$contentforedit.='<style scoped>'."\n"; // "scoped" means "apply to parent element only". Not yet supported by browsers
2021-02-26 12:03:07 +01:00
//$contentforedit.=$csscontent;
//$contentforedit.='</style>'."\n";
2017-10-07 13:09:31 +02:00
$contentforedit .= $objectpage -> content ;
2017-07-02 23:38:19 +02:00
2023-03-27 20:54:07 +02:00
$nbrep = array ();
2024-08-28 19:40:29 +02:00
// If contentforedit has a string <img src="xxx", we replace the xxx with /viewimage.php?modulepart=medias&file=xxx except if xxx starts
// with http, /viewimage.php or DOL_URL_ROOT./viewimage.phps
$contentforedit = preg_replace ( '/(<img.*\ssrc=")(?!http|\/viewimage\.php|' . preg_quote ( DOL_URL_ROOT , '/' ) . '\/viewimage\.php)/' , '\1' . DOL_URL_ROOT . '/viewimage.php?modulepart=medias&file=' , $contentforedit , - 1 , $nbrep );
2017-08-21 03:13:44 +02:00
2017-10-07 13:09:31 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php' ;
2024-02-23 16:54:23 +01:00
$poscursor = array ( 'x' => GETPOST ( 'PAGE_CONTENT_x' ), 'y' => GETPOST ( 'PAGE_CONTENT_y' ));
$doleditor = new DolEditor ( 'PAGE_CONTENT' , $contentforedit , '' , 500 , 'Full' , '' , true , true , true , ROWS_5 , '90%' , 0 , $poscursor );
2017-10-07 13:09:31 +02:00
$doleditor -> Create ( 0 , '' , false );
2023-03-27 20:54:07 +02:00
}
2018-12-17 17:29:04 +01:00
print " </div> \n " ;
print " </form> \n " ;
2016-04-19 11:02:55 +02:00
2016-02-02 16:24:12 +01:00
2022-10-08 17:04:20 +02:00
if ( $mode == 'replacesite' || $massaction == 'replace' ) {
2019-08-13 00:34:42 +02:00
print '<form action="' . $_SERVER [ " PHP_SELF " ] . '" method="POST">' ;
2019-12-18 23:12:31 +01:00
print '<input type="hidden" name="token" value="' . newToken () . '">' ;
2019-08-13 00:34:42 +02:00
print '<input type="hidden" name="action" value="replacesiteconfirm">' ;
2022-10-08 17:04:20 +02:00
print '<input type="hidden" name="mode" value="replacesite">' ;
2019-08-13 18:22:18 +02:00
print '<input type="hidden" name="website" value="' . $website -> ref . '">' ;
2019-08-13 00:34:42 +02:00
2020-05-26 22:29:46 +02:00
print '<!-- Search page and replace string -->' . " \n " ;
2019-08-13 00:34:42 +02:00
print '<div class="fiche"><br>' ;
2020-04-11 14:13:16 +02:00
print load_fiche_titre ( $langs -> trans ( " ReplaceWebsiteContent " ), '' , 'search' );
2019-08-13 00:34:42 +02:00
2020-05-26 12:25:41 +02:00
print '<div class="fichecenter"><div class="fichehalfleft">' ;
2019-08-13 00:34:42 +02:00
print '<div class="tagtable">' ;
print '<div class="tagtr">' ;
2020-05-26 12:25:41 +02:00
print '<div class="tagtd paddingrightonly opacitymedium">' ;
2019-08-13 00:34:42 +02:00
print $langs -> trans ( " SearchReplaceInto " );
print '</div>' ;
print '<div class="tagtd">' ;
2022-02-07 09:26:03 +01:00
print '<input type="checkbox" class="marginleftonly" id="checkboxoptioncontent" name="optioncontent" value="content"' . (( ! GETPOSTISSET ( 'buttonreplacesitesearch' ) || GETPOST ( 'optioncontent' , 'aZ09' )) ? ' checked' : '' ) . '> <label for="checkboxoptioncontent" class="tdoverflowmax150onsmartphone inline-block valignmiddle">' . $langs -> trans ( " Content " ) . '</label><br>' ;
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionmeta" name="optionmeta" value="meta"' . ( GETPOST ( 'optionmeta' , 'aZ09' ) ? ' checked' : '' ) . '> <label for="checkboxoptionmeta" class="tdoverflowmax150onsmartphone inline-block valignmiddle">' . $langs -> trans ( " Title " ) . ' | ' . $langs -> trans ( " Description " ) . ' | ' . $langs -> trans ( " Keywords " ) . '</label><br>' ;
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionsitefiles" name="optionsitefiles" value="sitefiles"' . ( GETPOST ( 'optionsitefiles' , 'aZ09' ) ? ' checked' : '' ) . '> <label for="checkboxoptionsitefiles" class="tdoverflowmax150onsmartphone inline-block valignmiddle">' . $langs -> trans ( " GlobalCSSorJS " ) . '</label><br>' ;
2019-08-13 00:34:42 +02:00
print '</div>' ;
print '</div>' ;
print '<div class="tagtr">' ;
2020-05-26 12:25:41 +02:00
print '<div class="tagtd paddingrightonly opacitymedium" style="padding-right: 10px !important">' ;
2019-08-13 00:34:42 +02:00
print $langs -> trans ( " SearchString " );
print '</div>' ;
print '<div class="tagtd">' ;
2020-05-04 14:29:25 +02:00
print '<input type="text" name="searchstring" value="' . dol_escape_htmltag ( $searchkey , 0 , 0 , '' , 1 ) . '" autofocus>' ;
2020-05-26 12:25:41 +02:00
print '</div>' ;
print '</div>' ;
2020-05-04 14:29:25 +02:00
2020-05-26 12:25:41 +02:00
print '</div>' ;
2020-04-11 18:18:53 +02:00
2020-05-26 12:25:41 +02:00
print '</div><div class="fichehalfleft">' ;
print '<div class="tagtable">' ;
print '<div class="tagtr">' ;
2022-02-07 09:26:03 +01:00
print '<div class="tagtd paddingrightonly opacitymedium tdoverflowmax100onsmartphone" style="padding-right: 10px !important">' ;
2020-05-26 12:25:41 +02:00
print $langs -> trans ( " WEBSITE_TYPE_CONTAINER " );
print '</div>' ;
print '<div class="tagtd">' ;
2020-05-26 12:53:58 +02:00
print img_picto ( '' , 'object_technic' , 'class="paddingrightonly"' ) . ' ' ;
2024-05-12 18:44:58 +02:00
print $formwebsite -> selectTypeOfContainer ( 'optioncontainertype' , ( GETPOST ( 'optioncontainertype' , 'alpha' ) ? GETPOST ( 'optioncontainertype' , 'alpha' ) : '' ), 1 , '' , 1 , 'minwidth125 maxwidth400 widthcentpercentminusx' );
2019-08-13 00:34:42 +02:00
print '</div>' ;
print '</div>' ;
2020-05-26 12:25:41 +02:00
print '<div class="tagtr">' ;
2022-02-07 09:26:03 +01:00
print '<div class="tagtd paddingrightonly opacitymedium tdoverflowmax100onsmartphone" style="padding-right: 10px !important">' ;
2020-05-26 12:25:41 +02:00
print $langs -> trans ( " Language " );
print '</div>' ;
print '<div class="tagtd">' ;
2024-10-14 01:59:44 +02:00
print img_picto ( '' , 'language' , 'class="paddingrightonly"' ) . ' ' . $formadmin -> select_language ( GETPOSTISSET ( 'optionlanguage' ) ? GETPOST ( 'optionlanguage' ) : '' , 'optionlanguage' , 0 , array (), '1' , 0 , 0 , 'minwidth125 maxwidth400 widthcentpercentminusx' , 2 , 0 , 0 , array (), 1 );
2019-08-13 00:34:42 +02:00
print '</div>' ;
2020-05-26 12:25:41 +02:00
print '</div>' ;
// Categories
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' ) && $user -> hasRight ( 'categorie' , 'lire' )) {
2020-05-26 12:25:41 +02:00
print '<div class="tagtr">' ;
2022-02-07 09:26:03 +01:00
print '<div class="tagtd paddingrightonly marginrightonly opacitymedium tdoverflowmax100onsmartphone" style="padding-right: 10px !important">' ;
2020-05-26 12:25:41 +02:00
print $langs -> trans ( " Category " );
print '</div>' ;
print '<div class="tagtd">' ;
2022-02-07 09:26:03 +01:00
print img_picto ( '' , 'category' , 'class="paddingrightonly"' ) . ' ' . $form -> select_all_categories ( Categorie :: TYPE_WEBSITE_PAGE , GETPOSTISSET ( 'optioncategory' ) ? GETPOST ( 'optioncategory' ) : '' , 'optioncategory' , 0 , 0 , 0 , 0 , 'minwidth125 maxwidth400 widthcentpercentminusx' );
2020-05-26 12:25:41 +02:00
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php' ;
print ajax_combobox ( 'optioncategory' );
print '</div>' ;
print '</div>' ;
}
2019-08-13 00:34:42 +02:00
2020-05-26 12:25:41 +02:00
print '</div>' ;
2022-02-07 09:26:03 +01:00
print '<input type="submit" class="button margintoponly" name="buttonreplacesitesearch" value="' . dol_escape_htmltag ( $langs -> trans ( " Search " )) . '">' ;
2020-05-26 12:25:41 +02:00
print '</div></div>' ;
2019-08-13 00:34:42 +02:00
2022-10-08 17:04:20 +02:00
if ( $mode == 'replacesite' ) {
2020-05-26 12:25:41 +02:00
print '<!-- List of search result -->' . " \n " ;
print '<div class="rowsearchresult clearboth">' ;
2019-08-13 00:34:42 +02:00
print '<br>' ;
print '<br>' ;
2021-02-26 12:03:07 +01:00
if ( $listofpages [ 'code' ] == 'OK' ) {
2020-04-11 18:18:53 +02:00
$arrayofselected = is_array ( $toselect ) ? $toselect : array ();
$param = '' ;
$nbtotalofrecords = count ( $listofpages [ 'list' ]);
2020-05-27 15:36:16 +02:00
$num = $limit ;
2022-10-08 17:04:20 +02:00
$permissiontodelete = $user -> hasRight ( 'website' , 'delete' );
2020-04-11 18:18:53 +02:00
// List of mass actions available
2020-04-12 13:25:19 +02:00
$arrayofmassactions = array ();
2022-10-08 17:04:20 +02:00
if ( $user -> hasRight ( 'website' , 'writephp' ) && $searchkey ) {
$arrayofmassactions [ 'replace' ] = img_picto ( '' , 'replacement' , 'class="pictofixedwidth"' ) . $langs -> trans ( " Replace " );
}
if ( $user -> hasRight ( 'website' , 'write' )) {
$arrayofmassactions [ 'setcategory' ] = img_picto ( '' , 'category' , 'class="pictofixedwidth"' ) . $langs -> trans ( " ClassifyInCategory " );
2021-02-26 12:03:07 +01:00
}
2022-10-08 17:04:20 +02:00
if ( $user -> hasRight ( 'website' , 'write' )) {
$arrayofmassactions [ 'delcategory' ] = img_picto ( '' , 'category' , 'class="pictofixedwidth"' ) . $langs -> trans ( " RemoveCategory " );
2021-02-26 12:03:07 +01:00
}
if ( $permissiontodelete ) {
2022-10-08 17:04:20 +02:00
$arrayofmassactions [ 'predelete' ] = img_picto ( '' , 'delete' , 'class="pictofixedwidth"' ) . $langs -> trans ( " Delete " );
2021-02-26 12:03:07 +01:00
}
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
if ( GETPOSTINT ( 'nomassaction' ) || in_array ( $massaction , array ( 'presend' , 'predelete' ))) {
2021-02-26 12:03:07 +01:00
$arrayofmassactions = array ();
}
2020-05-26 12:46:51 +02:00
2020-04-11 18:18:53 +02:00
$massactionbutton = $form -> selectMassAction ( '' , $arrayofmassactions );
2020-05-26 22:29:46 +02:00
$massactionbutton .= '<div class="massactionother massactionreplace hidden">' ;
2020-04-11 18:18:53 +02:00
$massactionbutton .= $langs -> trans ( " ReplaceString " );
2020-05-26 22:29:46 +02:00
$massactionbutton .= ' <input type="text" name="replacestring" value="' . dol_escape_htmltag ( GETPOST ( 'replacestring' , 'none' )) . '">' ;
$massactionbutton .= '</div>' ;
2022-10-08 17:04:20 +02:00
$massactionbutton .= '<div class="massactionother massactionsetcategory massactiondelcategory hidden">' ;
2024-04-08 19:20:07 +02:00
$massactionbutton .= img_picto ( '' , 'category' , 'class="pictofixedwidth"' );
$massactionbutton .= $form -> select_all_categories ( Categorie :: TYPE_WEBSITE_PAGE , GETPOSTISSET ( 'setcategory' ) ? GETPOST ( 'setcategory' ) : '' , 'setcategory' , 64 , 0 , 0 , 0 , 'minwidth300 alignstart' );
2020-05-26 22:29:46 +02:00
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php' ;
$massactionbutton .= ajax_combobox ( 'setcategory' );
2020-04-13 13:24:42 +02:00
$massactionbutton .= '</div>' ;
2020-04-11 18:18:53 +02:00
$varpage = empty ( $contextpage ) ? $_SERVER [ " PHP_SELF " ] : $contextpage ;
2022-07-12 09:37:15 +02:00
2024-02-29 16:48:52 +01:00
//$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields
2022-07-12 09:37:15 +02:00
$selectedfields = '' ;
$selectedfields .= ( count ( $arrayofmassactions ) ? $form -> showCheckAddButtons ( 'checkforselect' , 1 ) : '' );
2020-04-11 18:18:53 +02:00
2020-05-26 22:29:46 +02:00
print_barre_liste ( $langs -> trans ( " Results " ), $page , $_SERVER [ " PHP_SELF " ], $param , $sortfield , $sortorder , $massactionbutton , $num , $nbtotalofrecords , 'generic' , 0 , '' , '' , $limit , 1 , 1 , 1 );
2020-04-11 18:18:53 +02:00
2020-06-03 00:46:09 +02:00
$topicmail = " WebsitePageRef " ;
$modelmail = " websitepage_send " ;
$objecttmp = new WebsitePage ( $db );
$trackid = 'wsp' . $object -> id ;
include DOL_DOCUMENT_ROOT . '/core/tpl/massactions_pre.tpl.php' ;
2022-10-08 17:04:20 +02:00
$param = 'mode=replacesite&website=' . urlencode ( $website -> ref );
2020-04-11 14:13:16 +02:00
$param .= '&searchstring=' . urlencode ( $searchkey );
2021-02-26 12:03:07 +01:00
if ( GETPOST ( 'optioncontent' )) {
$param .= '&optioncontent=content' ;
}
if ( GETPOST ( 'optionmeta' )) {
$param .= '&optionmeta=meta' ;
}
if ( GETPOST ( 'optionsitefiles' )) {
$param .= '&optionsitefiles=optionsitefiles' ;
}
if ( GETPOST ( 'optioncontainertype' )) {
$param .= '&optioncontainertype=' . GETPOST ( 'optioncontainertype' , 'aZ09' );
}
if ( GETPOST ( 'optionlanguage' )) {
$param .= '&optionlanguage=' . GETPOST ( 'optionlanguage' , 'aZ09' );
}
if ( GETPOST ( 'optioncategory' )) {
$param .= '&optioncategory=' . GETPOST ( 'optioncategory' , 'aZ09' );
}
2020-04-11 14:13:16 +02:00
2019-09-02 18:43:22 +02:00
print '<div class="div-table-responsive-no-min">' ;
print '<table class="noborder centpercent">' ;
print '<tr class="liste_titre">' ;
2024-04-08 19:20:07 +02:00
// Action column
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print getTitleFieldOfList ( $selectedfields , 0 , $_SERVER [ " PHP_SELF " ], '' , '' , '' , '' , $sortfield , $sortorder , 'center maxwidthsearch ' ) . " \n " ;
}
2020-04-11 14:13:16 +02:00
print getTitleFieldOfList ( " Type " , 0 , $_SERVER [ 'PHP_SELF' ], 'type_container' , '' , $param , '' , $sortfield , $sortorder , '' ) . " \n " ;
2020-04-11 16:34:59 +02:00
print getTitleFieldOfList ( " Page " , 0 , $_SERVER [ 'PHP_SELF' ], 'pageurl' , '' , $param , '' , $sortfield , $sortorder , '' ) . " \n " ;
2021-04-18 15:07:22 +02:00
print getTitleFieldOfList ( " Language " , 0 , $_SERVER [ 'PHP_SELF' ], 'lang' , '' , $param , '' , $sortfield , $sortorder , 'center ' ) . " \n " ;
2024-05-12 19:21:39 +02:00
print getTitleFieldOfList ( " Categories " , 0 , $_SERVER [ 'PHP_SELF' ], '' , '' , $param , '' , $sortfield , $sortorder , 'center ' ) . " \n " ;
2020-05-22 00:38:01 +02:00
print getTitleFieldOfList ( " " , 0 , $_SERVER [ 'PHP_SELF' ]);
2024-04-08 03:38:04 +02:00
print getTitleFieldOfList ( " UserCreation " , 0 , $_SERVER [ 'PHP_SELF' ], 'fk_user_creat' , '' , $param , '' , $sortfield , $sortorder , '' ) . " \n " ;
print getTitleFieldOfList ( " DateCreation " , 0 , $_SERVER [ 'PHP_SELF' ], 'date_creation' , '' , $param , '' , $sortfield , $sortorder , 'center ' ) . " \n " ; // Date creation
2021-02-28 20:49:52 +01:00
print getTitleFieldOfList ( " DateLastModification " , 0 , $_SERVER [ 'PHP_SELF' ], 'tms' , '' , $param , '' , $sortfield , $sortorder , 'center ' ) . " \n " ; // Date last modif
2020-08-02 15:53:34 +02:00
print getTitleFieldOfList ( " " , 0 , $_SERVER [ 'PHP_SELF' ]);
2024-04-08 19:20:07 +02:00
// Action column
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print getTitleFieldOfList ( $selectedfields , 0 , $_SERVER [ " PHP_SELF " ], '' , '' , '' , '' , $sortfield , $sortorder , 'center maxwidthsearch ' ) . " \n " ;
}
2019-09-02 18:43:22 +02:00
print '</tr>' ;
2020-06-30 02:50:58 +02:00
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php' ;
$c = new Categorie ( $db );
2020-08-02 16:28:59 +02:00
$totalnbwords = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $listofpages [ 'list' ] as $answerrecord ) {
2022-07-12 09:37:15 +02:00
if ( is_object ( $answerrecord ) && get_class ( $answerrecord ) == 'WebsitePage' ) {
2024-04-08 03:38:04 +02:00
$param = '?mode=replacesite' ;
$param .= '&websiteid=' . $website -> id ;
$param .= '&optioncontent=' . GETPOST ( 'optioncontent' , 'aZ09' );
$param .= '&optionmeta=' . GETPOST ( 'optionmeta' , 'aZ09' );
$param .= '&optionsitefiles=' . GETPOST ( 'optionsitefiles' , 'aZ09' );
$param .= '&optioncontainertype=' . GETPOST ( 'optioncontainertype' , 'aZ09' );
$param .= '&optionlanguage=' . GETPOST ( 'optionlanguage' , 'aZ09' );
$param .= '&optioncategory=' . GETPOST ( 'optioncategory' , 'aZ09' );
$param .= '&searchstring=' . urlencode ( $searchkey );
2019-09-02 18:43:22 +02:00
print '<tr>' ;
2020-04-14 00:03:13 +02:00
2024-04-08 19:20:07 +02:00
// Action column
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
print '<!-- Status of page -->' . " \n " ;
if ( $massactionbutton || $massaction ) {
$selected = 0 ;
if ( in_array ( $answerrecord -> id , $arrayofselected )) {
$selected = 1 ;
}
print '<input id="' . $answerrecord -> id . '" class="flat checkforselect" type="checkbox" name="toselect[]" value="' . $answerrecord -> id . '"' . ( $selected ? ' checked="checked"' : '' ) . '>' ;
}
print '</td>' ;
}
2020-06-30 02:50:58 +02:00
// Type of container
2024-04-08 03:38:04 +02:00
print '<td class="nowraponall">' ;
//print $langs->trans("Container").'<br>';
if ( ! empty ( $conf -> cache [ 'type_of_container' ][ $answerrecord -> type_container ])) {
print $langs -> trans ( $conf -> cache [ 'type_of_container' ][ $answerrecord -> type_container ]);
} else {
print $langs -> trans ( $answerrecord -> type_container );
}
2019-11-12 14:07:56 +01:00
print '</td>' ;
2020-04-14 00:03:13 +02:00
2020-06-30 02:50:58 +02:00
// Container url and label
2024-04-08 03:38:04 +02:00
$titleofpage = ( $answerrecord -> title ? $answerrecord -> title : $langs -> trans ( " NoTitle " ));
print '<td class="tdoverflowmax300" title="' . dol_escape_htmltag ( $titleofpage ) . '">' ;
2019-10-31 21:09:33 +01:00
print $answerrecord -> getNomUrl ( 1 );
2024-04-08 03:38:04 +02:00
print ' <span class="opacitymedium">(' . dol_escape_htmltag ( $titleofpage ) . ')</span>' ;
2020-04-11 16:34:59 +02:00
//print '</td>';
//print '<td class="tdoverflow100">';
print '<br>' ;
2024-05-12 19:21:39 +02:00
print '<span class="opacitymedium">' . dol_escape_htmltag ( $answerrecord -> description ? $answerrecord -> description : $langs -> trans ( " NoDescription " )) . '</span>' ;
print '</td>' ;
// Language
print '<td class="center">' ;
print picto_from_langcode ( $answerrecord -> lang , $answerrecord -> lang );
2019-09-02 18:43:22 +02:00
print '</td>' ;
2020-04-14 00:03:13 +02:00
2020-07-09 14:07:41 +02:00
// Categories - Tags
2023-12-14 12:44:15 +01:00
print '<td class="center">' ;
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' ) && $user -> hasRight ( 'categorie' , 'lire' )) {
2020-06-30 02:50:58 +02:00
// Get current categories
$existing = $c -> containing ( $answerrecord -> id , Categorie :: TYPE_WEBSITE_PAGE , 'object' );
if ( is_array ( $existing )) {
foreach ( $existing as $tmpcategory ) {
//var_dump($tmpcategory);
2020-07-09 14:07:41 +02:00
print img_object ( $langs -> trans ( " Category " ) . ' : ' . $tmpcategory -> label , 'category' , 'style="padding-left: 2px; padding-right: 2px; color: #' . ( $tmpcategory -> color != '' ? $tmpcategory -> color : '888' ) . '"' );
2020-06-30 02:50:58 +02:00
}
}
}
//var_dump($existing);
print '</td>' ;
2020-08-02 15:53:34 +02:00
// Number of words
2020-08-02 16:19:34 +02:00
print '<td class="center nowraponall">' ;
2020-08-02 15:53:34 +02:00
$textwithouthtml = dol_string_nohtmltag ( dolStripPhpCode ( $answerrecord -> content ));
$characterMap = 'áàéèëíóúüñùç0123456789' ;
$nbofwords = str_word_count ( $textwithouthtml , 0 , $characterMap );
if ( $nbofwords ) {
print $nbofwords . ' ' . $langs -> trans ( " words " );
2020-08-02 16:28:59 +02:00
$totalnbwords += $nbofwords ;
2020-08-02 15:53:34 +02:00
}
print '</td>' ;
2024-04-08 03:38:04 +02:00
// Author
print '<td class="tdoverflowmax125">' ;
if ( ! empty ( $answerrecord -> fk_user_creat )) {
if ( empty ( $conf -> cache [ 'user' ][ $answerrecord -> fk_user_creat ])) {
$tmpuser = new User ( $db );
$tmpuser -> fetch ( $answerrecord -> fk_user_creat );
$conf -> cache [ 'user' ][ $answerrecord -> fk_user_creat ] = $tmpuser ;
} else {
$tmpuser = $conf -> cache [ 'user' ][ $answerrecord -> fk_user_creat ];
}
print $tmpuser -> getNomUrl ( - 1 , '' , 0 , 0 , 0 , 0 , 'login' );
}
print '</td>' ;
// Date creation
print '<td class="center nowraponall">' ;
print dol_print_date ( $answerrecord -> date_creation , 'dayhour' );
print '</td>' ;
2021-02-28 20:49:52 +01:00
// Date last modification
print '<td class="center nowraponall">' ;
print dol_print_date ( $answerrecord -> date_modification , 'dayhour' );
print '</td>' ;
2020-08-02 15:53:34 +02:00
2020-07-09 14:07:41 +02:00
// Edit properties, HTML sources, status
2020-07-09 14:12:19 +02:00
print '<td class="tdwebsitesearchresult right nowraponall">' ;
2020-05-22 00:38:01 +02:00
$disabled = '' ;
2021-09-27 12:24:01 +02:00
$urltoedithtmlsource = $_SERVER [ " PHP_SELF " ] . '?action=editmeta&token=' . newToken () . '&websiteid=' . $website -> id . '&pageid=' . $answerrecord -> id . '&backtopage=' . urlencode ( $_SERVER [ " PHP_SELF " ] . $param );
2023-10-15 18:46:18 +02:00
if ( ! $user -> hasRight ( 'website' , 'write' )) {
2020-05-22 00:38:01 +02:00
$disabled = ' disabled' ;
$urltoedithtmlsource = '' ;
}
2020-07-09 14:07:41 +02:00
print '<a class="editfielda marginleftonly marginrightonly ' . $disabled . '" href="' . $urltoedithtmlsource . '" title="' . $langs -> trans ( " EditPageMeta " ) . '">' . img_picto ( $langs -> trans ( " EditPageMeta " ), 'pencil-ruler' ) . '</a>' ;
2020-05-22 00:38:01 +02:00
2019-12-07 19:08:40 +01:00
$disabled = '' ;
2021-09-27 12:24:01 +02:00
$urltoedithtmlsource = $_SERVER [ " PHP_SELF " ] . '?action=editsource&token=' . newToken () . '&websiteid=' . $website -> id . '&pageid=' . $answerrecord -> id . '&backtopage=' . urlencode ( $_SERVER [ " PHP_SELF " ] . $param );
2023-10-15 18:46:18 +02:00
if ( ! $user -> hasRight ( 'website' , 'write' )) {
2019-12-07 19:08:40 +01:00
$disabled = ' disabled' ;
$urltoedithtmlsource = '' ;
}
2020-07-09 14:07:41 +02:00
print '<a class="editfielda marginleftonly marginrightonly ' . $disabled . '" href="' . $urltoedithtmlsource . '" title="' . $langs -> trans ( " EditHTMLSource " ) . '">' . img_picto ( $langs -> trans ( " EditHTMLSource " ), 'edit' ) . '</a>' ;
2022-10-08 17:04:20 +02:00
print '<span class="marginleftonly marginrightonly"></span>' ;
2023-07-31 21:43:36 +02:00
print ajax_object_onoff ( $answerrecord , 'status' , 'status' , 'Enabled' , 'Disabled' , array (), 'valignmiddle inline-block' );
2020-07-09 14:07:41 +02:00
2019-09-02 18:43:22 +02:00
print '</td>' ;
2020-04-11 18:18:53 +02:00
// Action column
2024-04-08 19:20:07 +02:00
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
print '<!-- Status of page -->' . " \n " ;
if ( $massactionbutton || $massaction ) {
$selected = 0 ;
if ( in_array ( $answerrecord -> id , $arrayofselected )) {
$selected = 1 ;
}
print '<input id="' . $answerrecord -> id . '" class="flat checkforselect" type="checkbox" name="toselect[]" value="' . $answerrecord -> id . '"' . ( $selected ? ' checked="checked"' : '' ) . '>' ;
2021-02-26 12:03:07 +01:00
}
2024-04-08 19:20:07 +02:00
print '</td>' ;
2020-04-11 18:18:53 +02:00
}
2019-09-02 18:43:22 +02:00
print '</tr>' ;
2020-06-30 02:50:58 +02:00
} else {
2024-10-14 01:59:44 +02:00
// $answerrecord is not list of WebsitePage
'@phan-var-force array{type:string} $answerrecord' ;
2024-04-08 03:38:04 +02:00
$param = '?mode=replacesite' ;
$param .= '&websiteid=' . $website -> id ;
$param .= '&optioncontent=' . GETPOST ( 'optioncontent' , 'aZ09' );
$param .= '&optionmeta=' . GETPOST ( 'optionmeta' , 'aZ09' );
$param .= '&optionsitefiles=' . GETPOST ( 'optionsitefiles' , 'aZ09' );
$param .= '&optioncontainertype=' . GETPOST ( 'optioncontainertype' , 'aZ09' );
$param .= '&optionlanguage=' . GETPOST ( 'optionlanguage' , 'aZ09' );
$param .= '&optioncategory=' . GETPOST ( 'optioncategory' , 'aZ09' );
$param .= '&searchstring=' . urlencode ( $searchkey );
2019-09-02 18:43:22 +02:00
print '<tr>' ;
2019-11-12 14:07:56 +01:00
2024-04-08 19:20:07 +02:00
// Action column
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
print '</td>' ;
}
2020-06-30 02:50:58 +02:00
// Type of container
2020-04-14 00:03:13 +02:00
print '<td>' ;
2019-11-12 14:07:56 +01:00
$translateofrecordtype = array (
2024-02-23 16:54:23 +01:00
'website_csscontent' => 'WEBSITE_CSS_INLINE' ,
'website_jscontent' => 'WEBSITE_JS_INLINE' ,
'website_robotcontent' => 'WEBSITE_ROBOT' ,
'website_htmlheadercontent' => 'WEBSITE_HTML_HEADER' ,
'website_htaccess' => 'WEBSITE_HTACCESS' ,
'website_readme' => 'WEBSITE_README' ,
'website_manifestjson' => 'WEBSITE_MANIFEST_JSON'
2019-11-12 14:07:56 +01:00
);
2024-04-08 03:38:04 +02:00
print '<span class="opacitymedium">' ;
2020-02-21 17:53:37 +01:00
if ( ! empty ( $translateofrecordtype [ $answerrecord [ 'type' ]])) {
2019-11-12 14:07:56 +01:00
print $langs -> trans ( $translateofrecordtype [ $answerrecord [ 'type' ]]);
} else {
print $answerrecord [ 'type' ];
}
2024-04-08 03:38:04 +02:00
print '</span>' ;
2019-11-12 14:07:56 +01:00
print '</td>' ;
2020-04-14 00:03:13 +02:00
2020-06-30 02:50:58 +02:00
// Container url and label
2019-09-02 18:43:22 +02:00
print '<td>' ;
2020-05-27 15:26:38 +02:00
$backtopageurl = $_SERVER [ " PHP_SELF " ] . $param ;
2022-02-03 19:21:59 +01:00
print '<a href="' . $_SERVER [ " PHP_SELF " ] . '?action=editcss&token=' . newToken () . '&website=' . urlencode ( $website -> ref ) . '&backtopage=' . urlencode ( $backtopageurl ) . '">' . $langs -> trans ( " EditCss " ) . '</a>' ;
2019-09-02 18:43:22 +02:00
print '</td>' ;
2020-04-14 00:03:13 +02:00
2020-07-09 14:07:41 +02:00
// Language
2020-06-30 02:50:58 +02:00
print '<td>' ;
print '</td>' ;
2020-08-02 16:28:59 +02:00
// Categories - Tags
print '<td>' ;
print '</td>' ;
// Nb of words
print '<td>' ;
print '</td>' ;
2024-04-08 19:20:07 +02:00
print '<td>' ;
print '</td>' ;
print '<td>' ;
print '</td>' ;
2021-02-28 20:49:52 +01:00
// Date last modification
print '<td class="center nowraponall">' ;
//print dol_print_date(filemtime());
print '</td>' ;
2020-08-02 16:28:59 +02:00
// Edit properties, HTML sources, status
2020-07-09 14:07:41 +02:00
print '<td>' ;
2019-09-02 18:43:22 +02:00
print '</td>' ;
2020-04-11 18:18:53 +02:00
// Action column
2024-04-08 19:20:07 +02:00
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
print '</td>' ;
}
2020-04-11 18:18:53 +02:00
2019-09-02 18:43:22 +02:00
print '</tr>' ;
}
2019-08-13 00:34:42 +02:00
}
2020-08-02 16:28:59 +02:00
if ( count ( $listofpages [ 'list' ]) >= 2 ) {
// Total
print '<tr class="lite_titre">' ;
2024-04-08 19:20:07 +02:00
// Action column
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
print '</td>' ;
}
2020-08-02 16:28:59 +02:00
// Type of container
print '<td>' ;
print $langs -> trans ( " Total " );
print '</td>' ;
// Container url and label
print '<td>' ;
print '</td>' ;
// Language
print '<td>' ;
print '</td>' ;
// Categories - Tags
print '<td>' ;
print '</td>' ;
// Nb of words
print '<td class="center nowraponall">' ;
print $totalnbwords . ' ' . $langs -> trans ( " words " );
print '</td>' ;
2024-04-08 19:20:07 +02:00
print '<td>' ;
print '</td>' ;
print '<td>' ;
print '</td>' ;
2021-02-28 20:49:52 +01:00
// Date last modification
print '<td>' ;
print '</td>' ;
2020-08-02 16:28:59 +02:00
// Edit properties, HTML sources, status
print '<td>' ;
print '</td>' ;
// Action column
2024-04-08 19:20:07 +02:00
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
print '</td>' ;
}
2020-08-02 16:28:59 +02:00
print '</tr>' ;
}
2019-09-02 18:43:22 +02:00
print '</table>' ;
2020-05-26 12:25:41 +02:00
print '</div>' ;
2020-04-11 18:18:53 +02:00
print '<br>' ;
2021-02-26 12:03:07 +01:00
} else {
2020-07-09 14:07:41 +02:00
print '<div class="warning">' . $listofpages [ 'message' ] . '</div>' ;
2019-08-13 00:34:42 +02:00
}
2020-05-26 12:25:41 +02:00
print '</div>' ;
2019-08-13 00:34:42 +02:00
}
print '</form>' ;
}
2022-10-08 17:04:20 +02:00
if (( empty ( $action ) || $action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' ) && ! in_array ( $mode , array ( 'replacesite' ))) {
2021-02-26 12:03:07 +01:00
if ( $pageid > 0 && $atleastonepage ) {
2018-07-24 01:10:38 +02:00
// $filejs
// $filecss
// $filephp
2024-01-12 17:18:52 +01:00
// Output page under the Dolibarr top menu
2017-10-07 13:09:31 +02:00
$objectpage -> fetch ( $pageid );
2019-08-14 01:43:06 +02:00
2017-10-07 13:09:31 +02:00
$jscontent = @ file_get_contents ( $filejs );
2016-04-27 09:41:42 +02:00
2018-11-27 16:20:31 +01:00
$out = '<!-- Page content ' . $filetpl . ' : Div with (Htmlheader/Style of page from database + CSS Of website from file + Page content from database or by include if WEBSITE_SUBCONTAINERSINLINE is on) -->' . " \n " ;
2017-07-02 23:38:19 +02:00
2018-07-19 16:06:06 +02:00
// Include a html so we can benefit of the header of page.
// Note: We can't use iframe as it can be used to include another external html file
// Note: We can't use frame as it is deprecated.
2018-09-24 15:14:32 +02:00
/* if ( $includepageintoaframeoradiv == 'iframe' )
{
$out .= " <iframe><body></html> " ;
} */
2019-11-12 00:15:34 +01:00
$out .= " \n <html><head> \n " ;
$out .= " <!-- htmlheader/style of page from database --> \n " ;
$out .= dolWebsiteReplacementOfLinks ( $object , $objectpage -> htmlheader , 1 , 'htmlheader' );
2019-08-14 01:43:06 +02:00
2019-11-12 00:15:34 +01:00
$out .= " <!-- htmlheader/style of website from files --> \n " ;
2019-08-14 01:43:06 +02:00
// TODO Keep only the <link> or the <script> tags
/*
$htmlheadercontent = @ file_get_contents ( $filehtmlheader );
$dom = new DOMDocument ;
@ $dom -> loadHTML ( $htmlheadercontent );
$styles = $dom -> getElementsByTagName ( 'link' );
$scripts = $dom -> getElementsByTagName ( 'script' );
foreach ( $styles as $stylescursor )
{
$out .= $stylescursor ;
}
foreach ( $scripts as $scriptscursor )
{
$out .= $scriptscursor ;
}
*/
2019-11-12 00:15:34 +01:00
$out .= " </head> \n " ;
$out .= " \n <body> " ;
2018-07-19 16:06:06 +02:00
2018-09-24 15:14:32 +02:00
2019-11-12 00:15:34 +01:00
$out .= '<div id="websitecontentundertopmenu" class="websitecontentundertopmenu boostrap-iso">' . " \n " ;
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
// REPLACEMENT OF LINKS When page called by website editor
2017-07-02 23:38:19 +02:00
2019-11-12 00:15:34 +01:00
$out .= '<!-- style of website from file -->' . " \n " ;
2021-02-21 14:46:52 +01:00
$out .= '<style scoped>' . " \n " ; // "scoped" means "apply to parent element only and not grand parent". No more supported by browsers, snif !
2019-11-12 00:15:34 +01:00
$tmpout = '' ;
$tmpout .= '/* Include website CSS file */' . " \n " ;
2018-07-23 14:08:20 +02:00
//$csscontent = @file_get_contents($filecss);
ob_start ();
include $filecss ;
$csscontent = ob_get_contents ();
ob_end_clean ();
2019-11-12 00:15:34 +01:00
$tmpout .= dolWebsiteReplacementOfLinks ( $object , $csscontent , 1 , 'css' );
$tmpout .= '/* Include style from the HTML header of page */' . " \n " ;
2017-12-17 16:24:47 +01:00
// Clean the html header of page to get only <style> content
$tmp = preg_split ( '(<style[^>]*>|</style>)' , $objectpage -> htmlheader );
2019-11-12 00:15:34 +01:00
$tmpstyleinheader = '' ;
$i = 0 ;
2021-02-26 12:03:07 +01:00
foreach ( $tmp as $valtmp ) {
2017-12-17 16:24:47 +01:00
$i ++ ;
2021-02-26 12:03:07 +01:00
if ( $i % 2 == 0 ) {
$tmpstyleinheader .= $valtmp . " \n " ;
}
2017-12-17 16:24:47 +01:00
}
2019-11-12 00:15:34 +01:00
$tmpout .= $tmpstyleinheader . " \n " ;
2017-12-17 16:24:47 +01:00
// Clean style that may affect global style of Dolibarr
2019-11-12 00:15:34 +01:00
$tmpout = preg_replace ( '/}[\s\n]*body\s*{[^}]+}/ims' , '}' , $tmpout );
$out .= $tmpout ;
$out .= '</style>' . " \n " ;
2017-07-02 23:38:19 +02:00
2024-03-26 00:16:30 +01:00
// Note: <div>, <section>, ... with contenteditable="true" inside this can be edited with inline ckeditor
2018-07-19 21:35:21 +02:00
2017-12-12 03:10:54 +01:00
// Do not enable the contenteditable when page was grabbed, ckeditor is removing span and adding borders,
2018-07-19 16:06:06 +02:00
// so editable will be available only from container created from scratch
2018-09-25 16:35:59 +02:00
//$out.='<div id="bodywebsite" class="bodywebsite"'.($objectpage->grabbed_from ? ' contenteditable="true"' : '').'>'."\n";
2019-11-12 00:15:34 +01:00
$out .= '<div id="divbodywebsite" class="bodywebsite bodywebpage-' . $objectpage -> ref . '">' . " \n " ;
2017-07-21 02:30:02 +02:00
2018-07-19 21:35:21 +02:00
$newcontent = $objectpage -> content ;
2018-09-24 15:14:32 +02:00
// If mode WEBSITE_SUBCONTAINERSINLINE is on
2023-11-27 12:08:48 +01:00
if ( getDolGlobalString ( 'WEBSITE_SUBCONTAINERSINLINE' )) {
2020-03-20 16:30:45 +01:00
// TODO Check file $filephp exists, if not create it.
2018-09-24 15:14:32 +02:00
//var_dump($filetpl);
$filephp = $filetpl ;
2024-03-14 22:06:43 +01:00
// Get session info and obfuscate session cookie
$savsessionname = session_name ();
$savsessionid = $_COOKIE [ $savsessionname ];
$_COOKIE [ $savsessionname ] = 'obfuscatedcookie' ;
2018-09-24 15:14:32 +02:00
ob_start ();
2020-03-20 16:30:45 +01:00
try {
$res = include $filephp ;
if ( empty ( $res )) {
2024-01-12 17:18:52 +01:00
print " ERROR: Failed to include file ' " . $filephp . " '. Try to edit and re-save page with this ID. " ;
2020-03-20 16:30:45 +01:00
}
2021-02-26 12:03:07 +01:00
} catch ( Exception $e ) {
2020-03-20 16:30:45 +01:00
print $e -> getMessage ();
}
2018-09-24 15:14:32 +02:00
$newcontent = ob_get_contents ();
ob_end_clean ();
2024-03-14 22:06:43 +01:00
// Restore data
$_COOKIE [ $savsessionname ] = $savsessionid ;
2018-09-24 15:14:32 +02:00
}
// Change the contenteditable to "true" or "false" when mode Edit Inline is on or off
2023-11-27 12:08:48 +01:00
if ( ! getDolGlobalString ( 'WEBSITE_EDITINLINE' )) {
2020-10-07 15:01:28 +02:00
// Remove the contenteditable="true"
2024-03-26 00:49:34 +01:00
$newcontent = preg_replace ( '/(div|section|header|main|footer)(\s[^\>]*)contenteditable="true"/' , '\1\2' , $newcontent );
2021-02-26 12:03:07 +01:00
} else {
2019-04-12 17:44:22 +02:00
// Keep the contenteditable="true" when mode Edit Inline is on
2018-07-19 21:35:21 +02:00
}
2019-11-12 00:15:34 +01:00
$out .= dolWebsiteReplacementOfLinks ( $object , $newcontent , 0 , 'html' , $objectpage -> id ) . " \n " ;
2018-11-27 16:20:31 +01:00
//$out.=$newcontent;
2017-07-02 23:38:19 +02:00
2019-11-12 00:15:34 +01:00
$out .= '</div>' ;
2017-07-28 17:17:40 +02:00
2019-11-12 00:15:34 +01:00
$out .= '</div> <!-- End div id=websitecontentundertopmenu -->' ;
2017-07-02 23:38:19 +02:00
2018-07-19 16:06:06 +02:00
/* if ( $includepageintoaframeoradiv == 'iframe' )
{
$out .= " </body></html></iframe> " ;
} */
$out .= " \n </body></html> \n " ;
2019-11-12 00:15:34 +01:00
$out .= " \n " . '<!-- End page content ' . $filetpl . ' -->' . " \n \n " ;
2017-07-02 23:38:19 +02:00
2017-10-07 13:09:31 +02:00
print $out ;
2017-07-02 23:38:19 +02:00
2023-12-13 12:46:23 +01:00
/* file_put_contents ( $filetpl , $out );
dolChmod ( $filetpl );
2016-05-01 16:34:50 +02:00
2023-12-13 12:46:23 +01:00
// Output file on browser
dol_syslog ( " index.php include $filetpl $filename content-type= $type " );
$original_file_osencoded = dol_osencode ( $filetpl ); // New file name encoded in OS encoding charset
2017-07-02 23:38:19 +02:00
2023-12-13 12:46:23 +01:00
// This test if file exists should be useless. We keep it to find bug more easily
if ( ! file_exists ( $original_file_osencoded ))
{
dol_print_error ( 0 , $langs -> trans ( " ErrorFileDoesNotExists " , $original_file ));
exit ;
}
2017-07-02 23:38:19 +02:00
2023-12-13 12:46:23 +01:00
//include_once $original_file_osencoded;
*/
2017-07-02 23:38:19 +02:00
2018-07-22 17:18:35 +02:00
/* print '<iframe class="websiteiframenoborder centpercent" src="' . DOL_URL_ROOT . '/public/website/index.php?website=' . $websitekey . '&pageid=' . $pageid . '"/>' ;
2021-02-26 12:03:07 +01:00
print '</iframe>' ; */
} else {
if ( empty ( $websitekey ) || $websitekey == '-1' ) {
2019-10-09 15:01:19 +02:00
print '<br><br><div class="center previewnotyetavailable"><span class="">' . $langs -> trans ( " NoWebSiteCreateOneFirst " ) . '</span></div><br><br><br>' ;
2018-12-17 17:29:04 +01:00
print '<div class="center"><div class="logo_setup"></div></div>' ;
2021-02-26 12:03:07 +01:00
} else {
2019-10-09 15:01:19 +02:00
print '<br><br><div class="center previewnotyetavailable"><span class="">' . $langs -> trans ( " PreviewOfSiteNotYetAvailable " , $object -> ref ) . '</span></div><br><br><br>' ;
2018-12-17 17:29:04 +01:00
print '<div class="center"><div class="logo_setup"></div></div>' ;
}
2017-10-07 13:09:31 +02:00
}
2016-04-19 11:02:55 +02:00
}
2018-08-04 15:58:05 +02:00
// End of page
2016-02-02 16:24:12 +01:00
llxFooter ();
$db -> close ();