2004-04-11 04:15:10 -04:00
|
|
|
<?php
|
|
|
|
|
2004-10-18 00:50:08 -04: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 04:15:10 -04:00
|
|
|
?>
|
|
|
|
|
|
|
|
<br clear="all" />
|
|
|
|
|
2004-10-18 23:03:06 -04:00
|
|
|
<?php if (isset($_GET['updated'])) : ?>
|
2005-08-07 21:13:22 -04:00
|
|
|
<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div>
|
2004-04-11 04:15:10 -04:00
|
|
|
<?php endif; ?>
|