function autoinstall()
{
    $sock = new sockets();
    $sock->getfile('PerformAutoInstall:' . $_GET["autoinstall"]);
    applications_Status();
}
    SaveFolderList();
    exit;
}
if (isset($_GET["AddFolderList"])) {
    AddFolderList();
    exit;
}
if (isset($_GET["DeleteFolderList"])) {
    DeleteFolderList();
    exit;
}
if (isset($_GET["follow"])) {
    follow();
    exit;
}
applications_Status();
function applications_Status()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $html = "<div id='hardlist'>{$all}</div>\n\t\n\t\n\t<div id='folderslist'></div>\n\t<script>LoadAjax('hardlist','{$page}?main=graph');</script>\n\t\n\t";
    $JS["JS"][] = "js/system.js";
    $tpl = new template_users('{folders_monitor}', $html, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}
function graph()
{
    $usersmenus = new usersMenus();
    $all = main_tabs() . "<br>\n\t<H5>{folders_statistics}</H5>\n\t<br>\n\t<div style='padding:3px;border:1px dotted #CCCCCC'>\n\t" . InsertChart('js/charts.swf', "js/charts_library", "listener.graphs.php?FollowHardDisks=yes", 550, 450, "FFFFFF", true, $usersmenus->ChartLicence) . "</div>";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($all);