<?php
require_once('admin.php');
//update the general page----------------------
if($Action === 'option_general')
{
foreach($_POST as $Key => $KeyValue)
{
$KeyValue = str_replace("'", "\'", $KeyValue);
$DC->Result("REPLACE INTO ".PR_DATABASE_PREFIX."config SET config_name = '{$Key}', config_value = '{$KeyValue}'");
}
header("Location: option.php?highlight=options_updated");
exit();
}
?>