From dfc4e20b8e9ca57340e24143539498fb82527697 Mon Sep 17 00:00:00 2001 From: randommonk Date: Thu, 4 Jan 2018 22:52:54 +0000 Subject: Bumped version to 4.3. Added jpgraph stats developed by killerEye --- html/includes/config.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) (limited to 'html/includes/config.php') diff --git a/html/includes/config.php b/html/includes/config.php index 7b086f6..2e52f98 100755 --- a/html/includes/config.php +++ b/html/includes/config.php @@ -16,7 +16,8 @@ $import_homedir = ''; // Use the MySQL temporary tables feature? // Available since MySQL 3.23 - requires CREATE TEMPORARY TABLE privilege since 4.0.2 -$import_use_temporary_tables = true; // set to true if available +// No longer supported from utstats version 4.3 onwards. Left here for historical purposes. +$import_use_temporary_tables = false; // Do not set to true unless all jpgraph import changes have been disabled. // Use temporary heap tables? // This will (at any cost) keep the entire table in RAM and may speed and/or fuck things up @@ -183,4 +184,62 @@ $ftp_passive[$i] = true; // Use passive transfer mode for this connection? $ftp_delete[$i] = true; // Delete logs after download? */ +// This section is for stats graphs as of version 4.3 +$renderer_folder = "renderings"; +$renderer_width = 350; +$renderer_heigth = 250; +$renderer_color['team'][0][0] = '#ff3333'; // team red color 1 +$renderer_color['team'][0][1] = '#cc0000'; // team red color 2 +$renderer_color['team'][1][0] = '#0080ff'; // team blue color 1 +$renderer_color['team'][1][1] = '#0000cc'; // team blue color 2 +$renderer_color['team'][2][0] = '#88d8b0'; // team green color 1 +$renderer_color['team'][2][1] = '#009f50'; // team green color 2 +$renderer_color['team'][3][0] = '#ffeead'; // team gold color 1 +$renderer_color['team'][3][1] = '#e5b021'; // team gold color 2 +$renderer_color['player'][0][0] = '#a7d848'; // player 1 color 1 +$renderer_color['player'][0][1] = '#98be44'; // player 1 color 2 +$renderer_color['player'][1][0] = '#6ccdd0'; // player 2 color 1 +$renderer_color['player'][1][1] = '#66af9f'; // player 2 color 2 +$renderer_color['player'][2][0] = '#ffce59'; // player 3 color 1 +$renderer_color['player'][2][1] = '#ffa65a'; // player 3 color 2 +$renderer_color['player'][3][0] = '#fba263'; // player 4 color 1 +$renderer_color['player'][3][1] = '#eb7254'; // player 4 color 2 +$renderer_color['player'][4][0] = '#fb6370 '; // player 5 color 1 +$renderer_color['player'][4][1] = '#fb6363'; // player 5 color 2 +$renderer_color['background'] = '#262626';// background color 1 +$renderer_color['band'][0] = '#666666';// band color 1 +$renderer_color['band'][1] = '#515151';// band color 2 +$renderer_color['heading'] = '#bbdeff';// font heading +$renderer_color['font'] = '#999999';// font other +$renderer_color['amp'] = '#aa02db';// color amp +$renderer_color_transparancy = 0.3;// color amp + +define("TIMERATIO", 1.09863333333333333333333333333333333333333333333333333333333); + +define("RENDERER_CHARTTYPE_LINE", "line"); +define("RENDERER_CHARTTYPE_COLUMN", "column"); +define("RENDERER_CHARTTYPE_BAR", "bar"); +define("RENDERER_CHARTTYPE_LINESTEP", "linestep"); +define("RENDERER_CHARTTYPE_LINECOLUMN", "linecolumn"); +define("RENDERER_CHARTTYPE_LINESTEPCOLUMN", "linestepcolumn"); +define("RENDERER_CHARTTYPE_RADAR", "radar"); + +define("RENDERER_CHART_CTF_TEAMSCORE", 10); +define("RENDERER_CHART_CTF_GRABBREAKDOWN", 11); + +define("RENDERER_CHART_DOM_SCOREDERIV", 21); + +define("RENDERER_CHART_FRAGS_TEAMSCORE", 90); +define("RENDERER_CHART_FRAGS_TEAMDERIV", 91); +define("RENDERER_CHART_FRAGS_TEAMNORMAL", 92); +define("RENDERER_CHART_FRAGS_PLAYERSCORE", 93); +define("RENDERER_CHART_FRAGS_PLAYERDERIV", 94); +define("RENDERER_CHART_FRAGS_PLAYERNORMAL", 95); +define("RENDERER_CHART_FRAGS_PLAYERSCORE5", 96); +define("RENDERER_CHART_FRAGS_PLAYERNORMAL5", 97); + +define("RENDERER_CHART_ITEMS_TEAMPICKUPS", 100); +define("RENDERER_CHART_ITEMS_PLAYERPICKUPS", 101); +define("RENDERER_CHART_ITEMS_AMPRUNS", 102); + ?> -- cgit From c1abe90bd96324e7479f3dc41641b1588d5068b5 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Sun, 7 Jan 2018 14:53:59 +0100 Subject: Update config.php --- html/includes/config.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'html/includes/config.php') diff --git a/html/includes/config.php b/html/includes/config.php index 2e52f98..11f069b 100755 --- a/html/includes/config.php +++ b/html/includes/config.php @@ -16,8 +16,8 @@ $import_homedir = ''; // Use the MySQL temporary tables feature? // Available since MySQL 3.23 - requires CREATE TEMPORARY TABLE privilege since 4.0.2 -// No longer supported from utstats version 4.3 onwards. Left here for historical purposes. -$import_use_temporary_tables = false; // Do not set to true unless all jpgraph import changes have been disabled. +// No longer supported from UTStats version 4.3 onwards. Left here for historical purposes. +$import_use_temporary_tables = false; // DON'T USE IF YOU DON'T KNOW WHAT YOU'RE DOING! // Use temporary heap tables? // This will (at any cost) keep the entire table in RAM and may speed and/or fuck things up @@ -42,7 +42,6 @@ $import_log_backup = "yes"; // Purge old logs after x days. 0 to disable. $import_log_backups_purge_after = 0; - // After how many seconds should we reload the import page? // This is to prevent the 'maximum execution time exeeded' error. It will reload // the page after the amount of seconds you specify in order to bypass php's time limit. @@ -141,6 +140,7 @@ $pic_enable = true; // FTP Connection Details $ftp_use = false; // Whether to auto get the log files $ftp_interval = 0; // How often in minutes to allow stats update +$ftp_debug = false; // Debugging output that may help you to resolve ftp problems $ftp_type = 'sockets'; // Which FTP module do you want to use? // sockets - (recommended) // Use PHP's socket extension to connect to the FTP server @@ -151,9 +151,6 @@ $ftp_type = 'sockets'; // Which FTP module do you want to use? // Debugging will not be available with this module and // error handling may not be as good as with the other modules -$ftp_debug = false; // Debugging output that may help you to resolve ftp problems - - // UT Server 1 $i = 0; $ftp_hostname[$i] = ''; // FTP server location here @@ -241,5 +238,4 @@ define("RENDERER_CHART_FRAGS_PLAYERNORMAL5", 97); define("RENDERER_CHART_ITEMS_TEAMPICKUPS", 100); define("RENDERER_CHART_ITEMS_PLAYERPICKUPS", 101); define("RENDERER_CHART_ITEMS_AMPRUNS", 102); - ?> -- cgit