vqmod/vqmod.php

(开头部分) 25KB

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

<?php
/**
 * VQMod
 * @description Main Object used
 */
abstract class VQMod {
	public static $_vqversion = '2.6.4';						// Current version number

	private static $_modFileList = array();						// Array of xml files
	private static $_mods = array();							// Array of modifications to apply
	private static $_filesModded = array();						// Array of already modified files
	private static $_doNotMod = array();						// Array of files not to apply modifications to
	private static $_cwd = '';									// Current working directory path
	private static $_folderChecks = false;						// Flag for already checked log/cache folders exist
	private static $_cachePathFull = '';						// Full cache folder path
	private static $_lastModifiedTime = 0;						// Integer representing the last time anything was modified
	private static $_devMode = false;							// Flag for developer mode - disables caching while true

	public static $logFolder = 'vqmod/logs/';					// Path log folders are stored in
	public static $vqCachePath = 'vqmod/vqcache/';				// Relative path to cache file directory
	public static $modCache = 'vqmod/mods.cache';				// Relative path to serialized mods array cache file
	public static $checkedCache = 'vqmod/checked.cache';		// Relative path to already checked files array cache file
	public static $protectedFilelist = 'vqmod/vqprotect.txt';	// Relative path to protected files array cache file
	public static $pathReplaces = 'vqmod/pathReplaces.php';		// Relative path to dynamic path replacement file
	public static $logging = true;								// Flag to enabled/disable logging
	public static $log;											// Log object reference
	public static $fileModding = false;							// Reference to the current file being modified by vQmod for logging
	public static $directorySeparator = '';						// System directory separator (/ or \ depending on OS)
	public static $replaces = array();							// Array of regex replaces to perform on file paths
	public static $windows = false;								// Flag determining if windows or *nix based

	/**
	 * VQMod::bootup()
	 *
	 * @param bool $path File path to use
	 * @param bool $logging Enable/disabled logging
	 * @return null
	 * @description Startup of VQMod
	 */
	public static function bootup($path = false, $logging = true) {
		if(!class_exists('DOMDocument')) {
			die('VQMod::bootup - ERROR - YOU NEED THE PHP "DOMDocument" EXTENSION INSTALLED TO USE VQMod');
		}

		if(strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
			self::$windows = true;
		}

		self::$directorySeparator = defined('DIRECTORY_SEPARATOR') ? DIRECTORY_SEPARATOR : '/';

		if(!$path){
			$path = dirname(dirname(__FILE__));
		}
		self::_setCwd($path);

		self::$logging = (bool) $logging;
		self::$log = new VQModLog();

		$replacesPath = self::path(self::$pathReplaces);
		$replaces = array();
后面还有 907 行代码,购买后查看完整代码

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

AI 解读

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

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