| Server IP : 74.208.236.52 / Your IP : 216.73.217.98 Web Server : Apache System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64 User : u44043973 ( 5404757) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/18/d194259149/htdocs/adtrackz/ |
Upload File : |
<?
#####################################################
# COPYRIGHT NOTICE
#####################################################
# In the following statements, the term "this
# program" refers to all files associated with the
# execution and distribution of Adtrackz.
#
# This Program is Copyright 2004 Jonah Klimack.
# All Rights Reserved.
#
# Selling the code for this program, modifying
# and/or redistributing the code for this program
# in part or in whole over the Internet or in any
# other medium is expressly forbidden. Violators
# will be prosecuted to the fullest extent of the law
# Copyright and header information may not be
# modified.
#
# This program is distributed "as is" and without
# warranty of any kind, either express or implied.
# In no event shall the liability of Jonah Klimack
# for any damages, losses and/or causes of
# action exceed the total amount paid by the
# user for this software.
#####################################################
# DO NOT MODIFY ANYTHING IN THIS FILE
#####################################################
require "config.php";
$campaign = mysql_fetch_row(mysql_query("select * from adtrackz_campaigns where ID='$cID'"));
//get this month
$days_in_month = date("t");
$from_timestamp = mktime (0,0,0,date("m"),01,date("Y"));
$to_timestamp = mktime (23,59,59,date("m"),$days_in_month,date("Y"));
$month = date("m");
$year = date("Y");
$trim_month = trim(intval($month));
//ha = hours_array
$ha = array("0:00", "1:00", "2:00", "3:00", "4:00", "5:00", "6:00", "7:00", "8:00", "9:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00");
$clickdata = mysql_query("select timest from adtrackz_clicks where campaignID='$cID' && subID='$sID'");
$uclickdata = mysql_query("select timest from adtrackz_clicks where campaignID='$cID' && subID='$sID' && uniqueflag=1");
while ($click = mysql_fetch_row($clickdata))
{
//get hour of each click and build array
$time = getdate($click[0]);
$hour = $time['hours'];
$hc[$hour] += 1;
}
if (!$hc)
$hc = array_fill (1,24,0);
else
ksort($hc);
while ($uclick = mysql_fetch_row($uclickdata))
{
//get hour of each click and build array
$time = getdate($uclick[0]);
$hour = $time['hours'];
$uhc[$hour] += 1;
}
if (!$uhc)
$uhc = array_fill (1,24,0);
else
ksort($uhc);
//label for graph
$month_label = "Hourly Clicks, 2005";
include 'charts.php';
$chart[ 'chart_data' ] = array ( array ("",$ha[0],$ha[1],$ha[2],$ha[3],$ha[4],$ha[5],$ha[6],$ha[7],$ha[8],$ha[9],$ha[10],$ha[11],$ha[12],$ha[13],$ha[14],
$ha[15],$ha[16],$ha[17],$ha[18],$ha[19],$ha[20],$ha[21],$ha[22],$ha[23]), array ( "Unique Clicks",$uhc[0],$uhc[1],$uhc[2],$uhc[3],$uhc[4],$uhc[5],$uhc[6],$uhc[7],$uhc[8],$uhc[9],$uhc[10],$uhc[11],$uhc[12],$uhc[13],$uhc[14],$uhc[15],$uhc[16],$uhc[17],$uhc[18],$uhc[19],$uhc[20],$uhc[21],$uhc[22],$uhc[23]),array ( "Raw Clicks",$hc[0],$hc[1],$hc[2],$hc[3],$hc[4],$hc[5],$hc[6],$hc[7],$hc[8],$hc[9],$hc[10],$hc[11],$hc[12],$hc[13],$hc[14],$hc[15],$hc[16],$hc[17],$hc[18],$hc[19],$hc[20],$hc[21],$hc[22],$hc[23]) );
$chart[ 'axis_category' ] = array ( 'font'=>"arial", 'bold'=>true, 'size'=>12, 'color'=>"000022", 'alpha'=>75, 'skip'=>2 );
$chart[ 'axis_value' ] = array ( 'font'=>"arial", 'bold'=>true, 'size'=>10, 'color'=>"000022", 'alpha'=>75, 'steps'=>4, 'prefix'=>"", 'suffix'=>"", 'decimals'=>0, 'separator'=>"", 'show_min'=>false );
$chart[ 'chart_bg' ] = array ( 'positive_color'=>"448800", 'negative_color'=>"ffeeAA", 'positive_alpha'=>20, 'negative_alpha'=>100 );
$chart[ 'chart_border' ] = array ( 'color'=>"000000", 'top_thickness'=>1, 'bottom_thickness'=>1, 'left_thickness'=>1, 'right_thickness'=>1 );
$chart[ 'chart_rect' ] = array ( 'x'=>60, 'y'=>50, 'width'=>400, 'height'=>200 );
//$chart[ 'chart_type' ] = "stacked column";
$chart[ 'chart_type' ] = "column";
//$chart[ 'chart_type' ] = "Line";
$chart[ 'draw_text' ] = array (
array ( 'color'=>"663333", 'alpha'=>75, 'font'=>"arial", 'rotation'=>0, 'bold'=>true, 'size'=>14, 'x'=>60, 'y'=>50, 'width'=>300, 'height'=>300, 'text'=>$month_label, 'h_align'=>"right", 'v_align'=>"top" ) );
$chart[ 'legend_rect' ] = array ( 'x'=>-100, 'y'=>-100, 'width'=>10, 'height'=>10, 'margin'=>0 );
//$chart[ 'series_color' ] = array ( "4e627c", "c89341" );
$chart[ 'series_color' ] = array ( "0F87BE", "FA7F14" );
$chart[ 'series_gap' ] = array ( 'set_gap'=>0, 'bar_gap'=>0 );
$chart[ 'legend_bg' ] = array ( 'bg_color'=>"ffffff", 'bg_alpha'=>35, 'border_color'=>"000000", 'border_alpha'=>0, 'border_thickness'=>0 );
$chart[ 'legend_label' ] = array ( 'layout'=>"horizontal", 'font'=>"arial", 'bold'=>true, 'size'=>13, 'color'=>"444466", 'alpha'=>90 );
$chart[ 'legend_rect' ] = array ( 'x'=>125, 'y'=>10, 'width'=>250, 'height'=>10, 'margin'=>5 );
SendChartData ( $chart );
?>