26define(
'NOSCANPOSTFORINJECTION', 1);
27define(
'NOSTYLECHECK', 1);
30require
'../main.inc.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
45$langs->loadLangs(array(
"admin",
"other",
"website"));
52@phan-var-force Website $object
53@phan-var-force WebsitePage $objectpage
56$conf->dol_hide_leftmenu = 1;
59$website =
GETPOST(
'website',
'alpha');
60$page =
GETPOST(
'page',
'alpha');
62$action =
GETPOST(
'action',
'aZ09');
74 $action =
'editmedia';
83 $action =
'setashome';
89 $action =
'editcontent';
111$form =
new Form($db);
115llxHeader(
'', $langs->trans(
"WebsiteSetup"), $help_url,
'', 0, 0,
'',
'',
'',
'',
'<!-- Begin div class="fiche" -->'.
"\n".
'<div class="fichebutwithotherclass">');
117print
"\n".
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST"><div>';
118print
'<input type="hidden" name="token" value="'.newToken().
'">';
119if ($action ==
'create') {
120 print
'<input type="hidden" name="action" value="add">';
124print
'<div class="centpercent websitebar">';
129print
"</div>\n</form>\n";
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.