I need help editing this php for Webs.com I need to embed this ladder into my web page.?

Richard

New member
<?php
/*
=============================================================
ICCup Stats ver 1.1 © [SCII]shr & unk & b1te[uTm] , 2008-12-18
=============================================================
server side written by unk
client side written by shr & b1te

ver 1.1->1.2 changes by shr:
- file_get_contents() function has been replaced on the getIccupTeamPage() based on sockets
- omptimized performance: the old filters have been removed due to changes in the code on the server side
- added description of the full path to cache file and word 'full' has been replaced to 'absolute' for better understanding

ver 1.0->1.1 changes by b1te:
-added install steps instruction
-fixed "ICCup is not accessible" while cached file is
-fixed image tag parsing error, which lead to
'height=... text near country and rank images
-changed user options configuration code
-added statistics column order option
-changed client-side html parsing code
-omptimized overall performance

installation:
1) edit CONFIG section of this file
2) save it to your web-server with the .php extension
-on some servers it may be .php3 , .php4 or .php5
3) add this code line into place where you want ICCup statistics to be displayed:
include_once('path');
where path - is a path to this file on yours web-server
-important: this line must be inserted into some other php module,
not into the site template. except, if you have smarty templates in your
site`s engine then you can this code to it:
{php}include_once('path');{/php}
4) enjoy :)
*/

//-------------------------- CONFIG -------------------------
// user defined options:

// change value to false for temporary display disabling
define('ICCUP_TEAM_STATISTICS_ENABLED',true);

// team page on ICCup

// if you use free hosting set parameters listed below to local page, u should
// open http://www.iccup.com/teams/[your team id]/webstats.html , save
// its output to your hard drive and manually upload on webserver
// if your hosting support sockets/connections just change MY_TEAM parameter

// http address of ICCup -no need to change
define('ICCUP','http://www.iccup.com/');
// domain name of ICCup - no need to change
define('ICCUP_DOMAIN','www.iccup.com');
// ICCup teams stats page -no need to change
define('TEAMS_PAGE','/teams/webstats/');
// your team unique ID, replace 1 with it
define('MY_TEAM','9871');
// set page output parameter for use in this script -no need to change
define('PAGE_OUTPUT','.html');
// link to this page on ICCup from 1x1 table header
define('LADDER_1X1_PAGE','ladder/1x1.html');
// link to this page on ICCup from 2x2 table header
define('LADDER_2X2_PAGE','ladder/2x2.html');

//colors for rank icons
//color for ultimate rank
define('A2_COLOR','orange');
//color for A- A ranks
define('A_COLOR','darkgreen');
//color for B ranks
define('B_COLOR','blue');
//color for C ranks
define('C_COLOR','yellow');
//color for D ranks
define('D_COLOR','darkred');
// change to false if your server don`t support local file access
// this file is used to cache created statistics table
// its not reccomended turning off this feature
define('CACHE_ENABLED',true);
// absolute path to cache file on your host computer, e.g. from root derectory
// for example, /home/username/domain.com/docs/iccup_stats.cache
// in some cases you might have to create this file first time
// manually, and set access permissions to 777 for it
define('CACHE_FILE_PATH','iccup_stats.cache');
// ICCup statistics refresh interval time in seconds
define('CACHE_EXPIRES',3600);
// timeout in seconds for connecting and getting stats from iCCup
define("SOCKET_TIMEOUT",30);
// choose what you want to be displayed in stats table
// true -display false -don`t

// show 1x1 ICCup team statistics
define('DISPLAY_1X1_STATISTICS_TABLE',true);
// show title at top of 1x1 stats table
define('DISPLAY_1X1_TABLE_TITLE',true);
// show 2x2 ICCup team statistics
define('DISPLAY_2X2_STATISTICS_TABLE',true);
// show title at top of 2x2 stats table
define('DISPLAY_2X2_TABLE_TITLE',true);
// show column headers for both stats tables
define('DISPLAY_COLUMN_HEADERS',true);
// show last statistics update date&time
define('DISPLAY_LAST_UPDATE',true);

// you can change column order, by changing positions of each column in this
// string. or just delete one of them, then it won`t be displayed. no spaces
// allowed. separation only with comma`s.
define('DISPLAY_COLUMNS_ORDER','country,rank,player,points,stats');
// show players with 0-0 stats in 1x1 stats table
define('DISPLAY_1X1_NOT_PLAYED_TEAMMATES',true);
// show players with 0-0 stats in 2x2 stats table
define('DISPLAY_2X2_NOT_PLAYED_TEAMMATES',true);

// style options, change css style of any element here:
// your own style must be written inside string ' style=""'
// don`t delete starting space or style= with quotes

// 'div' element, container for all other html output
// id="I
this is not my official ladder, but i just need the outline. and i need to be able to post onto webs as a widget html code widget that is. Something of that sort. PLease help
 
Back
Top