2004-04-11 10:15:10 +02:00
|
|
|
<?php
|
|
|
|
|
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"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-04-11 10:15:10 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<br clear="all" />
|
|
|
|
|
2004-10-19 05:03:06 +02:00
|
|
|
<?php if (isset($_GET['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; ?>
|