~ubuntu-gr-webteam/ubuntu-gr-website/drupal6-site

« back to all changes in this revision

Viewing changes to sites/all/modules/webfm/modules/webfm_mp3/webfm_mp3.module

  • Committer: Thanos Lefteris
  • Date: 2009-07-29 17:46:54 UTC
  • Revision ID: alefteris@gmail.com-20090729174654-pgfr1vtqw8ikvo5r
* Upgraded calendar module
* Upgraded commentrss module
* Upgraded date module
* Upgraded webfm module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: webfm_mp3.module,v 1.1 2009/02/08 06:25:40 robmilne Exp $
 
2
// $Id: webfm_mp3.module,v 1.2 2009/02/10 14:59:17 robmilne Exp $
3
3
/**
4
4
 * @file
5
5
 * WebFM mp3 player module file.
193
193
      if(is_file($source)) {
194
194
        $file = webfm_get_file_record('', $source);
195
195
        if($file->perm & WEBFM_FILE_ACCESS_PUBLIC_VIEW ||
 
196
           $file->perm & WEBFM_FILE_ACCESS_ROLE_VIEW ||
196
197
           $file->uid == $user->uid ||
197
198
           $webfm_perm == WEBFM_ADMIN) {
198
199
          $result = new stdClass();
249
250
 * Check for required flash components in 'mp3player' directory.
250
251
 */
251
252
function webfm_mp3_check_flash_files() {
252
 
  if(!file_exists(drupal_get_path('module', 'webfm_mp3').'/mp3player/audio-player.js') || !file_exists(drupal_get_path('module', 'mp3player').'/mp3player/player.swf')) {
 
253
  if(!file_exists(drupal_get_path('module', 'webfm_mp3').'/mp3player/audio-player.js') || !file_exists(drupal_get_path('module', 'webfm_mp3').'/mp3player/player.swf')) {
253
254
    return FALSE;
254
255
  }
255
256
  return TRUE;