* GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ require_once dirname(dirname(__FILE__)) . '/includes/core.inc.php'; require_once dirname(dirname(__FILE__)) . '/includes/page_template.php'; require_once dirname(dirname(__FILE__)) . '/includes/webapp.inc.php'; if (!checkAuthorization('viewApplications')) { redirect(); } if (isset($_REQUEST['action'])) { if ($_REQUEST['action'] == 'manage') { if (isset($_REQUEST['id'])) { show_manage($_REQUEST['id']); } } } if (!isset($_GET['view'])) { $_GET['view'] = 'all'; } if ($_GET['view'] == 'all') { show_default(); } function show_default() { $applications2 = $_SESSION['service']->applications_list(); $applications = array(); foreach ($applications2 as $k => $v) { if ($v->getAttribute('static') && $v->getAttribute('type') == 'webapp') {
* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ require_once dirname(__FILE__) . '/includes/core.inc.php'; require_once dirname(__FILE__) . '/includes/page_template.php'; if (!checkAuthorization('viewApplications')) { redirect(); } $types = array('linux' => 'linux', 'windows' => 'windows'); $applicationDB = ApplicationDB::getInstance(); if (isset($_REQUEST['action'])) { if ($_REQUEST['action'] == 'manage') { if (isset($_REQUEST['id'])) { show_manage($_REQUEST['id'], $applicationDB); } } } if (!isset($_GET['view'])) { $_GET['view'] = 'all'; } if ($_GET['view'] == 'all') { show_default($prefs, $applicationDB); } function show_default($prefs, $applicationDB) { global $types; $applications2 = $applicationDB->getList(true); $applications = array(); foreach ($applications2 as $k => $v) {
* You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ require_once dirname(__FILE__) . '/includes/core.inc.php'; require_once dirname(__FILE__) . '/includes/page_template.php'; if (!checkAuthorization('viewServers')) { redirect(); } $tm = new Tasks_Manager(); $tm->load_all(); $tm->refresh_all(); if (isset($_REQUEST['action'])) { if ($_REQUEST['action'] == 'manage') { if (isset($_REQUEST['id'])) { show_manage($_REQUEST['id'], $tm); } } } show_default($tm); function show_manage($id, $tm) { $task = false; foreach ($tm->tasks as $t) { if ($t->id == $id) { $task = $t; break; } } if ($task === false) { die_error('Unable to find task ' . $id, __FILE__, __LINE__);
* This program 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 this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ require_once dirname(__FILE__) . '/includes/core.inc.php'; require_once dirname(__FILE__) . '/includes/page_template.php'; if (!checkAuthorization('viewServers')) { redirect('index.php'); } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'manage' && isset($_REQUEST['fqdn'])) { show_manage($_REQUEST['fqdn']); } if (!isset($_GET['view'])) { $_GET['view'] = 'all'; } if ($_GET['view'] == 'all') { show_default(); } elseif ($_GET['view'] == 'unregistered') { show_unregistered(); } function show_default() { //FIX ME ? $a_servs = Abstract_Server::load_registered(true); usort($a_servs, "server_cmp"); if (!is_array($a_servs)) {
* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ require_once dirname(__FILE__) . '/includes/core.inc.php'; require_once dirname(__FILE__) . '/includes/page_template.php'; if (!checkAuthorization('viewUsers')) { redirect(); } $userDB = UserDB::getInstance(); $userGroupDB = UserGroupDB::getInstance(); if (isset($_REQUEST['action'])) { if ($_REQUEST['action'] == 'manage') { if (isset($_REQUEST['id'])) { show_manage($_REQUEST['id'], $userDB, $userGroupDB); } } } if (!isset($_GET['view'])) { $_GET['view'] = 'all'; } if ($_GET['view'] == 'all') { show_default($userDB); } function show_default($userDB) { $usersList = new UsersList($_REQUEST); $us = $usersList->search(); $searchDiv = $usersList->getForm(); $total_us = count($us);