admin/model/extension/d_opencart_patch/vqmod.php
(完整代码) 895B<?php
/*
* location: admin/model/extension/d_opencart_patch/vqmod.php
*
*/
class ModelExtensionDOpencartPatchVqmod extends Model {
/*
* Vqmod: turn on or off
*/
public function setModification($xml, $action = 1){
$dir_vqmod = str_replace("system", "vqmod/xml", DIR_SYSTEM);
$on = $dir_vqmod.$xml;
$off = $dir_vqmod.$xml.'_';
if($action){
if (file_exists($off)) {
return rename($off, $on);
}
}else{
if (file_exists($on)) {
return rename($on, $off);
}
}
return false;
}
public function refreshCache(){
$dir_vqmod = str_replace("system", "vqmod", DIR_SYSTEM);
$file = $dir_vqmod.'mods.cache';
if (file_exists($file)) {
return unlink($file);
}
return false;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
