From a62adbd9cb180fe6bbf88cff2f787d262f737ecb Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 17 Dec 2011 12:43:35 -0500 Subject: removed code from previous plugin --- pages/sso.php | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 pages/sso.php (limited to 'pages/sso.php') diff --git a/pages/sso.php b/pages/sso.php deleted file mode 100644 index a0098ce72..000000000 --- a/pages/sso.php +++ /dev/null @@ -1,52 +0,0 @@ -wwwroot.'action/openid_client/login'; -// $ts = time(); -// $token = generate_action_token($ts); -// $fields = array( -// '__elgg_token'=>$token, -// '__elgg_ts'=>$ts, -// 'passthru_url'=>'', -// 'externalservice'=>'', -// 'username'=>urlencode($openid_url), -// ); -// -// //url-ify the data for the POST -// foreach($fields as $key=>$value) { -// $fields_string .= $key.'='.$value.'&'; -// } -// rtrim($fields_string,'&'); -// -// //open connection -// $ch = curl_init(); -// -// //set the url, number of POST vars, POST data -// curl_setopt($ch,CURLOPT_URL,$url); -// //curl_setopt($ch,CURLOPT_POST,count($fields)); -// curl_setopt($ch,CURLOPT_POST,true); -// curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); -// curl_setopt($ch,CURLOPT_RETURNTRANSFER,false); -// curl_setopt($ch,CURLOPT_FAILONERROR,true); -// //curl_setopt($ch,CURLOPT_HEADER, true); -// curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true); -// -// //execute post -// curl_exec($ch); -// -// //print_r (curl_getinfo($ch)); -// -// //print $result; -// -// //close connection -// curl_close($ch); - -?> \ No newline at end of file -- cgit v1.2.3