ftruncate($filenum, 0); fwrite($filenum, $block_out); fclose($filenum); } redirect('staffpanel.php?tool=block.settings&action=block.settings', 'Block Settings Have Been Updated!', 3); } function get_cache_array() { return array('ie_user_alert' => 1, 'active_users_on' => 1, 'active_24h_users_on' => 1, 'active_irc_users_on' => 1, 'active_birthday_users_on' => 1, 'disclaimer_on' => 1, 'shoutbox_on' => 1, 'news_on' => 1, 'stats_on' => 1, 'latest_user_on' => 1, 'forum_posts_on' => 1, 'latest_torrents_on' => 1, 'latest_torrents_scroll_on' => 1, 'announcement' => 1, 'donation_progress_on' => 1, 'ads_on' => 1, 'radio_on' => 1, 'torrentfreak_on' => 1, 'xmas_gift_on' => 1, 'active_poll_on' => 1, 'global_demotion_on' => 1, 'global_staff_warn_on' => 1, 'global_message_on' => 1, 'global_staff_uploadapp_on' => 1, 'global_staff_report_on' => 1, 'global_freeleech_on' => 1, 'global_happyhour_on' => 1, 'global_crazyhour_on' => 1); } if (!is_file($block_set_cache)) { $BLOCKS = get_cache_array(); } else { require_once $block_set_cache; if (!is_array($BLOCKS)) { $BLOCKS = get_cache_array(); } } $HTMLOUT = ''; $HTMLOUT .= ' <div class="global_icon"><img src="PIC/blocks.png" alt="" title="Block" class="global_image" width="25"/></div> <div class="global_head">Block Settings</div><br /> <div class="global_text"><br /> <form action="staffpanel.php?tool=block.settings&action=block.settings" method="post"> <div><h1> Index Settings</h1></div> <table width="100%" border="0" cellpadding="5" cellspacing="0"><tr> <td width="60%"> <b>Enable IE alert?</b> <div style="color: gray;">Set this option to "Yes" if you want to enable the IE user alert.</div></td> <td width="40%"><div style="width: auto;" align="right"><#ie_user_alert#></div></td> </tr></table>
fwrite($filenum, $rep_out); fclose($filenum); //echo '<pre>'.$rep_out.'</pre>';exit; } redirect('staffpanel.php?tool=reputation_settings', 'Reputation Settings Have Been Updated!', 3); } function get_cache_array() { return array('rep_is_online' => 1, 'rep_adminpower' => 5, 'rep_minpost' => 50, 'rep_default' => 10, 'rep_userrates' => 5, 'rep_rdpower' => 365, 'rep_pcpower' => 1000, 'rep_kppower' => 100, 'rep_minrep' => 10, 'rep_minpost' => 50, 'rep_maxperday' => 10, 'rep_repeat' => 20, 'rep_undefined' => 'is off the scale'); } if (!file_exists($rep_set_cache)) { $GVARS = get_cache_array(); } else { require_once $rep_set_cache; if (!is_array($GVARS) || count($GVARS) < 15) { $GVARS = get_cache_array(); } } $HTMLOUT = '<div> <table width="100%" border="0" cellpadding="5" cellspacing="0"> <tr> <td style="font-size: 12px; vertical-align: middle; font-weight: bold; color: rgb(0, 0, 0);" align="center">Reputation System Settings</td></tr> <tr><td>This section allows you to configure the User Reputation system.</td> </tr> </table> </div> <br /> <div style="border: 1px solid rgb(0, 0, 0); padding: 5px;"> <form action="staffpanel.php?tool=reputation_settings" name="repoptions" method="post">