case "buypoints";
$subtopic = "buypoints";
$topic = "Buy Points";
include("paypal.php");
break;
case "buypoints";
$subtopic = "buypoints";
$topic = "PayPal";
include("paypal.php");
break;
case "buypoints1";
$subtopic = "buypoints1";
$topic = "DaoPay";
include("daopay.php");
break;
Well you can add 2 different subtopics for paypal and daopay.. Just do the same thing you would normally add them but make it twice. o.o
Like in your index.php instead of:
You can make itPHP:case "buypoints"; $subtopic = "buypoints"; $topic = "Buy Points"; include("paypal.php"); break;
PHP:case "buypoints"; $subtopic = "buypoints"; $topic = "PayPal"; include("paypal.php"); break; case "buypoints1"; $subtopic = "buypoints1"; $topic = "DaoPay"; include("daopay.php"); break;
That would be the easiest way..
Otherwhise you can make "Buy Points" direct you to a page where you choose a link for either one, then those links direct you to paypal or daopay.
case "buypoints";
$subtopic = "buypoints";
$topic = "PayPal";
include("paypal.php");
break;
case "buypoints1";
$subtopic = "buypoints1";
$topic = "Buy Points";
include("buypoints.php");
break;
How do I change so It shows both buypoints and buypoints 1?index.php?subtopic=buypoints
case "buypoints";
$subtopic = "buypoints";
$topic = "Buy Points";
include("buypoints.php");
break;
case "paypal";
$subtopic = "paypal";
$topic = "PayPal";
include("paypal.php");
break;
<h3>Send SMS (not for all countries) or call special number to donate and get points.</h3>
<a href="index.php?subtopic=paypal"><h2>Donate with PayPal</h2></a>
# activation of DaoPay system
$config['daopay'] = array();
$config['daopay_active'] = true; #active daopay system?
# activation of PayPal system
$config['paypal'] = array();
$config['paypal_active'] = true; #active paypal system?
$main_content .= '<tr><td></td><td><input type="submit" value="Sprawdz" /></td></tr></table></form>';
}
else
{
if($config['dotpay_active'])
elseif ($_REQUEST['system'] == 'paypal' && $config['paypal_active'])
{
$main_content .= '
<b>Automatic PayPal Donation System.</b><br><br>
The donation costs 3 EUR (incl. VAT).<br>
After the donation you will receive <b>3 points + 2 bonus points (Tot. 5 points)</b> in your account automatically. <br>Because you donate with PayPal / Creditcard you will receive +2 extra bonus points for free.<br><br>
<b>Here are the steps you need to make:</b> <br>
1. You need a valid creditcard <b>or</b> a PayPal account with a required balance [3 EUR]. <br>
2. Fill in your account number. <br>
3. Click on the donate button. <br>
4. Make a transaction on PayPal. <br>
5. After the transaction 5 points will be automatically added to your account. <br>
6. Go to Item shop and use your points <br> <br> <br> </b>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="YOUR_LOGIN_PAYPAL_EMAIL">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="SERVERNAME Donations">
<b>Account number:</b> <input type="text" name="custom" value="">
<input type="hidden" name="item_number" value="5 Premium Points">
<input type="hidden" name="amount" value="3.0">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="notify_url" value="http://www.YOURADDRESS.com/ipn/ipn.php">
<input type="hidden" name="return" value="http://www.YOURADDRESS.com">
<input type="hidden" name="rm" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG_global.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
';
}