Advertisement
Guest User

Joanatha

a guest
Dec 3rd, 2009
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. <?
  2. if (!$_POST){print_form();die();}
  3. ?>
  4. <?
  5. $author=$_POST["author"];
  6. $email=$_POST["email"];
  7. $title=$_POST["title"];
  8. $content=$_POST["content"];
  9. $content = str_replace("<", "&lt;", $content);
  10. $content = str_replace(">", "&rt;", $content);
  11. $fname = date('H:i:s-j/F/Y');
  12. $file = "$fname.php";
  13.  
  14. $cf = fopen($file, "w") or die("Error: file does not exits, and it can not be created.");
  15. fputs($cf, " Author name: $author \n Author Email: $email \n Article Title: $Title \n\n <hr> \n $content");
  16. fclose($cf);
  17.  
  18.  
  19. function print_form(){
  20. ?>
  21.  
  22.  
  23. <html>
  24.  
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset-UTF-8" />
  27. <meta name="keywords" content="prophit, prophit.frih.org, prophit.com, profit, online business, extra money, income" />
  28. <meta name="description" content="" />
  29. <meta name= "Author" content = "Jon=Kyle Bailey" />
  30. <link rel="shortcut icon" href="http://prophit.frih.org/images/favicon.gif">
  31. <link rel = "stylesheet" title = "Stylesheet" type = "text/css" href = "http://prophit.frih.org/web.css">
  32. <title>Submit Article - Prophit</title>
  33. <script language="JavaScript" src="http://prophit.frih.org/qTip.js" type="text/JavaScript"></script>
  34.  
  35. </head>
  36.  
  37. <body>
  38.  
  39. <div class = "header"><img src="http://prophit.frih.org/images/title.png" />
  40. <div class = "content">
  41.  
  42. <script type="text/javascript">
  43. if (navigator.appName == "Microsoft Internet Explorer")
  44. {document.write("<font><b><i>This website is not compatible with Internet Explorer. Please install Google Chrome or Mozilla Firefox.</i></b></font>")}
  45. </script><br />
  46.  
  47. <form action="<? $PHP_SELF; ?>" method="post">
  48. Your name:<input title="Enter your name" name="author" size="30" type="text"> <br>
  49. Your E-Mail:<input title="Enter your e-mail" name="email" size="30" type="text"> <br>
  50. Article Title:<input title="Enter your article's title" name="title" size="30" type="text"> <br>
  51. Article Content:<br>
  52. <textarea title="Type your article here" name="content" cols="80" rows="25">
  53. </textarea>
  54. <br>
  55. <div style="text-align: center;">
  56. <input value="Submit" type="submit">
  57. </div>
  58. </form>
  59. </body>
  60. </html>
  61.  
  62. <center>
  63. <script type="text/javascript"><!--
  64. google_ad_client = "pub-3514985723096531";
  65. /* ProphitContent1 */
  66. google_ad_slot = "2620373101";
  67. google_ad_width = 468;
  68. google_ad_height = 15;
  69. //-->
  70. </script>
  71. <script type="text/javascript"
  72. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  73. </script></center>
  74.  
  75. <center><font color="#7dacda">.</font><div class = "footer">
  76. <script type="text/javascript"><!--
  77. google_ad_client = "pub-3514985723096531";
  78. /* ProphitFooter1 */
  79. google_ad_slot = "7541579192";
  80. google_ad_width = 728;
  81. google_ad_height = 90;
  82. //-->
  83. </script>
  84. <script type="text/javascript"
  85. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  86. </script>
  87. </div></center>
  88. </div>
  89. </div>
  90. </body>
  91.  
  92. </html>
  93.  
  94. <?
  95. } // the function finishes here
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement