Advertisement
keysle

Untitled

Sep 29th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.35 KB | None | 0 0
  1. <?php // more shit code written by keysle for his job... if you're going to use it then at least post on http://k8r.us to honor him in memory
  2. session_start();
  3. $keyString = rand_string();
  4. $_SESSION['permissionKey'] = $keyString;
  5.  
  6.  
  7.  
  8. $fromEmail = $_GET['campaign'];
  9.  
  10. if ( isset( $_COOKIE['beenHere'] ) ){
  11. $cookiesSet = 1;
  12. }
  13.  
  14. session_destroy();
  15.  
  16. function rand_string( $length = 50) {
  17. $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  18. $size = strlen( $chars );
  19. for( $i = 0; $i < $length; $i++ ) {
  20. $str .= $chars[ rand( 0, $size - 1 ) ];
  21. }
  22. return $str;
  23. }
  24. ?>
  25. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  26. <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  27.  
  28. <title>One Big Story: God's Love Through Time</title>
  29. <style type="text/css">
  30. .main {
  31. }
  32.  
  33. .mainbodycopy {
  34. font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  35. font-size: 12px;
  36. color: #4E4E4B;
  37. }
  38. .mainbodyheader {
  39. font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  40. font-size: 24px;
  41. color: #4E4E4B;
  42. font-weight: bold;
  43. }
  44.  
  45. .modulecopybold {
  46. font-weight: bold;
  47. color: #4E4E4B;
  48. font-size: 12px;
  49. text-align: center;
  50. }
  51. #content{
  52. -webkit-box-shadow: 0px 0px 30px 10px rgba(45, 22, 0, 1);
  53. box-shadow: 0px 0px 30px 10px rgba(45, 22, 0, 1);
  54. background-color: #F4F4EF;
  55. width:960px;
  56. margin:0px auto;
  57. }
  58. #header-title{
  59. border-width: 0px;
  60. }
  61. .middle-ground{
  62. width:937px;
  63. margin:0px auto;
  64. }
  65. #content p{
  66. text-indent: 35px;
  67. width: 850px;
  68. margin:0px auto;
  69. margin-bottom: 12px;
  70. }
  71.  
  72. .fileBucket{
  73. display: none;
  74. }
  75.  
  76. .fileBucket .group{
  77. width:300px;
  78. -webkit-box-shadow: 0px 0px 6px 1px rgba(45, 22, 0, 1);
  79. box-shadow: 0px 0px 6px 1px rgba(45, 22, 0, 1);
  80. margin:10px auto;
  81. height:165px;
  82. }
  83.  
  84. .fileBucket .group .title{
  85. width:300px;
  86. text-align: center;
  87. background: #c67b01; /* Old browsers */
  88. background: -moz-linear-gradient(top, #c67b01 3%, #efbb10 100%); /* FF3.6+ */
  89. background: -webkit-gradient(linear, left top, left bottom, color-stop(3%,#c67b01), color-stop(100%,#efbb10)); /* Chrome,Safari4+ */
  90. background: -webkit-linear-gradient(top, #c67b01 3%,#efbb10 100%); /* Chrome10+,Safari5.1+ */
  91. background: -o-linear-gradient(top, #c67b01 3%,#efbb10 100%); /* Opera 11.10+ */
  92. background: -ms-linear-gradient(top, #c67b01 3%,#efbb10 100%); /* IE10+ */
  93. background: linear-gradient(to bottom, #c67b01 3%,#efbb10 100%); /* W3C */
  94. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c67b01', endColorstr='#efbb10',GradientType=0 ); /* IE6-9 */
  95.  
  96. }
  97.  
  98. .fileBucket .files{
  99. width:290px;
  100. }
  101.  
  102. .fileBucket .file{
  103. width:62px;
  104. height:52px;
  105. display: inline;
  106. float:left;
  107. margin-right: 17px;
  108. margin-left: 17px;
  109. }
  110.  
  111. .fileBucket .file .image{
  112. width:50px;
  113. margin:0px auto;
  114. }
  115.  
  116. .fileBucket .file .name{
  117. font-size:11px;
  118. text-align: center;
  119. }
  120. .fileBucket .file a{
  121. text-decoration: none;
  122. color:#000;
  123. border-width: 0px;
  124. }
  125.  
  126. #captureForm{
  127. width:300px;
  128. -webkit-box-shadow: 0px 0px 6px 1px rgba(45, 22, 0, 1);
  129. box-shadow: 0px 0px 6px 1px rgba(45, 22, 0, 1);
  130. margin:10px auto;
  131. height:165px;
  132.  
  133. }
  134. #captureForm .title{
  135. width:300px;
  136. color:black;
  137. font-size:15px;
  138. text-align: center;
  139. background: #c67b01; /* Old browsers */
  140. background: -moz-linear-gradient(top, #c67b01 3%, #efbb10 100%); /* FF3.6+ */
  141. background: -webkit-gradient(linear, left top, left bottom, color-stop(3%,#c67b01), color-stop(100%,#efbb10)); /* Chrome,Safari4+ */
  142. background: -webkit-linear-gradient(top, #c67b01 3%,#efbb10 100%); /* Chrome10+,Safari5.1+ */
  143. background: -o-linear-gradient(top, #c67b01 3%,#efbb10 100%); /* Opera 11.10+ */
  144. background: -ms-linear-gradient(top, #c67b01 3%,#efbb10 100%); /* IE10+ */
  145. background: linear-gradient(to bottom, #c67b01 3%,#efbb10 100%); /* W3C */
  146. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c67b01', endColorstr='#efbb10',GradientType=0 ); /* IE6-9 */
  147. }
  148. #captureForm input{
  149. display:block;
  150. clear:both;
  151. margin:10px auto;
  152. }
  153.  
  154. .fileBucket .thankYou{
  155. display: none;
  156. }
  157. </style>
  158.  
  159. <script src="./obs_files/jquery.js" type="text/javascript" charset="utf-8"></script>
  160. <link rel="stylesheet" href="./obs_files/prettyPhoto.css" type="text/css" media="screen" charset="utf-8"/>
  161. <link rel="stylesheet" href="./obs_files/.css" type="text/css" media="screen" charset="utf-8"/>
  162. <script src="./obs_files/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
  163.  
  164. </head>
  165.  
  166. <body background="./obs_files/paper_pattern.jpg" class="main">
  167. <div id="content">
  168. <div id="header-title" ><a href="http://onebigstory.com/"><img src="./obs_files/OneBigStory_Splash_02.jpg" /></a></div>
  169. <div class="middle-ground"><img src="./obs_files/OneBigStory_Splash_05.jpg" /></div>
  170. <p>Welcome to an exclusive, sneak peek into the latest resource from Orange, One Big Story. The One Big Story initiative is a limited set of 8-week series that can help a generation (preschool, elementary and students) understand how the stories of the Bible connect to tell One Big Story--a story that also includes us. </p>
  171. <p>Our first series will be available for three different age groups--preschool, elementary and students, with each age group having its own age-appropriate theme. (Preschool is called One Big Story: Turn It Up; Elementary is called One Big Story: Turn It Up; and Students is called One Big Story: Continuum.) Each of the series' 8 weeks will provide both the quality components found in our annual curriculums--First Look, 252 Basics and XP3 Students--and weekly video communicators. </p>
  172. <p>The One Big Story curriculum series may be purchased either as an individual age group series or a bundle of all three age groups in Spring 2013. Stay tuned to www.OneBigStory.com for updates. </p>
  173. <p>In the meantime, we want to give you an exclusive look at one week of Large Group for each of the age groups, as well as the One Big Story video. Keep in mind that many of the final Large Group documents for each One Big Story series will include different versions for different age groups; for example, Preschool (Babies/Toddlers/2s/3-5s); Elementary (LG K3, 4/5, Compact). Also, the completed series for each age group will include Small Group, visuals, Parent CUEs and more. </p>
  174. <p>Enjoy this special preview of One Big Story. And remember--this is just a glimpse of something bigger. </p>
  175. <div class="fileBucket">
  176. <h1 class="thankYou">Thank you! Feel free to download any of the below files.</h1>
  177. <!-- START: group 1 -->
  178. <div class="group">
  179. <h1 class="title">Video</h1>
  180. <div class="files">
  181. <div class="file">
  182.  
  183. </div>
  184. <div class="file">
  185. <a href="obs_files/OBSElementarySample.pdf">
  186. <div class="image"><img src="http://f2.braxupload.se/bjcow4.png"></div>
  187. <div class="name">One Big Story Video </div>
  188. </a>
  189. </div>
  190. <div class="file">
  191.  
  192. </div>
  193. </div>
  194. </div>
  195. <!-- END: group 1 -->
  196. <!-- START: group 1 -->
  197. <div class="group">
  198. <h1 class="title">PDFs</h1>
  199. <div class="files">
  200. <div class="file">
  201. <a href="obs_files/OBS_Preschool_Sample.pdf">
  202. <div class="image"><img src="http://i.imgur.com/bjxJZ.png"></div>
  203. <div class="name">One Big Story: Turn It Up (Preschool)</div>
  204. </a>
  205. </div>
  206. <div class="file">
  207. <a href="obs_files/OBSElementarySample.pdf">
  208. <div class="image"><img src="http://i.imgur.com/bjxJZ.png"></div>
  209. <div class="name">One Big Story: Turn It Up (Elementary)</div>
  210. </a>
  211. </div>
  212. <div class="file">
  213. <a href="obs_files/OBSElementarySample.pdf">
  214. <div class="image"><img src="http://i.imgur.com/bjxJZ.png"></div>
  215. <div class="name">One Big Story: Continuum (Students)</div>
  216. </a>
  217. </div>
  218. </div>
  219. </div>
  220. <!-- END: group 1 -->
  221. </div>
  222.  
  223. <?php
  224. if( !$fromEmail || $cookiesSet ){
  225. ?>
  226. <div id="captureForm">
  227. <h1 class="title">To download the files, fill out the form</h1>
  228. <input type="text" id="firstName" placeholder="First Name"/>
  229. <input type="text" id="lastName" placeholder="Last Name"/>
  230. <input type="text" id="email" placeholder="Email"/>
  231. <input id="securityKey" type="hidden" value="<?= $keyString; ?>">
  232. <input id="submit" type="submit" value="Submit"/>
  233. </div>
  234. <?php
  235. }
  236. ?>
  237. <div class="middle-ground"><a href="mailto:onebigstory@rethinkgroup.org"><img src="http://onebigstory.com/images/OneBigStory_Splash_18.jpg" /></a></div>
  238. <div><a href="http://whatisorange.org"><img src="http://onebigstory.com/images/OneBigStory_Splash_19.jpg" /></a></div>
  239. </div>
  240. <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
  241. <script type="text/javascript">
  242. $("#submit").click(function(){
  243. var firstName,lastName,email;
  244. firstName = $("#firstName").val();
  245. lastName = $("#lastName").val();
  246. email = $("#email").val();
  247.  
  248. if ( firstName!="" ){
  249. if ( lastName!="" ){
  250. if ( validateEmail(email) ){
  251.  
  252. $.ajax({
  253. type:"POST",
  254. url:"http://onebigstory.com/sneakpeek/namecapture.php",
  255. data:{
  256. firstName:firstName,
  257. lastName:lastName,
  258. email:email,
  259. },
  260. success: function(){
  261. $("#captureForm").hide();
  262. $(".fileBucket").show();
  263. $(".fileBucket .thankYou").show();
  264. }
  265. });
  266. } else { alert("Try inserting a proper email"); }
  267. } else { alert("Try inserting a last name"); }
  268. } else { alert("Try inserting a first name"); }
  269.  
  270. });
  271.  
  272. function validateEmail(email) {
  273. var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  274. return re.test(email);
  275. }
  276. </script>
  277. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement