public function updateLabels($authenticated_label, $registered_label) { $this->config_dao->save(User_ForgeUGroup::CONFIG_AUTHENTICATED_LABEL, $authenticated_label); $this->config_dao->save(User_ForgeUGroup::CONFIG_REGISTERED_LABEL, $registered_label); }
<?php require $_SERVER['DOCUMENT_ROOT'] . '/_/inc/init.php'; if (isset($_POST['key']) && isset($_POST['value']) && isset($_POST['gv']) && $_COOKIE['cv'] == $_POST['gv']) { $cdao = new ConfigDao(); $cdao->save(new ConfigObj($_POST['key'], $_POST['value'])); echo "Config saved"; } $fdao = new FilesDao(); $searchname = isset($_GET['s']) ? $_GET['s'] : ""; $searchfid = isset($_GET['fid']) ? $_GET['fid'] : ""; $start = is_numeric($_GET['start']) ? $_GET['start'] : 0; $end = is_numeric($_GET['end']) ? $_GET['end'] : 50; $filenb = $fdao->countFiles(); if ($searchfid != "") { $filesList = array($fdao->getByFid($searchfid)); } else { if ($searchname != "") { $filesList = $fdao->searchByName($searchname); } else { $filesList = $fdao->getLastFiles($start, $end); } } $filesTotalSize = $fdao->filesTotalSize() / 1000000; $fullurl = get_full_url() . '/'; $sdao = new SessionsDao(); $sessionscount = $sdao->countSessions(); $usercount = $sdao->countUsers(); $sessionstoday = $sdao->getSessionToday(); $action = isset($_GET['dis']) ? $_GET['dis'] : 1; ?>