extend/alipay/pay/lotusphp_runtime/Lotus.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
class Lotus
{
	/**
	 * Lotus Option array
	 * 
	 * @var array array(
	 * 	"proj_dir"     =>
	 * 	"app_name"     =>
	 * 	"autoload_dir" =>
	 * );
	 */
	public $option;
	public $devMode = true;
	public $defaultStoreDir;

	protected $proj_dir;
	protected $app_dir;
	protected $data_dir;
	protected $lotusRuntimeDir;
	protected $coreCacheHandle;

	public function __construct()
	{
		$this->lotusRuntimeDir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
	}

	public function init()
	{
		$underMVC = false;
		if (isset($this->option["proj_dir"]) && !empty($this->option["proj_dir"]))
		{
			$this->proj_dir = rtrim($this->option["proj_dir"], '\\/') . '/';
			if (isset($this->option["app_name"]) && !empty($this->option["app_name"]))
			{
				$this->app_dir = $this->proj_dir . "app/" . $this->option["app_name"] . "/";
				$this->data_dir = $this->proj_dir . "data/" . $this->option["app_name"] . "/";
				$underMVC = true;
			}
			else
			{
				trigger_error("Lotus option [app_name] is missing.");
			}
		}

		/**
		 * Load core component
		 */
		require_once $this->lotusRuntimeDir . "Store.php";
		require_once $this->lotusRuntimeDir . "StoreMemory.php";
		require_once $this->lotusRuntimeDir . "StoreFile.php";

		if ($this->defaultStoreDir)
		{
			if ($defaultStoreDir = realpath($this->defaultStoreDir))
			{
				LtStoreFile::$defaultStoreDir = $defaultStoreDir;
			}
			else
			{

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。