Don't use for the linkfree version!
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
index.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Suche (Zeile 13-20) - search for (line 13-20)
include("inc/sql.php");
include("inc/vars.php");
if ($stanlang == "de"){$standard = "lang/de.php";}
else {$standard = "lang/en.php";}
$langget = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($langget == "de"){include("lang/de.php");}
elseif ($langget == "en"){include("lang/en.php");}
else {include("$standard");}
ersetze mit: - replace with:
$scriptpath=$_SERVER['DOCUMENT_ROOT'];
include("inc/sql.php");
include("inc/vars.php");
function safety($var)
{
$var=addslashes($var);
$var=strip_tags($var);
return $var;
}
function get_lang()
{
$lang = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
$lang = substr($lang, 0, 2);
return $lang;
}
function get_lang_file($language,$stanlang,$langarray,$langdetect)
{
if ($langdetect=="no")
{return $stanlang;}
$langarray=explode(",",$langarray);
$max=count($langarray);
for($i=0;$i<$max;$i++)
{
if ($langarray[$i]==$language)
{return $langarray[$i];}
}
return $stanlang;
}
$langget=get_lang($stanlang);
include("lang/".get_lang_file($langget,$stanlang,$langarray,$langdetect).".php");
__________________________________________________________________________________
Suche (Zeile 43) - search for (line 43)
$start = $_GET["$kwholder1"];
ersetze mit: - replace with:
$start = safety($_GET["$kwholder1"]);
__________________________________________________________________________________
Suche (Zeile 68-69) - search for (line 68-69)
if (empty ($start) || $start<0)
{$start=0;}
ersetze mit: - replace with:
if ($filename == "index.php")
{$filenamex == "";}
else {$filenamex = $filename;}
if (!is_numeric($start) and !empty($start))
{header("HTTP/1.1 301 Moved Permanently");header ("location: ".$topsiteurl."/".$filenamex); exit;}
if (empty ($start) || $start<0)
{$start=0;}
__________________________________________________________________________________
Suche (Zeile 84-85) - search for (line 84-85)
$start = addslashes($start);
$query = mysql_query("SELECT * from $topxl_user_table WHERE active='yes' and $sqlwhere $sqlorder DESC LIMIT $start,$linkspersite") or die ("Msql_Error");
ersetze mit: - replace with:
if ($onlyactive == "yes")
{
$inacttime = $timestamp-$inactivetime;
$sqllastactive = " and lastactive>='$inacttime'";
}
$query = mysql_query("SELECT * from $topxl_user_table WHERE active='yes' and $sqlwhere$sqllastactive $sqlorder DESC LIMIT $start,$linkspersite") or die ("Msql_Error");
__________________________________________________________________________________
Suche (Zeile 92-97) - search for (line 92-97)
if(!file_exists("html/topsite-rows.html"))
{echo "The template file html/topsite-rows.html does not exist."; exit;}
if(!file_exists("html/topsite-rows-header.html"))
{echo "The template file html/topsite-rows-header.html does not exist."; exit;}
$fp3 = fopen("html/topsite-rows-header.html","r");
$zeile3 = fread ($fp3, filesize ("html/topsite-rows-header.html"));
ersetze mit: - replace with:
if(!file_exists("html/".$design."/topsite-rows.html"))
{echo "The template file html/".$design."/topsite-rows.html does not exist."; exit;}
if(!file_exists("html/".$design."/topsite-rows-header.html"))
{echo "The template file html/".$design."/topsite-rows-header.html does not exist."; exit;}
$fp3 = fopen("html/".$design."/topsite-rows-header.html","r");
$zeile3 = fread ($fp3, filesize ("html/".$design."/topsite-rows-header.html"));
__________________________________________________________________________________
Suche (Zeile 113) - search for (line 113)
$countuser = mysql_query("SELECT COUNT(id) as cnt FROM $topxl_user_table WHERE active='yes'") or die (mysql_error());
ersetze mit: - replace with:
$countuser = mysql_query("SELECT COUNT(id) as cnt FROM $topxl_user_table WHERE active='yes'$sqllastactive") or die (mysql_error());
__________________________________________________________________________________
Suche (Zeile 130-131) - search for (line 130-131)
$fp2 = fopen("html/topsite-rows.html","r");
$zeile2 = fread ($fp2, filesize ("html/topsite-rows.html"));
ersetze mit: - replace with:
$fp2 = fopen("html/".$design."/topsite-rows.html","r");
$zeile2 = fread ($fp2, filesize ("html/".$design."/topsite-rows.html"));
__________________________________________________________________________________
Suche (Zeile 158) - search for (line 158)
$bannerlink = "";
ersetze mit: - replace with:
if ($staticbannersize=="yes")
{$bannersize=" width=\"".$bannerwidth."\" height=\"".$bannerheight."\"";}
$bannerlink = "
";
__________________________________________________________________________________
Suche (Zeile 211-215) - search for (line 211-215)
{
if ($filename == "index.php")
{$filenamex == "";}
else {$filenamex = $filename;}
$menu .= " 1 | ";}
ersetze mit: - replace with:
{$menu .= " 1 | ";}
__________________________________________________________________________________
Suche (Zeile 236-239) - search for (line 236-239)
if(!file_exists("html/topsite.html"))
{echo "The template file html/topsite.html does not exist."; exit;}
$fp1 = fopen("html/topsite.html","r");
$zeile = fread ($fp1, filesize ("html/topsite.html"));
ersetze mit: - replace with:
if(!file_exists("html/".$design."/topsite.html"))
{echo "The template file html/".$design."/topsite.html does not exist."; exit;}
$fp1 = fopen("html/".$design."/topsite.html","r");
$zeile = fread ($fp1, filesize ("html/".$design."/topsite.html"));
__________________________________________________________________________________
Suche (Zeile 266-267) - search for (line 266-267)
{fclose($fp2);}
fclose($fp1);
ersetze mit: - replace with:
{@fclose($fp2);}
@fclose($fp1);
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
add.php
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
suche (zeile 17-25) - search for (line 17-25)
include("inc/sql.php");
include("inc/vars.php");
include("inc/functions.php");
if ($stanlang == "de"){$standard = "lang/members-de.php";}
else {$standard = "lang/members-en.php";}
$langget = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($langget == "de"){include("lang/members-de.php");$lang="de";}
elseif ($langget == "en"){include("lang/members-en.php");$lang="en";}
else {include("$standard");}
ersetze mit: - replace with:
$scriptpath=$_SERVER['DOCUMENT_ROOT'];
include("inc/sql.php");
include("inc/vars.php");
include("inc/functions.php");
$langget=get_lang($stanlang);
include("lang/members-".get_lang_file($langget,$stanlang,$langarray,$langdetect).".php");
_________________________________________
suche (zeile 30-87) - search for (line 30-87)
if ($do == "changeadd" or $do == "submitter")
{
if ($do == "submitter")
{
$name = $_GET["name"];
$email = $_GET["email"];
$url = $_GET["url"];
$reciprocal = $_GET["reciprocal"];
$bannerurl = $_GET["bannerurl"];
$title = $_GET["title"];
$description = $_GET["description"];
$notes = $_GET["notes"];
$pass = $_GET["pass"];
$pass2 = $_GET["pass2"];
$rulechecker = "yes";
}
else
{
$name = $_POST["name"];
$email = $_POST["email"];
$url = $_POST["url"];
$reciprocal = $_POST["reciprocal"];
$bannerurl = $_POST["bannerurl"];
$title = $_POST["title"];
$description = $_POST["description"];
$notes = $_POST["notes"];
$pass = $_POST["pass"];
$pass2 = $_POST["pass2"];
$rulechecker = $_POST["rulechecker"];
}
$name = strip_tags($name);
$email = strip_tags($email);
$title = strip_tags($title);
$description = strip_tags($description);
$url = strip_tags($url);
$bannerurl = strip_tags($bannerurl);
$reciprocal = strip_tags($reciprocal);
$notes = strip_tags($notes);
$name = addslashes($name);
$email = addslashes($email);
$url = addslashes($url);
$reciprocal = addslashes($reciprocal);
$bannerurl = addslashes($bannerurl);
$title = addslashes($title);
$description = addslashes($description);
$notes = addslashes($notes);
$pass = addslashes($pass);
ersetze mit: - replace with:
if ($addvalicode=="yes") {session_start();}
if ($do == "changeadd" or $do == "submitter")
{
if ($refereraddcheck=="yes")
{
$ref=$_SERVER["HTTP_REFERER"];
if (!$ref or $ref=="" or !eregi("http://",$ref))
{echo "No valid referer";exit;}
$topsiteurl1=get_dom($topsiteurl);
$ref=get_dom($ref);
if ($ref!=$topsiteurl1)
{echo "No valid referer";exit;}
}
if ($do == "submitter" and $addperget=="yes")
{
$name=safety($_GET["name"]);
$email=safety($_GET["email"]);
$url=safety($_GET["url"]);
$reciprocal=safety($_GET["reciprocal"]);
$bannerurl=safety($_GET["bannerurl"]);
$title=safety($_GET["title"]);
$description=safety($_GET["description"]);
$notes=safety($_GET["notes"]);
$pass=safety($_GET["pass"]);
$pass2=safety($_GET["pass2"]);
$rulechecker="yes";
}
else
{
$name=safety($_POST["name"]);
$email=safety($_POST["email"]);
$url=safety($_POST["url"]);
$reciprocal=safety($_POST["reciprocal"]);
$bannerurl=safety($_POST["bannerurl"]);
$title=safety($_POST["title"]);
$description=safety($_POST["description"]);
$notes=safety($_POST["notes"]);
$pass=safety($_POST["pass"]);
$pass2=safety($_POST["pass2"]);
$rulechecker=safety($_POST["rulechecker"]);
}
if ($addvalicode=="yes")
{
if ($_POST['valicode'] != $_SESSION['code'])
{$error32 = $errortext32;}
}
_________________________________________
suche (zeile 119) - search for (line 119)
$limitedext = array(".gif",".jpg",".jpeg");
ersetze mit
$limitedext=array(".gif",".jpg",".jpeg",".png");
_________________________________________
suche (zeile 148) - search for (line 148)
if ($error1 || $error2 || $error3 || $error4 || $error5 || $error6 || $error7 || $error8 || $error24)
ersetze mit
if ($error1 || $error2 || $error3 || $error4 || $error5 || $error6 || $error7 || $error8 || $error24 || $error32)
_________________________________________
suche (Zeile 173-215) - search for (line 173-215)
if ($reftype == "textlink")
{
if ($mailtouser == "yes" or $mailtoadmin == "yes")
{
$recicodetext = recipcodetext($id,$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$htmlcode3 = "$text_textlink\n";
$htmlcode3 .= "$htmlcodescript\n$recicodetext\n";
}
$recicodetexthtml = htmlentities($recicodetext);
$recicodetext1 = recipcodetext("none",$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$htmlcode .= "
$text_textlink
$htmlcodescript1
$recicodetexthtml
$text_preview:
$recicodetext1
";
}
elseif ($reftype == "banner")
{
if ($mailtouser == "yes" or $mailtoadmin == "yes")
{
$recicodebanner = recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
$htmlcode3 = "$text_banner\n";
$htmlcode3 .= "$htmlcodescript\n$recicodebanner\n";
}
$recicodebannerhtml = htmlentities($recicodebanner);
$recicodebanner1 = recipcodebanner("none",$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
$htmlcode .= "
$text_banner
$htmlcodescript1
$recicodebannerhtml
$text_preview:
$recicodebanner1
";
}
elseif ($reftype == "textban")
{
if ($mailtouser == "yes" or $mailtoadmin == "yes")
{
$recicodetext = recipcodetext($id,$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$recicodebanner = recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
$htmlcode3 = "$text_textlink\n";
$htmlcode3 .= "$htmlcodescript\n$recicodetext\n\n";
$htmlcode3 .= "$text_or $text_banner\n";
$htmlcode3 .= "$htmlcodescript\n$recicodebanner\n";
}
$recicodetexthtml = htmlentities($recicodetext);
$recicodebannerhtml = htmlentities($recicodebanner);
$recicodetext1 = recipcodetext("none",$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$recicodebanner1 = recipcodebanner("none",$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
$htmlcode .= "
$text_textlink
$htmlcodescript1
$recicodetexthtml
$text_preview:
$recicodetext1
";
$htmlcode .= "
$text_or $text_banner
$htmlcodescript1
$recicodebannerhtml
$text_preview:
$recicodebanner1
";
}
$htmlcodemail = "$htmlcode2 $htmlcode3";
ersetzte mit
$htmlcode3="";
if ($reftype=="textlink" or $reftype=="textban")
{
if ($mailtouser=="yes")
{
$recicodetext=recipcodetext($id,$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$htmlcode3="\n".$text_textlink."\n";
$htmlcode3.=$htmlcodescript."\n".$recicodetext."\n";
}
$htmlcode.=texthtmlgen($id,$topxl_admin_table,$topsiteurl,$linktitle,$filename,$text_textlink,$htmlcodescript,$text_preview);
}
if ($reftype=="banner" or $reftype=="textban")
{
$recicodebanner=recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
if ($mailtouser=="yes" or $mailtoadmin=="yes")
{
$htmlcode3.="\n".$text_banner." 1\n".$htmlcodescript."\n".recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename)."\n";
if ($topbannerurla!="")
{$htmlcode3.="\n".$text_banner." 2\n".$htmlcodescript."\n".recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurla,$linktitle,$filename)."\n";}
if ($topbannerurlb!="")
{$htmlcode3.="\n".$text_banner." 3\n".$htmlcodescript."\n".recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurlb,$linktitle,$filename)."\n";}
if ($topbannerurlc!="")
{$htmlcode3.="\n".$text_banner." 4\n".$htmlcodescript."\n".recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurlc,$linktitle,$filename)."\n";}
if ($topbannerurld!="")
{$htmlcode3.="\n".$text_banner." 5\n".$htmlcodescript."\n".recipcodebanner($id,$topxl_admin_table,$topsiteurl,$topbannerurld,$linktitle,$filename)."\n";}
}
$htmlcode.=bannerhtmlgen($id,$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename,$text_banner,$htmlcodescript,$text_preview);
if ($topbannerurla!="")
{$htmlcode.=bannerhtmlgen($id,$topxl_admin_table,$topsiteurl,$topbannerurla,$linktitle,$filename,$text_banner,$htmlcodescript,$text_preview);}
if ($topbannerurlb!="")
{$htmlcode.=bannerhtmlgen($id,$topxl_admin_table,$topsiteurl,$topbannerurlb,$linktitle,$filename,$text_banner,$htmlcodescript,$text_preview);}
if ($topbannerurlc!="")
{$htmlcode.=bannerhtmlgen($id,$topxl_admin_table,$topsiteurl,$topbannerurlc,$linktitle,$filename,$text_banner,$htmlcodescript,$text_preview);}
if ($topbannerurld!="")
{$htmlcode.=bannerhtmlgen($id,$topxl_admin_table,$topsiteurl,$topbannerurld,$linktitle,$filename,$text_banner,$htmlcodescript,$text_preview);}
}
$htmlcodemail = $htmlcode2." ".$htmlcode3;
_________________________________________
suche (zeile 222-231) - search for (line 222-231)
if ($mailtouser == "yes")
{
/// send mail to user
$subject = "$subjecttext $topsitename";
$body1 = "$bodytext1\n\n$bodytext2\n\n";
$body2 = "$htmlcodemail";
$body3 = "\n\nLogin Data\n$text_loginid $id\n$text_pass $mailpass\n\n$text_account_information\n$text_name $name\n$text_email $email\n$text_url $url\n$text_bannerurl $bannerurl\n$text_reciprocal $reciprocal\n$text_title $title\n$text_description $description\n$text_notes $notes\n$text_signupip $signupip\n$text_joindate $joindate\n\n$mailpromo\n\n".$commercialmailtext;
$body .= strip_tags($body1);
$body .= $body2;
$body .= strip_tags($body3);
mail($email,$subject,$body,"From: $adminmail\nReply-To: $adminmail");
}
if ($mailtoadmin == "yes")
{
$validateurl = "$topsiteurl/admin/index.php?do=validate";
/// send mail to admin
$subject2 = "$subjecttextadmin";
$body2 = "$validateurl\n\n $text_name $name\n$text_email $email\n$text_pass $mailpass\n$text_url $url\n$text_bannerurl $bannerurl\n$text_reciprocal $reciprocal\n$text_title $title\n$text_description $description\n$text_notes $notes\n$text_adminsignupip $signupip\n$text_joindate $joindate\n\n";
$body2 = strip_tags($body2);
mail($adminmail2,$subject2,$body2,"From: $email\nReply-To: $email");
$message = $messagesuccess;
}
ersetze mit
if ($validatesites == "yes")
{$message = $messagesuccess;$bodytextx=$bodytext1;$bodytexty=$bodytext2;}
else{$message = $messagesuccess1;$bodytextx=$bodytext3;$bodytexty=$bodytext4;}
if ($mailtouser == "yes")
{
/// send mail to user
$subject = $subjecttext." ".$topsitename;
$body1 = $bodytextx."\n\n".$bodytexty."\n\n";
$body2 = $htmlcodemail;
$body3 = "\n\nLogin Data\n".$text_loginid." ".$id."\n".$text_pass." ".$mailpass."\n\n".$text_account_information."\n".$text_name." ".$name."\n".$text_email." ".$email."\n".$text_url." ".$url."\n".$text_bannerurl." ".$bannerurl."\n".$text_reciprocal." ".$reciprocal."\n".$text_title." ".$title."\n".$text_description." ".$description."\n".$text_notes." ".$notes."\n".$text_signupip." ".$signupip."\n".$text_joindate." ".$joindate."\n\n".$mailpromo."\n\n".$commercialmailtext;
$body .= strip_tags($body1);
$body .= $body2;
$body .= strip_tags($body3);
mail($email,$subject,$body,"From: $adminmail\nReply-To: $adminmail");
}
if ($mailtoadmin == "yes")
{
include("lang/members-".$stanlang.".php");
$validateurl = $topsiteurl."/admin/index.php?do=validate";
/// send mail to admin
$subject2 = $subjecttextadmin;
$body2 = $validateurl."\n\n".$text_name." ".$name."\n".$text_email." ".$email."\n".$text_pass." ".$mailpass."\n".$text_url." ".$url."\n".$text_bannerurl." ".$bannerurl."\n".$text_reciprocal." ".$reciprocal."\n".$text_title." ".$title."\n".$text_description." ".$description."\n".$text_notes." ".$notes."\n".$text_adminsignupip." ".$signupip."\n".$text_joindate." ".$joindate."\n\n";
$body2 = strip_tags($body2);
mail($adminmail2,$subject2,$body2,"From: $email\nReply-To: $email");
include("lang/members-".get_lang_file($langget,$stanlang,$langarray,$langdetect).".php");
}
_________________________________________
suche (zeile 238-241) - search for (line 238-241)
if(!file_exists("html/add.html"))
{echo "The template file html/add.html does not exist.";exit;}
$fp1 = fopen("html/added.html","r");
$zeile = fread ($fp1, filesize ("html/added.html"));
$zeile = ereg_replace("{text_loginname}", "$text_loginname",$zeile);
$zeile = ereg_replace("{text_htmlcode}", "$bodytext2",$zeile);
ersetze mit
if(!file_exists("html/".$design."/add.html"))
{echo "The template file html/".$design."/add.html does not exist.";exit;}
$fp1 = fopen("html/".$design."/added.html","r");
$zeile = fread ($fp1, filesize ("html/".$design."/added.html"));
$zeile = ereg_replace("{text_loginname}", $text_loginname,$zeile);
$zeile = ereg_replace("{text_htmlcode}", $bodytexty,$zeile);
_________________________________________
suche (zeile 248) - search for (line 248)
$zeile = ereg_replace("{htmlcode}", "$htmlcode",$zeile);
ersetze mit
$zeile = ereg_replace("{htmlcode}", $exp_javascript_backlink."
".$htmlcode,$zeile);
_________________________________________
suche (zeile 261 - 282) - search for (line 261-282)
$prevhtmlcode = "$text_previewhtmlcode
";
if ($reftype == "textlink")
{
$recicodetext = recipcodetext("none",$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$prevhtmlcode .= "$text_textlink
";
$prevhtmlcode .= "$recicodetext
";
}
elseif ($reftype == "banner")
{
$recicodebanner = recipcodebanner("none",$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
$prevhtmlcode .= "$text_banner
";
$prevhtmlcode .= "$recicodebanner
";
}
elseif ($reftype == "textban")
{
$recicodetext = recipcodetext("none",$topxl_admin_table,$topsiteurl,$linktitle,$filename);
$recicodebanner = recipcodebanner("none",$topxl_admin_table,$topsiteurl,$topbannerurl,$linktitle,$filename);
$prevhtmlcode .= "$text_textlink
";
$prevhtmlcode .= "$recicodetext
";
$prevhtmlcode .= "$text_banner
";
$prevhtmlcode .= "$recicodebanner
";
}
if ($showbanner == "yes")
{
$bannerbox = "