Exemplo n.º 1
0
    $i++;
    $f[$i]->name = 'bio';
    $f[$i]->type = 'textarea';
    $f[$i]->desc = $l['edit-user-bio'];
    $i++;
    $f[$i]->name = 'custom';
    $f[$i]->type = 'text';
    $f[$i]->desc = $l['edit-user-custom'];
    // build access checkbox's
    $j = 0;
    foreach ($USER_PERMISSIONS as $official) {
        $per[$j]['name'] = 'access[' . $official . ']';
        $per[$j]['desc'] = $l['acp-access-' . $official];
        $per[$j]['value'] = 'x';
        if (empty($_POST)) {
            if ($edituser->isAllowed($official)) {
                $merge['access[' . $official . ']'] = 'x';
            }
        }
        $j++;
    }
    $i++;
    $f[$i]->desc = 'access';
    $f[$i]->type = 'checkboxes';
    $f[$i]->value = $per;
    $i++;
    $f[$i]->type = 'submit';
    $f[$i]->value = $l['submit'];
    $ets->page_body .= build_form($f, $form, $table, $merge);
}
$USESKIN = skin_basic;
Exemplo n.º 2
0
// Sweet template library
define('IN_NLB3', 'true');
$start = mymicrotime();
$db = new sqldb2($DB_CONFIG);
$config = new nlb_config($db);
$user = new nlb_user($db);
$user->checklogin();
require_once $config->langfile();
// require_once lang file
$b = new nlb_blog($db);
if (!$user->isLogedIn) {
    jsRedirect("login.php");
} else {
    $b->setDateOffset($config->get('server_timezone'), $user->get('timezone'));
}
if (!$user->isAllowed('admin')) {
    jsRedirect('index.php');
}
$ets_outter->sitenav = buildMainNav($l, $user);
$ets->page_body = "";
//		N A V   L I N K S
$ets_outter->navtype = $l['acp-nav-admincp'];
$i = 0;
$ets_outter->usernav[$i]->text = $l['acp-nav-news'];
$ets_outter->usernav[$i]->link = script_path . 'admincp.php';
$i++;
$ets_outter->usernav[$i]->text = $l['acp-nav-editnews'];
$ets_outter->usernav[$i]->link = script_path . 'admincp.php?action=edit_list';
$i++;
$ets_outter->usernav[$i]->text = $l['acp-nav-smiles'];
$ets_outter->usernav[$i]->link = script_path . 'admincp.php?action=smiles';