Locked field in database
This commit is contained in:
parent
bcda984255
commit
69956021fc
10
install.php
10
install.php
@ -32,7 +32,12 @@ $default_values = array(
|
|||||||
array(
|
array(
|
||||||
'name' => 'DB_TYPE',
|
'name' => 'DB_TYPE',
|
||||||
'html' => 'dropdown',
|
'html' => 'dropdown',
|
||||||
'values' => array('mysql'=>'MySQL'),
|
'values' => array(
|
||||||
|
'mysql' => 'MySQL',
|
||||||
|
'dblib' => 'FreeTDS / Microsoft SQL Server / Sybase',
|
||||||
|
'pgsql' => 'PostgreSQL',
|
||||||
|
'sqlite' => 'SQLite'
|
||||||
|
),
|
||||||
'comment' => 'Database engine:'
|
'comment' => 'Database engine:'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
@ -243,6 +248,7 @@ $sql = array(
|
|||||||
`password` varchar(20) DEFAULT NULL,
|
`password` varchar(20) DEFAULT NULL,
|
||||||
`ip` varchar(15) NOT NULL,
|
`ip` varchar(15) NOT NULL,
|
||||||
`sticky` int(1) NOT NULL,
|
`sticky` int(1) NOT NULL,
|
||||||
|
`locked` int(1) NOT NULL,
|
||||||
UNIQUE KEY `id` (`id`)
|
UNIQUE KEY `id` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;',
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;',
|
||||||
'CREATE TABLE IF NOT EXISTS `mods` (
|
'CREATE TABLE IF NOT EXISTS `mods` (
|
||||||
@ -290,7 +296,7 @@ if (isset($_POST['submit'])) {
|
|||||||
require 'inc/functions.php';
|
require 'inc/functions.php';
|
||||||
require 'inc/display.php';
|
require 'inc/display.php';
|
||||||
require 'inc/instance-config.php';
|
require 'inc/instance-config.php';
|
||||||
require 'inc/config.php';
|
//require 'inc/config.php';
|
||||||
require 'inc/template.php';
|
require 'inc/template.php';
|
||||||
require 'inc/database.php';
|
require 'inc/database.php';
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ CREATE TABLE IF NOT EXISTS `posts_b` (
|
|||||||
`password` varchar(20) DEFAULT NULL,
|
`password` varchar(20) DEFAULT NULL,
|
||||||
`ip` varchar(15) NOT NULL,
|
`ip` varchar(15) NOT NULL,
|
||||||
`sticky` int(1) NOT NULL,
|
`sticky` int(1) NOT NULL,
|
||||||
|
`locked` int(1) NOT NULL,
|
||||||
UNIQUE KEY `id` (`id`)
|
UNIQUE KEY `id` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||||
|
|
||||||
|
@ -20,5 +20,6 @@ CREATE TABLE IF NOT EXISTS `posts_{board}` (
|
|||||||
`password` varchar(20) DEFAULT NULL,
|
`password` varchar(20) DEFAULT NULL,
|
||||||
`ip` varchar(15) NOT NULL,
|
`ip` varchar(15) NOT NULL,
|
||||||
`sticky` int(1) NOT NULL,
|
`sticky` int(1) NOT NULL,
|
||||||
|
`locked` int(1) NOT NULL,
|
||||||
UNIQUE KEY `id` (`id`)
|
UNIQUE KEY `id` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
Loading…
Reference in New Issue
Block a user