a la ligne 278 j'ai un
require("$CONFIG->libdir/stdlib.php");
page congig.php
<?php
ob_start();
session_start();
//////////////////////////////////
//You can edit here the main //
// settings for the site //
//////////////////////////////////
class object {};
$CONFIG = new object;
//////////////////////////////////
// Script Paths //
//////////////////////////////////
$CONFIG->wwwroot = "/Xampp/htdocs/project";
//Site URL -please use the "http://www.3buckstofreedom.info" format. $CONFIG->wwwroot = $_SERVER['DOCUMENT_ROOT']."/subfolder";
$CONFIG->siteurl = "http://".$_SERVER['HTTP_HOST'];
//Edit below ONLY if you changed the current site structure. $CONFIG->siteurl = "http://www.cashrapide.fr/subfolder";
$CONFIG->templatedir = "$CONFIG->wwwroot/templates";
$CONFIG->libdir = "$CONFIG->wwwroot/lib";
$CONFIG->imagedir = "$CONFIG->wwwroot/rimages";
//////////////////////////////////
// Site look //
//////////////////////////////////
// show the text ads in header or footer
$CONFIG->header_textads=true;
$CONFIG->header_banners=true;
$CONFIG->footer_textads=true;
$CONFIG->footer_banners=true;
$CONFIG->colorscheme = "fresh,sunny";
//Color scheme: choose between nice_blue,almost_green,fresh,sunny
//ENTER "custom" if you want to define your own color scheme.
/////////////////////////////////////
// CUSTOM COLOR SCHEME //
// //
$CONFIG->darkcolor="#336699";
$CONFIG->bgcolor="#C0C0C0";
$CONFIG->lightcolor="#9DC7F2";
// //
// END OF CUSTOM COLOR SCHEME //
/////////////////////////////////////
//
$CONFIG->showstats = true;//show the site stats on the left side
//////////////////////////////////
// Site Details //
//////////////////////////////////
// The support email address-all the mails from the contact form will go there
$CONFIG->support = "admin@cashrapide.fr";
//Site name-this will be shown on the header,and footer,and also on every email sent
$CONFIG->sitename = "CashRapide.fr";
//Memo (note) for the payments
$CONFIG->paymentnote="$CONFIG->sitename Membership Fee";
/* The next variable sets who will be paid if there is no referral(sponsor)
Set it to false,if you want the admin to receive the payment or to true if
you want a random member to be chosen
*/
$CONFIG->payrandom = true;
/////////////////////////////////////
// EMAIL NOTIFICATION //
// set the next variable true //
//to receive email notifications //
// of new signups //
// //
$CONFIG->sendemail = true;
//Send email to: //
$CONFIG->sendto = "admin@cashrapide.fr";
// //
// END OF EMAIL NOTIFICATION //
/////////////////////////////////////
/////////////////////////////////////
// Payment Fees //
// Use the same format //
// XX.XX //
$CONFIG->adminfee="05.00";
//for sponsor
$CONFIG->sponsorfee="10.00";
//for random membbers
$CONFIG->randomfee="10.00";
//Currency Symbols
$CONFIG->currency="EUR";
$CONFIG->cursymbol="€";
//Weight parameters:
$CONFIG->weight2="10.00";// 2 new chances
$CONFIG->weight5="30.00";// 5 more chances
$CONFIG->weight10="50.00";// 10 more chances
$CONFIG->weight15="78.00";// 15 more chances
$CONFIG->weight25="110.00";// 25 more chances
$CONFIG->weight50="170.00";// 50 more chances
$CONFIG->weight100="280.00";// 100 more chances
$CONFIG->weight250="400.00";// 200 more chances
// Payment processors
//Change TRUE with FALSE if you don't want to use one of them.
$CONFIG->allowpaypal=false;
$CONFIG->allowpayza=false;
$CONFIG->allowegold=false;
$CONFIG->allowsolidtrustpay=false;
$CONFIG->allowskrill=false;
$CONFIG->allowperfectmoney=true;
$CONFIG->allowegopay=false;
$CONFIG->allowokpay=false;
/////////////////////////////////////////
// AFFILIATE ID //
//Starting with the 2.0 version, //
//you can earn money with your site //
//promoting TheRandomizer script //
//Enter your TheRandomizer.net username //
$CONFIG->affiliateusername="username";
//and LEAVE the "Powered by" intact //
//you will earn 10% from every sale //
//generated by you... //
/////////////////////////////////////////
/* READY !!!
* Do NOT EDIT BELOW!!!
* OPEN THE INSTALL.PHP FILE IN YOUR BROWSER NOW
*/
$CONFIG->primu=$CONFIG->siteurl."/join.php?stage=primu";
$CONFIG->adminul=$CONFIG->siteurl."/join.php?stage=adminul";
$CONFIG->complete=$CONFIG->siteurl."/rusers/final.php";
$CONFIG->add2=$CONFIG->siteurl."/rusers/weight_finish.php?cat=2";
$CONFIG->add5=$CONFIG->siteurl."/rusers/weight_finish.php?cat=5";
$CONFIG->add10=$CONFIG->siteurl."/rusers/weight_finish.php?cat=10";
$CONFIG->add15=$CONFIG->siteurl."/rusers/weight_finish.php?cat=15";
$CONFIG->add25=$CONFIG->siteurl."/rusers/weight_finish.php?cat=25";
$CONFIG->add50=$CONFIG->siteurl."/rusers/weight_finish.php?cat=50";
$CONFIG->add100=$CONFIG->siteurl."/rusers/weight_finish.php?cat=100";
$CONFIG->add250=$CONFIG->siteurl."/rusers/weight_finish.php?cat=250";
/* load up standard libraries */
require("$CONFIG->libdir/stdlib.php");
require("$CONFIG->libdir/dblib.php");
require("$CONFIG->libdir/genlib.php");
/* connect to the database */
require_once("db_connect.php");
require_once("$CONFIG->libdir/general.php");
?>
la page stdlib.php
<code php><?
/* stdlib.php (c) 2003 ITWebTeam.net
*
* DO NOT EDIT BELOW
*/
function setdefault(&$var, $default="") {
if (! isset($var)) {
$var = $default;
}
}
function nvl(&$var, $default="") {
return isset($var) ? $var : $default;
}
function html_get(&$var) {
return isset($var) ? htmlSpecialChars(addslashes($var)) : "";
}
function html_print(&$var) {
echo isset($var) ? htmlSpecialChars(stripslashes($var)) : "";
}
function no_querystring($url) {
if ($commapos = strpos($url, '?')) {
return substr($url, 0, $commapos);
} else {
return $url;
}
}
function codare_output($output){
for($count = 0; $count < strlen($output); $count++)
{
$codat .= "%" . bin2hex($output[$count]);
}
$tcodat="<SCRIPT LANGUAGE=\"javascript\">\n<!-- \ndocument.write(unescape(\"$codat\"));\n//-->\n</SCRIPT>";
return $tcodat;
}
function get_referer() {
global $HTTP_REFERER;
return no_querystring(nvl($HTTP_REFERER));
}
function my_name() {
global $PHP_SELF, $REQUEST_URI;
$my_url = isset($REQUEST_URI) ? $REQUEST_URI : $PHP_SELF;
return no_querystring($my_url);
}
function my_name_long() {
global $HTTPS, $SERVER_PROTOCOL, $HTTP_HOST;
$protocol = (isset($HTTPS) && $HTTPS == "on") ? "https://" : "http://";
$url_prefix = "$protocol$HTTP_HOST";
return $url_prefix . my_name();
}
function match_referer($good_referer = "") {
if ($good_referer == "") { $good_referer = my_name_long(); }
return $good_referer == get_referer();
}
function redirect($url, $message="", $delay=0) {
echo "<meta http-equiv='Refresh' content='$delay; url=$url'>";
if (!empty($message))
echo "<div style='font-family: Arial, Sans-serif; font-size: 12pt;' align=center>$message</div>";
die;
}
function read_template($filename) {
$temp = str_replace("\\", "\\\\", implode(file($filename), ""));
$temp = str_replace('"', '\"', $temp);
eval("\$template = \"$temp\";");
return $template;
}
?>
</code>