Phpdev streikt bei meiner PHP hp..

Zuaroacha

Lt. Commander
Registriert
Nov. 2001
Beiträge
1.157
Hallo!

Also ich hab da so ein probelm mit dem php und zwar funktioniert mit dem php dev das menü auf meiner seite nicht weis jemand woran das liegt oder wie ich was dagegen machen kann ?

hier mal der link

http://eistee.no-ip.com/index.php


mfg manuel
 
Kann es sein, dass register_globals off ist? ist in den neuern versionen standartmäßig auf off gesetzt.
Wenn ja, dann musst du des entweder an stellen, oder deine Header nur noch mit $_GET[] abfragen, wobei ich letzteres für die bessere Idee halte
 
was meinst du mit $_GET[] ??


hier mal der code... vielleicht kannst du mir ja sagen was nicht passt bin im php ne volle niete...

Code:
<html>

<head>
<link href="images/css/stylesheet.css" rel=stylesheet>
<script language="JavaScript" src="images/js/titel.js" type="text/javascript"></script>
<title>eistee.no-ip.com</title>
</head>

<body topmargin="0" leftmargin="0" bgcolor="#E5E6E9">

<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="80%" id="AutoNumber1" height="100%">
    <tr>
      <td width="100%" align="center">
      <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 style="border-right-width: 0; border-top-width: 0; border-bottom-width: 0">
	<TR>
		<TD COLSPAN=7 width="800">
<IMG SRC="images/index_01.jpg" WIDTH=800 HEIGHT=126 ALT=""></TD>
	</TR>
	<TR>
		<TD width="132">
			<a href="?modul=home">
			<IMG SRC="images/index_02.jpg" WIDTH=131 HEIGHT=28 border="0"></a></TD>
		<TD width="109">
		    <a href="?modul=ordner">
			<IMG SRC="images/index_03.jpg" WIDTH=109 HEIGHT=28 border="0"></TD>
		<TD width="111">
			<a target="_top" href="http://eistee.no-ip.com/forum.php">
		    <IMG SRC="images/index_04.jpg" WIDTH=111 HEIGHT=28 border="0"></TD>
		<TD width="110">
		    <a href="?modul=upload">
			<IMG SRC="images/index_05.jpg" WIDTH=110 HEIGHT=28 border="0"></TD>
		<TD width="112">
		    <a href="?modul=kontakt">
			<IMG SRC="images/index_06.jpg" WIDTH=112 HEIGHT=28 border="0"></TD>
		<TD ROWSPAN=2 height="314" width="7" valign="top" style="border-right-style: none; border-right-width: medium">
			&nbsp;</TD>
		<TD ROWSPAN=2 height="314" width="219" valign="top" style="border-style:none; bordercolor=; border-width:medium; ">
			<div align="left">
              <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="90%" id="AutoNumber3" height="235">
                <tr>
                  <td width="100%" height="19" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%" height="19" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%" height="19" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%" height="19" bgcolor="#CACFD5" style="border-style: dotted; border-width: 1" colspan="2">
                  <p align="right"><b><font face="Arial" size="2">News&nbsp;&nbsp;&nbsp;
                  </font></b></td>
                </tr>
                <tr>
                  <td width="100%" height="93" colspan="2">
                  <p align="right"><font face="Arial" size="2"><b>
                  <br>
                  29-12-03<br>
                  </b><br>
                  Besucht mal unser Forum!<br>
                  <b>
                  <a href="http://eistee.no-ip.com/board/index.php?faction=register">
                  Registrieren</a> <br>
                  </b>
                  <br>
                  </font><font face="Arial" size="1">posted by Martin</font>
                  </td>
                </tr>
                <tr>
                  <td width="100%" height="19" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%" height="19" bgcolor="#CACFD5" style="border-style: dotted; border-width: 1" colspan="2">
                  <p align="right"><b><font face="Arial" size="2">Statistik&nbsp;&nbsp;&nbsp;
                  </font></b></td>
                </tr>
                <tr>
                  <td width="100%" height="19" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%" height="19" colspan="2">
                  <p align="right"><font face="Arial"><font size="2">
                  Serverstatus: </font><font color="#008000"><b><font size="2">
                  online</font></b></font></font></td>
                </tr>
                <tr>
                  <td width="100%" height="19" colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td width="86%" height="19" align="right">
                  &nbsp;</td>
                  <td width="14%" height="19" align="right">&nbsp;</td>
                </tr>
                <tr>
                  <td width="86%" height="19" align="right">
                  &nbsp;</td>
                  <td width="14%" height="19" align="right">&nbsp;</td>
                </tr>
                <tr>
                  <td width="86%" height="19" align="right">
                  &nbsp;</td>
                  <td width="14%" height="19" align="right">&nbsp;</td>
                </tr>
                <tr>
                  <td width="86%" height="19">&nbsp;</td>
                  <td width="14%" height="19">&nbsp;</td>
                </tr>
                </table>
            </div>
        </TD>
	</TR>
	<TR>
		<TD COLSPAN=5 background="images/index_08.jpg" height="286" align="left" valign="top" width="574">
			<div align="right">
              <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" id="AutoNumber2">
                <tr>
                  <td width="100%">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100%"><p class="text">
<?
		
switch ($modul) {
case "home": include ("home.php"); break;
case "ordner": include ("ordner.php"); break;
case "upload": include ("upload.php"); break;
case "kontakt": include ("kontakt.php"); break;

default: include ("home.php"); break;
}
?>

</td>
                </tr>
              </table>
            </div>


</TD>
	</TR>
	<TR>
		<TD COLSPAN=7 width="800">
			<p align="center">
			<IMG SRC="images/index_09.jpg" WIDTH=800 HEIGHT=60 ALT=""><br>

        </TD>
	</TR>
</TABLE>  </center>
</div>

</body>

</html>
 
Zuletzt bearbeitet:
Wenn du jetzt den Header 'modul' haben willst (wird auf deiner Page übergeben), dann machst du das denk ich im Moment mit $modul.
Wenn aber register_globals aus ist, dann musst du das mit
PHP:
$_GET['modul'];
machen

Edit: Also bei deinem Code statt
PHP:
switch($modul) {
das hier:
PHP:
switch($_GET['modul']) {
 
viele dank für die Hilfe nun klappts wieder !!! :D
 
Zurück
Oben