General Site Configuration
Table Dimension:
Link Image Width: px
Link Image Height: px
Current Row1 Price: USD
Current Row2 Price: USD
Current Row3 Price: USD
Current Row4 Price: USD
Current Row5 Price: USD
Current Column1 Price: USD
Current Column2 Price: USD
Current Column3 Price: USD
Current Column4 Price: USD
Current Column5 Price: USD
Price Increment: USD
"; break; case "display": $q = mysql_query("SELECT * FROM style WHERE user='admin'"); $a = mysql_fetch_array($q); $content = "
Modify Display Options
Table Background:
Border Color:
Font Color:
Font Face:
Font Size (in px):
Table Width (in %):
"; break; case "update": if ($_POST) { mysql_query("UPDATE configuration SET password= md5('$_POST[pass]') WHERE user='admin'"); } $content .= '
Update Admin Password
New Password:


You will automatically log off when you change your password'; break; case "approve": if ($eval[1] != "") { $q7 = mysql_query("SELECT rowz,columnz FROM links WHERE id='$eval[1]'"); $a7 = mysql_fetch_array($q7); if ($a7[rowz] == "1") { $upd = "rowz"; $other = "columnz"; $value = $a7[columnz]; } if ($a7[columnz] == "1") { $upd = "columnz"; $other = "rowz"; $value = $a7[rowz]; } mysql_query("UPDATE links SET $upd=$upd+1 WHERE paid='1' AND approved='1' AND $other='$value'"); mysql_query("UPDATE links SET approved='1' WHERE id='$eval[1]'"); } $content .= 'Paid listings that are waiting approval are as follows:

'; $q = mysql_query("SELECT * FROM links WHERE paid='1' AND approved='0' ORDER BY id ASC"); while ($a = mysql_fetch_array($q)) { $content .= ""; } $content .= '
E-MailPay TimeImage-URLApproveDelete
$a[email]$a[paytime]approvedelete
'; break; case "list": $content .= 'Current Links:

'; $q = mysql_query("SELECT * FROM links WHERE paid='1' AND approved='1' ORDER BY id ASC"); while ($a = mysql_fetch_array($q)) { $content .= ""; } $content .= '
E-MailRowColumnImage-URLDelete
$a[email]$a[rowz]$a[columnz]delete
'; break; case "delete": if ($eval[1] != "") { mysql_query("DELETE FROM links WHERE id='$eval[1]'"); header("Location: $_SERVER[HTTP_REFERER]"); } break; case "payments": $content .= 'Payments so far:

'; $q = mysql_query("SELECT * FROM payments"); while ($a = mysql_fetch_array($q)) { $q2 = mysql_query("SELECT paid,approved FROM links WHERE id='$a[itemnumber]'"); if (mysql_num_rows($q2) == "0") { $status = "Deleted"; } else { $a2 = mysql_fetch_array($q2); if ($a2[approved] == "1") { $status = "Online"; } else { $status = "Waiting approval"; } } $content .= ""; } $content .= '
Payer E-MailPayment TimeAmountItem Status
$a[email]$a[paytime]$a[amount]$status
'; break; } $templ = str_replace('{content}',$content,$templ); print $templ; ?>