0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
admin
/
pages
/
[
Home
]
File: paypal_setup.php
<? if($_POST['Submit']=="Change Paypal ID") { $q_paypal="update payment_methode set id='".htmlspecialchars($_POST['paypal_id'], ENT_QUOTES)."' where gateway='Paypal'"; $r_paypal=mysql_query($q_paypal); } $q="select * from payment_methode where gateway='Paypal'"; $r=mysql_query($q); $row=mysql_fetch_array($r); ?> <link href="../css/admin-style.css" rel="stylesheet" type="text/css"> <table width="500" border="0" cellpadding="2" cellspacing="0" class="table-all-thin-border"> <tr align="left" valign="middle" class="create-catalog-header"> <td height="32"> Setup Paypal</td> </tr> <tr align="left" valign="top"> <td><form name="form1" method="post" action=""> <table width="490" border="0" cellspacing="0" cellpadding="2"> <tr bgcolor="#DFF7E8"> <td align="left" valign="middle" class="left-links">Current Paypal ID</td> <td class="left-links"> <? if(mysql_num_rows($r)==0 || $row['id']=="") { echo "Paypal ID not setted yet"; } else { ?> <?=$row['id']?> <? } ?> </td> </tr> <tr bgcolor="#E8F2FF"> <td width="125" align="left" valign="middle" class="left-links">Change Paypal ID</td> <td class="left-links"> <input name="paypal_id" type="text" id="paypal_id" size="40" value="<?=$row['id']?>"></td> </tr> <tr> <td align="left" valign="middle"> </td> <td><input type="submit" name="Submit" value="Change Paypal ID"></td> </tr> </table> </form></td> </tr> </table>