Пример #1
0
        abr('error', $status);
    } else {
        if (isset($personalEdit)) {
            refresh("?m=" . $_GET['m'] . "&c=edit&id=" . $_GET['id'], $langArray['edit_complete']);
        } else {
            refresh("?m=" . $_GET['m'] . "&c=list", $langArray['edit_complete']);
        }
    }
} else {
    //独家设置
    if (isset($_POST['exclusive_false'])) {
        $usersClass = new users();
        $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);
Пример #2
0
    }
}
#推荐作品
if (isset($_POST['feature_save'])) {
    $usersClass = new users();
    $usersClass->editFeatureItem();
    refresh('/' . $languageURL . 'edit/', $langArray['complete_save_feature'], 'complete');
}
#独家作者
if (isset($_POST['exclusive_false'])) {
    $usersClass = new users();
    $usersClass->editExclusiveAuthor('false');
    refresh('/' . $languageURL . 'edit/', $langArray['complete_exclusive_author_off'], 'complete');
} elseif (isset($_POST['exclusive_true'])) {
    $usersClass = new users();
    $usersClass->editExclusiveAuthor('true');
    refresh('/' . $languageURL . 'edit/', $langArray['complete_exclusive_author_on'], 'complete');
}
#更改许可类型
if (isset($_POST['save_license'])) {
    $usersClass = new users();
    $s = $usersClass->editSaveLicense();
    if ($s === true) {
        refresh('/' . $languageURL . 'edit/', $langArray['complete_save_license'], 'complete');
    } else {
        $message = '<ul>';
        foreach ($s as $e) {
            $message .= '<li>' . $e . '</li>';
        }
        $message .= '</ul>';
        addErrorMessage($message, '', 'error');