Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1244503
fix_paths.tpl
No One
Temporary
Actions
Download 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
Fri, Nov 21, 2:09 AM
Size
781 B
Mime Type
text/x-php
Expires
Sun, Nov 23, 2:09 AM (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
807475
Attached To
rINP In-Portal
fix_paths.tpl
View Options
<?php
$
config_vars = Array ('Site_Path', 'Site_Name', 'Backup_Path');
$
sql = 'SELECT Prompt, VariableName
FROM ' . TABLE_PREFIX . 'ConfigurationAdmin
WHERE VariableName IN ("' . implode('","',
$
config_vars) . '")';
$
config_labels =
$
this->Conn->GetCol(
$
sql, 'VariableName');
$
odd_even = true;
foreach (
$
config_vars as
$
config_var) {
?>
<
tr
class
=
"<?php echo
$
odd_even ? 'table-color1' : 'table-color2'; ?>"
>
<
td
class
=
"text"
><
b
>
<?php echo
$
this->Application->Phrase(
$
config_labels[
$
config_var] ); ?>
:
</
b
></
td
>
<
td
align
=
"left"
>
<
input
type
=
"text"
name
=
"config[<?php echo
$
config_var; ?>]"
class
=
"text"
size
=
"50"
value
=
"<?php echo
$
this->Application->ConfigValue(
$
config_var); ?>"
/>
</
td
>
</
tr
>
<?php
$
odd_even =
$
odd_even ? false : true;
}
?>
Event Timeline
Log In to Comment