Unsere neue Seite

würde diese scrollende newsleiste nochmal überdenken. stört ziemlich. ansonsten eigentlich schön. auch so das galleryscript etc. passt gut zusammen.

ne nette idee wäre doch vielleicht noch den radfahrer (links im bild) auf jeder seite durch was anderes zu ersetzen. von mir aus auch zufällig. so bekommt das ganze noch mehr abwechslung und wird interessanter. beispiel: http://www.parano-garage.de/ (f5 drücken und auf header achten)

ansonsten schick!
 
ganz ok......aber ich weiß nicht ob der riesen rand sinn macht.....also die kommt dann so klein rüber....

weniger rand mehr aktive fläche
 
JustRunning schrieb:
ganz ok......aber ich weiß nicht ob der riesen rand sinn macht.....also die kommt dann so klein rüber....

weniger rand mehr aktive fläche

Nö, wir haben ja keine Inhalte also brauchen wir auch keine Fläche :D

Haben die Inhalte halt mehr zum blättern gemacht. Das ist dann auch schon passend. Zurück zur Auflösung von 800 x 600 Pixel :)

Aber so langsam geht es weiter.
 
Alutech Racer schrieb:
Hat irgendwer Interesse an nem Link- oder Bannertausch?

Jo, so in einer Woche oder zwei vileicht!
Wen ich mein CMS anfange!
bzw. Fertig habe (Wen ich es anfange dauerts ca 3-5 Tage!)
(Nein ich werde mir keins Runterladen sondern selbst eins schreiben, das leuft dan wenigstens schneller als die anderen!)

Shredi
 
Interesse hätt ich schon, hab aber kein Link und auch kein Banner ;)

Hab ja noch nicht mal ne eigene Hompage. :D

Das hält mich aber nicht davon ab hier auch mal meinen Senf dazuzugeben. Ich find eure Seite sehr gelungen. Ihr könntet noch etwas mehr Inhalt reinpacken aber das Layout finde ich gut.

Aber zwei Fragen hätt ich mal:

1. unter dieser Laufschrift rechts von eurem Logo habe ich so schwarze Kästchen auf der Seite. Ist das beabsichtigt? Liegt das an meinem Browser? Oder liegt das am Alkohol? :lol:
2. Groß- und Kleinschreibung ignoriert Ihr ganz. Scheint also Absicht zu sein (hab ich eh keine Ahnung von).
Zeichensetzung stimmt auch in vielen Fällen nicht (hab ich aber auch keine Ahnung von).
Aber ein Wort kenn ich. Und zwar "Fahrrad" (im Profil von Manuel), dass hab ich immer anders geschrieben. :)

Ansonsten :daumen:
 
Kona-Shreder schrieb:
Jo, so in einer Woche oder zwei vileicht!
Wen ich mein CMS anfange!
bzw. Fertig habe (Wen ich es anfange dauerts ca 3-5 Tage!)
(Nein ich werde mir keins Runterladen sondern selbst eins schreiben, das leuft dan wenigstens schneller als die anderen!)

Shredi

Wie, Du brauchst 3 - 5 Tage für nen eigenes CMS? Oh man... das geht doch schneller :cool:
 
Hardgainer schrieb:
Interesse hätt ich schon, hab aber kein Link und auch kein Banner ;)

Hab ja noch nicht mal ne eigene Hompage. :D

Das hält mich aber nicht davon ab hier auch mal meinen Senf dazuzugeben. Ich find eure Seite sehr gelungen. Ihr könntet noch etwas mehr Inhalt reinpacken aber das Layout finde ich gut.

Aber zwei Fragen hätt ich mal:

1. unter dieser Laufschrift rechts von eurem Logo habe ich so schwarze Kästchen auf der Seite. Ist das beabsichtigt? Liegt das an meinem Browser? Oder liegt das am Alkohol? :lol:
2. Groß- und Kleinschreibung ignoriert Ihr ganz. Scheint also Absicht zu sein (hab ich eh keine Ahnung von).
Zeichensetzung stimmt auch in vielen Fällen nicht (hab ich aber auch keine Ahnung von).
Aber ein Wort kenn ich. Und zwar "Fahrrad" (im Profil von Manuel), dass hab ich immer anders geschrieben. :)

Ansonsten :daumen:

