Location: PHPKode > scripts > PHP Hosting Directory > phphost_directoryv2/include/admin.config.php
<?

if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
  unset($vars['page']);
  while (list($name, $value) = each ($vars))
  {
    mysql_query("UPDATE `hsl_config` SET `value`='$value' WHERE `name`='$name'");
  }
  $t->assign('info_message', "Updated");
}

$sql = "SELECT * FROM `hsl_config`";
$res = mysql_query($sql);

while ($row = mysql_fetch_assoc($res))
{
  $t->assign($row['name'], $row['value']);
}

$t->assign('main_html', 'admin_'.$request[1].'.html');

?>
Return current item: PHP Hosting Directory