Snatch
18.10.2007, 17:28
Hallo,
in diesem Script taucht seit dem Upgrade auf MySQL 5 ein fehler auf
<html>
<center>
<?php
// Version 1.0.0
// Released December 2nd, 2006
// Edit the line below to show path to your forums
$forumpath = "http://www.celebritymarkt.org/";
// You dont have to edit anything underneath here,
// but you can if you wish to style the login box
// to match the style of your site.
// ---------------
// COPYRIGHT STUFF
// ---------------
// You are free to use and modify this script in anyway you like.
// However,
// - Do not remove copyright notice
// - Dont pass it off as your own work.
//
// This script is provided free of charges, however If you use this on a commercial
// venture a small paypal donation to cwp@cwp.id.au would be apprecieated.
// We check if user is logged in
if ($vbulletin->userinfo['userid']!=0) {
// If Logged in display welcome back message
echo "Welcome Back, <b>";
echo $vbulletin->userinfo['username'];
echo " !</b><br>";
// If logged in display logout link
echo "<a href=\"".$forumpath."/login.php?$session[sessionurl]do=logout&logouthash=$logouthash";
echo $vbulletin->userinfo['logouthash'];
echo "\">";
echo "<font size=\"1\" face=\"verdana\">Log Out</font></a>
";
} else { // If user is not logged in, we do this stuff
// Display text and link to register.
echo "
You have to <a href=\"".$forumpath."/register.php?s=$session[sessionhash]\"
target=\"_parent\"><b>register</b></a> before you can post on our forums or use our advanced features.
";
// Display login boxes + button
// You can style this with html or CSS as normal if desired.
echo"
<form action=\"".$forumpath."/login.php\" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)>
<script type=text/javascript src=\"".$forumpath."/clientscript/vbulletin_md5.js\"></script>
User Name:<br>
<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == '$vbphrase[username]') this.value = ''; size=10 />
<br>Password:<br>
<input name=vb_login_password type=password size=10 />
</br>
<label for=cb_cookieuser_navbar><input name=cookieuser type=checkbox id=cb_cookieuser_navbar value=1 checked=checked />
Remember Me?<br /></label>
<input type=submit title=$vbphrase[enter_username_to_login_or_register] value=\"Log In\" />
<input type=hidden name=s value=$session[sessionhash] />
<input type=hidden name=do value=login />
<input type=hidden name=vb_login_md5password />
<input type=hidden name=vb_login_md5password_utf />
</form>
";
}
?>
</center>
</hmtl>
Es handelt sich um ein SCript das es erlaubt von externen Seiten aus auf das VB zuzugreifen.
http://www.vbulletin.org/forum/showthread.php?t=132996&page=11&highlight=login_inc.php
Der Fehler:
Notice: Undefined index: HTTPS in /var/www/web1/html/close/includes/class_core.php on line 1591
Notice: Undefined index: HTTPS in /var/www/web1/html/close/includes/class_core.php on line 1591
Notice: Undefined index: HTTP_REFERER in /var/www/web1/html/close/includes/class_core.php on line 1618
Notice: Undefined variable: errfile in /var/www/web1/html/close/includes/functions_log_error.php on line 163
Kann mir da jemand bei helfen?
GRuß
Snatch
in diesem Script taucht seit dem Upgrade auf MySQL 5 ein fehler auf
<html>
<center>
<?php
// Version 1.0.0
// Released December 2nd, 2006
// Edit the line below to show path to your forums
$forumpath = "http://www.celebritymarkt.org/";
// You dont have to edit anything underneath here,
// but you can if you wish to style the login box
// to match the style of your site.
// ---------------
// COPYRIGHT STUFF
// ---------------
// You are free to use and modify this script in anyway you like.
// However,
// - Do not remove copyright notice
// - Dont pass it off as your own work.
//
// This script is provided free of charges, however If you use this on a commercial
// venture a small paypal donation to cwp@cwp.id.au would be apprecieated.
// We check if user is logged in
if ($vbulletin->userinfo['userid']!=0) {
// If Logged in display welcome back message
echo "Welcome Back, <b>";
echo $vbulletin->userinfo['username'];
echo " !</b><br>";
// If logged in display logout link
echo "<a href=\"".$forumpath."/login.php?$session[sessionurl]do=logout&logouthash=$logouthash";
echo $vbulletin->userinfo['logouthash'];
echo "\">";
echo "<font size=\"1\" face=\"verdana\">Log Out</font></a>
";
} else { // If user is not logged in, we do this stuff
// Display text and link to register.
echo "
You have to <a href=\"".$forumpath."/register.php?s=$session[sessionhash]\"
target=\"_parent\"><b>register</b></a> before you can post on our forums or use our advanced features.
";
// Display login boxes + button
// You can style this with html or CSS as normal if desired.
echo"
<form action=\"".$forumpath."/login.php\" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)>
<script type=text/javascript src=\"".$forumpath."/clientscript/vbulletin_md5.js\"></script>
User Name:<br>
<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == '$vbphrase[username]') this.value = ''; size=10 />
<br>Password:<br>
<input name=vb_login_password type=password size=10 />
</br>
<label for=cb_cookieuser_navbar><input name=cookieuser type=checkbox id=cb_cookieuser_navbar value=1 checked=checked />
Remember Me?<br /></label>
<input type=submit title=$vbphrase[enter_username_to_login_or_register] value=\"Log In\" />
<input type=hidden name=s value=$session[sessionhash] />
<input type=hidden name=do value=login />
<input type=hidden name=vb_login_md5password />
<input type=hidden name=vb_login_md5password_utf />
</form>
";
}
?>
</center>
</hmtl>
Es handelt sich um ein SCript das es erlaubt von externen Seiten aus auf das VB zuzugreifen.
http://www.vbulletin.org/forum/showthread.php?t=132996&page=11&highlight=login_inc.php
Der Fehler:
Notice: Undefined index: HTTPS in /var/www/web1/html/close/includes/class_core.php on line 1591
Notice: Undefined index: HTTPS in /var/www/web1/html/close/includes/class_core.php on line 1591
Notice: Undefined index: HTTP_REFERER in /var/www/web1/html/close/includes/class_core.php on line 1618
Notice: Undefined variable: errfile in /var/www/web1/html/close/includes/functions_log_error.php on line 163
Kann mir da jemand bei helfen?
GRuß
Snatch