WarDynasty
HWLuxx SC2-Champ, HWLuxx SC2-Cup2 Master#1
Servus..habe gestern Abend ein Login-System in meine Page eingebaut. Bis vor etwa einer Stunde hat alles gut funktioniert. Jetzt plötzlich funktioniert nichts mehr. Also ich kann mich nicht mehr anmelden. Es kommt immer die Fehlermeldung:
Hier das Ganze:
Habe den PHP-Script ins HTML-Dokument eingebunden. So hat es auch immmer super funktioniert.
Was ist da los?
Code:
Fatal error: Call to undefined function powered_by() in /usr/export/www/hosting/avire/league/login/login.php on line 138
Code:
Fatal error: Call to a member function qstr() on a non-object in /usr/export/www/hosting/avire/league/login/login.php on line 8
Hier das Ganze:
Code:
<?php
require_once ( 'settings.php' );
if ( array_key_exists ( '_submit_check', $_POST ) )
{
if ( $_POST['username'] != '' && $_POST['password'] != '' )
{
$query = 'SELECT ID, Username, Active, Password FROM ' . DBPREFIX . 'users WHERE Username = ' . $db->qstr ( $_POST['username'] ) . ' AND Password = ' . $db->qstr ( md5 ( $_POST['password'] ) );
if ( $db->RecordCount ( $query ) == 1 )
{
$row = $db->getRow ( $query );
if ( $row->Active == 1 )
{
set_login_sessions ( $row->ID, $row->Password, ( $_POST['remember'] ) ? TRUE : FALSE );
header ( "Location: " . REDIRECT_AFTER_LOGIN );
}
elseif ( $row->Active == 0 ) {
$error = 'Your membership was not activated. Please open the email that we sent and click on the activation link.';
}
elseif ( $row->Active == 2 ) {
$error = 'You are suspended!';
}
}
else {
$error = 'Login failed!';
}
}
else {
$error = 'Please use both your username and password to access your account';
}
}
?>
<!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>roScripts.com - PHP Login System With Admin Features</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<!--
____ __
/\ _`\ __ /\ \__
_ __ ___\ \,\L\_\ ___ _ __ /\_\ _____\ \ ,_\ ____
/\`'__\/ __`\/_\__ \ /'___\/\`'__\/\ \/\ '__`\ \ \/ /',__\
\ \ \//\ \L\ \/\ \L\ \/\ \__/\ \ \/ \ \ \ \ \L\ \ \ \_/\__, `\
\ \_\ \____/\ `\____\ \____\ \_\ \ \_\ \ ,__/\ \__\/\____/
\/_/ \/___/ \/_____/\/____/ \/_/ \/_/\ \ \/ \/__/\/___/
\ \_\
\/_/
Making your world easy
-->
</head>
<body>
<div id="wrapper">
<div id="header">
<img class="logo" src="../logo.png" />
</div>
<div id="subheader">
<ul id="topnavi">
<li><a href="../index.php">Home</a></li>
<li><a href="../news.php">News</a></li>
<li><a href="../phpBB3/index.php">Forums</a></li>
<li><a href="">Articles</a></li>
<li><a href="show_members.php">Members</a></li>
<li><a href="">Files</a></li>
<li><a href="">Downloads</a></li>
<li><a href="">Search</a></li>
<div style="clear:both"></div>
</ul>
</div>
<div id="content">
<div id="left">
<div class="leftbox-wrap">
<div class="leftbox-top"></div>
<div class="leftbox-main">
<div class="cwrap">
<div id="links">
<a href="login.php"><div style="padding-top:2pt">Login</div></a><br/>
<a href="register.php"><div style="padding-top:2pt">Register</div></a><br/>
<a href="update_profile.php"><div style="padding-top:2pt">Profile</div></a><br/>
<a href=""><div style="padding-top:2pt">League</div></a><br/>
<a href=""><div style="padding-top:2pt">Matches</div></a><br/>
<a href=""><div style="padding-top:2pt">Results</div></a><br/>
<a href=""><div style="padding-top:2pt">Statistics</div></a><br/>
<a href=""><div style="padding-top:2pt">Walk of Fame</div></a><br/>
<a href="logout.php"><div style="padding-top:2pt">Logout</div></a><br/>
</div>
</div>
</div>
<div class="leftbox-bottom"></div>
</div>
</div>
<div id="hauptinhalte">
<div style="margin:30px;">
<div id="container2">
<div style="width: 230px">
<?php if ( isset( $error ) ) { echo ' <p class="error">' . $error . '</p>' . "\n";}?>
</div>
<div style="width:230px;">
<form class="form" action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input type="hidden" name="_submit_check" value="1"/>
<div style="margin-top:12px; margin-bottom:10px">
<img src="images/username.gif" alt="username" border="0" />
<input class="input" type="text" name="username" id="username" size="25" maxlength="40" value="" />
</div>
<div style="margin-bottom:6px">
<img src="images/password.gif" alt="password" border="0" />
<input class="input" type="password" name="password" id="password" size="25" maxlength="32" />
</div>
<?php if ( ALLOW_REMEMBER_ME ):?>
<div style="margin-bottom:6px;">
<input type="checkbox" name="remember" id="remember" />
<label for="remember" style="font-size:100%">Remember me</label>
</div>
<?php endif;?>
<input type="image" name="Login" value="Login" class="submit-btn" src="images/btn.gif" alt="submit" title="submit" />
<br class="clear" />
<br/><a href="register.php" class="login">Register</a> / <a href="forgot_password.php" class="login">Password recovery?</a>
</form>
<!--
Keeping the link below not only gives respect to the large amount of time given freely by me
but also helps build interest, traffic and use of this script. It's not required but
recommended since it also might affect my support priorities on the forums.
Thank you, Mihalcea Romeo - roScripts.com
// --> <?=powered_by ()?>
</div>
</div>
</div>
</div>
<div id="right">
<div class="leftbox-wrap">
<div class="leftbox-top"></div>
<div class="leftbox-main">
<div class="cwrap">
<br/>
<a id='332224-skoom' href='http://www.skoom.de/gratis-counter/'>Counter</a><script type="text/javascript" language="JavaScript" src="http://www.skoom.de/gratis-counter/text2.php?id=332224"></script><noscript><a href="http://www.skoom.de/gratis-counter/">Counter</a></noscript>
<br/></div>
</div>
<div class="leftbox-bottom"></div>
</div>
<div class="leftbox-wrap" id="rechts_unten">
<div class="leftbox-top"></div>
<div class="leftbox-main">
<div class="cwrap">
</div>
</div>
<div class="leftbox-bottom"></div>
</div>
</div>
<div id="footer">
</div>
</div>
</div>
</body>
</html>
Habe den PHP-Script ins HTML-Dokument eingebunden. So hat es auch immmer super funktioniert.
Was ist da los?