login.tpl.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <?php
  2. /* Copyright (C) 2009-2015 Regis Houssin <regis.houssin@inodbox.com>
  3. * Copyright (C) 2011-2022 Laurent Destailleur <eldy@users.sourceforge.net>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. // Need global variable $urllogo, $title and $titletruedolibarrversion to be defined by caller (like dol_loginfunction in security2.lib.php)
  19. // Caller can also set $morelogincontent = array(['options']=>array('js'=>..., 'table'=>...);
  20. // $titletruedolibarrversion must be defined
  21. if (!defined('NOBROWSERNOTIF')) {
  22. define('NOBROWSERNOTIF', 1);
  23. }
  24. // Protection to avoid direct call of template
  25. if (empty($conf) || !is_object($conf)) {
  26. print "Error, template page can't be called as URL";
  27. exit;
  28. }
  29. // DDOS protection
  30. $size = (empty($_SERVER['CONTENT_LENGTH']) ? 0 : (int) $_SERVER['CONTENT_LENGTH']);
  31. if ($size > 10000) {
  32. $langs->loadLangs(array("errors", "install"));
  33. httponly_accessforbidden('<center>'.$langs->trans("ErrorRequestTooLarge").'.<br><a href="'.DOL_URL_ROOT.'">'.$langs->trans("ClickHereToGoToApp").'</a></center>', 413, 1);
  34. }
  35. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  36. header('Cache-Control: Public, must-revalidate');
  37. header("Content-type: text/html; charset=".$conf->file->character_set_client);
  38. if (GETPOST('dol_hide_topmenu')) {
  39. $conf->dol_hide_topmenu = 1;
  40. }
  41. if (GETPOST('dol_hide_leftmenu')) {
  42. $conf->dol_hide_leftmenu = 1;
  43. }
  44. if (GETPOST('dol_optimize_smallscreen')) {
  45. $conf->dol_optimize_smallscreen = 1;
  46. }
  47. if (GETPOST('dol_no_mouse_hover')) {
  48. $conf->dol_no_mouse_hover = 1;
  49. }
  50. if (GETPOST('dol_use_jmobile')) {
  51. $conf->dol_use_jmobile = 1;
  52. }
  53. // If we force to use jmobile, then we reenable javascript
  54. if (!empty($conf->dol_use_jmobile)) {
  55. $conf->use_javascript_ajax = 1;
  56. }
  57. $php_self = empty($php_self) ? dol_escape_htmltag($_SERVER['PHP_SELF']) : $php_self;
  58. $php_self .= dol_escape_htmltag($_SERVER["QUERY_STRING"]) ? '?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]) : '';
  59. if (!preg_match('/mainmenu=/', $php_self)) {
  60. $php_self .= (preg_match('/\?/', $php_self) ? '&' : '?').'mainmenu=home';
  61. }
  62. if (preg_match('/'.preg_quote('core/modules/oauth', '/').'/', $php_self)) {
  63. $php_self = DOL_URL_ROOT.'/index.php?mainmenu=home';
  64. }
  65. $php_self = preg_replace('/(\?|&amp;|&)action=[^&]+/', '\1', $php_self);
  66. $php_self = preg_replace('/(\?|&amp;|&)massaction=[^&]+/', '\1', $php_self);
  67. $php_self = preg_replace('/(\?|&amp;|&)token=[^&]+/', '\1', $php_self);
  68. // Javascript code on logon page only to detect user tz, dst_observed, dst_first, dst_second
  69. $arrayofjs = array(
  70. '/includes/jstz/jstz.min.js'.(empty($conf->dol_use_jmobile) ? '' : '?version='.urlencode(DOL_VERSION)),
  71. '/core/js/dst.js'.(empty($conf->dol_use_jmobile) ? '' : '?version='.urlencode(DOL_VERSION))
  72. );
  73. // We display application title instead Login term
  74. if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
  75. $titleofloginpage = $conf->global->MAIN_APPLICATION_TITLE;
  76. } else {
  77. $titleofloginpage = $langs->trans('Login');
  78. }
  79. $titleofloginpage .= ' @ '.$titletruedolibarrversion; // $titletruedolibarrversion is defined by dol_loginfunction in security2.lib.php. We must keep the @, some tools use it to know it is login page and find true dolibarr version.
  80. $disablenofollow = 1;
  81. if (!preg_match('/'.constant('DOL_APPLICATION_TITLE').'/', $title)) {
  82. $disablenofollow = 0;
  83. }
  84. if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
  85. $disablenofollow = 0;
  86. }
  87. print top_htmlhead('', $titleofloginpage, 0, 0, $arrayofjs, array(), 1, $disablenofollow);
  88. $colorbackhmenu1 = '60,70,100'; // topmenu
  89. if (!isset($conf->global->THEME_ELDY_TOPMENU_BACK1)) {
  90. $conf->global->THEME_ELDY_TOPMENU_BACK1 = $colorbackhmenu1;
  91. }
  92. $colorbackhmenu1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (empty($conf->global->THEME_ELDY_TOPMENU_BACK1) ? $colorbackhmenu1 : $conf->global->THEME_ELDY_TOPMENU_BACK1) : (empty($user->conf->THEME_ELDY_TOPMENU_BACK1) ? $colorbackhmenu1 : $user->conf->THEME_ELDY_TOPMENU_BACK1);
  93. $colorbackhmenu1 = join(',', colorStringToArray($colorbackhmenu1)); // Normalize value to 'x,y,z'
  94. print "<!-- BEGIN PHP TEMPLATE LOGIN.TPL.PHP -->\n";
  95. if (!empty($conf->global->ADD_UNSPLASH_LOGIN_BACKGROUND)) {
  96. // For example $conf->global->ADD_UNSPLASH_LOGIN_BACKGROUND = 'https://source.unsplash.com/random'
  97. ?>
  98. <body class="body bodylogin" style="background-image: url('<?php echo dol_escape_htmltag($conf->global->ADD_UNSPLASH_LOGIN_BACKGROUND); ?>'); background-repeat: no-repeat; background-position: center center; background-attachment: fixed; background-size: cover; background-color: #ffffff;">
  99. <?php
  100. } else {
  101. ?>
  102. <body class="body bodylogin"<?php print empty($conf->global->MAIN_LOGIN_BACKGROUND) ? '' : ' style="background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; background-image: url(\''.DOL_URL_ROOT.'/viewimage.php?cache=1&noalt=1&modulepart=mycompany&file=logos/'.urlencode($conf->global->MAIN_LOGIN_BACKGROUND).'\')"'; ?>>
  103. <?php
  104. }
  105. ?>
  106. <?php if (empty($conf->dol_use_jmobile)) { ?>
  107. <script>
  108. $(document).ready(function () {
  109. /* Set focus on correct field */
  110. <?php if ($focus_element) {
  111. ?>$('#<?php echo $focus_element; ?>').focus(); <?php
  112. } ?> // Warning to use this only on visible element
  113. });
  114. </script>
  115. <?php } ?>
  116. <div class="login_center center"<?php print empty($conf->global->MAIN_LOGIN_BACKGROUND) ? ' style="background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; background-image: linear-gradient(rgb('.$colorbackhmenu1.',0.3), rgb(240,240,240));"' : '' ?>>
  117. <div class="login_vertical_align">
  118. <form id="login" name="login" method="post" action="<?php echo $php_self; ?>">
  119. <input type="hidden" name="token" value="<?php echo newToken(); ?>" />
  120. <input type="hidden" name="actionlogin" value="login">
  121. <input type="hidden" name="loginfunction" value="loginfunction" />
  122. <!-- Add fields to store and send local user information. This fields are filled by the core/js/dst.js -->
  123. <input type="hidden" name="tz" id="tz" value="" />
  124. <input type="hidden" name="tz_string" id="tz_string" value="" />
  125. <input type="hidden" name="dst_observed" id="dst_observed" value="" />
  126. <input type="hidden" name="dst_first" id="dst_first" value="" />
  127. <input type="hidden" name="dst_second" id="dst_second" value="" />
  128. <input type="hidden" name="screenwidth" id="screenwidth" value="" />
  129. <input type="hidden" name="screenheight" id="screenheight" value="" />
  130. <input type="hidden" name="dol_hide_topmenu" id="dol_hide_topmenu" value="<?php echo $dol_hide_topmenu; ?>" />
  131. <input type="hidden" name="dol_hide_leftmenu" id="dol_hide_leftmenu" value="<?php echo $dol_hide_leftmenu; ?>" />
  132. <input type="hidden" name="dol_optimize_smallscreen" id="dol_optimize_smallscreen" value="<?php echo $dol_optimize_smallscreen; ?>" />
  133. <input type="hidden" name="dol_no_mouse_hover" id="dol_no_mouse_hover" value="<?php echo $dol_no_mouse_hover; ?>" />
  134. <input type="hidden" name="dol_use_jmobile" id="dol_use_jmobile" value="<?php echo $dol_use_jmobile; ?>" />
  135. <!-- Title with version -->
  136. <div class="login_table_title center" title="<?php echo dol_escape_htmltag($title); ?>">
  137. <?php
  138. if ($disablenofollow) {
  139. echo '<a class="login_table_title" href="https://www.dolibarr.org" target="_blank" rel="noopener noreferrer external">';
  140. }
  141. echo dol_escape_htmltag($title);
  142. if ($disablenofollow) {
  143. echo '</a>';
  144. }
  145. ?>
  146. </div>
  147. <div class="login_table">
  148. <div id="login_line1">
  149. <div id="login_left">
  150. <img alt="" src="<?php echo $urllogo; ?>" id="img_logo" />
  151. </div>
  152. <br>
  153. <div id="login_right">
  154. <div class="tagtable left centpercent" title="<?php echo $langs->trans("EnterLoginDetail"); ?>">
  155. <!-- Login -->
  156. <div class="trinputlogin">
  157. <div class="tagtd nowraponall center valignmiddle tdinputlogin">
  158. <?php if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
  159. ?><label for="username" class="hidden"><?php echo $langs->trans("Login"); ?></label><?php
  160. } ?>
  161. <!-- <span class="span-icon-user">-->
  162. <span class="fa fa-user"></span>
  163. <input type="text" id="username" maxlength="255" placeholder="<?php echo $langs->trans("Login"); ?>" name="username" class="flat input-icon-user minwidth150" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" autofocus="autofocus" />
  164. </div>
  165. </div>
  166. <!-- Password -->
  167. <div class="trinputlogin">
  168. <div class="tagtd nowraponall center valignmiddle tdinputlogin">
  169. <?php if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
  170. ?><label for="password" class="hidden"><?php echo $langs->trans("Password"); ?></label><?php
  171. } ?>
  172. <!--<span class="span-icon-password">-->
  173. <span class="fa fa-key"></span>
  174. <input type="password" id="password" maxlength="128" placeholder="<?php echo $langs->trans("Password"); ?>" name="password" class="flat input-icon-password minwidth150" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" autocomplete="<?php echo empty($conf->global->MAIN_LOGIN_ENABLE_PASSWORD_AUTOCOMPLETE) ? 'off' : 'on'; ?>" />
  175. </div></div>
  176. <?php
  177. if (!empty($captcha)) {
  178. // Add a variable param to force not using cache (jmobile)
  179. $php_self = preg_replace('/[&\?]time=(\d+)/', '', $php_self); // Remove param time
  180. if (preg_match('/\?/', $php_self)) {
  181. $php_self .= '&time='.dol_print_date(dol_now(), 'dayhourlog');
  182. } else {
  183. $php_self .= '?time='.dol_print_date(dol_now(), 'dayhourlog');
  184. }
  185. // TODO: provide accessible captcha variants
  186. ?>
  187. <!-- Captcha -->
  188. <div class="trinputlogin">
  189. <div class="tagtd none valignmiddle tdinputlogin nowrap">
  190. <span class="fa fa-unlock"></span>
  191. <span class="span-icon-security inline-block">
  192. <input id="securitycode" placeholder="<?php echo $langs->trans("SecurityCode"); ?>" class="flat input-icon-security width125" type="text" maxlength="5" name="code" tabindex="3" autocomplete="off" />
  193. </span>
  194. <span class="nowrap inline-block">
  195. <img class="inline-block valignmiddle" src="<?php echo DOL_URL_ROOT ?>/core/antispamimage.php" border="0" width="80" height="32" id="img_securitycode" />
  196. <a class="inline-block valignmiddle" href="<?php echo $php_self; ?>" tabindex="4" data-role="button"><?php echo $captcha_refresh; ?></a>
  197. </span>
  198. </div></div>
  199. <?php
  200. }
  201. if (!empty($morelogincontent)) {
  202. if (is_array($morelogincontent)) {
  203. foreach ($morelogincontent as $format => $option) {
  204. if ($format == 'table') {
  205. echo '<!-- Option by hook -->';
  206. echo $option;
  207. }
  208. }
  209. } else {
  210. echo '<!-- Option by hook -->';
  211. echo $morelogincontent;
  212. }
  213. }
  214. ?>
  215. </div>
  216. </div> <!-- end div login_right -->
  217. </div> <!-- end div login_line1 -->
  218. <div id="login_line2" style="clear: both">
  219. <!-- Button Connection -->
  220. <br>
  221. <div id="login-submit-wrapper">
  222. <input type="submit" class="button" value="&nbsp; <?php echo $langs->trans('Connection'); ?> &nbsp;" tabindex="5" />
  223. </div>
  224. <?php
  225. if ($forgetpasslink || $helpcenterlink) {
  226. $moreparam = '';
  227. if ($dol_hide_topmenu) {
  228. $moreparam .= (strpos($moreparam, '?') === false ? '?' : '&').'dol_hide_topmenu='.$dol_hide_topmenu;
  229. }
  230. if ($dol_hide_leftmenu) {
  231. $moreparam .= (strpos($moreparam, '?') === false ? '?' : '&').'dol_hide_leftmenu='.$dol_hide_leftmenu;
  232. }
  233. if ($dol_no_mouse_hover) {
  234. $moreparam .= (strpos($moreparam, '?') === false ? '?' : '&').'dol_no_mouse_hover='.$dol_no_mouse_hover;
  235. }
  236. if ($dol_use_jmobile) {
  237. $moreparam .= (strpos($moreparam, '?') === false ? '?' : '&').'dol_use_jmobile='.$dol_use_jmobile;
  238. }
  239. echo '<br>';
  240. echo '<div class="center" style="margin-top: 5px;">';
  241. if ($forgetpasslink) {
  242. $url = DOL_URL_ROOT.'/user/passwordforgotten.php'.$moreparam;
  243. if (!empty($conf->global->MAIN_PASSWORD_FORGOTLINK)) {
  244. $url = $conf->global->MAIN_PASSWORD_FORGOTLINK;
  245. }
  246. echo '<a class="alogin" href="'.dol_escape_htmltag($url).'">';
  247. echo $langs->trans('PasswordForgotten');
  248. echo '</a>';
  249. }
  250. if ($forgetpasslink && $helpcenterlink) {
  251. echo '&nbsp;-&nbsp;';
  252. }
  253. if ($helpcenterlink) {
  254. $url = DOL_URL_ROOT.'/support/index.php'.$moreparam;
  255. if (!empty($conf->global->MAIN_HELPCENTER_LINKTOUSE)) {
  256. $url = $conf->global->MAIN_HELPCENTER_LINKTOUSE;
  257. }
  258. echo '<a class="alogin" href="'.dol_escape_htmltag($url).'" target="_blank" rel="noopener noreferrer">';
  259. echo $langs->trans('NeedHelpCenter');
  260. echo '</a>';
  261. }
  262. echo '</div>';
  263. }
  264. if (isset($conf->file->main_authentication) && preg_match('/openid/', $conf->file->main_authentication)) {
  265. $langs->load("users");
  266. //if (!empty($conf->global->MAIN_OPENIDURL_PERUSER)) $url=
  267. echo '<br>';
  268. echo '<div class="center" style="margin-top: 4px;">';
  269. $url = $conf->global->MAIN_AUTHENTICATION_OPENID_URL;
  270. if (!empty($url)) {
  271. print '<a class="alogin" href="'.$url.'">'.$langs->trans("LoginUsingOpenID").'</a>';
  272. } else {
  273. $langs->load("errors");
  274. print '<span class="warning">'.$langs->trans("ErrorOpenIDSetupNotComplete", 'MAIN_AUTHENTICATION_OPENID_URL').'</span>';
  275. }
  276. echo '</div>';
  277. }
  278. if (isset($conf->file->main_authentication) && preg_match('/google/', $conf->file->main_authentication)) {
  279. $langs->load("users");
  280. global $dolibarr_main_url_root;
  281. // Define $urlwithroot
  282. $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
  283. $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
  284. //$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
  285. echo '<br>';
  286. echo '<div class="center" style="margin-top: 4px;">';
  287. //$shortscope = 'userinfo_email,userinfo_profile';
  288. $shortscope = 'openid,email,profile'; // For openid connect
  289. $oauthstateanticsrf = bin2hex(random_bytes(128/8));
  290. $_SESSION['oauthstateanticsrf'] = $shortscope.'-'.$oauthstateanticsrf;
  291. $urltorenew = $urlwithroot.'/core/modules/oauth/google_oauthcallback.php?shortscope='.$shortscope.'&state=forlogin-'.$shortscope.'-'.$oauthstateanticsrf;
  292. $url = $urltorenew;
  293. print img_picto('', 'google', 'class="pictofixedwidth"').'<a class="alogin" href="'.$url.'">'.$langs->trans("LoginWith", "Google").'</a>';
  294. echo '</div>';
  295. }
  296. ?>
  297. </div> <!-- end login line 2 -->
  298. </div> <!-- end login table -->
  299. </form>
  300. <?php
  301. // Show error message if defined
  302. if (!empty($_SESSION['dol_loginmesg'])) {
  303. ?>
  304. <div class="center login_main_message"><div class="error">
  305. <?php echo dol_escape_htmltag($_SESSION['dol_loginmesg']); ?>
  306. </div></div>
  307. <?php
  308. }
  309. // Add commit strip
  310. if (!empty($conf->global->MAIN_EASTER_EGG_COMMITSTRIP)) {
  311. include_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
  312. if (substr($langs->defaultlang, 0, 2) == 'fr') {
  313. $resgetcommitstrip = getURLContent("https://www.commitstrip.com/fr/feed/");
  314. } else {
  315. $resgetcommitstrip = getURLContent("https://www.commitstrip.com/en/feed/");
  316. }
  317. if ($resgetcommitstrip && $resgetcommitstrip['http_code'] == '200') {
  318. $xml = simplexml_load_string($resgetcommitstrip['content'], 'SimpleXMLElement', LIBXML_NOCDATA|LIBXML_NONET);
  319. $little = $xml->channel->item[0]->children('content', true);
  320. print preg_replace('/width="650" height="658"/', '', $little->encoded);
  321. }
  322. }
  323. ?>
  324. <?php if ($main_home) {
  325. ?>
  326. <div class="center login_main_home paddingtopbottom <?php echo empty($conf->global->MAIN_LOGIN_BACKGROUND) ? '' : ' backgroundsemitransparent boxshadow'; ?>" style="max-width: 70%">
  327. <?php echo $main_home; ?>
  328. </div><br>
  329. <?php
  330. }
  331. ?>
  332. <!-- authentication mode = <?php echo $main_authentication ?> -->
  333. <!-- cookie name used for this session = <?php echo $session_name ?> -->
  334. <!-- urlfrom in this session = <?php echo isset($_SESSION["urlfrom"]) ? $_SESSION["urlfrom"] : ''; ?> -->
  335. <!-- Common footer is not used for login page, this is same than footer but inside login tpl -->
  336. <?php
  337. if (!empty($conf->global->MAIN_HTML_FOOTER)) {
  338. print $conf->global->MAIN_HTML_FOOTER;
  339. }
  340. if (!empty($morelogincontent) && is_array($morelogincontent)) {
  341. foreach ($morelogincontent as $format => $option) {
  342. if ($format == 'js') {
  343. echo "\n".'<!-- Javascript by hook -->';
  344. echo $option."\n";
  345. }
  346. }
  347. } elseif (!empty($moreloginextracontent)) {
  348. echo '<!-- Javascript by hook -->';
  349. echo $moreloginextracontent;
  350. }
  351. // Google Analytics
  352. // TODO Add a hook here
  353. if (!empty($conf->google->enabled) && !empty($conf->global->MAIN_GOOGLE_AN_ID)) {
  354. $tmptagarray = explode(',', $conf->global->MAIN_GOOGLE_AN_ID);
  355. foreach ($tmptagarray as $tmptag) {
  356. print "\n";
  357. print "<!-- JS CODE TO ENABLE for google analtics tag -->\n";
  358. print "
  359. <!-- Global site tag (gtag.js) - Google Analytics -->
  360. <script async src=\"https://www.googletagmanager.com/gtag/js?id=".trim($tmptag)."\"></script>
  361. <script>
  362. window.dataLayer = window.dataLayer || [];
  363. function gtag(){dataLayer.push(arguments);}
  364. gtag('js', new Date());
  365. gtag('config', '".trim($tmptag)."');
  366. </script>";
  367. print "\n";
  368. }
  369. }
  370. // TODO Replace this with a hook
  371. // Google Adsense (need Google module)
  372. if (!empty($conf->google->enabled) && !empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && !empty($conf->global->MAIN_GOOGLE_AD_SLOT)) {
  373. if (empty($conf->dol_use_jmobile)) {
  374. ?>
  375. <div class="center"><br>
  376. <script><!--
  377. google_ad_client = "<?php echo $conf->global->MAIN_GOOGLE_AD_CLIENT ?>";
  378. google_ad_slot = "<?php echo $conf->global->MAIN_GOOGLE_AD_SLOT ?>";
  379. google_ad_width = <?php echo $conf->global->MAIN_GOOGLE_AD_WIDTH ?>;
  380. google_ad_height = <?php echo $conf->global->MAIN_GOOGLE_AD_HEIGHT ?>;
  381. //-->
  382. </script>
  383. <script src="//pagead2.googlesyndication.com/pagead/show_ads.js"></script>
  384. </div>
  385. <?php
  386. }
  387. }
  388. ?>
  389. </div>
  390. </div><!-- end of center -->
  391. </body>
  392. </html>
  393. <!-- END PHP TEMPLATE -->