Ejemplo n.º 1
0
<?php

if (!defined("IN_SCRIPT") || !isset($_SESSION['admin_user_id']) || !$_SESSION['admin_user_id'] || !isset($_SESSION['admin_username']) || !$_SESSION['admin_username']) {
    header("Location: login.php?menu={$menu}");
    die;
}
require_once "../includes/pclzip.lib.php";
$updater = new Updater();
$curl = new Curl();
$curl->header(true);
if (isset($_POST['save_ftp']) && isset($_POST['ftp'])) {
    $errors = $updater->validateFtp($_POST['ftp']);
    if (!count($errors)) {
        $settings->addSetting("ftp", json_encode($ftp));
        $save_success = true;
    }
}
$ftp = $settings->getSetting("ftp", true);
?>
<script src="<?php 
print $baseurl;
?>
/plugins/uploader/js/scripts.js"></script>
<nav>
    <div id="jCrumbs" class="breadCrumb module">
        <ul>
            <li>
                <a href="index.php"><i class="icon-home"></i></a>
            </li>
            <li>
                <a href="index.php?menu=plugins">Plugins</a>