1. schwarze Kästchen...
Habe ich nicht, habe es im IE und FF gestest und nix mit den Sachen gesehen :confused:

2. Satzbau, Groß- und Kleinschreibung
Ignorieren wir alles. Wer braucht das schon ;)
 
Alutech Racer schrieb:
Wie, Du brauchst 3 - 5 Tage für nen eigenes CMS? Oh man... das geht doch schneller :cool:

Für Otto Normahle nicht!
Aber ich bin nen PC FREAK, ich code PHP seit 5 Jahren, BB seit 2, HTML+CSS* seit 7 und C und C++ seit 1!
Ich brauche 1 Tag wnen ich nicht an den par Tagen nich noch etwas anderes machen würde!
Ach und fals du mal hilfe brauchst (Deine Site ist Ja auch PHP) einfach bescheit sagen ich helf dan gerne!

*Nur Desginen kann ich aus Photoshp(Kenn mich damit nich so aus habs erst seit nem Halben Jahr! voher alles mit Paint und PHP gemacht!) Teschnichen Gründen nicht so Gut
 
Kona-Shreder schrieb:
Für Otto Normahle nicht!
Aber ich bin nen PC FREAK, ich code PHP seit 5 Jahren, BB seit 2, HTML+CSS* seit 7 und C und C++ seit 1!
Ich brauche 1 Tag wnen ich nicht an den par Tagen nich noch etwas anderes machen würde!
Ach und fals du mal hilfe brauchst (Deine Site ist Ja auch PHP) einfach bescheit sagen ich helf dan gerne!

*Nur Desginen kann ich aus Photoshp(Kenn mich damit nich so aus habs erst seit nem Halben Jahr! voher alles mit Paint und PHP gemacht!) Teschnichen Gründen nicht so Gut

LOL

Vielen Dank für Dein Angebot aber mein Job ist (in einer unbefristeten Arbeitsstelle) Intranetsysteme auf Basis von PHP oder ASP (.net) zu entwickeln.

Von daher denke ich das ich so eben selbst zurecht komme ;)

Und wenn ich mal mehr als 4 h Arbeit (inkl. CMS) investiert hätte wäre vielleicht auch eine etwas bessere Seite als die bisher gezeigte rumgekommen ;)
 
Kona-Shreder schrieb:
Für Otto Normahle nicht!
Aber ich bin nen PC FREAK, ich code PHP seit 5 Jahren, BB seit 2, HTML+CSS* seit 7 und C und C++ seit 1!
Ich brauche 1 Tag wnen ich nicht an den par Tagen nich noch etwas anderes machen würde!
Ach und fals du mal hilfe brauchst (Deine Site ist Ja auch PHP) einfach bescheit sagen ich helf dan gerne!

*Nur Desginen kann ich aus Photoshp(Kenn mich damit nich so aus habs erst seit nem Halben Jahr! voher alles mit Paint und PHP gemacht!) Teschnichen Gründen nicht so Gut

LOL, sehe grade Du bist schon geschlagene 13 Jahre alt. Musst ja ein echtes Ausnahmetalent sein.
 

Anhänge

  • screenshot (Small).JPG
    screenshot (Small).JPG
    46,7 KB · Aufrufe: 35
Alutech Racer schrieb:
LOL, sehe grade Du bist schon geschlagene 13 Jahre alt. Musst ja ein echtes Ausnahmetalent sein.
Jo, wenn du mir nicht galubst kann ich dir Ja ein par sachen zeigen:

PHP:
<?php
if($_SERVER["SCRIPT_FILENAME"] == __FILE__)
{
	exit("No Access on this File!");
	//Tue Aug 02 16:30:01 CEST 2005 16:30:01
}

/**
* SOK Tempalte Class
*
* @Name SOKt
* @version 0.0.5
* @Copyright 2005 by Maximilian R. Passarello
**/

