Hallo, ´
habe ein script istalliert aber beim login zeigt er Fehler an:
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web66/html/auktion/includes/config.inc.php:671) in /home/www/web66/html/auktion/user_login.php on line 82
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web66/html/auktion/includes/config.inc.php:671) in /home/www/web66/html/auktion/user_login.php on line 83
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web66/html/auktion/includes/config.inc.php:671) in /home/www/web66/html/auktion/user_login.php on line 130
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web66/html/auktion/includes/config.inc.php:671) in /home/www/web66/html/auktion/user_login.php on line 137
hier die codes zur confi.inc:
Code:
<?
// Seitentitel
$SITE_NAME = "http://auktion.easySecret.com";
//Nachrichtenblock
$BNACH = "1";
//Amazon-ID
$AMAZONID = "";
//Amazon-Token
$AMAZONTOKEN = "";
//Header-Bild
$HEADIMAGE = "header.jpg";
//Balkenfarbe
define ('BCOLOR', '#8EBBFF');
define ('BCOLOR1', '#0066FF');
define ('BIMG', 'kachel6.gif');
// Dieser Text wir in der oberen Menüleiste angezeigt:
$LOGIN_TEXT = "Mein Konto";
// Dieser Pfad wird in den eMails verwendet. Stimmen also in den generierten eMails
// die URLs nicht, so checken Sie hier noch einmal den korrekten Pfad!
$SITE_URL = "http://www.easysecret.com/auktion/"; //Am Ende muss ein Slash "/" stehen!
// zusätzliche EMail-Adresse für Supportanfragen oder ähnliches...
$SUPPORT_EMAIL = "";
// Stammdaten für die Rechnungslegung
$FIRMA_NAME1 = "$FNAME$"; // oder Vorname und Name
$FIRMA_NAME2 = ""; // bei Einzelperson freilassen
$FIRMA_STRASSE = "$STRRET$";
$FIRMA_PLZ = "";
$FIRMA_ORT = "";
$FIRMA_KONTO = "";
$FIRMA_BLZ = "";
$FIRMA_BANK = "";
$FIRMA_KONTOINHABER = "";
// Cookie-Namen
$COOKIE_PREFIX = "pro_auction_";
$LOGGED_IN_COOKIE = $COOKIE_PREFIX."LOGGED_IN";
$LOGGED_IN_NICK = $COOKIE_PREFIX."NICK_LOGGED_IN";
$LOGGED_IN_PW = $COOKIE_PREFIX."PW_LOGGED_IN";
// eMail-Benachrichtigung an den Webmaster bei neuem User ("1" = ja / "0" = nein)
$NEWUSER_MAIL = "1";
// eMail-Benachrichtigung an den Webmaster bei neuer Auktion ("1" = ja / "0" = nein)
$NEWAUCTION_MAIL = "1";
// In Kategorieübersicht auf Startseite erstes Sublevel anzeigen ("1" = ja / "0" = nein)
$SHOW_SUBCAT = "0";
// News-Box Anzeige
// 1: News-Box wird angezeigt
// 0: News-Box wird nicht angezeigt
$NEWS_BOX = 1;
$NEWS_TO_SHOW = 5; // max. Anzahl der News in der Liste auf der Startseite
// Geldformat
$MONEY_FORMAT = 2; // 1 = USA / 2 = Europa
$MONEY_DECIMALS = 2; // Nachkommastellen für die Währung
// Währungssymbol rechts = R / Links = L
$MONEY_SYMBOL_POS = "R";
// Zeitformat "MEZ" (Normalzeit) oder "MESZ" (Sommerzeit)
$TIMEFORMAT = "MEZ";
// Hervorhebungsfarbe für die Option "Textmarker"
$MARKER_COLOR = "#CFE0F8";
// Der Pfad zum Include-Verzeichnis
$include_path = "./includes/";
// Der Pfad zu Ihrem Passwordfile "passwd.inc.php"
$password_path = "./0815/";
// Hier muss der absolute Pfad zum Verzeichnis für den Bilderupload rein (mit Endslash!)
// beim Provider zu erfragen !
$image_upload_path = "/home/www/web66/html/auktion/uploaded/"; // Beispiel Pfad
// ... und hier das Uploadverzeichnis mit Endslash!
$uploaded_path = "uploaded/";
// Maximale Bildgröße für den Bilder-Upload (in Byte)
$MAX_UPLOAD_SIZE = 200000;
// Der folgende Text wird zum Verschlüsseln benutzt
// und darf bei laufender Auktion nicht mehr verändert werden!!
$MD5_PREFIX = "1C2Uf3TonK6w6K56ncdPrjT2zZses3B3HdZfA2XycZXdx0FtnD";
$SHOW_ACCEPTANCE_TEXT = 1;
$SHOW_AFF = 1;
// Pfad zu den Logdateien der cron.php
// beim Provider zu erfragen !
$logFileName = "/home/www/web66/html/auktion/cronfile/cron.dat"; // Beispiel Pfad
// Aktiviert die Bildschirmanzeige, wenn TRUE
$cronScriptHTMLOutput = TRUE; // nicht ändern
// Ablaufdaten, zum DB-Bereinigen
$expireAuction = 60*60*24*60; // Nach 60 Tagen werden alte Auktionen gelöscht.
$sessionLifeTime = 60*60*24*2; // Nach 2 Tagen werden alte User-Sessions gelöscht.
// einige Konstanten zur Textformatierung
// können Sie nach Belieben ändern
$err_font = "<FONT FACE=\"Arial\" SIZE=\"2,4\" COLOR=\"#464646\">";
$ers_font = "<FONT FACE=\"Arial\" SIZE=\"2\" COLOR=\"#FFFFFF\">";
$std_font = "<FONT FACE=\"Arial\" SIZE=\"2,4\" COLOR=\"#000000\">";
$sml_font = "<FONT FACE=\"Arial\" SIZE=\"2\" COLOR=\"#000000\">";
$smlnav_font = "<FONT FACE=\"Arial\" SIZE=\"2\" COLOR=white>";
$grn_font = "<FONT FACE=\"Arial\" SIZE=\"1\" COLOR=\"#426FB8\">";
$tlt_font = "<FONT FACE=\"Arial\" SIZE=\"3\">";
$tlt2_font = "<FONT FACE=\"Arial\" SIZE=\"3\">";
$usr_font = "<FONT FACE=\"Arial\" SIZE=\"3\" COLOR=\"#426FB8\">";
$nav_font = "<FONT FACE=\"Arial\" SIZE=\"3\" COLOR=\"#000000\">";
/*======================================================================
* *
* AB HIER BITTE NICHTS MEHR ÄNDERN !!!
* *
======================================================================*/
if(strpos($PHP_SELF,"admin/")){
$password_file = "../".$password_path."passwd.inc.php";
}else{
$password_file = $password_path."passwd.inc.php";
}
// Administrator-eMail-Adresse
if(strpos($PHP_SELF,"admin/")){
include("../includes/adminmail.inc.php");
}else{
include("./includes/adminmail.inc.php");
}
if(strpos($PHP_SELF,"admin/")){
include("../includes/currency.inc.php");
}else{
include("./includes/currency.inc.php");
}
include($password_file);
// Datenbank konnektieren
mysql_pconnect($DbHost,$DbUser,$DbPassword)
or die("Datenbankzugriff gescheitert. Bitte den Webmaster informieren");
mysql_select_db($DbDatabase);
// Sessions unterstützen. Wichtig für Login usw.
if(strpos($PHP_SELF,"admin/")){
include("../includes/sessions.inc.php");
}else{
include("./includes/sessions.inc.php");
}
// Maximum of auktions at TOP-AUKTIONEN
$alex_max_top_auktion="6";
// Maximum of auktions at 1 EURO-AUKTIONEN
$alex_max_1euro_auktion="6";
?>
und zur user_login
Code:
<?
/*
Copyright (c), 1999, 2000 - phpauction
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation (version 2 or later).
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
include "./includes/messages.inc.php";
include "./includes/config.inc.php";
include "./includes/countries.inc.php";
if(empty($action))
{
$action = "login";
}
if (($REQUEST_METHOD=="GET" && $action=="login") && !$HTTP_COOKIE_VARS["$LOGGED_IN_COOKIE"])
{
include "header.php";
include "templates/template_user_login_php.html";
}
if (($REQUEST_METHOD=="POST" && $action=="login") || ($HTTP_COOKIE_VARS["$LOGGED_IN_COOKIE"] && $REQUEST_METHOD!="POST"))
{
if (($TPL_nick && $TPL_password) || $HTTP_COOKIE_VARS[$LOGGED_IN_COOKIE])
{
if(!$TPL_nick)
{
$TPL_nick = $HTTP_COOKIE_VARS["$LOGGED_IN_NICK"];
}
$sql="SELECT * FROM users WHERE nick=\"". AddSlashes($TPL_nick)."\"";
$res=mysql_query ($sql);
if ($res)
{
if (mysql_num_rows($res)>0)
{
$arr=mysql_fetch_array ($res);
if ((md5($MD5_PREFIX.$TPL_password) == $arr[password]) || $HTTP_COOKIE_VARS["$LOGGED_IN_COOKIE"])
{
if(!$HTTP_COOKIE_VARS["$LOGGED_IN_NICK"])
{
//-- Login user
setcookie($LOGGED_IN_COOKIE,$arr["id"]);
setcookie($LOGGED_IN_NICK,$TPL_nick);
if (!empty($pwsafe))
{
setcookie($LOGGED_IN_PW,$TPL_password);
}
}
$bm_password = $TPL_password;
$TPL_id_hidden=$arr[id];
$TPL_name=$arr[name];
$TPL_nick=$arr[nick];
$TPL_password="";
$TPL_repeat_password="";
$TPL_email=$arr[email];
$TPL_birthdate=$arr[birthdate ];
$TPL_address=$arr[address];
$TPL_city=$arr[city];
$TPL_prov=$arr[prov];
$TPL_country=$arr[country];
$TPL_zip=$arr[zip];
$TPL_phone=$arr[phone];
if ($arr[rate_num])
{
$TPL_rate=round($arr[rate_sum]/$arr[rate_num]);
}
else
{
$TPL_rate=0;
}
$TPL_birthdate = substr($TPL_birthdate,6,2).".".
substr($TPL_birthdate,4,2).".".
substr($TPL_birthdate,0,4);
$country="";
while (list ($code, $name) = each ($countries))
{
$country .= "<option value=\"$code\"";
if ($code==$TPL_country)
{
$country .= " selected";
}
$country .= ">$name</option>\n";
};
$expires = time()+(60*60*34*265*10); // Cookie expires in 10 years.
setcookie("YA_USER_NICK",$TPL_nick,$expires,'','',0);
if (!empty($pwsafe))
{
setcookie("YA_USER_PW",$bm_password,$expires,'','',0);
}
Header("location:login_menu.php");
//exit;
}
else
{
$TPL_err=1;
$TPL_errmsg=$ERR_101;
}
}
else
{
$TPL_err=1;
$TPL_errmsg=$ERR_100;
}
}
else
{
$TPL_err=1;
$TPL_errmsg=$ERR_001;
}
}
else
{
$TPL_err=1;
$TPL_errmsg=$ERR_112;
}
}
if ($REQUEST_METHOD=="POST" && $action=="update")
{
if ($TPL_name && $TPL_nick && $TPL_email && $TPL_address && $TPL_city && $TPL_country && $TPL_zip && $TPL_phone)
{
$emailsplit = explode("@",$TPL_email);
$emaildomain = $emailsplit[1];
$query = "select * from freemail order by freemail";
$result = mysql_query($query);
if(!$result)
{
print $ERR_001." - ".mysql_error();
exit;
}
$num = mysql_num_rows($result);
$filteron = "0";
$i = 0;
while($i < $num)
{
$provider = mysql_result($result,$i,"freemail");
if ($provider == $emaildomain)
{
$filteron = "1";
}
$i++;
}
if (strlen($TPL_nick)<6)
{
$TPL_err=1;
$TPL_errmsg=$ERR_010;
}
else if ($filteron == "1")
{
$TPL_err=1;
$TPL_errmsg="Die angegebene eMail-Adresse stammt von einem Provider, der auf diesem System gesperrt wurde!";
}
else if (strlen($TPL_password)<6 && strlen($TPL_password) > 0)
{
$TPL_err=1;
$TPL_errmsg=$ERR_011;
}
else if ($TPL_password!=$TPL_repeat_password)
{
$TPL_err=1;
$TPL_errmsg=$ERR_109;
}
else if (strlen($TPL_email)<5) //Primitive mail check
{
$TPL_err=1;
$TPL_errmsg=$ERR_110;
}
else if (strlen($TPL_zip)<5) //Primitive zip check
{
$TPL_err=1;
$TPL_errmsg=$ERR_616;
}
else if (strlen($TPL_phone)<3) //Primitive phone check
{
$TPL_err=1;
$TPL_errmsg=$ERR_617;
}
else
{
$TPL_birthdate = substr($TPL_birthdate,6,4).
substr($TPL_birthdate,3,2).
substr($TPL_birthdate,0,2);
$sql="UPDATE users SET name=\"". AddSlashes($TPL_name)
."\", nick=\"". AddSlashes($TPL_nick)
."\", email=\"". AddSlashes($TPL_email)
."\", birthdate=\"". AddSlashes($TPL_birthdate)
."\", address=\"". AddSlashes($TPL_address)
."\", city=\"". AddSlashes($TPL_city)
."\", prov=\"". AddSlashes($TPL_prov)
."\", country=\"". AddSlashes($TPL_country)
."\", zip=\"". AddSlashes($TPL_zip)
."\", phone=\"". AddSlashes($TPL_phone)
."\", status=\"". AddSlashes($TPL_status)
."\", newsletter=\"". AddSlashes($TPL_newsletter);
if(strlen($TPL_password) > 0)
{
$sql .= "\", password=\"". md5($MD5_PREFIX.AddSlashes($TPL_password));
}
$sql .= "\" WHERE id='". AddSlashes($TPL_id_hidden)."'";
$res=mysql_query ($sql);
include "header.php";
include "templates/template_updated.html";
}
}
else
{
$TPL_err=1;
$TPL_errmsg=$ERR_112;
}
}
if ($REQUEST_METHOD=="POST" && $action == "update" && $TPL_err)
{
include "header.php";
//-- If an error occures re-built countries <SELECT>
$country="";
while (list ($code, $name) = each ($countries))
{
$country .= "<option value=\"$code\"";
if ($code==$TPL_country)
{
$country .= " selected";
}
$country .= ">$name</option>\n";
};
include "templates/template_change_details_php.html";
}
if ($REQUEST_METHOD=="POST" && $action == "login" && $TPL_err)
{
include "header.php";
include "templates/template_user_login_php.html";
}
include "footer.php";
$TPL_err=0;
$TPL_errmsg="";
?>