SHARE
TWEET

Untitled

a guest Dec 9th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <body>
  2. <h1> Laughing Labradors </h1>
  3. <center>
  4. [include file=../includes/nav.inc]
  5.  
  6. [showif [action]=signup]
  7. [search db=../databases/members.db&eqUSERVARdatarq=[uservar]]
  8.  
  9.  [showif [numfound]=0]
  10.  
  11.  [append db=../databases/members.db&autonumber=sku]Fname=[FName]&Lname=[Lname]&Uservar=[Uservar]&Passvar=[Passvar]&Admin=0&Datecreated=[date]&Secondaryvar=[cart][/append]
  12. [setcookie name=jmember&value=[[lastautonumber]]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+2[/math][/format] [math time]{[time]}+
  13. {05:00:00}[/math] GMT&path=/&domain=adventureskies.com]
  14. [setcookie name=jmember2&value=[[cart]]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+2[/math][/format] [math time]{[time]}+
  15. {05:00:00}[/math] GMT&path=/&domain=adventureskies.com]
  16.  
  17. [redirect ../index.html]
  18.  
  19. [/showif]
  20.  
  21.  
  22.  
  23.  
  24.  [showif [numfound]!0]
  25. <h2>User already Created</h2>
  26.  
  27.  [/showif]
  28.  [/search]
  29.  [/showif]
  30.  
  31.  
  32.  
  33.  
  34. <div class="container">
  35.     <h1>Sign Up</h1>
  36.     <form method="post" action="[thisurl]">
  37.     <p>Please fill in this form to create an account.</p>
  38.    
  39.     <p>Username</p><br><input type="text" name="uservar" ID="uservar" value=""></br>
  40.  
  41.     <p>Password</p><br> <input type="text" name="passvar" ID="passvar" value=""></br>
  42.  
  43.   <p>first Name</p><br><input type="text" name="fname" ID="fname" value=""></br>
  44.  
  45.     <p>Last Name</p><br> <input type="text" name="lname" ID="lname" value=""></br>
  46.  
  47.  
  48.  
  49.     <input type="hidden" name="action" value="signup">
  50.     <input type="submit" value="Sign Up">
  51.   </div>
  52. </form>
  53.  
  54. <hr>
  55.  
  56. [showif [action]^login]
  57. [setcookie name=jmember&value=[user]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+2[/math][/format] [math time]{[time]}+
  58. {05:00:00}[/math] GMT&path=/&domain=adventureskies.com]
  59. [redirect [thisurl]]
  60. [/showif]
  61.  
  62. [showif [action]^logout]
  63. [setcookie name=jmember&value=[user]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}-1[/math][/format] [math time]{[time]}+
  64. {05:00:00}[/math] GMT&path=/&domain=adventureskies.com]
  65. [redirect [thisurl]]
  66. [/showif]
  67. <h1>Sign In</h1>
  68.  
  69. [hideif [getcookie name=jmember]=]
  70. Welcome Back [getcookie name=jmember]<br>
  71. <a href="[thisurl]?action=logout">Logout Here</a>
  72. [/hideif]
  73.  
  74. [getcookie name=jmember]<p>
  75. <form method="get" action="[thisurl]">
  76.  
  77. <p>Username</p><br>
  78. <input type="text" name="user" ID="user" value="">
  79. </br>
  80.  
  81. <p>Password</p><br>
  82. <input type="text" name="pass" ID="pass" value="">
  83. </br>
  84. <input type="hidden" name="action" value="login">
  85. <input type="submit" value="sign in">
  86. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top