class sokt
{
	/**
	* Ansprechungs Methode und erzeuger des Headers und Footers
	* 
	* @param $_TITLE string
	* @param $_HTML_TYP string
	* @param $_CSS true/false
	* @param $_HEADER_EDIT
	* @param $_HEADER_LOAD
	* @return 
	**/
	function sokt($_TITLE='NoNAME',$_HTML_TYP='html',$_CSS=false,$_HEADER_EDIT=false,$_HEADER_LOAD=false) {
		$GLOBALS['templateforsoktdata']['_TITLE']=$_TITLE;
		$GLOBALS['templateforsoktdata']['_HTML_TYP']=$_HTML_TYP;
		if ($_HEADER_LOAD)
		$header_load=file_get_contents('./templates/header.tpl');
		if ($_CSS)
		$css='<link rel="stylesheet" type="text/css" href="./templates/css.css" />';
		switch ($GLOBALS['templateforsoktdata']['_HTML_TYP']) {
			case html:
			$GLOBALS['templateforsoktdata']['_HTML_HEAD']='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<title>{TITLE}</title>
		'.$css.'
	</head><body>
	'.$header_load.'';
			break;
			case 'xhtml1.0':
			$GLOBALS['templateforsoktdata']['_HTML_HEAD']='<?xml version="1.0" encoding="iso-8859-1"?>
<!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">

	<head>
		<meta name="Createt by" content="SOKt Version 1.3" />
		<title>{TITLE}</title>
		'.$css.'
	</head><body>
	'.$header_load.'';
			if ($_HEADER_EDIT==true) {
				if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' &&
				isset($_SERVER['HTTP_ACCEPT']) &&
				preg_match('|application/xhtml\+xml(?!\s*;\s*q=0)|', $_SERVER['HTTP_ACCEPT'])) {
					header('Content-Type: application/xhtml+xml; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				} else {
					header('Content-Type: text/html; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				}
			}		break;
			case 'xhtml1.1':
			$GLOBALS['templateforsoktdata']['_HTML_HEAD']='<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>{TITLE}</title>
		'.$css.'
	</head><body>
	'.$header_load.'';
			if ($_HEADER_EDIT==true) {
				if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' &&
				isset($_SERVER['HTTP_ACCEPT']) &&
				preg_match('|application/xhtml\+xml(?!\s*;\s*q=0)|', $_SERVER['HTTP_ACCEPT'])) {
					header('Content-Type: application/xhtml+xml; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				} else {
					header('Content-Type: text/html; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				}
			}
			break;
		}
	}
	/**
	* Setzt eine Variable für die Templates
	* 
	* @param $NAME all
	* @param $VALUE all
	* @return 
	**/
	function setvar( $NAME, $VALUE )
	{
		$i = count( $GLOBALS['templateforsokt'] );
		if ( count( $GLOBALS['templateforsokt'] ) != 0 )
		{
			$i++;
		}
		$GLOBALS['templateforsokt']['' . $i . '']['name'] = $NAME;
		$GLOBALS['templateforsokt']['' . $i . '']['value'] = $VALUE;
	}
	/**
	* Setzt ein Array für die Templates
	* 
	* @param $NAME all
	* @param $VALUE all
	* @param $BN boalen
	* @return 
	**/
	function setarray( $NAME, $VALUE, $BN = false )
	{
		if ( $BN == FALSE ) {
			$BN = 0;
		}
		if ( $BN == TRUE ) {
			$BN = 1;
		}
		if ( $BN == FALSE )
		{
			$i = count( $GLOBALS['templateforsokt']['array' . $BN . ''] );
			if ( count( $GLOBALS['templateforsokt']['array' . $BN . ''] ) != 0 )
			{
				$i++;
			}
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['name'] = $NAME;
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['value'] = $VALUE;
		}
		if ( $BN == TRUE )
		{
			$i = count( $GLOBALS['templateforsokt']['array' . $BN . ''] );
			if ( count( $GLOBALS['templateforsokt']['array' . $BN . ''] ) != 0 )
			{
				$i++;
			}
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['name'] = $NAME;
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['value'] = $VALUE;
		}
	}
	/**
	* Gibt ein Template aus
	* 
	* @param $tpl_name all
	* @param $tpl_title = "{PHP_SELF}" all
	* @return 
	**/
	function display( $tpl_name, $tpl_title="{PHP_SELF}" )
	{
		$fp = fopen ( "./templates/" . $tpl_name . ".tpl", "r" ) or die("Kann das Template ".$tpl_name." nicht finden.");
		$filesize=filesize ( "./templates/" . $tpl_name . ".tpl" );
		if ($filesize==0) {
			$filesize=1;
		}
		$str = fread ( $fp, $filesize );
		$templates = $str;
		$templates = preg_replace( "/{\*.*\*\}\}*/U", "", $templates);

		$count = count( $GLOBALS['templateforsokt'] );
		$i = 0;
		while ( $i <= $count )
		{
			$templates = str_replace( '{$' . $GLOBALS['templateforsokt']['' . $i . '']['name'] . '}', '' . $GLOBALS['templateforsokt']['' . $i . '']['value'] . '', $templates );
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array0'] );
		$i = 0;
		error_reporting(0);
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array0']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array0']['' . $i . '']['value'];
			foreach ($value as $a => $b)
			{
				$templates = str_replace( '{$' . $name . '.' . $a . '}' , '' . $b . '', $templates );
			}
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array1'] );
		$i = 0;
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array1']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array1']['' . $i . '']['value'];
			$count = count( $value );
			$xc = 0;
			foreach ( $value as $a => $b )
			{
				$templates = str_replace( '{$' . $name . '.' . $xc . '}' , '' . $b . '', $templates );
				$xc++;
			}
			$i++;
		} // while
		$standartplatzhalter=array
		(
		"{HEADER}" => $GLOBALS['templateforsoktdata']['_HTML_HEAD'],
		"{FOOTER}" => '</body></html>',
		"{TITLE}" => $GLOBALS['templateforsoktdata']['_TITLE'],
		"{tpl_title}" => $tpl_title,
		"{PHP_SELF}" => $_SERVER['PHP_SELF'],
		"ä" => "ä",
		"ö" => "ö",
		"ü" => "ü",
		"Ä" => "Ä",
		"Ö" => "Ö",
		"Ü" => "Ü",
		"<br>" => "<br />",
		"<hr>" => "<hr />"
		);
		foreach ( $standartplatzhalter as $a => $b )
		{
			$templates = str_replace( $a , $b , $templates );
		}
		echo( $templates );
		fclose($fp);
		error_reporting(E_ERROR | E_WARNING | E_PARSE);
	}
	/**
	* Gibt den geparsten Inhalt eines Templates zurük
	* 
	* @param $tpl_name all
	* @param $tpl_title = "{PHP_SELF}" all
	* @return $templates all
	**/
	function out( $tpl_name, $tpl_title="{PHP_SELF}" )
	{
		$fp = fopen ( "./templates/" . $tpl_name . ".tpl", "r" ) or die("Kann das Template ".$tpl_name." nicht finden.");
		$filesize=filesize ( "./templates/" . $tpl_name . ".tpl" );
		if ($filesize==0) {
			$filesize=1;
		}
		$str = fread ( $fp, $filesize );
		$templates = $str;
		$templates = preg_replace( "/{\*.*\*\}\}*/U", "", $templates);

		$count = count( $GLOBALS['templateforsokt'] );
		$i = 0;
		while ( $i <= $count )
		{
			$templates = str_replace( '{$' . $GLOBALS['templateforsokt']['' . $i . '']['name'] . '}', '' . $GLOBALS['templateforsokt']['' . $i . '']['value'] . '', $templates );
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array0'] );
		$i = 0;
		error_reporting(0);
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array0']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array0']['' . $i . '']['value'];
			foreach ($value as $a => $b)
			{
				$templates = str_replace( '{$' . $name . '.' . $a . '}' , '' . $b . '', $templates );
			}
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array1'] );
		$i = 0;
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array1']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array1']['' . $i . '']['value'];
			$count = count( $value );
			$xc = 0;
			foreach ( $value as $a => $b )
			{
				$templates = str_replace( '{$' . $name . '.' . $xc . '}' , '' . $b . '', $templates );
				$xc++;
			}
			$i++;
		} // while
		$standartplatzhalter=array
		(
		"{HEADER}" => $GLOBALS['templateforsoktdata']['_HTML_HEAD'],
		"{FOOTER}" => '</body></html>',
		"{TITLE}" => $GLOBALS['templateforsoktdata']['_TITLE'],
		"{tpl_title}" => $tpl_title,
		"{PHP_SELF}" => $_SERVER['PHP_SELF'],
		"ä" => "ä",
		"ö" => "ö",
		"ü" => "ü",
		"Ä" => "Ä",
		"Ö" => "Ö",
		"Ü" => "Ü",
		"<br>" => "<br />",
		"<hr>" => "<hr />"
		);
		foreach ( $standartplatzhalter as $a => $b )
		{
			$templates = str_replace( $a , $b , $templates );
		}
		fclose($fp);
		error_reporting(E_ERROR | E_WARNING | E_PARSE);
		return $templates;
	}
}

?>

Das is nen Gelles Script nich ?
Und noch eins is aber simple:
PHP:
<?php

class mysql {
	private $user;
	private $host;
	private $pass;
	private $db;

	public function __construct($username,$pass,$hostname,$database) {
		$this->user=$username;
		$this->pass=$pass;
		$this->host=$hostname;
		$this->db=$database;
		$this->connect();
	}

	private function connect() {
		mysql_connect($this->host,$this->user,$this->pass) or $this->error();
		mysql_select_db($this->db) or $this->error();
	}

	public function query($query) {
		$result=mysql_query($query) or $this->error();
		return $result;
	}

	public function fetch_array($result) {
		$row=mysql_fetch_array($result) or $this->error();
		return $row;
	}

	public function fetch($query) {
		$result=mysql_query($query) or $this->error();
		$row=mysql_fetch_array($result) or $this->error();
		return $row;
	}

	public function num_rows($result) {
		$num=mysql_num_rows($result) or $this->error();
		return $num;
	}
	
	public function real_string($get) {
		$real_get=mysql_real_escape_string($get) or $this->error();
		return $real_get;
	}
	
	private function error() {
		print("MySQL Error <br />");
		print("Error: <br /> <br />");
		print(mysql_error());
	}
}
 
Kona-Shreder schrieb:
Jo, wenn du mir nicht galubst kann ich dir Ja ein par sachen zeigen:

