30 lines
2.9 KiB
PHP
30 lines
2.9 KiB
PHP
<?php
|
|
$redirect=1;
|
|
chdir("../");
|
|
include_once ("../admin/header.php");
|
|
|
|
|
|
$query = mysql_query("SELECT * FROM se_semods_userplans, se_users WHERE se_semods_userplans.userplan_user_id=se_users.user_id AND se_users.user_enabled=1 AND 2daynotice=0 AND userplan_plan_id!=4 AND userplan_expiredate<".(time()+(60*60*24*2))." AND userplan_expiredate>=".(time())) or die(mysql_error());
|
|
|
|
while($row=mysql_fetch_array($query))
|
|
{
|
|
//echo $row["user_email"]."<br />";
|
|
send_generic($row["user_email"], $setting['setting_email_fromemail'], "Your BateWorld Premium Membership Expires Soon", "Hi. Your Premium Membership to BateWorld expires soon. Renew now and take advantage of all the great Premium features we offer without interruption. <br /><br />If you renew now you won't lose the remaining days of your previous membership. Your two subscriptions will not overlap, so there's no need to wait. <br /><br />To renew your Premium Membership to BateWorld, click <a href='http://bateworld.com/content.php?page=premium-payment-information'>HERE</a>.<br /><br />Please note that if your account reverts to Basic Membership, you will no longer have access to videos, groups, and some other features, including those you've posted yourself. Once you renew your Premium Membership they will become available to you again.<br /><br />Thank you for supporting BateWorld. If you have any questions or concerns, please contact us at bateworldhelp@gmail.com.", " ", " ");
|
|
|
|
mysql_query("UPDATE se_semods_userplans SET 2daynotice=1");
|
|
|
|
}
|
|
|
|
$query = mysql_query("SELECT * FROM se_semods_userplans, se_users WHERE se_semods_userplans.userplan_user_id=se_users.user_id AND se_users.user_enabled=1 AND 7daynotice=0 AND userplan_plan_id!=4 AND userplan_expiredate<".(time()+(60*60*24*7))." AND userplan_expiredate>=".(time())) or die(mysql_error());
|
|
while($row=mysql_fetch_array($query))
|
|
{
|
|
send_generic($row["user_email"], $setting['setting_email_fromemail'], "Your BateWorld Premium Membership Expires In 7 Days", "Hi. Your Premium Membership to BateWorld expires soon. Renew now and take advantage of all the great Premium features we offer without interruption. <br /><br />If you renew now you won't lose the remaining days of your previous membership. Your two subscriptions will not overlap, so there's no need to wait. <br /><br />To renew your Premium Membership to BateWorld, click <a href='http://bateworld.com/content.php?page=premium-payment-information'>HERE</a>.<br /><br />Please note that if your account reverts to Basic Membership, you will no longer have access to videos, groups, and some other features, including those you've posted yourself. Once you renew your Premium Membership they will become available to you again.<br /><br />Thank you for supporting BateWorld. If you have any questions or concerns, please contact us at bateworldhelp@gmail.com.", " ", " ");
|
|
mysql_query("UPDATE se_semods_userplans SET 7daynotice=1");
|
|
}
|
|
echo "OO";
|
|
|
|
|
|
|
|
|
|
exit;
|