Assembla home | Assembla project page
 

Changeset 788

Show
Ignore:
Timestamp:
05/31/07 10:33:31 (3 years ago)
Author:
swiss
Message:

Added the code supplied by Didier to allow browsing websites via the hardware player. Addresses are stored in the filesystem as Windows/IE shortcuts (.url files).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swisscenter/base/settings.php

    r560 r788  
    2323  define('MEDIA_TYPE_VIDEO',3); 
    2424  define('MEDIA_TYPE_RADIO',4); 
     25  define('MEDIA_TYPE_WEB',5); 
    2526   
    2627  define('THUMBNAIL_X_SIZE',130); 
  • trunk/swisscenter/config/config_connect.php

    r560 r788  
    3838    form_label(str('INTERNET_RADIO_PROMPT')); 
    3939 
     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     
    4043    form_radio_static('weather',str('WEATHER_FORECAST'),$option_vals,get_sys_pref('weather_enabled','YES'),false,true); 
    4144    form_label(str('WEATHER_FORECAST_PROMPT', '<a href="http://www.weather.com">'.str('WEATHER_CHANNEL').'</a>')); 
     
    7174  { 
    7275    set_sys_pref('radio_enabled',$_REQUEST["radio"]); 
     76    set_sys_pref('web_enabled',$_REQUEST["web"]); 
    7377    set_sys_pref('weather_enabled',$_REQUEST["weather"]); 
    7478    set_sys_pref('wikipedia_lookups',$_REQUEST["wiki"]); 
  • trunk/swisscenter/index.php

    r675 r788  
    2626 
    2727  $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); 
    2831 
    2932  if (internet_available() && get_sys_pref('weather_enabled','YES') == 'YES') 
  • trunk/swisscenter/media_search.php

    r783 r788  
    4444      if ($media_type == MEDIA_TYPE_MUSIC) 
    4545        musicip_server_add_dir($location["NAME"]);     
    46    
    47          
     46 
     47 
    4848  } 
    4949 
     
    5353 
    5454  media_indicator('BLINK'); 
    55  
     55   
    5656  // If there are parameters for the media search then read them and then remove them. 
    5757  $media_type = get_sys_pref('MEDIA_SCAN_MEDIA_TYPE'); 
     
    6363  // Set the percent_scanned to zero for all locations due to be scanned. 
    6464  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."))"
    6666                  (empty($cat_id) ? '' : " and cat_id = $cat_id"). 
    6767                  (empty($media_type) ? '' : " and media_type = $media_type") 
     
    7979  eliminate_duplicates(); 
    8080  media_indicator('OFF'); 
    81    
     81 
    8282  // Update media search status 
    8383  set_sys_pref('MEDIA_SCAN_STATUS',str('MEDIA_SCAN_STATUS_COMPLETE'));