403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/18/d194259149/htdocs/adtrackz/dstats-monthly.php
<?
#####################################################
#  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'"));
$m = array(1 => 'Jan', 'Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');


//get this year
$from_timestamp = mktime (0,0,0,01,01,date("Y")); 
$to_timestamp = mktime (23,59,59,12,$days_in_month,date("Y")); 
$year = date("Y");

//need to build an array of days and the # of hits for each day for this month
$clickdata = mysql_query("select timest from adtrackz_clicks where campaignID='$cID' && subID='$sID' && timest >= '$from_timestamp' && timest <= '$to_timestamp'");
$uclickdata = mysql_query("select timest from adtrackz_clicks where campaignID='$cID' && subID='$sID' && timest >= '$from_timestamp' && timest <= '$to_timestamp' && uniqueflag=1");

while ($click = mysql_fetch_row($clickdata))
{
	//get month 
	$time = getdate($click[0]);
	$month = $time['mon'];
	$mc[$month] += 1;
}
if (!$mc)
	$mc = array_fill (1,12,0);
else
	ksort($mc);

while ($uclick = mysql_fetch_row($uclickdata))
{
	//get month 
	$time = getdate($uclick[0]);
	$month = $time['mon'];
	$umc[$month] += 1;
}
if (!$umc)
	$umc = array_fill (1,12,0);
else
	ksort($umc);


//label for graph
$month_label = "Monthly Clicks, $year";

include 'charts.php';

$chart[ 'chart_data' ] = array ( array ("",$m[1],$m[2],$m[3],$m[4],$m[5],$m[6],$m[7],$m[8],$m[9],$m[10],$m[11],$m[12]), array ( "Unique Clicks",$umc[1],$umc[2],$umc[3],$umc[4],$umc[5],$umc[6],$umc[7],$umc[8],$umc[9],$umc[10],$umc[11],$umc[12]),array ( "Raw Clicks",$mc[1],$mc[2],$mc[3],$mc[4],$mc[5],$mc[6],$mc[7],$mc[8],$mc[9],$mc[10],$mc[11],$mc[12]) );

$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 );


?>

Youez - 2016 - github.com/yon3zu
LinuXploit