示例#1
0
	private static function _data($id,$render,$raw)
	{
		$path=FLEX_APP_DIR_DAT."/_".self::$class."/".$id."/".self::$config["index"].".php";
		$fe=@file_exists($path);
		$cont="";
		if($raw)
		{
			if($fe)
			{
				$cont=@file_get_contents($path);
			}
			else
			{
				@ob_start();
				@include $path;
				$cont=@ob_get_contents();
				@ob_end_clean();
			}
			if($cont)
			{
				if(lib::mquotes_runtime())$cont=stripslashes($cont);
				$cont=lib::bomTrim($cont);
				$cont=trim($cont);
			}
		}
		else
		{
			@ob_start();
			@include $path;
			$cont=@ob_get_contents();
			@ob_end_clean();
		}
		if($render===false)return $cont;
		else
		{
			if(!$cont)
			{
				if(is_string($render) && !$fe)echo $render;
				else echo"";
			}
			else echo $cont;
		}
	}