function BuildFullPage($content, $error = null, $headerAdd = null) { $prefix = null; $tpl = new templates(); $users = new usersMenus(); $hostname = $users->hostname; $sock = new sockets(); $ArticaSplashHotSpotTitle = $sock->GET_INFO("ArticaSplashHotSpotTitle"); if ($ArticaSplashHotSpotTitle == null) { $ArticaSplashHotSpotTitle = "HotSpot system"; } if ($GLOBALS["AS_ROOT"]) { $unix = new unix(); $ArticaHotSpotInterface = $sock->GET_INFO("ArticaHotSpotInterface"); $ArticaSplashHotSpotPortSSL = intval($sock->GET_INFO("ArticaSplashHotSpotPortSSL")); if ($ArticaHotSpotInterface == null) { $ArticaHotSpotInterface = "eth0"; } if ($ArticaSplashHotSpotPortSSL == 0) { $ArticaSplashHotSpotPortSSL = 16443; } $NETWORK_ALL_INTERFACES = $unix->NETWORK_ALL_INTERFACES(); $IPADDR = $NETWORK_ALL_INTERFACES[$ArticaHotSpotInterface]["IPADDR"]; $prefix = "https://{$IPADDR}:{$ArticaSplashHotSpotPortSSL}"; $ArticaSplashHotSpotTitle = $ArticaSplashHotSpotTitle . " \$title"; } $ASIE = false; if ($users->CORP_LICENSE) { $logo = $sock->GET_INFO("ArticaSplashHotSpotLogo"); } $ArticaHotSpotSMTP = SMTP_SETTINGS(); $btsize = $ArticaHotSpotSMTP["SKIN_BUTTON_SIZE"]; $fontsize = $ArticaHotSpotSMTP["SKIN_FONT_SIZE"]; $textcolor = "#" . $ArticaHotSpotSMTP["SKIN_FONT_COLOR"]; $ArticaSplashHotSpotFontFamily = $ArticaHotSpotSMTP["SKIN_FONT_FAMILY"]; $logo = $ArticaHotSpotSMTP["SKIN_COMPANY_LOGO"]; if ($error != null) { $error = $tpl->_ENGINE_parse_body($error); $error = "<center style='background-color:white;padding:5px;margin:5px;min-height:75px;\n\t\t' class=form>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top' style='width:100px;text-align:center'><span style='font-size:120px;margin:5px;font-weight:bolder;color:#CB0000' nowrap>:(</span></td>\n\t\t<td valign='middle' style='font-size:{$fontsize} !important;color:#CB0000'>{$error}</td>\n\t\t</tr>\n\t\t</table>\n\t\t</center>"; } if (preg_match("#; MSIE#", $_SERVER["HTTP_USER_AGENT"])) { $ASIE = true; } $css[] = ".blockUI h1 {"; $css[] = " background:none;"; $css[] = " background-image: none;"; $css[] = "\t}"; $css[] = "\t"; $css[] = ".blockUI.blockMsg.blockPage > h1 {"; $css[] = "\tpadding-top:1px;"; $css[] = " margin-left: 100px;"; $css[] = " text-align: center;"; $contentBorders = null; $backPattern = " url('{$prefix}/ressources/templates/Squid/i/pattern.png')"; $contentBack = " url('{$prefix}/ressources/templates/Squid/i/form.png') no-repeat"; if ($ArticaHotSpotSMTP["SKIN_CONTENT_BG_COLOR"] != null) { $contentBack = "#{$ArticaHotSpotSMTP["SKIN_CONTENT_BG_COLOR"]}"; $contentBorders = "border-radius: 6px 6px 6px 6px;\n\t-moz-border-radius: 6px 6px 6px 6px;\n\t-khtml-border-radius: 6px 6px 6px 6px;\n\t-webkit-border-radius: 6px 6px 6px 6px;"; } if ($ArticaHotSpotSMTP["SKIN_BACKGROUND_COLOR"] != "263849") { $backPattern = "//{$ArticaHotSpotSMTP["SKIN_BACKGROUND_COLOR"]} is not 263849"; } $sum_margin_neg = null; $sum_margin = intval(-100 + intval($ArticaHotSpotSMTP["SKIN_COMPANY_LOGO_TOP"])); if (intval($ArticaHotSpotSMTP["SKIN_COMPANY_LOGO_TOP"]) < 50) { $sum_margin = 100 - intval($ArticaHotSpotSMTP["SKIN_COMPANY_LOGO_TOP"]); $sum_margin_neg = "-"; } else { $sum_margin = $ArticaHotSpotSMTP["SKIN_COMPANY_LOGO_TOP"]; } $SKIN_COMPANY_LOGO_HEIGHT = 127 + intval($ArticaHotSpotSMTP["SKIN_COMPANY_LOGO_HEIGHT"]); $SKIN_COMPANY_LOGO_WIDTH = intval($ArticaHotSpotSMTP["SKIN_COMPANY_LOGO_WIDTH"]); $css[] = "}\n\t\t\n\t\nbody{\n\tfont: 10pt {$ArticaSplashHotSpotFontFamily};\n\tbackground: #{$ArticaHotSpotSMTP["SKIN_BACKGROUND_COLOR"]}{$backPattern};\n}\n#sum{\n\twidth: {$ArticaHotSpotSMTP["SKIN_CONTENT_WIDTH"]};\n\theight: {$ArticaHotSpotSMTP["SKIN_CONTENT_HEIGHT"]};\n\tmargin: {$sum_margin_neg}{$sum_margin}px auto;\n}\nh1{\n\twidth: {$SKIN_COMPANY_LOGO_WIDTH}px;\n\theight: {$SKIN_COMPANY_LOGO_HEIGHT}px;\n\tbackground: transparent url('{$prefix}/img/{$logo}') no-repeat;\n\tmargin: 0 27px 21px;\n\t}\n\t\na{\n\tcolor:#{$ArticaHotSpotSMTP["SKIN_LINK_COLOR"]};\n\ttext-decoration:underline;\n}\n\t\na:visited{\n\tcolor:#{$ArticaHotSpotSMTP["SKIN_LINK_COLOR"]};\n}\n\t\na:link{\n\tcolor:#{$ArticaHotSpotSMTP["SKIN_LINK_COLOR"]};\n}\n\t\n\t\nh1 span{\n\tdisplay: none;\n}\n#content{\n\twidth: {$ArticaHotSpotSMTP["SKIN_CONTENT_WIDTH"]};\n\theight: {$ArticaHotSpotSMTP["SKIN_CONTENT_HEIGHT"]};\n\tbackground: {$contentBack};\n\t{$contentBorders}\n}\n.f{\n\tpadding: 23px 23px 45px 38px;\n\toverflow: hidden;\n}\n.field{\n\tclear:both;\n\ttext-align: right;\n\tmargin-bottom: 10px;\n}\n.field label{\n\tfloat:left;\n\tfont-weight: bold;\n\tline-height: 42px;\n}\n\t\n.field input.active{\n\tbackground: url('{$prefix}/ressources/templates/Squid/i/input_act.png') no-repeat;\n}\n.button{\n\twidth: 450px;\n\tfloat: right;\n}\n.button input{\n\twidth: 69px;\n\tbackground: url('{$prefix}/ressources/templates/Squid/i/btn_bg.png') no-repeat;\n\tborder: 0;\n\tfont-weight: bold;\n\theight: 27px;\n\tfloat: left;\n\tpadding: 0;\n}\n\t\n.Button2014-lg {\n\tborder-radius: 6px 6px 6px 6px;\n\t-moz-border-radius: 6px 6px 6px 6px;\n\t-khtml-border-radius: 6px 6px 6px 6px;\n\t-webkit-border-radius: 6px 6px 6px 6px;\n\tfont-size: {$btsize};\n\tline-height: 1.33;\n\tpadding: 10px 16px;\n}\n.Button2014-success {\n\tbackground-color: #5CB85C;\n\tborder-color: #4CAE4C;\n\tcolor: #FFFFFF;\n}\n.Button2014 {\n\t-moz-user-select: none;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px 4px 4px 4px;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tfont-size: 14px;\n\tfont-weight: normal;\n\tline-height: 1.42857;\n\tmargin-bottom: 0;\n\tpadding: 6px 22px;\n\ttext-align: center;\n\tvertical-align: middle;\n\twhite-space: nowrap;\n}\n\t\n.form-horizontal .control-label {\n\tfloat: left;\n\tfont-size: 14px;\n\tpadding-top: 5px;\n\ttext-align: right;\n\twidth: 240px;\n}\n.form-horizontal .controls {\n\tmargin-left: 250px;\n\t}\n\n.form-horizontal button, input, select, textarea {\n\tfont-size: 100%;\n\tmargin: 0;\n\tvertical-align: middle;\n}\n.form-horizontal button, input {\n\tline-height: normal;\n\t}\n.form-horizontal label, select, button, input[type=\"button\"], input[type=\"reset\"], input[type=\"submit\"], input[type=\"radio\"], input[type=\"checkbox\"] {\ncursor: pointer;\n}\n.form-horizontal input, textarea, .uneditable-input {\n\twidth: 250px;\n\t}\n.form-horizontal textarea {\n\theight: auto;\n}\n.form-horizontal input[type=\"checkbox\"], input[type=\"radio\"] {\n\tborder: 1px solid #CCCCCC;\n\t}\n\t.form-horizontal textarea, input[type=\"text\"], input[type=\"password\"], input[type=\"datetime\"], input[type=\"datetime-local\"], input[type=\"date\"], input[type=\"month\"], input[type=\"time\"], input[type=\"week\"], input[type=\"number\"], input[type=\"email\"], input[type=\"url\"], input[type=\"search\"], input[type=\"tel\"], input[type=\"color\"], .uneditable-input {\n\tbackground-color: #FFFFFF;\n\tborder: 1px solid #CCCCCC;\n\tbox-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;\n\ttransition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;\n\t}\n\t.form-horizontal textarea:focus, input[type=\"text\"]:focus, input[type=\"password\"]:focus, input[type=\"datetime\"]:focus, input[type=\"datetime-local\"]:focus, input[type=\"date\"]:focus, input[type=\"month\"]:focus, input[type=\"time\"]:focus, input[type=\"week\"]:focus, input[type=\"number\"]:focus, input[type=\"email\"]:focus, input[type=\"url\"]:focus, input[type=\"search\"]:focus, input[type=\"tel\"]:focus, input[type=\"color\"]:focus, .uneditable-input:focus {\n\tborder-color: rgba(82, 168, 236, 0.8);\n\tbox-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);\n\toutline: 0 none;\n\t}\n\t.form-horizontal textarea {\n\toverflow: auto;\n\tvertical-align: top;\n\t}\n\t.form-horizontal h1, h2, h3, h4, h5, h6 {\n\tcolor: inherit;\n\tfont-family: inherit;\n\tfont-weight: bold;\n\tline-height: 20px;\n\tmargin: 10px 0;\n\ttext-rendering: optimizelegibility;\n\t}\n\t.form-horizontal h1, h2, h3, h4, h5, h6 *:first-letter {\n\ttext-transform: capitalize;\n\t}\n\t.form-horizontal legend {\n\t-moz-border-bottom-colors: none;\n\t-moz-border-left-colors: none;\n\t-moz-border-right-colors: none;\n\t-moz-border-top-colors: none;\n\tborder-color: -moz-use-text-color -moz-use-text-color #E5E5E5;\n\tborder-image: none;\n\tborder-style: none none solid;\n\tborder-width: 0 0 1px;\n\tcolor: #333333;\n\tdisplay: block;\n\tfont-size: 21px;\n\tline-height: 40px;\n\tmargin-bottom: 20px;\n\tpadding: 0;\n\twidth: 100%;\n\t}\n\t\n\t\n\t.form-horizontal label, input, button, select, textarea {\n\tfont-size: 14px;\n\tfont-weight: normal;\n\tline-height: 20px;\n\t}\n\t.form-horizontal input, button, select, textarea {\n\tfont-family: 'Lucida Grande',Arial,Helvetica,sans-serif;\n\t}\n\tlabel {\n\tdisplay: block;\n\tmargin-bottom: 5px;\n\t}\n\t.form-horizontal select, textarea, input[type=\"text\"], input[type=\"password\"], input[type=\"datetime\"], input[type=\"datetime-local\"], input[type=\"date\"], input[type=\"month\"], input[type=\"time\"], input[type=\"week\"], input[type=\"number\"], input[type=\"email\"], input[type=\"url\"], input[type=\"search\"], input[type=\"tel\"], input[type=\"color\"], .uneditable-input {\n\tborder-radius: 4px 4px 4px 4px;\n\tcolor: #555555;\n\tdisplay: inline-block;\n\tfont-size: 14px;\n\theight: auto;\n\tline-height: 20px;\n\tmargin-bottom: 10px;\n\tpadding: 4px 6px;\n\tvertical-align: middle;\n\t}\n\t.form-horizontal textarea, input[type=\"text\"], input[type=\"password\"], input[type=\"datetime\"], input[type=\"datetime-local\"], input[type=\"date\"], input[type=\"month\"], input[type=\"time\"], input[type=\"week\"], input[type=\"number\"], input[type=\"email\"], input[type=\"url\"], input[type=\"search\"], input[type=\"tel\"], input[type=\"color\"], .uneditable-input {\n\tbackground-color: #FFFFFF;\n\tborder: 1px solid #CCCCCC;\n\tbox-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;\n\ttransition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;\n\t}\n\t.form-horizontal textarea:focus, input[type=\"text\"]:focus, input[type=\"password\"]:focus, input[type=\"datetime\"]:focus, input[type=\"datetime-local\"]:focus, input[type=\"date\"]:focus, input[type=\"month\"]:focus, input[type=\"time\"]:focus, input[type=\"week\"]:focus, input[type=\"number\"]:focus, input[type=\"email\"]:focus, input[type=\"url\"]:focus, input[type=\"search\"]:focus, input[type=\"tel\"]:focus, input[type=\"color\"]:focus, .uneditable-input:focus {\n\tborder-color: rgba(82, 168, 236, 0.8);\n\tbox-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);\n\toutline: 0 none;\n\t}\n\t\n\ta.Button2014, a.Button2014:link, a.Button2014:visited, a.Button2014:hover{\n\tcolor: #FFFFFF;\n\ttext-decoration:none;\n\t}\n\t\n\t.Button2014-success {\n\tbackground-color: #{$ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR"]} !important;\n\tborder-color: #{$ArticaHotSpotSMTP["SKIN_BUTTON_BD_COLOR"]} !important;\n\tcolor: #{$ArticaHotSpotSMTP["SKIN_BUTTON_TXT_COLOR"]} !important;\n\t}\n\t.Button2014-success:hover, .Button2014-success:focus, .Button2014-success:active, .Button2014-success.active, .open .dropdown-toggle.Button2014-success {\n\tbackground-color: #{$ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR_HOVER"]} !important;\n\tborder-color: #{$ArticaHotSpotSMTP["SKIN_BUTTON_BD_COLOR"]} !important;\n\tcolor: #{$ArticaHotSpotSMTP["SKIN_BUTTON_TXT_COLOR"]} !important;\n\t}\n\t.Button2014-success:active, .Button2014-success.active, .open .dropdown-toggle.Button2014-success {\n\tbackground-image: none;\n\t}\n\t.Button2014-success.disabled, .Button2014-success[disabled], fieldset[disabled] .Button2014-success, .Button2014-success.disabled:hover, .Button2014-success[disabled]:hover, fieldset[disabled] .Button2014-success:hover, .Button2014-success.disabled:focus, .Button2014-success[disabled]:focus, fieldset[disabled] .Button2014-success:focus, .Button2014-success.disabled:active, .Button2014-success[disabled]:active, fieldset[disabled] .Button2014-success:active, .Button2014-success.disabled.active, .Button2014-success.active[disabled], fieldset[disabled] .Button2014-success.active {\n\tbackground-color: #{$ArticaHotSpotSMTP["SKIN_BUTTON_BG_COLOR"]} !important;\n\tborder-color: #{$ArticaHotSpotSMTP["SKIN_BUTTON_BD_COLOR"]} !important;\n\t}\n\t\t\n\t\t\n.field input {\n\tbackground: url(\"{$prefix}/ressources/templates/Squid/i/input.png\") no-repeat scroll 0 0 #FFFFFF;\n\tborder: medium none;\n\tcolor: #444444;\n\tfont-size: 18px;\n\tfont-weight: bolder;\n\theight: 25px;\n\toutline: medium none;\n\tpadding: 7px 9px 8px;\n\twidth: 279px;\n}\n\t\n.input-block-level {\n\tdisplay: block;\n\twidth: 100%;\n\tmin-height: 30px;\n\t-webkit-box-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\t}\n\t"; $css[] = "div .form {"; if (!$ASIE) { $css[] = "background: -moz-linear-gradient(center top , #F1F1F1 0px, #FFFFFF 45px) repeat scroll 0 0 transparent;\n background: -webkit-gradient(linear, center top, center bottom, from(#F1F1F1), to(#FFFFFF)) repeat scroll 0 0 transparent;\n\tbackground: -webkit-linear-gradient( #F1F1F1, #FFFFFF) repeat scroll 0 0 transparent;\n\tbackground: -o-linear-gradient(#F1F1F1, #FFFFFF) repeat scroll 0 0 transparent;\n\tbackground: -ms-linear-gradient(#F1F1F1, #ffffff) repeat scroll 0 0 transparent;\n\tbackground: linear-gradient(#F1F1F1, #ffffff) repeat scroll 0 0 transparent;\n"; } if ($ASIE) { $css[] = "filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F1F1F1', endColorstr='#ffffff');"; $css[] = "/* behavior:url({$prefix}/css/border-radius.htc); */"; } $css[] = "border: 1px solid #DDDDDD;\n\tborder-radius: 5px 5px 5px 5px;\n \t-moz-border-radius: 5px 5px 5px 5px;\n -khtml-border-radius: 5px 5px 5px 5px;\n -webkit-border-radius: 5px 5px 5px 5px;\n box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);\n margin: 5px;\n padding: 5px;\n}"; if ($ArticaHotSpotSMTP["SKIN_COMPANY_NAME_BG_COLOR"] != null) { $css[] = ".footer{\n\tborder-radius: 5px 5px 5px 5px;\n \t-moz-border-radius: 5px 5px 5px 5px;\n -khtml-border-radius: 5px 5px 5px 5px;\n -webkit-border-radius: 5px 5px 5px 5px;\n box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);\n margin: 5px;\n padding: 5px;\n\tbackground-color:#{$ArticaHotSpotSMTP["SKIN_COMPANY_NAME_BG_COLOR"]};\n}"; } $cssContent = @implode("\n", $css); $f[] = "<!DOCTYPE html>"; $f[] = "<html lang=\"en\">"; $f[] = "<head>"; $f[] = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=9; IE=8\">"; $f[] = "<meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-type\" />"; $f[] = "{$headerAdd}"; $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/artica-theme/jquery-ui.custom.css\" />"; $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/jquery.jgrowl.css\" />"; $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/jquery.cluetip.css\" />"; $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/jquery.treeview.css\" />"; $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/thickbox.css\" media=\"screen\"/>"; $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/jquery.qtip.css\" />"; if ($GLOBALS["AS_ROOT"]) { $f[] = "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"{$prefix}/css/hotspot.css\" />"; @file_put_contents("/usr/share/artica-postfix/css/hotspot.css", $cssContent); @chmod("/usr/share/artica-postfix/css/hotspot.css", 0755); $cssContent = null; } $f[] = "<style type=\"text/css\">"; $f[] = "{$cssContent}"; $f[] = "\t</style>"; $f[] = "<title>{$ArticaSplashHotSpotTitle}</title>"; $f[] = "<!-- HEAD TITLE: ressources/templates/Wordpress/TITLE -->"; $f[] = "<link rel=\"icon\" href=\"/ressources/templates/Wordpress/favicon.ico\" type=\"image/x-icon\" />"; $f[] = "<link rel=\"shortcut icon\" href=\"/ressources/templates/Wordpress/favicon.ico\" type=\"image/x-icon\" />"; $f[] = "<!-- Prepend: -->"; $f[] = "<link rel=\"icon\" type=\"image/x-icon\" href=\"ressources/templates/default/favicon.ico\" />"; $f[] = "<!--[if IE]><link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"ressources/templates/default/favicon.ico\" /><![endif]-->"; $f[] = "<script type=\"text/javascript\" language=\"javascript\" src=\"{$prefix}/js/jquery-1.8.3.js\"></script>"; $f[] = "<script type=\"text/javascript\" language=\"javascript\" src=\"{$prefix}/js/jquery-ui-1.8.22.custom.min.js\"></script>"; $f[] = "<script type=\"text/javascript\" language=\"javascript\" src=\"{$prefix}/default.js\"></script>"; $f[] = "<script type=\"text/javascript\" language=\"javascript\" src=\"{$prefix}/js/rloader1.5.4_min.js\"></script>"; $f[] = "<script type=\"text/javascript\" language=\"javascript\">\t\t\$.rloader([ {src:'/mouse.js'},"; $f[] = "\t{src:'{$prefix}/js/md5.js'},"; $f[] = "\t{src:'{$prefix}/TimersLogs.js'},"; $f[] = "\t{src:'{$prefix}/js/cookies.js'},"; $f[] = "\t{src:'{$prefix}/js/thickbox-compressed.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.jgrowl_minimized.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.cluetip.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.treeview.min.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.treeview.async.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.tools.min.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.cookie.js'},"; $f[] = "\t{src:'{$prefix}/js/jquery.watermark.min.js'},"; $f[] = "\t{src:'{$prefix}/bootstrap/js/bootstrap-tab.js'},"; $f[] = "\t{src:'{$prefix}/bootstrap/js/bootstrap-tooltip.js'},"; $f[] = "\t{src:'{$prefix}/bootstrap/js/bootstrap-button.js'} ]);</script>"; $f[] = "<script type=\"text/javascript\" language=\"javascript\" src=\"{$prefix}/XHRConnection.js\"></script>"; $f[] = "</head>"; $f[] = ""; $f[] = "<body>"; $f[] = "<div style=\"postition:absolute;top:0px;left:80%;width:100%\">"; $f[] = "<table style='width:100%;padding:0px;margin:0px'>"; $f[] = "<tbody><tr>"; $f[] = "<td width=100%> <td>"; $f[] = "<td width=1% nowrap><div id=\"user_info\" style='text-align:right;width:90px'>"; $f[] = " <div id=\"langs\" style=\"text-align:right;\">"; $f[] = "\t"; $f[] = " </div>"; $f[] = "</div>"; $f[] = "</td>"; $f[] = "</tr>"; $f[] = "</tbody>"; $f[] = "</table>"; $f[] = "</div>"; $f[] = ""; $f[] = " <div id=\"sum\">"; $f[] = " <div id=\"header\">"; $f[] = " <h1><span>{$hostname}</span></h1>"; $f[] = " </div>"; $f[] = "{$error}"; $f[] = "{$content}"; if (!$users->CORP_LICENSE) { $ArticaHotSpotSMTP["SKIN_COMPANY_NAME"] = "\t\t\t\t\t<span style='color:white'>\n\t\t\t\t\t\t<center style='margin:5px;font-size:{$ArticaHotSpotSMTP["SKIN_COMPANY_NAME_FONT_SIZE"]};padding:5px;'>- {$hostname} -</center>\n\t\t\t\t\t\t<center style='margin:5px;font-size:{$ArticaHotSpotSMTP["SKIN_COMPANY_NAME_FONT_SIZE"]};padding:5px;\n\t\t\t\t\t\tborder-top:1px solid white;border-bottom:1px solid white'>- ArticaTech -</center>\n\t\t\t\tCopyright 2003 - " . date("Y") . " <a href=\"http://www.articatech.com\" style='color:white'>Artica Tech</a>\n\t\t\t\t"; } $f[] = ""; $f[] = " <div class=\"footer\">"; $f[] = " \t<center style='font-size:{$ArticaHotSpotSMTP["SKIN_COMPANY_NAME_FONT_SIZE"]};color:white'>{$ArticaHotSpotSMTP["SKIN_COMPANY_NAME"]}</center>"; $f[] = " </div><!-- /#footer -->"; $f[] = " </div>"; $f[] = ""; $f[] = "</body>"; $f[] = "</html>"; return @implode("\n", $f); }
function wifidog_password_perform() { $tpl = new templates(); $q = new mysql_hotspot(); $sessionkey = $_REQUEST["sessionkey"]; if ($sessionkey == null) { return wifidog_password("Missing field sessionkey"); } $url = $_REQUEST["url"]; $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT uid FROM hotspot_members WHERE `sessionkey`='{$sessionkey}'")); if ($ligne["uid"] == null) { echo BuildFullPage(null, "<center>{this_account_didnot_exists}<hr><span style='font-size:12px'>{$sessionkey}</span></center>", "<META http-equiv=\"refresh\" content=\"5; URL={$url}\">"); return; } $password2 = trim($_POST["password2"]); $password = trim($_POST["password"]); if ($password2 != $password) { return wifidog_password("{password_mismatch}"); } $password = md5($password); $sql = "UPDATE hotspot_members\n\tSET autocreate_confirmed=1,\n\t\tautocreate=1,\n\t\tpassword='******'\n\t\tWHERE sessionkey='{$sessionkey}'"; $q->QUERY_SQL($sql); if (!$q->ok) { return wifidog_password($q->mysql_error_html()); } $ArticaHotSpotSMTP = SMTP_SETTINGS(); $btsize = $ArticaHotSpotSMTP["SKIN_BUTTON_SIZE"]; $fontsize = $ArticaHotSpotSMTP["SKIN_FONT_SIZE"]; $text_form = "\n\t<div style='width:98%' class=form>\n\t<center>\n\t<div style='font-size:{$fontsize}'><center>{updated_password_successfully}<br>{$url}</center></div>\n\t<img src='hotspot.php?imgload=wait_verybig_mini_red.gif'></center></div>"; $text_form = $tpl->_ENGINE_parse_body($text_form); if (!preg_match("#^http#", $url)) { $url = "http://{$url}"; } echo BuildFullPage($text_form, null, "<META http-equiv=\"refresh\" content=\"5; URL={$url}\">"); }