XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
page_end.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
29 require_once './include/common.inc.php';
30 $_SESSION = array();
31 setcookie( 'xo_install_user', '', null, null, null );
32 defined('XOOPS_INSTALL') or die('XOOPS Installation wizard die');
33 
34 $installer_modified = "install_remove_" . uniqid(mt_rand());
35 register_shutdown_function('install_finalize', $installer_modified);
36 
42 $_SESSION['newinstallPRO'] = XOOPS_URL.'/'.$installer_modified.'/js/prototype-1.6.0.3.js';
43 $_SESSION['newinstallINST'] = XOOPS_URL.'/'.$installer_modified.'/js/xo-installer.js';
44 if (file_exists('language/' . $wizard->language . '/style.css')) {
45  $_SESSION['newinstallCSS'] = XOOPS_URL.'/'.'language/' . $wizard->language . '/style.css';
46  $_SESSION['newinstallCSSDeflt'] = XOOPS_URL.'/'.$installer_modified.'/css/style.css';
47 } else {
48  $_SESSION['newinstallCSSDeflt'] = XOOPS_URL.'/'.$installer_modified.'/css/style.css';
49  $_SESSION['newinstallCSS'] = '';
50 }
51 
52 $js = '<script type="text/javascript">';
53 $js .= 'var newPro = '.json_encode($_SESSION["newinstallPRO"]).';';
54 $js .= 'var newINST = '.json_encode($_SESSION["newinstallINST"]).';';
55 $js .= 'var newCSS = '.json_encode($_SESSION["newinstallCSS"]).';';
56 $js .= 'var newCSS = '.json_encode($_SESSION["newinstallCSSDeflt"]).';';
57 $js .= '</script>';
58 echo $js;
59 
60 $pageHasForm = false;
61 
62 $content = "";
63 include "./language/{$wizard->language}/finish.php";
64 
65 include './include/install_tpl.php';
66 ?>