示例#1
0
         if (unlink("plugins/" . $plugin_file) == TRUE) {
             $plugin_remove_output .= '<font color="blue">Plugin File (' . $plugin_file . ') Deleted</font><br>';
         } else {
             $plugin_remove_output .= '<font color="red"><strong>Plugin File (' . $plugin_file . ') Could NOT Be Deleted?</strong></font><br>';
         }
     } else {
         $plugin_remove_output .= '<font color="red">Plugin File (' . $plugin_file . ') Did Not Exist to Delete?</font><br>';
     }
     // Delete Database Entry
     $sql = "DELETE FROM `options` WHERE `options`.`field_name` LIKE 'installed_plugins%' AND `options`.`field_data` = '{$installed_plugins}' LIMIT 1";
     if (mysql_query($sql) == TRUE) {
         $plugin_remove_output .= '<font color="blue">Plugin Database Entry Deleted</font><br>';
     } else {
         $plugin_remove_output .= '<font color="red"><strong>Plugin Database Entry Could NOT Be Deleted?</strong></font><br>';
     }
     home_screen("Plugin Manager", $plugin_remove_output, options_screen5(), "You can enable or disable plugins.");
     exit;
 }
 if ($_GET["manage"] == "tabs") {
     home_screen("Show/Hide Tabs", NULL, options_screen4(), "You can hide or show certain tabs at the top.");
     exit;
 }
 if ($_GET["tabs"] == "change") {
     $standard_tabs_settings = standard_tab_settings($_POST["tab_peerlist"], $_POST["tab_trans_queue"], $_POST["tab_send_receive"], $_POST["tab_history"], $_POST["tab_generation"], $_POST["tab_system"], $_POST["tab_backup"], $_POST["tab_tools"]);
     $sql = "UPDATE `options` SET `field_data` = '{$standard_tabs_settings}' WHERE `options`.`field_name` = 'standard_tabs_settings' LIMIT 1";
     if (mysql_query($sql) == TRUE) {
         $text_bar = '<font color="blue"><strong>Standard Tab Settings Updated</strong></font><br>';
         if ($_POST["plugins_installed"] == "1") {
             // Cycle through all plugins and set hide/show status for tabs
             $cycle_counter = 0;
             while (empty($_POST["plugins_{$cycle_counter}"]) == FALSE) {
示例#2
0
                    $plugin_remove_output .= '<font color="red"><strong>Plugin File (' . $plugin_file . ') Could NOT Be Deleted?</strong></font><br>';
                }
            } else {
                $plugin_remove_output .= '<font color="red">Plugin File (' . $plugin_file . ') Did Not Exist to Delete?</font><br>';
            }
            // Delete Database Entry
            $sql = "DELETE FROM `options` WHERE `options`.`field_name` LIKE 'installed_plugins%' AND `options`.`field_data` = '{$installed_plugins}' LIMIT 1";
            if (mysql_query($sql) == TRUE) {
                $plugin_remove_output .= '<font color="blue">Plugin Database Entry Deleted</font><br>';
            } else {
                $plugin_remove_output .= '<font color="red"><strong>Plugin Database Entry Could NOT Be Deleted?</strong></font><br>';
            }
            $quick_info = 'You can enable or disable plugins.<br><br>
			<strong>Plugin Services</strong> are started when you login. To shutdown plugin services, log out.<br><br>
			When installing a new plugin service, you must log out first. Log back in and the plugin service will be started.';
            home_screen("Plugin Manager", $plugin_remove_output, options_screen5(), $quick_info);
            exit;
        }
        if ($_GET["manage"] == "tabs") {
            home_screen("Show/Hide Tabs", NULL, options_screen4(), "You can hide or show certain tabs at the top.");
            exit;
        }
        if ($_GET["tabs"] == "change") {
            $standard_tabs_settings = standard_tab_settings($_POST["tab_peerlist"], $_POST["tab_trans_queue"], $_POST["tab_send_receive"], $_POST["tab_history"], $_POST["tab_address"], $_POST["tab_system"], $_POST["tab_backup"], $_POST["tab_tools"]);
            $sql = "UPDATE `options` SET `field_data` = '{$standard_tabs_settings}' WHERE `options`.`field_name` = 'standard_tabs_settings' LIMIT 1";
            if (mysql_query($sql) == TRUE) {
                $text_bar = '<font color="blue"><strong>Standard Tab Settings Updated</strong></font><br>';
                if ($_POST["plugins_installed"] == "1") {
                    // Cycle through all plugins and set hide/show status for tabs
                    $cycle_counter = 0;
                    while (empty($_POST["plugins_{$cycle_counter}"]) == FALSE) {