| SourceHier wird der Quellcode eines PHP-Scripts dieser Website angezeigt.
./cls/site.cls:
<?php
class site {
public $page;
public $ordnung;
public $version = '3.0.0';
private $nav =
array(
array(
array('Home', 'index.php'),
array('Source', 'source.php'),
array('Links', 'links.php'),
array('Sitemap', 'sitemap.php'),
// array('Statistik', 'statistik.php')
),
array(
array('Forum', 'forum.php'),
array('Forum', 'viewforum.php', false),
array('Forum', 'viewtopic.php', false)
),
array(
array('Tutorial', 'tutorial.php'),
array('Funktionen', 'funktionen.php'),
),
array(
array('Kontakt', 'kontakt.php'),
array('Impressum', 'impressum.php'),
array('Suche', 'searchsite.php'),
),
);
public function __construct() {
ob_start();
$this->page = substr(basename(getenv('SCRIPT_NAME')), 0, strpos(basename(getenv('SCRIPT_NAME')),'.'));
$script_name = basename(getenv('SCRIPT_NAME'));
$nav = array();
foreach($this->nav as $nav_id=>$pages) {
foreach($pages as $page)
if($page[1] == $script_name) {
$nav = $this->nav[$nav_id];
break 2;
}
}
$this->ordnung = &$GLOBALS['_ORDNUNG'];
header('content-type: text/html; charset=iso-8859-1');
echo '<?xml version="1.0" ?><!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>
<title>PHP-Tutorial.at</title>
<meta name="description" content="PHP-Tutorial.at - Tutorials für PHP und MySQL, sowie Tipps, Tricks und Scripte" />
<meta name="keywords" content="PHP, Tutorial, Server, MySQL, Script, html, Datenbank, PHP-Tutorial, programmieren, Web" />
<meta name="robots" content="index,follow" />
<meta http-equiv="Content-language" content="de" />
<link rel="shortcut icon" href="favicon.ico" />'.(($nav_id == 1) ? '<link rel="stylesheet" type="text/css" href="css/phpbb.css">' : '').'<link rel="stylesheet" href="css/site.css" type="text/css" /><link rel="stylesheet" media="print" href="css/print.css" />'.(file_exists('js/'.$this->page.'.js') ? '<script type="text/javascript" src="js/'.$this->page.'.js"></script>' : '').(file_exists('css/'.$this->page.'.css') ? '<link rel="stylesheet" href="css/'.$this->page.'.css" type="text/css" />' : '').'</head><body><div id="a"></div><img id="b" alt="" src="img/site/s1.jpg" /><img id="c" src="img/site/title.jpg" alt="" /><div id="d"></div><img id="e" alt="" src="img/site/s2.jpg" /><div id="nh"><a href="./">Home</a><!--<a href="forum.php">Forum</a>--><a href="tutorial.php">Tutorial</a><a href="kontakt.php">Kontakt</a><a href="http://kaaser.at">Dominiks Blog</a></div><div id="h"></div><table id="m"><tr><td id="n"><div>';
foreach($nav as $item)
if($item[2] !== false)
echo '<a href="'.$item[1].'">'.$item[0].'</a>';
echo '</div>';
if($script_name != 'searchsite.php')
echo '<div style="margin:0px;padding:0px;background:transparent;text-align:center">
<script type="text/javascript"><!--
google_ad_client = "pub-2246237678223377";
/* 125x125, Erstellt 10.01.09 */
google_ad_slot = "5552253590";
google_ad_width = 125;
google_ad_height = 125;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>';
echo '</td><td class="idc">';
if(isset($this->ordnung) && is_array($this->ordnung)) {
echo '<div id="o">';
list($last) = array_pop($this->ordnung);
foreach($this->ordnung as $o)
echo '<a href="'.$o[1].'">'.$o[0].'</a> » ';
echo $last.'</div>';
}
}
public function __destruct() {
echo '</td></tr></table><div id="f"><div id="fr"><form method="get" action="searchsite.php"><input type="text" name="s" /> <button type="submit">Suche</button></form></div><div id="fl"><a href="source.php?file=./'.basename(getenv('SCRIPT_NAME')).'">Show Source</a></div></div><br /><div style="border-top:1px #c0c0c0 solid;text-align:center">
<script type="text/javascript"><!--
google_ad_client = "pub-2246237678223377";
/* 728x90, Erstellt 10.01.09 */
google_ad_slot = "0725995330";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></body></html>';
ob_end_flush();
}
}
?>
Zurück zur Dateiübersicht |