PHP:
<?php
if($_SERVER["SCRIPT_FILENAME"] == __FILE__)
{
	exit("No Access on this File!");
	//Tue Aug 02 16:30:01 CEST 2005 16:30:01
}

/**
* SOK Tempalte Class
*
* @Name SOKt
* @version 0.0.5
* @Copyright 2005 by Maximilian R. Passarello
**/

class sokt
{
	/**
	* Ansprechungs Methode und erzeuger des Headers und Footers
	* 
	* @param $_TITLE string
	* @param $_HTML_TYP string
	* @param $_CSS true/false
	* @param $_HEADER_EDIT
	* @param $_HEADER_LOAD
	* @return 
	**/
	function sokt($_TITLE='NoNAME',$_HTML_TYP='html',$_CSS=false,$_HEADER_EDIT=false,$_HEADER_LOAD=false) {
		$GLOBALS['templateforsoktdata']['_TITLE']=$_TITLE;
		$GLOBALS['templateforsoktdata']['_HTML_TYP']=$_HTML_TYP;
		if ($_HEADER_LOAD)
		$header_load=file_get_contents('./templates/header.tpl');
		if ($_CSS)
		$css='<link rel="stylesheet" type="text/css" href="./templates/css.css" />';
		switch ($GLOBALS['templateforsoktdata']['_HTML_TYP']) {
			case html:
			$GLOBALS['templateforsoktdata']['_HTML_HEAD']='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<title>{TITLE}</title>
		'.$css.'
	</head><body>
	'.$header_load.'';
			break;
			case 'xhtml1.0':
			$GLOBALS['templateforsoktdata']['_HTML_HEAD']='<?xml version="1.0" encoding="iso-8859-1"?>
<!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">

	<head>
		<meta name="Createt by" content="SOKt Version 1.3" />
		<title>{TITLE}</title>
		'.$css.'
	</head><body>
	'.$header_load.'';
			if ($_HEADER_EDIT==true) {
				if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' &&
				isset($_SERVER['HTTP_ACCEPT']) &&
				preg_match('|application/xhtml\+xml(?!\s*;\s*q=0)|', $_SERVER['HTTP_ACCEPT'])) {
					header('Content-Type: application/xhtml+xml; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				} else {
					header('Content-Type: text/html; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				}
			}		break;
			case 'xhtml1.1':
			$GLOBALS['templateforsoktdata']['_HTML_HEAD']='<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>{TITLE}</title>
		'.$css.'
	</head><body>
	'.$header_load.'';
			if ($_HEADER_EDIT==true) {
				if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' &&
				isset($_SERVER['HTTP_ACCEPT']) &&
				preg_match('|application/xhtml\+xml(?!\s*;\s*q=0)|', $_SERVER['HTTP_ACCEPT'])) {
					header('Content-Type: application/xhtml+xml; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				} else {
					header('Content-Type: text/html; charset=iso-8859-1', TRUE);
					header('Vary: Negotiate,Accept', TRUE);
				}
			}
			break;
		}
	}
	/**
	* Setzt eine Variable für die Templates
	* 
	* @param $NAME all
	* @param $VALUE all
	* @return 
	**/
	function setvar( $NAME, $VALUE )
	{
		$i = count( $GLOBALS['templateforsokt'] );
		if ( count( $GLOBALS['templateforsokt'] ) != 0 )
		{
			$i++;
		}
		$GLOBALS['templateforsokt']['' . $i . '']['name'] = $NAME;
		$GLOBALS['templateforsokt']['' . $i . '']['value'] = $VALUE;
	}
	/**
	* Setzt ein Array für die Templates
	* 
	* @param $NAME all
	* @param $VALUE all
	* @param $BN boalen
	* @return 
	**/
	function setarray( $NAME, $VALUE, $BN = false )
	{
		if ( $BN == FALSE ) {
			$BN = 0;
		}
		if ( $BN == TRUE ) {
			$BN = 1;
		}
		if ( $BN == FALSE )
		{
			$i = count( $GLOBALS['templateforsokt']['array' . $BN . ''] );
			if ( count( $GLOBALS['templateforsokt']['array' . $BN . ''] ) != 0 )
			{
				$i++;
			}
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['name'] = $NAME;
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['value'] = $VALUE;
		}
		if ( $BN == TRUE )
		{
			$i = count( $GLOBALS['templateforsokt']['array' . $BN . ''] );
			if ( count( $GLOBALS['templateforsokt']['array' . $BN . ''] ) != 0 )
			{
				$i++;
			}
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['name'] = $NAME;
			$GLOBALS['templateforsokt']['array' . $BN . '']['' . $i . '']['value'] = $VALUE;
		}
	}
	/**
	* Gibt ein Template aus
	* 
	* @param $tpl_name all
	* @param $tpl_title = "{PHP_SELF}" all
	* @return 
	**/
	function display( $tpl_name, $tpl_title="{PHP_SELF}" )
	{
		$fp = fopen ( "./templates/" . $tpl_name . ".tpl", "r" ) or die("Kann das Template ".$tpl_name." nicht finden.");
		$filesize=filesize ( "./templates/" . $tpl_name . ".tpl" );
		if ($filesize==0) {
			$filesize=1;
		}
		$str = fread ( $fp, $filesize );
		$templates = $str;
		$templates = preg_replace( "/{\*.*\*\}\}*/U", "", $templates);

		$count = count( $GLOBALS['templateforsokt'] );
		$i = 0;
		while ( $i <= $count )
		{
			$templates = str_replace( '{$' . $GLOBALS['templateforsokt']['' . $i . '']['name'] . '}', '' . $GLOBALS['templateforsokt']['' . $i . '']['value'] . '', $templates );
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array0'] );
		$i = 0;
		error_reporting(0);
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array0']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array0']['' . $i . '']['value'];
			foreach ($value as $a => $b)
			{
				$templates = str_replace( '{$' . $name . '.' . $a . '}' , '' . $b . '', $templates );
			}
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array1'] );
		$i = 0;
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array1']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array1']['' . $i . '']['value'];
			$count = count( $value );
			$xc = 0;
			foreach ( $value as $a => $b )
			{
				$templates = str_replace( '{$' . $name . '.' . $xc . '}' , '' . $b . '', $templates );
				$xc++;
			}
			$i++;
		} // while
		$standartplatzhalter=array
		(
		"{HEADER}" => $GLOBALS['templateforsoktdata']['_HTML_HEAD'],
		"{FOOTER}" => '</body></html>',
		"{TITLE}" => $GLOBALS['templateforsoktdata']['_TITLE'],
		"{tpl_title}" => $tpl_title,
		"{PHP_SELF}" => $_SERVER['PHP_SELF'],
		"ä" => "ä",
		"ö" => "ö",
		"ü" => "ü",
		"Ä" => "Ä",
		"Ö" => "Ö",
		"Ü" => "Ü",
		"<br>" => "<br />",
		"<hr>" => "<hr />"
		);
		foreach ( $standartplatzhalter as $a => $b )
		{
			$templates = str_replace( $a , $b , $templates );
		}
		echo( $templates );
		fclose($fp);
		error_reporting(E_ERROR | E_WARNING | E_PARSE);
	}
	/**
	* Gibt den geparsten Inhalt eines Templates zurük
	* 
	* @param $tpl_name all
	* @param $tpl_title = "{PHP_SELF}" all
	* @return $templates all
	**/
	function out( $tpl_name, $tpl_title="{PHP_SELF}" )
	{
		$fp = fopen ( "./templates/" . $tpl_name . ".tpl", "r" ) or die("Kann das Template ".$tpl_name." nicht finden.");
		$filesize=filesize ( "./templates/" . $tpl_name . ".tpl" );
		if ($filesize==0) {
			$filesize=1;
		}
		$str = fread ( $fp, $filesize );
		$templates = $str;
		$templates = preg_replace( "/{\*.*\*\}\}*/U", "", $templates);

		$count = count( $GLOBALS['templateforsokt'] );
		$i = 0;
		while ( $i <= $count )
		{
			$templates = str_replace( '{$' . $GLOBALS['templateforsokt']['' . $i . '']['name'] . '}', '' . $GLOBALS['templateforsokt']['' . $i . '']['value'] . '', $templates );
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array0'] );
		$i = 0;
		error_reporting(0);
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array0']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array0']['' . $i . '']['value'];
			foreach ($value as $a => $b)
			{
				$templates = str_replace( '{$' . $name . '.' . $a . '}' , '' . $b . '', $templates );
			}
			$i++;
		} // while
		$count = count( $GLOBALS['templateforsokt']['array1'] );
		$i = 0;
		while( $i <= $count ){
			$name=$GLOBALS['templateforsokt']['array1']['' . $i . '']['name'];
			$value = $GLOBALS['templateforsokt']['array1']['' . $i . '']['value'];
			$count = count( $value );
			$xc = 0;
			foreach ( $value as $a => $b )
			{
				$templates = str_replace( '{$' . $name . '.' . $xc . '}' , '' . $b . '', $templates );
				$xc++;
			}
			$i++;
		} // while
		$standartplatzhalter=array
		(
		"{HEADER}" => $GLOBALS['templateforsoktdata']['_HTML_HEAD'],
		"{FOOTER}" => '</body></html>',
		"{TITLE}" => $GLOBALS['templateforsoktdata']['_TITLE'],
		"{tpl_title}" => $tpl_title,
		"{PHP_SELF}" => $_SERVER['PHP_SELF'],
		"ä" => "ä",
		"ö" => "ö",
		"ü" => "ü",
		"Ä" => "Ä",
		"Ö" => "Ö",
		"Ü" => "Ü",
		"<br>" => "<br />",
		"<hr>" => "<hr />"
		);
		foreach ( $standartplatzhalter as $a => $b )
		{
			$templates = str_replace( $a , $b , $templates );
		}
		fclose($fp);
		error_reporting(E_ERROR | E_WARNING | E_PARSE);
		return $templates;
	}
}

