File manager - Edit - /home/webivo6/news.webivox.com/includethis.php.tar
Back
home/webivo6/news.webivox.com/newsletter/includethis.php 0000644 00000001766 15225277131 0017527 0 ustar 00 <? session_start(); require_once("config.php"); if($_GET["action"] == "subscribe") { $fp = fopen("$db_file", "r"); $file_text = fread($fp, 999999); fclose($fp); $subscribers = explode(",",$file_text); foreach($subscribers as $subscriber) { if($subscriber == $_GET["email"]) { $result = 1; break; } else { $result = 0; } } if($result == 1) { print "The email you provided alreay exists. <a href='javascript:history.back(-1)'>please try again</a>"; } else { $fp = fopen("$db_file", "a+"); fwrite($fp, $_GET["email"] . ","); fclose($fp); print "<font face=arial size=2 color=blue>You have been subscribed successfully.</font>"; } } print " <form action='includethis.php'> <input type='text' name='email' size='26' value='Enter your email' onfocus=\"this.value=''\"> <br> <input type='submit' value='Subscribe'> <input type='hidden' name='action' value='subscribe'> </form> "; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 0 |
proxy
|
phpinfo
|
Settings