public static function generateWebmasterTools() { $google=array(); $google['webmasterTools']=Configuration::getInstance()->get('Google', 'webmasterTools'); $theme = Configuration::getInstance()->get('Design', 'theme'); $tp = new templateParser(PATH."FrontEnd/".$theme."/snippets/google_webmaster_tools.htm"); if (Server::isLocalServer()) return ""; if (empty($google['webmasterTools'])) return ''; else { $tp->parseTemplate($google); return $tp->display(); } }
public function __construct() { /* $this->host='db523.1und1.de'; $this->user='******'; $this->passwd='NHEhYC9g'; $this->dbname='db155195156'; */ $conf = Configuration::getInstance(); if (Server::isLocalServer()) { $this->host = $conf->get('Database', 'LocalHost'); $this->user = $conf->get('Database', 'LocalUser'); $this->passwd = $conf->get('Database', 'LocalPasswd'); $this->dbname = $conf->get('Database', 'LocalDB'); $this->DBMS = $conf->get('Database', 'LocalDBMS'); $this->locktable = $conf->get('Database', 'LocalLockTable'); } else { $this->host = $conf->get('Database', 'RemoteHost'); $this->user = $conf->get('Database', 'RemoteUser'); $this->passwd = $conf->get('Database', 'RemotePasswd'); $this->dbname = $conf->get('Database', 'RemoteDB'); $this->DBMS = $conf->get('Database', 'RemoteDBMS'); $this->locktable = $conf->get('Database', 'RemoteLockTable'); } //$this->dbname='avaris_19_9_06'; //Data for the Article-Tables $config = Configuration::getInstance(); //10.04.2007 MG $this->prefix = $config->get('Database', 'DBPrefix'); //10.04.2007 MG $this->articleTable = $this->prefix . 'articles'; //10.04.2007 MG $this->descriptionTable = $this->prefix . 'article_descriptions'; //10.04.2007 MG $this->parentIDTable = $this->prefix . 'article_to_parent_ids'; //10.04.2007 MG $this->archiveTable = $this->prefix . 'article_archive'; }
public function __construct() { $this->data['lokal'] = Server::isLocalServer() ? 'LOKAL ' : ''; $this->data['navi_local_remote'] = Server::isLocalServer() ? 'local_navi' : 'navi'; }