-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
36 lines (32 loc) · 991 Bytes
/
Copy pathinstall.php
File metadata and controls
36 lines (32 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
use Subway\core\sql\Database;
/**
*
* @package WBCE - admintools
* @authors Kant (Aldus)
* @version 1.0.0
* @platform WBCE 1.6.x
* @license CC BY-SA 4.0
* @license_terms https://creativecommons.org/licenses/by-sa/4.0/
*
*/
if (defined('WB_URL'))
{
$jobs = [
"DROP TABLE IF EXISTS `{TP}mod_initial_page` "
,
"CREATE TABLE `{TP}mod_initial_page` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '1',
`init_page` varchar(255) NOT NULL DEFAULT 'pages/index.php',
`page_param` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
,
"INSERT INTO `{TP}mod_initial_page`
(id, user_id, init_page, page_param)
VALUES
(NULL, 1, 'pages/index.php', '');"
];
Database::handleJobs($jobs);
}