here is the index.php original file that it came with.. not sure if you could tell me where this exploit is or what to change
<?php
/**********************************************
* Based on CCLeague PRO Soccer by Orlando L. Castillo
*
* GPL software
*
* Original Author: Orlando L. Castillo
*
* -----------------------------------------------
*
* Revised by Darin Jones for Ice Hockey and Lacrosse
* Web: http://www.thehockeystop.com/site
*
* 10-08-03 Fixed bugs, redesigned database, added
* many new features, visit changelog at thehockeystop.com
* for the detailed list
*
* Requires: PHP 4+ and MySQL
*
* Support forums and FAQ's are located at
* http://www.thehockeystop.com/site
*
**********************************************/
include("config.php");
//FIND OUT THE LANGUAGE
if($_POST["setlanguage"]) {
setcookie("language");
setcookie("language",$_POST["setlanguage"],time()+1209600,"","","");
$lang = "./lang/".$_POST["setlanguage"].".ini";
$llang = $_POST["setlanguage"];
} elseif($_COOKIE["language"]) {
$lang = "./lang/".$_COOKIE["language"].".ini";
$llang = $_COOKIE["language"];
} else {
$l_array = explode("-",$lang_array[0]);
$llang = $l_array[0];
$lang = "./lang/".$l_array[0].".ini";
}
//LOAD THE HEADER
$header = $sport_dir."html/header.html";
$fd = fopen ($header, "r");
$output = fread ($fd, filesize ($header));
fclose ($fd);
switch($opt) {
//VIEW TEAM INFORMATION
case "viewteam":
include("team.php");
$output .= view_team($id,$sid);
break;
//VIEW TEAM INFORMATION
case "viewplayer":
include("player.php");
$output .= view_player($pid,$divid,$sid,$tid);
break;
//VIEW HTML OR ANNOUNCEMENT
case "viewpage":
include("html.php");
$output .= html($id,$type);
break;
//SHOW ALL ANNOUNCEMENTS
case "ahomecomplete":
include("announcement.php");
$output .= ahomecomplete();
break;
//VIEW SCHEDULE AND SCORES
case "schedule":
include("standings.php");
//if(!$thisdiv) $thisdiv = "none";
//if(!$season) $season = $open_season;
$output .= listteams($divid,$season);
break;
//DIVISION STATS
case "divlead":
include("divlead.php");
//if(!$thisdiv) $thisdiv = "none";
//if(!$season) $season = $open_season;
$output .= divstats($divid,$sid);
break;
//LOGIN FORM
case "login":
include("login.php");
$output .= login();
break;
//LOGIN CHECK
case "admincheck":
include("logincheck.php");
$output .= logincheck($fusername,$fpassword);
break;
//CREATE AN ADMINISTRATOR
case "createadmin":
include("createadmin.php");
$output .= createadmin();
break;
//SQL ADMINISTRATOR FUNCTION
case "createadmin2":
include("createadmin.php");
$output .= createadmin2($adminpassword);
break;
//HOME
default:
$output .= admincheck($hostname,$user,$password,$db,$lang);
}
//REPLACE CUSTOM HTML, ETC.
function replace_tags($content) {
$content = eregi_replace("\n","<br />",$content);
$content = eregi_replace("<bold>","<b>",$content);
$content = eregi_replace("</bold>","</b>",$content);
$content = eregi_replace("<italic>","<i>",$content);
$content = eregi_replace("</italic>","</i>",$content);
$content = eregi_replace("<link","<a",$content);
$content = eregi_replace("</link>","</a>",$content);
return $content;
}
//ADMIN CHECK
function admincheck($hostname,$user,$password,$db,$lang) {
$open = mysql_connect($hostname,$user,$password);
mysql_select_db("$db",$open);
$result = mysql_query("SELECT * FROM teams WHERE username = 'admin'");
$i = 0;
$total_rows = mysql_numrows($result);
if($total_rows != 1) {
$output .= "
<tr><td bgcolor=\"#ffffff\">
<p align=center class=\"header\"><!--%cc_welcometo%--> Your Hockey League.<br>
<!--%cc_security%--> <a href=\"./?opt=createadmin\">
<!--%cc_gotherenow%--></a></p>
</td></tr>";
$check = "false";
$sql = "INSERT INTO leagueinfo VALUES ('NULL','Your Hockey League','',";
$sql .= "'','','','',";
$sql .= "'1','10','1','','')";
$done = mysql_query($sql);
} else {
include("./home.php");
$output = home();
}
return $output;
}
$footer = $sport_dir."html/footer.html";
$fd = fopen ($footer, "r");
$output .= fread ($fd, filesize ($footer));
fclose ($fd);
$langselect = "
<a href=\"setlang.php?lang=".$llang."\" onClick=\"NewWindow(this.href,'name','300','150','yes');return false;\">
<!--%cc_language%--></a>";
$output = eregi_replace("<!--%LANGUAGESELECT%-->",$langselect,$output);
include("./lang.php");
$output = lang($lang, $output);
echo $output;
?>