Esempio n. 1
0
File: index.php Progetto: VSG24/ccms
            <div align="left" style="margin-top: 10%;">
                <span style="/*position: fixed; */color: #fff; text-align: left !important;"><strong>ccms v<?php 
echo getVersion();
?>
</strong></span><br><span><a style="color: yellow;" href="?switch=updates"><?php 
if (isUpdateAvailable() == 1) {
    _e('regu_update_here', '', '!');
} elseif (isUpdateAvailable() == 2) {
    _e('crit_update_here', '', '!');
} else {
    _e('updates');
}
?>
</a></span>
                <?php 
if (shouldCache()) {
    ?>
<br><span><a style="color: yellow;" href="?switch=clear_cache"><?php 
    _e('clear_cache');
    ?>
</a></span><?php 
}
?>
            </div>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="page-header"><?php 
echo $curr_loc;
?>
</h2>
Esempio n. 2
0
function doCache()
{
    if (shouldCache()) {
        include_once DOC_ROOT . '/includes/cache.php';
    }
}
Esempio n. 3
0
    goto end;
}
if (isset($_GET['sub']) && $_GET['sub'] == 'change_stat') {
    if (shouldCache()) {
        $stat = 'no';
    } else {
        $stat = 'yes';
    }
    $query = "UPDATE c_options SET option_value = '{$stat}' WHERE option_name = 'caching'";
    $conn = MySQL::open_conn();
    $res = $conn->query($query);
    dbQueryCheck($res, $conn);
    ob_end_clean();
    redirectTo('index.php?switch=utilities#cache');
}
$cache_stat = shouldCache();
if ($cache_stat == true) {
    $caching = _e('enabled', '', '', true);
} else {
    $caching = _e('disabled', '', '', true);
}
?>
<p><?php 
_e('click_to_change_status');
?>
</p>
<span style="text-align: center"><?php 
_e('caching_status', '', ':');
?>
<br><a href="index.php?switch=utilities&sub=change_stat"><?php 
echo $caching;