Пример #1
0
function clearCache()
{
    DeleteFile($GLOBALS['WEB_CACHEFile']);
    deleteFolder('./../cache/html');
    CreateFolder('./../cache/html');
    Rw(getMsg1(setL('清除缓冲完成,正在进入后台界面...'), '?act=displayAdminLogin'));
}
Пример #2
0
function delTemplate()
{
    $templateDir = '';
    $toTemplateDir = '';
    $url = '';
    $templateDir = replace(@$_REQUEST['templateDir'], '\\', '/');
    handlePower('删除模板');
    //管理权限处理
    $toTemplateDir = mid($templateDir, 1, inStrRev($templateDir, '/')) . '#' . mid($templateDir, inStrRev($templateDir, '/') + 1, -1) . '_' . Format_Time(now(), 11);
    //call die(toTemplateDir)
    moveFolder($templateDir, $toTemplateDir);
    $url = '?act=displayLayout&templateFile=layout_manageTemplates.html&lableTitle=模板';
    Rw(getMsg1('删除模板完成,正在进入模板界面...', $url));
}