Created
August 12, 2010 10:49
-
-
Save stipsan/520724 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
######################################################## | |
# Author : Sebastian Grinke # | |
# Homepage : http://sebastiangrinke.info # | |
# E-Mail : [email protected] # | |
# Copyright : Copyright © 2008 - 2009 Sebastian Grinke # | |
# # | |
# Dieses Dokument darf verändert werden aber das # | |
# Copyright muss erhalten bleiben. # | |
######################################################## | |
?> | |
<?php defined('_JEXEC')or die('Restricted access');?> | |
<?php | |
$load_begin = microtime(true); | |
$document =& JFactory::getDocument(); | |
$absoluterpfad = str_replace(DS.'administrator', '', JPATH_BASE); | |
$absolutertemplatepfad = $absoluterpfad.DS.'templates'.DS.'k1ll3r8e_color'.DS; | |
$absoluterwebpfad = JURI::base(); | |
require_once($absolutertemplatepfad.'data'.DS.'classes'.DS.'template_class.php'); | |
$k8c_browser = k8c_template::k8c_get_browser(); | |
$k8c_ie = k8c_template::k8c_detect_ie_browser(); | |
foreach(k8c_template::k8c_get_config() as $config){ | |
$konst_val = html_entity_decode(stripslashes($config->konst_val)); | |
if(k8c_template::k8c_hide_menus()!=''){ | |
$k8c_menu_fix = explode('|',k8c_template::k8c_hide_menus()); | |
if($config->konstante=='k8c_conf_leftall' && !defined('k8c_conf_leftall')){define("$config->konstante","$k8c_menu_fix[0]");} | |
if($config->konstante=='k8c_conf_rightall' && !defined('k8c_conf_rightall')){define("$config->konstante","$k8c_menu_fix[1]");} | |
} | |
if($k8c_browser=='IE' && $config->konstante=='k8c_conf_toplogin' && $konst_val=='flybox' && !defined('k8c_conf_toplogin')){define("$config->konstante",'3');} | |
if($k8c_browser=='IE' && $config->konstante=='k8c_conf_laufschrift' && !defined('k8c_conf_laufschrift')){define("$config->konstante",'0');} | |
if(!defined("$config->konstante")){define("$config->konstante","$konst_val");} | |
} | |
if($this->language=='de-de'){k8c_template::k8c_include('data'.DS.'language'.DS.'german.php');} | |
else{k8c_template::k8c_include('data'.DS.'language'.DS.'english.php');} | |
if(k8c_conf_firewall=='1'){k8c_template::k8c_include('data'.DS.'functions'.DS.'firewall.php');} | |
if(k8c_conf_referercheck=='1'){k8c_template::k8c_include('data'.DS.'functions'.DS.'referercheck.php');} | |
if(k8c_conf_bot_spidercheck=='1'){k8c_template::k8c_include('data'.DS.'functions'.DS.'bot_spidercheck.php');} | |
if(preg_match('/[1-2]/',k8c_conf_user_counter)){k8c_template::k8c_include('data'.DS.'functions'.DS.'usercounter.php');} | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language;?>" > | |
<head> | |
<jdoc:include type="head" /> | |
<?php | |
$document->addScriptDeclaration(k8c_template::define_js_vars()); | |
$document->addScript($absoluterwebpfad.'templates/k1ll3r8e_color/data/js/general.js'); | |
if($k8c_browser!='OP'){$document->addScript($absoluterwebpfad.'templates/k1ll3r8e_color/data/js/fontswitcher.js');} | |
if(k8c_conf_bookmarks=='1'){$document->addScript($absoluterwebpfad.'templates/k1ll3r8e_color/data/js/bookmark.js');} | |
if($k8c_browser!='IE' && $k8c_browser!='SF'){$document->addScript($absoluterwebpfad.'templates/k1ll3r8e_color/data/js/styleswitcher.js');} | |
if(k8c_conf_rss=='1'){k8c_template::k8c_include('data'.DS.'layout'.DS.'includes'.DS.'rss.php');} | |
if(k8c_conf_google_verification=='1'){echo '<meta name="google-site-verification" content="'.stripslashes(k8c_conf_google_verification_code).'" />';} | |
if(k8c_conf_shortcut=='1'){echo '<link rel="shortcut icon" href="'.$absoluterwebpfad.'templates/k1ll3r8e_color/images/uploaded/favicon.ico" />';} | |
$document->addStyleSheet($absoluterwebpfad.'templates/k1ll3r8e_color/css/template_css.css'); | |
k8c_template::k8c_include('css'.DS.'styles.php'); | |
k8c_template::k8c_include('css'.DS.'css_define.php'); | |
?> | |
</head> | |
<?php | |
if(!isset($_COOKIE['k8c_browser_dl']) && $k8c_browser=='unknown' && k8c_conf_browser_dl=='1'){setcookie('k8c_browser_dl', 'Im a trigger', time()+(60*60));echo '<body onload="open_browser_dl();">';} | |
else {echo '<body>';} | |
if($k8c_ie=='IE7'){echo '<center><div class="ie_update">'._k8c_frontend_not_supported_browser_1.'</div></center>';} | |
if(k8c_conf_bot_spider_selfblocker=='1'){echo '<a href="'.$absoluterwebpfad.'templates/k1ll3r8e_color/data/"><img src="'.$absoluterwebpfad.'templates/k1ll3r8e_color/images/admin/clickhere.png" border="0" /></a>';} | |
if($k8c_browser!='IE' && k8c_conf_toplogin!='taskbar'){k8c_template::k8c_include('data'.DS.'layout'.DS.'includes'.DS.'sitemenu.php');} | |
if(k8c_conf_toplogin=='flybox' || k8c_conf_toplogin=='taskbar'){k8c_template::k8c_include('data'.DS.'layout'.DS.'includes'.DS.'login.php');} | |
if(preg_match('/[1-6]/',k8c_conf_layout)){k8c_template::k8c_include('data'.DS.'layout'.DS.'layouts'.DS.'layout_'.k8c_conf_layout.'.php');} | |
if(!isset($_COOKIE['k8c_ad_box']) && k8c_conf_ad_box=='1'){ | |
if(preg_match('/[1-3]/',k8c_conf_layout_ad_box)){k8c_template::k8c_include('data'.DS.'layout'.DS.'dhtml'.DS.'ad_box_'.k8c_conf_layout_ad_box.'.php');} | |
} | |
if($k8c_browser!='OP'){echo '<script language="JavaScript" type="text/javascript">init_FontSize('.k8c_conf_basis_font_size.',"px","1");</script>';} | |
if(k8c_conf_searchwords=='1'){ | |
echo '<div width="'.k8c_conf_body_W.'" style="color:transparent;font-size:1px;text-align:center;">'; | |
$searchwords = k8c_template::k8c_get_lists(); | |
foreach($searchwords as $searchword){ | |
if($searchword->id=='3'){echo html_entity_decode(stripslashes($searchword->list_val));break;} | |
} | |
echo '</div>'; | |
} | |
if(k8c_conf_generate_time=='1'){ | |
$load_end = microtime(true); | |
echo '<div style="font-size:10px;text-align:center;" width="'.k8c_conf_body_W.'">'._k8c_template_footer_loadtime_server.' '.substr($load_end - $load_begin,0,6).' '._k8c_template_footer_loadtime_server_1; | |
echo '<script language="JavaScript" type="text/javascript">'; | |
echo 'var load_end = microtime(true);'; | |
echo "document.write(' "._k8c_template_footer_loadtime_browser." '+substr(load_end-load_start,0,6)+' "._k8c_template_footer_loadtime_browser_1."');"; | |
echo '</script>'; | |
echo '</div>'; | |
} | |
if(k8c_conf_toplogin=='taskbar'){echo '<div class="spacer40"></div>';} | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment