示例#1
0
        }
    }
    redirect_url("reviews.php");
}
settype($op, 'string');
switch ($op) {
    case "showcontent":
        showcontent($id);
        break;
    case "write_review":
        write_review();
        break;
    case "preview_review":
        preview_review($title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id);
        break;
    case "add_reviews":
        send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $asb_question, $asb_reponse);
        break;
    case "del_review":
        del_review($id_del);
        break;
    case "mod_review":
        mod_review($id);
        break;
    case "sort":
        reviews($field, $order);
        break;
    default:
        reviews("date", "DESC");
        break;
}
示例#2
0
文件: index.php 项目: cbsistem/nexos
     showcontent();
     break;
 case 'write_review':
     write_review();
     break;
 case 'preview_review':
     preview_review();
     break;
 case 'send_review':
     send_review();
     break;
 case 'del_review':
     del_review();
     break;
 case 'mod_review':
     mod_review();
     break;
 case 'postcomment':
     postcomment();
     break;
 case 'savecomment':
     savecomment();
     break;
 case 'del_comment':
     del_comment();
     break;
 default:
     if (strlen($rop) == 1) {
         if (!in_array(strtoupper($rop), $alphabet)) {
             cpg_error(_INVALIDTEXT);
         }