Changeset 788
- Timestamp:
- 05/31/07 10:33:31 (2 years ago)
- Files:
-
- trunk/swisscenter/base/settings.php (modified) (1 diff)
- trunk/swisscenter/config/config_connect.php (modified) (2 diffs)
- trunk/swisscenter/database/update_119.sql (added)
- trunk/swisscenter/index.php (modified) (1 diff)
- trunk/swisscenter/media_search.php (modified) (4 diffs)
- trunk/swisscenter/web_urls.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swisscenter/base/settings.php
r560 r788 23 23 define('MEDIA_TYPE_VIDEO',3); 24 24 define('MEDIA_TYPE_RADIO',4); 25 define('MEDIA_TYPE_WEB',5); 25 26 26 27 define('THUMBNAIL_X_SIZE',130); trunk/swisscenter/config/config_connect.php
r560 r788 38 38 form_label(str('INTERNET_RADIO_PROMPT')); 39 39 40 form_radio_static('web',str('BROWSE_WEB'),$option_vals,get_sys_pref('web_enabled','YES'),false,true); 41 form_label(str('BROWSE_WEB_PROMPT')); 42 40 43 form_radio_static('weather',str('WEATHER_FORECAST'),$option_vals,get_sys_pref('weather_enabled','YES'),false,true); 41 44 form_label(str('WEATHER_FORECAST_PROMPT', '<a href="http://www.weather.com">'.str('WEATHER_CHANNEL').'</a>')); … … 71 74 { 72 75 set_sys_pref('radio_enabled',$_REQUEST["radio"]); 76 set_sys_pref('web_enabled',$_REQUEST["web"]); 73 77 set_sys_pref('weather_enabled',$_REQUEST["weather"]); 74 78 set_sys_pref('wikipedia_lookups',$_REQUEST["wiki"]); trunk/swisscenter/index.php
r675 r788 26 26 27 27 $menu->add_item( str('VIEW_PHOTO'),'photo.php',true); 28 29 if (internet_available() && get_sys_pref('web_enabled','YES') == 'YES') 30 $menu->add_item(str('BROWSE_WEB'),'web_urls.php',true); 28 31 29 32 if (internet_available() && get_sys_pref('weather_enabled','YES') == 'YES') trunk/swisscenter/media_search.php
r783 r788 44 44 if ($media_type == MEDIA_TYPE_MUSIC) 45 45 musicip_server_add_dir($location["NAME"]); 46 }47 46 } 47 48 48 } 49 49 … … 53 53 54 54 media_indicator('BLINK'); 55 55 56 56 // If there are parameters for the media search then read them and then remove them. 57 57 $media_type = get_sys_pref('MEDIA_SCAN_MEDIA_TYPE'); … … 63 63 // Set the percent_scanned to zero for all locations due to be scanned. 64 64 db_sqlcommand("update media_locations set percent_scanned=0 65 where media_type != ".MEDIA_TYPE_RADIO.65 where (media_type not in (".MEDIA_TYPE_RADIO.",".MEDIA_TYPE_WEB."))". 66 66 (empty($cat_id) ? '' : " and cat_id = $cat_id"). 67 67 (empty($media_type) ? '' : " and media_type = $media_type") … … 79 79 eliminate_duplicates(); 80 80 media_indicator('OFF'); 81 81 82 82 // Update media search status 83 83 set_sys_pref('MEDIA_SCAN_STATUS',str('MEDIA_SCAN_STATUS_COMPLETE'));