Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> [HTML][PHP]Podpięcie do strony panelu logowania
o2w5n778
post 21.06.2010, 15:04:03
Post #1





Grupa: Zarejestrowani
Postów: 235
Pomógł: 0
Dołączył: 10.12.2009

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


Czy mógł by mi ktoś włożyć skrypt logowania do szablonu html w lewe pole logowanie?

Kod strony:
  1. <title> biggrin.gif </title>
  2. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  3. <style type="text/css">
  4. body{ font-family: verdana,tahoma;font-size: 11px;color: #000;background-color: #fff;}
  5. td { font-family: verdana,tahoma;font-size: 11px;color: #000}
  6.  
  7. a:link,a:visited,a:active {color: #000;text-decoration: none;}
  8. a:hover {color: #9E3F09;text-decoration: underline;}
  9.  
  10.  
  11. .top {background: url(images/top.jpg); width:800px;height:180px}
  12. .m {background: url(images/tlo.jpg); width:200px;height:30px;text-align:center;font-weight:bold;color:#fff}
  13. .m2 {background: url(images/tlo.jpg); width:30px;height:30px;text-align:center;font-weight:bold;color:#fff}
  14. .t {text-align:center;border:1px solid #D87136;padding:10px;font-size:11px;letter-spacing:1px}
  15. .brd {border:1px solid #C6C6C6}
  16.  
  17. .linki {padding:5px;letter-spacing:1px}
  18. .newsy {padding:10px;text-align:justify}
  19.  
  20. .stopka {border:1px solid #8C8C8C;padding:5px;font-size:11px;letter-spacing:1px;}
  21. img {border: 0px;}
  22. </style>
  23. </head>
  24. <table align="center" border="0" cellpadding="0" cellspacing="2" width="800">
  25. <tr>
  26. <td class="top" colspan="2"></td>
  27. </tr>
  28. <tr>
  29. <td valign="top">
  30. <table class="brd" cellpadding="0" cellspacing="0">
  31. <tr>
  32. <td class="m">Menu</td>
  33. </tr>
  34. <tr>
  35. <td>
  36.  
  37. <div class="linki">
  38. <small><img style="font-weight: bold;" src="images/arrow.gif" alt=""><span style="font-weight: bold;"> </span></small><a href="#">Strona gł&oacute;wna</a><br>
  39.  
  40. <img src="images/arrow.gif" alt=""> <a href="#">Patche</a><br>
  41.  
  42. <img src="images/arrow.gif" alt=""> <a href="#">Solucja - Poradnik</a><br>
  43.  
  44. <img src="images/arrow.gif" alt=""> <a href="#">O grze</a><br>
  45.  
  46. <img src="images/arrow.gif" alt="">&nbsp;<a href="#">Wymagania</a><br>
  47.  
  48. <img src="../Nowy%20folder%20%282%29/images/arrow.gif" alt=""> <a href="#">Galeria</a><br>
  49.  
  50. <img src="../Nowy%20folder%20%282%29/images/arrow.gif" alt=""> <a href="#">Serwery</a><small><span style="font-weight: bold;">
  51.  
  52. </span></small>
  53. </div>
  54. </td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. <br>
  59. <table class="brd" cellpadding="0" cellspacing="0">
  60. <tr>
  61. <td class="m">Logowanie</td>
  62. </tr>
  63. <tr>
  64. <td style="text-align: center;">
  65.  
  66. </td>
  67. </tr>
  68. </tbody>
  69. </table>
  70. </td>
  71. <td valign="top">
  72. <table style="width: 600px; height: 54px;" class="brd" cellpadding="0" cellspacing="0">
  73. <tr>
  74. <td class="m2">Newsy</td>
  75. </tr>
  76. <tr>
  77. <td style="text-align: center;" width="390">dasdsa<br>
  78. </td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class="stopka" colspan="2">
  86. Copyright by Beowulf_PL
  87. </td>
  88. </tr>
  89. </tbody>
  90. </body>
  91. </html>
  92.  



Panel logowania:
  1. <?php
  2.  
  3. include("include/session.php");
  4. $page = "main.php";
  5. ?>
  6.  
  7. <html>
  8. <head>
  9. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  10. <title>Skrypt logowanie/rejestracja</title>
  11.  
  12. <link rel="stylesheet" href="style.css" type="text/css" />
  13. </head>
  14. <body>
  15.  
  16. <div id="main" class="container_12">
  17.  
  18. <table>
  19. <tr><td>
  20. <?php
  21.  
  22. if($session->logged_in){
  23.  
  24.  
  25. ?>
  26.  
  27. Witaj, <b><?php echo $session->username; ?></b> |
  28. [<a href="userinfo.php?user=<?php echo $session->username; ?>">Mój profil</a>]&nbsp;[<a href="useredit.php">Edytuj profil</a>]
  29. <?
  30. if(MAIL){
  31. $q = "SELECT mail_id FROM ".TBL_MAIL." WHERE UserTo = '$session->username' and status = 'unread'";
  32. $numUnreadMail = $database->query($q) or die(mysql_error());
  33. $numUnreadMail = mysql_num_rows($numUnreadMail);
  34.  
  35. echo "[<a href=\"mail.php\">Masz $numUnreadMail nowych wiadomości</a>]&nbsp;";
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. ?>
  44.  
  45.  
  46.  
  47. <?php
  48. if($session->isAdmin()){
  49. echo "[<a href=\"admin/admin.php\">Panel Administratora</a>]&nbsp;";
  50. }
  51. echo "[<a href=\"process.php\">Wyloguj</a>]";?></p><?php
  52. }
  53. else{
  54. ?>
  55.  
  56. <div id="login">
  57.  
  58. <?php
  59.  
  60. if($form->num_errors > 0){
  61. echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." błąd(ów) znaleziono</font>";
  62. }
  63. ?>
  64.  
  65. <form action="process.php" method="POST">
  66. <div class='adminbox_title'>Logowanie</div>
  67. <div class='adminbox'>
  68. <table cellpadding='3' cellspacing='0' border='0' align='center'>
  69. <td rowspan='3' valign='top'><img src='admin/access.gif' alt='Access' style='margin-right:0px;'></td>
  70. <td>Nick:</td><td><input type="text" name="user" class="intxt" maxlength="30" value="<?php echo $form->value("user"); ?>"></td><td><?php echo $form->error("user"); ?></td></tr>
  71. <td>Hasło:</td><td><input type="password" name="pass" class="intxt" maxlength="30" value="<?php echo $form->value("pass"); ?>"></td><td><?php echo $form->error("pass"); ?></td></tr>
  72. <td colspan="2" align="left">
  73. <input type="checkbox" name="remember" <?php if($form->value("remember") != ""){ echo "checked"; } ?>>Zapamiętaj Mnie
  74. <input type="hidden" name="sublogin" value="1">
  75. <input type="submit" value="Zaloguj">
  76.  
  77. <br /><a href="forgotpass.php">Zapomniałeś hasła?</a><br>
  78. <a href="register.php">Zarejestruj się!</a><br>
  79. <?php
  80. if(EMAIL_WELCOME){
  81. echo "<a href='valid.php'>Wyślij ponownie kod aktywacyjny</a>";
  82. }
  83. ?></td></tr>
  84. </table>
  85. </div>
  86. </form>
  87.  
  88. </div><!-- #login -->
  89. <?php
  90. }
  91.  
  92.  
  93. ?>
  94. <div id="footer"><br />
  95.  
  96.  
  97.  
  98. <?
  99.  
  100.  
  101.  
  102. echo "</td></tr><tr><td align=\"center\"><br><br>";
  103. echo "<b>Użytkowników:</b> ".$database->getNumMembers()."<br>";
  104. echo "Jest $database->num_active_users zarejestrowanych użytkowników i ";
  105. echo "$database->num_active_guests gości przeglądających stronę.<br><br>";
  106.  
  107. include("include/view_active.php");
  108.  
  109. ?>
  110. </td></tr>
  111. </table>
  112.  
  113.  
  114. </div><!-- #footer -->
  115.  
  116. </div><!-- #main -->
  117.  
  118.  
  119. </body>
  120. </html>
  121.  


--------------------
Go to the top of the page
+Quote Post
pedro84
post 21.06.2010, 15:11:41
Post #2





Grupa: Nieautoryzowani
Postów: 2 249
Pomógł: 305
Dołączył: 2.10.2006

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


Nie, nie mógłby.

Co Ty do jasnej wiesz co to jest crossposting?


--------------------
Google knows the answer...
Go to the top of the page
+Quote Post
o2w5n778
post 21.06.2010, 15:13:28
Post #3





Grupa: Zarejestrowani
Postów: 235
Pomógł: 0
Dołączył: 10.12.2009

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


Nie znam sie na tym tez prosze was o pomoc


--------------------
Go to the top of the page
+Quote Post
yevaud
post 21.06.2010, 15:15:43
Post #4





Grupa: Zarejestrowani
Postów: 471
Pomógł: 89
Dołączył: 29.07.2008
Skąd: Warszawa

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


http://www.justfuckinggoogleit.com/ smile.gif
Go to the top of the page
+Quote Post
pedro84
post 21.06.2010, 15:15:59
Post #5





Grupa: Nieautoryzowani
Postów: 2 249
Pomógł: 305
Dołączył: 2.10.2006

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


Cytat(o2w5n778 @ 21.06.2010, 16:13:28 ) *
Nie znam sie na tym tez prosze was o pomoc

Kogo to obchodzi? Pomoc czy odwalenie roboty za kogoś? Nie znasz się? To się za to nie bierz!


--------------------
Google knows the answer...
Go to the top of the page
+Quote Post
o2w5n778
post 21.06.2010, 15:16:59
Post #6





Grupa: Zarejestrowani
Postów: 235
Pomógł: 0
Dołączył: 10.12.2009

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


Cytat(pedro84 @ 21.06.2010, 16:11:41 ) *
Nie, nie mógłby.

Co Ty do jasnej wiesz co to jest crossposting?


Crosspost – wysłanie tej samej wiadomości na więcej niż jedną grupę dyskusyjną.

Netykieta zaleca wysłanie crossposta, kiedy zagadnienie poruszane w wiadomości dotyczy kilku grup tematycznych. Wiadomość crosspostowana powinna zawierać w nagłówku pole "Followup-To:" (FUT), którego wartość informuje, na jaką grupę newsową ma zostać wysłana odpowiedź. W ten sposób zagadnienie zostanie zasygnalizowane na kilku grupach, lecz docelowo dyskusja będzie się toczyła tylko na jednej grupie.

Nadmierne crosspostowanie (wysyłanie wiadomości do wielu grup naraz bądź przedłużające się crosspostowanie bez ustawienia FUT) jest traktowane jako spamowanie podobnie jak wysyłanie tej samej wiadomości oddzielnie do różnych grup.


--------------------
Go to the top of the page
+Quote Post
Spawnm
post 21.06.2010, 15:27:04
Post #7





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




Cross + lenistwo.
Takie prośby to w dziale giełda ofert.
Zamykam.
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 07:58