<?php
// default.sef.php : custom.configuration file for sh404SEF
// 1.3.9 - build_357 - Joomla - <a href="http://extensions.siliana.com/">extensions.Siliana.com/</a>

// DO NOT REMOVE THIS LINE :
if (!defined('_VALID_MOS')) die('Direct Access to this location is not allowed.');
// DO NOT REMOVE THIS LINE

// compatibility with past version. Set to 0 so that
// section is not added in (table) category links. This was a bug in past versions
// as sh404SEF would not insert section, even if ShowSection param was set to Yes
$shDefaultParams['SH404SEF_COMPAT_SHOW_SECTION_IN_CAT_LINKS'] = 1;

// set to 1 if using other than port 80 for http
$shDefaultParams['sh404SEF_USE_NON_STANDARD_PORT'] = 0;

// if not 0, will be used instead of Homepage itemid to display 404 error page
$shDefaultParams['sh404SEF_PAGE_NOT_FOUND_FORCED_ITEMID'] = 0;

// if not 0, sh404SEF will do a 301 redirect from http://yoursite.com/index.php
// or http://yoursite.com/index.php?lang=xx to http://yoursite.com/
// this may not work on some web servers, which transform yoursite.com into
// yoursite.com/index.php, thus creating and endless loop. If your server does
// that, set this param to 0
$shDefaultParams['sh404SEF_REDIRECT_IF_INDEX_PHP'] = 1;

// if superadmin logged in, force non-sef, for testing and setting up purpose
$shDefaultParams['sh404SEF_NON_SEF_IF_SUPERADMIN'] = 0;

// set to 1 to prevent 303 auto redirect based on user language
// use with care, will prevent language switch to work for users without javascript
$shDefaultParams['sh404SEF_DE_ACTIVATE_LANG_AUTO_REDIRECT'] = 1;

// if 1, SEF URLs will only be built for installed components.
$shDefaultParams['sh404SEF_CHECK_COMP_IS_INSTALLED'] = 1;

// if 1, all outbound links on page will be reached through a redirect
// to avoid page rank leakage
$shDefaultParams['sh404SEF_REDIRECT_OUTBOUND_LINKS'] = 0;

// time to live for url cache in hours : default = 168h = 1 week
// Set to 0 to keep cache forever
$shDefaultParams['SH404SEF_URL_CACHE_TTL'] = 168;

// number of cache write before checking cache TTL.
$shDefaultParams['SH404SEF_URL_CACHE_WRITES_TO_CHECK_TTL'] = 1000;

// if set to 1, an email will be send to site admin when an attack is logged
// if the site is live, you could be drowning in email rapidly !!!
$shDefaultParams['sh404SEF_SEC_MAIL_ATTACKS_TO_ADMIN'] = 0;

$shDefaultParams['sh404SEF_SEC_EMAIL_TO_ADMIN_SUBJECT'] = 'Your site %sh404SEF_404_SITE_NAME% was subject to an attack';

$shDefaultParams['sh404SEF_SEC_EMAIL_TO_ADMIN_BODY'] = 'Hello !

This is sh404SEF security component, running at your site (%sh404SEF_404_SITE_URL%).

I have just blocked an attack on your site. Please check details below : 
------------------------------------------------------------------------
%sh404SEF_404_ATTACK_DETAILS%
------------------------------------------------------------------------

Thanks for using sh404SEF!

';

// number of pages between checks to remove old log files
// if 1, we check at every page request
$shDefaultParams['SH404SEF_PAGES_TO_CLEAN_LOGS'] = 10000;

// SECTION : Virtuemart plugin parameters ----------------------------------------------------------------------------

// set to 1 for products to have requested category name included in url
// useful if some products are in more than one category. By default (param set to 0),
// only one category will be used. If set to 1, all categories can be used
$shDefaultParams['SH_VM_ALLOW_PRODUCTS_IN_MULTIPLE_CATS'] = 1;

// SECTION : Deeppockets plugin parameters -----------------------------------------------------------------

// set to 0 to have no cat inserted  /234-ContentTitle/
// set to 1 to have only last cat added /123-CatTitle/234-ContentTitle/
// set to 2 to have all nested cats inserted /456-Cat1Title/123-Cat2Title/234-ContentTitle/
$shDefaultParams['SH404SEF_DP_INSERT_ALL_CATEGORIES'] = 2;

// if non-zero, id of each cat will be inserted in the url /123-CatTitle/
$shDefaultParams['SH404SEF_DP_INSERT_CAT_ID'] = 0;

// if non-zero, id of each content element will be inserted in url /234-ContentTitle/
$shDefaultParams['SH404SEF_DP_INSERT_CONTENT_ID'] = 0;

// if non-zero, DP links to content element will be identical to those
// generated for Joomla regular content - usefull if this content can also be
// accessed outside of DP, to avoid duplicate content penalties
$shDefaultParams['SH404SEF_DP_USE_JOOMLA_URL'] = 0;

// SECTION : com_smf plugin parameters --------------------------------------------------------------------------
// set to 1 use simple URLs, without all details
$shDefaultParams['sh404SEF_SMF_PARAMS_SIMPLE_URLS'] = 0;

// prefix used in the DB for the SMF tables
$shDefaultParams['sh404SEF_SMF_PARAMS_TABLE_PREFIX'] = 'smf_';

// not used
$shDefaultParams['sh404SEF_SMF_PARAMS_ENABLE_STICKY'] = 0;

// SECTION : SOBI2 plugin parameters ----------------------------------------------------------------------------

// set to 1 to always include categories in SOBI2 entries
// details pages url
$shDefaultParams['sh404SEF_SOBI2_PARAMS_ALWAYS_INCLUDE_CATS'] = 0;

// set to 1 so that entry id is prepended to url
$shDefaultParams['sh404SEF_SOBI2_PARAMS_INCLUDE_ENTRY_ID'] = 0;

// set to 1 so that category id is prepended to category name
$shDefaultParams['sh404SEF_SOBI2_PARAMS_INCLUDE_CAT_ID'] = 0;

// SECTION : EXPERIMENTAL FEATURES - play at your own's risks ---------------------------------------------------

// set to 1 to have Joomla use xhtml ouput for the main component.
// you need to have Beez template installed (though not activated)
$shDefaultParams['sh404SEF_ENABLE_XHTML_OUTPUT'] = 0;
