ce mod modifie les fichiers index.php et Sub.php
je ne sais pas si ça fonctionnait avant que je n'applique les modif (qui elles fonctionnent).
Contenu du mod :
<id>
lycos.co.uk</id>
<version>
0.4
</version>
<mod info>
Make sure your forum is basically working before running this mod
If you have installed a previous version of this mod, make sure you un-install it first.
Fixes some of the problems with YaBBSE working correctly on
lycos.co.uk free pages:
Can't link to SQL database (intermittent errors)
Redirection errors (i.e. posting and not going back to the forum)
Made for Yabb se version 1.4.1
</mod info>
<author>
CandyMann_69
</author>
<homepage>
http://kazaalite_69.tripod.com/kazaa/
</homepage>
<edit file>
index.php
</edit file>
<search for>
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);
</search for>
<replace>
$tempxyz = 0;
$dbcon = false;
while (tempxyz < 10 and !$dbcon) {
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
$tempxyz++;
}
mysql_select_db($db_name);
</replace>
<edit file>
Sources/Subs.php
</edit file>
<search for>
function redirectexit (){
global $yySetLocation;
header("Location: ".str_replace(" ","%20",$yySetLocation));
obExit();
}
</search for>
<replace>
function redirectexit (){
global $yySetLocation;
print <<<eot
<html>
<head>
<script language="JavaScript">
<!-- Begin
location.href="$yySetLocation"
// End -->
</script>
</head>
<title>Redirector</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<br>
<br>
<br>
Redirecting to $yySetLocation<br>
Please click <a href="$yySetLocation">here</a> if not redirected.<br>
</center>
</body>
</html>
eot;
obExit();
}
</replace>