Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /home/extreamr/public_html/site/inc/config.php:1) in /public_html/site/inc/head.php on line 60
/public_html/site/inc/config.php
Code: Select all
<?
define('MYSQL_HOST','localhost');
define('MYSQL_USER','extreamr_mafiotu'); // MYSQL User
define('MYSQL_PASS','xxx'); // MYSQL Password
define('MYSQL_DATABASE','extreamr_site'); // MYSQL DATENBANK
define('SHOW_DATA_MAX','25');
define('LH_MAIN_HTTP','http://localhost:8080/');
define('LH_USER_PIC_PFAD','Upload/UserPics');
define('LH_USER_PIC_WWW',LH_MAIN_HTTP.'Upload/UserPics/');
define('LH_USER_PIC_WIDTH','90');
define('LH_USER_PIC_HEIGHT','110');
define('LH_USER_AVATAR_PFAD','Upload/Avatar');
define('LH_USER_AVATAR_WWW',LH_MAIN_HTTP.'Upload/Avatar/');
define('LH_USER_AVATAR_WIDTH','100');
define('LH_USER_AVATAR_HEIGHT','100');
define('LH_SYSTEM_NAME','IN ESPORTS');
$espcms_main_http = "http://localhost:8080/";
$espcms_user_www_pfad = $espcms_main_http."Upload/UserPics/";
$espcms_avatar_pfad="Upload/Avatar";
$espcms_avatar_www_pfad = $espcms_main_http."Upload/Avatar/";
$espcms_profile_pic['width'] = "90";
$espcms_profile_pic['height'] = "110";
$espcms_profile_pic_small['width'] = "90";
$espcms_profile_pic_small['height'] = "110";
$espcms_profile_pic_default = "Images/content/no_picture.gif";
$espcms_profile_avatar['width'] = LH_USER_AVATAR_WIDTH;
$espcms_profile_avatar['height'] = LH_USER_AVATAR_HEIGHT;
$espcms_profile_avatar_default = "Images/content/no_picture.gif";
$espcms_max_pics = "100";
$espcms_max_alben = "3";
$espcms_max_size = "4096";
$espcms_allowed_endungen = array("jpg","JPG","jpeg","JPEG","png","PNG","gif","GIF");
$espcms_gallery_pfad = "Upload/UserGallery/";
$c_b_c = "#FFFFFF";
$bbcode_image_max_width = "400";
$bbcode_image_max_height = "600";
$bbcode_erlaubte_endungen = Array("jpg","jpeg","gif","png","bmp");
$bbcode_erlaubte_endungen_typ = Array("1","2","3","4");
$bbcode_autoresize = true;
$bbcode_image_security_level_1 = true; // Es wird �berpr�ft ob die Endung erlaubt ist
$bbcode_image_security_level_2 = false; // Sicherheitsstufe 1 muss aktiviert sein, und es wird dann �berpr�ft ob es sich um einen erlaubten Bildtypen handelt, anhand einer Typ bestimmung
$bbcode_phpcode_border = "#000000";
$bbcode_phpcode_bg1 = "#EEEEEE";
$life_h_config['special_intervall_zeit'] = "5000"; // Angaben in Millisekunden!
$life_h_config['special_intervall_start_stop'] = "start"; // Enter "start" oder "stop" um zu bestimen ob der Bildwelchel schon gestartet sein soll oder nicht!
$forum_icon['topic'] = "Images/board/home.jpg";
$forum_icon['topic_new'] = "Images/board/world.jpg";
$forum_icon['thread_new'] = "Images/board/answere.jpg";
$forum_icon['close'] = "Images/board/closed.jpg";
$forum_icon['answere'] = "Images/board/answere.jpg";
$forum_icon['delete'] = "Images/board/delete.jpg";
$forum_icon['edit'] = "Images/board/edit.jpg";
$forum_icon['quote'] = "Images/board/refresh.jpg";
//Forum
$show_avatar = true;
$show_user_flag = true;
$show_signatur = true;
$show_ranking = true;
$show_anzahl_post = true;
$show_registerd = true;
$show_last_post = true;
$show_button_email = true;
$show_button_pms = true;
$show_button_gb = true;
$show_button_warnen = true;
$show_button_sperren = true;
$admin_wortschutz = false;
?>
Code: Select all
<?
session_start();
require_once("inc/mysql.php");
$db = new MyDb();
require_once("inc/function.php");
include("inc/config.php");
require_once("inc/html_elm.php");
require_once("inc/bbcode.php");
require_once("inc/mysql_config_read.php");
require_once("inc/stats.php");
require_once("lang/de.php");
// Wenn $_GET['logout'] gesetzt ist dann loesche $_SESSION['success']
if($_GET['a'] == "logout")
{
// Wenn $_COOKIE['login_cookie'] gesetzt ist dann loesche Cookie
if(isset($_COOKIE['login_cookie']))
{
setcookie("login_cookie","",time()-3600);
}
// Loesche SESSION['success']
unset($_SESSION['success']);
unset($_SESSION['login']);
unset($_SESSION['id']);
$_COOKIE['login_cookie'] = false;
session_destroy();
$_SESSION['id'] = false;
//Leite weiter zur index.php
//header("Location: index.php?login_try=1");
}
// Wenn Sumbit gepostet wurde
if($_GET['a'] == "login")
{
// Wenn Cookie setzen "aktiv"
$setcookie = "set";
if($setcookie == "set") {
if(login($_POST['username'],$_POST['password']) == false)
{
// Wenn $_COOKIE['login_cookie'] gesetzt ist dann loesche Cookie
if(isset($_COOKIE['login_cookie'])) setcookie("login_cookie",0,time()-3600);
// Loesche SESSION['success']
unset($_SESSION['success']);
unset($_SESSION['login']);
unset($_SESSION['id']);
}
}
else
{
if(login($_POST['username'],$_POST['password'],2,1) == false)
{
// Wenn $_COOKIE['login_cookie'] gesetzt ist dann loesche Cookie
if(isset($_COOKIE['login_cookie'])) setcookie("login_cookie",0,time()-3600);
// Loesche SESSION['success']
unset($_SESSION['success']);
unset($_SESSION['login']);
unset($_SESSION['id']);
}
}
header("Location: index.php");
die();
}
//Bets schließen
bets_schliessen();
if(cookie_auth())
{
last_login();
}
//reset_lostpw();
if(($life_h_config['set_wartung'] == "true") OR security($_GET['section'] == "wartung"))
{
include "inc/wartung.php";
espcms_call_stats();
die();
}
?>