Könnte da mal jemand drüber schauen, der sich damit auskennt?
Ich habe keine Lust mein Board zu zerstören ....
---------------------------------------------------------------
###############################################
## Hack Title: Search engines
## Hack Version: 1.0.0
## Author: Antony Bailey
## Description: A session patch designed to allow search engines to index you.
## Compatibility: 2.0.4
##
## Installation Level: Easy
## Installation Time: 2 minutes
## Files To Edit: 1
## sessions.php
## file.php
##
## Author Notes:
## I wrote this, as the R.U.Serious patch only worked for google.com, and this gets me listed on many other sites.
##
## Support:
http://www.phpbbhacks.com/forums
## Copyright: ©2003 Search Engines 1.0.0 - Antony Bailey
##
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit
http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ OPEN ]------------------------------------------
#
includes/sessions.php
#
#-----[ FIND ]------------------------------------------
#
//
// Does a session exist?
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$user_id = ( isset($sessiondata['userid']) ) ? intval($sessiondata['userid']) : ANONYMOUS;
if($user_id != ANONYMOUS)
{
#
#-----[ FIND ]------------------------------------------
#
return $userdata;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
}
else
{
$userdata['session_id'] = '';
$userdata['session_ip'] = '';
$userdata['session_user_id'] = $user_id;
$userdata['session_logged_in'] = 0;
$userdata['session_page'] = '';
$userdata['session_start'] = '';
$userdata['session_time'] = '';
}
#
#-----[ FIND AND DELETE ]------------------------------------------
#
// If we reach here then no (valid) session exists. So we'll create a new one,
// using the cookie user_id if available to pull basic user prefs.
//
$user_id = ( isset($sessiondata['userid']) ) ? intval($sessiondata['userid']) : ANONYMOUS;
#
#-----[ FIND ]------------------------------------------
#
//
// Delete existing session
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if(isset($session_id))
{
#
#-----[ FIND ]------------------------------------------
#
setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM