N
neodeathz86
Hallo ich habe da ein Problem. Und zwar finde ich den Fehler in meinem Script nicht.
Das Script gibt mir dauernd eine Fehlermeldung aus:
Ich verstehe nur nicht warum?!
Ich poste einfach mal mein Script:
Und eine Seite zuvor habe ich die Variable " $_SESSION['site_00001'] " gesetzt, aber warum zeigt er mir das trotzdem an?
Ich hatte nämlich vor so eine Art Überprüfung zu kreieren von welcher Seite man auf diese Seite zugreift. Bitte hilft mir! Ich verzweifel so langsam.
Schon mal im voraus vielen Dank
Das Script gibt mir dauernd eine Fehlermeldung aus:
Code:
Warning: Unknown(): Your script possibly
relies on a session side-effect which existed until
PHP 4.2.3. Please be advised hat the session
extension does not consider global variables as
a source of data, unless register_globals is enabled.
You can disable this functionality and this warning
by setting session.bug_compat_42 or session.bug_compat_warn to off,
respectively. in Unknown on line 0
Ich verstehe nur nicht warum?!
Ich poste einfach mal mein Script:
PHP:
<?php
session_start();
$site_00001 = "site ok";
if($_SESSION['site_00001'] == $site_00001)
{
unset($_SESSION['site_00001']);
unset($site_00001);
function getmicrotime()
{
list($usec, $sec) = explode(" ", microtime());
return((float)$usec + (float)$sec);
}
$Anfangszeit = getmicrotime();
$screen = $_GET['screen'];
$Cursor_0001 = ("'../../cursor/hand.cur'");
if(!empty($_POST['passwort_zelle_01']) && !empty($_POST['passwort_zelle_02']) && !empty($_POST['passwort_zelle_03']))
{
$form = "../login_pruefung/login_pruefung.php";
}
else
{
$form = $_SERVER['PHP_SELF'];
}
if(empty($_POST['passwort_zelle_01']))
{
$span_0001 = '<span
id="span_0001">
*
</span>';
}
if(empty($_POST['passwort_zelle_02']))
{
$span_0002 = '<span
id="span_0001">
*
</span>';
}
if(empty($_POST['passwort_zelle_03']))
{
$span_0003 = '<span
id="span_0001">
*
</span>';
}
echo '<html>
<head>
<meta name="robots" content="noindex">
<meta name="robots" content="none">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="Content-Language" content="de">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="expires" content="0">
<link
rel="shortcut icon"
href="../../favicon/favicon.ico"
type="image/ico">
<link
rel="icon"
href="../../favicon/favicon.ico"
type="image/ico">
<title>
TEST
</title>
<script
language="JavaScript"
src="attachments/javascript/javascript.php"
type="text/javascript">
</script>
<noscript>
<meta http-equiv="refresh" content="0; url=../../no_script/no_script.php">
</noscript>
<noframes>
<meta http-equiv="refresh" content="0; url=../../no_frames/no_frames.php">
</noframes>
</head>
<body
id="body_0001">
<br>
<form
action="',$form,'"
method="post">
<div
align="center">
<div
id="div_0001">
<div
id="div_0002">
</div>
<div
align="center"
id="div_0003">
<div
align="center"
id="div_0004">
Bitte gebe die Zugangskennung an und logge dich ein!
</div>
<br>
Zugangskennung: ',$_SESSION['index_0001'],'
',$span_0001,'
<input
id="input_0001"
name="passwort_zelle_01"
title="Zelle 1"
value="',$_POST['passwort_zelle_01'],'"
size="7"
maxlength="6"
type="text">
-
',$span_0002,'
<input
id="input_0002"
name="passwort_zelle_02"
title="Zelle 2"
value="',$_POST['passwort_zelle_02'],'"
size="7"
maxlength="6"
type="text">
-
',$span_0003,'
<input
id="input_0003"
name="passwort_zelle_03"
title="Zelle 3"
value="',$_POST['passwort_zelle_03'],'"
size="9"
maxlength="8"
type="text">
<br>
<br>
<input
id="input_0004"
type="submit"
title="LogIn"
value=" LogIn ">
</div>
<input
id="input_0005"
type="button"
value=" Fenster schließen "
onClick="javascript:top.close();
self.close();"
title="Fenster schließen">
</div>
</div>
</form>
<div
align="center">
<div
id="div_0005">
';
$Endzeit = getmicrotime();
echo'
Die Generierung dieser Webseite hat ',
number_format($Endzeit-$Anfangszeit, 4, ",", "."),
' Sekunden gedauert.
</div>
</div>
</body>
</html>
';
}
else
{
echo "TEST";
}
?>
Und eine Seite zuvor habe ich die Variable " $_SESSION['site_00001'] " gesetzt, aber warum zeigt er mir das trotzdem an?
Ich hatte nämlich vor so eine Art Überprüfung zu kreieren von welcher Seite man auf diese Seite zugreift. Bitte hilft mir! Ich verzweifel so langsam.
Schon mal im voraus vielen Dank