XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
page_tablescreate.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 defined('XOOPS_INSTALL') or die('XOOPS Installation wizard die');
31 
33 $pageHasHelp = false;
34 
35 $vars =& $_SESSION['settings'];
36 
37 include_once "../mainfile.php";
38 include_once './class/dbmanager.php';
39 $dbm = new db_manager();
40 
41 if (!$dbm->isConnectable()) {
42  $wizard->redirectToPage('-3');
43  exit();
44 }
45 
46 if ($dbm->tableExists('users')) {
47  $content = '<div class="x2-note confirmMsg">' . XOOPS_TABLES_FOUND . '</div>';
48 } else {
49  $result = $dbm->queryFromFile( './sql/' . XOOPS_DB_TYPE . '.structure.sql' );
50  $content = '<div class="x2-note successMsg">' . XOOPS_TABLES_CREATED . "</div><br />" . $dbm->report();
51 }
52 include './include/install_tpl.php';
53 ?>