2020-11-29 01:55:31 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2023-08-20 00:33:05 +02:00
|
|
|
<META HTTP-EQUIV="Content-type"
|
|
|
|
CONTENT="text/html; charset=<?=$www_charset?>">
|
2020-11-29 01:55:31 +01:00
|
|
|
<?php
|
|
|
|
if (file_exists('../common/mods/style.css')) {
|
2023-08-20 00:33:05 +02:00
|
|
|
echo '<link rel="stylesheet" type="text/css" href="../common/mods/style.css">';
|
2020-11-29 01:55:31 +01:00
|
|
|
} else {
|
2023-08-20 00:33:05 +02:00
|
|
|
echo '<link rel="stylesheet" type="text/css" href="../common/style.css">';
|
2020-11-29 01:55:31 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
include "config.inc.php";
|
2023-08-20 00:33:05 +02:00
|
|
|
include $config_dir . '/admin.inc.php';
|
2020-11-29 01:55:31 +01:00
|
|
|
|
2023-08-20 00:33:05 +02:00
|
|
|
$configdata = include ($config_dir . '/scripts/setuphelper.php');
|
|
|
|
$configfile = $config_dir . 'rslight.inc.php';
|
2020-11-29 01:55:31 +01:00
|
|
|
|
|
|
|
echo 'Main Configuration';
|
|
|
|
echo '<table width=100% border="1" align="center" cellpadding="0" cellspacing="1">';
|
|
|
|
echo '<form name="config" method="post" action="setup.php">';
|
|
|
|
$pass = 'pass';
|
2023-08-20 00:33:05 +02:00
|
|
|
foreach ($CONFIG as $key => $item) {
|
|
|
|
if ($key == 'configure') {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$guide = $configdata[$key];
|
|
|
|
echo '<tr><td>' . $guide . ': </td><td>';
|
|
|
|
if (strpos($key, $pass)) {
|
|
|
|
echo '<input name="' . $key . '" type="password" id="' . $key . '" value="' . htmlspecialchars($item) . '" size="50"><br />';
|
2020-11-29 01:55:31 +01:00
|
|
|
} else {
|
2023-08-20 00:33:05 +02:00
|
|
|
echo '<input name="' . $key . '" type="text" id="' . $key . '" value="' . htmlspecialchars($item) . '" size="50"><br />';
|
2020-11-29 01:55:31 +01:00
|
|
|
}
|
2023-08-20 00:33:05 +02:00
|
|
|
echo '</td></tr>';
|
2020-11-29 01:55:31 +01:00
|
|
|
}
|
|
|
|
echo '</table>';
|
2023-08-20 00:33:05 +02:00
|
|
|
echo '<input type="hidden" name="configkey" value="' . $admin['key'] . '">';
|
2020-11-29 01:55:31 +01:00
|
|
|
echo '<input type="submit" name="configure" value="Save Configuration">';
|
|
|
|
echo '</form>';
|
|
|
|
?>
|