rhoula

Untitled

Oct 3rd, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. <?php
  2. if ( isset( $_POST['B1'] ) )
  3. {
  4.  
  5. //Define file name here
  6. $sitename = $_POST['sitename'];
  7.  
  8. //Define title tag for new file
  9. $title = $_POST['title'];
  10.  
  11. //Define youtube video link here
  12. $body = $_POST['body'];
  13.  
  14. //Define youtube video link here
  15. $comment = $_POST['comment'];
  16.  
  17. //Define youtube video link here
  18. $paypal = stripslashes($_POST['paypal']);
  19.  
  20. //Define the ad code that they put
  21. $first_include = stripslashes($_POST['1.php']);
  22.  
  23. //Define the ad code that they put
  24. $Reddit = stripslashes($_POST['Reddit']);
  25.  
  26. //Convert video link from normal link embed link
  27. $embedcode = str_replace( '/watch?v=', '/embed/', $body );
  28.  
  29. //Put it all together (-1)
  30. $entry_line1 = "<html><head>";
  31.  
  32. //Put it all together (1)
  33. $entry_line2 = "<title>" . $title . "</title></head><body><h1>$title</h1><br><img src=" . $embedcode . " alt=" . $title . "/><br><br>$comment<br><br><center><script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981) no-repeat top left; }</style><a rel='nofollow' href='http://www.facebook.com/share.php?u=<http://reptiliatus.com/Cpanel/$sitename.php>' onclick='return fbs_click()' target='_blank' class='fb_share_link'>Please click here to share on Facebook</a></center><br><br><br><center>" . $first_include . "</center><br><br><br><center>" . $paypal . "</center></body></html>";
  34.  
  35. //Put it all together (2) Reddit
  36. $entry_line3 = "<a href='http://www.reddit.com/submit?url=http://reptiliatus.com/Cpanel/cut/$sitename.php'><img src='http://reptiliatus.com/Cpanel/redit_icon.png'>&nbsp</a>";
  37.  
  38. //Put it all together (3) Twitter
  39. $entry_line4 = "<a href='https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fimgur.com%2Fgallery%2FvyhJi&url=http%3A%2F%2Freptiliatus.com%2FCpanel%2F$sitename.php&via=Checkthisupcom'><img src='http://reptiliatus.com/Cpanel/twitter.png'></a>";
  40.  
  41. //Put it all together (4) Paypal Donate
  42. $entry_line5 = "<center><form action='https://www.paypal.com/cgi-bin/webscr' method='post'><input type='hidden' name='cmd' value='_s-xclick'><input type='hidden' name='hosted_button_id' value='DYZUWM4KEN6EW'><input type='image' src='https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif' border='0' name='submit' alt='PayPal></form>";
  43.  
  44.  
  45.  
  46. //Make file here with earlier specified file name
  47. $fp = fopen( "$sitename.php", "a" );
  48.  
  49. //Put the files contents in here
  50. fputs( $fp, $includeA);
  51. fputs( $fp, $entry_line2);
  52. fputs( $fp, $entry_line3);
  53. fputs( $fp, $entry_line4);
  54. fputs( $fp, $entry_line5);
  55. fclose( $fp );
  56.  
  57. echo "<a href='$sitename.php'>CLICK HERE TO VISIT YOUR SITE<p/></a>";
  58.  
  59. }
  60. ?>
  61.  
  62.  
  63. <form method='POST' action='<?php echo $_SERVER['PHP_SELF'] ?>'>
  64. File Name:<br/>
  65. <input type='sitename' name='sitename'>.php
  66. <p/>
  67. Page Title: (max 255 chars)<br/>
  68. <input type='title' name='title'>
  69. <p/>
  70. Image Link:<br/>
  71. <input type='body' name='body'>
  72. <p/>
  73. Comment:<br/>
  74. <input type='comment' name='comment'>
  75. <p/>
  76. <input type='submit' name='B1' value='Create new page'>
  77. </form>
  78.  
  79. <a href="http://reptiliatus.com/Cpanel/">Back To cPanel</a><br><br><br><br>
Add Comment
Please, Sign In to add comment