?
Connect
ပင္မစာမ်က္နွာ
အဖြဲ.၀င္မယ္
ေဆြးေႏြးခ်က္မ်ား
အဖြဲ.၀င္မ်ား
အဖြဲ.မ်ား
ဘေလာ.မ်ား
ရုပ္သံ
ဓာတ္ပံု
လင့္မ်ား
Events
Chat
Join Now
No content
အဖြဲ.၀င္မ်ား
Latest
Online
Featured
View all
No users
View all
ေမလ္းလိပ္စာထည့္ပါ
ေမလ္းထဲရရယူရန္အတြက္
♥♥♥
No content
ပံုရိပ္ေလးမ်ား
Latest
Top Rated
No photo,
Add new
View all
View all
စိုးေလး
*လားရွိုးသားေလး*
kokolashio@gmail.com
soelay
တင္ထားလွ်က္ရွိေသာ ဗီြဒီယိုမ်ား
Latest
Top Rated
No video,
Add new
View all
View all
No content
ကိုယ္ရန္ေတာ္သီခ်င္းေလးပါ ေရႊရည္ျဖိဳးေမာင္ဆိုထားတာပါ
Present of the best of melody world 2009
ေနာက္ဆံုးလွုပ္ရွားမွုမ်ား
တက္ဆက္မွုမရွိေသးပါ
It's
htetkyawlynn
's birthday today!
May 4
·
0
0
Apr 26
It's
yelay
's birthday today!
Apr 26
·
0
0
Apr 22
It's
ArmandStew18
's birthday today!
Apr 22
·
0
0
Apr 19
It's
nyeinnyein
's birthday today!
Apr 19
·
0
0
Apr 14
It's
Thayegyi
's birthday today!
Apr 14
·
0
0
စုစည္းမွုမ်ား
ဟာသ စာမ်က္နွာ(1)
General
»
General Chat
ကိုယ့္ကိစၥပဲကိုယ္လုပ္ by poemflower လားတစ္ေကာင္ ဟာ...
More
soelay
·
Aug 28 '11
MP 3 သီခ်င္းမ်ားအတြက္ HTML Code ထုတ္နည္း
General
»
General Chat
MP3 သီခ်င္းမ်ားကုိ ကိုယ့္ Profile Song အျဖစ္ ထည့္ခ်င္တဲ့...
More
soelay
·
Aug 19 '11
ေဒါင္းသြားသူမ်ားကြန္မက္ေပးခဲ့ပါ
Section2
»
Forum2
မိမိၾကိဳက္နွစ္သက္ရာသီခ်င္းေလးမွာေမာက္ေထာက္ျပီးကလစ္လိုက္ရင...
More
soelay
·
Aug 9 '11
Go to Forum
No content
No content
'; $AUTH_XML = '
'; $CLOSE_XML = ''; $RESOURCE_XML = '
'. '
'. '
fb_xmpp_script
'; $SESSION_XML = ''. '/>'; $START_TLS = '/>'; function open_connection($server) { print "[INFO] Opening connection... "; $fp = fsockopen($server, 5222, $errno, $errstr); if (!$fp) { print "$errstr ($errno)
"; } else { print "connnection open
"; } return $fp; } function send_xml($fp, $xml) { fwrite($fp, $xml); } function recv_xml($fp, $size=4096) { $xml = fread($fp, $size); if ($xml === "") { return null; } // parses xml $xml_parser = xml_parser_create(); xml_parse_into_struct($xml_parser, $xml, $val, $index); xml_parser_free($xml_parser); return array($val, $index); } function find_xmpp($fp, $tag, $value=null, &$ret=null) { static $val = null, $index = null; do { if ($val === null && $index === null) { list($val, $index) = recv_xml($fp); if ($val === null || $index === null) { return false; } } foreach ($index as $tag_key => $tag_array) { if ($tag_key === $tag) { if ($value === null) { if (isset($val[$tag_array[0]]['value'])) { $ret = $val[$tag_array[0]]['value']; } return true; } foreach ($tag_array as $i => $pos) { if ($val[$pos]['tag'] === $tag && isset($val[$pos]['value']) && $val[$pos]['value'] === $value) { $ret = $val[$pos]['value']; return true; } } } } $val = $index = null; } while (!feof($fp)); return false; } function xmpp_connect($options, $access_token) { global $STREAM_XML, $AUTH_XML, $RESOURCE_XML, $SESSION_XML, $CLOSE_XML, $START_TLS; $fp = open_connection($options['server']); if (!$fp) { return false; } // initiates auth process (using X-FACEBOOK_PLATFORM) send_xml($fp, $STREAM_XML); if (!find_xmpp($fp, 'STREAM:STREAM')) { return false; } if (!find_xmpp($fp, 'MECHANISM', 'X-FACEBOOK-PLATFORM')) { return false; } // starting tls - MANDATORY TO USE OAUTH TOKEN!!!! send_xml($fp, $START_TLS); if (!find_xmpp($fp, 'PROCEED', null, $proceed)) { return false; } stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); send_xml($fp, $STREAM_XML); if (!find_xmpp($fp, 'STREAM:STREAM')) { return false; } if (!find_xmpp($fp, 'MECHANISM', 'X-FACEBOOK-PLATFORM')) { return false; } // gets challenge from server and decode it send_xml($fp, $AUTH_XML); if (!find_xmpp($fp, 'CHALLENGE', null, $challenge)) { return false; } $challenge = base64_decode($challenge); $challenge = urldecode($challenge); parse_str($challenge, $challenge_array); // creates the response array $resp_array = array( 'method' => $challenge_array['method'], 'nonce' => $challenge_array['nonce'], 'access_token' => $access_token, 'api_key' => $options['app_id'], 'call_id' => 0, 'v' => '1.0', ); // creates signature $response = http_build_query($resp_array); // sends the response and waits for success $xml = '
'. base64_encode($response).'
'; send_xml($fp, $xml); if (!find_xmpp($fp, 'SUCCESS')) { return false; } // finishes auth process send_xml($fp, $STREAM_XML); if (!find_xmpp($fp,'STREAM:STREAM')) { return false; } if (!find_xmpp($fp, 'STREAM:FEATURES')) { return false; } send_xml($fp, $RESOURCE_XML); if (!find_xmpp($fp, 'JID')) { return false; } send_xml($fp, $SESSION_XML); if (!find_xmpp($fp, 'SESSION')) { return false; } // we made it! send_xml($fp, $CLOSE_XML); print ("Authentication complete
"); fclose($fp); return true; } //Gets access_token with xmpp_login permission function get_access_token($app_id, $app_secret, $my_url){ $code = $_REQUEST["code"]; if(empty($code)) { $dialog_url = "https://www.facebook.com/dialog/oauth?scope=xmpp_login". "&client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) ; echo(""); } $token_url = "https://graph.facebook.com/oauth/access_token?client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) . "&client_secret=" . $app_secret . "&code=" . $code; $access_token = file_get_contents($token_url); parse_str($access_token, $output); return($output['access_token']); } function _main() { print "Test platform connect for XMPP
"; $app_id='YOUR_APP_ID'; $app_secret='YOUR-APP_SECRET'; $my_url = "YOUR_APP_URL"; $uid = 'USER_ID'; $access_token = get_access_token($app_id,$app_secret,$my_url); print "access_token: ".$access_token."
"; $options = array( 'uid' => $uid, 'app_id' => $app_id, 'server' => 'chat.facebook.com', ); // prints options used print "server: ".$options['server']."
"; print "uid: ".$options['uid']."
"; print "app id: ".$options['app_id']."
"; if (xmpp_connect($options, $access_token)) { print "Done
"; } else { print "An error ocurred
"; } } _main();
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
Flashsongs မ်ား ကိုေကာ္မန္႔ေပးရန္ကုတ္
<center><object width="550" height="400"><param name="allowScriptAccess" value="never"></param><param name="movie" value="song name.swf"></param><embed wmode="opaque" allowscriptaccess="never" src="သီခ်င္းလင္႔ထည္႔ရန္" width="492" height="357"></embed> <param name="wmode" value="opaque"></param></object> </center> <br>
အသံုး၀င္မဲ့ေဆာ့လ္၀ဲေတြပါ
No content
website trackers
soelay
No content
Custom text/HTML
No content