<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();?><?php
//check online User
include("sql/config.inc.php");
$db_name = 'gff1';
/* Erstellt Connect zu Datenbank her */
$db = @mysql_connect($host, $user, $pass);
$db_select = @mysql_select_db($db_name);
$sql = 'UPDATE `users` SET `UserSession` = NULL WHERE time_after_30 <= NOW()';
$result = mysql_query($sql);
?><?php
mb_http_input("utf-8");
mb_http_output("utf-8");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>..::GFF - Die Insider - Kallham - Dorf - Co. ::..</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="verify-v1" content="SKoQ00kS7TXjfeuQsHD2cZLa0dZAZb79p38+P7w1hqM="><meta name="revisit-after" content="1 day">
<meta name="keywords" content="Community, Portal, Jugend, Kallham, Dorf, Eventfotos, Fotos, News, Hausruckviertel, Eventpics, Pics, Usersuche, Userpage, Fotoalben, Eventkalender, Registrieren, Spaß, fun, Friends, User, Private Nachrichten, Mails" />
<meta name="Description" content="GFF - Die Online & Event-Community im Hausruckviertel - Die besten Eventtips, News & Pics täglich." />
</head>
<body>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1995085-2";
urchinTracker();
</script>
<!-- Start Adwords -->
<!-- End Adwords -->
<!-- Start Wrapper -->
<div class="wrapper"><div id="adwords">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- Start Header -->
<div class="header">
<img src="images/logo.png" alt="Logo" width="752" height="89" /> </div>
<!-- End Header -->
<!-- Start Navigation Bar -->
<div class="nav-bar">
<ul class="nav-links">
<li>
<a href="#">Home</a></li>
<li><a href="#">Location</a></li>
<li><a href="#">About</a></li>
<?php
session_start();
include_once('login/sessionhelpers.inc.php');
if ( !logged_in() ) {
echo '<li><a href="reg/index.php">Registrieren</a></li>';
} else {
echo ' ';
}
Werbung
?>
<!-- Start Linktausch.at Textlinkcode 3 --><li><a href="http://www.linktausch.at/">Linktausch.at</a></li>
<li><a href="pns.php?search">Membersuche</a></li>
</ul>
</div>
<!-- End Navigation Bar -->
<!-- Start Login Bar -->
<div class="log-bar"> <?php
session_start();
include_once('login/sessionhelpers.inc.php');
$result = mysql_query("SELECT UserName FROM users WHERE UserSession = \"" . session_id() . "\"");
while($row = mysql_fetch_array($result)) {
$username1 = $row[UserName];
}
if ( isset($_POST['login']) ) {
$userid = check_user($_POST['username'], $_POST['userpass']);
if ( $userid ) {
login($userid);
} else {
echo '<p>Ihre Anmeldedaten waren nicht korrekt!</p>';
}
}
if ( !logged_in() ) {
echo <<<END
<form method="post" action="index.php">
<label>Benutzername:</label> <input name="username" type="text">
<label>Passwort:</label> <input name="userpass" type="password" id="userpass">
<input name="login" type="submit" id="login" value="Login">
</form>
END;
} else {
echo 'Hallo ';
echo $username1;
echo '!';
echo '<p><a href="fotos.php">Fotos |</a>';
echo ' <a href="user/?sid='.$username1.'" title="Userpage">Userpage |</a>';
echo ' <a href="pns.php?read">PN`s |</a>';
echo ' <a href="pns.php?newpn">Neue Pn |</a>';
echo ' <a href="pns.php?change_user"><strong>Einstellungen</strong> |</a>';
echo ' <a href="login/logout.php">Ausloggen</a></p>';
}
?></div>
<!-- End Login Bar -->
<!-- Start Werbung Bar -->
<div class="log-bar" align="center"><?php include('adserver/index.php'); ?></div>
<!-- End Werbung Bar -->
<!-- Start Outer Content -->
<div id="outercontent">
<div id="centercolumn">
<h1>GFF</h1>
<p>Herzlich Willkommen auf der neuen der neuen Insider Community </p>
<p> </p>
<h2 align="center"> </h2>
<h1>News</h1>
<p> </p>
<p>
<?php
include'newsbox/newsbox.php';
?>
</p>
</p>
<p> </p>
<p> </p>
</div>
<!-- Start Right Content -->
<div class="rightcolumn">
<!-- BEGINN GOWEB WEBCOUNTER -->
<center>
<a href="http://www.webcounter.goweb.de" target="_blank"><img src="http://webcounter.goweb.de/51086.GIF" alt="gratis Counter by GOWEB" border="0" vspace="0"></a><br>
<a href="http://www.webcounter.goweb.de"></a>
</center>
<!-- ENDE GOWEB WEBCOUNTER --> </div>
<div class="rightcolumn">
<?PHP
include("sql/config.inc.php");
$db_name = 'gff1';
/* Erstellt Connect zu Datenbank her */
$db = @mysql_connect($host, $user, $pass);
$db_select = @mysql_select_db($db_name);
$sql = 'SELECT *
FROM `users`
WHERE `UserSession` IS NOT NULL
ORDER BY `users`.`date` DESC
LIMIT 0 , 5';
$result = mysql_query($sql);
echo'<h3>Online User</h3>';
for($x = 0; $x < mysql_num_rows($result); $x++){
$str_1 = mysql_result($result, $x, 'users.UserName');
$str_2 = mysql_result($result, $x, 'users.link');
echo '<a href="'.$str_2.'">' . $str_1 . '</a><br>';
}
?>
</div>
<!-- End Right Content -->
<div class="rightcolumn">
<h4>Voting </h4>
<?php echo (include('news/umfrage.php')) ?>
</div>
<div class="rightcolumn">
<?php
$db = mysql_connect('localhost','xxx','xxx') or die(mysql_error());
mysql_select_db('gff1', $db) or exit(mysql_error());
$sql_r = mysql_query("SELECT * FROM `userprofile` WHERE `userprofile`.`Nickname` = 'sitecounter'");
$data_r = mysql_fetch_array($sql_r);
// Hier beginnt das Update
$count =1;
$visit= $data_r['Aufrufe']+$count;
$sql_w = mysql_query("UPDATE `userprofile` SET `Aufrufe`='$visit' WHERE `Nickname`='sitecounter'");
echo'Diese Homepage wurde seit dem 18.6.2007 '.$data_r['Aufrufe'].' mal aufgerufen.';
?>
</div>
</div>
<!-- End Outer Content -->
<!-- End Outer Content -->
<!-- Start Footer -->
<!-- End Footer -->
<p align="right"><a href="pns.php?imp">Impressum</a></p>
<p align="right">© by Michael Anzengruber 2006</p>
<p align="right">Thanks for the Design of <a href="http://www.code-sucks.com" target="_blank">Code-Suks.com</a></p>
</div>
<!-- End Wrapper -->
<?php
$time_end = getmicrotime(); //Am ende der Seite
$time = round($time_end - $time_start,4);
echo "Seite in ".$time." Sekunden generiert";
?>
</body>
</html>