ID: 39636
User updated by: dj02 dot net at nbl dot fi
Reported By: dj02 dot net at nbl dot fi
Status: Open
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:
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;
}
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2006-11-29 17:46:46] dj02 dot net at nbl dot fi
Hi,
What would be better category?
I would be really thanksful if you could check the code.
------------------------------------------------------------------------
[2006-11-29 17:28:20] [EMAIL PROTECTED]
Thanks, but the guestbook is a bit too much for a reproduce case.
------------------------------------------------------------------------
[2006-11-29 17:16:55] dj02 dot net at nbl dot fi
Mistake in URL. Here's the right one.
Guestbook ZIP-Package:
http://www.dj02net.com/crashreports/vk206.zip
The Code i copied previously was from file called: "index.php"
------------------------------------------------------------------------
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