ID:               39636
 User updated by:  dj02 dot net at nbl dot fi
 Reported By:      dj02 dot net at nbl dot fi
-Status:           Feedback
+Status:           Closed
 Bug Type:         Reproducible crash
 Operating System: Windows XP PRO SP2 (5.1.2600)
 PHP Version:      5.2.1-dev (Nov 29 2006 12:17:35)
 New Comment:

Hey,

I don't know how to tell much important code (which is used in logout)
to 20-30 lines.

But i'll got it work as CGI Mode, Thanks.


Previous Comments:
------------------------------------------------------------------------

[2006-11-29 20:51:29] [EMAIL PROTECTED]

20-30 lines. Please.

------------------------------------------------------------------------

[2006-11-29 19:07:40] dj02 dot net at nbl dot fi

Functions.php(3/3):

If you could check this from:
http://www.dj02net.com/crashreports/dbfunctions.php.txt

------------------------------------------------------------------------

[2006-11-29 19:04:14] dj02 dot net at nbl dot fi

Index.php (2/3):
// -------------------------------------------- Kirjautumiseen
liittyvät ----------------------------------------

if (in_array("logout",$_operation)) // LogOut
{
  timed_delete($bandb, $div, 4);
  lock($db);
  db_delete_col($db, $div, 3, 3);  // poistetaan viestit roskakorista
  unlock($db);
  lock($sesdb);
  db_delete_col($sesdb, $div, $_SESSION['ssid'], 1);  // poistetaan
vanha sessiovarmistustunniste
  unlock($sesdb);
  lock($userfile);
  $value = db_modify_line($userfile, $div, $_SESSION['name'], 0, 15,
time());  // asetetaan viimeisin käyntiaika
  unlock($userfile);

  setcookie(session_name() ,"", time()-100, "/"); // poistetaan sessio
  unset($_SESSION);

  header("Location: " . $server_php_self .
"?loggedout=true$get_more");
  exit;
}

------------------------------------------------------------------------

[2006-11-29 19:02:40] dj02 dot net at nbl dot fi

I'll tray now (i'll tell you three files).

Config.php (1/3):
$path = "C:/www/fncustomers/heebu/guestbook/";
$http = "http://www.heebu.com/guestbook/";;
$get_more = "";
$server_php_self = $_SERVER['PHP_SELF'];
$server_php_self = $_SERVER['PHP_SELF'];
if(empty($path))
{ $path = getcwd().'/'; /* jos polkua ei ole asetettu, yritetään hakea
se. */
  if(!file_exists($path."dbfunctions.php")) die($path.'<br>Polku on
väärin, tai tärkeitä tiedostoja puuttuu!'); }

if(empty($http))
{ array_pop($http =
explode("/","http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']));
  $http = implode("/",$http)."/"; }


$version = "2x06"; /* Versiotieto */
$div = "\t"; /* erottelija 1 */
$div2 = "|"; /* erottelija 2 */

$updateaddr = "http://koti.mbnet.fi/turazuro/updates/zurogb.txt";;
$ipcheckaddr =
"http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&do_search=Search&searchtext=";;

$userfile = $path . "data/users.txt";              /*
Käyttäjätietokanta  */
$cfgfile = $path . "data/config.txt";                  /* Asetustietokanta */
$sesdb = $path . "data/sesdb.txt";                 /*
Sessiojärjestelmän aputiedosto */
$bandb = $path . "data/banned.txt";                        /* Bannaustietokanta
*/
$db = $path . "data/db.txt";                               /* Viestitietokanta 
*/
$oldmsgsfile = $path . "data/archive.txt";         /* Vanhojen viestien
tietokanta */
$badwordfile = $path . "data/badwords.txt";        /*
Kirosanasuodatintiedosto */
$floodfile = $path . "data/flood.txt";             /*
Floodaustietokanta */

$smilefolder = $http."smilies";                    /* Hymiökansio */
$skinpath = "skins/";                              /* Nahkakansio */
$langpath = "lang/";                               /* Kielikansio */
?>

------------------------------------------------------------------------

[2006-11-29 18:02:48] [EMAIL PROTECTED]

I would be thankful too if you provide a short (20-30 lines max) but
complete reproduce code.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39636

-- 
Edit this bug report at http://bugs.php.net/?id=39636&edit=1

Reply via email to