Exemple #1
0
<?php

// ClanSphere 2010 - www.clansphere.net
// $Id$
$tday = cs_datereal('d');
$tmonth = cs_datereal('n');
$tyear = cs_datereal('Y');
$daystart = mktime(0, 0, 0, $tmonth, $tday, $tyear);
$daystart = cs_timediff($daystart, 1);
$where = 'count_time > \'' . $daystart . '\'';
echo number_format(cs_sql_count(__FILE__, 'count', $where), 0, ',', '.');
Exemple #2
0
function cs_datereal($mode, $time = 0, $reverse = 0)
{
    $time = empty($time) ? cs_time() : $time;
    $time = cs_timediff($time, $reverse);
    return date($mode, $time);
}