30 require
'../main.inc.php';
33 $langs->load(
"other");
36 $mainmenu =
GETPOST(
'mainmenu',
"aZ09");
37 $leftmenu =
GETPOST(
'leftmenu',
"aZ09");
38 $idmenu =
GETPOST(
'idmenu',
'int');
39 $theme =
GETPOST(
'theme',
'aZ09');
40 $codelang =
GETPOST(
'lang',
'aZ09');
41 $keyforcontent =
GETPOST(
'keyforcontent',
'aZ09');
48 if (empty($keyforcontent) && empty($conf->global->EXTERNALSITE_URL)) {
50 print
'<div class="error">'.$langs->trans(
'ExternalSiteModuleNotComplete').
'</div>';
55 if (!empty($keyforcontent)) {
58 print
'<div class="framecontent" style="height: '.($_SESSION[
'dol_screenheight'] - 90).
'px">';
60 if (!preg_match(
'/EXTERNAL_SITE_CONTENT_/', $keyforcontent)
61 && !preg_match(
'/EXTERNAL_SITE_URL_/', $keyforcontent)) {
62 $langs->load(
"errors");
63 print $langs->trans(
"ErrorBadSyntaxForParamKeyForContent",
'EXTERNAL_SITE_CONTENT_',
'EXTERNAL_SITE_URL_');
64 } elseif (empty($conf->global->$keyforcontent)) {
65 $langs->load(
"errors");
66 print $langs->trans(
"ErrorVariableKeyForContentMustBeSet",
'EXTERNAL_SITE_CONTENT_'.$keyforcontent,
'EXTERNAL_SITE_URL_'.$keyforcontent);
68 if (preg_match(
'/EXTERNAL_SITE_CONTENT_/', $keyforcontent)) {
69 print $conf->global->$keyforcontent;
70 } elseif (preg_match(
'/EXTERNAL_SITE_URL_/', $keyforcontent)) {
102 print
'<iframe src="'.$conf->global->$keyforcontent.
'"></iframe>';
109 if (preg_match(
'/^\//', $conf->global->EXTERNALSITE_URL) || preg_match(
'/^http/i', $conf->global->EXTERNALSITE_URL)) {
113 <title>Dolibarr frame for external web site</title>
116 <frameset ".(empty($conf->global->MAIN_MENU_INVERT) ?
"rows" :
"cols").
"=\"".$heightforframes.
",*\" border=0 framespacing=0 frameborder=0>
117 <frame name=\"barre\" src=\"frametop.php?mainmenu=".$mainmenu.
"&leftmenu=".$leftmenu.
"&idmenu=".$idmenu.($theme ?
'&theme='.$theme :
'').($codelang ?
'&lang='.$codelang :
'').
"&nobackground=1\" noresize scrolling=\"NO\" noborder>
119 print
'<frame name="main" src="';
120 print $conf->global->EXTERNALSITE_URL;
132 <br><div class=\"center\">
133 Sorry, your browser is too old or not correctly configured to view this area.<br>
134 Your browser must support frames.<br>
143 print
'<div class="framecontent" style="height: '.($_SESSION[
'dol_screenheight'] - 90).
'px">';
144 print $conf->global->EXTERNALSITE_URL;
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.