forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
41 lines (36 loc) · 1.37 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?PHP
require 'includes/master.inc.php';
$Auth->requireAdmin('login.php');
if(isset($_POST['btnPayPal']))
{
set_option('paypal_url', $_POST['ipn_url']);
redirect('settings.php');
}
$ipn_url = get_option('paypal_url', DEFAULT_IPN_URL)
?>
<?PHP include('inc/header.inc.php'); ?>
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<div class="block">
<div class="hd">
<h3>PayPal</h3>
</div>
<div class="bd">
<form action="settings.php" method="post">
<p>
<label for="ipn_url">IPN URL</label> <input type="text" name="ipn_url" id="ipn_url" value="<?PHP echo $ipn_url;?>" class="text">
<span class="info">This is where PayPal will post back to when it receives an <a href="https://www.paypal.com/ipn">instant payment notification</a>.
<br>Default is: <a href="<?PHP echo DEFAULT_IPN_URL; ?>"><?PHP echo DEFAULT_IPN_URL; ?></a>
<br>Testing is: <a href="<?PHP echo SANDBOX_IPN_URL; ?>"><?PHP echo SANDBOX_IPN_URL; ?></a></span>
</p>
<p><input type="submit" name="btnPayPal" value="Save PayPal Settings" id="btnPayPal"></p>
</form>
</div>
</div>
</div></div>
</div>
<div id="sidebar" class="yui-b">
</div>
</div>
<?PHP include('inc/footer.inc.php'); ?>