2WAP.ORG
logo
Wed, 25 December 2024
'; echo 'Bookmark this page for fast access to all sites of the 2WAP group.'; echo ''; //////////////////////////////// echo '
'; echo "\n"; echo '
Advertisements
'; echo "\n"; echo '
'; echo "\n"; ?>
Download
Xchanger.Mobi - web to wap file share
Community
Caramba.Mobi - free open chat, no registration
2WapWorld.com - great mobile community with chat, forums, blogs, downloads, quiz...
Chat-Zone.mobi - Live Chat ;-)
W8U.net - dating, meet singles in your city or around the world
SexyOrNot.in - photo voting community
Services
TapLap.com - build your own mobile site in minutes from your mobile.
BestTop.mobi wap directory with best wap sites
HideMe.mobi - free proxy to surf anonymously.
Services - news, maps, wapmaster tools, logo maker...
Adult Zone 18+ services, pictures, live cams, videos...
iToplist.mobi - Top iPhone Sites
BestTop.Mobi
wap.delmy.com
BestTop.Mobi

"; } } function iptocountry($ip) { //$two_letter_country_code=@getCCfromIP($ip); require_once "/home/wap2org/php/Net/GeoIP.php"; $geoip = Net_GeoIP::getInstance("/home/wap2org/php/Net/GeoIP/GeoIP.dat"); $two_letter_country_code = $geoip->lookupCountryCode($ip); if ($two_letter_country_code == "") { $two_letter_country_code = "unkn"; } return $two_letter_country_code; //}else return $db_result['country']; } function getIP() { $proxy = ""; $IP = ""; if (isSet($_SERVER)) { if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) { $IP = $_SERVER["HTTP_X_FORWARDED_FOR"]; $proxy = $_SERVER["REMOTE_ADDR"]; } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) { $IP = $_SERVER["HTTP_CLIENT_IP"]; }else if(isset($_SERVER["HTTP_X_REAL_IP"])){ $IP = $_SERVER["HTTP_X_REAL_IP"]; } else { $IP = $_SERVER["REMOTE_ADDR"]; } } else { if (getenv('HTTP_X_FORWARDED_FOR')) { $IP = getenv('HTTP_X_FORWARDED_FOR'); $proxy = getenv('REMOTE_ADDR'); } elseif (getenv('HTTP_CLIENT_IP')) { $IP = getenv('HTTP_CLIENT_IP'); } else { $IP = getenv('REMOTE_ADDR'); } } if (strstr($IP, ',')) { $ips = explode(',', $IP); $IP = $ips[0]; } //$RemoteInfo[0]=$IP; //$RemoteInfo[1]=@GetHostByAddr($IP); //$RemoteInfo[2]=$proxy; //return $RemoteInfo; if (empty($IP)) $IP = $_SERVER["REMOTE_ADDR"]; elseif (strtolower(trim($IP)) == 'unknown') $IP = $_SERVER["REMOTE_ADDR"]; return trim($IP); } function getAttribs($t, $a, $s) { preg_match_all("/(<".$t." .*?".$a.".*?=.*?[\"|'])(.*?)([\"|'].*?>)/", $s, $m); return $m[2][0]; } function manlix_russian_time($time) { global $manlix_russian_time; if(!isset($time)) $manlix_russian_time="Вы не указали время для получения дня недели"; elseif(!is_numeric($time)) $manlix_russian_time="Вы указали некорректное время для получения дня недели"; else { $months1= array("январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"); $months2= array("январе","феврале","марте","апреле","мае","июне","июле","августе","сентябре","октябре","ноябре","декабре"); $months3= array("января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"); $months4= array("в январе","в феврале","в марте","в апреле","в мае","в июне","в июле","в августе","в сентябре","в октябре","в ноябре","в декабре"); $months5= array("янв","февр","март","апр","май","июнь","июль","авг","сен","окт","нояб","дек"); $months6= array("янв","февр","марте","апр","мае","июне","июле","авг","сен","окт","нояб","дек"); $months7= array("в янв","в февр","в марте","в апр","в мае","в июне","в июле","в авг","в сен","в окт","в нояб","в дек"); if(date('H',$time) >= 0 && date('H',$time)<7) {$day_status = "ночь"; $day_status2 = "нч";} elseif(date('H',$time) >= 6 && date('H',$time)<13) {$day_status = "утро"; $day_status2 = "ут";} elseif(date('H',$time) >= 12 && date('H',$time)< 19) {$day_status = "день"; $day_status2 = "дн";} else {$day_status = "вечер"; $day_status2 = "вч";} $days1 = array("воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"); $days2 = array("воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"); $days3 = array("в воскресенье","в понедельник","во вторник","в среду","в четверг"," в пятницу"," в субботу"); $days4 = array("вс","пн","вт","ср","чт","пт","сб"); $days5 = array("в вс","в пн","во вт","в ср","в чт","в пт","в сб"); if (date('w',$time)==0) {$num_day_of_the_week=7;} else {$num_day_of_the_week=date('w',$time);} $manlix_russian_time = array( 'year' => date('Y',$time), 'year2' => date('y',$time), 'month' => $months1[date('m',$time) - 1], 'month2' => $months2[date('m',$time) - 1], 'month3' => $months3[date('m',$time) - 1], 'month4' => $months4[date('m',$time) - 1], 'month5' => $months5[date('m',$time) - 1], 'month6' => $months6[date('m',$time) - 1], 'month7' => $months7[date('m',$time) - 1], 'month8' => date('m',$time), 'day_status' => $day_status, 'day_status2' => $day_status2, 'day' => $days1[date('w',$time)], 'day2' => $days2[date('w',$time)], 'day3' => $days3[date('w',$time)], 'day4' => $days4[date('w',$time)], 'day5' => $days5[date('w',$time)], 'day6' => $num_day_of_the_week, 'day7' => date('d',$time), 'day8' => date('z',$time), 'hour' => date('H',$time), 'hour2' => date('h',$time), 'minute' => date('i',$time), 'second' => date('s',$time) ); return $manlix_russian_time; } } function rus_toutf8($soo){ $soo = str_replace("а","а", $soo); $soo = str_replace("б","б", $soo); $soo = str_replace("в","в", $soo); $soo = str_replace("г","г", $soo); $soo = str_replace("д","д", $soo); $soo = str_replace("е","е", $soo); $soo = str_replace("ж","ж", $soo); $soo = str_replace("з","з", $soo); $soo = str_replace("и","и", $soo); $soo = str_replace("й","й", $soo); $soo = str_replace("к","к", $soo); $soo = str_replace("л","л", $soo); $soo = str_replace("м","м", $soo); $soo = str_replace("н","н", $soo); $soo = str_replace("о","о", $soo); $soo = str_replace("п","п", $soo); $soo = str_replace("р","р", $soo); $soo = str_replace("с","с", $soo); $soo = str_replace("т","т", $soo); $soo = str_replace("у","у", $soo); $soo = str_replace("ф","ф", $soo); $soo = str_replace("х","х", $soo); $soo = str_replace("ц","ц", $soo); $soo = str_replace("ч","ч", $soo); $soo = str_replace("ш","ш", $soo); $soo = str_replace("щ","щ", $soo); $soo = str_replace("ъ","ъ", $soo); $soo = str_replace("ы","ы", $soo); $soo = str_replace("ь","ь", $soo); $soo = str_replace("э","э", $soo); $soo = str_replace("ю","ю", $soo); $soo = str_replace("я","я", $soo); $soo = str_replace("А","А", $soo); $soo = str_replace("Б","Б", $soo); $soo = str_replace("В","В", $soo); $soo = str_replace("Г","Г", $soo); $soo = str_replace("Д","Д", $soo); $soo = str_replace("Е","Е", $soo); $soo = str_replace("Ж","Ж", $soo); $soo = str_replace("З","З", $soo); $soo = str_replace("И","И", $soo); $soo = str_replace("Й","Й", $soo); $soo = str_replace("К","К", $soo); $soo = str_replace("Л","Л", $soo); $soo = str_replace("М","М", $soo); $soo = str_replace("Н","Н", $soo); $soo = str_replace("О","О", $soo); $soo = str_replace("П","П", $soo); $soo = str_replace("Р","Р", $soo); $soo = str_replace("С","С", $soo); $soo = str_replace("Т","Т", $soo); $soo = str_replace("У","У", $soo); $soo = str_replace("Ф","Ф", $soo); $soo = str_replace("Х","Х", $soo); $soo = str_replace("Ц","Ц", $soo); $soo = str_replace("Ч","Ч", $soo); $soo = str_replace("Ш","Ш", $soo); $soo = str_replace("Щ","Щ", $soo); $soo = str_replace("Ъ","Ъ", $soo); $soo = str_replace("Ы","Ы", $soo); $soo = str_replace("Ь","Ь", $soo); $soo = str_replace("Э","Э", $soo); $soo = str_replace("Ю","Ю", $soo); $soo = str_replace("Я","Я", $soo); return $soo; } function replace2($text) { $text = stripslashes($text); $text = preg_replace('/[^[:space:][:punct:][:alnum:]\@\^]/','',$text); $text=str_replace("What else happened?","",$text); $text=str_replace("From The Old Farmer's Almanac.","",$text); $text=str_replace("\$","*",$text); return $text; } function theRealStripTags($string) { //while there are tags left to remove while(strstr($string, '>')) { //find position of first carrot $currentBeg = strpos($string, '<'); //find position of end carrot $currentEnd = strpos($string, '>'); //find out if there is string before first carrot //if so save it in $tmpstring $tmpStringBeg = @substr($string, 0, $currentBeg); //find out if there is string after last carrot //if so save it in $tmpStringEnd $tmpStringEnd = @substr($string, $currentEnd + 1, strlen($string)); //cut the tag from the string $string = $tmpStringBeg.$tmpStringEnd; } return $string; } function unhtmlentities ($string) { // Get HTML entities table $trans_tbl = get_html_translation_table (HTML_ENTITIES, ENT_QUOTES); // Flip keys<==>values $trans_tbl = array_flip ($trans_tbl); // Add support for ' entity (missing in HTML_ENTITIES) $trans_tbl += array(''' => "'"); $trans_tbl += array('<' => "<"); // Replace entities by values return strtr ($string, $trans_tbl); } function ShowOneRSS($url) { global $rss; if ($rs = $rss->get($url)) { //echo $rs['title']."
\n"; //echo $rs['description']."
\n"; $count_items=$rs['items_count']; $random_update=rand(1,$count_items); $ii=1; foreach ($rs['items'] as $item) { if($ii==$random_update)echo theRealStripTags(unhtmlentities ($item['title'])).'
'.replace2(theRealStripTags(unhtmlentities ($item['description']))).''; $ii++; } if ($rs['items_count'] <= 0) { echo "Sorry, no items found in the RSS file :-("; } echo "\n"; } } ?>