if (is_dir($basedir)) { $h = opendir($basedir); while (false !== ($f = readdir($h))) { if (substr($f, 0, 1) != ".") { $file = $basedir . $f; include_once $file; if (!isset($options["enable"])) { $options["enable"] = True; } if (!isset($options["refresh"])) { $options["refresh"] = 10; } if ($options["enable"]) { $panel = new AjaxPage(urlStrRedirect('dashboard/main/ajaxPanels'), $options["id"], array("file" => urlencode($file)), $options["refresh"]); $panel->class = "panel"; $panel->display(); } } } } } ?> <script type="text/javascript"> load = function() { try { settings = mmcookie.get('dashboard-settings'); saved_modules = 0; for(zone in settings) for(module in settings[zone]) saved_modules++; // if there is more or less modules loaded
<?php /** * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com * (c) 2007-2012 Mandriva, http://www.mandriva.com * * This file is part of Mandriva Management Console (MMC). * * MMC is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MMC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC. If not, see <http://www.gnu.org/licenses/>. */ require "modules/services/control/localSidebar.php"; require "graph/navbar.inc.php"; $p = new PageGenerator(_T("Core services", "services")); $p->setSideMenu($sidemenu); $p->display(); $ajax = new AjaxPage(urlStrRedirect("services/control/ajaxServicesFilter"), "services", array("parent" => $_GET['action'])); $ajax->display();