예제 #1
0
파일: regist.php 프로젝트: Bossgod/3ch
//Text plastic surgery (rorororor)
$email = $sanitize->CleanStr($email, 0);
//Don't allow moderators to f**k with this
$email = preg_replace("[\r\n]", "", $email);
$sub = $sanitize->CleanStr($sub, 0);
//Or this
$sub = preg_replace("[\r\n]", "", $sub);
$url = $sanitize->CleanStr($url, 0);
//Or this
$url = preg_replace("[\r\n]", "", $url);
$resto = $sanitize->CleanStr($resto, 0);
//Or this
$resto = preg_replace("[\r\n]", "", $resto);
$com = $sanitize->CleanStr($com, $moderator);
//But they can with this.
$clean = $sanitize->process($name, $com, $sub, $email, $resto, $url, $dest, $moderator);
if (USE_BBCODE === true) {
    require_once CORE_DIR . '/general/text_process/bbcode.php';
    $bbcode = new BBCode();
    $clean['com'] = $bbcode->format($clean['com']);
}
if (SPOILERS && $spoiler) {
    $clean['sub'] = "SPOILER<>" . $clean['sub'];
}
if ($moderator && isset($_POST['showCap'])) {
    if ($moderator == 1) {
        $clean['name'] = '<span class="cap moderator" >' . $clean['name'] . ' ## Mod </span> <img src="http://3chan.ml/static/mod-icon.png" alt="Mod Icon" title="This user is a 3chan Modorator." style="margin-bottom: -3px;"/> ';
    }
    if ($moderator == 2) {
        $clean['name'] = '<span class="cap admin" >' . $clean['name'] . ' ## Admin </span> <img src="http://3chan.ml/static/admin-icon.png" alt="Admin Icon" title="This user is a 3chan Administrator." style="margin-bottom: -3px;"/>';
    }