#
# Usu pliki:
#  includes/mods_info/spider_friendly_pro.php
#  includes/rewrite_sessions.php
#  includes/rewrite_cache.php
# i wykonaj ponisze instrukcje
#

#
#-----[ COPY ]------------------------------------------
#
copy  root/admin/*                    to admin/
copy  root/includes/*                 to includes/
copy  root/language/lang_english/*    to language/lang_english/
copy  root/language/lang_polish/*     to language/lang_polish/
copy  root/templates/subSilver/*      to templates/subSilver/
copy  root/.htaccess                  to .htaccess
copy  root/robots.txt                 to robots.txt
copy  root/sitemap.php                to sitemap.php

#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value)
VALUES('sf_mod_rewrite_enabled', 1),
	('sf_spiders_only', 0),
	('sf_rewrite_mode', 1),
	('sf_charset_mapping', 'auto'),
	('sf_fake_dirs', 1),
	('sf_postlink_rewrite', 1),
	('sf_max_keywords_length', 768),
	('sf_sitemap_enabled', 1),
	('sf_show_lastpost_link', 0),
	('sf_map_spiders_only', 1),
	('sf_map_index_only', 1),
	('sf_topics_per_page', 30),
	('sf_log_spiders', 1),
	('sf_spider_session_length', 3600),
	('sf_cache_refresh_on_post', 0);
CREATE TABLE phpbb_spider_log (
  log_id mediumint(9) NOT NULL auto_increment,
  spider_name varchar(255) NOT NULL default '',
  spider_firstvisit int(11) NOT NULL default '0',
  spider_lastvisit int(11) NOT NULL default '0',
  spider_hits mediumint(9) NOT NULL default '0',
  PRIMARY KEY (log_id),
  KEY spider_lastvisit (spider_lastvisit)
);

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]------------------------------------------
#
define('CONFIG_TABLE', $table_prefix . 'config');

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('SPIDER_LOG_TABLE', $table_prefix . 'spider_log');

#
#-----[ OPEN ]------------------------------------------
#
language/lang_polish/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// BEGIN Spider Friendly
$lang['AASpider_Friendly'] = 'Spider Friendly';
$lang['Sitemap_Preview'] = 'Podgld mapy forum';
$lang['Forum_Preview'] = 'Podgld forum (robot)';
$lang['Search_Engines'] = 'Wyszukiwarki';
// END Spider Friendly

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_module_files.php

#
#-----[ FIND ]------------------------------------------
#
'admin_portal' => array($lang['AAGeneral'], $lang['portal_config']),

#
#-----[ AFTER, ADD ]------------------------------------------
#
	'admin_spider_friendly' => array($lang['AASpider_Friendly'], $lang['Configuration'], $lang['Search_Engines']),

#
#-----[ OPEN ]------------------------------------------
#
includes/sessions.php

#
#-----[ FIND ]------------------------------------------
#
	global $SID, $mrw;

#
#-----[ REPLACE WITH ]------------------------------------------
#
	global $SID, $sfc;

#
#-----[ FIND ]------------------------------------------
#
	if ( !defined('IN_ADMIN') && (!$mrw['rw_spider_only'] || ($mrw['rw_spider_only'] && $is_spider)) )

#
#-----[ REPLACE WITH ]------------------------------------------
#
	if ( !defined('IN_ADMIN') && $sfc['mod_rewrite_enabled'] && (!$sfc['spiders_only'] || ($sfc['spiders_only'] && $is_spider)) )

#
#-----[ OPEN ]------------------------------------------
#
common.php

#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/db.'.$phpEx);
include($phpbb_root_path . 'includes/rewrite_sessions.'.$phpEx);

#
#-----[ REPLACE WITH ]------------------------------------------
#
include($phpbb_root_path . 'includes/db.'.$phpEx);

#
#-----[ FIND ]------------------------------------------
#
// Mozilla navigation bar
// Default items that should be valid on all pages.
// Defined here and not in page_header.php so they can be redefined in the code
$nav_links['top'] = array ( 
	'url' => append_sid($phpbb_root_dir."index.".$phpEx),
	'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
$nav_links['search'] = array ( 
	'url' => append_sid($phpbb_root_dir."search.".$phpEx),
	'title' => $lang['Search']
);
$nav_links['help'] = array ( 
	'url' => append_sid($phpbb_root_dir."faq.".$phpEx),
	'title' => $lang['FAQ']
);
$nav_links['author'] = array ( 
	'url' => append_sid($phpbb_root_dir."memberlist.".$phpEx),
	'title' => $lang['Memberlist']
);

#
#-----[ REPLACE WITH ]------------------------------------------
#
// Mozilla navigation bar [moved]

#
#-----[ FIND ]------------------------------------------
#
	$board_config[$row['config_name']] = $row['config_value'];
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'includes/spider_friendly.'.$phpEx);

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Mozilla navigation bar
// Default items that should be valid on all pages.
// Defined here and not in page_header.php so they can be redefined in the code
$nav_links['top'] = array ( 
	'url' => append_sid($phpbb_root_dir."index.".$phpEx),
	'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
$nav_links['search'] = array ( 
	'url' => append_sid($phpbb_root_dir."search.".$phpEx),
	'title' => $lang['Search']
);
$nav_links['help'] = array ( 
	'url' => append_sid($phpbb_root_dir."faq.".$phpEx),
	'title' => $lang['FAQ']
);
$nav_links['author'] = array ( 
	'url' => append_sid($phpbb_root_dir."memberlist.".$phpEx),
	'title' => $lang['Memberlist']
);

#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php

#
#-----[ FIND ]------------------------------------------
#
if (!user_is_spider())
{
	// Obtain list of moderators of each forum

#
#-----[ REPLACE WITH ]------------------------------------------
#
	// Obtain list of moderators of each forum

#
#-----[ FIND ]------------------------------------------
#
		$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("profile


#
#-----[ IN-LINE FIND ]------------------------------------------
#
=

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 ( !user_is_spider() ) ?

#
#-----[ IN-LINE FIND ]------------------------------------------
#
;

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 : $row['username']

#
#-----[ FIND ]------------------------------------------
#
		$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp

#
#-----[ IN-LINE FIND ]------------------------------------------
#
=

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 ( !user_is_spider() ) ?

#
#-----[ IN-LINE FIND ]------------------------------------------
#
;

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 : $row['group_name']

#
#-----[ FIND ]------------------------------------------
#
}
else
{
	$forum_moderators = array();
}

#
#-----[ FIND ]------------------------------------------
#

	// Behave as per HTTP/1.1 spec for others

#
#-----[ AFTER, ADD ]------------------------------------------
#
	if( MRW_RELPATH && strpos($url, MRW_RELPATH) <= 1 )
	{
		$url = substr($url, strlen(MRW_RELPATH));
	}

#
#-----[ REPLACE WITH ]------------------------------------------
# usu znaleziony tekst
#



#
#-----[ CLOSE/SAVE ALL FILES ]------------------------------------------
# EoM