Beispiel #1
0
            if (preg_match('/^' . $banip[$cc] . '$/is', $_SERVER['REMOTE_HOST'])) {
                echo "<html><head></head>\n{$cbodytag}";
                $ox = $banguage[4];
                $ox = str_replace('{IDENT}', $ident, $ox);
                echo $ox;
                echo "</body></html>";
                exit;
            }
        }
    }
}
$oldident = $ident;
if (!empty($_COOKIE['pJJChat_Banned'])) {
    $ident = $_COOKIE['pJJChat_Banned'];
}
if (CheckBan($ident, $chatpath) == 0) {
    $ident = $oldident;
    if ($proxyblock == 1 && empty($_SESSION[$realpath]['user']['uid'])) {
        $bl = Proxy_IsProxy($_SERVER['REMOTE_ADDR']);
        if ($bl !== false) {
            echo "This chat blocks open proxies, and you are using one. You have been banned for 8 hours.";
            echo "<br>The list that caught you is: <a href='{$bl}'>{$bl}</a>";
            echo "</body></html>";
            AddBan($ident, time() + 28800, '[proxy]', $chatpath);
            setcookie("pJJChat_Banned", $ident, time() + 604800);
            die;
        }
    }
} else {
    setcookie("pJJChat_Banned", $ident, time() + 604800);
    echo "<html><head></head>\n{$cbodytag}";
Beispiel #2
0
if (file_exists("../{$rpath}/language.php")) {
    require_once "../{$rpath}/language.php";
}
$_SERVER['REMOTE_HOST'] = gethostbyaddr($_SERVER['REMOTE_ADDR']);
if (!empty($_SESSION[$realpath]['ident'])) {
    $ident = $_SESSION[$realpath]['ident'];
} else {
    $ident = mb_substr(md5($_SERVER['REMOTE_ADDR'] . $realpath), 0, $identlenght);
}
$oldident = $ident;
if (!empty($_COOKIE['pJJChat_Banned'])) {
    $ident = $_COOKIE['pJJChat_Banned'];
}
ChatSessionSuspend();
GetChatPrefs($realpath);
if (CheckBan($ident, $realpath) == 0) {
    $ident = $oldident;
    $xcnt = count($banip);
    for ($cc = 0; $cc < $xcnt; $cc++) {
        if ($ident == $banip[$cc] || strncmp($_SERVER['REMOTE_ADDR'], $banip[$cc], strlen($banip[$cc])) == 0 || strncmp($_SERVER['HTTP_X_FORWARDED_FOR'], $banip[$cc], strlen($banip[$cc])) == 0) {
            $ox = $banguage[4];
            $ox = str_replace('{IDENT}', $ident, $ox);
            echo $ox;
            echo '</body></html>';
            exit;
        } else {
            if (strpos($banip[$cc], '.') !== false || strpos($banip[$cc], '*') !== false) {
                $banip[$cc] = str_replace('\\*', '.*', preg_quote($banip[$cc]));
                if (preg_match('/^' . preg_quote($banip[$cc], '/') . '$/is', $_SERVER['REMOTE_HOST'])) {
                    $ox = $banguage[4];
                    $ox = str_replace('{IDENT}', $ident, $ox);
Beispiel #3
0
     }
     $xml['post'] = $output;
     $write_me .= $output;
 } else {
     if (stristr(mb_substr($message, 0, 6), "/clear")) {
         $addok = 0;
         if (CheckFlags("CXZmM", $client['flags'])) {
             @count_mysql_query("DELETE FROM uo_chat_ulist WHERE chat='{$realpath}'", $handler, "sendmsg.php: /clear 1/2");
             @count_mysql_query("DELETE FROM uo_chat_log WHERE chat='{$realpath}'", $handler, "sendmsg.php: /clear 2/2");
             $ox = $language[10];
             $ox = str_replace('{USERNAME}', $handle, $ox);
             $write_me .= $ox;
             $cleared = 1;
         }
     } else {
         if (CheckBan($ident, $chatpath) == 0 && CheckGag($ident, $chatpath) == 0) {
             time_point(__FILE__, __LINE__);
             $ident = $_SESSION[$realpath]['ident'];
             if (CheckFlags("M", $client['flags_user'])) {
                 $tag = '';
             } else {
                 if (CheckFlags("ADpRfXZm", $client['flags_user'])) {
                     $tag = $adminident;
                 } else {
                     if (CheckFlags("Brx", $client['flags_user'])) {
                         $tag = $modident;
                     } else {
                         if (CheckFlags('z', $client['flags_user'])) {
                             $tag = $oocident;
                         } else {
                             if ($client['password']) {
Beispiel #4
0
 function account()
 {
     $this->data['title'] = lang('off_acc_inf') . gen_name_profile();
     $user = get_user();
     $world = get_world();
     if (is_gm()) {
         $query = $this->MSSQL->query(query_config('query_account_q2'), get_login());
     } else {
         $query = $this->MSSQL->query(query_config('query_account_q1'), get_login());
     }
     $this->table->set_template(tpl_table());
     if ($query->num_rows() > 0) {
         foreach ($query->result() as $row) {
             if (!is_gm()) {
                 // $this->table->add_row(lang('off_acc_serial'), $row->serial);
                 $this->table->add_row(lang('off_acc_id'), xss_clean($row->id));
                 $this->table->add_row(lang('off_acc_pass'), $this->_constr_change('main/password', 'password', $row->password));
                 if (isset($row->Email)) {
                     $this->table->add_row(lang('off_acc_email'), $this->_constr_change('main/email', 'email', $row->Email));
                 }
                 //if(isset($row->Email))$this->table->add_row(lang('off_acc_email'),$row->Email);
                 $this->table->add_row(lang('off_acc_ct'), $row->createtime);
                 $this->table->add_row(lang('off_acc_ci'), $row->createip);
                 $this->table->add_row(lang('off_acc_lci'), $row->lastconnectip);
                 $this->table->add_row(lang('off_acc_llt'), $row->lastlogintime);
                 $this->table->add_row(lang('off_acc_llot'), $row->lastlogofftime);
                 if (isset($row->uilock_pw)) {
                     $this->table->add_row(lang('off_acc_up'), $this->_constr_change('main/fgpass', 'fgpass', $row->uilock_pw));
                 }
                 //if(isset($row->uilock_hintanswer))  $this->table->add_row(lang('off_acc_uh'), $row->uilock_hintanswer);
                 $this->table->add_row(lang('off_acc_tp'), $row->TrunkPass);
                 $this->table->add_row(lang('off_acc_ha'), $row->HintAnswer);
                 $this->table->add_row(lang('off_acc_stat'), CheckBan($row->serial));
                 if (config('prembtn', 'core') == true) {
                     $this->table->add_row(lang('off_premium'), $this->_is_premium($row->id, $row->serial));
                 }
             } else {
                 // $this->table->add_row(lang('off_acc_serial'), $row->Serial);
                 $this->table->add_row(lang('off_acc_id'), xss_clean($row->ID));
                 $this->table->add_row(lang('off_acc_pass'), $this->_constr_change('main/gmpassword', 'password', $row->PW));
                 $this->table->add_row(lang('off_acc_ct'), $row->CreateDT);
                 $this->table->add_row(lang('off_acc_lci'), $row->LastConnIP);
                 $this->table->add_row(lang('off_acc_llt'), $row->LastLoginDT);
                 $this->table->add_row(lang('off_acc_llot'), $row->LastLogoffDT);
                 $this->table->add_row('Grade', $row->Grade);
                 $this->table->add_row('SubGrade', $row->SubGrade);
                 $this->table->add_row(lang('off_activeto'), $row->ExpireDT);
                 $this->table->add_row(lang('off_acc_tp'), $row->TrunkPass);
                 $this->table->add_row(lang('off_acc_ha'), $row->HintAnswer);
                 $this->table->add_row(lang('off_acc_stat'), CheckBan($row->Serial));
             }
             $this->data['content'] = $this->table->generate();
         }
     } else {
         $this->data['content'] = lang('off_error_1');
     }
     compile();
 }