Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Benvenuto nel portale delle lezioni della sezione B</title>
- <style type="text/css">
- body {
- color: #2F2F2F;
- background: lightgrey;
- }
- </style>
- </head>
- <body>
- <center>
- <p>Benvenuto nel portale delle lezioni della sezione B... Tutti i diritti sono riservati.<br /><br />Effettuare l'accesso per postare o vedere le lezioni.<br />Buona copiata! XD<br /></p>
- <form action="login.php" method="post">
- <table>
- <tr>
- <td>Username:</td>
- <td><input type="text" name="user"></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input type="password" name="pass"></td>
- </tr>
- </table>
- <input type="submit" name="accedi" value="Accedi!">
- </form>
- </center>
- <body>
- </html>
- <html>
- <head>
- <title>Benvenuto nel portale delle lezioni della sezione B</title>
- <style type="text/css">
- body {
- color: #2F2F2F;
- background: lightgrey;
- }
- </style>
- </head>
- <body>
- <?php
- $user=$_POST['user'];
- $pass=$_POST['pass'];
- if ($user == "sezione_b") {
- if ($pass == "password_lezioni") {
- setcookie("LezioniSezioneB","login",time()+1200);
- echo"<a href='lezioni.php'>Vedi le lezioni!</a><br /><a href='posta.php'>Posta una lezione!</a>";
- }
- else {
- echo "<a href='index.html'>Password errata!</a>";
- }
- }
- else {
- echo "<a href='index.html'>Username errato!</a>";
- }
- ?>
- <body>
- </html>
- <html>
- <head>
- <title>Benvenuto nel portale delle lezioni della sezione B</title>
- <style type="text/css">
- body {
- color: #2F2F2F;
- background: lightgrey;
- }
- </style>
- </head>
- <body>
- <?php
- if($_COOKIE["LezioniSezioneB"]) {
- echo "Inserisci tutti i dati.<br />";
- echo "<table><form action='p_lezione.php' method='post'><tr><td>Autore:</td><td><input type='text' name='autore'></td></tr><tr><td>Data lezione:</td><td><input type='text' name='data'></td></tr><tr><td>Corsa:</td><td><textarea cols='20' rows='3' name='corsa'></textarea></td></tr><tr><td>In diagonale:</td><td><textarea cols='20' rows='3' name='diagonale'></textarea></td></tr><tr><td>Al centro:</td><td><textarea cols='20' rows='3' name='centro'></textarea></td></tr><tr><td>Alla spalliera:</td><td><textarea cols='20' rows='3' name='spalliera'></textarea></td></tr><tr><td>Test valutati:</td><td><textarea cols='20' rows='3' name='test'></textarea></td></tr></table><input type='submit' value='Invia la lezione!'></form>";
- }
- else{
- echo "Sei stato disconnesso (sono passati 20 minuti) o stai tentando di accedere senza i permessi!<br /><a href='index.html'>Ritorna alla home e fai l'accesso</a>";
- }
- ?>
- <body>
- </html>
- <html>
- <head>
- <title>Benvenuto nel portale delle lezioni della sezione B</title>
- <style type="text/css">
- body {
- color: #2F2F2F;
- background: lightgrey;
- }
- </style>
- </head>
- <body>
- <?php
- if($_COOKIE["LezioniSezioneB"]) {
- $autore=$_POST['autore'];
- $data=$_POST['data'];
- $corsa=$_POST['corsa'];
- $diagonale=$_POST['diagonale'];
- $centro=$_POST['centro'];
- $spalliera=$_POST['spalliera'];
- $test=$_POST['test'];
- $lezione="<i>Lezione copiata da <u>$autore</u> del <u>$data</u></i><br /><br /><table border='1'><tr><td>Corsa:</td><td>$corsa</td></tr><tr><td>In diagonale:</td><td>$diagonale</td></tr><tr><td>Al centro:</td><td>$centro</td></tr><tr><td>Alla spalliera:</td><td>$spalliera</td></tr><tr><td>Test Valutati:</td><td>$test</td></tr></table><hr />";
- $fp = fopen('_lezioni.html', 'w');
- fwrite($fp, $lezione);
- fclose($fp);
- echo "<h4>La lezione è stata postata con successo! Grazie $autore!</h4>";
- include("_lezioni.html");
- }
- else{
- echo "Sei stato disconnesso (sono passati 20 minuti) o stai tentando di accedere senza i permessi!<br /><a href='index.html'>Ritorna alla home e fai l'accesso</a>";
- }
- ?>
- </body>
- </html>
- <html>
- <head>
- <title>Benvenuto nel portale delle lezioni della sezione B</title>
- <style type="text/css">
- body {
- color: #2F2F2F;
- background: lightgrey;
- }
- </style>
- </head>
- <body>
- <?php
- if($_COOKIE["LezioniSezioneB"]) { include("_lezioni.html"); }
- else{
- echo "Sei stato disconnesso (sono passati 20 minuti) o stai tentando di accedere senza i permessi!<br /><a href='index.html'>Ritorna alla home e fai l'accesso</a>";
- }
- ?>
- <body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement