CloudTheWolf

index.html

Jan 4th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.30 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4. $token = md5(uniqid(rand(), TRUE));
  5. $_SESSION['token'] = $token;
  6. $_SESSION['token_time'] = time();
  7.  
  8. ?>
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12.   <meta charset="utf-8">
  13.   <title>Freedom Partnership Transfer</title>
  14.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15.   <meta name="description" content="">
  16.   <meta name="author" content="">
  17.  
  18.     <!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
  19.     <!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
  20.     <!--script src="js/less-1.3.3.min.js"></script-->
  21.     <!--append ‘#!watch’ to the browser URL, then refresh the page. -->
  22.    
  23.     <link href="css/bootstrap.min.css" rel="stylesheet">
  24.     <link href="css/style.css" rel="stylesheet">
  25.  
  26.   <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  27.   <!--[if lt IE 9]>
  28.     <script src="js/html5shiv.js"></script>
  29.   <![endif]-->
  30.  
  31.   <!-- Fav and touch icons -->
  32.  
  33.  
  34.     <script type="text/javascript" src="js/jquery.min.js"></script>
  35.     <script type="text/javascript" src="js/bootstrap.min.js"></script>
  36.     <script type="text/javascript" src="js/scripts.js"></script>
  37. </head>
  38.  
  39. <body>
  40. <center><img src="img/logo.png"></centre>
  41. <div class="container">
  42. <?php
  43.  
  44. $confDisplay = 'display:none;';
  45.  
  46. // if the url param exists, display confirmation
  47. if(isset($_GET["success"]) && $_GET["success"]==true){
  48.   $confDisplay = 'display:inline;';
  49. echo('    <div style="<?php echo $confDisplay; ?>" class="alert alert-success" role="alert">
  50.    Your form has been submitted!
  51.    </div>');
  52. }
  53. else if(isset($_GET["fail"]) && $_GET["fail"]==true){
  54.   $confDisplay = 'display:inline;';
  55. echo('    <div style="<?php echo $confDisplay; ?>" class="alert alert-danger" role="alert2">
  56.    Your form was not submitted!
  57.    </div>');
  58. }
  59. ?>
  60.  
  61.  
  62.     <div class="row clearfix">
  63.         <div class="col-md-12 column">
  64.             <div class="page-header">
  65.                 <h3 class="text-center">
  66.                     Partnership Transfer Form
  67.                 </h3>
  68.             </div>
  69.             <p>
  70.                 <span>Are you interested in transferring to Freedom! or a network powered by Freedom?</span><br><br><span>Please fill-out the following information, and hit "Submit" when you are finished :-)</span><br><br><span>All of the transfer's will be done by the beginning of each month, if you choose to cancel your transfer, and stay partnered with your current network. please e-mail our management team: --&gt;</span><a href="mailto:[email protected]">[email protected]</a><br><br><span>Thank you,</span><br><span>Network Studios Management Team</span>
  71.             </p>
  72.             <h3 class="text-center">
  73.             </h3>
  74.            
  75.             <h4>
  76.                 Channel Information
  77.             </h4>
  78.             <form role="form" action="submit.php" method="POST">
  79.                             <input type="hidden" name="token" value="<?php echo $token; ?>" />
  80.                 <div class="form-group">
  81.                      <input type="text" class="alphanumericOnly form-control input-lg"  id="Full-Name" placeholder="Full Name">
  82.                 </div>
  83.                 <div class="form-group">
  84.                      <input type="text" class="alphanumericOnly form-control input-lg"  id="customID" placeholder="Custom ID">
  85.                     <p class="help-block">
  86.                         You can find your custom ID on your <a href="http://apply.networkstudios.tv/" target="_blank">Dashboard</a> in the Overview section.
  87.                     </p>
  88.                 </div>
  89.                 <div class="input-group">
  90.                      <span class="input-group-addon">youtube.com/user/</span>
  91. <input type="text" class="alphanumericOnly form-control input-lg"  id="ChannelUserName" placeholder="MyChannel">
  92.                
  93. </div>
  94. </br>
  95.                 </div>
  96.  
  97. <div class="col-xs-6" style="padding-left: 0px;">
  98.                             <div class="form-group ">
  99.                                 <input type="text" class="form-control input-lg" placeholder="Monthly Views" name="views" id="views" autocomplete="off" required />
  100.                             </div></div><div class="col-xs-6" style="padding-right: 0px;">
  101.                             <div class="form-group ">
  102.                                 <input type="text" class="form-control input-lg" placeholder="Subscribers" name="subs" id="subs" autocomplete="off" onkeypress="return blockNonNumbers(this, event, true, false);" min="-1" value="" required />
  103.                             </div></div>
  104. <h4>Network Transfer Infromation</h4>
  105.                             <div class="form-group ">
  106.                                 <input type="text" class="form-control input-lg" placeholder="Current Network Name" name="netfrom" id="netfrom" autocomplete="off" value="" required />
  107.                                 <span class="help-block">Which network are they currently with in Freedom?</span>
  108.                             </div>
  109.                             <div class="form-group ">
  110.                                 <input type="text" class="form-control input-lg" placeholder="New Network Name" name="netto" id="netto" autocomplete="off" value="" required />
  111.                                 <span class="help-block">Which network are they going to be transferring to?</span>
  112.                             </div>
  113.  <button type="submit" class="btn btn-success btn-lg btn-block" style"width:100%;">Submit</button>
  114.             </form>
  115.         </div>
  116.     </div>
  117. </div>
  118. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  119.     <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  120.  
  121. </body>
  122. </html>
Advertisement
Add Comment
Please, Sign In to add comment