array( 'SerialNumber' => 'CMSV2/ST/2007/WORLDWIDECAM' ), 'SystemDatabase' => array( 'Location' => 'localhost', 'Username' => 'worldwidecam', 'Password' => 'wwc18er', 'Database' => 'worldwidecam', ), /* array( 'Location' => 'localhost', 'Username' => 'root', 'Password' => 'tlobi2005', 'Database' => 'worldwidecam', ), */ 'Templates' => array( 'HomePage.php' => array( 'Title' => 'Standaard pagina', 'TKDocument' => array( 'Documents' => array( '' => 'Pagina inhoud', ), ), ), 'VervolgPage.php' => array( 'Title' => 'Pagina zonder rechterkolom', 'TKDocument' => array( 'Documents' => array( '' => 'Pagina inhoud', ), ), ), 'HomePageVoorbeeld.php' => array( 'Title' => 'Standaard pagina PW Golf', 'TKDocument' => array( 'Documents' => array( '' => 'Pagina inhoud', ), ), ), 'VervolgPageVoorbeeld.php' => array( 'Title' => 'PW Golf Pagina zonder rechterkolom', 'TKDocument' => array( 'Documents' => array( '' => 'Pagina inhoud', ), ), ), 'HomePageTVVS.php' => array( 'Title' => 'Standaard pagina TVVS', 'TKDocument' => array( 'Documents' => array( '' => 'Pagina inhoud', ), ), ), 'VervolgPageTVVS.php' => array( 'Title' => 'TVVS Pagina zonder rechterkolom', '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' => 'Homepage', ), array( 'TreeID' => 19, 'LangTreeID' => 3, 'LangCode' => 'NL', 'TreeKey' => 'HOME-PWGOLF', 'Title' => 'Home', 'AdminTitle' => 'Homepage PWGolf', ), array( 'TreeID' => 100, 'LangTreeID' => 4, 'LangCode' => 'NL', 'TreeKey' => 'TVVS', 'Title' => 'TVVS', 'AdminTitle' => 'Homepage TVVS', ), ), 'AvailableLanguages' => array( 'NL', ), 'DefaultLanguage' => 'NL', 'ModuleSettings' => array( 'General' => array( // Add for all LangTrees 2 => array( 'SiteTitle' => 'World Wide Cams', 'MailFrom' => 'worldwidecams@starsale.nl', 'MailFromName' => 'World Wide Cams', ), ), 'TKComponenten' => array( 'Categories' => array( 'L' => 'Links', 'R' => 'Rechts', 'PL' => 'PW Golf Links', ), ), // Watch this on old installations, if this number is lower then the previous, it will erase all not neccesary columns 'TKTreeImages' => array( 'AvailableImages' => 5, 'EnableTransition' => false, ), 'TKForm' => array( 'MailAttachments' => true, ), /* Deprecated, moved to General */ 'Mail' => array( 'From' => 'no-reply@worldwidecams.nl', 'FromName' => 'World Wide Cams', ), 'TKFotoAlbum' => array( 'ImageWidth' => 400, 'ImageHeight' => 300, 'ThumbWidth' => 125, 'ThumbHeight' => 93, ), 'TKTree' => array( /* Set to true if system should allow restricted items */ 'UseInternal' => true, /* Set to true if system should use Language Switch System */ 'UseLanguageSwitch' => false, /* Set to true if module data can be indexed by search engine */ 'UseSearchParams' => false, /* Set to true if system should use placeholder system */ 'UsePlaceHolders' => false, /* Set to true if system should use RewriteURL system */ 'UseRewriteURL' => true, /* Set to true if menu items are always expanded by default in the page template */ 'UseDefaultExpanded' => false, /* Set to dash on new sites or if the customer really needs/wants it. Else set to underscore. */ 'ConvertStringSeperator' => 'dash', ), 'TKShop' => array( 'invoiceString' => "YYYY-MM-XXXXXXXXXXXXX", 'inlogcode' => "", 'Refrnr' => "", 'Extraref' => "", 'project' => "", 'debNummer' => "", 'afhaalbezorg' => "B", //bezorg 'adrescode' => "001", 'NameOne' => "", 'NameTwo' => "", 'street' => "", 'city' => "", 'zipcode' => "", 'housenumber' => "", 'phone' => "", 'Gafleverdatum' => date("d-m-Y",time()), //"11-11-2009 'levconditie' => "", 'levinstruct1' => "", 'levinstruct2' => "", 'Orderregels' => "", 'ConfigProductCodes' => "standalone" //standalone or relative ), 'TKShopOrder' => array( 'EnableExportICM' => false, 'EnableExportCSV' => false, ), ), ); ?>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; } } ?>