Exemplo n.º 1
0
<?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" : "";
?>
Exemplo n.º 2
0
/* ========================= */
// 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");

/* ========================= */
Exemplo n.º 3
0
	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();
		}
	}
Exemplo n.º 4
0
function GetSubfilesAndSubfolders($dir)
{
	$folders = GetSubfolders($dir);
	$files = GetSubfiles($dir);

	return array_merge($folders, $files);
}