Location: PHPKode > projects > Axis Groupware > musiclib/inc/config.inc.php
<?php
###############################
# Music Library Configuration #
###############################

$GLOBALS['phpgw']->config = createObject('phpgwapi.config'); 
$GLOBALS['phpgw']->config->read_repository();
$GLOBALS['phpgw_info']['musiclib']['config'] = $GLOBALS['phpgw']->config->config_data;

$musiclib['config']['remote_library'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_remote_library']; 
$musiclib['config']['music_list'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_music_list']; 
$musiclib['config']['music_path'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_music_path']; 
$musiclib['config']['libraries'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_libraries']; 
$musiclib['config']['albums_subdir'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_albums_subdir']; 
$musiclib['config']['misc_subdir']   = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_misc_subdir'];
$musiclib['config']['separator'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_separator']; 
$musiclib['config']['file_formats'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_file_extensions'];
$musiclib['config']['validation'] = $GLOBALS['phpgw_info']['musiclib']['config']['musiclib_validation'];

$musiclib['config']['music_url'] = pick_library();

##################################
# THESE WILL BE USER PREFERENCES #
##################################

# This sets the format the playlist will be generated as
# 1 = pls
# 2 = m3u
$musiclib['config']['playlist_format'] = 1;

# This sets the size (in songs) of the random playlist
$musiclib['config']['random_playlist_size'] = 50;

# This sets how many recently added songs to display on recent.php
$musiclib['config']['recent_misc']   = 300;
$musiclib['config']['recent_albums'] = 100;
$musiclib['config']['top_albums'] = 100;
$musiclib['config']['top_misc']   = 100;
$musiclib['config']['top_songs'] = 100;

##########################################
# DATABASE TABLES WILL REMAIN HERE AS IS #
##########################################

# Database Tables
$musiclib['tables']['artists'] 	 = "phpgw_musiclib_artists";
$musiclib['tables']['albums'] 	 = "phpgw_musiclib_albums";
$musiclib['tables']['songs'] 	 = "phpgw_musiclib_songs";
$musiclib['tables']['playlists'] = "phpgw_musiclib_playlists";
$musiclib['tables']['playlist_contents'] = "phpgw_musiclib_playlistdata";
$musiclib['tables']['genre'] 	 = "phpgw_musiclib_genre";
?>
Return current item: Axis Groupware