Exemple #1
0
        $usersClass->editExclusiveAuthor('false', $_GET['id']);
    } elseif (isset($_POST['exclusive_true'])) {
        $usersClass = new users();
        $usersClass->editExclusiveAuthor('true', $_GET['id']);
    }
    $_POST = $cms->get($_GET['id']);
    $badges = explode(',', $_POST['badges']);
    $_POST['badges'] = array();
    foreach ($badges as $badge) {
        $_POST['badges'][] = $badge;
    }
}
$users = $cms->get($_GET['id']);
$users['stats'] = $cms->getStatistic($_GET['id']);
abr('user', $users);
require_once ROOT_PATH . '/apps/' . $_GET['m'] . '/models/groups.class.php';
$g = new groups();
$groups = $g->getAll();
abr('groups', $groups);
require_once ROOT_PATH . '/apps/system/models/badges.class.php';
$badges = new badges();
$badges_data = $badges->getAll(0, 0, "`type` = 'other'");
abr('badges', $badges_data);
if (isset($_POST['badges'])) {
    if (!is_array($_POST['badges'])) {
        $_POST['badges'] = explode(',', $_POST['badges']);
    }
} else {
    $_POST['badges'] = array();
}
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
Exemple #2
0
<?php

// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['groups']);
require_once ROOT_PATH . '/apps/users/models/groups.class.php';
$cms = new groups();
$data = $cms->getAll(START, LIMIT);
abr('data', $data);
$p = paging("?m=" . $_GET['m'] . "&c=groups&p=", "", PAGE, LIMIT, $cms->foundRows);
abr('paging', $p);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';