PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Seit MySQL5 Fehler in einem Script


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&amp;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

Surviver
18.10.2007, 17:34
Unser <?php

error_reporting(E_ALL & ~E_NOTICE);

einfügen

Snatch
18.10.2007, 18:53
Wenn ich das einstelle, dann Zeit er mir nurnoch Datenbankfehler aber keine Infos dazu mehr.

Nur bei error_reporting(E_ALL);
Zeigt er obigen Fehler an.

Surviver
18.10.2007, 18:55
Die obigen Fehler haben nichts mit SQL zu tun.

Snatch
18.10.2007, 20:05
So sieht es aus
1040

Es ist doch sehr komisch, dass es erst seit MySQL 5 nicht mehr geht
Und zwar seitdem nur der FremdServer auf den das Script zugreift das upgrade bekommen hat.

Andreas
18.10.2007, 20:11
Poste doch mal die die genaue Meldung des DB Fehlers (steht als Kommentar im Quelltext, im DB Error Log oder in der E-Mail die du bei DB-Fehlern erhälst (falls eingeschaltet))

Snatch
19.10.2007, 06:37
Danke das du mir hilft.

CODE:
----------
Der Inhalt dieses Abschnitts ist nur für Lizenznehmer sichtbar, Sie werden derzeit jedoch nicht als Lizenzinhaber erkannt.<br />
<br />
Bitte öffnen Sie den <a href="http://members.vbulletin-germany.com/membersupport_priority.php">Kundenbereich</a>, tragen Sie Ihre E-Mail-Adresse ein, mit der Sie sich hier registriert haben und aktivieren Sie die Lizenzüberprüfung für http://www.vbulletin-germany.org.
----------

Das Script greift auf eine Externe DB zu. Diese ist aber auch für Externe Zugriffe zugänglich.

Andreas
19.10.2007, 10:10
Nun ja, wie man unschwer erkennen kann funktioniert das mit dem Zugriff wohl doch nicht so 100%ig ...