Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Witam - nie widac panelu administratora
lucek1
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 29.12.2005

Ostrzeżenie: (0%)
-----


Witam wszystkich, jest to moj pierwszy post na Waszym forum

Sciagnolem skrypt Photo_Rating - skrypt oceniania zdjec

Zaintalowalem go na serwerze w home.pl "busines serwer"

nromalna trona mi funkcjonuje poprawnie problem pojawia ie gdy chce wejsc do panelu adminitratora po wpianiu adreu : http://www.jakasstrona.com/admin

powinno mi sie pokazac okno logowania adminitratora a u mnie nic tylko biala trona

Proze o pomoc

Myle ze to jet jaki problem z plikiem index.php w katalogu admin

Oto on:

  1. <html>
  2.  
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5.  
  6. <meta http-equiv="Content-Language" content="en-us">
  7. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  8. <meta name="ProgId" content="FrontPage.Editor.Document">
  9. <link rel="stylesheet" href="stylesheet.css" type="text/css">
  10.  
  11. <title>Control Panel</title>
  12. <script language="JavaScript">
  13. <!--
  14. function checkifvalid(){
  15. if (window.document.myform.username.value=="")
  16. {
  17. alert("please enter your user name!");
  18. window.document.myform.username.focus();
  19. return false;
  20. }
  21. if (window.document.myform.lpassword.value=="")
  22. {
  23. alert("please enter your password!");
  24. window.document.myform.lpassword.focus();
  25. return false;
  26. }
  27.  
  28. return true;
  29. }
  30. </script>
  31. </head>
  32. <script language="JavaScript">
  33.  <?php
  34.  error_reporting( E_ALL );
  35. ini_set( 'display_errors', 1 );
  36.  if(isset($error))
  37. {
  38. if($error=="wu")print("alert('Invalid Username and password!');");
  39. if($error=="lo")print("alert('Your session has expired!');");
  40. }
  41. ?>
  42. </script>
  43. </head>
  44.  
  45. <body leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FCFAF7" text="#000000" >
  46.  
  47. <div align="left">
  48. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="41">
  49. <tr> 
  50. <td width="150%" bgcolor="#000000" height="1"></td>
  51. </tr>
  52. <tr > 
  53. <td width="100%" align="left" valign="bottom" bgcolor="#FFFFFF" class="topheader" > 
  54. Control Panel </td>
  55. </tr>
  56. </table>
  57. </div>
  58.  
  59. <div align="left"> 
  60. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  61. <tr>
  62. <td width="1">
  63. <img border="0" src="transparent.gif" width="1" height="200"></td>
  64. <td width="100%" valign="top" align="center"><br>
  65. <br>
  66. <br>
  67. <br>
  68. <table width="33%" height="45%" cellpadding="0" cellspacing="0" class="mytable">
  69. <tr> 
  70. <td><div align="center"> 
  71. <table border="0" width="100%" height="100%">
  72. <form method="post" name="myform" action="adminhome.php" onsubmit="javascript: return checkifvalid();">
  73. <tr  > 
  74. <td class="header" width="100%" height="19" colspan="2">Login</td>
  75. </tr>
  76. <tr> 
  77. <td width="50%" height="19"><font face="Verdana" size="2">User 
  78. Name</font></td>
  79. <td width="50%" height="19"><input type="text" name="username" size="20"></td>
  80. </tr>
  81. <tr> 
  82. <td width="50%" height="19"><font face="Verdana" size="2">Password</font></td>
  83. <td width="50%" height="19"><input name="lpassword" type="password" id="lpassword" size="20"></td>
  84. </tr>
  85. <tr> 
  86. <td width="100%" colspan="2" height="17"> <p align="center"> 
  87. <input type="submit" value="Submit" name="B1">
  88. </td>
  89. </tr>
  90. </form>
  91. </table>
  92. </div></td>
  93. </tr>
  94. </table></td>
  95. </tr>
  96. </table>
  97. </div>
  98. </body>
  99.  
  100. </html>


Ten post edytował lucek1 29.12.2005, 18:41:55
Go to the top of the page
+Quote Post
mike
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


1. Prosze poprawić posta powyżej stosując odpowiednie tagi bbCode!
2. Dopisz na początku kodu php:
  1. <?php
  2.  
  3. error_reporting( E_ALL );
  4. ini_set( 'display_errors', 1 );
  5. // ...
  6.  
  7. ?>

Może masz jakieś błędy, które są tłumione. Tak przynajmniej je ujrzymy.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 17:44