$SiteSettings = array (
'Licence' => array(
'SerialNumber' => 'CMSV2/SKL/2010/GEMEENTEHEERDE'
),
'SystemDatabase' => array(
'Location' => 'localhost',
'Username' => 'cmsv2depluheerde',
'Password' => '34frh',
'Database' => 'depluheerde',
),
'Templates' => array(
'HomePage.php' => array(
'Title' => 'Standaard pagina indeling',
'TKDocument' => array(
'Documents' => array(
'' => 'Pagina inhoud',
),
),
),
'HomePageVrijwilligers.php' => array(
'Title' => 'Vrijwilligers',
'TKDocument' => array(
'Documents' => array(
'' => 'Pagina inhoud',
),
),
),
'HomePageMantelzorg.php' => array(
'Title' => 'Mantelzorg',
'TKDocument' => array(
'Documents' => array(
'' => 'Pagina inhoud',
),
),
),
),
'Pages' => array('BlankPage.php'=> Array('Blank')),
'RTEStyles' => array(
'RTEDefault' => 'Default font',
'RTETitle' => 'Title',
'RTESubTitle' => 'Sub title',
),
'RTEDefaultWidth' => 550,
'PredefinedTreeItems' => array(
array(
'TreeID' => 2,
'LangTreeID' => 2,
'LangCode' => 'NL',
'TreeKey' => 'HOME',
'Title' => 'Home',
'AdminTitle' => 'Home NL',
)
),
'AvailableLanguages' => array(
'NL'
),
'DefaultLanguage' => 'NL',
'ModuleSettings' => array(
'General' => array(
// Add for all LangTrees
2 => array(
'SiteTitle' => 'De Plu Heerde',
'MailFrom' => 'noreply@cmsv2.com',
'MailFromName' => 'CMSv2 Website',
),
),
'TKComponenten' => array(
'Categories' => array(
'R' => 'Rechts',
),
'LookupTreeID' => true,
),
// Watch this on old installations, if this number is lower then the previous, it will erase all not neccesary columns
'TKTreeImages' => array(
'AvailableImages' => 1,
'EnableTransition' => false,
'Categories' => array(
'Algemeen' => 'Algemeen'
)
),
'TKForm' => array(
'MailAttachments' => true,
),
'TKFotoAlbum' => array(
'ImageWidth' => 600,
'ImageHeight' => 400,
'ThumbWidth' => 100,
'ThumbHeight' => 100,
),
'TKTree' => array(
/* Set to true if system should allow restricted items */
'UseInternal' => true,
/* Set to true if system should use Language Switch System */
'UseLanguageSwitch' => true,
/* Set to true if module data can be indexed by search engine */
'UseSearchParams' => true,
/* Set to true if system should use RewriteURL system */
'UseRewriteURL' => true,
/* Set to true if system should use placeholder system */
'UsePlaceHolders' => false,
/* Set to true to enable option to mark child pages to be expanded in the navigation template */
'UseDefaultExpanded' => false,
/* Set to underscore if needed for upgraded sites with existing underscore URL's. Default is dash. */
'ConvertStringSeperator' => 'dash',
),
),
);
?>
/**
* MySQLDatabase Driver
* Object for handling database querys
*
* @version 1.2
* @copyright 2004-2010
*
* @modified v1.1 PK 20-09-2006: Added Language support
* @modified v1.2 PK 02-11-2006: Fixed Language on PORTAL_INSTALL
*
**/
class TKMySQLDatabase {
var $Dbptr;
var $Location;
var $Username;
var $Password;
var $Database;
var $LastError;
var $LastErrorCode;
var $LastErrorDescription;
var $ExitOnError;
var $QueryCount;
var $QueryLog;
function TKMySQLDatabase () {
$this->ExitOnError = true;
$this->QueryCount = 0;
$this->QueryLog = false;
}
function Init ($Waardes) {
$this->Location = $Waardes['Location'];
$this->Username = $Waardes['Username'];
$this->Password = $Waardes['Password'];
$this->Database = $Waardes['Database'];
}
function Connect () {
if (!($this->Dbptr = @mysql_pconnect($this->Location, $this->Username, $this->Password))) {
if($this->ExitOnError) {
echo mysql_error(); exit;
} else {
return false;
}
} else {
if (!@mysql_select_db($this->Database, $this->Dbptr)) {
if($this->ExitOnError) {
echo mysql_error(); exit;
} else {
return false;
}
} else {
$this->Query("SET NAMES utf8 COLLATE utf8_general_ci");
return true;
}
}
}
function Query ($Query) {
$this->LastError = false;
$this->LastErrorCode = "";
$this->LastErrorDescription = "";
$this->QueryCount++;
if (!$Result = mysql_query($Query, $this->Dbptr)) {
$this->LastErrorCode = mysql_errno();
$this->LastErrorDescription = mysql_error();
if($this->ExitOnError) {
echo("\n\r\n\r\n\r
".$this->LastErrorCode.":".$this->LastErrorDescription."
\n\n\n\r".$Query);
exit;
} else {
return false;
}
}
if($this->QueryLog) mysql_query("INSERT INTO querys (SQL, TIME) VALUES ('".addslashes($Query)."', NOW());", $this->Dbptr);
return $Result;
}
function QueryNoExit ($Query) {
$this->LastError = false;
$this->LastErrorCode = "";
$this->LastErrorDescription = "";
$this->QueryCount++;
if (!$Result = mysql_query($Query, $this->Dbptr)) {
$this->LastErrorCode = mysql_errno();
$this->LastErrorDescription = mysql_error();
return false;
}
if($this->QueryLog) mysql_query("INSERT INTO querys (SQL, TIME) VALUES ('".addslashes($query)."', '".$this->num."');", $this->dbptr);
return $Result;
}
function FetchArray($Result) {
return mysql_fetch_array($Result);
}
function FetchObject($Result) {
return mysql_fetch_object($Result);
}
function NumRows($Result) {
return mysql_num_rows($Result);
}
function NumFields($Result) {
return mysql_num_fields($Result);
}
function FieldType($e1, $e2) {
return mysql_field_type($e1, $e2);
}
function FreeResult($Result) {
return mysql_free_result($Result);
}
function InsertId($Result="") {
return mysql_insert_id();
}
function RowByQuery($Query) {
$Result = $this->Query($Query);
if($Result) {
$Row = $this->FetchArray($Result);
$this->FreeResult($Result);
} else {
$Row = false;
}
return $Row;
}
function AffectedRows($Result) {
return mysql_affected_rows($this->Dbptr);
}
function Close() {
return mysql_close($this->Dbptr);
}
function ListTables() {
$Result = mysql_list_tables ($this->Database);
$TableNames = array();
$i = 0;
while ($i < @mysql_num_rows ($Result)) {
$TableNames[$i] = mysql_tablename ($Result, $i);
$i++;
}
return $TableNames;
}
}
?>