diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 8396b370b..19fd6da1f 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -315,13 +315,15 @@ class Application_Model_Preference $outputArray['STATION_DESCRIPTION'] = Application_Model_Preference::GetStationDescription(); // get web server info - $url = $systemInfoArray["AIRTIME_VERSION_URL"]; - $index = strpos($url,'/api/'); - $url = substr($url, 0, $index); - - $headerInfo = get_headers(trim($url),1); - $outputArray['WEB_SERVER'] = $headerInfo['Server'][0]; - + if(isset($systemInfoArray["AIRTIME_VERSION_URL"])){ + $url = $systemInfoArray["AIRTIME_VERSION_URL"]; + $index = strpos($url,'/api/'); + $url = substr($url, 0, $index); + + $headerInfo = get_headers(trim($url),1); + $outputArray['WEB_SERVER'] = $headerInfo['Server'][0]; + } + $outputArray['NUM_OF_USERS'] = User::getUserCount(); $outputArray['NUM_OF_SONGS'] = StoredFile::getFileCount(); $outputArray['NUM_OF_PLAYLISTS'] = Playlist::getPlaylistCount(); diff --git a/airtime_mvc/public/js/airtime/library/plupload.js b/airtime_mvc/public/js/airtime/library/plupload.js index a7b4f2aee..76bdf532b 100644 --- a/airtime_mvc/public/js/airtime/library/plupload.js +++ b/airtime_mvc/public/js/airtime/library/plupload.js @@ -3,7 +3,7 @@ $(document).ready(function() { $("#plupload_files").pluploadQueue({ // General settings - runtimes : 'html5,html4', + runtimes : 'gears, html5, html4', url : '/Plupload/upload/format/json', chunk_size: '5mb', multiple_queues : 'true', @@ -24,8 +24,18 @@ $(document).ready(function() { .append('