forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.php
47 lines (42 loc) · 1.8 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
42
43
44
45
46
47
<?PHP
require 'includes/master.inc.php';
$Auth->requireAdmin('login.php');
if(isset($_POST['btnPayPal']))
{
set_option('paypal_url', $_POST['ipn_url']);
set_option('of_email', $_POST['of_email']);
redirect('settings.php');
}
$ipn_url = get_option('paypal_url', DEFAULT_IPN_URL);
$of_email = get_option('of_email', '');
?>
<?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>Misc Settings</h3>
</div>
<div class="bd">
<form action="settings.php" method="post">
<p>
<label for="ipn_url">PayPal 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>
<label for="of_email">OpenFeedback Email</label> <input type="text" name="of_email" id="of_email" value="<?PHP echo $of_email;?>" class="text">
<span class="info">If you have <a href="https://github.com/tylerhall/OpenFeedback">OpenFeedback</a> enabled, this is where those reports will be sent.</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'); ?>