Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/webdrive/uploadform.php
<?PHP
	if (!isset($rootpath))
		return;//$rootpath="../";
	include_once($rootpath . "common.php");

	$ttem = new Template();

	$ttem->set_filenames(array("header"=>$rootpath."html/sheader.tpl"));
	$ttem->set_filenames(array("uploadform"=>$rootpath."html/webdrive/uploadform.tpl"));
	$ttem->set_filenames(array("footer"=>$rootpath."html/footer.tpl"));

	$ttem->assign_var("APP_ROOT", $webappcfg['APPPATH']);

	@reset($rb);
	while (list($key, $var) = each($rb))
	{
		$ttem->assign_var($key, $var);
	}

	@reset($rb);
	while (list($key, $var) = each($rb))
	{
		$ttem->assign_var($key, $var);
	}

	$ttem->assign_var("FORM_OWNERID", $response['ownerid']);
	$ttem->assign_var("FORM_DIR", $response['dir']);
	$ttem->assign_var("SESSDATA", $_COOKIE['sessiondata']);
	$ttem->assign_var("HTTP_HOST", "http://". $_SERVER['HTTP_HOST'] . "/PHP_CON/filecontroller.php");
	
	$ttem->pparse("header");
	$ttem->pparse("uploadform");
	$ttem->pparse("footer")
?>
Return current item: RabbitBB - Online Web Storage Project