php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2004

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 20.09.2004, 19:10  
Gast
 
Beiträge: n/a
Standard Hilfe Fehler, wer kann helfen

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="";
?>
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 20.09.2004, 19:27  
Gast
 
Beiträge: n/a
Standard

Ich habs zwar nicht gelesen (is auch viel zu langgezogen), aber die wahrscheinliche Lösung:
ganz oben:
PHP-Code:
<?
<?
ob_start();
...
 
Alt 20.09.2004, 19:41  
Gast
 
Beiträge: n/a
Standard

http://www.php-faq.de/q/q-fehler-header.html
 
Alt 20.09.2004, 19:43  
Erfahrener Benutzer
 
Registriert seit: 29.08.2003
Beiträge: 216
wurtzel
Standard

vor <?php und nach ?> dürfen keine zeichen stehen
(leerzeichen ist auch ein zeichen)
wurtzel ist offline  
Alt 20.09.2004, 19:53  
Gast
 
Beiträge: n/a
Standard

danke an alle und vorallem wurtzel manchmal ist das problem kleiner als man denkt DANKE :wink:
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Fehler im Skript (Hilfe) PHP Tipps 2006 8 17.01.2006 10:10
[Erledigt] HILFE HILFE HILFE mysqladmin.exe fehlt Datenbanken 7 20.12.2005 14:00
Fehler beim Wechsel von MySQL 4 nach 5 JK Datenbanken 2 09.12.2005 18:43
hilfe fehler bei cookie mollitz PHP Tipps 2007 11 24.11.2005 09:25
[Erledigt] [phpmailer] - SMTP Fehler: Die folgenden Empfänger sind ... PHP Tipps 2005-2 1 05.10.2005 15:19
Hilfe!!!!!! Fehler beim schreiben in eine datei! PHP Tipps 2005 8 08.02.2005 10:28
Hilfe!! Datenbank Fehler (glaube ich...) PHP Tipps 2004-2 9 22.12.2004 13:44
Hilfe warum geht das net??? PHP Tipps 2004-2 10 22.12.2004 10:19
Wo liegt der fehler?? PHP-Fortgeschrittene 5 22.12.2004 09:54
Wieso mysql fehler? Bitte um Hilfe! PHP Tipps 2004-2 4 03.12.2004 19:10
[Erledigt] UPDATE = NO Update aber kein fehler..dringend hilfe suchend Datenbanken 2 25.09.2004 16:28
finde fehler nicht [in guestbook-script] PHP Tipps 2004 12 22.09.2004 22:23
hilfe... fehler bei einer überprüfung PHP Tipps 2004 0 20.09.2004 17:54
Hilfe finde Fehler nicht Sachse PHP Tipps 2004 12 06.09.2004 07:28
[Erledigt] brauche Hilfe beim update... 18inch Datenbanken 3 07.07.2004 17:04

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php money_format euro, php money_format ohne währungssymbol, php money_format, php money_format euro de, php money_format ohne währung, hier muss der absolute pfad zum verzeichnis für den bilderupload rein, php money_format euro german, php money_format ohne eur, money_format euro, auction/hilfe/admin/header.php on line 25, php money_format ohne leerzeichen, money_format german php, tpl_coutry, php money_format german, include \./includes/config.inc.php\; include \./includes/messages.inc.php\, \if(strpos($php_self,\admin\\, money_format germany, money_format währungssysmbol, php if else include, amazon_token

Alle Zeitangaben in WEZ +2. Es ist jetzt 04:01 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.