diff --git a/.travis.yml b/.travis.yml
index dbd0939e..3063a826 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,54 +1,56 @@
language: php
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
+
+matrix:
+ include:
+ - php: 5.3.3
+ env: DB=mysqli
+ - php: 5.3
+ env: DB=mysqli # MyISAM
+ - php: 5.4
+ env: DB=mysqli
+ - php: 5.4
+ env: DB=mysql
+ - php: 5.4
+ env: DB=mariadb
+ - php: 5.4
+ env: DB=postgres
+ - php: 5.4
+ env: DB=sqlite3
+ - php: 5.5
+ env: DB=mysqli
+ - php: 5.6
+ env: DB=mysqli
+ - php: hhvm
+ env: DB=mysqli
+ allow_failures:
+ - php: hhvm
+ fast_finish: true
env:
- - DB=mysql
+ global:
+ - EXTNAME="board3/portal"
+ - SNIFF="0" # Should we run code sniffer on your code?
+ - IMAGE_ICC="0" # Should we run icc profile sniffer on your images?
+ - PHPBB_BRANCH="ticket/12483" # - PHPBB_BRANCH="develop-ascraeus"
branches:
except:
- master
- develop-1_0_X
+install:
+ - travis/prepare-phpbb.sh $EXTNAME $PHPBB_BRANCH
+ - cd ../../phpBB3
+ - travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH
+ - travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION
+
before_script:
- # checkout phpBB and move your extension in place
- - cd ../../
- - git clone "git://github.com/phpbb/phpbb3.git" "phpBB3"
- - mkdir phpBB3/phpBB/ext/board3
- - find -type d -name "Board3-Portal" -print | xargs -i mv {} phpBB3/phpBB/ext/board3/portal
-
- # Setup the dependencies
- - cd phpBB3/phpBB
- - php ../composer.phar install --dev --no-interaction --prefer-source
-
- # Setup the tests/travis
- - cd ext/board3/portal
- - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
- - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
- - sh -c "if [ '$DB' = 'mariadb' ]; then travis/setup-mariadb.sh; fi"
- - sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
- - travis/install-php-extensions.sh
- - phpenv rehash
- - sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi"
- - rm -R -f phpredis
+ - travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
script:
- - cd ../../../../build
- - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then ../phpBB/vendor/bin/phing sniff; fi"
- - cd ../phpBB/ext/board3/portal
- - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then php develop/spellchecker.php; fi"
- - ../../../vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
-
-matrix:
- include:
- - php: 5.4
- env: DB=mariadb
- - php: 5.4
- env: DB=postgres
+ - sh -c "if [ '$SNIFF' != '0' ]; then travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION; fi"
+ - sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi"
+ - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php
notifications:
email:
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 1d0ef6fb..e2fda74c 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -10,22 +10,20 @@
stopOnFailure="false"
syntaxCheck="false"
verbose="true"
- bootstrap="tests/bootstrap.php">
-
-
- ./tests
-
-
+ bootstrap="../../../../tests/bootstrap.php">
+
+
+ ./tests
+ ./tests/functional
+
+
+ ./tests/functional/
+
+
-
-
- slow
-
-
-
-
-
- ./tests/
-
-
+
+
+ ./tests/
+
+
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
deleted file mode 100644
index cfae11ba..00000000
--- a/tests/bootstrap.php
+++ /dev/null
@@ -1,30 +0,0 @@
-register();
-$phpbb_class_loader_ext = new \phpbb\class_loader('\\', $phpbb_root_path . 'ext/', "php");
-$phpbb_class_loader_ext->register();
-$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', $phpbb_root_path . 'phpbb/', "php");
-$phpbb_class_loader->register();
-
-require_once $phpbb_root_path . '../tests/test_framework/phpbb_test_case_helpers.' . $phpEx;
-require_once $phpbb_root_path . '../tests/test_framework/phpbb_test_case.' . $phpEx;
-require_once $phpbb_root_path . '../tests/test_framework/phpbb_database_test_case.' . $phpEx;
-require_once $phpbb_root_path . '../tests/test_framework/phpbb_database_test_connection_manager.' . $phpEx;
-require_once $phpbb_root_path . '../tests/test_framework/phpbb_functional_test_case.' . $phpEx;
diff --git a/tests/functional/portal_acp_test.php b/tests/functional/portal_acp_test.php
index f3e68829..59ea6794 100644
--- a/tests/functional/portal_acp_test.php
+++ b/tests/functional/portal_acp_test.php
@@ -15,9 +15,9 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function acp_pages_data()
@@ -34,7 +34,7 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
*/
public function test_acp_pages($mode)
{
- $crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=' . $mode . '&sid=' . $this->sid);
+ self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=' . $mode . '&sid=' . $this->sid);
}
public function test_move_first_module_up()
@@ -44,7 +44,7 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
preg_match('/module_id=(?:([0-9]{1,3}))/', $module_link, $output);
$this->assertNotEmpty($output[1]);
$module_id = $output[1];
- $crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_up&sid=' . $this->sid);
+ self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_up&sid=' . $this->sid);
}
public function test_move_last_module_down()
@@ -54,7 +54,7 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
preg_match('/module_id=(?:([0-9]{1,3}))/', $module_link, $output);
$this->assertNotEmpty($output[1]);
$module_id = $output[1];
- $crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_down&sid=' . $this->sid);
+ self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&module_id=' . $module_id . '&action=move_down&sid=' . $this->sid);
}
public function test_delete_module()
@@ -73,6 +73,6 @@ class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframewor
$crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=modules&add[center]=true&sid=' . $this->sid);
$form = $crawler->selectButton('submit')->form();
$form->setValues(array('module_classname' => $module_name));
- $crawler = self::submit($form);
+ self::submit($form);
}
}
diff --git a/tests/functional/portal_announcement_test.php b/tests/functional/portal_announcement_test.php
index 56e8035b..7610729a 100644
--- a/tests/functional/portal_announcement_test.php
+++ b/tests/functional/portal_announcement_test.php
@@ -15,9 +15,9 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function test_with_announce()
@@ -30,7 +30,7 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
if (isset($data))
{
// no errors should appear on portal
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
@@ -44,7 +44,7 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
if (isset($data))
{
// no errors should appear on portal
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
@@ -54,6 +54,6 @@ class phpbb_functional_portal_announcement_test extends \board3\portal\tests\tes
public function test_after_announce()
{
$this->logout();
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
diff --git a/tests/functional/portal_birthday_list_test.php b/tests/functional/portal_birthday_list_test.php
index 87c08a2a..cb438c89 100644
--- a/tests/functional/portal_birthday_list_test.php
+++ b/tests/functional/portal_birthday_list_test.php
@@ -15,9 +15,9 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function test_setup_birthday()
@@ -26,7 +26,7 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
$uid = $this->create_user('portal_birthday_user');
if (!$uid)
{
- $this->markIncomplete('Unable to create portal_user');
+ $this->markTestIncomplete('Unable to create portal_user');
}
$this->login('portal_birthday_user');
$crawler = self::request('GET', 'ucp.php?i=ucp_profile&mode=profile_info&sid=' . $this->sid);
@@ -36,7 +36,7 @@ class phpbb_functional_portal_birthday_list_test extends \board3\portal\tests\te
'bday_month' => date('m', time() + 86400*2),
'bday_year' => date('Y', time() + 86400*2),
));
- $crawler = self::submit($form);
+ self::submit($form);
}
/**
diff --git a/tests/functional/portal_no_error_test.php b/tests/functional/portal_no_error_test.php
index 4fe68974..d12b08a8 100644
--- a/tests/functional/portal_no_error_test.php
+++ b/tests/functional/portal_no_error_test.php
@@ -15,13 +15,13 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function test_vanilla_board()
{
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
diff --git a/tests/functional/portal_redirect_test.php b/tests/functional/portal_redirect_test.php
index 3a26bd7c..6d43a9cf 100644
--- a/tests/functional/portal_redirect_test.php
+++ b/tests/functional/portal_redirect_test.php
@@ -15,9 +15,9 @@ class phpbb_functional_portal_redirect_test extends \board3\portal\tests\testfra
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function test_redirect()
diff --git a/tests/functional/portal_visit_registered_test.php b/tests/functional/portal_visit_registered_test.php
index 22df375c..96d860da 100644
--- a/tests/functional/portal_visit_registered_test.php
+++ b/tests/functional/portal_visit_registered_test.php
@@ -15,9 +15,9 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function test_vanilla_board()
@@ -26,10 +26,10 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
$uid = $this->create_user('portal_user');
if (!$uid)
{
- $this->markIncomplete('Unable to create portal_user');
+ $this->markTestIncomplete('Unable to create portal_user');
}
$this->login('portal_user');
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
public function test_with_announce()
@@ -42,7 +42,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
if (isset($data))
{
// no errors should appear on portal
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
@@ -56,7 +56,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
if (isset($data))
{
// no errors should appear on portal
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
@@ -66,7 +66,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
public function test_after_announce()
{
$this->logout();
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
public function test_with_poll()
@@ -82,10 +82,10 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
$crawler = self::request('GET', 'app.php/portal');
$form = $crawler->selectButton('Submit vote')->form();
$form->setValues(array('vote_id' => array(1)));
- $crawler = self::submit($form);
+ self::submit($form);
// no errors should appear on portal
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
}
@@ -95,7 +95,7 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
public function test_after_poll()
{
$this->logout();
- $crawler = self::request('GET', 'app.php/portal');
+ self::request('GET', 'app.php/portal');
}
public function test_whois_online_legend()
diff --git a/tests/functional/portal_vote_poll_test.php b/tests/functional/portal_vote_poll_test.php
index c19f4d9e..9434f07e 100644
--- a/tests/functional/portal_vote_poll_test.php
+++ b/tests/functional/portal_vote_poll_test.php
@@ -15,9 +15,9 @@ class phpbb_functional_portal_vote_poll_test extends \board3\portal\tests\testfr
public function setUp()
{
parent::setUp();
+
$this->login();
$this->admin_login();
- $this->enable_board3_portal_ext();
}
public function test_with_poll()
diff --git a/tests/schemas/firebird_schema.sql b/tests/schemas/firebird_schema.sql
deleted file mode 100644
index 28649dc5..00000000
--- a/tests/schemas/firebird_schema.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-# DO NOT EDIT THIS FILE, IT IS GENERATED
-#
-# To change the contents of this file, edit
-# phpBB/develop/create_schema_files.php and
-# run it.
diff --git a/tests/schemas/mssql_schema.sql b/tests/schemas/mssql_schema.sql
deleted file mode 100644
index f88513cf..00000000
--- a/tests/schemas/mssql_schema.sql
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE, IT IS GENERATED
- *
- * To change the contents of this file, edit
- * phpBB/develop/create_schema_files.php and
- * run it.
- */
-
diff --git a/tests/schemas/mysql_40_schema.sql b/tests/schemas/mysql_40_schema.sql
deleted file mode 100644
index 28649dc5..00000000
--- a/tests/schemas/mysql_40_schema.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-# DO NOT EDIT THIS FILE, IT IS GENERATED
-#
-# To change the contents of this file, edit
-# phpBB/develop/create_schema_files.php and
-# run it.
diff --git a/tests/schemas/mysql_41_schema.sql b/tests/schemas/mysql_41_schema.sql
deleted file mode 100644
index 28649dc5..00000000
--- a/tests/schemas/mysql_41_schema.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-# DO NOT EDIT THIS FILE, IT IS GENERATED
-#
-# To change the contents of this file, edit
-# phpBB/develop/create_schema_files.php and
-# run it.
diff --git a/tests/schemas/oracle_schema.sql b/tests/schemas/oracle_schema.sql
deleted file mode 100644
index 61f5d5f9..00000000
--- a/tests/schemas/oracle_schema.sql
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE, IT IS GENERATED
- *
- * To change the contents of this file, edit
- * phpBB/develop/create_schema_files.php and
- * run it.
- */
-
-/*
- This first section is optional, however its probably the best method
- of running phpBB on Oracle. If you already have a tablespace and user created
- for phpBB you can leave this section commented out!
-
- The first set of statements create a phpBB tablespace and a phpBB user,
- make sure you change the password of the phpBB user before you run this script!!
-*/
-
-/*
-CREATE TABLESPACE "PHPBB"
- LOGGING
- DATAFILE 'E:\ORACLE\ORADATA\LOCAL\PHPBB.ora'
- SIZE 10M
- AUTOEXTEND ON NEXT 10M
- MAXSIZE 100M;
-
-CREATE USER "PHPBB"
- PROFILE "DEFAULT"
- IDENTIFIED BY "phpbb_password"
- DEFAULT TABLESPACE "PHPBB"
- QUOTA UNLIMITED ON "PHPBB"
- ACCOUNT UNLOCK;
-
-GRANT ANALYZE ANY TO "PHPBB";
-GRANT CREATE SEQUENCE TO "PHPBB";
-GRANT CREATE SESSION TO "PHPBB";
-GRANT CREATE TABLE TO "PHPBB";
-GRANT CREATE TRIGGER TO "PHPBB";
-GRANT CREATE VIEW TO "PHPBB";
-GRANT "CONNECT" TO "PHPBB";
-
-COMMIT;
-DISCONNECT;
-
-CONNECT phpbb/phpbb_password;
-*/
diff --git a/tests/schemas/postgres_schema.sql b/tests/schemas/postgres_schema.sql
deleted file mode 100644
index 3fc85898..00000000
--- a/tests/schemas/postgres_schema.sql
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE, IT IS GENERATED
- *
- * To change the contents of this file, edit
- * phpBB/develop/create_schema_files.php and
- * run it.
- */
-
-BEGIN;
-
-/*
- Domain definition
-*/
-CREATE DOMAIN varchar_ci AS varchar(255) NOT NULL DEFAULT ''::character varying;
-
-/*
- Operation Functions
-*/
-CREATE FUNCTION _varchar_ci_equal(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) = LOWER($2)' LANGUAGE SQL STRICT;
-CREATE FUNCTION _varchar_ci_not_equal(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) != LOWER($2)' LANGUAGE SQL STRICT;
-CREATE FUNCTION _varchar_ci_less_than(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) < LOWER($2)' LANGUAGE SQL STRICT;
-CREATE FUNCTION _varchar_ci_less_equal(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) <= LOWER($2)' LANGUAGE SQL STRICT;
-CREATE FUNCTION _varchar_ci_greater_than(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) > LOWER($2)' LANGUAGE SQL STRICT;
-CREATE FUNCTION _varchar_ci_greater_equals(varchar_ci, varchar_ci) RETURNS boolean AS 'SELECT LOWER($1) >= LOWER($2)' LANGUAGE SQL STRICT;
-
-/*
- Operators
-*/
-CREATE OPERATOR <(
- PROCEDURE = _varchar_ci_less_than,
- LEFTARG = varchar_ci,
- RIGHTARG = varchar_ci,
- COMMUTATOR = >,
- NEGATOR = >=,
- RESTRICT = scalarltsel,
- JOIN = scalarltjoinsel);
-
-CREATE OPERATOR <=(
- PROCEDURE = _varchar_ci_less_equal,
- LEFTARG = varchar_ci,
- RIGHTARG = varchar_ci,
- COMMUTATOR = >=,
- NEGATOR = >,
- RESTRICT = scalarltsel,
- JOIN = scalarltjoinsel);
-
-CREATE OPERATOR >(
- PROCEDURE = _varchar_ci_greater_than,
- LEFTARG = varchar_ci,
- RIGHTARG = varchar_ci,
- COMMUTATOR = <,
- NEGATOR = <=,
- RESTRICT = scalargtsel,
- JOIN = scalargtjoinsel);
-
-CREATE OPERATOR >=(
- PROCEDURE = _varchar_ci_greater_equals,
- LEFTARG = varchar_ci,
- RIGHTARG = varchar_ci,
- COMMUTATOR = <=,
- NEGATOR = <,
- RESTRICT = scalargtsel,
- JOIN = scalargtjoinsel);
-
-CREATE OPERATOR <>(
- PROCEDURE = _varchar_ci_not_equal,
- LEFTARG = varchar_ci,
- RIGHTARG = varchar_ci,
- COMMUTATOR = <>,
- NEGATOR = =,
- RESTRICT = neqsel,
- JOIN = neqjoinsel);
-
-CREATE OPERATOR =(
- PROCEDURE = _varchar_ci_equal,
- LEFTARG = varchar_ci,
- RIGHTARG = varchar_ci,
- COMMUTATOR = =,
- NEGATOR = <>,
- RESTRICT = eqsel,
- JOIN = eqjoinsel,
- HASHES,
- MERGES,
- SORT1= <);
-
-COMMIT;
-
diff --git a/tests/schemas/schema.json b/tests/schemas/schema.json
deleted file mode 100644
index 744d9e06..00000000
--- a/tests/schemas/schema.json
+++ /dev/null
@@ -1,3383 +0,0 @@
-{
- "phpbb_acl_groups": {
- "COLUMNS": {
- "group_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "auth_option_id": [
- "UINT",
- 0
- ],
- "auth_role_id": [
- "UINT",
- 0
- ],
- "auth_setting": [
- "TINT:2",
- 0
- ]
- },
- "KEYS": {
- "group_id": [
- "INDEX",
- "group_id"
- ],
- "auth_opt_id": [
- "INDEX",
- "auth_option_id"
- ],
- "auth_role_id": [
- "INDEX",
- "auth_role_id"
- ]
- }
- },
- "phpbb_acl_options": {
- "COLUMNS": {
- "auth_option_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "auth_option": [
- "VCHAR:50",
- ""
- ],
- "is_global": [
- "BOOL",
- 0
- ],
- "is_local": [
- "BOOL",
- 0
- ],
- "founder_only": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": "auth_option_id",
- "KEYS": {
- "auth_option": [
- "UNIQUE",
- [
- "auth_option"
- ]
- ]
- }
- },
- "phpbb_acl_roles": {
- "COLUMNS": {
- "role_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "role_name": [
- "VCHAR_UNI",
- ""
- ],
- "role_description": [
- "TEXT_UNI",
- ""
- ],
- "role_type": [
- "VCHAR:10",
- ""
- ],
- "role_order": [
- "USINT",
- 0
- ]
- },
- "PRIMARY_KEY": "role_id",
- "KEYS": {
- "role_type": [
- "INDEX",
- "role_type"
- ],
- "role_order": [
- "INDEX",
- "role_order"
- ]
- }
- },
- "phpbb_acl_roles_data": {
- "COLUMNS": {
- "role_id": [
- "UINT",
- 0
- ],
- "auth_option_id": [
- "UINT",
- 0
- ],
- "auth_setting": [
- "TINT:2",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "role_id",
- "auth_option_id"
- ],
- "KEYS": {
- "ath_op_id": [
- "INDEX",
- "auth_option_id"
- ]
- }
- },
- "phpbb_acl_users": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "auth_option_id": [
- "UINT",
- 0
- ],
- "auth_role_id": [
- "UINT",
- 0
- ],
- "auth_setting": [
- "TINT:2",
- 0
- ]
- },
- "KEYS": {
- "user_id": [
- "INDEX",
- "user_id"
- ],
- "auth_option_id": [
- "INDEX",
- "auth_option_id"
- ],
- "auth_role_id": [
- "INDEX",
- "auth_role_id"
- ]
- }
- },
- "phpbb_attachments": {
- "COLUMNS": {
- "attach_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "post_msg_id": [
- "UINT",
- 0
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "in_message": [
- "BOOL",
- 0
- ],
- "poster_id": [
- "UINT",
- 0
- ],
- "is_orphan": [
- "BOOL",
- 1
- ],
- "physical_filename": [
- "VCHAR",
- ""
- ],
- "real_filename": [
- "VCHAR",
- ""
- ],
- "download_count": [
- "UINT",
- 0
- ],
- "attach_comment": [
- "TEXT_UNI",
- ""
- ],
- "extension": [
- "VCHAR:100",
- ""
- ],
- "mimetype": [
- "VCHAR:100",
- ""
- ],
- "filesize": [
- "UINT:20",
- 0
- ],
- "filetime": [
- "TIMESTAMP",
- 0
- ],
- "thumbnail": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": "attach_id",
- "KEYS": {
- "filetime": [
- "INDEX",
- "filetime"
- ],
- "post_msg_id": [
- "INDEX",
- "post_msg_id"
- ],
- "topic_id": [
- "INDEX",
- "topic_id"
- ],
- "poster_id": [
- "INDEX",
- "poster_id"
- ],
- "is_orphan": [
- "INDEX",
- "is_orphan"
- ]
- }
- },
- "phpbb_banlist": {
- "COLUMNS": {
- "ban_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "ban_userid": [
- "UINT",
- 0
- ],
- "ban_ip": [
- "VCHAR:40",
- ""
- ],
- "ban_email": [
- "VCHAR_UNI:100",
- ""
- ],
- "ban_start": [
- "TIMESTAMP",
- 0
- ],
- "ban_end": [
- "TIMESTAMP",
- 0
- ],
- "ban_exclude": [
- "BOOL",
- 0
- ],
- "ban_reason": [
- "VCHAR_UNI",
- ""
- ],
- "ban_give_reason": [
- "VCHAR_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": "ban_id",
- "KEYS": {
- "ban_end": [
- "INDEX",
- "ban_end"
- ],
- "ban_user": [
- "INDEX",
- [
- "ban_userid",
- "ban_exclude"
- ]
- ],
- "ban_email": [
- "INDEX",
- [
- "ban_email",
- "ban_exclude"
- ]
- ],
- "ban_ip": [
- "INDEX",
- [
- "ban_ip",
- "ban_exclude"
- ]
- ]
- }
- },
- "phpbb_bbcodes": {
- "COLUMNS": {
- "bbcode_id": [
- "USINT",
- 0
- ],
- "bbcode_tag": [
- "VCHAR:16",
- ""
- ],
- "bbcode_helpline": [
- "VCHAR_UNI",
- ""
- ],
- "display_on_posting": [
- "BOOL",
- 0
- ],
- "bbcode_match": [
- "TEXT_UNI",
- ""
- ],
- "bbcode_tpl": [
- "MTEXT_UNI",
- ""
- ],
- "first_pass_match": [
- "MTEXT_UNI",
- ""
- ],
- "first_pass_replace": [
- "MTEXT_UNI",
- ""
- ],
- "second_pass_match": [
- "MTEXT_UNI",
- ""
- ],
- "second_pass_replace": [
- "MTEXT_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": "bbcode_id",
- "KEYS": {
- "display_on_post": [
- "INDEX",
- "display_on_posting"
- ]
- }
- },
- "phpbb_bookmarks": {
- "COLUMNS": {
- "topic_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "topic_id",
- "user_id"
- ]
- },
- "phpbb_bots": {
- "COLUMNS": {
- "bot_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "bot_active": [
- "BOOL",
- 1
- ],
- "bot_name": [
- "STEXT_UNI",
- ""
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "bot_agent": [
- "VCHAR",
- ""
- ],
- "bot_ip": [
- "VCHAR",
- ""
- ]
- },
- "PRIMARY_KEY": "bot_id",
- "KEYS": {
- "bot_active": [
- "INDEX",
- "bot_active"
- ]
- }
- },
- "phpbb_config": {
- "COLUMNS": {
- "config_name": [
- "VCHAR",
- ""
- ],
- "config_value": [
- "VCHAR_UNI",
- ""
- ],
- "is_dynamic": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": "config_name",
- "KEYS": {
- "is_dynamic": [
- "INDEX",
- "is_dynamic"
- ]
- }
- },
- "phpbb_config_text": {
- "COLUMNS": {
- "config_name": [
- "VCHAR",
- ""
- ],
- "config_value": [
- "MTEXT",
- ""
- ]
- },
- "PRIMARY_KEY": "config_name"
- },
- "phpbb_confirm": {
- "COLUMNS": {
- "confirm_id": [
- "CHAR:32",
- ""
- ],
- "session_id": [
- "CHAR:32",
- ""
- ],
- "confirm_type": [
- "TINT:3",
- 0
- ],
- "code": [
- "VCHAR:8",
- ""
- ],
- "seed": [
- "UINT:10",
- 0
- ],
- "attempts": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "session_id",
- "confirm_id"
- ],
- "KEYS": {
- "confirm_type": [
- "INDEX",
- "confirm_type"
- ]
- }
- },
- "phpbb_disallow": {
- "COLUMNS": {
- "disallow_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "disallow_username": [
- "VCHAR_UNI:255",
- ""
- ]
- },
- "PRIMARY_KEY": "disallow_id"
- },
- "phpbb_drafts": {
- "COLUMNS": {
- "draft_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "save_time": [
- "TIMESTAMP",
- 0
- ],
- "draft_subject": [
- "STEXT_UNI",
- ""
- ],
- "draft_message": [
- "MTEXT_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": "draft_id",
- "KEYS": {
- "save_time": [
- "INDEX",
- "save_time"
- ]
- }
- },
- "phpbb_ext": {
- "COLUMNS": {
- "ext_name": [
- "VCHAR",
- ""
- ],
- "ext_active": [
- "BOOL",
- 0
- ],
- "ext_state": [
- "TEXT",
- ""
- ]
- },
- "KEYS": {
- "ext_name": [
- "UNIQUE",
- "ext_name"
- ]
- }
- },
- "phpbb_extension_groups": {
- "COLUMNS": {
- "group_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "group_name": [
- "VCHAR_UNI",
- ""
- ],
- "cat_id": [
- "TINT:2",
- 0
- ],
- "allow_group": [
- "BOOL",
- 0
- ],
- "download_mode": [
- "BOOL",
- 1
- ],
- "upload_icon": [
- "VCHAR",
- ""
- ],
- "max_filesize": [
- "UINT:20",
- 0
- ],
- "allowed_forums": [
- "TEXT",
- ""
- ],
- "allow_in_pm": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": "group_id"
- },
- "phpbb_extensions": {
- "COLUMNS": {
- "extension_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "group_id": [
- "UINT",
- 0
- ],
- "extension": [
- "VCHAR:100",
- ""
- ]
- },
- "PRIMARY_KEY": "extension_id"
- },
- "phpbb_forums": {
- "COLUMNS": {
- "forum_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "parent_id": [
- "UINT",
- 0
- ],
- "left_id": [
- "UINT",
- 0
- ],
- "right_id": [
- "UINT",
- 0
- ],
- "forum_parents": [
- "MTEXT",
- ""
- ],
- "forum_name": [
- "STEXT_UNI",
- ""
- ],
- "forum_desc": [
- "TEXT_UNI",
- ""
- ],
- "forum_desc_bitfield": [
- "VCHAR:255",
- ""
- ],
- "forum_desc_options": [
- "UINT:11",
- 7
- ],
- "forum_desc_uid": [
- "VCHAR:8",
- ""
- ],
- "forum_link": [
- "VCHAR_UNI",
- ""
- ],
- "forum_password": [
- "VCHAR:255",
- ""
- ],
- "forum_style": [
- "UINT",
- 0
- ],
- "forum_image": [
- "VCHAR",
- ""
- ],
- "forum_rules": [
- "TEXT_UNI",
- ""
- ],
- "forum_rules_link": [
- "VCHAR_UNI",
- ""
- ],
- "forum_rules_bitfield": [
- "VCHAR:255",
- ""
- ],
- "forum_rules_options": [
- "UINT:11",
- 7
- ],
- "forum_rules_uid": [
- "VCHAR:8",
- ""
- ],
- "forum_topics_per_page": [
- "TINT:4",
- 0
- ],
- "forum_type": [
- "TINT:4",
- 0
- ],
- "forum_status": [
- "TINT:4",
- 0
- ],
- "forum_last_post_id": [
- "UINT",
- 0
- ],
- "forum_last_poster_id": [
- "UINT",
- 0
- ],
- "forum_last_post_subject": [
- "STEXT_UNI",
- ""
- ],
- "forum_last_post_time": [
- "TIMESTAMP",
- 0
- ],
- "forum_last_poster_name": [
- "VCHAR_UNI",
- ""
- ],
- "forum_last_poster_colour": [
- "VCHAR:6",
- ""
- ],
- "forum_flags": [
- "TINT:4",
- 32
- ],
- "display_on_index": [
- "BOOL",
- 1
- ],
- "enable_indexing": [
- "BOOL",
- 1
- ],
- "enable_icons": [
- "BOOL",
- 1
- ],
- "enable_prune": [
- "BOOL",
- 0
- ],
- "prune_next": [
- "TIMESTAMP",
- 0
- ],
- "prune_days": [
- "UINT",
- 0
- ],
- "prune_viewed": [
- "UINT",
- 0
- ],
- "prune_freq": [
- "UINT",
- 0
- ],
- "display_subforum_list": [
- "BOOL",
- 1
- ],
- "forum_options": [
- "UINT:20",
- 0
- ],
- "forum_posts_approved": [
- "UINT",
- 0
- ],
- "forum_posts_unapproved": [
- "UINT",
- 0
- ],
- "forum_posts_softdeleted": [
- "UINT",
- 0
- ],
- "forum_topics_approved": [
- "UINT",
- 0
- ],
- "forum_topics_unapproved": [
- "UINT",
- 0
- ],
- "forum_topics_softdeleted": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "forum_id",
- "KEYS": {
- "left_right_id": [
- "INDEX",
- [
- "left_id",
- "right_id"
- ]
- ],
- "forum_lastpost_id": [
- "INDEX",
- "forum_last_post_id"
- ]
- }
- },
- "phpbb_forums_access": {
- "COLUMNS": {
- "forum_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "session_id": [
- "CHAR:32",
- ""
- ]
- },
- "PRIMARY_KEY": [
- "forum_id",
- "user_id",
- "session_id"
- ]
- },
- "phpbb_forums_track": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "mark_time": [
- "TIMESTAMP",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "user_id",
- "forum_id"
- ]
- },
- "phpbb_forums_watch": {
- "COLUMNS": {
- "forum_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "notify_status": [
- "BOOL",
- 0
- ]
- },
- "KEYS": {
- "forum_id": [
- "INDEX",
- "forum_id"
- ],
- "user_id": [
- "INDEX",
- "user_id"
- ],
- "notify_stat": [
- "INDEX",
- "notify_status"
- ]
- }
- },
- "phpbb_groups": {
- "COLUMNS": {
- "group_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "group_type": [
- "TINT:4",
- 1
- ],
- "group_founder_manage": [
- "BOOL",
- 0
- ],
- "group_name": [
- "VCHAR_CI",
- ""
- ],
- "group_desc": [
- "TEXT_UNI",
- ""
- ],
- "group_desc_bitfield": [
- "VCHAR:255",
- ""
- ],
- "group_desc_options": [
- "UINT:11",
- 7
- ],
- "group_desc_uid": [
- "VCHAR:8",
- ""
- ],
- "group_display": [
- "BOOL",
- 0
- ],
- "group_avatar": [
- "VCHAR",
- ""
- ],
- "group_avatar_type": [
- "VCHAR:255",
- ""
- ],
- "group_avatar_width": [
- "USINT",
- 0
- ],
- "group_avatar_height": [
- "USINT",
- 0
- ],
- "group_rank": [
- "UINT",
- 0
- ],
- "group_colour": [
- "VCHAR:6",
- ""
- ],
- "group_sig_chars": [
- "UINT",
- 0
- ],
- "group_receive_pm": [
- "BOOL",
- 0
- ],
- "group_message_limit": [
- "UINT",
- 0
- ],
- "group_legend": [
- "UINT",
- 0
- ],
- "group_max_recipients": [
- "UINT",
- 0
- ],
- "group_skip_auth": {
- "0": "BOOL",
- "1": 0,
- "after": "group_founder_manage"
- }
- },
- "PRIMARY_KEY": "group_id",
- "KEYS": {
- "group_legend_name": [
- "INDEX",
- [
- "group_legend",
- "group_name"
- ]
- ]
- }
- },
- "phpbb_icons": {
- "COLUMNS": {
- "icons_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "icons_url": [
- "VCHAR",
- ""
- ],
- "icons_width": [
- "TINT:4",
- 0
- ],
- "icons_height": [
- "TINT:4",
- 0
- ],
- "icons_order": [
- "UINT",
- 0
- ],
- "display_on_posting": [
- "BOOL",
- 1
- ]
- },
- "PRIMARY_KEY": "icons_id",
- "KEYS": {
- "display_on_posting": [
- "INDEX",
- "display_on_posting"
- ]
- }
- },
- "phpbb_lang": {
- "COLUMNS": {
- "lang_id": [
- "TINT:4",
- null,
- "auto_increment"
- ],
- "lang_iso": [
- "VCHAR:30",
- ""
- ],
- "lang_dir": [
- "VCHAR:30",
- ""
- ],
- "lang_english_name": [
- "VCHAR_UNI:100",
- ""
- ],
- "lang_local_name": [
- "VCHAR_UNI:255",
- ""
- ],
- "lang_author": [
- "VCHAR_UNI:255",
- ""
- ]
- },
- "PRIMARY_KEY": "lang_id",
- "KEYS": {
- "lang_iso": [
- "INDEX",
- "lang_iso"
- ]
- }
- },
- "phpbb_log": {
- "COLUMNS": {
- "log_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "log_type": [
- "TINT:4",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "reportee_id": [
- "UINT",
- 0
- ],
- "log_ip": [
- "VCHAR:40",
- ""
- ],
- "log_time": [
- "TIMESTAMP",
- 0
- ],
- "log_operation": [
- "TEXT_UNI",
- ""
- ],
- "log_data": [
- "MTEXT_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": "log_id",
- "KEYS": {
- "log_type": [
- "INDEX",
- "log_type"
- ],
- "forum_id": [
- "INDEX",
- "forum_id"
- ],
- "topic_id": [
- "INDEX",
- "topic_id"
- ],
- "reportee_id": [
- "INDEX",
- "reportee_id"
- ],
- "user_id": [
- "INDEX",
- "user_id"
- ]
- }
- },
- "phpbb_login_attempts": {
- "COLUMNS": {
- "attempt_ip": [
- "VCHAR:40",
- ""
- ],
- "attempt_browser": [
- "VCHAR:150",
- ""
- ],
- "attempt_forwarded_for": [
- "VCHAR:255",
- ""
- ],
- "attempt_time": [
- "TIMESTAMP",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "username": [
- "VCHAR_UNI:255",
- 0
- ],
- "username_clean": [
- "VCHAR_CI",
- 0
- ]
- },
- "KEYS": {
- "att_ip": [
- "INDEX",
- [
- "attempt_ip",
- "attempt_time"
- ]
- ],
- "att_for": [
- "INDEX",
- [
- "attempt_forwarded_for",
- "attempt_time"
- ]
- ],
- "att_time": [
- "INDEX",
- [
- "attempt_time"
- ]
- ],
- "user_id": [
- "INDEX",
- "user_id"
- ]
- }
- },
- "phpbb_migrations": {
- "COLUMNS": {
- "migration_name": [
- "VCHAR",
- ""
- ],
- "migration_depends_on": [
- "TEXT",
- ""
- ],
- "migration_schema_done": [
- "BOOL",
- 0
- ],
- "migration_data_done": [
- "BOOL",
- 0
- ],
- "migration_data_state": [
- "TEXT",
- ""
- ],
- "migration_start_time": [
- "TIMESTAMP",
- 0
- ],
- "migration_end_time": [
- "TIMESTAMP",
- 0
- ]
- },
- "PRIMARY_KEY": "migration_name"
- },
- "phpbb_moderator_cache": {
- "COLUMNS": {
- "forum_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "username": [
- "VCHAR_UNI:255",
- ""
- ],
- "group_id": [
- "UINT",
- 0
- ],
- "group_name": [
- "VCHAR_UNI",
- ""
- ],
- "display_on_index": [
- "BOOL",
- 1
- ]
- },
- "KEYS": {
- "disp_idx": [
- "INDEX",
- "display_on_index"
- ],
- "forum_id": [
- "INDEX",
- "forum_id"
- ]
- }
- },
- "phpbb_modules": {
- "COLUMNS": {
- "module_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "module_enabled": [
- "BOOL",
- 1
- ],
- "module_display": [
- "BOOL",
- 1
- ],
- "module_basename": [
- "VCHAR",
- ""
- ],
- "module_class": [
- "VCHAR:10",
- ""
- ],
- "parent_id": [
- "UINT",
- 0
- ],
- "left_id": [
- "UINT",
- 0
- ],
- "right_id": [
- "UINT",
- 0
- ],
- "module_langname": [
- "VCHAR",
- ""
- ],
- "module_mode": [
- "VCHAR",
- ""
- ],
- "module_auth": [
- "VCHAR",
- ""
- ]
- },
- "PRIMARY_KEY": "module_id",
- "KEYS": {
- "left_right_id": [
- "INDEX",
- [
- "left_id",
- "right_id"
- ]
- ],
- "module_enabled": [
- "INDEX",
- "module_enabled"
- ],
- "class_left_id": [
- "INDEX",
- [
- "module_class",
- "left_id"
- ]
- ]
- }
- },
- "phpbb_notification_types": {
- "COLUMNS": {
- "notification_type_id": [
- "USINT",
- null,
- "auto_increment"
- ],
- "notification_type_name": [
- "VCHAR:255",
- ""
- ],
- "notification_type_enabled": [
- "BOOL",
- 1
- ]
- },
- "PRIMARY_KEY": [
- "notification_type_id"
- ],
- "KEYS": {
- "type": [
- "UNIQUE",
- [
- "notification_type_name"
- ]
- ]
- }
- },
- "phpbb_notifications": {
- "COLUMNS": {
- "notification_id": [
- "UINT:10",
- null,
- "auto_increment"
- ],
- "notification_type_id": [
- "USINT",
- 0
- ],
- "item_id": [
- "UINT",
- 0
- ],
- "item_parent_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "notification_read": [
- "BOOL",
- 0
- ],
- "notification_time": [
- "TIMESTAMP",
- 1
- ],
- "notification_data": [
- "TEXT_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": "notification_id",
- "KEYS": {
- "item_ident": [
- "INDEX",
- [
- "notification_type_id",
- "item_id"
- ]
- ],
- "user": [
- "INDEX",
- [
- "user_id",
- "notification_read"
- ]
- ]
- }
- },
- "phpbb_oauth_accounts": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "provider": [
- "VCHAR",
- ""
- ],
- "oauth_provider_id": [
- "TEXT_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": [
- "user_id",
- "provider"
- ]
- },
- "phpbb_oauth_tokens": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "session_id": [
- "CHAR:32",
- ""
- ],
- "provider": [
- "VCHAR",
- ""
- ],
- "oauth_token": [
- "MTEXT",
- ""
- ]
- },
- "KEYS": {
- "user_id": [
- "INDEX",
- "user_id"
- ],
- "provider": [
- "INDEX",
- "provider"
- ]
- }
- },
- "phpbb_poll_options": {
- "COLUMNS": {
- "poll_option_id": [
- "TINT:4",
- 0
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "poll_option_text": [
- "TEXT_UNI",
- ""
- ],
- "poll_option_total": [
- "UINT",
- 0
- ]
- },
- "KEYS": {
- "poll_opt_id": [
- "INDEX",
- "poll_option_id"
- ],
- "topic_id": [
- "INDEX",
- "topic_id"
- ]
- }
- },
- "phpbb_poll_votes": {
- "COLUMNS": {
- "topic_id": [
- "UINT",
- 0
- ],
- "poll_option_id": [
- "TINT:4",
- 0
- ],
- "vote_user_id": [
- "UINT",
- 0
- ],
- "vote_user_ip": [
- "VCHAR:40",
- ""
- ]
- },
- "KEYS": {
- "topic_id": [
- "INDEX",
- "topic_id"
- ],
- "vote_user_id": [
- "INDEX",
- "vote_user_id"
- ],
- "vote_user_ip": [
- "INDEX",
- "vote_user_ip"
- ]
- }
- },
- "phpbb_portal_config": {
- "COLUMNS": {
- "config_name": [
- "VCHAR:255",
- ""
- ],
- "config_value": [
- "MTEXT",
- ""
- ]
- },
- "PRIMARY_KEY": "config_name"
- },
- "phpbb_portal_modules": {
- "COLUMNS": {
- "module_id": [
- "UINT:3",
- null,
- "auto_increment"
- ],
- "module_classname": [
- "VCHAR:64",
- ""
- ],
- "module_column": [
- "TINT:3",
- 0
- ],
- "module_order": [
- "TINT:3",
- 0
- ],
- "module_name": [
- "VCHAR",
- ""
- ],
- "module_image_src": [
- "VCHAR",
- ""
- ],
- "module_image_width": [
- "INT:3",
- 0
- ],
- "module_image_height": [
- "INT:3",
- 0
- ],
- "module_group_ids": [
- "VCHAR",
- ""
- ],
- "module_status": [
- "TINT:1",
- 1
- ]
- },
- "PRIMARY_KEY": "module_id"
- },
- "phpbb_posts": {
- "COLUMNS": {
- "post_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "poster_id": [
- "UINT",
- 0
- ],
- "icon_id": [
- "UINT",
- 0
- ],
- "poster_ip": [
- "VCHAR:40",
- ""
- ],
- "post_time": [
- "TIMESTAMP",
- 0
- ],
- "post_reported": [
- "BOOL",
- 0
- ],
- "enable_bbcode": [
- "BOOL",
- 1
- ],
- "enable_smilies": [
- "BOOL",
- 1
- ],
- "enable_magic_url": [
- "BOOL",
- 1
- ],
- "enable_sig": [
- "BOOL",
- 1
- ],
- "post_username": [
- "VCHAR_UNI:255",
- ""
- ],
- "post_subject": [
- "STEXT_UNI",
- "",
- "true_sort"
- ],
- "post_text": [
- "MTEXT_UNI",
- ""
- ],
- "post_checksum": [
- "VCHAR:32",
- ""
- ],
- "post_attachment": [
- "BOOL",
- 0
- ],
- "bbcode_bitfield": [
- "VCHAR:255",
- ""
- ],
- "bbcode_uid": [
- "VCHAR:8",
- ""
- ],
- "post_postcount": [
- "BOOL",
- 1
- ],
- "post_edit_time": [
- "TIMESTAMP",
- 0
- ],
- "post_edit_reason": [
- "STEXT_UNI",
- ""
- ],
- "post_edit_user": [
- "UINT",
- 0
- ],
- "post_edit_count": [
- "USINT",
- 0
- ],
- "post_edit_locked": [
- "BOOL",
- 0
- ],
- "post_visibility": [
- "TINT:3",
- 0
- ],
- "post_delete_time": [
- "TIMESTAMP",
- 0
- ],
- "post_delete_reason": [
- "STEXT_UNI",
- ""
- ],
- "post_delete_user": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "post_id",
- "KEYS": {
- "forum_id": [
- "INDEX",
- "forum_id"
- ],
- "topic_id": [
- "INDEX",
- "topic_id"
- ],
- "poster_ip": [
- "INDEX",
- "poster_ip"
- ],
- "poster_id": [
- "INDEX",
- "poster_id"
- ],
- "tid_post_time": [
- "INDEX",
- [
- "topic_id",
- "post_time"
- ]
- ],
- "post_username": [
- "INDEX",
- [
- "post_username:255"
- ]
- ],
- "post_visibility": [
- "INDEX",
- [
- "post_visibility"
- ]
- ]
- }
- },
- "phpbb_privmsgs": {
- "COLUMNS": {
- "msg_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "root_level": [
- "UINT",
- 0
- ],
- "author_id": [
- "UINT",
- 0
- ],
- "icon_id": [
- "UINT",
- 0
- ],
- "author_ip": [
- "VCHAR:40",
- ""
- ],
- "message_time": [
- "TIMESTAMP",
- 0
- ],
- "enable_bbcode": [
- "BOOL",
- 1
- ],
- "enable_smilies": [
- "BOOL",
- 1
- ],
- "enable_magic_url": [
- "BOOL",
- 1
- ],
- "enable_sig": [
- "BOOL",
- 1
- ],
- "message_subject": [
- "STEXT_UNI",
- ""
- ],
- "message_text": [
- "MTEXT_UNI",
- ""
- ],
- "message_edit_reason": [
- "STEXT_UNI",
- ""
- ],
- "message_edit_user": [
- "UINT",
- 0
- ],
- "message_attachment": [
- "BOOL",
- 0
- ],
- "bbcode_bitfield": [
- "VCHAR:255",
- ""
- ],
- "bbcode_uid": [
- "VCHAR:8",
- ""
- ],
- "message_edit_time": [
- "TIMESTAMP",
- 0
- ],
- "message_edit_count": [
- "USINT",
- 0
- ],
- "to_address": [
- "TEXT_UNI",
- ""
- ],
- "bcc_address": [
- "TEXT_UNI",
- ""
- ],
- "message_reported": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": "msg_id",
- "KEYS": {
- "author_ip": [
- "INDEX",
- "author_ip"
- ],
- "message_time": [
- "INDEX",
- "message_time"
- ],
- "author_id": [
- "INDEX",
- "author_id"
- ],
- "root_level": [
- "INDEX",
- "root_level"
- ]
- }
- },
- "phpbb_privmsgs_folder": {
- "COLUMNS": {
- "folder_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "folder_name": [
- "VCHAR_UNI",
- ""
- ],
- "pm_count": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "folder_id",
- "KEYS": {
- "user_id": [
- "INDEX",
- "user_id"
- ]
- }
- },
- "phpbb_privmsgs_rules": {
- "COLUMNS": {
- "rule_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "rule_check": [
- "UINT",
- 0
- ],
- "rule_connection": [
- "UINT",
- 0
- ],
- "rule_string": [
- "VCHAR_UNI",
- ""
- ],
- "rule_user_id": [
- "UINT",
- 0
- ],
- "rule_group_id": [
- "UINT",
- 0
- ],
- "rule_action": [
- "UINT",
- 0
- ],
- "rule_folder_id": [
- "INT:11",
- 0
- ]
- },
- "PRIMARY_KEY": "rule_id",
- "KEYS": {
- "user_id": [
- "INDEX",
- "user_id"
- ]
- }
- },
- "phpbb_privmsgs_to": {
- "COLUMNS": {
- "msg_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "author_id": [
- "UINT",
- 0
- ],
- "pm_deleted": [
- "BOOL",
- 0
- ],
- "pm_new": [
- "BOOL",
- 1
- ],
- "pm_unread": [
- "BOOL",
- 1
- ],
- "pm_replied": [
- "BOOL",
- 0
- ],
- "pm_marked": [
- "BOOL",
- 0
- ],
- "pm_forwarded": [
- "BOOL",
- 0
- ],
- "folder_id": [
- "INT:11",
- 0
- ]
- },
- "KEYS": {
- "msg_id": [
- "INDEX",
- "msg_id"
- ],
- "author_id": [
- "INDEX",
- "author_id"
- ],
- "usr_flder_id": [
- "INDEX",
- [
- "user_id",
- "folder_id"
- ]
- ]
- }
- },
- "phpbb_profile_fields": {
- "COLUMNS": {
- "field_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "field_name": [
- "VCHAR_UNI",
- ""
- ],
- "field_type": [
- "VCHAR:100",
- ""
- ],
- "field_ident": [
- "VCHAR:20",
- ""
- ],
- "field_length": [
- "VCHAR:20",
- ""
- ],
- "field_minlen": [
- "VCHAR",
- ""
- ],
- "field_maxlen": [
- "VCHAR",
- ""
- ],
- "field_novalue": [
- "VCHAR_UNI",
- ""
- ],
- "field_default_value": [
- "VCHAR_UNI",
- ""
- ],
- "field_validation": [
- "VCHAR_UNI:20",
- ""
- ],
- "field_required": [
- "BOOL",
- 0
- ],
- "field_show_on_reg": [
- "BOOL",
- 0
- ],
- "field_hide": [
- "BOOL",
- 0
- ],
- "field_no_view": [
- "BOOL",
- 0
- ],
- "field_active": [
- "BOOL",
- 0
- ],
- "field_order": [
- "UINT",
- 0
- ],
- "field_show_profile": [
- "BOOL",
- 0
- ],
- "field_show_on_vt": [
- "BOOL",
- 0
- ],
- "field_show_novalue": [
- "BOOL",
- 0
- ],
- "field_show_on_pm": [
- "BOOL",
- 0
- ],
- "field_show_on_ml": [
- "BOOL",
- 0
- ],
- "field_is_contact": [
- "BOOL",
- 0
- ],
- "field_contact_desc": [
- "VCHAR",
- ""
- ],
- "field_contact_url": [
- "VCHAR",
- ""
- ]
- },
- "PRIMARY_KEY": "field_id",
- "KEYS": {
- "fld_type": [
- "INDEX",
- "field_type"
- ],
- "fld_ordr": [
- "INDEX",
- "field_order"
- ]
- }
- },
- "phpbb_profile_fields_data": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "pf_phpbb_interests": [
- "MTEXT",
- ""
- ],
- "pf_phpbb_occupation": [
- "MTEXT",
- ""
- ],
- "pf_phpbb_location": [
- "VCHAR",
- ""
- ],
- "pf_phpbb_icq": [
- "VCHAR",
- ""
- ],
- "pf_phpbb_website": [
- "VCHAR",
- ""
- ],
- "pf_phpbb_wlm": [
- "VCHAR",
- ""
- ],
- "pf_phpbb_yahoo": [
- "VCHAR",
- ""
- ],
- "pf_phpbb_aol": [
- "VCHAR",
- ""
- ]
- },
- "PRIMARY_KEY": "user_id"
- },
- "phpbb_profile_fields_lang": {
- "COLUMNS": {
- "field_id": [
- "UINT",
- 0
- ],
- "lang_id": [
- "UINT",
- 0
- ],
- "option_id": [
- "UINT",
- 0
- ],
- "field_type": [
- "VCHAR:100",
- ""
- ],
- "lang_value": [
- "VCHAR_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": [
- "field_id",
- "lang_id",
- "option_id"
- ]
- },
- "phpbb_profile_lang": {
- "COLUMNS": {
- "field_id": [
- "UINT",
- 0
- ],
- "lang_id": [
- "UINT",
- 0
- ],
- "lang_name": [
- "VCHAR_UNI",
- ""
- ],
- "lang_explain": [
- "TEXT_UNI",
- ""
- ],
- "lang_default_value": [
- "VCHAR_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": [
- "field_id",
- "lang_id"
- ]
- },
- "phpbb_ranks": {
- "COLUMNS": {
- "rank_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "rank_title": [
- "VCHAR_UNI",
- ""
- ],
- "rank_min": [
- "UINT",
- 0
- ],
- "rank_special": [
- "BOOL",
- 0
- ],
- "rank_image": [
- "VCHAR",
- ""
- ]
- },
- "PRIMARY_KEY": "rank_id"
- },
- "phpbb_reports": {
- "COLUMNS": {
- "report_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "reason_id": [
- "USINT",
- 0
- ],
- "post_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "user_notify": [
- "BOOL",
- 0
- ],
- "report_closed": [
- "BOOL",
- 0
- ],
- "report_time": [
- "TIMESTAMP",
- 0
- ],
- "report_text": [
- "MTEXT_UNI",
- ""
- ],
- "pm_id": [
- "UINT",
- 0
- ],
- "reported_post_enable_bbcode": [
- "BOOL",
- 1
- ],
- "reported_post_enable_smilies": [
- "BOOL",
- 1
- ],
- "reported_post_enable_magic_url": [
- "BOOL",
- 1
- ],
- "reported_post_text": [
- "MTEXT_UNI",
- ""
- ],
- "reported_post_uid": [
- "VCHAR:8",
- ""
- ],
- "reported_post_bitfield": [
- "VCHAR:255",
- ""
- ]
- },
- "PRIMARY_KEY": "report_id",
- "KEYS": {
- "post_id": [
- "INDEX",
- [
- "post_id"
- ]
- ],
- "pm_id": [
- "INDEX",
- [
- "pm_id"
- ]
- ]
- }
- },
- "phpbb_reports_reasons": {
- "COLUMNS": {
- "reason_id": [
- "USINT",
- null,
- "auto_increment"
- ],
- "reason_title": [
- "VCHAR_UNI",
- ""
- ],
- "reason_description": [
- "MTEXT_UNI",
- ""
- ],
- "reason_order": [
- "USINT",
- 0
- ]
- },
- "PRIMARY_KEY": "reason_id"
- },
- "phpbb_search_results": {
- "COLUMNS": {
- "search_key": [
- "VCHAR:32",
- ""
- ],
- "search_time": [
- "TIMESTAMP",
- 0
- ],
- "search_keywords": [
- "MTEXT_UNI",
- ""
- ],
- "search_authors": [
- "MTEXT",
- ""
- ]
- },
- "PRIMARY_KEY": "search_key"
- },
- "phpbb_search_wordlist": {
- "COLUMNS": {
- "word_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "word_text": [
- "VCHAR_UNI",
- ""
- ],
- "word_common": [
- "BOOL",
- 0
- ],
- "word_count": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "word_id",
- "KEYS": {
- "wrd_txt": [
- "UNIQUE",
- "word_text"
- ],
- "wrd_cnt": [
- "INDEX",
- "word_count"
- ]
- }
- },
- "phpbb_search_wordmatch": {
- "COLUMNS": {
- "post_id": [
- "UINT",
- 0
- ],
- "word_id": [
- "UINT",
- 0
- ],
- "title_match": [
- "BOOL",
- 0
- ]
- },
- "KEYS": {
- "unq_mtch": [
- "UNIQUE",
- [
- "word_id",
- "post_id",
- "title_match"
- ]
- ],
- "word_id": [
- "INDEX",
- "word_id"
- ],
- "post_id": [
- "INDEX",
- "post_id"
- ]
- }
- },
- "phpbb_sessions": {
- "COLUMNS": {
- "session_id": [
- "CHAR:32",
- ""
- ],
- "session_user_id": [
- "UINT",
- 0
- ],
- "session_last_visit": [
- "TIMESTAMP",
- 0
- ],
- "session_start": [
- "TIMESTAMP",
- 0
- ],
- "session_time": [
- "TIMESTAMP",
- 0
- ],
- "session_ip": [
- "VCHAR:40",
- ""
- ],
- "session_browser": [
- "VCHAR:150",
- ""
- ],
- "session_forwarded_for": [
- "VCHAR:255",
- ""
- ],
- "session_page": [
- "VCHAR_UNI",
- ""
- ],
- "session_viewonline": [
- "BOOL",
- 1
- ],
- "session_autologin": [
- "BOOL",
- 0
- ],
- "session_admin": [
- "BOOL",
- 0
- ],
- "session_forum_id": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "session_id",
- "KEYS": {
- "session_time": [
- "INDEX",
- "session_time"
- ],
- "session_user_id": [
- "INDEX",
- "session_user_id"
- ],
- "session_fid": [
- "INDEX",
- [
- "session_forum_id"
- ]
- ]
- }
- },
- "phpbb_sessions_keys": {
- "COLUMNS": {
- "key_id": [
- "CHAR:32",
- ""
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "last_ip": [
- "VCHAR:40",
- ""
- ],
- "last_login": [
- "TIMESTAMP",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "key_id",
- "user_id"
- ],
- "KEYS": {
- "last_login": [
- "INDEX",
- "last_login"
- ]
- }
- },
- "phpbb_sitelist": {
- "COLUMNS": {
- "site_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "site_ip": [
- "VCHAR:40",
- ""
- ],
- "site_hostname": [
- "VCHAR",
- ""
- ],
- "ip_exclude": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": "site_id"
- },
- "phpbb_smilies": {
- "COLUMNS": {
- "smiley_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "code": [
- "VCHAR_UNI:50",
- ""
- ],
- "emotion": [
- "VCHAR_UNI:50",
- ""
- ],
- "smiley_url": [
- "VCHAR:50",
- ""
- ],
- "smiley_width": [
- "USINT",
- 0
- ],
- "smiley_height": [
- "USINT",
- 0
- ],
- "smiley_order": [
- "UINT",
- 0
- ],
- "display_on_posting": [
- "BOOL",
- 1
- ]
- },
- "PRIMARY_KEY": "smiley_id",
- "KEYS": {
- "display_on_post": [
- "INDEX",
- "display_on_posting"
- ]
- }
- },
- "phpbb_styles": {
- "COLUMNS": {
- "style_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "style_name": [
- "VCHAR_UNI:255",
- ""
- ],
- "style_copyright": [
- "VCHAR_UNI",
- ""
- ],
- "style_active": [
- "BOOL",
- 1
- ],
- "style_path": [
- "VCHAR:100",
- ""
- ],
- "bbcode_bitfield": [
- "VCHAR:255",
- "kNg="
- ],
- "style_parent_id": [
- "UINT:4",
- 0
- ],
- "style_parent_tree": [
- "TEXT",
- ""
- ]
- },
- "PRIMARY_KEY": "style_id",
- "KEYS": {
- "style_name": [
- "UNIQUE",
- "style_name"
- ]
- }
- },
- "phpbb_teampage": {
- "COLUMNS": {
- "teampage_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "group_id": [
- "UINT",
- 0
- ],
- "teampage_name": [
- "VCHAR_UNI:255",
- ""
- ],
- "teampage_position": [
- "UINT",
- 0
- ],
- "teampage_parent": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "teampage_id"
- },
- "phpbb_topics": {
- "COLUMNS": {
- "topic_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "icon_id": [
- "UINT",
- 0
- ],
- "topic_attachment": [
- "BOOL",
- 0
- ],
- "topic_reported": [
- "BOOL",
- 0
- ],
- "topic_title": [
- "STEXT_UNI",
- "",
- "true_sort"
- ],
- "topic_poster": [
- "UINT",
- 0
- ],
- "topic_time": [
- "TIMESTAMP",
- 0
- ],
- "topic_time_limit": [
- "TIMESTAMP",
- 0
- ],
- "topic_views": [
- "UINT",
- 0
- ],
- "topic_status": [
- "TINT:3",
- 0
- ],
- "topic_type": [
- "TINT:3",
- 0
- ],
- "topic_first_post_id": [
- "UINT",
- 0
- ],
- "topic_first_poster_name": [
- "VCHAR_UNI",
- ""
- ],
- "topic_first_poster_colour": [
- "VCHAR:6",
- ""
- ],
- "topic_last_post_id": [
- "UINT",
- 0
- ],
- "topic_last_poster_id": [
- "UINT",
- 0
- ],
- "topic_last_poster_name": [
- "VCHAR_UNI",
- ""
- ],
- "topic_last_poster_colour": [
- "VCHAR:6",
- ""
- ],
- "topic_last_post_subject": [
- "STEXT_UNI",
- ""
- ],
- "topic_last_post_time": [
- "TIMESTAMP",
- 0
- ],
- "topic_last_view_time": [
- "TIMESTAMP",
- 0
- ],
- "topic_moved_id": [
- "UINT",
- 0
- ],
- "topic_bumped": [
- "BOOL",
- 0
- ],
- "topic_bumper": [
- "UINT",
- 0
- ],
- "poll_title": [
- "STEXT_UNI",
- ""
- ],
- "poll_start": [
- "TIMESTAMP",
- 0
- ],
- "poll_length": [
- "TIMESTAMP",
- 0
- ],
- "poll_max_options": [
- "TINT:4",
- 1
- ],
- "poll_last_vote": [
- "TIMESTAMP",
- 0
- ],
- "poll_vote_change": [
- "BOOL",
- 0
- ],
- "topic_visibility": [
- "TINT:3",
- 0
- ],
- "topic_delete_time": [
- "TIMESTAMP",
- 0
- ],
- "topic_delete_reason": [
- "STEXT_UNI",
- ""
- ],
- "topic_delete_user": [
- "UINT",
- 0
- ],
- "topic_posts_approved": [
- "UINT",
- 0
- ],
- "topic_posts_unapproved": [
- "UINT",
- 0
- ],
- "topic_posts_softdeleted": [
- "UINT",
- 0
- ]
- },
- "PRIMARY_KEY": "topic_id",
- "KEYS": {
- "forum_id": [
- "INDEX",
- "forum_id"
- ],
- "forum_id_type": [
- "INDEX",
- [
- "forum_id",
- "topic_type"
- ]
- ],
- "last_post_time": [
- "INDEX",
- "topic_last_post_time"
- ],
- "fid_time_moved": [
- "INDEX",
- [
- "forum_id",
- "topic_last_post_time",
- "topic_moved_id"
- ]
- ],
- "topic_visibility": [
- "INDEX",
- [
- "topic_visibility"
- ]
- ],
- "forum_vis_last": [
- "INDEX",
- [
- "forum_id",
- "topic_visibility",
- "topic_last_post_id"
- ]
- ]
- }
- },
- "phpbb_topics_posted": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "topic_posted": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "user_id",
- "topic_id"
- ]
- },
- "phpbb_topics_track": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "topic_id": [
- "UINT",
- 0
- ],
- "forum_id": [
- "UINT",
- 0
- ],
- "mark_time": [
- "TIMESTAMP",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "user_id",
- "topic_id"
- ],
- "KEYS": {
- "forum_id": [
- "INDEX",
- "forum_id"
- ],
- "topic_id": [
- "INDEX",
- [
- "topic_id"
- ]
- ]
- }
- },
- "phpbb_topics_watch": {
- "COLUMNS": {
- "topic_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "notify_status": [
- "BOOL",
- 0
- ]
- },
- "KEYS": {
- "topic_id": [
- "INDEX",
- "topic_id"
- ],
- "user_id": [
- "INDEX",
- "user_id"
- ],
- "notify_stat": [
- "INDEX",
- "notify_status"
- ]
- }
- },
- "phpbb_user_group": {
- "COLUMNS": {
- "group_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "group_leader": [
- "BOOL",
- 0
- ],
- "user_pending": [
- "BOOL",
- 1
- ]
- },
- "KEYS": {
- "group_id": [
- "INDEX",
- "group_id"
- ],
- "user_id": [
- "INDEX",
- "user_id"
- ],
- "group_leader": [
- "INDEX",
- "group_leader"
- ]
- }
- },
- "phpbb_user_notifications": {
- "COLUMNS": {
- "item_type": [
- "VCHAR:255",
- ""
- ],
- "item_id": [
- "UINT",
- 0
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "method": [
- "VCHAR:255",
- ""
- ],
- "notify": [
- "BOOL",
- 1
- ]
- }
- },
- "phpbb_users": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "user_type": [
- "TINT:2",
- 0
- ],
- "group_id": [
- "UINT",
- 3
- ],
- "user_permissions": [
- "MTEXT",
- ""
- ],
- "user_perm_from": [
- "UINT",
- 0
- ],
- "user_ip": [
- "VCHAR:40",
- ""
- ],
- "user_regdate": [
- "TIMESTAMP",
- 0
- ],
- "username": [
- "VCHAR_CI",
- ""
- ],
- "username_clean": [
- "VCHAR_CI",
- ""
- ],
- "user_password": [
- "VCHAR:255",
- ""
- ],
- "user_passchg": [
- "TIMESTAMP",
- 0
- ],
- "user_pass_convert": [
- "BOOL",
- 0
- ],
- "user_email": [
- "VCHAR_UNI:100",
- ""
- ],
- "user_email_hash": [
- "BINT",
- 0
- ],
- "user_birthday": [
- "VCHAR:10",
- ""
- ],
- "user_lastvisit": [
- "TIMESTAMP",
- 0
- ],
- "user_lastmark": [
- "TIMESTAMP",
- 0
- ],
- "user_lastpost_time": [
- "TIMESTAMP",
- 0
- ],
- "user_lastpage": [
- "VCHAR_UNI:200",
- ""
- ],
- "user_last_confirm_key": [
- "VCHAR:10",
- ""
- ],
- "user_last_search": [
- "TIMESTAMP",
- 0
- ],
- "user_warnings": [
- "TINT:4",
- 0
- ],
- "user_last_warning": [
- "TIMESTAMP",
- 0
- ],
- "user_login_attempts": [
- "TINT:4",
- 0
- ],
- "user_inactive_reason": [
- "TINT:2",
- 0
- ],
- "user_inactive_time": [
- "TIMESTAMP",
- 0
- ],
- "user_posts": [
- "UINT",
- 0
- ],
- "user_lang": [
- "VCHAR:30",
- ""
- ],
- "user_timezone": [
- "VCHAR:100",
- ""
- ],
- "user_dateformat": [
- "VCHAR_UNI:30",
- "d M Y H:i"
- ],
- "user_style": [
- "UINT",
- 0
- ],
- "user_rank": [
- "UINT",
- 0
- ],
- "user_colour": [
- "VCHAR:6",
- ""
- ],
- "user_new_privmsg": [
- "INT:4",
- 0
- ],
- "user_unread_privmsg": [
- "INT:4",
- 0
- ],
- "user_last_privmsg": [
- "TIMESTAMP",
- 0
- ],
- "user_message_rules": [
- "BOOL",
- 0
- ],
- "user_full_folder": [
- "INT:11",
- -3
- ],
- "user_emailtime": [
- "TIMESTAMP",
- 0
- ],
- "user_topic_show_days": [
- "USINT",
- 0
- ],
- "user_topic_sortby_type": [
- "VCHAR:1",
- "t"
- ],
- "user_topic_sortby_dir": [
- "VCHAR:1",
- "d"
- ],
- "user_post_show_days": [
- "USINT",
- 0
- ],
- "user_post_sortby_type": [
- "VCHAR:1",
- "t"
- ],
- "user_post_sortby_dir": [
- "VCHAR:1",
- "a"
- ],
- "user_notify": [
- "BOOL",
- 0
- ],
- "user_notify_pm": [
- "BOOL",
- 1
- ],
- "user_notify_type": [
- "TINT:4",
- 0
- ],
- "user_allow_pm": [
- "BOOL",
- 1
- ],
- "user_allow_viewonline": [
- "BOOL",
- 1
- ],
- "user_allow_viewemail": [
- "BOOL",
- 1
- ],
- "user_allow_massemail": [
- "BOOL",
- 1
- ],
- "user_options": [
- "UINT:11",
- 230271
- ],
- "user_avatar": [
- "VCHAR",
- ""
- ],
- "user_avatar_type": [
- "VCHAR:255",
- ""
- ],
- "user_avatar_width": [
- "USINT",
- 0
- ],
- "user_avatar_height": [
- "USINT",
- 0
- ],
- "user_sig": [
- "MTEXT_UNI",
- ""
- ],
- "user_sig_bbcode_uid": [
- "VCHAR:8",
- ""
- ],
- "user_sig_bbcode_bitfield": [
- "VCHAR:255",
- ""
- ],
- "user_jabber": [
- "VCHAR_UNI",
- ""
- ],
- "user_actkey": [
- "VCHAR:32",
- ""
- ],
- "user_newpasswd": [
- "VCHAR:255",
- ""
- ],
- "user_form_salt": [
- "VCHAR_UNI:32",
- ""
- ],
- "user_new": [
- "BOOL",
- 1
- ],
- "user_reminded": [
- "TINT:4",
- 0
- ],
- "user_reminded_time": [
- "TIMESTAMP",
- 0
- ]
- },
- "PRIMARY_KEY": "user_id",
- "KEYS": {
- "user_birthday": [
- "INDEX",
- "user_birthday"
- ],
- "user_email_hash": [
- "INDEX",
- "user_email_hash"
- ],
- "user_type": [
- "INDEX",
- "user_type"
- ],
- "username_clean": [
- "UNIQUE",
- "username_clean"
- ]
- }
- },
- "phpbb_warnings": {
- "COLUMNS": {
- "warning_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "user_id": [
- "UINT",
- 0
- ],
- "post_id": [
- "UINT",
- 0
- ],
- "log_id": [
- "UINT",
- 0
- ],
- "warning_time": [
- "TIMESTAMP",
- 0
- ]
- },
- "PRIMARY_KEY": "warning_id"
- },
- "phpbb_words": {
- "COLUMNS": {
- "word_id": [
- "UINT",
- null,
- "auto_increment"
- ],
- "word": [
- "VCHAR_UNI",
- ""
- ],
- "replacement": [
- "VCHAR_UNI",
- ""
- ]
- },
- "PRIMARY_KEY": "word_id"
- },
- "phpbb_zebra": {
- "COLUMNS": {
- "user_id": [
- "UINT",
- 0
- ],
- "zebra_id": [
- "UINT",
- 0
- ],
- "friend": [
- "BOOL",
- 0
- ],
- "foe": [
- "BOOL",
- 0
- ]
- },
- "PRIMARY_KEY": [
- "user_id",
- "zebra_id"
- ]
- }
-}
\ No newline at end of file
diff --git a/tests/schemas/sqlite_schema.sql b/tests/schemas/sqlite_schema.sql
deleted file mode 100644
index 28649dc5..00000000
--- a/tests/schemas/sqlite_schema.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-# DO NOT EDIT THIS FILE, IT IS GENERATED
-#
-# To change the contents of this file, edit
-# phpBB/develop/create_schema_files.php and
-# run it.
diff --git a/tests/test_config.sample.php b/tests/test_config.sample.php
deleted file mode 100644
index c50fe3ef..00000000
--- a/tests/test_config.sample.php
+++ /dev/null
@@ -1,7 +0,0 @@
-db = $this->new_dbal();
}
-
- protected function create_connection_manager($config)
- {
- return new \board3\portal\tests\testframework\database_test_connection_manager($config);
- }
-
- public function get_database_config()
- {
- $config = \board3\portal\tests\testframework\test_case_helpers::get_test_config();
-
- if (!isset($config['dbms']))
- {
- $this->markTestSkipped('Missing test_config.php: See first error.');
- }
-
- return $config;
- }
-
- public function get_test_case_helpers()
- {
- if (!$this->test_case_helpers)
- {
- $this->test_case_helpers = new \board3\portal\tests\testframework\test_case_helpers($this);
- }
-
- return $this->test_case_helpers;
- }
}
diff --git a/tests/testframework/database_test_connection_manager.php b/tests/testframework/database_test_connection_manager.php
deleted file mode 100644
index 3c95e439..00000000
--- a/tests/testframework/database_test_connection_manager.php
+++ /dev/null
@@ -1,22 +0,0 @@
-ensure_connected(__METHOD__);
-
- $directory = dirname(__FILE__) . '/../schemas/';
- $this->load_schema_from_file($directory, $db);
-
- }
-}
diff --git a/tests/testframework/functional_test_case.php b/tests/testframework/functional_test_case.php
index dee5532f..9e7c816d 100644
--- a/tests/testframework/functional_test_case.php
+++ b/tests/testframework/functional_test_case.php
@@ -11,55 +11,8 @@ namespace board3\portal\tests\testframework;
abstract class functional_test_case extends \phpbb_functional_test_case
{
- protected $portal_enabled = false;
-
- public function enable_board3_portal_ext()
+ static protected function setup_extensions()
{
- $enable_portal = false;
-
- if ($this->portal_enabled === true || $this->check_if_enabled())
- {
- return;
- }
-
- $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&sid=' . $this->sid);
- $disabled_extensions = $crawler->filter('tr.ext_disabled')->extract(array('_text'));
- foreach ($disabled_extensions as $extension)
- {
- if (strpos($extension, 'Board3 Portal') !== false)
- {
- $enable_portal = true;
- }
- }
-
- if ($enable_portal)
- {
- $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=enable_pre&ext_name=board3%2fportal&sid=' . $this->sid);
- $form = $crawler->selectButton('Enable')->form();
- $crawler = self::submit($form);
- $this->assertContains('The extension was enabled successfully', $crawler->text());
- $this->portal_enabled = true;
- $this->set_enabled();
- }
- }
-
- protected function check_if_enabled()
- {
- $this->db = $this->get_db();
-
- $sql = "SELECT config_value FROM phpbb_config WHERE config_name = 'b3p_ext_enabled'";
- $result = $this->db->sql_query($sql);
- $enabled = $this->db->sql_fetchfield('config_value');
- $this->db->sql_freeresult($result);
-
- return $enabled;
- }
-
- protected function set_enabled()
- {
- $this->db = $this->get_db();
-
- $sql = "INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('b3p_ext_enabled', 1, 1)";
- $this->db->sql_query($sql);
+ return array('board3/portal');
}
}
diff --git a/tests/testframework/test_case.php b/tests/testframework/test_case.php
index 3b150212..9005f2e6 100644
--- a/tests/testframework/test_case.php
+++ b/tests/testframework/test_case.php
@@ -11,13 +11,4 @@ namespace board3\portal\tests\testframework;
abstract class test_case extends \phpbb_test_case
{
- public function get_test_case_helpers()
- {
- if (!$this->test_case_helpers)
- {
- $this->test_case_helpers = new \board3\portal\tests\testframework\test_case_helpers($this);
- }
-
- return $this->test_case_helpers;
- }
}
diff --git a/tests/testframework/test_case_helpers.php b/tests/testframework/test_case_helpers.php
deleted file mode 100644
index 74ab9a82..00000000
--- a/tests/testframework/test_case_helpers.php
+++ /dev/null
@@ -1,116 +0,0 @@
-='))
- {
- $config = array_merge($config, array(
- 'dbms' => 'phpbb_db_driver_sqlite',
- 'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite2', // filename
- 'dbport' => '',
- 'dbname' => '',
- 'dbuser' => '',
- 'dbpasswd' => '',
- ));
- }
-
- if (isset($_SERVER['PHPBB_TEST_CONFIG']))
- {
- // Could be an absolute path
- $test_config = $_SERVER['PHPBB_TEST_CONFIG'];
- }
- else
- {
- $test_config = dirname(__FILE__) . '/../test_config.php';
- }
-
- if (file_exists($test_config))
- {
- include($test_config);
-
- if (!function_exists('phpbb_convert_30_dbms_to_31'))
- {
- global $phpbb_root_path;
- require_once $phpbb_root_path . 'includes/functions.php';
- }
-
- $config = array_merge($config, array(
- 'dbms' => phpbb_convert_30_dbms_to_31($dbms),
- 'dbhost' => $dbhost,
- 'dbport' => $dbport,
- 'dbname' => $dbname,
- 'dbuser' => $dbuser,
- 'dbpasswd' => $dbpasswd,
- 'custom_dsn' => isset($custom_dsn) ? $custom_dsn : '',
- ));
-
- if (isset($phpbb_functional_url))
- {
- $config['phpbb_functional_url'] = $phpbb_functional_url;
- }
-
- if (isset($phpbb_redis_host))
- {
- $config['redis_host'] = $phpbb_redis_host;
- }
- if (isset($phpbb_redis_port))
- {
- $config['redis_port'] = $phpbb_redis_port;
- }
- }
-
- if (isset($_SERVER['PHPBB_TEST_DBMS']))
- {
- if (!function_exists('phpbb_convert_30_dbms_to_31'))
- {
- global $phpbb_root_path;
- require_once $phpbb_root_path . 'includes/functions.php';
- }
-
- $config = array_merge($config, array(
- 'dbms' => isset($_SERVER['PHPBB_TEST_DBMS']) ? phpbb_convert_30_dbms_to_31($_SERVER['PHPBB_TEST_DBMS']) : '',
- 'dbhost' => isset($_SERVER['PHPBB_TEST_DBHOST']) ? $_SERVER['PHPBB_TEST_DBHOST'] : '',
- 'dbport' => isset($_SERVER['PHPBB_TEST_DBPORT']) ? $_SERVER['PHPBB_TEST_DBPORT'] : '',
- 'dbname' => isset($_SERVER['PHPBB_TEST_DBNAME']) ? $_SERVER['PHPBB_TEST_DBNAME'] : '',
- 'dbuser' => isset($_SERVER['PHPBB_TEST_DBUSER']) ? $_SERVER['PHPBB_TEST_DBUSER'] : '',
- 'dbpasswd' => isset($_SERVER['PHPBB_TEST_DBPASSWD']) ? $_SERVER['PHPBB_TEST_DBPASSWD'] : '',
- 'custom_dsn' => isset($_SERVER['PHPBB_TEST_CUSTOM_DSN']) ? $_SERVER['PHPBB_TEST_CUSTOM_DSN'] : '',
- ));
- }
-
- if (isset($_SERVER['PHPBB_FUNCTIONAL_URL']))
- {
- $config = array_merge($config, array(
- 'phpbb_functional_url' => isset($_SERVER['PHPBB_FUNCTIONAL_URL']) ? $_SERVER['PHPBB_FUNCTIONAL_URL'] : '',
- ));
- }
-
- if (isset($_SERVER['PHPBB_TEST_REDIS_HOST']))
- {
- $config['redis_host'] = $_SERVER['PHPBB_TEST_REDIS_HOST'];
- }
-
- if (isset($_SERVER['PHPBB_TEST_REDIS_PORT']))
- {
- $config['redis_port'] = $_SERVER['PHPBB_TEST_REDIS_PORT'];
- }
-
- return $config;
- }
-}
diff --git a/tests/unit/functions/check_file_src_test.php b/tests/unit/functions/check_file_src_test.php
index 6edb1ed3..71471631 100644
--- a/tests/unit/functions/check_file_src_test.php
+++ b/tests/unit/functions/check_file_src_test.php
@@ -15,7 +15,8 @@ class phpbb_functions_check_file_src_test extends \board3\portal\tests\testframe
public function setUp()
{
parent::setUp();
- global $db, $phpbb_root_path, $phpEx, $user;
+
+ global $user;
$user = new phpbb_mock_user();
}
diff --git a/tests/unit/modules/calendar.php b/tests/unit/modules/calendar.php
index b7a61606..f326b5cb 100644
--- a/tests/unit/modules/calendar.php
+++ b/tests/unit/modules/calendar.php
@@ -9,16 +9,22 @@
require_once(dirname(__FILE__) . '/../../../includes/functions.php');
-class phpbb_functions_simple_test extends PHPUnit_Framework_TestCase
+class phpbb_functions_simple_test extends \board3\portal\tests\testframework\test_case
{
+ protected $path_helper;
+ protected $calendar;
+
public function setUp()
{
+ parent::setUp();
+ global $phpbb_root_path;
+
$this->path_helper = new \phpbb\path_helper(
new \phpbb\symfony_request(
new phpbb_mock_request()
),
new \phpbb\filesystem(),
- $this->phpbb_root_path,
+ $phpbb_root_path,
'php'
);
$this->calendar = new \board3\portal\modules\calendar(array(), null, null, null, dirname(__FILE__) . '/../../../', 'php', null, $this->path_helper);
diff --git a/travis/install-php-extensions.sh b/travis/install-php-extensions.sh
deleted file mode 100755
index 55955c29..00000000
--- a/travis/install-php-extensions.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-#
-# @copyright (c) 2013 phpBB Group
-# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
-#
-set -e
-
-function add_ext_to_php_ini
-{
- echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
-}
-
-# redis
-git clone git://github.com/nicolasff/phpredis.git
-cd phpredis
-phpize
-./configure
-make
-make install
-cd ..
-add_ext_to_php_ini 'redis'
diff --git a/travis/phpunit-mariadb-travis.xml b/travis/phpunit-mariadb-travis.xml
deleted file mode 100644
index aa245a82..00000000
--- a/travis/phpunit-mariadb-travis.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
- ../tests
- ../tests/functional
- ../tests/lint_test.php
-
-
- ../tests/functional
-
-
-
-
-
- slow
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/travis/phpunit-mysql-travis.xml b/travis/phpunit-mysql-travis.xml
deleted file mode 100644
index 32165b91..00000000
--- a/travis/phpunit-mysql-travis.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
- ../tests
- ../tests/functional
-
-
- ../tests/functional
-
-
-
-
-
- slow
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/travis/phpunit-postgres-travis.xml b/travis/phpunit-postgres-travis.xml
deleted file mode 100644
index 4689655a..00000000
--- a/travis/phpunit-postgres-travis.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
- ../tests
- ../tests/functional
-
-
- ../tests/functional
-
-
-
-
-
- slow
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/travis/prepare-phpbb.sh b/travis/prepare-phpbb.sh
new file mode 100755
index 00000000..a5782e9c
--- /dev/null
+++ b/travis/prepare-phpbb.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+#
+# This file is part of the phpBB Forum Software package.
+#
+# @copyright (c) phpBB Limited
+# @license GNU General Public License, version 2 (GPL-2.0)
+#
+# For full copyright and license information, please see
+# the docs/CREDITS.txt file.
+#
+set -e
+set -x
+
+EXTNAME=$1
+BRANCH=$2
+EXTPATH_TEMP=$3
+
+# Copy extension to a temp folder
+mkdir ../../tmp
+cp -R . ../../tmp
+cd ../../
+
+# Clone phpBB
+git clone --depth=1 "git://github.com/nickvergessen/phpbb.git" "phpBB3" --branch=$BRANCH
diff --git a/travis/setup-mariadb.sh b/travis/setup-mariadb.sh
deleted file mode 100755
index 7e5c4e7d..00000000
--- a/travis/setup-mariadb.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-#
-# @copyright (c) 2013 phpBB Group
-# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
-#
-set -e
-set -x
-
-# MariaDB Series
-VERSION='5.5'
-
-# Operating system codename, e.g. "precise"
-OS_CODENAME=$(lsb_release --codename --short)
-
-# Manually purge MySQL to remove conflicting files (e.g. /etc/mysql/my.cnf)
-sudo apt-get purge -qq mysql-common
-
-if ! which add-apt-repository > /dev/null
-then
- sudo apt-get update -qq
- sudo apt-get install -qq python-software-properties
-fi
-
-MIRROR_DOMAIN='ftp.osuosl.org'
-sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
-sudo add-apt-repository "deb http://$MIRROR_DOMAIN/pub/mariadb/repo/$VERSION/ubuntu $OS_CODENAME main"
-sudo apt-get update -qq
-
-# Pin repository in order to avoid conflicts with MySQL from distribution
-# repository. See https://mariadb.com/kb/en/installing-mariadb-deb-files
-# section "Version Mismatch Between MariaDB and Ubuntu/Debian Repositories"
-echo "
-Package: *
-Pin: origin $MIRROR_DOMAIN
-Pin-Priority: 1000
-" | sudo tee /etc/apt/preferences.d/mariadb
-
-sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password password rootpasswd"
-sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password_again password rootpasswd"
-sudo apt-get install -qq mariadb-server
-
-# Set root password to empty string.
-echo "
-USE mysql;
-UPDATE user SET Password = PASSWORD('') where User = 'root';
-FLUSH PRIVILEGES;
-" | mysql -u root -prootpasswd
-
-mysql --version
diff --git a/travis/setup-webserver.sh b/travis/setup-webserver.sh
deleted file mode 100755
index ff086588..00000000
--- a/travis/setup-webserver.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/bash
-#
-# @copyright (c) 2013 phpBB Group
-# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
-#
-set -e
-set -x
-
-sudo apt-get update -qq
-sudo apt-get install -qq nginx realpath
-
-sudo service nginx stop
-
-DIR=$(dirname "$0")
-PHPBB_ROOT_PATH=$(realpath "$DIR/../../../..")
-
-NGINX_CONF="/etc/nginx/sites-enabled/default"
-
-PHP_FPM_BIN="$HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/sbin/php-fpm"
-PHP_FPM_CONF="$DIR/php-fpm.conf"
-PHP_FPM_SOCK=$(realpath "$DIR")/php-fpm.sock
-
-USER=$(whoami)
-
-# php-fpm configuration
-echo "
-[global]
-
-[travis]
-user = $USER
-group = $USER
-listen = $PHP_FPM_SOCK
-pm = static
-pm.max_children = 2
-
-php_admin_value[memory_limit] = 128M
-" > $PHP_FPM_CONF
-
-# nginx configuration
-echo "
-server {
- listen 80;
- root $PHPBB_ROOT_PATH/;
- index index.php index.html;
-
- location ~ \.php$ {
- fastcgi_pass unix:$PHP_FPM_SOCK;
- include fastcgi_params;
- }
-
- location / {
- try_files \$uri \$uri/ /app.php\$is_args\$args;
- }
-}
-" | sudo tee $NGINX_CONF > /dev/null
-
-# Start daemons
-sudo $PHP_FPM_BIN --fpm-config "$DIR/php-fpm.conf"
-sudo service nginx start