Advertisement
Guest User

Untitled

a guest
Aug 17th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.93 KB | None | 0 0
  1. <?php include_once($_SERVER['DOCUMENT_ROOT'] . '/Phenya/helpers.inc.php'); ?>
  2. <?php session_true_start(); ?>
  3. <!DOCTYPE html>
  4. <html>
  5.     <head>
  6.         <title>Отправить цитату</title>
  7.         <meta charset="utf-8">
  8.         <!--<link type="text/css" rel="stylesheet" href="stylesheet.css"> -->
  9.        
  10.     </head>
  11.     <body>
  12.         <?php if (isset($_SESSION['output'])): ?>
  13.             <p style="color: #DF63E6"><?php echo $_SESSION['output']; ?></p>
  14.             <?php endif; ?>
  15.         <?php if(isset($_SESSION['verified']) AND($_SESSION['verified'] === 'true')): ?>
  16.             <form action="/Phenya/admin/process.php" method="POST">
  17.                 <label for="fe-1">Отправить цитату в базу данных</label>
  18.                 <textarea name="textarea" id="fe-1" rows="4" cols="70"></textarea></br>
  19.                 <label for="fe-2">Выберите категорию, в которую хотите отправить цитату:</label>
  20.                 <select id="fe-2" name="select">
  21.                     <option value="Dream">Сны</option>
  22.                     <option value="Animals">Живность</option>
  23.                     <option value="Hugs">Обнимания</option>
  24.                     <option value="Fury">Гнев</option>
  25.                     <option value="Other">Другое</option>
  26.                 </select>
  27.                 <input type="Submit" value="Отправить"/>
  28.                 <input type="hidden" name="time_hash" value="<?php echo microtime(); ?>"/>
  29.             </form>
  30.            
  31.         <?php else: ?>
  32.             <form action="process.php" method="POST">
  33.                 <label for="pswd">Введите пароль:</label>
  34.                 <input type="password" id="pswd" name="pswd"/>
  35.                 <input type="Submit" value="Войти">
  36.                 <input type="hidden" name="time_hash" value="<?php echo microtime(); ?>"/>
  37.             </form>
  38.         <?php endif;?>
  39.         </br>
  40.         <form action="process.php" method="POST">
  41.             <input type="Submit" name="back" value="Вернуться на глагне"/>
  42.             <input type="hidden" name="time_hash" value="<?php echo microtime(); ?>"/>
  43.         </form>    
  44.     </body>
  45. </html>
  46. <?php
  47.     session_unset();
  48.   session_destroy();
  49. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement