aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/setup/create_tables.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-04-26 21:03:08 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-04-26 21:13:51 +0200
commitade9edeb849803082856f7633194913ad4df93a0 (patch)
treea864c593f92851678d7ab9fe4e7e9cfdefb539c8 /ratatoeskr/setup/create_tables.php
parentc3cc300a952a793b9655226db1aad050daaa3803 (diff)
downloadratatoeskr-cms-ade9edeb849803082856f7633194913ad4df93a0.tar.gz
ratatoeskr-cms-ade9edeb849803082856f7633194913ad4df93a0.tar.bz2
ratatoeskr-cms-ade9edeb849803082856f7633194913ad4df93a0.zip
Automatic code formatting
Diffstat (limited to 'ratatoeskr/setup/create_tables.php')
-rw-r--r--ratatoeskr/setup/create_tables.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/ratatoeskr/setup/create_tables.php b/ratatoeskr/setup/create_tables.php
index 9b330fe..4898e84 100644
--- a/ratatoeskr/setup/create_tables.php
+++ b/ratatoeskr/setup/create_tables.php
@@ -1,7 +1,8 @@
<?php
-if(!defined("SETUP"))
+if (!defined("SETUP")) {
die();
+}
require_once(dirname(__FILE__) . "/../sys/db.php");
@@ -105,7 +106,6 @@ CREATE TABLE IF NOT EXISTS `PREFIX_sections` (
`name` text COLLATE utf8_unicode_ci NOT NULL,
`title` int(11) NOT NULL,
`template` text COLLATE utf8_unicode_ci NOT NULL,
- `styles` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
@@ -169,10 +169,10 @@ function create_mysql_tables()
global $sql_tables;
$queries = explode(";", $sql_tables);
- foreach($queries as $q)
- {
- if(!empty($q))
+ foreach ($queries as $q) {
+ if (!empty($q)) {
qdb($q);
+ }
}
qdb("INSERT INTO `PREFIX_meta` (`key`, `value`) VALUES ('dbversion', ?)", base64_encode(serialize(1)));