<commit_before><?php
/**
 * Z-Blog with PHP
 * @author
 * @copyright (C) RainbowSoft Studio
 * @version 2.0 2013-07-05
 */

require '../function/c_system_base.php';
require '../function/c_system_admin.php';

$zbp->CheckGzip();
$zbp->Load();

$action = '';
if (GetVars('act', 'GET') == 'MemberEdt') {
    $action = 'MemberEdt';
}

if (GetVars('act', 'GET') == 'MemberNew') {
    $action = 'MemberNew';
}

if (!$zbp->CheckRights($action)) {
    $zbp->ShowError(6, __FILE__, __LINE__);
    die();
}
$blogtitle = $lang['msg']['member_edit'];

require ZBP_PATH . 'zb_system/admin/admin_header.php';
require ZBP_PATH . 'zb_system/admin/admin_top.php';

$memberid = null;
if (isset($_GET['id'])) {
    $memberid = (integer) GetVars('id', 'GET');
} else {
    $memberid = 0;
}

if (!$zbp->CheckRights('MemberAll')) {
    if ((int) $memberid != (int) $zbp->user->ID) {
        $zbp->ShowError(6, __FILE__, __LINE__);
    }
}

$member = $zbp->GetMemberByID($memberid);

?>
<div id="divMain">
    <div class="divHeader2">
        <?php echo $lang['msg']['member_edit']?></div>
    <div class="SubMenu">
<?php
foreach ($GLOBALS['hooks']['Filter_Plugin_Member_Edit_SubMenu'] as $fpname => &$fpsignal) {
    $fpname();
}
?>
    </div>
    <div id="divMain2" class="edit tag_edit">
        <form id="edit" name="edit" method="post" action="#">
            <input id="edtID" name="ID" type="hidden" value="<?php echo $member->ID;?>" />
            <p>
                <span class="title">
                    <?php echo $lang['msg']['member_level']?>:</span>
                <br />
                <select class="edit" size="1" name="Level" id="cmbLevel">
                    <?php echo OutputOptionItemsOfMemberLevel($member->Level);?></select>
                <?php if ($zbp->CheckRights('MemberAll') && $zbp->user->ID != $member->ID) {?>
        &nbsp;(
                <span class="title">
                    <?php echo $lang['msg']['status']?>:</span>
                <label>
                    <input name="Status" type="radio" value="0" <?php echo $member->Status == 0 ? 'checked="checked"' : '';?> />&nbsp;
                    <?php echo $lang['user_status_name'][0]?></label>
                &nbsp;&nbsp;
                <label><commit_msg>Fix classname bug, close #155<commit_after><?php
/**
 * Z-Blog with PHP
 * @author
 * @copyright (C) RainbowSoft Studio
 * @version 2.0 2013-07-05
 */

require '../function/c_system_base.php';
require '../function/c_system_admin.php';

$zbp->CheckGzip();
$zbp->Load();

$action = '';
if (GetVars('act', 'GET') == 'MemberEdt') {
    $action = 'MemberEdt';
}

if (GetVars('act', 'GET') == 'MemberNew') {
    $action = 'MemberNew';
}

if (!$zbp->CheckRights($action)) {
    $zbp->ShowError(6, __FILE__, __LINE__);
    die();
}
$blogtitle = $lang['msg']['member_edit'];

require ZBP_PATH . 'zb_system/admin/admin_header.php';
require ZBP_PATH . 'zb_system/admin/admin_top.php';

$memberid = null;
if (isset($_GET['id'])) {
    $memberid = (integer) GetVars('id', 'GET');
} else {
    $memberid = 0;
}

if (!$zbp->CheckRights('MemberAll')) {
    if ((int) $memberid != (int) $zbp->user->ID) {
        $zbp->ShowError(6, __FILE__, __LINE__);
    }
}

$member = $zbp->GetMemberByID($memberid);

?>
<div id="divMain">
    <div class="divHeader2">
        <?php echo $lang['msg']['member_edit']?></div>
    <div class="SubMenu">
<?php
foreach ($GLOBALS['hooks']['Filter_Plugin_Member_Edit_SubMenu'] as $fpname => &$fpsignal) {
    $fpname();
}
?>
    </div>
    <div id="divMain2" class="edit member_edit">
        <form id="edit" name="edit" method="post" action="#">
            <input id="edtID" name="ID" type="hidden" value="<?php echo $member->ID;?>" />
            <p>
                <span class="title">
                    <?php echo $lang['msg']['member_level']?>:</span>
                <br />
                <select class="edit" size="1" name="Level" id="cmbLevel">
                    <?php echo OutputOptionItemsOfMemberLevel($member->Level);?></select>
                <?php if ($zbp->CheckRights('MemberAll') && $zbp->user->ID != $member->ID) {?>
        &nbsp;(
                <span class="title">
                    <?php echo $lang['msg']['status']?>:</span>
                <label>
                    <input name="Status" type="radio" value="0" <?php echo $member->Status == 0 ? 'checked="checked"' : '';?> />&nbsp;
                    <?php echo $lang['user_status_name'][0]?></label>
                &nbsp;&nbsp;
                <label>
{'fraction_non_alphanumeric': 0.21786589440855425, 'fraction_numerical': 0.00913343729115616, 'mean_word_length': 2.789029535864979, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4017750', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1526, 'n_words': 289}