rendered paste body<?php// Make sure no one attempts to run this script "directly"if (!defined('PUN')) exit;// Tell admin_loader.php that this is indeed a plugin and that it is loadeddefine('PUN_PLUGIN_LOADED', 1); if (isset($_POST['submit'])) {$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['shop']).'\' WHERE conf_name=\'o_shop_enabled\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['donate']).'\' WHERE conf_name=\'o_shop_donate\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['title']).'\' WHERE conf_name=\'o_shop_title\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['titleprice']).'\' WHERE conf_name=\'o_shop_titleprice\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['other']).'\' WHERE conf_name=\'o_shop_othertitle\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['othertitleprice']).'\' WHERE conf_name=\'o_shop_otitleprice\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['postcount']).'\' WHERE conf_name=\'o_shop_postcount15\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['count']).'\' WHERE conf_name=\'o_shop_postcount\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['postprice']).'\' WHERE conf_name=\'o_shop_postprice\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['usergroup']).'\' WHERE conf_name=\'o_shop_group\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['groupprice']).'\' WHERE conf_name=\'o_shop_groupprice\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['groupid']).'\' WHERE conf_name=\'o_shop_groupid\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['osig']).'\' WHERE conf_name=\'o_shop_osig\'') or error ('Unable to update board config', __FILE__, __LINE__, $db->error());$db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.intval($_POST['osigprice']).'\' WHERE conf_name=\'o_shop_osigprice\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());require PUN_ROOT.'include/cache.php';generate_config_cache();redirect('admin_loader.php?plugin=AP_Shop.php', 'Shop updated. Redirecting …');}generate_admin_menu($plugin); ?> <div class="blockform"> <h2><span>Cash Mod</span></h2> <div class="box"> <form method="post" action="<?php echo $_SERVER['REQUEST_URI'] ?>"> <p class="submittop"><input type="submit" name="submit" value="Save changes" /></p> <div class="inform"> <fieldset> <legend>Shop</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Shop Enabled</th> <td> <input type="radio" name="shop" value="1"<?php if ($pun_config['o_shop_enabled'] == '1') echo ' checked="checked"' ?> /> <strong>Yes</strong> <input type="radio" name="shop" value="0"<?php if ($pun_config['o_shop_enabled'] == '0') echo ' checked="checked"' ?> /> <strong>No</strong> <span>If selected Yes, The shop will be open.</span> </td> </tr> </table> </div> </fieldset> </div> <div class="inform"> <fieldset> <legend>Donate</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Donate Enabled</th> <td> <input type="radio" name="donate" value="1"<?php if ($pun_config['o_shop_donate'] == '1') echo ' checked="checked"' ?> /> <strong>Yes</strong> <input type="radio" name="donate" value="0"<?php if ($pun_config['o_shop_donate'] == '0') echo ' checked="checked"' ?> /> <strong>No</strong> <span>If selected Yes, users will have the option of donating.</span> </td> </tr> </table> </div> </fieldset> </div> <div class="inform"> <fieldset> <legend>Title Change</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Title Change Enabled</th> <td> <input type="radio" name="title" value="1"<?PHP if ($pun_config['o_shop_title'] == '1') { echo ' checked="checked"'; } ?> /> <strong>Yes</strong> <input type="radio" name="title" value="0"<?PHP if ($pun_config['o_shop_title'] == '0') { echo ' checked="checked"'; } ?> /> <strong>No</strong> <span>When set to Yes, users will have the option of changing there title.</span> </td> </tr> <tr> <th scope="row">Price</th> <td><input type="text" name="titleprice" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_titleprice']; ?>" /> <span>The price it costs to change own title</span> </td> </tr> </table> </div> </fieldset> </div> <div class="inform"> <fieldset> <legend>Other Persons Title</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Other Persons Title Enabled</th> <td> <input type="radio" name="other" value="1"<?PHP if ($pun_config['o_shop_othertitle'] == '1') { echo ' checked="checked"'; } ?> /> <strong>Yes</strong> <input type="radio" name="other" value="0"<?PHP if ($pun_config['o_shop_othertitle'] == '0') { echo ' checked="checked"'; } ?> /> <strong>No</strong> <span>When set to Yes, users will have the option of changing someone elses title.</span> </td> </tr> <tr> <th scope="row">Price</th> <td><input type="text" name="othertitleprice" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_otitleprice']; ?>" /> <span>The price it costs to change someone elses title</span> </td> </tr> </table> </div> </fieldset> </div> <div class="inform"> <fieldset> <legend>Post Count</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Change Post Count</th> <td> <input type="radio" name="postcount" value="1"<?PHP if ($pun_config['o_shop_postcount15'] == '1') { echo ' checked="checked"'; } ?> /> <strong>Yes</strong> <input type="radio" name="postcount" value="0"<?PHP if ($pun_config['o_shop_postcount15'] == '0') { echo ' checked="check"' ; } ?> /> <strong>No</strong> <span>When set to Yes, users will have the option of changing there post count.</span> </td> </tr> <tr> <th scope="row">Post Count</th> <td><input type="text" name="count" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_postcount']; ?>" /> <span>How many posts to gain</span> </td> </tr> <tr> <th scope="row">Price</th> <td><input type="text" name="postprice" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_postprice']; ?>" /> <span>The price it costs to add 15 to your post count</span> </td> </tr> </table> </div> </fieldset> </div> <div class="inform"> <fieldset> <legend>User Group</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Change User Group</th> <td> <input type="radio" name="usergroup" value="1"<?PHP if ($pun_config['o_shop_group'] == '1') { echo ' checked="checked"'; } ?> /> <strong>Yes</strong> <input type="radio" name="usergroup" value="0"<?PHP if ($pun_config['o_shop_group'] == '0') { echo ' checked="check"' ; } ?> /> <strong>No</strong> <span>When set to Yes, users will have the option of changing there user group.</span> </td> </tr> <tr> <th scope="row">Group ID</th> <td><input type="text" name="groupid" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_groupid']; ?>" /> <span>The group id that people will buy them selves into</span> </td> </tr> <tr> <th scope="row">Price</th> <td><input type="text" name="groupprice" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_groupprice']; ?>" /> <span>The price it costs to change your user group</span> </td> </tr> </table> </div> </fieldset> </div> <div class="inform"> <fieldset> <legend>Change other persons signature</legend> <div class="infldset"> <table class="aligntop" cellspacing="0"> <tr> <th scope="row">Change other persons signature</th> <td> <input type="radio" name="osig" value="1"<?PHP if ($pun_config['o_shop_osig'] == '1') { echo ' checked="checked"'; } ?> /> <strong>Yes</strong> <input type="radio" name="osig" value="0"<?PHP if ($pun_config['o_shop_osig'] == '0') { echo ' checked="check"' ; } ?> /> <strong>No</strong> <span>When set to Yes, users will have the option of changing another persons signature.</span> </td> </tr> <th scope="row">Price</th> <td><input type="text" name="osigprice" size="15" maxlength="255" value="<?php echo $pun_config['o_shop_osigprice']; ?>" /> <span>The price it costs to change someone elses signature</span> </td> </tr> </table> </div> </fieldset> </div> <p class="submitend"><input type="submit" name="submit" value="Save changes" /></p> </form> </div> </div>