 |
";
else
return $id;
}
function CheckBgImage($id) {
if (strstr($id, "tp://"))
return " background=\"$id\"";
else
return "";
}
$nums = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789";
$_REQUEST = TrimArray($_REQUEST);
if (!empty($altdata))
$chatpath = $altdata;
else {
$chatpath = ereg_replace(".*/([^/]+)/gui_set.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']);
}
if ($_REQUEST['identlenght'] < 3)
$_REQUEST['identlenght'] = 3;
if ($_REQUEST['timeout'] > 1209600)
$_REQUEST['timeout'] = 1209600;
$suglog = "settings.php";
$sfooter = "\$dbodytag = \"\n\";
if (\$u_bgimg != \"\")
\$ubodytag .= \" background='\".\$u_bgimg.\"'\";
\$ubodytag .= \">\n\";
if (\$c_bgimg != \"\")
\$cbodytag .= \" background='\".\$c_bgimg.\"'\";
\$cbodytag .= \">\n\";";
$flags = ChatVerifyLogin($login, $password, $chatpath);
$bing = GetChatPrefs($chatpath);
$check = CheckFlags("sXZmM", $flags);
if (($s_bgcol == "000000") || ($s_bgcol == "0")) {
$s_bgcol = "010101";
}
$len = strlen($_REQUEST['message']);
if (($len > 5) && ($check > 0)) {
@count_mysql_query("DELETE FROM uo_chat_adminlog WHERE stamp 300)
$_REQUEST['userlistspeed'] = 300;
else if ($_REQUEST['userlistspeed'] < 60)
$_REQUEST['userlistspeed'] = 60;
fwrite($fm, "\t\$ctitle = \"$ctitle\";\n");
fwrite($fm, "\t\$cadmin = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['cadmin'])))."\";\n");
fwrite($fm, "\t\$respeed = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['respeed'])))."\";\n");
fwrite($fm, "\t\$servcol = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['servcol'])))."\";\n");
fwrite($fm, "\t\$identlenght = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['identlenght'])))."\";\n");
fwrite($fm, "\t\$logsize = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['logsize'])))."\";\n");
fwrite($fm, "\t\$maxlines = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['maxlines'])))."\";\n");
fwrite($fm, "\t\$timeout = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['timeout'])))."\";\n");
fwrite($fm, "\t\$userlistspeed = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['userlistspeed'])))."\";\n");
fwrite($fm, "\t\$logofile = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['logofile'])))."\";\n");
fwrite($fm, "\t\$logolink = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['logolink'])))."\";\n");
fwrite($fm, "\t\$musiclink = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['musiclink'])))."\";\n");
fwrite($fm, "\t\$pimgx = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['pimgx'])))."\";\n");
fwrite($fm, "\t\$pimgy = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['pimgy'])))."\";\n");
fwrite($fm, "\t\$noname = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['noname'])))."\";\n");
fwrite($fm, "\t\$lastpos = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['lastpos'])))."\";\n");
fwrite($fm, "\t\$identxtsize = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['identxtsize'])))."\";\n");
fwrite($fm, "\t\$regident = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['regident'])))."\";\n");
fwrite($fm, "\t\$oocident = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['oocident'])))."\";\n");
fwrite($fm, "\t\$modident = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['modident'])))."\";\n");
fwrite($fm, "\t\$adminident = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['adminident'])))."\";\n");
fwrite($fm, "\t\$subchat = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['subchat'])))."\";\n");
fwrite($fm, "\t\$s_link = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['s_link'])))."\";\n");
fwrite($fm, "\t\$s_active = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['s_active'])))."\";\n");
fwrite($fm, "\t\$s_visit = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['s_visit'])))."\";\n");
fwrite($fm, "\t\$s_bgcol = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['s_bgcol'])))."\";\n");
fwrite($fm, "\t\$s_bgimg = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['s_bgimg'])))."\";\n");
fwrite($fm, "\t\$c_bgimg = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['c_bgimg'])))."\";\n");
fwrite($fm, "\t\$u_bgimg = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['u_bgimg'])))."\";\n");
fwrite($fm, "\t\$max_nick = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['max_nick'])))."\";\n");
fwrite($fm, "\t\$max_link = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['max_link'])))."\";\n");
fwrite($fm, "\t\$max_image = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['max_image'])))."\";\n");
fwrite($fm, "\t\$timer = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['timer'])))."\";\n");
fwrite($fm, "\t\$tzone = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['tzone'])))."\";\n");
fwrite($fm, "\t\$dtcalc = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['dtcalc'])))."\";\n");
fwrite($fm, "\t\$initlink = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['initlink'])))."\";\n");
fwrite($fm, "\t\$csshead = \"".str_replace("\"", "'", str_replace("$","", stripslashes($_REQUEST['csshead'])))."\";\n");
fwrite($fm, "\$altdata = \"{$_REQUEST['altdata']}\";\n");
fwrite($fm, $sfooter);
fwrite($fm, "\n?>");
fclose($fm);
}
include("settings.php");
if (!$s_bgcol || ($s_bgcol == '000000'))
$s_bgcol = '010101';
if ($timer == "")
$timer = "Last Post: ";
if ($dtcalc == "")
$dtcalc = "g:ia, F d (T)";
if ($initlink == "")
$initlink = "manual.php";
echo "
";
?>
|
 |
|