?>

Das is nen Gelles Script nich ?
Und noch eins is aber simple:
PHP:
<?php

class mysql {
	private $user;
	private $host;
	private $pass;
	private $db;

	public function __construct($username,$pass,$hostname,$database) {
		$this->user=$username;
		$this->pass=$pass;
		$this->host=$hostname;
		$this->db=$database;
		$this->connect();
	}

	private function connect() {
		mysql_connect($this->host,$this->user,$this->pass) or $this->error();
		mysql_select_db($this->db) or $this->error();
	}

	public function query($query) {
		$result=mysql_query($query) or $this->error();
		return $result;
	}

	public function fetch_array($result) {
		$row=mysql_fetch_array($result) or $this->error();
		return $row;
	}

	public function fetch($query) {
		$result=mysql_query($query) or $this->error();
		$row=mysql_fetch_array($result) or $this->error();
		return $row;
	}

	public function num_rows($result) {
		$num=mysql_num_rows($result) or $this->error();
		return $num;
	}
	
	public function real_string($get) {
		$real_get=mysql_real_escape_string($get) or $this->error();
		return $real_get;
	}
	
	private function error() {
		print("MySQL Error <br />");
		print("Error: <br /> <br />");
		print(mysql_error());
	}
}

Hui, eine Template Funktion und eine, überall zur Verfügung stehende, DB Connect Funktion.

Gratulation!
 
Zurück