I am lost on this one fella's. Throws this code on my new host... never did on my old host.
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/surflike/public_html/members/cashout.php:1) in /home/surflike/public_html/members/cashout.php on line 2
<title>cashout</title><?php
session_start();
include_once("../vars.php");
include_once("../headfoot.php");
include_once("../auth.php");
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
if ($allow_cashout_requests == 0) {
echo("<head><title>$title</title><meta http-equiv=\"Refresh\" content=\"2;URL=$self_url" . "members/?not-enabled\"></head><body><font face=\"$fontface\" color=\"red\"><span style=\"font-size:250%\">$title</span><br><span style=\"font-size:150%\">This page is not enabled on $tile!</span></font></body></html>");
mysql_close;
exit;
}
$res = checkauth();
$usrid = mysql_result($res, 0, "id");
$acctype = mysql_result($res, 0, "acctype");
$pay_to = mysql_result($res, 0, "pay_to");
$pay_address = mysql_result($res, 0, "payout_address");
$roi_cash = round(mysql_result($res, 0, "roi_cash"), 4);
$qaqa = "select cashout from acctype where id=$acctype";
$min_cashout = mysql_result(mysql_query($qaqa), 0);
if ($min_cashout > $roi_cash) {
echo("<head><title>$title</title><meta http-equiv=\"Refresh\" content=\"2;URL=$self_url" . "members/?not-enough-funds\"></head><body><font face=\"$fontface\" color=\"red\"><span style=\"font-size:250%\">$title</span><br><span style=\"font-size:150%\">Not enough funds to request cashout!</span></font></body></html>");
mysql_close;
exit;
}
if ($_POST['req_cash'] == 'requested' && $_POST['submit'] == ' Request Cashout ' && is_numeric($_POST['amount']) && $_POST['amount'] >= $min_cashout && $_POST['amount'] <= $roi_cash) {
secheader();
//==========================
$payout = $_POST['amount'] * (1-$admin_fee/100);
$egold = $pay_address;
$todaysdate = date("Y-m-d");
members_main_menu($members_menu);
//$do_stats = mysql_query("UPDATE monthly_stats SET paid_out=paid_out+$payout WHERE usrid=$usrid");
$upd = mysql_query("INSERT INTO cashout_history (usrid, amount, descr, pay_merch, paid_to, cdate, batch, status) VALUES ($usrid, $payout, '$title withdraw', 'pending', '$egold', '$todaysdate', '', '0')") or die (mysql_error());
$upd = mysql_query("UPDATE user SET roi_cash=roi_cash-$payout WHERE id=$usrid") or die (mysql_error());
//$csures = mysql_query("UPDATE adminprops SET value=value-$payout WHERE field='csurpl'");
//mail($private_sys_email, "Member $usrid: Just withdrawed \$" . $_POST['amount'] . " Cashout", "Hi $title System Here...\n\n\nMember ID: $usrid Just withdrawed \$" . $_POST['amount'] . " cashout.\n\nTheir payout details are: $payout_merchants[$pay_to] - $pay_address\n\nTheir registered $title email: " . $_SESSION['sess_name'] . "\n\nTheir Total Cash: \$$roi_cash", $email_headers);
mail($private_sys_email, "Member $usrid: Requesting \$" . $_POST['amount'] . " Cashout", "Hi $title System Here...\n\n\nMember ID: $usrid is requesting \$" . $_POST['amount'] . " cashout.\n\nTheir payout details are: $payout_merchants[$pay_to] - $pay_address\n\nTheir registered $title email: " . $_SESSION['sess_name'] . "\n\nTheir Total Cash: \$$roi_cash", $email_headers);
echo("<p><font size=2 face=\"$fontface\">SUCCESS!<br><br>You just requested \$" . $_POST['amount'] . " Cashout<br>Paid to: $payout_merchants[$pay_to] - $pay_address<br><br>Please allow $title Admin to verify your account earnings and send through payment.</font></p>");
echo("Requested this month : $cash_request");
secfooter();
mysql_close;
exit;
} else {
$error = "Ensure the amount to cashout is more than \$$min_cashout and <b>not</b> more than \$$roi_cash !!";
}
secheader();
members_main_menu($members_menu);
echo("<p class=big><a href=/members/ title=\"Back to main page\">User account #$usrid</a> : Cashout Request</p>");
if ($error != "") {
echo("<p><font size=2 color=red face=\"$fontface\">$error</font><script>alert('Ensure the amount to cashout is more than \$$min_cashout and not more than \$$roi_cash !!');</script></p>");
}
if ($pay_address == "") {
echo("<p><font size=4 color=red face=\"$fontface\">You need your payment address filled out to receive payment! - <a href=/members/edit.php>Do this here or you will not be paid!</a><br><br>We only use Can-pay for payouts, need a Free Can-Pay account? <a href=\"http://www.can-pay.com/index.php?ref=53203\" target=\"_blank\">Click here</a></font></p>");
} else {
$cashstr = mysql_query("SELECT cashout from user where id=$usrid");
$cash_request = mysql_result($cashstr,0);
echo("<p><font size=2 face=\"$fontface\">Requested This month <b>$cash_request</b></font></p>");
echo("<p><font size=2 face=\"$fontface\">You have in total \$<b>$roi_cash</b> available to cashout.</font></p>");
echo("<form name=\"formc\" method=\"post\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td><strong><font size=\"2\" face=\"$fontface\">Amount to Cashout :</font></strong></td><td><font size=\"2\" face=\"$fontface\">$</font><input name=\"amount\" type=\"text\" size=\"6\" maxlength=\"11\" class=webforms></td>
</tr><tr><td><strong><font size=\"2\" face=\"$fontface\">Pay To :</font></strong></td><td><font size=\"2\" face=\"$fontface\"><b><a href=edit.php title=\"Change your payout details\">$payout_merchants[$pay_to] : $pay_address</a></b></font></td>
</tr><tr><td><strong><font size=\"2\" face=\"$fontface\">Request :</font></strong></td><td><input type=\"hidden\" name=\"req_cash\" value=\"requested\"><input type=\"submit\" name=\"submit\" value=\" Request Cashout \" class=\"formbutton\"></td>
</tr></table></form>");
}
secfooter();
mysql_close;
exit;
?>