示例#1
0
        }
        if ($cachetype == 'all' || in_array('contact', $types)) {
            writeContactCache();
        }
        if ($cachetype == 'all' || in_array('channels', $types)) {
            writeChannelsCache();
        }
        if ($cachetype == 'all' || in_array('procates', $types)) {
            writeProductsCateCache();
        }
        if ($cachetype == 'all' || in_array('links', $types)) {
            writeLinksCache();
        }
        if ($cachetype == 'all' || in_array('votes', $types)) {
            writeVotesCache();
        }
        if ($cachetype == 'all' || in_array('folders', $types)) {
            writeFoldersCache();
        }
        if ($cachetype == 'all' || in_array('users', $types)) {
            writeUsersCache();
        }
        if ($cachetype == 'all' || in_array('templatevars', $types)) {
            writeTemplatevarsCache();
        }
        succeedFlag();
        break;
    default:
        echo $_AL['all.noaction'];
        break;
}
示例#2
0
function reBuildLang()
{
    global $db, $_SYS;
    $rows = $db->row_select("langs", "ishidden=0", 0, "*", "isdefault desc,ordernum");
    $langs = array();
    foreach ($rows as $row) {
        $_SYS['alangid'] = $row['id'];
        writeSettingsCache();
        writeLinksCache();
        writeChannelsCache();
        writeProductsCateCache();
        writeContactCache();
        writeVotesCache();
        writeTemplatevarsCache();
    }
}