Livemonitor! /* $message = $_SERVER['REQUEST_URI']; $repl_f = array("","","","","","",""); $repl_t = array("ä","ö","ü","Ä","Ö","Ü","ß"); $message = str_replace($repl_f,$repl_t,$message); $url = 'http://livemonitor.kkonzept.de/api/log.xml'; $fields = array( 'domain' => urlencode("kostenlos-sexkontakte.de"), 'type' => urlencode("$type"), 'username' => (isset($user['name']) && !empty($user['name']) ? urlencode($user['name']) : ""), 'u_id' => (isset($user['u_id']) && !empty($user['u_id']) ? $user['u_id'] : ""), 'msg' => urlencode("$message"), 'ip' => (function_exists("get_ip") ? get_ip() : (isset($_SERVER['REMOTE_ADDR']) && !empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "n/a")), 'host' => (function_exists("get_host") ? get_host() : (isset($_SERVER['REMOTE_ADDR']) && !empty($_SERVER['REMOTE_ADDR']) ? gethostbyaddr($_SERVER['REMOTE_ADDR']) : "n/a")), 'referer' => (isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "n/a"), 'useragent' => (isset($_SERVER['HTTP_USER_AGENT']) && !empty($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "n/a"), 'request_uri' => (isset($_SERVER['REQUEST_URI']) && !empty($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : "n/a"), 'accept_language' => (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : "n/a") ); $fields_string = ""; foreach ($fields as $key=>$value) { $fields_string = (isset($fields_string) ? $fields_string : "").$key."=".$value."&"; } rtrim($fields_string, '&'); $ch = curl_init(); // open connection curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch,CURLOPT_USERAGENT, "Mozilla/5.0 Livemonitor"); curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); //execute post curl_close($ch); //close connection ob_clean(); */ // < Livemonitor! if ($config['smarty'] == true) { // Wenn Smarty verwendet werden soll $smarty = new Smarty; // Neue Smarty-Instanz starten $smarty->compile_check = true; // Compiler checken? $smarty->debugging = false; // Debug-Modus? $smarty->assign('config', $config); // Variablen an Smarty uebergeben $smarty->assign('iskk', iskk()); // Variablen an Smarty uebergeben $smarty->assign('iskk_pk', iskk_pk()); // Variablen an Smarty uebergeben $smarty->assign('iskk_cs', iskk_sc()); // Variablen an Smarty uebergeben $smarty->assign('nav', $nav); // Variablen an Smarty uebergeben $smarty->assign('s1', $s1); // Variablen an Smarty uebergeben $smarty->assign('s2', $s2); // Variablen an Smarty uebergeben if (isset($force_theme)) { $smarty->assign('force_theme', $force_theme); } // Variablen an Smarty uebergeben else { $smarty->assign('force_theme', ""); } // Variablen an Smarty uebergeben $template = substr($REQUEST_URI,strrpos($REQUEST_URI,"/")+1,strpos($REQUEST_URI,".html")-1); $smarty->assign('template', $template); // Variablen an Smarty uebergeben if (!isset($tpl)) { // Wenn kein Templage gegeben $smarty->assign('template', 'kostenlose-sexkontakte'); // Variablen an Smarty uebergeben $tpl = "kostenlose-sexkontakte"; // Template festlegen } if (!$smarty->template_exists($tpl.".tpl")) { $tpl = "404"; } // Alternativ-Template, wenn 404 $smarty->display($tpl.'.tpl'); // Smarty mit Template ausfuehren } else { // Wenn normales System verwendet werden soll $content = "kostenlose-sexkontakte"; // Content vorgeben include "content.php"; // Content anzeigen } ?>