Okay habe ich gemacht wenn ich dann auf Statistik gehe habe ich folgendes Bild
Array (421) {[0] => string (7) "Andreas" [1] => string (1) "1" ["rank_cache"] => string (1) "1" [2] => string ( 10) "1378969502" ["rank_cache_time"] => string (10) "1378969502" [3] => string (1) "1" ["old_rank"] => string (1) "1" [4] => string (1) "0" ["days_inactive"] => string (1) "0" [5] => string (2) "10" ["total_rating"] => string (2) "10" [6] => string (1) "2" ["num_ratings"] => string (1) "2" [7] => string (1) "6" ["unq_pv_overall"] => string (1) "6" [ 8] => string (2) "66" ["tot_pv_overall"] => string (2) "66" [9] => string (1) "5" ["unq_in_overall"] => string (1) "5 "[10] => string (2)" 18 "[" tot_in_overall "] => string (2)" 18 "[11] => string (1)" 2 "[" unq_out_overall "] => string (1) "2" [12] => string (1) "4" ["tot_out_overall"] => string (1) "4" [13] => string (1) "1" ["unq_pv_0_daily"] => string ( 1) "1" [14] => string (1) "1" ["unq_pv_1_daily"] => string (1) "1" [15] => string (1) "1" ["unq_pv_2_daily"] => string (1) "1" [16] => string (1) "1" ["unq_pv_3_daily"] => string (1) "1" [17] => string (1) "1" ["unq_pv_4_daily"] => string (1) "1" [18] => string (1) "1" ["unq_pv_5_daily"] => string (1) "1" [19] => string (1) "0" ["unq_pv_6_daily "] => string (1)" 0 "[20] => string (1)" 0 "[" unq_pv_7_daily "] => string (1)" 0 "[21] => string (1)" 0 "[ "unq_pv_8_daily"] => string (1) "0" [22] => string (1) "0" ["unq_pv_9_daily"] => string (1) "0" [23] => string (1) "1 "[" unq_pv_max_daily "] => string (1)" 1 "[24] => string (1)" 3 "[" tot_pv_0_daily "] => string (1)" 3 "[25] => string (1) "8" ["tot_pv_1_daily"] => string (1) "8" [26] => string (2) "15" ["tot_pv_2_daily"] => string (2) "15" [27] => string ( 2) "22" ["tot_pv_3_daily"] => string (2) "22" [28] => string (1) "8" ["tot_pv_4_daily"] => string (1) "8" [29] => Saite (2) "10" ["tot_pv_5_daily"] => string (2) "10" [30] => string (1) "0" ["tot_pv_6_daily"] => string (1) "0" [31] => string (1) "0" ["tot_pv_7_daily"] => string (1) "0" [32] => string (1) "0" ["tot_pv_8_daily"] => string (1) "0" [ 33] => string (1) "0" ["tot_pv_9_daily"] => string (1) "0" [34] => string (2) "22" ["tot_pv_max_daily"] => string (2) "22 "[35] => string (1)" 1 "[" unq_in_0_daily "] => string (1)" 1 "[36] => string (1)" 1 "[" unq_in_1_daily "] => string (1) "1" [37] => string (1) "0" ["unq_in_2_daily"] => string (1) "0" [38] => string (1) "1" ["unq_in_3_daily"] => string ( 1) "1" [39] => string (1) "1" ["unq_in_4_daily"] => string (1) "1" [40] => string (1) "1" ["unq_in_5_daily"] => Saite (1) "1" [41] => string (1) "0" ["unq_in_6_daily"] => string (1) "0" [42] => string (1) "0" ["unq_in_7_daily"] => string (1) "0" [43] => string (1) "0" ["unq_in_8_daily"] => string (1) "0" [44] => string (1) "0" ["unq_in_9_daily "] => string (1)" 0 "[45] => string (1)" 1 "[" unq_in_max_daily "] => string (1)" 1 "[46] => string (1)" 4 "[ "tot_in_0_daily"] => string (1) "4" [47] => string (1) "2" ["tot_in_1_daily"] => string (1) "2" [48] => string (1) "0 "[" tot_in_2_daily "] => string (1)" 0 "[49] => string (1)" 9 "[" tot_in_3_daily "] => string (1)" 9 "[50] => string (1) "1" ["tot_in_4_daily"] => string (1) "1" [51] => string (1) "2" ["tot_in_5_daily"] => string (1) "2" [52] => string ( 1) "0" ["tot_in_6_daily"] => string (1) "0" [53] => string (1) "0" ["tot_in_7_daily"] => string (1) "0" [54] => string (1) "0" ["tot_in_8_daily"] => string (1) "0" [55] => string (1) "0" ["tot_in_9_daily"] => string (1) "0" [56] => string (1) "9" ["tot_in_max_daily"] => string (1) "9" [57] => string (1) "0" ["unq_out_0_daily"] => string (1) "0" [ 58] => string (1) "0" ["unq_out_1_daily"] => string (1) "0" [59] => string (1) "0" ["unq_out_2_daily"] => string (1) "0 "[60] => string (1)" 1 "[" unq_out_3_daily "] => string (1)" 1 "[61] => string (1)" 1 "[" unq_out_4_daily "] => string (1) "1" [62] => string (1) "0" ["unq_out_5_daily"] => string (1) "0" [63] => string (1) "0" ["unq_out_6_daily"] => string ( 1) "0" [64] => string (1) "0" ["unq_out_7_daily"] => string (1) "0" [65] => string (1) "0" ["unq_out_8_daily"] => Saite (1) "0" [66] => string (1) "0" ["unq_out_9_daily"] => string (1) "0" [67] => string (1) "1" ["unq_out_max_daily"] => string (1) "1" [68] => string (1) "0" ["tot_out_0_daily"] => string (1) "0" [69] => string (1) "0" ["tot_out_1_daily "] => string (1)" 0 "[70] => string (1)" 0 "[" tot_out_2_daily "] => string (1)" 0 "[71] => string (1)" 2 "[ "tot_out_3_daily"] => string (1) "2" [72] => string (1) "2" ["tot_out_4_daily"] => string (1) "2" [73] => string (1) "0 "[" tot_out_5_daily "] => string (1)" 0 "[74] => string (1)" 0 "[" tot_out_6_daily "] => string (1)" 0 "[75] => string (1) "0" ["tot_out_7_daily"] => string (1) "0" [76] => string (1) "0" ["tot_out_8_daily"] => string (1) "0" [77] => string ( 1) "0" ["tot_out_9_daily"] => string (1) "0" [78] => string (1) "2" ["tot_out_max_daily"] => string (1) "2" [79] => string (1) "4" ["unq_pv_0_weekly"] => string (1) "4" [80] => string (1) "2" ["unq_pv_1_weekly"] => string (1) "2" [81] => string (1) "0" ["unq_pv_2_weekly"] => string (1) "0" [82] => string (1) "0" ["unq_pv_3_weekly"] => string (1) "0" [ 83] => string (1) "0" ["unq_pv_4_weekly"] => string (1) "0" [84] => string (1) "0" ["unq_pv_5_weekly"] => string (1) "0 "[85] => string (1)" 0 "[" unq_pv_6_weekly "] => string (1)" 0 "[86] => string (1)" 0 "[" unq_pv_7_weekly "] => string (1) "0" [87] => string (1) "0" ["unq_pv_8_weekly"] => string (1) "0" [88] => string (1) "0" ["unq_pv_9_weekly"] => string ( 1) "0" [89] => string (1) "2" ["unq_pv_max_weekly"] => string (1) "2" [90] => string (2) "48" ["tot_pv_0_weekly"] => string (2) "48" [91] => string (2) "18" ["tot_pv_1_weekly"] => string (2) "18" [92] => string (1) "0" ["tot_pv_2_weekly"] => string (1) "0" [93] => string (1) "0" ["tot_pv_3_weekly"] => string (1) "0" [94] => string (1) "0" ["tot_pv_4_weekly "] => string (1)" 0 "[95] => string (1)" 0 "[" tot_pv_5_weekly "] => string (1)" 0 "[96] => string (1)" 0 "[ "tot_pv_6_weekly"] => string (1) "0" [97] => string (1) "0" ["tot_pv_7_weekly"] => string (1) "0" [98] => string (1) "0 "[" tot_pv_8_weekly "] => string (1)" 0 "[99] => string (1)" 0 "[" tot_pv_9_weekly "] => string (1)" 0 "[100] => string (2) "18" ["tot_pv_max_weekly"] => string (2) "18" [101] => string (1) "3" ["unq_in_0_weekly"] => string (1) "3" [102] => string ( 1) "2" ["unq_in_1_weekly"] => string (1) "2" [103] => string (1) "0" ["unq_in_2_weekly"] => string (1) "0" [104] => string (1) "0" ["unq_in_3_weekly"] => string (1) "0" [105] => string (1) "0" ["unq_in_4_weekly"] => string (1) "0" [106] => string (1) "0" ["unq_in_5_weekly"] => string (1) "0" [107] => string (1) "0" ["unq_in_6_weekly"] => string (1) "0" [ 108] => string (1) "0" ["unq_in_7_weekly"] => string (1) "0" [109] => string (1) "0" ["unq_in_8_weekly"] => string (1) "0 "[110] => string (1)" 0 "[" unq_in_9_weekly "] => string (1)" 0 "[111] => string (1)" 2 "[" unq_in_max_weekly "] => string (1) "2" [112] => string (2) "15" ["tot_in_0_weekly"] => string (2) "15" [113] => string (1) "3" ["tot_in_1_weekly"] => string ( 1) "3" [114] => string (1) "0" ["tot_in_2_weekly"] => string (1) "0" [115] => string (1) "0" ["tot_in_3_weekly"] => string (1) "0" [116] => string (1) "0" ["tot_in_4_weekly"] => string (1) "0" [117] => string (1) "0" ["tot_in_5_weekly"] => string (1) "0" [118] => string (1) "0" ["tot_in_6_weekly"] => string (1) "0" [119] => string (1) "0" ["tot_in_7_weekly "] => string (1)" 0 "[120] => string (1)" 0 "[" tot_in_8_weekly "] => string (1)" 0 "[121] => string (1)" 0 "[ "tot_in_9_weekly"] => string (1) "0" [122] => string (1) "3" ["tot_in_max_weekly"] => string (1) "3" [123] => string (1) "1 "[" unq_out_0_weekly "] => string (1)" 1 "[124] => string (1)" 1 "[" unq_out_1_weekly "] => string (1)" 1 "[125] => string (1) "0" ["unq_out_2_weekly"] => string (1) "0" [126] => string (1) "0" ["unq_out_3_weekly"] => string (1) "0" [127] => string ( 1) "0" ["unq_out_4_weekly"] => string (1) "0" [128] => string (1) "0" ["unq_out_5_weekly"] => string (1) "0" [129] => string (1) "0" ["unq_out_6_weekly"] => string (1) "0" [130] => string (1) "0" ["unq_out_7_weekly"] => string (1) "0" [131] => string (1) "0" ["unq_out_8_weekly"] => string (1) "0" [132] => string (1) "0" ["unq_out_9_weekly"] => string (1) "0" [ 133] => string (1) "1" ["unq_out_max_weekly"] => string (1) "1" [134] => string (1) "2" ["tot_out_0_weekly"] => string (1) "2 "[135] => string (1)" 2 "[" tot_out_1_weekly "] => string (1)" 2 "[136] => string (1)" 0 "[" tot_out_2_weekly "] => string (1) "0" [137] => string (1) "0" ["tot_out_3_weekly"] => string (1) "0" [138] => string (1) "0" ["tot_out_4_weekly"] => string ( 1) "0" [139] => string (1) "0" ["tot_out_5_weekly"] => string (1) "0" [140] => string (1) "0" ["tot_out_6_weekly"] => string (1) "0" [141] => string (1) "0" ["tot_out_7_weekly"] => string (1) "0" [142] => string (1) "0" ["tot_out_8_weekly"] => string (1) "0" [143] => string (1) "0" ["tot_out_9_weekly"] => string (1) "0" [144] => string (1) "2" ["tot_out_max_weekly "] => string (1)" 2 "[145] => string (1)" 6 "[" unq_pv_0_monthly "] => string (1)" 6 "[146] => string (1)" 0 "[ "unq_pv_1_monthly"] => string (1) "0" [147] => string (1) "0" ["unq_pv_2_monthly"] => string (1) "0" [148] => string (1) "0 "[" unq_pv_3_monthly "] => string (1)" 0 "[149] => string (1)" 0 "[" unq_pv_4_monthly "] => string (1)" 0 "[150] => string (1) "0" ["unq_pv_5_monthly"] => string (1) "0" [151] => string (1) "0" ["unq_pv_6_monthly"] => string (1) "0" [152] => string ( 1) "0" ["unq_pv_7_monthly"] => string (1) "0" [153] => string (1) "0" ["unq_pv_8_monthly"] => string (1) "0" [154] => string (1) "0" ["unq_pv_9_monthly"] => string (1) "0" [155] => string (1) "0" ["unq_pv_max_monthly"] => string (1) "0" [156] => string (2) "66" ["tot_pv_0_monthly"] => string (2) "66" [157] => string (1) "0" ["tot_pv_1_monthly"] => string (1) "0" [ 158] => string (1) "0" ["tot_pv_2_monthly"] => string (1) "0" [159] => string (1) "0" ["tot_pv_3_monthly"] => string (1) "0 "[160] => string (1)" 0 "[" tot_pv_4_monthly "] => string (1)" 0 "[161] => string (1)" 0 "[" tot_pv_5_monthly "] => string (1) "0" [162] => string (1) "0" ["tot_pv_6_monthly"] => string (1) "0" [163] => string (1) "0" ["tot_pv_7_monthly"] => string ( 1) "0" [164] => string (1) "0" ["tot_pv_8_monthly"] => string (1) "0" [165] => string (1) "0" ["tot_pv_9_monthly"] => string (1) "0" [166] => string (1) "0" ["tot_pv_max_monthly"] => string (1) "0" [167] => string (1) "5" ["unq_in_0_monthly"] => string (1) "5" [168] => string (1) "0" ["unq_in_1_monthly"] => string (1) "0" [169] => string (1) "0" ["unq_in_2_monthly "] => string (1)" 0 "[170] => string (1)" 0 "[" unq_in_3_monthly "] => string (1)" 0 "[171] => string (1)" 0 "[ "unq_in_4_monthly"] => string (1) "0" [172] => string (1) "0" ["unq_in_5_monthly"] => string (1) "0" [173] => string (1) "0 "[" unq_in_6_monthly "] => string (1)" 0 "[174] => string (1)" 0 "[" unq_in_7_monthly "] => string (1)" 0 "[175] => string (1) "0" ["unq_in_8_monthly"] => string (1) "0" [176] => string (1) "0" ["unq_in_9_monthly"] => string (1) "0" [177] => string ( 1) "0" ["unq_in_max_monthly"] => string (1) "0" [178] => string (2) "18" ["tot_in_0_monthly"] => string (2) "18" [179] => string (1) "0" ["tot_in_1_monthly"] => string (1) "0" [180] => string (1) "0" ["tot_in_2_monthly"] => string (1) "0" [181] => string (1) "0" ["tot_in_3_monthly"] => string (1) "0" [182] => string (1) "0" ["tot_in_4_monthly"] => string (1) "0" [ 183] => string (1) "0" ["tot_in_5_monthly"] => string (1) "0" [184] => string (1) "0" ["tot_in_6_monthly"] => string (1) "0 "[185] => string (1)" 0 "[" tot_in_7_monthly "] => string (1)" 0 "[186] => string (1)" 0 "[" tot_in_8_monthly "] => string (1) "0" [187] => string (1) "0" ["tot_in_9_monthly"] => string (1) "0" [188] => string (1) "0" ["tot_in_max_monthly"] => string ( 1) "0" [189] => string (1) "2" ["unq_out_0_monthly"] => string (1) "2" [190] => string (1) "0" ["unq_out_1_monthly"] => string (1) "0" [191] => string (1) "0" ["unq_out_2_monthly"] => string (1) "0" [192] => string (1) "0" ["unq_out_3_monthly"] => string (1) "0" [193] => string (1) "0" ["unq_out_4_monthly"] => string (1) "0" [194] => string (1) "0" ["unq_out_5_monthly "] => string (1)" 0 "[195] => string (1)" 0 "[" unq_out_6_monthly "] => string (1)" 0 "[196] => string (1)" 0 "[ "unq_out_7_monthly"] => string (1) "0" [197] => string (1) "0" ["unq_out_8_monthly"] => string (1) "0" [198] => string (1) "0 "[" unq_out_9_monthly "] => string (1)" 0 "[199] => string (1)" 0 "[" unq_out_max_monthly "] => string (1)" 0 "[200] => string (1) "4" ["tot_out_0_monthly"] => string (1) "4" [201] => string (1) "0" ["tot_out_1_monthly"] => string (1) "0" [202] => string ( 1) "0" ["tot_out_2_monthly"] => string (1) "0" [203] => string (1) "0" ["tot_out_3_monthly"] => string (1) "0" [204] => string (1) "0" ["tot_out_4_monthly"] => string (1) "0" [205] => string (1) "0" ["tot_out_5_monthly"] => string (1) "0" [206] => string (1) "0" ["tot_out_6_monthly"] => string (1) "0" [207] => string (1) "0" ["tot_out_7_monthly"] => string (1) "0" [ 208] => string (1) "0" ["tot_out_8_monthly"] => string (1) "0" [209] => string (1) "0" ["tot_out_9_monthly"] => string (1) "0 "[210] => string (1)" 0 "[" tot_out_max_monthly "] => string (1)" 0 "} [92] => string (1) "0" ["tot_pv_2_weekly"] => string (1) "0" [93] => string (1) "0" ["tot_pv_3_weekly"] => string (1) " 0 "[94] => string (1)" 0 "[" tot_pv_4_weekly "] => string (1)" 0 "[95] => string (1)" 0 "[" tot_pv_5_weekly "] => string (1 ) "0" [96] => string (1) "0" ["tot_pv_6_weekly"] => string (1) "0" [97] => string (1) "0" ["tot_pv_7_weekly"] => string (1) "0" [98] => string (1) "0" ["tot_pv_8_weekly"] => string (1) "0" [99] => string (1) "0" ["tot_pv_9_weekly"] = > string (1) "0" [100] => string (2) "18" ["tot_pv_max_weekly"] => string (2) "18" [101] => string (1) "3" ["unq_in_0_weekly" ] => string (1) "3" [102] => string (1) "2" ["unq_in_1_weekly"] => string (1) "2" [103] => string (1) "0" [" unq_in_2_weekly "] => string (1)" 0 "[104] => string (1)" 0 "[" unq_in_3_weekly "] => string (1)" 0 "[105] => string (1)" 0 " ["unq_in_4_weekly"] => string (1) "0" [106] => string (1) "0" ["unq_in_5_weekly"] => string (1) "0" [107] => string (1) " 0 "[" unq_in_6_weekly "] => string (1)" 0 "[108] => string (1)" 0 "[" unq_in_7_weekly "] => string (1)" 0 "[109] => string (1 ) "0" ["unq_in_8_weekly"] => string (1) "0" [110] => string (1) "0" ["unq_in_9_weekly"] => string (1) "0" [111] => string (1) "2" ["unq_in_max_weekly"] => string (1) "2" [112] => string (2) "15" ["tot_in_0_weekly"] => string (2) "15" [113] = > string (1) "3" ["tot_in_1_weekly"] => string (1) "3" [114] => string (1) "0" ["tot_in_2_weekly"] => string (1) "0" [115 ] => string (1) "0" ["tot_in_3_weekly"] => string (1) "0" [116] => string (1) "0" ["tot_in_4_weekly"] => string (1) "0" [117] => string (1) "0" ["tot_in_5_weekly"] => string (1) "0" [118] => string (1) "0" ["tot_in_6_weekly"] => string (1) " 0 "[119] => string (1)" 0 "[" tot_in_7_weekly "] => string (1)" 0 "[120] => string (1)" 0 "[" tot_in_8_weekly "] => string (1 ) "0" [121] => string (1) "0" ["tot_in_9_weekly"] => string (1) "0" [122] => string (1) "3" ["tot_in_max_weekly"] => string (1) "3" [123] => string (1) "1" ["unq_out_0_weekly"] => string (1) "1" [124] => string (1) "1" ["unq_out_1_weekly"] = > string (1) "1" [125] => string (1) "0" ["unq_out_2_weekly"] => string (1) "0" [126] => string (1) "0" ["unq_out_3_weekly" ] => string (1) "0" [127] => string (1) "0" ["unq_out_4_weekly"] => string (1) "0" [128] => string (1) "0" [" unq_out_5_weekly "] => string (1)" 0 "[129] => string (1)" 0 "[" unq_out_6_weekly "] => string (1)" 0 "[130] => string (1)" 0 " ["unq_out_7_weekly"] => string (1) "0" [131] => string (1) "0" ["unq_out_8_weekly"] => string (1) "0" [132] => string (1) " 0 "[" unq_out_9_weekly "] => string (1)" 0 "[133] => string (1)" 1 "[" unq_out_max_weekly "] => string (1)" 1 "[134] => string (1 ) "2" ["tot_out_0_weekly"] => string (1) "2" [135] => string (1) "2" ["tot_out_1_weekly"] => string (1) "2" [136] => string (1) "0" ["tot_out_2_weekly"] => string (1) "0" [137] => string (1) "0" ["tot_out_3_weekly"] => string (1) "0" [138] = > string (1) "0" ["tot_out_4_weekly"] => string (1) "0" [139] => string (1) "0" ["tot_out_5_weekly"] => string (1) "0" [140 ] => string (1) "0" ["tot_out_6_weekly"] => string (1) "0" [141] => string (1) "0" ["tot_out_7_weekly"] => string (1) "0" [142] => string (1) "0" ["tot_out_8_weekly"] => string (1) "0" [143] => string (1) "0" ["tot_out_9_weekly"] => string (1) " 0 "[144] => string (1)" 2 "[" tot_out_max_weekly "] => string (1)" 2 "[145] => string (1)" 6 "[" unq_pv_0_monthly "] => string (1 ) "6" [146] => string (1) "0" ["unq_pv_1_monthly"] => string (1) "0" [147] => string (1) "0" ["unq_pv_2_monthly"] => string (1) "0" [148] => string (1) "0" ["unq_pv_3_monthly"] => string (1) "0" [149] => string (1) "0" ["unq_pv_4_monthly"] = > string (1) "0" [150] => string (1) "0" ["unq_pv_5_monthly"] => string (1) "0" [151] => string (1) "0" ["unq_pv_6_monthly" ] => string (1) "0" [152] => string (1) "0" ["unq_pv_7_monthly"] => string (1) "0" [153] => string (1) "0" [" unq_pv_8_monthly "] => string (1)" 0 "[154] => string (1)" 0 "[" unq_pv_9_monthly "] => string (1)" 0 "[155] => string (1)" 0 " ["unq_pv_max_monthly"] => string (1) "0" [156] => string (2) "66" ["tot_pv_0_monthly"] => string (2) "66" [157] => string (1) " 0 "[" tot_pv_1_monthly "] => string (1)" 0 "[158] => string (1)" 0 "[" tot_pv_2_monthly "] => string (1)" 0 "[159] => string (1 ) "0" ["tot_pv_3_monthly"] => string (1) "0" [160] => string (1) "0" ["tot_pv_4_monthly"] => string (1) "0" [161] => string (1) "0" ["tot_pv_5_monthly"] => string (1) "0" [162] => string (1) "0" ["tot_pv_6_monthly"] => string (1) "0" [163] = > string (1) "0" ["tot_pv_7_monthly"] => string (1) "0" [164] => string (1) "0" ["tot_pv_8_monthly"] => string (1) "0" [165 ] => string (1) "0" ["tot_pv_9_monthly"] => string (1) "0" [166] => string (1) "0" ["tot_pv_max_monthly"] => string (1) "0" [167] => string (1) "5" ["unq_in_0_monthly"] => string (1) "5" [168] => string (1) "0" ["unq_in_1_monthly"] => string (1) " 0 "[169] => string (1)" 0 "[" unq_in_2_monthly "] => string (1)" 0 "[170] => string (1)" 0 "[" unq_in_3_monthly "] => string (1 ) "0" [171] => string (1) "0" ["unq_in_4_monthly"] => string (1) "0" [172] => string (1) "0" ["unq_in_5_monthly"] => string (1) "0" [173] => string (1) "0" ["unq_in_6_monthly"] => string (1) "0" [174] => string (1) "0" ["unq_in_7_monthly"] = > string (1) "0" [175] => string (1) "0" ["unq_in_8_monthly"] => string (1) "0" [176] => string (1) "0" ["unq_in_9_monthly" ] => string (1) "0" [177] => string (1) "0" ["unq_in_max_monthly"] => string (1) "0" [178] => string (2) "18" [" tot_in_0_monthly "] => string (2)" 18 "[179] => string (1)" 0 "[" tot_in_1_monthly "] => string (1)" 0 "[180] => string (1)" 0 " ["tot_in_2_monthly"] => string (1) "0" [181] => string (1) "0" ["tot_in_3_monthly"] => string (1) "0" [182] => string (1) " 0 "[" tot_in_4_monthly "] => string (1)" 0 "[183] ​​=> string (1)" 0 "[" tot_in_5_monthly "] => string (1)" 0 "[184] => string (1 ) "0" ["tot_in_6_monthly"] => string (1) "0" [185] => string (1) "0" ["tot_in_7_monthly"] => string (1) "0" [186] => string (1) "0" ["tot_in_8_monthly"] => string (1) "0" [187] => string (1) "0" ["tot_in_9_monthly"] => string (1) "0" [188] = > string (1) "0" ["tot_in_max_monthly"] => string (1) "0" [189] => string (1) "2" ["unq_out_0_monthly"] => string (1) "2" [190 ] => string (1) "0" ["unq_out_1_monthly"] => string (1) "0" [191] => string (1) "0" ["unq_out_2_monthly"] => string (1) "0" [192] => string (1) "0" ["unq_out_3_monthly"] => string (1) "0" [193] => string (1) "0" ["unq_out_4_monthly"] => string (1) " 0 "[194] => string (1)" 0 "[" unq_out_5_monthly "] => string (1)" 0 "[195] => string (1)" 0 "[" unq_out_6_monthly "] => string (1 ) "0" [196] => string (1) "0" ["unq_out_7_monthly"] => string (1) "0" [197] => string (1) "0" ["unq_out_8_monthly"] => string (1) "0" [198] => string (1) "0" ["unq_out_9_monthly"] => string (1) "0" [199] => string (1) "0" ["unq_out_max_monthly"] = > string (1) "0" [200] => string (1) "4" ["tot_out_0_monthly"] => string (1) "4" [201] => string (1) "0" ["tot_out_1_monthly" ] => string (1) "0" [202] => string (1) "0" ["tot_out_2_monthly"] => string (1) "0" [203] => string (1) "0" [" tot_out_3_monthly "] => string (1)" 0 "[204] => string (1)" 0 "[" tot_out_4_monthly "] => string (1)" 0 "[205] => string (1)" 0 " ["tot_out_5_monthly"] => string (1) "0" [206] => string (1) "0" ["tot_out_6_monthly"] => string (1) "0" [207] => string (1) " 0 "[" tot_out_7_monthly "] => string (1)" 0 "[208] => string (1)" 0 "[" tot_out_8_monthly "] => string (1)" 0 "[209] => string (1 ) "0" ["tot_out_9_monthly"] => string (1) "0" [210] => string (1) "0" ["tot_out_max_monthly"] => string (1) "0"} [92] => string (1) "0" ["tot_pv_2_weekly"] => string (1) "0" [93] => string (1) "0" ["tot_pv_3_weekly"] => string (1) " 0 "[94] => string (1)" 0 "[" tot_pv_4_weekly "] => string (1)" 0 "[95] => string (1)" 0 "[" tot_pv_5_weekly "] => string (1 ) "0" [96] => string (1) "0" ["tot_pv_6_weekly"] => string (1) "0" [97] => string (1) "0" ["tot_pv_7_weekly"] => string (1) "0" [98] => string (1) "0" ["tot_pv_8_weekly"] => string (1) "0" [99] => string (1) "0" ["tot_pv_9_weekly"] = > string (1) "0" [100] => string (2) "18" ["tot_pv_max_weekly"] => string (2) "18" [101] => string (1) "3" ["unq_in_0_weekly" ] => string (1) "3" [102] => string (1) "2" ["unq_in_1_weekly"] => string (1) "2" [103] => string (1) "0" [" unq_in_2_weekly "] => string (1)" 0 "[104] => string (1)" 0 "[" unq_in_3_weekly "] => string (1)" 0 "[105] => string (1)" 0 " ["unq_in_4_weekly"] => string (1) "0" [106] => string (1) "0" ["unq_in_5_weekly"] => string (1) "0" [107] => string (1) " 0 "[" unq_in_6_weekly "] => string (1)" 0 "[108] => string (1)" 0 "[" unq_in_7_weekly "] => string (1)" 0 "[109] => string (1 ) "0" ["unq_in_8_weekly"] => string (1) "0" [110] => string (1) "0" ["unq_in_9_weekly"] => string (1) "0" [111] => string (1) "2" ["unq_in_max_weekly"] => string (1) "2" [112] => string (2) "15" ["tot_in_0_weekly"] => string (2) "15" [113] = > string (1) "3" ["tot_in_1_weekly"] => string (1) "3" [114] => string (1) "0" ["tot_in_2_weekly"] => string (1) "0" [115 ] => string (1) "0" ["tot_in_3_weekly"] => string (1) "0" [116] => string (1) "0" ["tot_in_4_weekly"] => string (1) "0" [117] => string (1) "0" ["tot_in_5_weekly"] => string (1) "0" [118] => string (1) "0" ["tot_in_6_weekly"] => string (1) " 0 "[119] => string (1)" 0 "[" tot_in_7_weekly "] => string (1)" 0 "[120] => string (1)" 0 "[" tot_in_8_weekly "] => string (1 ) "0" [121] => string (1) "0" ["tot_in_9_weekly"] => string (1) "0" [122] => string (1) "3" ["tot_in_max_weekly"] => string (1) "3" [123] => string (1) "1" ["unq_out_0_weekly"] => string (1) "1" [124] => string (1) "1" ["unq_out_1_weekly"] = > string (1) "1" [125] => string (1) "0" ["unq_out_2_weekly"] => string (1) "0" [126] => string (1) "0" ["unq_out_3_weekly" ] => string (1) "0" [127] => string (1) "0" ["unq_out_4_weekly"] => string (1) "0" [128] => string (1) "0" [" unq_out_5_weekly "] => string (1)" 0 "[129] => string (1)" 0 "[" unq_out_6_weekly "] => string (1)" 0 "[130] => string (1)" 0 " ["unq_out_7_weekly"] => string (1) "0" [131] => string (1) "0" ["unq_out_8_weekly"] => string (1) "0" [132] => string (1) " 0 "[" unq_out_9_weekly "] => string (1)" 0 "[133] => string (1)" 1 "[" unq_out_max_weekly "] => string (1)" 1 "[134] => string (1 ) "2" ["tot_out_0_weekly"] => string (1) "2" [135] => string (1) "2" ["tot_out_1_weekly"] => string (1) "2" [136] => string (1) "0" ["tot_out_2_weekly"] => string (1) "0" [137] => string (1) "0" ["tot_out_3_weekly"] => string (1) "0" [138] = > string (1) "0" ["tot_out_4_weekly"] => string (1) "0" [139] => string (1) "0" ["tot_out_5_weekly"] => string (1) "0" [140 ] => string (1) "0" ["tot_out_6_weekly"] => string (1) "0" [141] => string (1) "0" ["tot_out_7_weekly"] => string (1) "0" [142] => string (1) "0" ["tot_out_8_weekly"] => string (1) "0" [143] => string (1) "0" ["tot_out_9_weekly"] => string (1) " 0 "[144] => string (1)" 2 "[" tot_out_max_weekly "] => string (1)" 2 "[145] => string (1)" 6 "[" unq_pv_0_monthly "] => string (1 ) "6" [146] => string (1) "0" ["unq_pv_1_monthly"] => string (1) "0" [147] => string (1) "0" ["unq_pv_2_monthly"] => string (1) "0" [148] => string (1) "0" ["unq_pv_3_monthly"] => string (1) "0" [149] => string (1) "0" ["unq_pv_4_monthly"] = > string (1) "0" [150] => string (1) "0" ["unq_pv_5_monthly"] => string (1) "0" [151] => string (1) "0" ["unq_pv_6_monthly" ] => string (1) "0" [152] => string (1) "0" ["unq_pv_7_monthly"] => string (1) "0" [153] => string (1) "0" [" unq_pv_8_monthly "] => string (1)" 0 "[154] => string (1)" 0 "[" unq_pv_9_monthly "] => string (1)" 0 "[155] => string (1)" 0 " ["unq_pv_max_monthly"] => string (1) "0" [156] => string (2) "66" ["tot_pv_0_monthly"] => string (2) "66" [157] => string (1) " 0 "[" tot_pv_1_monthly "] => string (1)" 0 "[158] => string (1)" 0 "[" tot_pv_2_monthly "] => string (1)" 0 "[159] => string (1 ) "0" ["tot_pv_3_monthly"] => string (1) "0" [160] => string (1) "0" ["tot_pv_4_monthly"] => string (1) "0" [161] => string (1) "0" ["tot_pv_5_monthly"] => string (1) "0" [162] => string (1) "0" ["tot_pv_6_monthly"] => string (1) "0" [163] = > string (1) "0" ["tot_pv_7_monthly"] => string (1) "0" [164] => string (1) "0" ["tot_pv_8_monthly"] => string (1) "0" [165 ] => string (1) "0" ["tot_pv_9_monthly"] => string (1) "0" [166] => string (1) "0" ["tot_pv_max_monthly"] => string (1) "0" [167] => string (1) "5" ["unq_in_0_monthly"] => string (1) "5" [168] => string (1) "0" ["unq_in_1_monthly"] => string (1) " 0 "[169] => string (1)" 0 "[" unq_in_2_monthly "] => string (1)" 0 "[170] => string (1)" 0 "[" unq_in_3_monthly "] => string (1 ) "0" [171] => string (1) "0" ["unq_in_4_monthly"] => string (1) "0" [172] => string (1) "0" ["unq_in_5_monthly"] => string (1) "0" [173] => string (1) "0" ["unq_in_6_monthly"] => string (1) "0" [174] => string (1) "0" ["unq_in_7_monthly"] = > string (1) "0" [175] => string (1) "0" ["unq_in_8_monthly"] => string (1) "0" [176] => string (1) "0" ["unq_in_9_monthly" ] => string (1) "0" [177] => string (1) "0" ["unq_in_max_monthly"] => string (1) "0" [178] => string (2) "18" [" tot_in_0_monthly "] => string (2)" 18 "[179] => string (1)" 0 "[" tot_in_1_monthly "] => string (1)" 0 "[180] => string (1)" 0 " ["tot_in_2_monthly"] => string (1) "0" [181] => string (1) "0" ["tot_in_3_monthly"] => string (1) "0" [182] => string (1) " 0 "[" tot_in_4_monthly "] => string (1)" 0 "[183] ​​=> string (1)" 0 "[" tot_in_5_monthly "] => string (1)" 0 "[184] => string (1 ) "0" ["tot_in_6_monthly"] => string (1) "0" [185] => string (1) "0" ["tot_in_7_monthly"] => string (1) "0" [186] => string (1) "0" ["tot_in_8_monthly"] => string (1) "0" [187] => string (1) "0" ["tot_in_9_monthly"] => string (1) "0" [188] = > string (1) "0" ["tot_in_max_monthly"] => string (1) "0" [189] => string (1) "2" ["unq_out_0_monthly"] => string (1) "2" [190 ] => string (1) "0" ["unq_out_1_monthly"] => string (1) "0" [191] => string (1) "0" ["unq_out_2_monthly"] => string (1) "0" [192] => string (1) "0" ["unq_out_3_monthly"] => string (1) "0" [193] => string (1) "0" ["unq_out_4_monthly"] => string (1) " 0 "[194] => string (1)" 0 "[" unq_out_5_monthly "] => string (1)" 0 "[195] => string (1)" 0 "[" unq_out_6_monthly "] => string (1 ) "0" [196] => string (1) "0" ["unq_out_7_monthly"] => string (1) "0" [197] => string (1) "0" ["unq_out_8_monthly"] => string (1) "0" [198] => string (1) "0" ["unq_out_9_monthly"] => string (1) "0" [199] => string (1) "0" ["unq_out_max_monthly"] = > string (1) "0" [200] => string (1) "4" ["tot_out_0_monthly"] => string (1) "4" [201] => string (1) "0" ["tot_out_1_monthly" ] => string (1) "0" [202] => string (1) "0" ["tot_out_2_monthly"] => string (1) "0" [203] => string (1) "0" [" tot_out_3_monthly "] => string (1)" 0 "[204] => string (1)" 0 "[" tot_out_4_monthly "] => string (1)" 0 "[205] => string (1)" 0 " ["tot_out_5_monthly"] => string (1) "0" [206] => string (1) "0" ["tot_out_6_monthly"] => string (1) "0" [207] => string (1) " 0 "[" tot_out_7_monthly "] => string (1)" 0 "[208] => string (1)" 0 "[" tot_out_8_monthly "] => string (1)" 0 "[209] => string (1 ) "0" ["tot_out_9_monthly"] => string (1) "0" [210] => string (1) "0" ["tot_out_max_monthly"] => string (1) "0"}
und die stats.php
<?php
//===========================================================================\\
// Aardvark Topsites PHP 5.2 \\
// Copyright (c) 2000-2009 Jeremy Scheff. All rights reserved. \\
//---------------------------------------------------------------------------\\
// http://www.aardvarktopsitesphp.com/ http://www.avatic.com/ \\
//---------------------------------------------------------------------------\\
// This program is free software; you can redistribute it and/or modify it \\
// under the terms of the GNU General Public License as published by the \\
// Free Software Foundation; either version 2 of the License, or (at your \\
// option) any later version. \\
// \\
// This program is distributed in the hope that it will be useful, but \\
// WITHOUT ANY WARRANTY; without even the implied warranty of \\
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General \\
// Public License for more details. \\
//===========================================================================\\
if (!defined('ATSPHP')) {
die("This file cannot be accessed directly.");
}
class stats extends base {
function stats() {
global $FORM;
if (isset($FORM['u'])) { $stats = new stats_site; }
else { $stats = new stats_overall; }
}
function averages() {
global $TMPL;
$ranking_periods = array('daily', 'weekly', 'monthly');
$ranking_methods = array('unq_pv', 'tot_pv', 'unq_in', 'tot_in', 'unq_out', 'tot_out');
foreach ($ranking_periods as $ranking_period) {
foreach ($ranking_methods as $ranking_method) {
$TMPL["{$ranking_method}_avg_{$ranking_period}"] = 0;
for ($i = 0; $i < 10; $i++) {
$TMPL["{$ranking_method}_avg_{$ranking_period}"] = $TMPL["{$ranking_method}_avg_{$ranking_period}"] + $TMPL["{$ranking_method}_{$i}_{$ranking_period}"];
}
$TMPL["{$ranking_method}_avg_{$ranking_period}"] = number_format($TMPL["{$ranking_method}_avg_{$ranking_period}"] / 10, 1);
}
}
}
function locale() {
global $CONF, $LNG, $TMPL;
setlocale(LC_ALL, $CONF['default_language']);
for ($i = 2; $i < 10; $i++) {
$TMPL["{$i}_daily"] = strftime('%B %d', time()-3600*24*$i + (3600*$CONF['time_offset']));
}
for ($i = 2; $i < 10; $i++) {
$TMPL["{$i}_weekly"] = "{$LNG['stats_week']} ".date('W', time()-3600*24*7*$i + (3600*$CONF['time_offset']));
}
for ($i = 2; $i < 10; $i++) {
$TMPL["{$i}_monthly"] = strftime('%B %y', mktime(0, 0, 0, date('m')-$i, 1));
}
}
}
class stats_site extends stats {
function stats_site() {
global $CONF, $DB, $FORM, $LNG, $TMPL;
$TMPL['header'] = $LNG['stats_header'];
$TMPL['username'] = $DB->escape($FORM['u'], 1);
$stats = $DB->fetch("SELECT * FROM {$CONF['sql_prefix']}_stats WHERE username = '{$TMPL['username']}'", __FILE__, __LINE__);
unset($stats['username']);
$sites = $DB->fetch("SELECT * FROM {$CONF['sql_prefix']}_sites WHERE username = '{$TMPL['username']}'", __FILE__, __LINE__);
if ($stats) {
$TMPL = array_merge($TMPL, $stats, $sites);
$TMPL['unq_pv_max_daily'] = $TMPL['unq_pv_0_daily'] > $TMPL['unq_pv_max_daily'] ? $TMPL['unq_pv_0_daily'] : $TMPL['unq_pv_max_daily'];
$TMPL['tot_pv_max_daily'] = $TMPL['tot_pv_0_daily'] > $TMPL['tot_pv_max_daily'] ? $TMPL['tot_pv_0_daily'] : $TMPL['tot_pv_max_daily'];
$TMPL['unq_in_max_daily'] = $TMPL['unq_in_0_daily'] > $TMPL['unq_in_max_daily'] ? $TMPL['unq_in_0_daily'] : $TMPL['unq_in_max_daily'];
$TMPL['tot_in_max_daily'] = $TMPL['tot_in_0_daily'] > $TMPL['tot_in_max_daily'] ? $TMPL['tot_in_0_daily'] : $TMPL['tot_in_max_daily'];
$TMPL['unq_out_max_daily'] = $TMPL['unq_out_0_daily'] > $TMPL['unq_out_max_daily'] ? $TMPL['unq_out_0_daily'] : $TMPL['unq_out_max_daily'];
$TMPL['tot_out_max_daily'] = $TMPL['tot_out_0_daily'] > $TMPL['tot_out_max_daily'] ? $TMPL['tot_out_0_daily'] : $TMPL['tot_out_max_daily'];
$TMPL['unq_pv_max_weekly'] = $TMPL['unq_pv_0_weekly'] > $TMPL['unq_pv_max_weekly'] ? $TMPL['unq_pv_0_weekly'] : $TMPL['unq_pv_max_weekly'];
$TMPL['tot_pv_max_weekly'] = $TMPL['tot_pv_0_weekly'] > $TMPL['tot_pv_max_weekly'] ? $TMPL['tot_pv_0_weekly'] : $TMPL['tot_pv_max_weekly'];
$TMPL['unq_in_max_weekly'] = $TMPL['unq_in_0_weekly'] > $TMPL['unq_in_max_weekly'] ? $TMPL['unq_in_0_weekly'] : $TMPL['unq_in_max_weekly'];
$TMPL['tot_in_max_weekly'] = $TMPL['tot_in_0_weekly'] > $TMPL['tot_in_max_weekly'] ? $TMPL['tot_in_0_weekly'] : $TMPL['tot_in_max_weekly'];
$TMPL['unq_out_max_weekly'] = $TMPL['unq_out_0_weekly'] > $TMPL['unq_out_max_weekly'] ? $TMPL['unq_out_0_weekly'] : $TMPL['unq_out_max_weekly'];
$TMPL['tot_out_max_weekly'] = $TMPL['tot_out_0_weekly'] > $TMPL['tot_out_max_weekly'] ? $TMPL['tot_out_0_weekly'] : $TMPL['tot_out_max_weekly'];
$TMPL['unq_pv_max_monthly'] = $TMPL['unq_pv_0_monthly'] > $TMPL['unq_pv_max_monthly'] ? $TMPL['unq_pv_0_monthly'] : $TMPL['unq_pv_max_monthly'];
$TMPL['tot_pv_max_monthly'] = $TMPL['tot_pv_0_monthly'] > $TMPL['tot_pv_max_monthly'] ? $TMPL['tot_pv_0_monthly'] : $TMPL['tot_pv_max_monthly'];
$TMPL['unq_in_max_monthly'] = $TMPL['unq_in_0_monthly'] > $TMPL['unq_in_max_monthly'] ? $TMPL['unq_in_0_monthly'] : $TMPL['unq_in_max_monthly'];
$TMPL['tot_in_max_monthly'] = $TMPL['tot_in_0_monthly'] > $TMPL['tot_in_max_monthly'] ? $TMPL['tot_in_0_monthly'] : $TMPL['tot_in_max_monthly'];
$TMPL['unq_out_max_monthly'] = $TMPL['unq_out_0_monthly'] > $TMPL['unq_out_max_monthly'] ? $TMPL['unq_out_0_monthly'] : $TMPL['unq_out_max_monthly'];
$TMPL['tot_out_max_monthly'] = $TMPL['tot_out_0_monthly'] > $TMPL['tot_out_max_monthly'] ? $TMPL['tot_out_0_monthly'] : $TMPL['tot_out_max_monthly'];
$this->averages();
$TMPL['average_rating'] = $TMPL['num_ratings'] > 0 ? round($TMPL['total_rating'] / $TMPL['num_ratings'], 0) : 0;
var_dump($stats); exit;$stats = array_map('number_format', $stats);
$TMPL = array_merge($TMPL, $stats);
$this->locale();
$TMPL['header'] .= " - {$TMPL['title']}";
$TMPL['category_url'] = urlencode($TMPL['category']);
$query = "SELECT id, date, review FROM {$CONF['sql_prefix']}_reviews WHERE username = '{$TMPL['username']}' AND active = 1";
if (isset($FORM['all_reviews']) && $FORM['all_reviews']) {
$result = $DB->query("{$query} ORDER BY date DESC", __FILE__, __LINE__);
}
else {
$result = $DB->select_limit("{$query} ORDER BY RAND()", 2, 0, __FILE__, __LINE__);
}
$TMPL['reviews'] = '';
while (list($TMPL['id'], $TMPL['date'], $TMPL['review']) = $DB->fetch_array($result)) {
$TMPL['reviews'] .= $this->do_skin('stats_review');
}
$TMPL['content'] = $this->do_skin('stats');
}
else {
$this->error($LNG['g_invalid_u']);
}
}
}
class stats_overall extends stats {
function stats_overall() {
global $CONF, $DB, $FORM, $LNG, $TMPL;
$TMPL['header'] = $LNG['stats_overall'];
$stats = $DB->fetch("SELECT SUM(unq_pv_overall), SUM(tot_pv_overall), SUM(unq_in_overall), SUM(tot_in_overall), SUM(unq_out_overall), SUM(tot_out_overall),
SUM(unq_pv_0_daily), SUM(unq_pv_1_daily), SUM(unq_pv_2_daily), SUM(unq_pv_3_daily), SUM(unq_pv_4_daily), SUM(unq_pv_5_daily), SUM(unq_pv_6_daily), SUM(unq_pv_7_daily), SUM(unq_pv_8_daily), SUM(unq_pv_9_daily), SUM(tot_pv_0_daily), SUM(tot_pv_1_daily), SUM(tot_pv_2_daily), SUM(tot_pv_3_daily), SUM(tot_pv_4_daily), SUM(tot_pv_5_daily), SUM(tot_pv_6_daily), SUM(tot_pv_7_daily), SUM(tot_pv_8_daily), SUM(tot_pv_9_daily),
SUM(unq_in_0_daily), SUM(unq_in_1_daily), SUM(unq_in_2_daily), SUM(unq_in_3_daily), SUM(unq_in_4_daily), SUM(unq_in_5_daily), SUM(unq_in_6_daily), SUM(unq_in_7_daily), SUM(unq_in_8_daily), SUM(unq_in_9_daily), SUM(tot_in_0_daily), SUM(tot_in_1_daily), SUM(tot_in_2_daily), SUM(tot_in_3_daily), SUM(tot_in_4_daily), SUM(tot_in_5_daily), SUM(tot_in_6_daily), SUM(tot_in_7_daily), SUM(tot_in_8_daily), SUM(tot_in_9_daily),
SUM(unq_out_0_daily), SUM(unq_out_1_daily), SUM(unq_out_2_daily), SUM(unq_out_3_daily), SUM(unq_out_4_daily), SUM(unq_out_5_daily), SUM(unq_out_6_daily), SUM(unq_out_7_daily), SUM(unq_out_8_daily), SUM(unq_out_9_daily), SUM(tot_out_0_daily), SUM(tot_out_1_daily), SUM(tot_out_2_daily), SUM(tot_out_3_daily), SUM(tot_out_4_daily), SUM(tot_out_5_daily), SUM(tot_out_6_daily), SUM(tot_out_7_daily), SUM(tot_out_8_daily), SUM(tot_out_9_daily),
SUM(unq_pv_0_weekly), SUM(unq_pv_1_weekly), SUM(unq_pv_2_weekly), SUM(unq_pv_3_weekly), SUM(unq_pv_4_weekly), SUM(unq_pv_5_weekly), SUM(unq_pv_6_weekly), SUM(unq_pv_7_weekly), SUM(unq_pv_8_weekly), SUM(unq_pv_9_weekly), SUM(tot_pv_0_weekly), SUM(tot_pv_1_weekly), SUM(tot_pv_2_weekly), SUM(tot_pv_3_weekly), SUM(tot_pv_4_weekly), SUM(tot_pv_5_weekly), SUM(tot_pv_6_weekly), SUM(tot_pv_7_weekly), SUM(tot_pv_8_weekly), SUM(tot_pv_9_weekly),
SUM(unq_in_0_weekly), SUM(unq_in_1_weekly), SUM(unq_in_2_weekly), SUM(unq_in_3_weekly), SUM(unq_in_4_weekly), SUM(unq_in_5_weekly), SUM(unq_in_6_weekly), SUM(unq_in_7_weekly), SUM(unq_in_8_weekly), SUM(unq_in_9_weekly), SUM(tot_in_0_weekly), SUM(tot_in_1_weekly), SUM(tot_in_2_weekly), SUM(tot_in_3_weekly), SUM(tot_in_4_weekly), SUM(tot_in_5_weekly), SUM(tot_in_6_weekly), SUM(tot_in_7_weekly), SUM(tot_in_8_weekly), SUM(tot_in_9_weekly),
SUM(unq_out_0_weekly), SUM(unq_out_1_weekly), SUM(unq_out_2_weekly), SUM(unq_out_3_weekly), SUM(unq_out_4_weekly), SUM(unq_out_5_weekly), SUM(unq_out_6_weekly), SUM(unq_out_7_weekly), SUM(unq_out_8_weekly), SUM(unq_out_9_weekly), SUM(tot_out_0_weekly), SUM(tot_out_1_weekly), SUM(tot_out_2_weekly), SUM(tot_out_3_weekly), SUM(tot_out_4_weekly), SUM(tot_out_5_weekly), SUM(tot_out_6_weekly), SUM(tot_out_7_weekly), SUM(tot_out_8_weekly), SUM(tot_out_9_weekly),
SUM(unq_pv_0_monthly), SUM(unq_pv_1_monthly), SUM(unq_pv_2_monthly), SUM(unq_pv_3_monthly), SUM(unq_pv_4_monthly), SUM(unq_pv_5_monthly), SUM(unq_pv_6_monthly), SUM(unq_pv_7_monthly), SUM(unq_pv_8_monthly), SUM(unq_pv_9_monthly), SUM(tot_pv_0_monthly), SUM(tot_pv_1_monthly), SUM(tot_pv_2_monthly), SUM(tot_pv_3_monthly), SUM(tot_pv_4_monthly), SUM(tot_pv_5_monthly), SUM(tot_pv_6_monthly), SUM(tot_pv_7_monthly), SUM(tot_pv_8_monthly), SUM(tot_pv_9_monthly),
SUM(unq_in_0_monthly), SUM(unq_in_1_monthly), SUM(unq_in_2_monthly), SUM(unq_in_3_monthly), SUM(unq_in_4_monthly), SUM(unq_in_5_monthly), SUM(unq_in_6_monthly), SUM(unq_in_7_monthly), SUM(unq_in_8_monthly), SUM(unq_in_9_monthly), SUM(tot_in_0_monthly), SUM(tot_in_1_monthly), SUM(tot_in_2_monthly), SUM(tot_in_3_monthly), SUM(tot_in_4_monthly), SUM(tot_in_5_monthly), SUM(tot_in_6_monthly), SUM(tot_in_7_monthly), SUM(tot_in_8_monthly), SUM(tot_in_9_monthly),
SUM(unq_out_0_monthly), SUM(unq_out_1_monthly), SUM(unq_out_2_monthly), SUM(unq_out_3_monthly), SUM(unq_out_4_monthly), SUM(unq_out_5_monthly), SUM(unq_out_6_monthly), SUM(unq_out_7_monthly), SUM(unq_out_8_monthly), SUM(unq_out_9_monthly), SUM(tot_out_0_monthly), SUM(tot_out_1_monthly), SUM(tot_out_2_monthly), SUM(tot_out_3_monthly), SUM(tot_out_4_monthly), SUM(tot_out_5_monthly), SUM(tot_out_6_monthly), SUM(tot_out_7_monthly), SUM(tot_out_8_monthly), SUM(tot_out_9_monthly)
FROM {$CONF['sql_prefix']}_stats", __FILE__, __LINE__);
// Get rid of SUM() in array keys
foreach ($stats as $key => $value) {
$new_key = str_replace(array('SUM(', ')'), '', $key);
$stats[$new_key] = $value;
unset($stats[$key]);
}
$TMPL = array_merge($TMPL, $stats);
$this->averages();
$stats = array_map('number_format', $stats);
$TMPL = array_merge($TMPL, $stats);
$this->locale();
$TMPL['content'] = $this->do_skin('stats_overall');
}
}
?>
Ps. Habe das auf dem test Server auch mal getestet und da ist das selbe Problem
Zuletzt modifiziert von xRebellx am 12.09.2013 - 09:15:09