Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F772592
db_reconfig.tpl
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 1, 12:16 PM
Size
2 KB
Mime Type
text/plain
Expires
Mon, Feb 3, 12:16 PM (22 h, 17 m)
Engine
blob
Format
Raw Data
Handle
555212
Attached To
rINP In-Portal
db_reconfig.tpl
View Options
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Database Server Type
<
span
class
=
"error"
>
*
</
span
>
:
</
b
></
td
>
<
td
align
=
"left"
>
<
select
name
=
"DBType"
>
<?php
$
options = Array ('mysql' => 'MySQL', /*'mssql' => 'MS-SQL Server', 'pgsql' => 'pgSQL'*/);
$
option_tpl = '<option value="%1
$
s"%2
$
s>%3
$
s</option>'."\n";
foreach (
$
options as
$
option_key =>
$
option_title) {
$
selected =
$
option_key ==
$
this->toolkit->getSystemConfig('Database', 'DBType') ? ' selected' : '';
echo sprintf(
$
option_tpl,
$
option_key,
$
selected,
$
option_title);
}
?>
</
select
>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Database Hostname
<
span
class
=
"error"
>
*
</
span
>
:
</
b
></
td
>
<
td
align
=
"left"
>
<
input
type
=
"text"
name
=
"DBHost"
class
=
"text"
value
=
"<?php echo
$
this->toolkit->getSystemConfig('Database', 'DBHost'); ?>"
/>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Database Name
<
span
class
=
"error"
>
*
</
span
>
:
</
b
></
td
>
<
td
align
=
"left"
>
<
input
type
=
"text"
name
=
"DBName"
class
=
"text"
value
=
"<?php echo
$
this->toolkit->getSystemConfig('Database', 'DBName'); ?>"
/>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Database User Name
<
span
class
=
"error"
>
*
</
span
>
:
</
b
></
td
>
<
td
align
=
"left"
>
<
input
type
=
"text"
name
=
"DBUser"
class
=
"text"
value
=
"<?php echo
$
this->toolkit->getSystemConfig('Database', 'DBUser'); ?>"
/>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Database User Password:
</
b
></
td
>
<
td
align
=
"left"
>
<
input
type
=
"password"
name
=
"DBUserPassword"
class
=
"text"
value
=
"<?php echo
$
this->toolkit->getSystemConfig('Database', 'DBUserPassword'); ?>"
/>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Database Collation
<
span
class
=
"error"
>
*
</
span
>
:
</
b
></
td
>
<
td
align
=
"left"
>
<
select
name
=
"DBCollation"
class
=
"text"
>
<?php
$
option_tpl = '<option value="%1
$
s"%2
$
s>%1
$
s</option>'."\n";
$
collations = Array ('utf8_general_ci', 'latin1_swedish_ci');
foreach (
$
collations as
$
collation) {
$
selected = (
$
collation ==
$
this->toolkit->getSystemConfig('Database', 'DBCollation')) ? ' selected="selected"' : '';
echo sprintf(
$
option_tpl,
$
collation,
$
selected);
}
?>
</
select
>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
><
b
>
Prefix for Table Names:
</
b
></
td
>
<
td
align
=
"left"
>
<
input
type
=
"text"
name
=
"TablePrefix"
class
=
"text"
maxlength
=
"7"
value
=
"<?php echo
$
this->toolkit->getSystemConfig('Database', 'TablePrefix'); ?>"
/>
</
td
>
</
tr
>
Event Timeline
Log In to Comment