Example #1
0
$_REQUEST = TrimArray($_REQUEST);
extract($_REQUEST);
if (!isset($urlblock)) {
    $urlblock = $logblock;
}
if (!empty($altdata)) {
    $chatpath = $altdata;
} else {
    $chatpath = ereg_replace(".*/([^/]+)/gui_opt.php\$", "chat\\1", $_SERVER['PHP_SELF']);
    if ($_SERVER['HTTP_HOST'] != 'v2.pjj.cc' && strstr($_SERVER['HTTP_HOST'], '.pjj.cc')) {
        $chatpath = preg_replace('/(.*?)\\.pjj\\.cc/is', 'chat\\1', $_SERVER['HTTP_HOST']);
    }
}
$fn = "options.php";
$flags = ChatVerifyLogin($_REQUEST['login'], $_REQUEST['password'], $chatpath);
$bing = GetChatPrefs($chatpath);
if (!empty($message) && CheckFlags("oXZmM", $flags)) {
    @count_mysql_query("DELETE FROM uo_chat_adminlog WHERE stamp<DATE_SUB(now(), INTERVAL 28 DAY)", $handler);
    @count_mysql_query("INSERT INTO uo_chat_adminlog\n\t\t\t(page_id,chat_id,user_id,user_ip,stamp)\n\t\t\tVALUES (\n\t\t\t2,\n\t\t\t{$GLOBALS['biglog']['chat_id']},\n\t\t\t{$GLOBALS['biglog']['user_id']},\n\t\t\t'{$_SERVER['REMOTE_ADDR']}',\n\t\t\tnow()\n\t\t\t)", $handler);
    $fi = fopen($fn, "w");
    if (!$fi) {
        die("An error occured trying to write to the file.");
    }
    fwrite($fi, "<?php\n\$banwords = array (\n");
    for ($cc = 0; $cc < count($_REQUEST['iname']); $cc++) {
        if (trim($_REQUEST['iname'][$cc]) != "") {
            fwrite($fi, var_export(stripslashes(trim($_REQUEST['iname'][$cc])), true) . " => " . var_export(stripslashes(trim($_REQUEST['ifile'][$cc])), true) . ",\n");
        }
    }
    fwrite($fi, ");\n\$images = array(\n");
    for ($cc = 0; $cc < count($_REQUEST['images']); $cc++) {
Example #2
0
}
?>
</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<script type="text/javascript">
if (window != window.top) {
	top.location.href = location.href;
}
</script>
</head>

<?php 
$realpath = preg_replace('@.*/([^/]+)/custom.php$@', '\\1', $_SERVER['PHP_SELF']);
$chatpath = $realpath;
GetChatPrefs($realpath);
$GLOBALS['biglog']['real_id'] = $GLOBALS['biglog']['chat_id'];
if ($_REQUEST['custom']) {
    echo "<frameset cols='*, 0' border='1' MARGINWIDTH='0' MARGINHEIGHT='0'>";
    if (strstr($_REQUEST['avatar'], "long")) {
        if (strstr($_REQUEST['avatar'], "right")) {
            if ($_REQUEST['console'] == "bottom") {
                echo "<FRAMESET Cols='*, {$_REQUEST['uwidth']}' border=1>\n\t\t\t\t\t<FRAMESET Rows='*, {$_REQUEST['cheight']}' border=1><FRAME SRC='{$initlink}' NAME='TextWindow' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'>\n\t\t\t\t\t<FRAME SRC='{$cpath}" . "login.php' NAME='Console' SCROLLING='auto' MARGINWIDTH='0' MARGINHEIGHT='0'>\n\t\t\t\t\t</FRAMESET><FRAME SRC='{$cpath}" . "userlist.php' NAME='Userlist' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'></frameset>";
            } else {
                echo "<FRAMESET Cols='*, {$_REQUEST['uwidth']}' border=1>\n\t\t\t\t\t<FRAMESET Rows='{$_REQUEST['cheight']}, *' border=1>\n\t\t\t\t\t<FRAME SRC='{$cpath}" . "login.php' NAME='Console' SCROLLING='auto' MARGINWIDTH='0' MARGINHEIGHT='0'>\n\t\t\t\t\t<FRAME SRC='{$initlink}' NAME='TextWindow' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'>\n\t\t\t\t\t</FRAMESET><FRAME SRC='{$cpath}" . "userlist.php' NAME='Userlist' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'></frameset>";
            }
        } else {
            if ($_REQUEST['console'] == "bottom") {
                echo "<FRAMESET Cols='{$_REQUEST['uwidth']}, *' border=1><FRAME SRC='{$cpath}" . "userlist.php' NAME='Userlist' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'>\n\t\t\t\t\t<FRAMESET Rows='*, {$_REQUEST['cheight']}' border=1><FRAME SRC='{$initlink}' NAME='TextWindow' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'>\n\t\t\t\t\t<FRAME SRC='{$cpath}" . "login.php' NAME='Console' SCROLLING='auto' MARGINWIDTH='0' MARGINHEIGHT='0'>\n\t\t\t\t\t</FRAMESET></frameset>";
            } else {
                echo "<FRAMESET Cols='{$_REQUEST['uwidth']}, *' border=1><FRAME SRC='{$cpath}" . "userlist.php' NAME='Userlist' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'>\n\t\t\t\t\t<FRAMESET Rows='{$_REQUEST['cheight']}, *' border=1>\n\t\t\t\t\t<FRAME SRC='{$cpath}" . "login.php' NAME='Console' SCROLLING='auto' MARGINWIDTH='0' MARGINHEIGHT='0'>\n\t\t\t\t\t<FRAME SRC='{$initlink}' NAME='TextWindow' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='AUTO'>\n\t\t\t\t\t</FRAMESET></frameset>";
Example #3
0
require_once '../std_uo.php';
require_once '../' . $realpath . '/options.php';
require_once '../common/banhelp.php';
require_once '../common/ignore.php';
require_once '../common/lastmsg.php';
require_once '../common/proxy.php';
require_once '../common/language.php';
if (file_exists('../' . $realpath . '/language.php')) {
    require_once '../' . $realpath . '/language.php';
}
if (empty($dtcalc)) {
    $dtcalc = 'g:ia, F d (T)';
}
GetChatPrefs($realpath);
$GLOBALS['biglog']['real_id'] = $GLOBALS['biglog']['chat_id'];
GetChatPrefs($chatpath);
$realpath = 'chat' . $realpath;
$chatpath = $realpath;
$inlinemsg = '<p><b>This chat has no valid Master Email contact. Please provide one in Settings.</b><p>';
if (strpos($cadmin, '@') && strpos($cadmin, '.')) {
    $inlinemsg = '';
}
if (!$_REQUEST['cspeed']) {
    $_REQUEST['cspeed'] = 'default';
}
if ($_REQUEST['cspeed'] != 'default') {
    $respeed = $_REQUEST['cspeed'];
}
if (!empty($_SESSION[$realpath]['ident'])) {
    $ident = $_SESSION[$realpath]['ident'];
} else {
Example #4
0
$ooc_r = str_replace("\\'", "`", $ooc_r);
$ooc_l = str_replace("\"", "`", $_REQUEST['ooc_l']);
$ooc_l = str_replace("\\'", "`", $ooc_l);
if (empty($ooc_l)) {
    $ooc_l = '((';
}
if (empty($ooc_r)) {
    $ooc_r = '))';
}
$write_me = '';
require_once '../common/banhelp.php';
require_once '../common/ignore.php';
require_once '../common/faction_help.php';
GetChatPrefs($realpath);
$GLOBALS['biglog']['real_id'] = $GLOBALS['biglog']['chat_id'];
$cpref = GetChatPrefs($chatpath);
$color = FixColor($_REQUEST['color']);
$_SESSION[$realpath]['color'] = $color;
if (!$_REQUEST['cspeed']) {
    $_REQUEST['cspeed'] = $respeed;
} else {
    if ($_REQUEST['cspeed'] < 7) {
        $_REQUEST['cspeed'] = 7;
    } else {
        if ($_REQUEST['cspeed'] > 600) {
            $_REQUEST['cspeed'] = 600;
        }
    }
}
$cspeed = $_REQUEST['cspeed'];
$_SESSION[$realpath]['cspeed'] = $cspeed;
Example #5
0
function ShowList($chatpath)
{
    global $handler, $timeout, $tzone, $rpath, $master_name_filter;
    @count_mysql_query("DELETE FROM uo_chat_ulist WHERE chat='{$chatpath}' AND utime<'" . (time() - $timeout) . "'", $handler, "helpers.php: ShowList() 1/4");
    //echo "<base href=''>";
    require_once "../common/image.php";
    $usels = array();
    $query = "";
    $result = @count_mysql_query("SELECT chat,ident,username,link,image,utime FROM uo_chat_ulist WHERE chat='{$chatpath}' ORDER BY utime DESC", $handler, "helpers.php: ShowList() 2/4");
    while ($usel = @mysql_fetch_row($result)) {
        $usel[2] = str_replace('_', ' ', $usel[2]);
        $usels[] = $usel;
        $query .= "username='******' OR ";
    }
    @mysql_free_result($result);
    if (count($usels) < 1) {
        return 1;
    }
    $cpref = GetChatPrefs($chatpath);
    $query = "(" . ereg_replace("(.*) OR \$", "\\1", $query) . ")";
    $rez = @count_mysql_query("SELECT username FROM uo_chat_database WHERE chat='{$chatpath}' AND {$query} AND profile!='' AND dtime IS NULL", $handler, "helpers.php: ShowList() 3/4");
    $profs = "";
    while ($usel = @mysql_fetch_row($rez)) {
        $profs .= "{$usel['0']}|";
    }
    @mysql_free_result($rez);
    $rez = @count_mysql_query("SELECT prefs,email,aim,icq,ym,msn,site,username,skype,lastfm,flickr,facebook,gplus,steam FROM uo_chat_database WHERE chat='{$chatpath}' AND {$query} AND dtime IS NULL", $handler, "helpers.php: ShowList() 4/4");
    $prefs = array();
    while ($usel = @mysql_fetch_row($rez)) {
        $prefs[] = $usel;
    }
    @mysql_free_result($rez);
    $cnts = count($usels);
    for ($ix = 0; $ix < $cnts; $ix++) {
        $usel = $usels[$ix];
        $fixhandle = trim(eregi_replace($master_name_filter, "", strtolower($usel[2])));
        echo "<hr width='75%'>\n";
        $usel[3] = htmlentities(str_replace("`", "'", $usel[3]));
        $usel[4] = trim(str_replace("`", "'", $usel[4]));
        $usel[2] = htmlentities(str_replace("`", "'", $usel[2]));
        $uluser = $usel[2];
        $imgid = $ix + 1;
        unset($upref);
        for ($ig = 0; $ig < count($prefs); $ig++) {
            if (strcasecmp($prefs[$ig][7], $fixhandle) == 0) {
                $upref = $prefs[$ig];
            }
        }
        if (!empty($upref)) {
            echo '<a onclick="setConsoleChannel(\'' . $fixhandle . '\');" class="setchannel">';
        }
        if ($usel[4] && $usel[3]) {
            if ($_REQUEST['noimg'] > 0) {
                echo "[<a href='{$usel['4']}' target='_blank'><i>Open Image</i></a>]<br><span title=\"{$usel['3']}\" class='handle withlink'>{$uluser}</span><br>\n";
            } else {
                echo "<span title=\"{$usel['3']}\" class='handle withlink'><img border='0' id='img{$imgid}' src=\"{$usel['4']}\" " . ChatImageSize($usel[4]) . "><br>{$uluser}</span><br>\n";
            }
        } else {
            if ($usel[4]) {
                if ($_REQUEST['noimg'] > 0) {
                    echo "[<a href='{$usel['4']}' target='_blank'><i>Open Image</i></a>]<br><span class='handle nolink'>{$uluser}</span><br>\n";
                } else {
                    echo "<img border=0 id='img{$imgid}' src='{$usel['4']}' " . ChatImageSize($usel[4]) . "><br><span class='handle nolink'>{$uluser}</span><br>\n";
                }
            } else {
                if ($usel[3]) {
                    echo "<span title=\"{$usel['3']}\" class='handle withlink'>{$uluser}</span><br>\n";
                } else {
                    echo "<span class='handle nolink'>{$uluser}</span><br>\n";
                }
            }
        }
        if (!empty($upref)) {
            echo '</a>';
        }
        if (!CheckFlags("m", $cpref)) {
            if (!empty($fixhandle) && stristr($profs, $fixhandle)) {
                echo "<a href='https://pjj.cc/{$rpath}/register/viewer.php?su=" . urlencode($usel[2]) . "&fm=view' target='_blank'><img alt='Profile' src='https://pjj.cc/gfx/im/prof2.gif' border='0'></a>";
            }
            if (CheckFlags("M", $upref[0]) && !empty($upref[1])) {
                echo "<a href='mailto:{$upref['1']}'><img alt='Email' src='https://pjj.cc/gfx/im/email.gif' border=0></a>";
            }
            $upref[2] = str_replace(" ", "", $upref[2]);
            if (!empty($upref[2])) {
                echo "<a href='aim:GoIM?ScreenName={$upref['2']}' title='AIM'>";
                echo "<img alt='AIM' src='https://pjj.cc/gfx/im/aimonline.gif' border='0'>";
                echo "</a>";
            }
            if (!empty($upref[3])) {
                echo "<a href='http://www.icq.com/{$upref['3']}' target='_blank' title='ICQ'>";
                echo "<img alt='ICQ' src='https://pjj.cc/gfx/im/icqonline.gif' border='0'>";
                echo "</a>";
            }
            if (!empty($upref[4])) {
                echo "<a href=\"http://profiles.yahoo.com/{$upref['4']}\" target='_blank' title='YM'>";
                echo "<img border='0' src=\"https://pjj.cc/gfx/im/yahooonline.gif\" alt='YM'>";
                echo "</a>";
            }
            if (!empty($upref[5])) {
                echo "<a href=\"http://members.msn.com/{$upref['5']}\" target='_blank' title='MSN'>";
                echo "<img border='0' src='https://pjj.cc/gfx/im/msnonline.gif' alt='MSN'>";
                echo "</a>";
            }
            if (!empty($upref[9])) {
                echo "<a href=\"http://www.last.fm/user/{$upref[9]}/\" target='_blank' title='Last.fm'>";
                echo "<img border='0' src='https://pjj.cc/gfx/im/lastfm.png' alt='Last.fm'>";
                echo "</a>";
            }
            if (!empty($upref[10])) {
                echo "<a href='http://flickr.com/photos/{$upref['10']}/' target='_blank' title='Flickr'>";
                echo "<img border='0' hspace='2' src='https://i.pjj.cc/c8b1694ee96e780aa35f426abc3e67d7.gif' alt='Flickr'>";
                echo "</a>";
            }
            if (!empty($upref[11])) {
                echo "<a href='http://www.facebook.com/{$upref['11']}' target='_blank' title='Facebook'>";
                echo "<img border='0' hspace='2' src='https://pjj.cc/gfx/im/facebook.png' alt='Facebook'>";
                echo "</a>";
            }
            if (!empty($upref[12])) {
                echo "<a href='http://plus.google.com/{$upref['12']}' target='_blank' title='Google Plus'>";
                echo "<img border='0' hspace='2' src='https://pjj.cc/gfx/im/googleplus.png' alt='Google Plus'>";
                echo "</a>";
            }
            if (!empty($upref[13])) {
                echo "<a href='http://steamcommunity.com/id/{$upref['13']}' target='_blank' title='Steam'>";
                echo "<img border='0' hspace='2' src='https://pjj.cc/gfx/im/steam.png' alt='Steam'>";
                echo "</a>";
            }
            if (!empty($upref[8])) {
                echo "<a href='callto:{$upref['8']}' title='Skype'>";
                echo "<img border='0' hspace='2' src='https://i.pjj.cc/3e818c5e24ac3e9e9aa2155129f55f10.gif' alt='Skype'>";
                echo "</a>";
            }
            if (!empty($upref[6])) {
                echo "<a href='{$upref['6']}' target='_blank'>";
                echo "<img alt='Homepage' src='https://pjj.cc/gfx/im/prof.gif' border='0'>";
                echo "</a>";
            }
        }
        echo "<br><font size=-1>{$usel['1']}</font><br>\n";
        $dtstring = date("g:i:sa", $usel[5] + $tzone * 3600);
        echo "Posted: {$dtstring}\n";
        unset($usel);
    }
    return 1;
}
Example #6
0
<?php 
require_once "../../common/session.php";
require_once "../../../chatv3/_inc/mmcache.php";
require_once "../../mysql.php";
require_once "../../setup.php";
require_once "../settings.php";
require_once "../options.php";
require_once "../../common/tome_of_power.php";
$realpath = ereg_replace(".*/([^/]+)/register/adminlog.php\$", "chat\\1", $_SERVER['PHP_SELF']);
if ($_SERVER['HTTP_HOST'] != 'v2.pjj.cc' && strstr($_SERVER['HTTP_HOST'], '.pjj.cc')) {
    $realpath = preg_replace('/(.*?)\\.pjj\\.cc/is', 'chat\\1', $_SERVER['HTTP_HOST']);
}
if (!CheckFlags('MmZX', $_SESSION[$realpath]['flags'])) {
    die('Only administrators can view this page.');
}
$cpref = GetChatPrefs($realpath);
$output = '';
if ($_REQUEST['log'] === 'cpanel') {
    $output = '<pre>' . file_get_contents('wizard_locked/actionlog.log') . '</pre>';
} else {
    $rez = count_mysql_query("SELECT\n\t\t\talog.user_id, dtbs.username, alog.page_id, alog.stamp, alog.user_ip\n\t\t\tFROM uo_chat_adminlog as alog\n\t\t\tLEFT JOIN uo_chat_database as dtbs ON (alog.user_id=dtbs.uid)\n\t\t\tWHERE alog.chat_id={$GLOBALS['biglog']['chat_id']}\n\t\t\tORDER BY alog.entry_id ASC\n\t\t\t", $handler);
    if (mysql_num_rows($rez)) {
        $pages = array(1 => 'Settings', 2 => 'Options', 3 => 'Icons', 4 => 'Language');
        $output .= '<table cellspacing="0" cellpadding="3" border="1">';
        $output .= '<tr valign="top">
				<td><b>Page</b></td>
				<td><b>ID: Username</b></td>
				<td><b>IP</b></td>
				<td><b>Timestamp</b></td>
				</tr>';
        while ($row = mysql_fetch_assoc($rez)) {