예제 #1
0
function reAllCache()
{
    global $arrSideModule;
    categories_recount();
    categories_recache();
    calendar_recache();
    statistics_recache();
    hottags_recache();
    archives_recache();
    links_recache();
    filters_recache();
    keywords_recache();
    recentLogs_recache();
    recentComments_recache();
    recentGbooks_recache();
    logsTitle_recache();
    modulesSetting_recache();
    download_recache();
    attachments_recache();
    members_recache();
    skinlist_recache();
    online_recache();
    logs_sidebar_recache($arrSideModule);
}
예제 #2
0
                    $check_info = $nickrsexits != "" ? 0 : 1;
                }
                //检测用户名
                if ($check_info == 1) {
                    $userexits = getFieldValue($DBPrefix . "members", "username='******'addusername']}' or nickname='{$_POST['addusername']}'", "username");
                    $check_info = $userexits != "" ? 0 : 1;
                }
                if ($check_info == 0) {
                    $ActionMessage = $nickrsexits != "" ? "{$strCurUserExists}" : "{$strRegisterInvaild}";
                } else {
                    $sql = "INSERT INTO " . $DBPrefix . "members(username,password,email,isHiddenEmail,homePage,lastVisitTime,lastVisitIP,regIp,hashKey,role,nickname) VALUES ('{$_POST['addusername']}',md5('" . $_POST['addpassword'] . "'),'{$_POST['email']}','{$_POST['isHiddenEmail']}','{$_POST['homePage']}','" . time() . "','" . getip() . "','" . getip() . "','','member','{$_POST['nickname']}')";
                    $DMC->query($sql);
                    $ActionMessage2 = "{$strRegSucc}";
                }
            }
            members_recache();
            settings_recount("members");
            settings_recache();
        }
    }
    if (!empty($_SESSION['username']) && $_SESSION['username'] != "") {
        $dataInfo = $DMC->fetchArray($DMC->query("select nickname,email,isHiddenEmail,homePage from {$DBPrefix}members where username='******'username']}'"));
        $nickname = $dataInfo['nickname'];
        $email = $dataInfo['email'];
        $isHiddenEmail = $dataInfo['isHiddenEmail'];
        $homePage = $dataInfo['homePage'];
    }
    ?>

<!--内容-->
<div id="Tbody">