";
if($tong==0) {
echo "Bốc phân thật rồi bạn à khi mà điểm của bạn chỉ có ".$tong;
}
if($tong>=1&&$tong<=4) {
echo "Chuẩn bị đi nghĩa vụ quân sự thôi bạn,bạn có ".$tong." điểm à";
}
if($tong=5&&$tong=6) {
echo "Một chút nữa thôi là bạn đã đc hs tiên tiến rồi,năm sau cố gắng hơn nha ".$tong;
}
if($tong>6&&$tong>=7.9) {
echo ".$tong."điểm :v,học sinh tiên tiến thui,chưa mừng được,phải là học sinh giỏi kìa";
}
if($tong>=8) {
echo "Đại ca nhận em 1 lạy,hs giỏi rùi quá đỉnh lun điểm tổng của đại ca là".$tong;
}
if($tong>10) {
echo "Nhập sai số rồi bạn,nhập đúng mình mới tính được chớ";
}
if($tong<0) {
echo "Nhập sai số rồi bạn,nhập đúng mình mới tính được chớ";
}
?> 0k-";
$lang_nickname = "nick name:";
$lang_gender = "Giới tính:";
$lang_male = "Nam";
$lang_female = "Nữ";
$lang_age = "Tuổi: ";
$lang_show_smilies = "Mặt cười? ";
$lang_yes = "Có";
$lang_no = "Không";
$lang_nick_color = "Màu nick:";
$lang_select_chatroom = "Mời Chọn Phòng chat";
$lang_users = "người đang chat trong";
$lang_chatrooms = "phòng";
$lang_smilies = "Smilies";
$lang_next = "Next »";
$lang_prev = "« Prev";
$lang_chat = "Quay lại Chatroom";
$lang_say = "Chát...";
$lang_refresh = "Làm mới";
$lang_message = "Tin nhắn:";
$lang_ok = "OK";
$lang_jump = "Jump";
$lang_change_chatroom = "sang phòng khác";
$lang_who_is_online = "xem ai đang chát";
$lang_autorefresh = "Mở làm mới";
$lang_manual_autorefresh = "Tắt làm mới";
$lang_loading = "Loading...
please wait";
$lang_exit = "Logout";
//$BestTopMobi_id="30357"; //your besttop.mobi id, register your site at http://besttop.mobi to get an id. or just leave 0
//change the value to any value you want or just leave this, its not important
$config_keypass = 'gHe';
///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////
/////////////[DO NOT EDIT AFTER THIS LINE]////////////////////////////////
$nick = nick_replace($nick);
$nick = substr(trim($nick), 0, 15);
global $nick;
if (isset($gum_ss))
{
$gum_ss_data = xoft_decode($gum_ss, $config_keypass);
list($gum, $nick, $room, $C, $sm, $G, $A, $RF) = explode("|", $gum_ss_data);
}
$link_gum_ss = xoft_encode($gum . '|' . $nick . '|' . $room . '|' . $C . '|' . $sm . '|' . $G . '|' . $A . '|' . $RF, $config_keypass);
///////////IF Nickname is shorter than 3 chars retur an error message and let the user relogin//////////
if ($nick != '' && strlen($nick) < 3)
{
$gum = "";
$login_error_message .= '
nick Name bạn chọn quá ngắn, nó phải dài hơn 3 ký tự nhé bạn!, cũng tránh ký tự đặc biệt trong các biệt hiệu. Được phép ký tự: A-Z, a-z, 0-9, - _ @';
}
$G = nick_replace(substr(trim($G), 0, 1));
$A = nick_replace(substr(trim($A), 0, 2));
$room = replace($room);
header('Content-Type: text/html; charset=utf-8');
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo '
';
?>
yeuwap.wen.ru | chat' . $_time . '
';
echo '
';
echo 'KetNoiVietNam.Tk
kết bạn bốn phương';
echo '
tải miễn phí...';
echo '
';
echo $login_error_message;;
$n = 0;
$files = '';
if ($handle = opendir('rooms/'))
{
while (false !== ($file = readdir($handle)))
{
if ($file != '.' && $file != '..' && $file != 'files' && $file != 'cgi-bin' && $file != 'chat')
{
if ($n >= 0 && $n < 20)
{
$onfile = file('online/on' . $file);
$counts = count($onfile);
if ($counts < 2)
{
$gumdata = explode(':', $onfile[0]);
$ablaufzeit = time() - 250;
if ($gumdata[0] <= $ablaufzeit)
{
$fp = fopen('online/on' . $file, "w+");
$counts = 0;
}
}
$total = $total + $counts;
$n++;
}
}
}
closedir($handle);
}
echo '
' . $total . ' ' . $lang_user_in_chat . '!
';
echo "
";
echo '
';
echo 'Chát đa năng hoàn toàn miễn phí';
echo '

