<?php
#   Copyright by Thomas Bowe [Funjoy]
#   Support bbcode@phpline.de
#   link www.phpline.de
//> Hier werden die Einstellungen festgelegt.
##############################################################################################################
//> Verbindung mit der Datenbank herstellen.
	db_connect ();
	//> Buttons Informationen.
	$ButtonSql = db_query("SELECT 
								fnFormatB,fnFormatI,fnFormatU,fnFormatS,fnFormatEmph, 
								fnFormatColor,fnFormatSize,fnFormatUrl,fnFormatUrlAuto,fnFormatEmail,
								fnFormatLeft,fnFormatCenter,fnFormatRight,fnFormatSmilies,
								fnFormatList,fnFormatKtext,fnFormatImg,fnFormatScreen,fnFormatVideo,
								fnFormatPhp,fnFormatCss,fnFormatHtml,fnFormatCode,fnFormatQuote,fnFormatCountdown
							FROM
								prefix_bbcode_buttons
							WHERE
								fnButtonNr='1'");
	$boolButton = db_fetch_assoc($ButtonSql);
	
	//> Design Informationen.
	$DesignSql = db_query("SELECT
								 fcQuoteRandFarbe,fcQuoteTabelleBreite,fcQuoteSchriftfarbe,fcQuoteHintergrundfarbe,fcQuoteHintergrundfarbeIT,fcQuoteSchriftformatIT,fcQuoteSchriftfarbeIT,
								 fcBlockRandFarbe,fcBlockTabelleBreite,fcBlockSchriftfarbe,fcBlockHintergrundfarbe,fcBlockHintergrundfarbeIT,fcBlockSchriftfarbeIT,
								 fcKtextRandFarbe,fcKtextTabelleBreite,fcKtextRandFormat,
								 fcEmphHintergrundfarbe,fcEmphSchriftfarbe,
								 fcCountdownRandFarbe,fcCountdownTabelleBreite,fcCountdownSchriftfarbe,fcCountdownSchriftformat,fnCountdownSchriftsize
							 FROM
							 	prefix_bbcode_design
							 WHERE
								fnDesignNr='1'");
	$strDesign = db_fetch_assoc($DesignSql);
	
	//> Config Informationen.
	$ConfigSql = db_query("SELECT
								  fnYoutubeBreite,fnYoutubeHoehe,fcYoutubeHintergrundfarbe,
								  fnGoogleBreite,fnGoogleHoehe,fcGoogleHintergrundfarbe,
								  fnMyvideoBreite,fnMyvideoHoehe,fcMyvideoHintergrundfarbe,
								  fnSizeMax,fnUrlMaxLaenge,fnWortMaxLaenge,
								  fnImgMaxBreite,fnImgMaxHoehe,fnScreenMaxBreite,fnScreenMaxHoehe 	 
							 FROM
							 	prefix_bbcode_config
							 WHERE
								fnConfigNr='1'");
	$objConfig = db_fetch_assoc($ConfigSql);
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration für Zitat- Funktion (Quote)
	$info['QuoteRandFarbe'] = $strDesign['fcQuoteRandFarbe'];						#--> Rand (Border) Farbe.
	$info['QuoteTabelleBreite'] = $strDesign['fcQuoteTabelleBreite'];				#--> Tabellenbreite.
	$info['QuoteSchriftfarbe'] = $strDesign['fcQuoteSchriftfarbe'];					#--> Schriftfarbe für die Überschrift.
	$info['QuoteHintergrundfarbe'] = $strDesign['fcQuoteHintergrundfarbe'];			#--> Hintergrundfarbe für die Überschrift.
	$info['QuoteHintergrundfarbeIT'] = $strDesign['fcQuoteHintergrundfarbeIT'];		#--> Hintergrundfabre für den Inhalt.
	$info['QuoteSchriftformatIT'] = $strDesign['fcQuoteSchriftformatIT'];			#--> Font-Style für den Inhalt. (Italic = Kursiv)
	$info['QuoteSchriftfarbeIT'] = $strDesign['fcQuoteSchriftfarbeIT'];				#--> Schriftfarbe für den Inhalt.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration für die Code- Blocks (Code, Html CSS und PHP)
	$info['BlockRandFarbe'] = $strDesign['fcBlockRandFarbe'];						#--> Rand (Border) Farbe.
	$info['BlockTabelleBreite'] = $strDesign['fcBlockTabelleBreite'];				#--> Tabellenbreite.
	$info['BlockSchriftfarbe'] = $strDesign['fcBlockSchriftfarbe'];					#--> Schriftfarbe für die Überschrift.
	$info['BlockHintergrundfarbe'] = $strDesign['fcBlockHintergrundfarbe'];			#--> Hintergrundfarbe für die Überschrift.
	$info['BlockHintergrundfarbeIT'] = $strDesign['fcBlockHintergrundfarbeIT'];		#--> Hintergrundfabre für den Inhalt.
	$info['BlockCodeFarbe'] = $strDesign['fcBlockSchriftfarbeIT'];					#--> Code Farbe. (Nur für [Code] !!!)
#-------------------------------------------------------------------------------------------------------------	
//> Konfiguration für die Klappfunktion
	$info['KtextRandFarbe'] = $strDesign['fcKtextRandFarbe'];						#--> Rand (Border) Farbe.
	$info['KtextTabelleBreite'] = $strDesign['fcKtextTabelleBreite'];				#--> Tabellenbreite.
	$info['KtextRandFormat'] = $strDesign['fcKtextRandFormat'];						#--> Rand Format (Dotted,Dashed,Solid)
#-------------------------------------------------------------------------------------------------------------	
//> Konfiguration für die Hervorhebung eines Textes
	$info['EmphHintergrundfarbe'] = $strDesign['fcEmphHintergrundfarbe'];			#--> Hintergrundfarbe um den Text.
	$info['EmphSchriftfarbe'] = $strDesign['fcEmphSchriftfarbe'];					#--> Schriftfarbe für den Text
#-------------------------------------------------------------------------------------------------------------		
//> Konfiguration für die Videos von Youtube
	$info['YoutubeBreite'] = $objConfig['fnYoutubeBreite'];							#--> Breite der Videos.
	$info['YoutubeHoehe'] = $objConfig['fnYoutubeHoehe'];							#--> Höhe der Videos.
	$info['YoutubeHintergrundfarbe'] = $objConfig['fcYoutubeHintergrundfarbe'];		#--> Hintergrundfarbe.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration für die Videos von Google
	$info['GoogleBreite'] = $objConfig['fnGoogleBreite'];							#--> Breite des Videos.
	$info['GoogleHoehe'] = $objConfig['fnGoogleHoehe'];								#--> Hoehe des Videos.
	$info['GoogleHintergrundfarbe'] = $objConfig['fcGoogleHintergrundfarbe'];		#--> Hintergurndfarbe.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration für die Videosvon MyVideo
	$info['MyvideoBreite'] = $objConfig['fnMyvideoBreite'];							#--> Breite des Videos.
	$info['MyvideoHoehe'] = $objConfig['fnMyvideoHoehe'];							#--> Hoehe des Videos.
	$info['MyvideoHintergrundfarbe'] = $objConfig['fcMyvideoHintergrundfarbe'];		#--> Hintergurndfarbe.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration der Schriftgröße
	$info['SizeMax'] = $objConfig['fnSizeMax'];										#--> Maximale Schriftgröße in Pixel.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration für Bilder
	$info['ImgMaxBreite'] = $objConfig['fnImgMaxBreite'];							#--> Maximale breite des Bildes.
	$info['ImgMaxHoehe'] = $objConfig['fnImgMaxHoehe'];								#--> Maximale Höhe des Bildes.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration für Screenshots
	$info['ScreenMaxBreite'] = $objConfig['fnScreenMaxBreite'];						#--> Maximale breite des Bildes.
	$info['ScreenMaxHoehe'] = $objConfig['fnScreenMaxHoehe'];						#--> Maximale Höhe des Bildes.
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration von Textlängen
	$info['UrlMaxLaenge'] = $objConfig['fnUrlMaxLaenge'];							#--> Maiximale Länge des Links.
	$info['WortMaxLaenge'] = $objConfig['fnWortMaxLaenge'];							#--> Maxiamle Länge eines Wortes (Muss länger sein wie Url/Links)
#-------------------------------------------------------------------------------------------------------------
//> Konfiguration von Countdown
	$info['CountdownRandFarbe'] = $strDesign['fcCountdownRandFarbe'];				#--> Rand (Border) Farbe.
	$info['CountdownTabelleBreite'] = $strDesign['fcCountdownTabelleBreite'];		#--> Tabellenbreite.
	$info['CountdownSchriftfarbe'] = $strDesign['fcCountdownSchriftfarbe'];			#--> Schriftfarbe.
	$info['CountdownSchriftformat'] = $strDesign['fcCountdownSchriftformat'];		#--> Schriftformat.
	$info['CountdownSchriftsize'] = $strDesign['fnCountdownSchriftsize'];			#--> Schriftgröße.
	
#-------------------------------------------------------------------------------------------------------------
//> Smileys umwandeln ja oder nein?
	$permitted['smileys'] = $boolButton['fnFormatSmilies'];
	//> Schrift formatierung erlauben?
	//> Fett?
	$permitted['b'] = $boolButton['fnFormatB'];
	
	//> Kursiv?
	$permitted['i'] = $boolButton['fnFormatI']; 
	
	//> Unterstrichen?
	$permitted['u'] = $boolButton['fnFormatU']; 
	
	//> Durchgestrichen?
	$permitted['s'] = $boolButton['fnFormatS']; 
	
	#>--------------------------------<#
	
	//> Ausrichtung des Textes erlauben?
	//> Links?
	$permitted['left'] = $boolButton['fnFormatLeft']; 
	
	//> Mitte?
	$permitted['center'] = $boolButton['fnFormatCenter']; 
	
	//> Rechts?
	$permitted['right'] = $boolButton['fnFormatRight']; 
	
	#>--------------------------------<#
	
	//> Sonstige Text formatierungen.
	//> Liste?
	$permitted['list'] = $boolButton['fnFormatList'];
	
	//> Text hervorheben?
	$permitted['emph'] = $boolButton['fnFormatEmph'];
	
	//> Textfarbe?
	$permitted['color'] = $boolButton['fnFormatColor'];
	
	//> Schriftgröße?
	$permitted['size'] = $boolButton['fnFormatSize'];
	
	//> Klapptext?
	$permitted['ktext'] = $boolButton['fnFormatKtext'];
	
	#>--------------------------------<#
	
	//> Url verlinken?
	$permitted['url'] = $boolButton['fnFormatUrl'];
	
	//> Url automatisch verlinken?
	$permitted['autourl'] = $boolButton['fnFormatUrlAuto'];
	
	//> Email Erlauben?
	$permitted['email'] = $boolButton['fnFormatEmail'];
	
	//> Bild darstellen?
	$permitted['img'] = $boolButton['fnFormatImg'];
	
	//> Screenshots darstellen?
	$permitted['screenshot'] = $boolButton['fnFormatScreen'];
	
	//> Videos darstellen?
    $permitted['video'] = $boolButton['fnFormatVideo'];
	
	//> Countdowns erzeugen?
	$permitted['countdown'] = $boolButton['fnFormatCountdown'];
    
	
	#>--------------------------------<#
	
	//> Sonstige Tags erlauben?
	//> Tag: [php]
	$permitted['php'] = $boolButton['fnFormatPhp'];
	
	//> Tag: [css]
	$permitted['css'] = $boolButton['fnFormatCss'];
	
	//> Tag: [html]
	$permitted['html'] = $boolButton['fnFormatHtml'];
	
	//> Tag: [code]
	$permitted['code'] = $boolButton['fnFormatCode'];
	
	//> Tag: [quote]
	$permitted['quote'] = $boolButton['fnFormatQuote'];
	
	#>--------------------------------<#
	
?>