Skip to content
Snippets Groups Projects
Commit 9a18060e authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

rename readline in order to not get conflict

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2109 44740490-163a-0410-bde0-09ae8108e29a
parent f673c49f
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ switch($action) { ...@@ -69,7 +69,7 @@ switch($action) {
throw new Exception('Unknown action [' . $action . ']'); throw new Exception('Unknown action [' . $action . ']');
} }
function readline($prompt = '') { function ssp_readline($prompt = '') {
echo $prompt; echo $prompt;
return rtrim( fgets( STDIN ), "\n" ); return rtrim( fgets( STDIN ), "\n" );
} }
...@@ -122,7 +122,7 @@ function push($file, $fileWithoutExt, $aid) { ...@@ -122,7 +122,7 @@ function push($file, $fileWithoutExt, $aid) {
echo('Go to this URL to authenticate/authorize the request: ' . $url . "\n"); echo('Go to this URL to authenticate/authorize the request: ' . $url . "\n");
system('open ' . $url); system('open ' . $url);
readline('Click enter when you have completed the authorization step using your web browser...'); ssp_readline('Click enter when you have completed the authorization step using your web browser...');
// Replace the request token with an access token // Replace the request token with an access token
$accessToken = $consumer->getAccessToken( $baseurl . '/module.php/oauth/accessToken.php', $requestToken); $accessToken = $consumer->getAccessToken( $baseurl . '/module.php/oauth/accessToken.php', $requestToken);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment