选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
* @license https://github.com/xoopscube/legacy/blob/master/docs/bsd_licenses.txt Modified BSD license * */ /** * The theme class. */ class XCube_Theme { /** * A name of the theme. * * @var string */ var $mName = null; /** * A name of the theme on the file system. * * @var string */ var $mDirname = null; /** * A name of entities system which this theme depends on. * * @var string */ var $mDepends = array(); var $mVersion = null; var $mUrl = null; /** * A name of the render system which this theme depends on. * * @var string */ var $mRenderSystemName = null; /** * A file name of screen shot. * * @var string */ var $mScreenShot = null; var $mDescription = null; /** * A description of this theme file format. This information isn't used by * a program. But, this is an important information for users * * @var string */ var $mFormat = null; var $mAuthor = null; /** * @deprecated mLicense */ var $mLicence = null; var $mLicense = null; var $_mManifesto = array(); /** * Load manifesto file, and set infomations from the file to member * property. * * @return bool */ function loadManifesto($file) { if (file_exists($file)) { $iniHandler = new XCube_IniHandler($file, true); $this->_mManifesto = $iniHandler->getAllConfig(); $this->mName = isset($this->_mManifesto['Manifesto']['Name']) ? $this->_mManifesto['Manifesto']['Name'] : ""; $this->mDepends = isset($this->_mManifesto['Manifesto']['Depends']) ? $this->_mManifesto['Manifesto']['Depends'] : ""; $this->mVersion = isset($this->_mManifesto['Manifesto']['Version']) ? $this->_mManifesto['Manifesto']['Version'] : ""; $this->mUrl = isset($this->_mManifesto['Manifesto']['Url']) ? $this->_mManifesto['Manifesto']['Url'] : ""; $this->mRenderSystemName = isset($this->_mManifesto['Theme']['RenderSystem']) ? $this->_mManifesto['Theme']['RenderSystem'] : ""; $this->mAuthor = isset($this->_mManifesto['Theme']['Author']) ? $this->_mManifesto['Theme']['Author'] : ""; if (isset($this->_mManifesto['Theme']['ScreenShot'])) { $this->mScreenShot = $this->_mManifesto['Theme']['ScreenShot']; } if (isset($this->_mManifesto['Theme']['Description'])) { $this->mDescription = $this->_mManifesto['Theme']['Description']; } $this->mFormat = isset($this->_mManifesto['Theme']['Format']) ? $this->_mManifesto['Theme']['Format'] : ""; if (isset($this->_mManifesto['Theme']['License'])) { $this->mLicense = $this->_mManifesto['Theme']['License']; $this->mLicence = $this->_mManifesto['Theme']['License']; } elseif (isset($this->_mManifesto['Theme']['Licence'])) { // For typo $this->mLicense = $this->_mManifesto['Theme']['Licence']; $this->mLicence = $this->_mManifesto['Theme']['Licence']; } return true; } else { return false; } } } ?>