$value) { self::$instance->{$key} = $value; } if (isset($_GET['debug']) && ($_GET['debug'] == 1)) { self::$instance->debug_mode = true; } } else { echo "$config_filepath doesn't exist
"; } } //Instance Updates: self::$instance->blogNameSafe = preg_replace("/[^A-Za-z0-9?!]/", '', self::$instance->blogname); self::$instance->dbhost = empty(self::$instance->dbhost) ? 'localhost' : self::$instance->dbhost; return self::$instance; } public function isZipArchive() { //$extension = strtolower(pathinfo($this->package_name)['extension']); $extension = strtolower(pathinfo($this->package_name, PATHINFO_EXTENSION)); return ($extension == 'zip'); } }