Dotclear


Ignore:
Timestamp:
06/19/14 16:56:47 (11 years ago)
Author:
Dsls
Branch:
default
Message:

One step further towards php hardcoded links annihilation in admin sources, more to come...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r2678 r2720  
    7474$popup = (integer) !empty($_GET['popup']); 
    7575 
    76 $page_url = 'media.php?popup='.$popup.'&post_id='.$post_id; 
     76$page_url = $core->adminurl->get("admin.media",array('popup' => $popup,'post_id' => $post_id)); 
    7777if (($temp = $core->callBehavior('adminMediaURL',$page_url))!='') { 
    7878     $page_url = $temp; 
     
    377377$items = array_values(array_merge($dir['dirs'],$dir['files'])); 
    378378 
    379 $fmt_form_media = '<form action="media.php" method="post" id="form-medias">'. 
     379$fmt_form_media = '<form action="'.$core->adminurl->get("admin.media").'" method="post" id="form-medias">'. 
    380380     '<div class="files-group">%s</div>'. 
    381381     '<p class="hidden">'.$core->formNonce() . form::hidden(array('d'),$d).'</p>'; 
     
    403403 
    404404     echo 
    405      '<form action="media.php" method="get" id="filters-form">'. 
     405     '<form action="'.$core->adminurl->get("admin.media").'" method="get" id="filters-form">'. 
    406406     '<p class="two-boxes"><label for="file_sort" class="classic">'.__('Sort files:').'</label> '. 
    407407     form::combo('file_sort',$sort_combo,$file_sort).'</p>'. 
     
    522522          echo 
    523523          '<p class="one-file form-help info">'.__('To send several files at the same time, you can activate the enhanced uploader in'). 
    524           ' <a href="preferences.php?tab=user-options">'.__('My preferences').'</a></p>'; 
     524          ' <a href="'.$core->adminurl->get("admin.user.preferences",array('tab' => 'user-options')).'">'.__('My preferences').'</a></p>'; 
    525525     } 
    526526 
     
    555555if (!$popup) { 
    556556     echo '<div class="info"><p>'.sprintf(__('Current settings for medias and images are defined in %s'), 
    557      '<a href="blog_pref.php#medias-settings">'.__('Blog parameters').'</a>').'</p></div>'; 
     557     '<a href="'.$core->adminurl->get("admin.blog.pref").'#medias-settings">'.__('Blog parameters').'</a>').'</p></div>'; 
    558558} 
    559559 
     
    578578          } 
    579579     } else { 
    580           $link = 'media_item.php?id='.$f->media_id.'&amp;popup='.$popup.'&amp;post_id='.$post_id; 
     580          $link = $core->adminurl->get("admin.media.item", array('id' => $f->media_id,'popup' => $popup,'post_id' => $post_id)); 
    581581        if (($temp = $core->callBehavior('adminMediaURL',$link))!='') { 
    582582            $link = $temp; 
     
    608608     if ($post_id && !$f->d) { 
    609609          $act .= 
    610           '<a class="attach-media" title="'.__('Attach this file to entry').'" href="post_media.php?media_id='.$f->media_id. 
    611           '&amp;post_id='.$post_id.'&amp;attach=1">'. 
     610          '<a class="attach-media" title="'.__('Attach this file to entry').'" href="'. 
     611          $core->adminurl->get("admin.post.media", array('media_id' => $f->media_id, 'post_id' => $post_id,'attach' => 1)). 
     612          '">'. 
    612613          '<img src="images/plus.png" alt="'.__('Attach this file to entry').'"/>'. 
    613614          '</a>'; 
     
    633634 
    634635     if ($f->type == 'audio/mpeg3') { 
    635           $lst .= '<li>'.dcMedia::mp3player($f->file_url,'index.php?pf=player_mp3.swf').'</li>'; 
     636          $lst .= '<li>'.dcMedia::mp3player($f->file_url,$core->adminurl->get("admin.home",array('pf' => 'player_mp3.swf'))).'</li>'; 
    636637     } 
    637638 
Note: See TracChangeset for help on using the changeset viewer.

Sites map