(c) yeuwap.wen.ru
xây dựng và phát triển bởi trần dương
';
}
if ($gum == "rooms")
{
echo '
' . $lang_chatrooms . ' (' . $_time . ')
';
$nick = ereg_replace(" ", "_", $nick);
if (preg_match("/[^\da-zA-Z-@_]+/", $nick) || $nick == "")
$error = 'Not suported chars in Nickname!
';
if (empty($error))
{
echo '
';
if ($WLC)
echo 'Chào ' . $nick . ' !!.chat vui vẻ nhé!
';
echo $lang_select_chatroom . '';
echo '
';
$n = 0;
$files = '';
if ($handle = opendir('rooms/'))
{
$I = 0;
while (false !== ($file = readdir($handle)))
{
if ($file != '.' && $file != '..' && $file != 'files' && $file != 'cgi-bin' && $file != 'chat')
{
if ($n >= 0 && $n < 20)
{
$I++;
$geting_class = ($I / 2) - floor($I / 2);
if ($geting_class == 0)
{
$Class = '';
}
else
{
$Class = ' class="divide"';
}
$onfile = file('online/on' . $file);
$counts = count($onfile);
$total = $total + $counts;
$n++;
echo '
';
}
}
}
closedir($handle);
}
}
else
echo '
' . $error . 'Press back button!
pm admin tranduong
';
echo '
' . $total . ' ' . $lang_users . ' ' . $n . ' ' . $lang_chatrooms . '!
';
echo 'Mời bạn bè để trò chuyện thông qua sms hoặc email
';
echo 'ketnoivietnam.tk
(c) yeuwap.wen.ru
xây dựng và phát triển bởi trần dương
';
}
if ($gum == "croom")
{
$rand_key = @rand(53256, 16326239);
if ($RF == 1)
echo '
';
$onxfile = @file('online/on' . $room);
$countonl = count($onxfile);
echo '
' . $room . ' in ' . $countonl . ' (' . $_time . ')
';
if ($RF != 1)
{
echo "
";
echo '
';
echo '' . $lang_refresh . '
';
}
else
{
echo '
Chém Gió Club!!!
';
echo '
';
echo '' . $lang_refresh . '
';
}
echo "
";
////////////////////////////////////////
if ($_POST["mess"] != "")
{
$mess = replace($_POST["mess"]);
$mess = filterFlood($mess);
$mess = filterBadWords($mess);
$C = color_check($C);
$mess = trim(substr($mess, 0, 160));
$_mudata = explode(" ", $mess);
$count_spaces = count($_mudata);
$count_chars = strlen($mess);
if ($count_chars < 3 && !empty($mess))
{
$chat_error_message .= '
The message is to short, it has to be longer than 4 chars';
}
$text = $C . "&&$nick $_time&&$mess&&" . $antiflood;
if ($count_spaces < 3 && $count_chars > 30)
$FOUND = 1;
if ($count_spaces < 5 && $count_chars > 40)
$FOUND = 1;
}
//////////////////////////////////////////////
if ($mess != "" && !$chat_error_message)
{
$udata = explode("&&", $text);
$udata[2] = htmlspecialchars($udata[2]);
$udata[2] = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '', $udata[2]);
$udata[2] = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '', $udata[2]);
if ($sm == 1)
$udata[2] = ReplaceTextToSmilies($udata[2]);
echo '
' . htmlspecialchars($udata[1]) . ' » ' . $udata[2] . '
';
}
else
echo $chat_error_message;
$fp = fopen('rooms/' . $room, "r");
$smilies_decode_num = 1;
$I = 0;
$mini_found = 1;
while ($radka = fgets($fp, 512))
{
$udata = explode("&&", $radka);
if ($udata[2] != "")
{
$I++;
$geting_class = ($I / 2) - floor($I / 2);
if ($geting_class == 0)
{
$Class = '';
}
else
{
$Class = ' class="divide"';
}
////////////////////////ANTIFLOOOOOOOOOOOOOOOOOD////////////////////
if (isset($mess))
{
if ($udata[3] == $antiflood)
{
$FOUND = 1;
}
if (trim($udata[2]) == trim($mess))
{
$FOUND = 1;
}
if ($FOUND != 1)
{
$checktext_1 = preg_replace('/[^[:alnum:]\^]/', '', strtolower($udata[2]));
$checktext_2 = preg_replace('/[^[:alnum:]\^]/', '', strtolower($mess));
if(is_numeric($checktext_2)) $FOUND = 1;
$count_checktext_1 = strlen($checktext_1);
$count_checktext_2 = strlen($checktext_2);
$rand_start_1 = rand(1, $count_checktext_1 - 6);
$rand_start_2 = rand(1, $count_checktext_2 - 6);
for ($n = 1; $n <= $count_checktext_1; $n++)
{
if (substr($checktext_1, $rand_start_1, 6) == substr($checktext_2, $n, 6))
{
$FOUND = 1;
break;
}
if (substr($checktext_2, $rand_start_2, 6) == substr($checktext_1, $n, 6))
{
$FOUND = 1;
break;
}
}
if ($FOUND != 1)
{
for ($n = $count_checktext_1; $n >= 1; $n--)
{
if (substr($checktext_1, $rand_start_1, 6) == substr($checktext_2, $n, 6))
{
$FOUND = 1;
break;
}
if (substr($checktext_2, $rand_start_2, 6) == substr($checktext_1, $n, 6))
{
$FOUND = 1;
break;
}
}
}
}
if (substr($udata[1], 0, 2) == substr($nick, 0, 2))
{
if (substr($checktext_1, 0, 2) == substr($checktext_2, 0, 2) && $checktext_1 < 6)
$mini_found++;
elseif ( substr($checktext_1, $count_checktext_1 - 2, 2) == substr($checktext_2, $count_checktext_2 - 2, 2) && $count_chars < 6)
$mini_found++;
elseif ($count_checktext_1 == $count_checktext_2)
$mini_found++;
else
$nick_found++;
}
else $random_nicks++;
$count_mess_chars = strlen($mess);
if (!isset($FOUND) && $count_mess_chars > 30)
{
$message_middle = ceil($count_mess_chars / 2);
preg_match_all("/" . substr(strtolower($mess), ($message_middle - 5), 4) . "/i", strtolower($mess), $treffer);
$matches = count($treffer[0]);
if ($matches > 2)
$FOUND = 1;
if (!isset($FOUND))
{
preg_match_all("/" . substr(strtolower($mess), ($message_middle - 7), 4) . "/i", strtolower($mess), $treffer);
$matches = count($treffer[0]);
if ($matches > 2)
$FOUND = 1;
if (!isset($FOUND))
{
preg_match_all("/" . substr(strtolower($mess), ($message_middle + 1), 4) . "/i", strtolower($mess), $treffer);
$matches = count($treffer[0]);
if ($matches > 2)
$FOUND = 1;
}
}
}
}
if ($mini_found > 2)
$FOUND = 1;
if ($random_nicks > 5 && $nick_found > 6)
$FOUND = 1;
else if ($random_nicks <= 5 && $nick_found > 7)
$FOUND = 1;
/////////////////////////END OF ANTIFLOOD CHECK////////////////////
$udata[2] = htmlspecialchars($udata[2]);
$udata[2] = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '', $udata[2]);
$udata[2] = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '', $udata[2]);
// $udata[2] = filterBadWords($udata[2]);
if ($sm == 1 && $smilies_decode_num <= $smilies_decode)
$udata[2] = ReplaceTextToSmilies($udata[2]);
$smilies_decode_num++;
$udata[1] = ereg_replace("_", " ", $udata[1]);
echo '
' . htmlspecialchars($udata[1]) . ' » ' . $udata[2] . '
';
}
}
fclose($fp);
/////////////////////WRITING A TEXT MESSAGE TO the FILE///////////////////////////
if (!$FOUND && $count_chars > 3 && $nick != "" && !$chat_error_message)
{
$text = stripslashes($text);
$text = strip_tags($text);
$text = preg_replace("(\r\n|\n|\r)", "", $text);
//$text = ereg_replace("_", " ", $text);
if (file_exists('rooms/' . $room))
{
$zpravy = file('rooms/' . $room);
}
$fp = fopen('rooms/' . $room, "w");
fputs($fp, $text . "\n");
for ($i = 0; $i < $_room_size; $i++)
{
fputs($fp, $zpravy[$i]);
}
fclose($fp);
}
/////////////////////END OF WRITING A TEXT MESSAGE TO the FILE///////////////////////////
echo '
';
if ($RF != 1)
echo '' . $lang_say . ' ';
else
echo '' . $lang_say . ' ';
echo '' . $lang_refresh . '
';
echo '' . $lang_who_is_online . '
';
echo '' . $lang_change_chatroom . '
';
echo '' . $lang_smilies . '
';
echo '
(c) yeuwap.wen.ru
xây dựng và phát triển bởi trần dương';
}
if ($gum == "say")
{
echo '
' . $lang_smilies . ' (' . $_time . ')
';
echo "
";
echo '
';
echo '' . $lang_chat . '
';
echo '' . $lang_change_chatroom . '
';
echo '
(c) yeuwap.wen.ru
xây dựng và phát triển bởi trần dương';
}
if ($gum == "smilies")
{
echo '
' . $lang_smilies . ' (' . $_time . ')
';
echo '
';
$conf["items_per_page"] = 10;
if (isset($npage))
$page = $npage - 1;
if (!isset($page))
$page = 0;
if ($page < 0)
$page = 0;
$total = 0;
if (!($dp = opendir('./smilies/')))
die('Cannot open ./smilies/');
$file_array = array();
while ($file = readdir($dp))
{
if (substr($file, 0, 1) != '.' and $file != '..' and $file != 'index.php')
{
$file_array[] = $file;
}
}
$file_count = count($file_array);
sort($file_array);
if ($file_count > 0)
{
$first_record = $page * $conf["items_per_page"];
$last_record = $first_record + $conf["items_per_page"];
while (list($fileIndexValue, $file_name) = each($file_array))
{
if (($fileIndexValue >= $first_record) and ($fileIndexValue < $last_record))
{
$smilie = explode('.', $file_name);
echo '
.' . $smilie[0] . '.
';
}
}
if (($file_count > 0) and ($last_record < $file_count))
{
// next button
$next_page = $page + 1;
echo '
' . $lang_next . '
';
}
if (($file_count > 0) and ($page != 0))
{
// previous button
$prev_page = $page - 1;
echo '
' . $lang_prev . '
';
}
}
closedir($dp);
echo '' . $file_count . ' ' . $lang_smilies . '
';
$pages = ceil($file_count / $conf["items_per_page"]);
echo 'Page ' . ($page + 1) . ' of ' . $pages . '
';
echo "
";
echo '
' . $lang_chat . '
';
echo '' . $lang_change_chatroom . '
';
echo '
(c) yeuwap.wen.ru
xây dựng và phát triển bởi trần dương';
}
if ($gum == "online")
{
echo '
' . $lang_who_is_online . ' (' . $_time . ')
';
echo '
' . $lang_who_is_online . '
';
$xfile = @file('online/on' . $room);
$xfile = array_reverse($xfile);
$p = 25;
if ($npage == "")
{
$npage = 1;
}
$countfile = count($xfile);
$first = $countfile - ($p * ($npage - 1));
$second = $countfile - ($p * $npage) + 1;
if ($second < 1)
{
$second = 1;
}
$npages = ceil($countfile / $p);
if ($npage <= $npages and $npage > 1)
$gline_rew = '
' . $lang_prev . '';
if ($npages > 1 and $npage < $npages)
$gline_next = '
' . $lang_next . '';
if ($npage == 1)
$nn = 1;
else
$nn = (($npage - 1) * $p) + 1;
$I = 0;
for ($i = $first - 1; $i >= $second - 1; $i--)
{
$I++;
$geting_class = ($I / 2) - floor($I / 2);
if ($geting_class == 0)
{
$Class = '';
}
else
{
$Class = ' class="divide"';
}
$xdata = explode(':', $xfile[$i]);
$udata = explode(' ', $xdata[1]);
if ($udata[2] == m)
$gender = $lang_male;
if ($udata[2] == f)
$gender = $lang_female;
echo '
' . $nn++ . '. ' . $udata[0] . ' ' . $gender . ' (' . $udata[3] . ') ' . $udata[1] . '
';
}
echo '
';
if ($npages > 1)
echo $gline_rew . '| ' . $gline_next;
echo '
' . $lang_chat . '
';
echo '' . $lang_change_chatroom . '
';
echo '
yeuchat.tk
(c) yeuwap.wen.ru
xây dựng và phát triển bởi trần dương';
}
echo '
';
function filterBadWords($str)
{
// words to filter, you can add here some more
// replace filtered words with
$badwords = array("djt me", "dit me", "lon", "l0n", "2-wap", "htp", " dot ", "http", "\.biz", "\.c0m", "\.mobi", "\.net", "\.ru", "\.org", "\.wen", "\.com", "\.web.tr", "dhoomworld", "Chatworld", "Mobichat", "Desiclub", "Friendsgarage", "Friendsgarage", "Loverslane", "Mixit", "Mxit", "Prodigits", "Leeinc", "Eaglesnest", "Wap2chat", "Bdsaint", "Hitler", "Nazi", "Chod", "Wichser");
$replacements = array("???", "***");
for ($i = 0; $i < sizeof($badwords); $i++)
{
srand((double)microtime() * 1000000);
$rand_key = (rand() % sizeof($replacements));
$str = eregi_replace($badwords[$i], $replacements[$rand_key], $str);
}
return $str;
}
function filterFlood($str)
{
// words to filter, you can add here some more
$text = str_replace('~~', '', $text);
$text = str_replace('@@', '', $text);
$text = str_replace('-', ' - ', $text);
$text = str_replace('___', '_', $text);
$text = str_replace('__', '_', $text);
$text = str_replace(" . ..", " .", $text);
$text = str_replace(".. . ", ". ", $text);
$text = str_replace(" . . ", " ", $text);
$text = str_replace(" . ", " ", $text);
$text = str_replace("...", "..", $text);
$text = str_replace(" ", " ", $text);
$text = str_replace(" ", " ", $text);
$text = str_replace('??', "", $text);
$text = str_replace('**', "", $text);
$text = str_replace('* *', "", $text);
$text = str_replace('? ?', "", $text);
//[:punct:]
$text = str_replace("\\", "", $text);
$_number = preg_replace('/[^[:digit:]\^]/','',$text);
if(strlen($_number) > 4) $text = preg_replace('/\d/', '', $text);
// replace filtered words with
$badwords = array("jdt", "gmg", "tpt", "jmt", "jmj", "mpw", "jwp", "twt", "gjg", "jdj", "tjd", "djd", "dtd", "gdg", "pjp", "kdk", "dtj", "www", "pjg", "gwg", "pdp", "kmk", "wvw", "gaga", "tjt", "mjm", "wpw", "@@", "momo", "mwm", "mvm", "gmg");
$replacements = array("");
for ($i = 0; $i < sizeof($badwords); $i++)
{
srand((double)microtime() * 1000000);
$rand_key = (rand() % sizeof($replacements));
$str = eregi_replace($badwords[$i], $replacements[$rand_key], $str);
}
return $str;
}
function ReplaceTextToSmilies($str)
{
$dir = "smilies/";
if (is_dir($dir))
{
if ($dh = opendir($dir))
{
$smilie_count = 0;
while (($file = readdir($dh)) !== false)
{
$smilie = explode(".", $file);
if ($file != '.' && $file != '..')
{
if (preg_match("/\." . $smilie[0] . "\./i", $str))
$smilie_count++;
if ($smilie_count < 4)
{
$str = preg_replace('(\.' . $smilie[0] . '\.)', '
![' . $smilie[0] . '](' . $dir . $file . ')
', $str, 1);
}
elseif ($smilie_count > 3)
break;
}
}
closedir($dh);
}
}
return $str;
}
function replace($text)
{
$text = trim($text);
$text = strip_tags($text);
$text = stripslashes($text);
$text = preg_replace("(\r\n|\n|\r)", "", $text);
$text = str_replace('(www)', '', $text);
$text = preg_replace('/[^[:space:][:alnum:]\@\.\:\,\-\+\!\?\'\_\"\(\)\]\[\=\}\{\%\*\~\#\<\>\^]/', '', $text);
$text = str_replace("\$", "*", $text);
return $text;
}
function nick_replace($text)
{
$text = trim($text);
$text = str_replace(" ", "_", $text);
$text = str_replace("__", "_", $text);
$text = str_replace("--", "-", $text);
$text = preg_replace("(\r\n|\n|\r)", "", $text);
$text = preg_replace('/[^[:alnum:]\_\@\-\^]/', '', $text);
return $text;
}
function color_check($color)
{
if (!preg_match('/(000000|ff0000|00ffff|808080|ff8040|804000|00ff00|ffff00|ff00ff|408080|008000|800000|0000a0)/i', $color))
return '009b00';
else
return $color;
}
//////////////////DECODE URLS/////////
function xoft_encode($plain_data, $config_keypass)
{
$key_length = 0;
$all_bin_chars = "";
$cipher_data = "";
for ($i = 0; $i < strlen($plain_data); $i++)
{
$p = substr($plain_data, $i, 1);
$k = substr($config_keypass, $key_length, 1);
$key_length++;
if ($key_length >= strlen($config_keypass))
{
$key_length = 0;
}
$dec_chars = ord($p) ^ ord($k);
$dec_chars = $dec_chars + strlen($config_keypass);
$bin_chars = decbin($dec_chars);
while (strlen($bin_chars) < 8)
{
$bin_chars = "0" . $bin_chars;
}
$all_bin_chars = $all_bin_chars . $bin_chars;
}
$m = 0;
for ($j = 0; $j < strlen($all_bin_chars); $j = $j + 4)
{
$four_bit = substr($all_bin_chars, $j, 4);
$four_bit_dec = bindec($four_bit);
$decimal_value = $four_bit_dec * 4 + $m;
$base64_value = dec_to_base64($decimal_value);
$cipher_data = $cipher_data . $base64_value;
$m++;
if ($m > 3)
{
$m = 0;
}
}
return $cipher_data;
}
///////////////////////////////////////////////
function xoft_decode($cipher_data, $config_keypass)
{
$m = 0;
$all_bin_chars = "";
for ($i = 0; $i < strlen($cipher_data); $i++)
{
$c = substr($cipher_data, $i, 1);
$decimal_value = base64_to_dec($c);
$decimal_value = ($decimal_value - $m) / 4;
$four_bit = decbin($decimal_value);
while (strlen($four_bit) < 4)
{
$four_bit = "0" . $four_bit;
}
$all_bin_chars = $all_bin_chars . $four_bit;
$m++;
if ($m > 3)
{
$m = 0;
}
}
$key_length = 0;
$plain_data = "";
for ($j = 0; $j < strlen($all_bin_chars); $j = $j + 8)
{
$c = substr($all_bin_chars, $j, 8);
$k = substr($config_keypass, $key_length, 1);
$dec_chars = bindec($c);
$dec_chars = $dec_chars - strlen($config_keypass);
$c = chr($dec_chars);
$key_length++;
if ($key_length >= strlen($config_keypass))
{
$key_length = 0;
}
$dec_chars = ord($c) ^ ord($k);
$p = chr($dec_chars);
$plain_data = $plain_data . $p;
}
return $plain_data;
}
/////////////////////////////////////
function base64_to_dec($str)
{
$str = strtr($str, array("=" => "64", "/" => "63", "+" => "62", "9" => "61", "8" => "60", "7" => "59", "6" => "58", "5" => "57", "4" => "56", "3" => "55", "2" => "54", "1" => "53", "0" => "52", "z" => "51", "y" => "50", "x" => "49", "w" => "48", "v" => "47", "u" => "46", "t" => "45", "s" => "44", "r" => "43", "q" => "42", "p" => "41", "o" => "40", "n" => "39", "m" => "38", "l" => "37", "k" => "36", "j" => "35", "i" => "34", "h" => "33", "g" => "32", "f" => "31", "e" => "30", "d" => "29", "c" => "28", "b" => "27", "a" => "26", "Z" => "25", "Y" => "24", "X" => "23", "W" => "22", "V" => "21", "U" => "20", "T" => "19", "S" => "18", "R" => "17", "Q" => "16", "P" => "15", "O" => "14", "N" => "13", "M" => "12", "L" => "11", "K" => "10", "J" => "9", "I" => "8", "H" => "7", "G" => "6", "F" => "5", "E" => "4", "D" => "3", "C" => "2", "B" => "1", "A" => "0"));
return $str;
}
/////////////////////////////////////
function dec_to_base64($str)
{
$str = strtr($str, array("64" => "=", "63" => "/", "62" => "+", "61" => "9", "60" => "8", "59" => "7", "58" => "6", "57" => "5", "56" => "4", "55" => "3", "54" => "2", "53" => "1", "52" => "0", "51" => "z", "50" => "y", "49" => "x", "48" => "w", "47" => "v", "46" => "u", "45" => "t", "44" => "s", "43" => "r", "42" => "q", "41" => "p", "40" => "o", "39" => "n", "38" => "m", "37" => "l", "36" => "k", "35" => "j", "34" => "i", "33" => "h", "32" => "g", "31" => "f", "30" => "e", "29" => "d", "28" => "c", "27" => "b", "26" => "a", "25" => "Z", "24" => "Y", "23" => "X", "22" => "W", "21" => "V", "20" => "U", "19" => "T", "18" => "S", "17" => "R", "16" => "Q", "15" => "P", "14" => "O", "13" => "N", "12" => "M", "11" => "L", "10" => "K", "9" => "J", "8" => "I", "7" => "H", "6" => "G", "5" => "F", "4" => "E", "3" => "D", "2" => "C", "1" => "B", "0" => "A"));
return $str;
}
///////////////////////////////////////////////////////////////////////////
// END OF SCRIPT ENJOY!
///////////////////////////////////////////////////////////////////////////
?>