2004-04-11 10:15:10 +02:00
|
|
|
<?php
|
|
|
|
|
2004-10-18 06:50:08 +02:00
|
|
|
$parent_file = 'options-general.php';
|
|
|
|
|
|
|
|
function add_magic_quotes($array) {
|
|
|
|
foreach ($array as $k => $v) {
|
|
|
|
if (is_array($v)) {
|
|
|
|
$array[$k] = add_magic_quotes($v);
|
|
|
|
} else {
|
|
|
|
$array[$k] = addslashes($v);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $array;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!get_magic_quotes_gpc()) {
|
|
|
|
$_GET = add_magic_quotes($_GET);
|
|
|
|
$_POST = add_magic_quotes($_POST);
|
|
|
|
$_COOKIE = add_magic_quotes($_COOKIE);
|
2004-04-11 10:15:10 +02:00
|
|
|
}
|
2004-10-18 06:50:08 +02:00
|
|
|
|
|
|
|
$wpvarstoreset = array('action','standalone', 'option_group_id');
|
|
|
|
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
|
|
|
$wpvar = $wpvarstoreset[$i];
|
|
|
|
if (!isset($$wpvar)) {
|
|
|
|
if (empty($_POST["$wpvar"])) {
|
|
|
|
if (empty($_GET["$wpvar"])) {
|
|
|
|
$$wpvar = '';
|
|
|
|
} else {
|
|
|
|
$$wpvar = $_GET["$wpvar"];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$$wpvar = $_POST["$wpvar"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$standalone = 0;
|
|
|
|
include_once('admin-header.php');
|
2004-04-11 10:15:10 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<br clear="all" />
|
|
|
|
|
2004-05-08 01:56:33 +02:00
|
|
|
<?php if (isset($updated)) : ?>
|
2004-04-25 04:03:32 +02:00
|
|
|
<div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div>
|
2004-04-11 10:15:10 +02:00
|
|
|
<?php endif; ?>
|