XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
install_createTables.inc.php
1
<?php
10
11
include_once
'../mainfile.php'
;
12
include_once
'./class/dbmanager.php'
;
13
14
$dbm =
new
db_manager
();
15
16
$tables = [];
17
// @todo @gigamaster replace deprecated
18
$result = $dbm->queryFromFile(
'./sql/'
. ( ( XOOPS_DB_TYPE ===
'mysqli'
) ?
'mysql'
: XOOPS_DB_TYPE ) .
'.structure.sql'
);
19
20
$wizard->assign(
'reports'
, $dbm->report() );
21
22
if
( ! $result ) {
23
$wizard->assign(
'message'
,
'<div class="confirmError">'
. _INSTALL_L114 .
'</div>'
);
24
$wizard->setBack( [
'start'
, _INSTALL_L103 ] );
25
}
else
{
26
// Database tables created
27
$wizard->assign(
'message'
,
'<div class="confirmInfo">'
. _INSTALL_L115 .
'</div>'
);
28
}
29
30
$wizard->render(
'install_createTables.tpl.php'
);
db_manager
Definition
dbmanager.php:19
html
install
wizards
install_createTables.inc.php
Generated by
1.13.2