Exemple #1
0
<?php

include_once "../../PeoplePods.php";
$POD = new PeoplePod(array('lockdown' => 'adminUser', 'authSecret' => @$_COOKIE['pp_auth']));
if ($_POST) {
    $fromAddress = @$_POST['fromAddress'];
    $friendEmail = @$_POST['friendEmail'];
    $POD->setLibOptions('fromAddress', $fromAddress);
    $POD->setLibOPtions('friendEmail', $friendEmail);
    $POD->setLibOPtions('contactEmail', @$_POST['contactEmail']);
    $POD->saveLibOptions();
    if ($POD->success()) {
        $message = "Config updated.";
    } else {
        $message = $POD->error();
    }
}
$POD->changeTheme('admin');
$POD->header();
$current_tab = "emails";
include_once "option_nav.php";
?>

	<?php 
if (isset($message)) {
    ?>
		<div class="info">
		
			<?php 
    echo $message;
    ?>