Skip to content

Commit

Permalink
check php version
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Feb 20, 2015
1 parent 5df14ab commit ec7f0cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spotify-mini-player/src/action.php
Expand Up @@ -671,6 +671,13 @@
}
return;
} else if ($other_action == "Oauth_Login") {
// check PHP version
$version = explode('.',phpversion());
if($version[1] < 6) {
displayNotificationWithArtwork("PHP 5.4.0 or later is required for authentication", './images/warning.png', 'Error!');
exec("open http://alfred-spotify-mini-player.com/known-issues/#php_requirement");
return;
}
exec("kill -9 $(ps -efx | grep \"php\" | egrep \"php -S localhost:15298\" | grep -v grep | awk '{print $2}')");
sleep(1);
$cache_log = $w->cache() . '/spotify_mini_player_web_server.log';
Expand Down

0 comments on commit ec7f0cb

Please sign in to comment.