font_face.";font-size:".$aus_layout->font_size."pt;color:".$aus_layout->font_color.";\">".
$aus_visible->order_name
.":
|
font_face.";font-size:".$aus_layout->font_size."pt;color:".$aus_layout->font_color.";\">";
############## User Online ######################################
if($aus_visible->id=="2")
{
if($aus_visible->order_show=="1")
{
$u_limit=time()-$aus_settings->useronline_time*60;
$get_user_online=mysql_query("SELECT count(id) AS u_online FROM $prefix"."_recentusers WHERE timestamp>'$u_limit'");
$aus_user_online=mysql_fetch_object($get_user_online);
$u_online=$aus_user_online->u_online;
}
echo "$u_online";
}
############## Counts gesamt ######################################
if($aus_visible->id=="3")
{
$get_counts_g=mysql_query("SELECT sum(counts) AS counts_g FROM $prefix"."_counter");
$aus_counts_g=mysql_fetch_object($get_counts_g);
$counts_gesamt=$aus_counts_g->counts_g+$aus_settings->edit_gcounts;
echo "$counts_gesamt";
}
############## Counts Schnitt ######################################
if($aus_visible->id=="4")
{
$get_counts_avg=mysql_query("SELECT avg(counts) AS counts_avg FROM $prefix"."_counter");
if(mysql_num_rows($get_counts_avg)!=0)
{
$aus_counts_avg=mysql_fetch_object($get_counts_avg);
$counts_avg=$aus_counts_avg->counts_avg;
$counts_avg=sprintf("%.0f", $counts_avg);
}
else
{
$counts_avg="0";
}
echo "$counts_avg";
}
############## Counts Max. ######################################
if($aus_visible->id=="5")
{
$get_maxstats=mysql_query("SELECT counts_max FROM $prefix"."_counter_other");
if(mysql_num_rows($get_maxstats)!=0)
{
$aus_maxstats=mysql_fetch_object($get_maxstats);
$counts_max=$aus_maxstats->counts_max;
}
else
{
$counts_max="0";
}
echo "$counts_max";
}
############## Counts Heute ######################################
if($aus_visible->id=="6")
{
$get_date_heute=mysql_query("SELECT * FROM $prefix"."_counter WHERE date='$heute_date'");
if(mysql_num_rows($get_date_heute)!=0)
{
$aus_date_heute=mysql_fetch_object($get_date_heute);
$counts_h=$aus_date_heute->counts;
}
else
{
$counts_h=0;
}
echo "$counts_h";
}
############## Counts Gestern ######################################
if($aus_visible->id=="7")
{
$get_date_gestern=mysql_query("SELECT * FROM $prefix"."_counter WHERE date='$gestern_date'");
if(mysql_num_rows($get_date_gestern)!=0)
{
$aus_date_gestern=mysql_fetch_object($get_date_gestern);
$counts_g=$aus_date_gestern->counts;
}
else
{
$counts_g=0;
}
echo "$counts_g";
}
############## Counts Vorgestern ######################################
if($aus_visible->id=="8")
{
$get_date_vgestern=mysql_query("SELECT * FROM $prefix"."_counter WHERE date='$vgestern_date'");
if(mysql_num_rows($get_date_vgestern)!=0)
{
$aus_date_vgestern=mysql_fetch_object($get_date_vgestern);
$counts_vg=$aus_date_vgestern->counts;
}
else
{
$counts_vg=0;
}
echo "$counts_vg";
}
############## Hits gesamt ######################################
if($aus_visible->id=="9")
{
$get_hits_g=mysql_query("SELECT sum(hits) AS hits_g FROM $prefix"."_counter");
$aus_hits_g=mysql_fetch_object($get_hits_g);
$hits_gesamt=$aus_hits_g->hits_g+$aus_settings->edit_ghits;
echo "$hits_gesamt";
}
############## Hits Schnitt ######################################
if($aus_visible->id=="10")
{
$get_hits_avg=mysql_query("SELECT avg(hits) AS hits_avg FROM $prefix"."_counter");
if(mysql_num_rows($get_hits_avg)!=0)
{
$aus_hits_avg=mysql_fetch_object($get_hits_avg);
$hits_avg=$aus_hits_avg->hits_avg;
$hits_avg=sprintf("%.0f", $hits_avg);
}
else
{
$hits_avg="0";
}
echo "$hits_avg";
}
############## Hits Max. ######################################
if($aus_visible->id=="11")
{
$get_maxstats=mysql_query("SELECT hits_max FROM $prefix"."_counter_other");
if(mysql_num_rows($get_maxstats)!=0)
{
$aus_maxstats=mysql_fetch_object($get_maxstats);
$hits_max=$aus_maxstats->hits_max;
}
else
{
$hits_max="0";
}
echo "$hits_max";
}
############## Hits Heute ######################################
if($aus_visible->id=="12")
{
$get_date_heute=mysql_query("SELECT * FROM $prefix"."_counter WHERE date='$heute_date'");
if(mysql_num_rows($get_date_heute)!=0)
{
$aus_date_heute=mysql_fetch_object($get_date_heute);
$hits_h=$aus_date_heute->hits;
}
else
{
$hits_h=0;
}
echo "$hits_h";
}
############## Hits Gestern ######################################
if($aus_visible->id=="13")
{
$get_date_gestern=mysql_query("SELECT * FROM $prefix"."_counter WHERE date='$gestern_date'");
if(mysql_num_rows($get_date_gestern)!=0)
{
$aus_date_gestern=mysql_fetch_object($get_date_gestern);
$hits_g=$aus_date_gestern->hits;
}
else
{
$hits_g=0;
}
echo "$hits_g";
}
############## Hits Vorgestern ######################################
if($aus_visible->id=="14")
{
$get_date_vgestern=mysql_query("SELECT * FROM $prefix"."_counter WHERE date='$vgestern_date'");
if(mysql_num_rows($get_date_vgestern)!=0)
{
$aus_date_vgestern=mysql_fetch_object($get_date_vgestern);
$hits_vg=$aus_date_vgestern->hits;
}
else
{
$hits_vg=0;
}
echo "$hits_vg";
}
echo " |
";
}
}
echo "