require_once 'header.php'; if ($_GET["action"] == "new") { ?> <form> <input type="hidden" name="action" value="installnew"> <input type="text" name="plugin"> <input type="submit"> </form> <?php } elseif ($_GET["action"] == "installnew") { oct_install($_GET["plugin"], "p"); } else { ?> <div id="page-su-header"><?php include_once "../includes/forms/search.php"; include_once "../includes/forms/sort_items.php"; ?> <a href="?action=new" class="button">Add New</a></div> <?php $dir = scandir(abspath . "/plugins"); if (isset($_GET["order"]) and $_GET["order"] == "desc") { rsort($dir); } foreach ($dir as $plugin) { if ($plugin == "." or $plugin == "..") { } else {
<input type="text" name="theme"> <input type="submit"> </form> <h2>Manual install </h2> As I dosent like theming there are no themes by me. You can make your own and your upload it. Just upload the folder to the themes folder. <?php } elseif ($_GET["action"] == "installnew") { if (is_writeable(abspath . "/themes")) { oct_install($_GET["theme"], "t"); } else { echo "<span class='error'>you need to chmod the themes folder.</span>"; } } else { ?> <div id="page-su-header"><?php include_once "../includes/forms/search.php"; include_once "../includes/forms/sort_items.php"; ?> <a href="?action=new" class="button">Add New</a> <strong>Active Theme:</strong> <?php echo $theme; ?> </div><?php $dir = scandir(abspath . "/themes");