<?php
global $BTPL_module, $cbOption;
extract($_REQUEST);
// set your path to Content*Builder CMS here ....
$path["cb"] = "";
// if you decide not to set a path to contentbuilder cms ... we will guess your path
$pathGuessings = array($rel."contentbuildersmart/",$rel."ContentBuilderSmart/",$rel."contentbuilder/",$rel."cb/");
if (! $path['cb']) {
foreach ( $pathGuessings as $tmpPath ) {
if (is_dir($tmpPath) ) {
$path['cb'] = $tmpPath;
break;
}
}
}
if (! is_dir($path['cb'])) {
echo "Cannot find directory '" . $path['cb'] . "'. Please edit value '\$path['cb']' in file 'prepend.php'";
exit;
}
// set your default Website-skin here ....
$path['defaultSkin'] = "default/";
require_once($path['cb']."root.inc");
if (is_readable($path['cb'].$cbDirInclude.'db.php')){
require_once($path['cb'].$cbDirInclude.'db.php');
}else{
header("Location: http://".$_SERVER["HTTP_HOST"].substr($PHP_SELF ,0,strrpos($PHP_SELF ,"/")+1).$path['cb'].$cbSetupUrl);
}
require_once($path['cb'].$cbDirLib.'CB_option.class.php');
require_once($path['cb'].$cbDirLib.'smarty/Smarty.class.php');
require_once($path['cb'].$cbDirLib."CB_NestedSet.class.php");
require_once($rel."libraries/logInfo.class.php");
require_once($rel."libraries/BTPL_module.class.php");
require_once($rel."languages.inc.php");
$BTPL_module = new BTPL_module();
if(isset($rel)) {
$BTPL_module->setRelPath($rel);
}
$BTPL_module->setCBPath($path['cb']);
$BTPL_log = new CB_statistic();
$cbOption = new CBOption();
$cbOption->setModule("system");
$cbOption->getOptionList();
?>