Esempio n. 1
0
 $POD->setLibOptions('peopleIconSquare', 'peopleIconSquare');
 $POD->setLibOptions('peopleImageMaxWidth', '300');
 $POD->setLibOptions('peopleImageResize', 'peopleImageResize');
 // FIX THIS
 // set other default options!!
 $error = false;
 $POD->saveLibOptions(true);
 if ($POD->success()) {
     echo "<p>Defaults written to " . $POD->libOptions('etcPath') . '/options.php</p>';
     $POD->loadAvailablePods();
     foreach ($POD->PODS as $name => $podling) {
         if (in_array($name, $required_pods)) {
             $POD->enablePOD($name);
         }
     }
     $message = $POD->writeHTACCESS($installDir . "/..");
     if (!$POD->success()) {
         $error = true;
         unlink($POD->libOptions('etcPath') . "/options.php");
         echo '<p class="error">Could not write to .htaccess file! ' . $POD->error() . "</p>";
     } else {
         $POD->saveLibOptions(true);
         echo "<p>{$message}</p>";
     }
 } else {
     echo '<p class="error">Could not write to config file! ' . $POD->error() . "</p>";
     $error = true;
 }
 if (!$error) {
     echo '<p><a href="index.php">Continue &#187;</a></p>';
 }
Esempio n. 2
0
        // if it was checked, enable it.  if not, disable it.
        if ($form[$name]) {
            $message .= $POD->enablePOD($name);
        } else {
            if ($POD->isEnabled($name)) {
                $message .= $POD->disablePOD($name);
            }
        }
    }
    // save everything to lib/etc/options.php
    $POD->saveLibOptions();
    if (!$POD->success()) {
        $message .= $POD->error();
    } else {
        $POD->processIncludes();
        $message .= $POD->writeHTACCESS($htaccessPath);
    }
}
$POD->changeTheme('admin');
$POD->header();
$current_tab = "pods";
?>
	
	<?php 
include_once "option_nav.php";
?>
	<?php 
if ($message != '') {
    ?>
		<div class="info">