
ReaSonZ
Members-
Posts
51 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ReaSonZ
-
Re: [McCodes][v2] Mailbox Layout Mod Thanks that fixed my problem
-
Re: MCCODE V2 LOGIN PAGE Sweet mate might go on my new game i might do :-D
-
Re: MCCODE V2 LOGIN PAGE Nice mod +1 Did you forget to post the code ??
-
Re: [McCodes][v2] Mailbox Layout Mod installed but dont work when i click to minimize ? do i need to install somthing on my vps ?
-
Re: [McCodes][v2] Event Layout Mod the mailbox like this would be good :-D
-
Re: [mccode] AV Bounty/Hitmanlist [$20.00] nice :) will purchase if i can
-
Re: [mccodes v2] Jail Bust Offer [$5.00] Added To My Msn
-
Re: [mccodeV2] Donations page Elite now it only shows 1 pack
-
Re: [mccodeV2] Donations page Elite Hey im currently using this and its doubleing the top bar ? any hand ? <?PHP include "globals.php"; ?> <style type="text/css"> .Bline { border-bottom: 1px solid #444444; } </style> <?PHP $q=$db->query("SELECT * FROM donpage ORDER BY dp_ID"); while($dp=$db->fetch_row($q)) { if ($dp['days'] ==0){$dp['days'] ="-";} if ($dp['money'] ==0){$dp['money'] ="-";} if ($dp['crystals'] ==0){$dp['crystals'] ="-";} if ($dp['cost'] ==0){$dp['items'] ="-";} ?> <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table"> <tr style='background:white'> <th class="headerCell">Package</th> <th class="headerCell">Donator days <span style="color: red">*</span></th> <th class="headerCell">Money</th> <th class="headerCell">Crystals</th> <th class="headerCell">Items</th> <th class="headerCell">Cost</th> <th class="headerCell">Buy</th> </tr> <tr style='background:white'> <td class="dottedRow">[b]<?= $dp['package'] ?>[/b]</td> <td class="dottedRow" align="center"><?= $dp['days'] ?></td> <td class="dottedRow" align="center">[b]$[/b]<?= $dp['money'] ?> </td> <td class="dottedRow" align="center"><?= $dp['crystals'] ?></td> <td class="dottedRow" align="center"><?= $dp['items'] ?> </td> <td class="dottedRow" align="center">[b]$[/b]<?= $dp['cost'] ?></td> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <td class="dottedRow" align="center" valign="middle"><input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="<?=$set['paypal'] ?>"> <input type="hidden" name="item_name" value="<?= $domain. "|DP|".$dp['package']."|".$userid ?>"> <input type="hidden" name="amount" value="<?= $dp['cost'] ?>"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://killahcountry.com"> <input type="hidden" name="cancel_return" value="http://killahcountry.com/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://killahcountry.com"> <input type="hidden" name="cn" value="<?= $userid ?>"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </tr> <?PHP echo "</table>"; } ?> Please Read: <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align=left> <u>You Will Get Each Time You Donate</u> [b]NEW![/b] Friend and Black Lists [b]NEW![/b] 17% Energy every 5 mins instead of 8% <u>By donating to <?= $set['game_name'] ?> you are agreeing to the following terms:</u> 1. No refunds. 2. Just because you have bought a package from us, it doesn't mean you can go around breaking rules. So be warned, you can still get banned for breaking them. 3.If you don't get your package, please contact one of the staff, preferably an admin. 4.If you try refunding your money through paypal, we will ban your account. </table> </center> <?PHP $h->endpage(); ?>
-
Re: [mc codes lite] User Credit Card Companys Ammount To Amount V2 Not Tested <?php //www.gamemakerforums.com //Converted By ReasonZ include "globals.php"; $starUpCost = 10000; switch($_GET['action']) { case 'createCompany': view_company_form(); break; case 'processCompany': process_company_form(); break; case 'processTransferForm': process_transfer_form(); break; case 'processLoanBackForm': process_loan_form(); break; case 'processLoan': process_loan(); break; case 'viewLoans': view_loans(); break; case 'viewCompany': view_company(); break; case 'viewLoaners': view_loaners(); break; case 'payLoanBack': view_pay_loan_form(); break; case 'viewTransferForm': view_transfer_form(); break; case 'getLoans': get_loans(); break; default: company_index(); break; } function view_pay_loan_form() { global $ir,$c,$userid; print "You currently have {$ir['money']} which can be used to pay back debts.."; print "<form name='form1' method='post' action='user_cc_companys.php?action=processLoanBackForm&ID={$_GET['ID']}'> <table width='100%' border='1'> <tr> <td>[b]Amount to Transfer: [/b]</td> <td><input name='textAmmount' type='text' id='textAmmount'></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><label> <input type='submit' name='Submit' value='Transfer Money To Credit Card Company'> </label></td> </tr> </table> </form>"; } function view_company_form() { global $ir,$c,$userid; $result = $db->query("SELECT comp_id FROM userCCCompany WHERE comp_user_id='$userid'") or die(mysql_error()); if ($db->num_rows($result) > 0) { print 'You allready have a credit card company.'; } else { print "It costs $starUpCost to start a credit card company"; print '<form name="form1" method="post" action="user_cc_companys.php?action=processCompany"> <table width="100%" border="1"> <tr> <td>[b]Company Name: [/b]</td> <td><input name="textName" type="text" id="textName"></td> </tr> <tr> <td>[b]Company Daily Interest Rate:[/b] ( 1 - 100) </td> <td><input name="textInterest" type="text" id="textInterest"></td> </tr> <tr> <td>[b]Company Max Loan[/b]: </td> <td><label> <input name="textLoan" type="text" id="textLoan" /> </label></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="Submit" value="Create Credit Card Company"> </label></td> </tr> </table> </form>'; } } function process_loan_form() { global $ir,$c,$userid; $ID = mysql_real_escape_string($_GET['ID']); $ammount = mysql_real_escape_string($_POST['textAmmount']); if ($ir['money'] >= $ammount) { $db->query("UPDATE users SET money=money-$ammount WHERE userid='$userid'") or die(mysql_error()); $db->query("UPDATE userCCCompanyClients SET client_ammount_owed=client_ammount_owed-$ammount WHERE client_user_id='$userid' AND client_comp_id='$ID'") or die(mysql_error()); //check if users debt is payed fully $result = $db->query("SELECT client_ammount_owed FROM userCCCompanyClients WHERE client_user_id='$userid' AND client_comp_id='$ID'") or die(mysql_error()); $client = $db->fetch_array($result); if ($client['client_ammount_owed'] <= 0) { $db->query("DELETE FROM userCCCompanyClients WHERE client_user_id='$userid' AND client_comp_id='$ID'") or die(mysql_error()); $db->query("UPDATE userCCCompany SET comp_available_funds=comp_available_funds+$ammount,comp_clients=comp_clients-1 WHERE comp_id='$ID'") or die(mysql_error()); } else { $db->query("UPDATE userCCCompany SET comp_available_funds=comp_available_funds+$ammount WHERE comp_id='$ID'") or die(mysql_error()); } print "You have payed back $ammount"; } else { print "You can't afford the start up cost of $startUpCost"; } } function process_company_form() { global $ir,$c,$userid; if ($ir['money'] >= $starUpCost) { $result = $db->query("SELECT comp_id FROM userCCCompany WHERE comp_user_id='$userid'") or die(mysql_error()); if ($db->num_rows($result) == 0) { $name = mysql_real_escape_string($_POST['textName']); $loan = mysql_real_escape_string($_POST['textLoan']); $inte = mysql_real_escape_string($_POST['textInterest']); $db->query("INSERT INTO userCCCompany (comp_user_id,comp_daily_interest,comp_loan_ammount,comp_name) VALUES ('$userid','$inte', '$loan','$name')") or die(mysql_error()); $db->query("UPDATE users SET money='money-$startUpCost' WHERE userid='$userid'") or die(mysql_error()); print $name . 'Created.. now you can transfer additional money to the company [url="user_cc_companys.php?action=viewTransferForm"]Here[/url]'; } else { print 'You allready have created a credit card company'; } } else { print "You can't afford the start up cost of $startUpCost"; } } function view_transfer_form() { global $ir,$c,$userid; print "You currently have {$ir['money']} which can be transfered to your company."; print '<form name="form1" method="post" action="user_cc_companys.php?action=processTransferForm"> <table width="100%" border="1"> <tr> <td>[b]Amount to Transfer: [/b]</td> <td><input name="textAmmount" type="text" id="textAmmount"></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="Submit" value="Transfer Money To Credit Card Company"> </label></td> </tr> </table> </form>'; } function process_transfer_form() { global $ir,$c,$userid; if ($ir['money'] >= $_POST['textAmmount']) { $ammount = (int)mysql_real_escape_string($_POST['textAmmount']); $db->query("UPDATE userCCCompany SET comp_available_funds=comp_available_funds+$ammount WHERE comp_user_id='$userid'") or die(mysql_error()); $db->query("UPDATE users SET money=money-$ammount WHERE userid='$userid'") or die(mysql_error()); print $ammount . ' has been transfered.'; } else { print "You can't afford to pay $ammount"; } } function company_index() { global $ir,$c,$userid; $result = $db->query("SELECT comp_id FROM userCCCompany WHERE comp_user_id='$userid'") or die(mysql_error()); if ($db->num_rows($result) == 0) { print '[url="user_cc_companys.php?action=createCompany"]Create Credit Card Company[/url] [url="user_cc_companys.php?action=viewLoans"]View Loans[/url] '; } else { $company = $db->fetch_array($result); print '[url="user_cc_companys.php?action=viewLoaners&ID=' . $company['comp_id'] . '"]View Loaners[/url] [url="user_cc_companys.php?action=viewTransferForm"]Transfer Money To Your Credit Card Company[/url] [url="user_cc_companys.php?action=viewLoans"]View Loans[/url] '; } $result = $db->query("SELECT * FROM userCCCompany") or die(mysql_error()); if ($db->num_rows($result) > 0) { print '<table width="100%" border="1"> <tr> <td><div align="center">[b]Company Name [/b]</div></td> <td><div align="center">[b]Clients[/b]</div></td> <td><div align="center">[b]Max Loan [/b]</div></td> <td><div align="center">[b]Interests[/b]</div></td> </tr>'; while($company = $db->fetch_array($result)) { print "<tr> <td>[url='user_cc_companys.php?action=viewCompany&ID={$company[']{$company['comp_name']}[/url]</td> <td>{$company['comp_clients']}</td> <td>{$company['comp_loan_ammount']}</td> <td>{$company['comp_daily_interest']}</td> </tr>"; } print "</table>"; } } function view_company() { global $ir,$c,$userid; $id = mysql_real_escape_string($_GET['ID']); $result = $db->query("SELECT * FROM userCCCompany WHERE comp_id='$id'") or die(mysql_error()); $company = $db->fetch_array($result); print "[b]{$company['comp_name']}: [/b] has {$company['comp_clients']} Clients. Max Loan is: {$company['comp_loan_ammount']} with a daily interest rate of {$company['comp_daily_interest']}% and has {$company['comp_available_funds']} Funds available."; print '<form name="form1" method="post" action="user_cc_companys.php?action=processLoan&ID=' . $id . '"> <table width="100%" border="1"> <tr> <td>[b]Loan Amount: [/b]</td> <td><input name="textAmmount" type="text" id="textAmmount"></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="Submit" value="Get Loan"> </label></td> </tr> </table> </form>'; } function process_loan() { global $ir,$c,$userid; $id = mysql_real_escape_string($_GET['ID']); $ammount = (int)mysql_real_escape_string($_POST['textAmmount']); $result = $db->query("SELECT client_id FROM userCCCompanyClients WHERE client_comp_id='$id' AND client_user_id='$userid' AND client_ammount_owed>'0'") or die(mysql_error()); if ($db->num_rows($result) == 0) { $result = $db->query("SELECT * FROM userCCCompany WHERE comp_id='$id'") or die($db->error()); $company = $db->fetch_array($result); if ($company['comp_available_funds'] >= $ammount) { $db->query("UPDATE users SET money=money+$ammount WHERE userid='$userid'") or die(mysql_error()); $db->query("UPDATE userCCCompany SET comp_available_funds=comp_available_funds-$ammount,comp_clients=comp_clients+1 WHERE comp_user_id='$userid'") or die(mysql_error()); $db->query("INSERT INTO userCCCompanyClients (client_user_id,client_comp_id,client_ammount_owed,client_ammount_loaned, client_ammount_int) VALUES ('$userid','$id', '$ammount','$ammount','{$company['comp_daily_interest']}')") or die(mysql_error()); print $ammount . '$ has been transfered.'; } else { print "The bank can't afford to lend you $ammount"; } } else { print "You allready have a loan with this bank"; } } function view_loaners() { global $ir,$c,$userid; $id = mysql_real_escape_string($_GET['ID']); $result = $db->query("SELECT client_comp_id FROM userCCCompanyClients WHERE client_comp_id='$id'") or die(mysql_error()); if (mysql_num_rows($result) == 0) { print 'You have no Clients right now.'; } else { print '<table width="100%" border="1"> <tr> <td><div align="center">[b]Username[/b]</div></td> <td><div align="center">[b]Amount Owed[/b]</div></td> <td><div align="center">[b]Amount Loaned[/b]</div></td> </tr>'; $result = $db->query("SELECT * FROM userCCCompanyClients WHERE client_comp_id='$id'") or die(mysql_error()); while($client = $db->fetch_row($result)) { $result1 = $db->query("SELECT username,userid FROM users WHERE userid='{$client['client_user_id']}'") or die(mysql_error()); $user = $db->fetch_row($result1); print "<tr> <td>[url='viewuser.php?u={$user[']{$user['username']}[/url]</td> <td>{$client['client_ammount_owed']}</td> <td>{$client['client_ammount_loaned']}</td> </tr>"; } print "</table>"; } } function view_loans() { global $ir,$c,$userid; $result = $db->query("SELECT client_comp_id FROM userCCCompanyClients WHERE client_user_id='$userid'") or die(mysql_error()); if (mysql_num_rows($result) == 0) { print "You don't have no debts."; } else { print '<table width="100%" border="1"> <tr> <td><div align="center">[b]Company [/b]</div></td> <td><div align="center">[b]Pay Back[/b]</div></td> <td><div align="center">[b]Amount Owed[/b]</div></td> <td><div align="center">[b]Amount Loaned[/b]</div></td> </tr>'; $result = $db->query("SELECT * FROM userCCCompanyClients WHERE client_user_id='$userid'") or die(mysql_error()); while($client = $db->fetch_row($result)) { $result1 = $db->query("SELECT * FROM userCCCompany WHERE comp_id='{$client['client_comp_id']}'") or die(mysql_error()); $company = $db->fetch_row($result1); print "<tr> <td>[url='user_cc_companys.php?action=viewCompany&ID={$company[']{$company['comp_name']}[/url]</td> <td>[url='user_cc_companys.php?action=payLoanBack&ID={$company[']Pay Back[/url]</td> <td>{$client['client_ammount_owed']}</td> <td>{$client['client_ammount_loaned']}</td> </tr>"; } print "</table>"; } } ?>
-
Re: [mc codes lite] User Credit Card Companys is ammount fixed
-
Re: [mc codes lite] User Credit Card Companys Great idea +1 V2 maybe
-
Re: [mccode v2] Events Page Updated. Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/username/public_html/events.php on line 65 line 64 $myEvents = mysql_query("SELECT `evTIME`, `evREAD`, `evTEXT`, `evID` FROM `events` WHERE `evUSER` = ".$ir['userid']." ORDER BY ".$by." ".$order." LIMIT ".$page.",".$limit); line 65 while($soc = mysql_fetch_assoc($myEvents)) line 66 {
-
Re: [mccodes V2] Donation Mod. nice +1 so i create a donator pack it will put that donator pack in the ipn for me ?
-
Re: Airplanes [V2] and this dose ??
-
Re: [mccodes v2] Free Login Very Nice +1 Dont suppose you got the top and bottom pictures in a psd do you thanks i use a differnt font
-
V2 Staff password with admin function
ReaSonZ replied to Delete-please's topic in Free Modifications
Re: V2 Staff password with admin function Nice Yubi +1 When I Get Force Addition I Think I Need So Many Post First