function show_sitestats() { $return .= 'Hosted Projects: <B>' . number_format(stats_getprojects_active()) . '</B>'; $return .= '<BR>Registered Users: <B>' . number_format(stats_getusers()) . '</B>'; // $return .= '<BR>Files Downloaded: <B>'.number_format(stats_downloads_total()).'</B>'; // $return .= '<BR>Pages Viewed: <B>'.number_format(stats_getpageviews_total()).'</B><BR> '; return $return; }
function stats_site_agregate() { global $Language; $sql = "SELECT COUNT(day) AS days,SUM(site_views) AS site_views," . "SUM(subdomain_views) AS subdomain_views,SUM(downloads) AS downloads " . "FROM stats_site"; $res = db_query($sql); $site_totals = db_fetch_array($res); print "\n\n"; print '<P><B>' . $Language->getText('stats_site_stats_utils', 'curr_agg_stats') . '</B></P>' . "\n"; print '<P><TABLE width="100%" cellpadding=0 cellspacing=0 border=0>' . "\n"; print '<TR valign="top">' . '<TD><B>' . $Language->getText('stats_site_stats_utils', 'lifespan') . '</B></TD>' . '<TD><B>' . $Language->getText('stats_site_stats_utils', 'site_views') . '</B></TD>' . '<TD><B>' . $Language->getText('stats_site_stats_utils', 'subdomain_views') . '</B></TD>' . '<TD><B>' . $Language->getText('stats_site_stats_utils', 'downl') . '</B></TD>' . '<TD><B>' . $Language->getText('stats_site_stats_utils', 'developers') . '</B></TD>' . '<TD><B>' . $Language->getText('stats_site_stats_utils', 'projs') . '</B></TD>' . '</TR>' . "\n"; print '<TR>' . '<TD>' . $site_totals["days"] . ' ' . $Language->getText('stats_site_stats_utils', 'days') . ' </TD>' . '<TD>' . number_format($site_totals["site_views"]) . '</TD>' . '<TD>' . number_format($site_totals["subdomain_views"]) . '</TD>' . '<TD>' . number_format($site_totals["downloads"]) . '</TD>' . '<TD>' . number_format(stats_getusers()) . '</TD>' . '<TD>' . number_format(stats_getprojects_active()) . '</TD>' . '</TR>' . "\n"; print '</TABLE>'; }
function show_sitestats() { global $Language; $return = ""; $return .= $Language->getText('include_features_boxes', 'hosted_projects') . ': <B>' . number_format(stats_getprojects_active()) . '</B>'; $return .= '<BR>' . $Language->getText('include_features_boxes', 'registered_users') . ': <B>' . number_format(stats_getusers()) . '</B>'; $return .= '<BR>' . $Language->getText('include_features_boxes', 'files_download') . ': <B>' . number_format(stats_downloads_total()) . '</B>'; //$return .= '<BR>'.$Language->getText('include_features_boxes','pages_viewed').': <B>'.number_format(stats_getpageviews_total()).'</B> '; return $return; }