Cash Mod

Donate
Donate Enabled /> Yes    /> No If selected Yes, users will have the option of donating.
Title Change
Title Change Enabled /> Yes    /> No When set to Yes, users will have the option of changing there title.
Other Persons Title
Other Persons Title Enabled /> Yes    /> No When set to Yes, users will have the option of changing someone elses title.
Post Count
Change Post Count /> Yes    /> No When set to Yes, users will have the option of changing there post count.
User Group
Change User Group /> Yes    /> No When set to Yes, users will have the option of changing there user group.

query('UPDATE '.$db->prefix.'users SET cm_bank=(cm_bank+cm_bank*((('.$now.'-cm_interest)/86400)*'.$pun_config['cm_interest'].'/100)), cm_interest='.$now.'') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value=\''.$currency.'\' WHERE conf_name=\'cm_cur_name\' LIMIT 1'); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['bank_enabled']).' WHERE conf_name=\'cm_bank\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['lottery_enabled']).' WHERE conf_name=\'cm_lottery\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['intereste']).' WHERE conf_name=\'cm_intereste\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['interest']).' WHERE conf_name=\'cm_interest\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['last_win']).' WHERE conf_name=\'cm_last_win\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['lottery_cost']).' WHERE conf_name=\'cm_lottery_cost\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['lottery_pot']).' WHERE conf_name=\'cm_lottery_pot\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); $db->query('UPDATE '.$db->prefix.'config SET conf_value='.intval($_POST['lottery_chance']).' WHERE conf_name=\'cm_lottery_chance\' LIMIT 1') or error('Unable to update config', __FILE__, __LINE__, $db->error()); generate_config_cache(); $query = $db->query('SELECT * FROM '.$db->prefix.'forums ORDER BY disp_position'); if (!$db->num_rows($query)) message('There are currently not any forums.'); while ($forum = $db->fetch_assoc($query)) { if (isset($_POST['cpt_'.$forum['id']])) { $db->query('UPDATE '.$db->prefix.'forums SET cm_cpt='.intval($_POST['cpt_'.$forum['id']]).' WHERE id='.$forum['id'].' LIMIT 1') or error('Unable to update forums', __FILE__, __LINE__, $db->error()); } if (isset($_POST['cpp_'.$forum['id']])) { $db->query('UPDATE '.$db->prefix.'forums SET cm_cpp='.intval($_POST['cpp_'.$forum['id']]).' WHERE id='.$forum['id'].' LIMIT 1') or error('Unable to update forums', __FILE__, __LINE__, $db->error()); } } ?>