Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [CSS]niewiadoma
Forum PHP.pl > Forum > Przedszkole
Andrzej_INF
Mówię kumplowi że ten dokument korzysta z CSS a on twierdzi że nie
może ktoś to rozstrzygnie.
  1. <?php
  2. <html>
  3.  
  4.    <head>
  5.  
  6.    <title>Admin Login</title>
  7.  
  8.    <link href="admin.css" rel="stylesheet"  type="text/css">
  9.  
  10.    </head>
  11.  
  12.    <body>
  13.  
  14.    <script language="JavaScript">
  15.  
  16.    function checkFields() { missinginfo =  "";
  17.  
  18.    if (document.login.ausername.value ==  "") { missinginfo += "\n      -  Login"; }
  19.  
  20.    if (document.login.apassword.value ==  "") { missinginfo += "\n      -  Haslo"; }
  21.  
  22.    if (missinginfo != "") { missinginfo  = "Te pola sa pus:\n" + missinginfo + "\n";
  23.  
  24.    alert(missinginfo);
  25.  
  26.    return false;
  27.  
  28.    }
  29.  
  30.    else return true;
  31.  
  32.    }
  33.  
  34.    </script>
  35.  
  36.    <div id="menu_header">
  37.  
  38.    <h1>&nbsp;</h1><br>
  39.  
  40.    </div>
  41.  
  42.    <div id="content">
  43.  
  44.    <form action=""  method="post" name="login" onsubmit="return  checkFields();">
  45.  
  46.    <table align="center"  border="0" cellpadding="3" cellspacing="1"  width="300">
  47.  
  48.    <tbody><tr>
  49.  
  50.         <td width="98"  style="font-si:12px">Log:</td>
  51.  
  52.         <td width="187"><input name="ausername" size="15"  value="andrej" class="inputtext"  type="text"></td>
  53.  
  54.    </tr>
  55.  
  56.    <tr>
  57.  
  58.         <td style="font-si:12px">Haslo:</td>
  59.  
  60.         <td><input name="apassword"
  61.  
  62.    value="qw12qw" size="15"  class="inputtext" type="password"></td>
  63.  
  64.    </tr>
  65.  
  66.    <tr>
  67.  
  68.         <td>&nbsp;</td>
  69.  
  70.        <td><input name="Login"
  71.  
  72.    value="Zaloguj"  class="inputbutton" type="submit"></td>
  73.  
  74.    </tr>
  75.  
  76.    </tbody></table>
  77.  
  78.    </form>
  79.  
  80.    </div><div id="footer">
  81.  
  82.    </div>
  83.  
  84.    </body>
  85.  
  86.    </html>
  87. ?>
mike
LOL Co jest nie tak z Twoim kolegą?
Przecież jest jak byk deklaracja pliku ze stylami: <link href="admin.css" rel="stylesheet" type="text/css">
b4x
Kolega nie wie pewnie co to jest CSS tongue.gif Może myli z XSS <lol2>
drPayton
@mike: To że jest arkusz dołączony to jeszcze nie oznacza, że dokument z niego korzysta tongue.gif

Ale to:
  1. <td width="98" style="font-siz:12px">


Jak najbardziej haha.gif
mike
Cytat(drPayton @ 17.09.2008, 18:09:57 ) *
@mike: To że jest arkusz dołączony to jeszcze nie oznacza, że dokument z niego korzysta tongue.gif
Jak nie? Samo dołączenie pliku jest wykorzystywaniem CSS. No chyba, że zaczniesz wymyślać, że a może plik jest pusty, a może to i tamto, ...
b4x
Ja wiem co się kryje w pliku admin.css !

  1. <script language="XSS">
  2. <script language="alert">
  3. <script language="NoCSS">
  4. alert('Hacked');
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.