Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
c1a7b2cd
Commit
c1a7b2cd
authored
Aug 08, 2012
by
cfoe
Browse files
changed sql table for standard conform themes
parent
0cc22c0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/sql/incremental/upd_0034.sql
View file @
c1a7b2cd
...
@@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `aps_packages` (
...
@@ -54,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `aps_packages` (
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `aps_settings`
-- Table
stru
c
tur
e
f
o
r
t
able `aps_settings`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`aps_settings`
(
CREATE
TABLE
IF
NOT
EXISTS
`aps_settings`
(
...
@@ -68,28 +68,16 @@ CREATE TABLE IF NOT EXISTS `aps_settings` (
...
@@ -68,28 +68,16 @@ CREATE TABLE IF NOT EXISTS `aps_settings` (
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `
tpl_default
`
-- Table
stru
c
tur
e
f
o
r
t
able `
sys_theme
`
--
--
-- CREATE TABLE IF NOT EXISTS `tpl_default` (
CREATE
TABLE
IF
NOT
EXISTS
`sys_theme`
(
-- `var_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`var_id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
-- `username` varchar(64) NOT NULL,
`tpl_name`
varchar
(
32
)
NOT
NULL
,
-- `logo_url` varchar(255) NOT NULL,
`username`
varchar
(
64
)
NOT
NULL
,
-- PRIMARY KEY (`var_id`)
`logo_url`
varchar
(
255
)
NOT
NULL
,
--) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
PRIMARY
KEY
(
`var_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `tpl_default-v2`
--
--CREATE TABLE IF NOT EXISTS `tpl_default-v2` (
-- `var_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-- `username` varchar(64) NOT NULL,
-- `logo_url` varchar(255) NOT NULL,
-- PRIMARY KEY (`var_id`)
--) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
-- --------------------------------------------------------
-- --------------------------------------------------------
...
@@ -104,5 +92,5 @@ INSERT INTO `aps_settings` (`id`, `name`, `value`) VALUES(3, 'ignore-webserver-m
...
@@ -104,5 +92,5 @@ INSERT INTO `aps_settings` (`id`, `name`, `value`) VALUES(3, 'ignore-webserver-m
ALTER
TABLE
`client`
ADD
`limit_aps`
int
(
11
)
NOT
NULL
DEFAULT
'0'
AFTER
`limit_webdav_user`
;
ALTER
TABLE
`client`
ADD
`limit_aps`
int
(
11
)
NOT
NULL
DEFAULT
'0'
AFTER
`limit_webdav_user`
;
ALTER
TABLE
`client_template`
ADD
`limit_aps`
int
(
11
)
NOT
NULL
DEFAULT
'0'
AFTER
`limit_webdav_user`
;
ALTER
TABLE
`client_template`
ADD
`limit_aps`
int
(
11
)
NOT
NULL
DEFAULT
'0'
AFTER
`limit_webdav_user`
;
-- INSERT INTO `tpl_default` (`var_id`, `username`, `logo_url`) VALUES('', 'global', 'themes/default/images/header_logo.png');
INSERT
INTO
`dbispconfig`
.
`sys_theme`
(
`var_id`
,
`tpl_name`
,
`username`
,
`logo_url`
)
VALUES
(
NULL
,
'default'
,
'global'
,
'themes/default/images/header_logo.png'
);
-- INSERT INTO `tpl_default-2` (`var_id`, `username`, `logo_url`) VALUES('', 'global', 'themes/default-v2/images/header_logo.png');
INSERT
INTO
`dbispconfig`
.
`sys_theme`
(
`var_id`
,
`tpl_name`
,
`username`
,
`logo_url`
)
VALUES
(
NULL
,
'default-v2'
,
'global'
,
'themes/default-v2/images/header_logo.png'
);
\ No newline at end of file
\ No newline at end of file
interface/web/admin/form/tpl_default-v2.tform.php
View file @
c1a7b2cd
...
@@ -63,8 +63,8 @@ $form["title"] = "tpl_default-v2_head_txt";
...
@@ -63,8 +63,8 @@ $form["title"] = "tpl_default-v2_head_txt";
$form
[
"description"
]
=
"tpl_default-v2_desc_txt"
;
$form
[
"description"
]
=
"tpl_default-v2_desc_txt"
;
$form
[
"name"
]
=
"tpl_default-v2"
;
$form
[
"name"
]
=
"tpl_default-v2"
;
$form
[
"action"
]
=
"tpl_default-v2.php"
;
$form
[
"action"
]
=
"tpl_default-v2.php"
;
$form
[
"db_table"
]
=
"
default-v2
"
;
$form
[
"db_table"
]
=
"
sys_theme
"
;
$form
[
"db_table_idx"
]
=
"
var_
id"
;
$form
[
"db_table_idx"
]
=
"id"
;
$form
[
"db_history"
]
=
"yes"
;
$form
[
"db_history"
]
=
"yes"
;
$form
[
"tab_default"
]
=
"basic"
;
$form
[
"tab_default"
]
=
"basic"
;
$form
[
"list_default"
]
=
"system_config_edit.php"
;
$form
[
"list_default"
]
=
"system_config_edit.php"
;
...
...
interface/web/admin/form/tpl_default.tform.php
View file @
c1a7b2cd
...
@@ -63,8 +63,8 @@ $form["title"] = "tpl_default_head_txt";
...
@@ -63,8 +63,8 @@ $form["title"] = "tpl_default_head_txt";
$form
[
"description"
]
=
"tpl_default_desc_txt"
;
$form
[
"description"
]
=
"tpl_default_desc_txt"
;
$form
[
"name"
]
=
"tpl_default"
;
$form
[
"name"
]
=
"tpl_default"
;
$form
[
"action"
]
=
"tpl_default.php"
;
$form
[
"action"
]
=
"tpl_default.php"
;
$form
[
"db_table"
]
=
"
default
"
;
$form
[
"db_table"
]
=
"
sys_theme
"
;
$form
[
"db_table_idx"
]
=
"
var_
id"
;
$form
[
"db_table_idx"
]
=
"id"
;
$form
[
"db_history"
]
=
"yes"
;
$form
[
"db_history"
]
=
"yes"
;
$form
[
"tab_default"
]
=
"basic"
;
$form
[
"tab_default"
]
=
"basic"
;
$form
[
"list_default"
]
=
"system_config_edit.php"
;
$form
[
"list_default"
]
=
"system_config_edit.php"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment