示例#1
0
文件: reply.php 项目: rttg125/website
    {
        $idval = $GLOBALS['Reque']->reqval["id"];
        $thr_idval = $GLOBALS['Reque']->reqval["thr_id"];
        $rep_desc = $_REQUEST["rep_desc"];
        $GLOBALS['WebSe']->isLoginUser($getUrl = BASE_WEBURL . '/?thread-' . $thr_idval . '.html&page=1');
        $updatethread = "UPDATE  `" . SQL_PREFIX . "reply` SET rep_desc = '" . $rep_desc . "'  WHERE `rep_id` = " . $idval . " and use_id = " . $_SESSION["webUser"]["use_id"] . "  ";
        $GLOBALS['MySql']->querySql($updatethread);
        $GLOBALS['Templ']->assign('infomessage', $GLOBALS['_LANG']['bd_editsusse']);
        $GLOBALS['Templ']->assign('URL_TIME', URL_TIME);
        $GLOBALS['Templ']->assign('geturl', BASE_WEBURL . '/?thread-' . $thr_idval . '.html&page=1');
        $GLOBALS['Templ']->display('suggestion_tpl.html');
    }
}
$Reply = new Reply();
if ($GLOBALS['Webur']->getval["type"] == 'list') {
    $Reply->infolist();
} else {
    if ($GLOBALS['Webur']->getval["type"] == 'add') {
        $Reply->add();
    } else {
        if ($GLOBALS['Webur']->getval["type"] == 'addinfo') {
            $Reply->addinfo();
        } else {
            if ($GLOBALS['Webur']->getval["type"] == 'edit') {
                $Reply->edit();
            } else {
                if ($GLOBALS['Webur']->getval["type"] == 'editinfo') {
                    $Reply->editinfo();
                } else {
                    if ($GLOBALS['Webur']->getval["type"] == 'del') {
                        $Reply->del();