<?php echo compiletpl("title/big", array("left" => "Configuration")); ?> <form name="sInstall" id="sInstall" action="javascript:void(null);" onsubmit="Post('install','sInstall')"> <input class="hidden" type="hidden" name="action" value="finish"> Default theme<br/> <select class="selectbox" name="theme"> <? global $abspath; $folders = GetSubfolders("$abspath/design"); foreach ($folders as $folder) echo "<option ".($folder == $args['theme'] ? "selected" : "")." value=\"$folder\">".ucf($folder)."</option>"; ?> </select><br/> Imagesize<br/> <input class="textline" name="imgsize" value="<?php echo $args['imgsize']; ?> " type="text"><br/> Thumbnailsize<br/> <input class="textline" name="thumbsize" value="<?php echo $args['thumbsize']; ?> " type="text"><br/> Instant thumbnail creation<br/> <select class="selectbox" name="instantthumbs"> <option <?php echo "true" == $args['instantthumbs'] ? "selected" : ""; ?>
/* ========================= */ // Load 3d-party files /* ========================= */ require_once("3dparty/exifer/exif.php"); require_once("3dparty/FCKeditor/fckeditor.php"); $messages = new mMsg(); $messages->clearAll(); /* ========================= */ // Load scriptfiles /* ========================= */ $folders = GetSubfolders("$abspath/scripts"); foreach ($folders as $folder) { if ($folders != "install") require_once("$abspath/scripts/$folder/script.php"); } /* ========================= */ // Load console scriptfiles /* ========================= */ $files = GetSubfiles("$abspath/cscripts"); foreach ($files as $file) require_once("$abspath/cscripts/$file"); /* ========================= */
function loadScripts() { global $abspath; $folders = GetSubfolders("$abspath/scripts"); foreach ($folders as $folder) { if ($folder == "install") continue; if (isset($this->scripts[$folder])) continue; $class_name = "s".ucfirst($folder); $this->scripts[$folder] = new $class_name(); } }
function GetSubfilesAndSubfolders($dir) { $folders = GetSubfolders($dir); $files = GetSubfiles($dir); return array_merge($folders, $files); }