Dotclear


Ignore:
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r2614 r2708  
    325325          '<div id="quick">'. 
    326326          '<h3>'.__('Quick entry').'</h3>'. 
    327           '<form id="quick-entry" action="post.php" method="post" class="fieldset">'. 
     327          '<form id="quick-entry" action="'.$core->adminurl->get('admin.post').'" method="post" class="fieldset">'. 
    328328          '<h4>'.__('New entry').'</h4>'. 
    329329          '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 
  • admin/plugin.php

    r2566 r2708  
    3636     $p_info = $core->plugins->getModules($p); 
    3737 
     38     $p_name = $p; 
    3839     $p_url = 'plugin.php?p='.$p; 
    3940 
  • admin/post.php

    r2705 r2711  
    4141$can_delete = false; 
    4242 
    43 $post_headlink = '<link rel="%s" title="%s" href="post.php?id=%s" />'; 
    44 $post_link = '<a href="post.php?id=%s" title="%s">%s</a>'; 
     43$post_headlink = '<link rel="%s" title="%s" href="'.$core->adminurl->get('admin.post',array('id' => "%s"),'&').'" />'; 
     44$post_link = '<a href="'.$core->adminurl->get('admin.post',array('id' => "%s"),'&').'" title="%s">%s</a>'; 
    4545 
    4646$next_link = $prev_link = $next_headlink = $prev_headlink = null; 
     
    163163} 
    164164 
    165 $comments_actions_page = new dcCommentsActionsPage($core,'post.php',array('id' => $post_id, '_ANCHOR'=>$anchor,'section' => $anchor)); 
     165$comments_actions_page = new dcCommentsActionsPage($core,$core->adminurl->get('admin.post'),array('id' => $post_id, '_ANCHOR'=>$anchor,'section' => $anchor)); 
    166166 
    167167if ($comments_actions_page->process()) { 
     
    190190          if (!$core->error->flag()) { 
    191191               dcPage::addSuccessNotice(__('All pings sent.')); 
    192                http::redirect('post.php?id='.$post_id.'&tb=1'); 
     192               http::redirect($core->adminurl->get( 
     193                    'admin.post', 
     194                    array('id' => $post_id, 'tb'=> '1') 
     195               )); 
    193196          } 
    194197     } 
     
    325328               $core->callBehavior('adminAfterPostUpdate',$cur,$post_id); 
    326329               dcPage::addSuccessNotice (sprintf(__('The post "%s" has been successfully updated'),html::escapeHTML($cur->post_title))); 
    327                http::redirect('post.php?id='.$post_id); 
     330               http::redirect($core->adminurl->get( 
     331                    'admin.post', 
     332                    array('id' => $post_id) 
     333               )); 
    328334          } catch (Exception $e) { 
    329335               $core->error->add($e->getMessage()); 
     
    346352 
    347353               dcPage::addSuccessNotice(__('Entry has been successfully created.')); 
    348                http::redirect('post.php?id='.$return_id); 
     354               http::redirect($core->adminurl->get( 
     355                    'admin.post', 
     356                    array('id' => $return_id) 
     357               )); 
    349358          } catch (Exception $e) { 
    350359               $core->error->add($e->getMessage()); 
     
    507516                         '<p>'.$post_format_field.'</p>'. 
    508517                         '<p class="format_control control_no_xhtml">'. 
    509                          '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="post.php?id='.$post_id.'&amp;xconv=1">'. 
     518                         '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="'. 
     519                         $core->adminurl->get('admin.post',array('id'=> $post_id,'xconv'=> '1')). 
     520                         '">'. 
    510521                         __('Convert to XHTML').'</a></p></div>')), 
    511522          'metas-box' => array( 
     
    604615 
    605616     echo '<div class="multi-part" title="'.($post_id ? __('Edit entry') : __('New entry')).'" id="edit-entry">'; 
    606      echo '<form action="post.php" method="post" id="entry-form">'; 
     617     echo '<form action="'.$core->adminurl->get('admin.post').'" method="post" id="entry-form">'; 
    607618     echo '<div id="entry-wrapper">'; 
    608619     echo '<div id="entry-content"><div class="constrained">'; 
     
    682693 
    683694     if ($has_action) { 
    684           echo '<form action="post.php" id="form-comments" method="post">'; 
     695          echo '<form action="'.$core->adminurl->get('admin.post').'" id="form-comments" method="post">'; 
    685696     } 
    686697 
  • inc/admin/prepend.php

    r2566 r2708  
    174174*/ 
    175175} 
     176 
     177$core->adminurl = new dcAdminURL($core); 
     178 
     179$core->adminurl->register('admin.posts','posts.php'); 
     180$core->adminurl->register('admin.post','post.php'); 
     181$core->adminurl->register('admin.blog.theme','blog_theme.php'); 
     182$core->adminurl->register('admin.blog.pref','blog_pref.php'); 
     183$core->adminurl->register('admin.blogs','blogs.php'); 
     184$core->adminurl->register('admin.categories','categories.php'); 
     185$core->adminurl->register('admin.category','category.php'); 
     186$core->adminurl->register('admin.comments','comments.php'); 
     187$core->adminurl->register('admin.comments','comment.php'); 
     188$core->adminurl->register('admin.help','help.php'); 
     189$core->adminurl->register('admin.home','index.php'); 
     190$core->adminurl->register('admin.langs','langs.php'); 
     191$core->adminurl->register('admin.media','media.php'); 
     192$core->adminurl->register('admin.media_item','media_item.php'); 
     193$core->adminurl->register('admin.plugins','plugins.php'); 
     194$core->adminurl->register('admin.plugin','plugin.php'); 
     195$core->adminurl->register('admin.user.preferences','preferences.php'); 
     196$core->adminurl->register('admin.user','user.php'); 
     197$core->adminurl->register('admin.users','users.php'); 
    176198 
    177199if ($core->auth->userID() && $core->blog !== null) 
     
    278300     } 
    279301} 
     302 
  • inc/core/class.dc.modules.php

    r2566 r2708  
    131131               if ($ns == 'admin') { 
    132132                    $this->loadModuleL10Nresources($id,$lang); 
     133                    $this->core->adminurl->register('admin.plugin.'.$id,'plugin.php',array('p'=>$id)); 
    133134               } 
    134135               $this->loadNsFile($id,$ns); 
  • inc/prepend.php

    r2710 r2711  
    7676$__autoload['context']               = dirname(__FILE__).'/public/lib.tpl.context.php'; 
    7777$__autoload['dcUrlHandlers']         = dirname(__FILE__).'/public/lib.urlhandlers.php'; 
     78$__autoload['dcAdminURL']            = dirname(__FILE__).'/admin/lib.dc.adminurl.php'; 
    7879$__autoload['dcPostsActionsPage']    = dirname(__FILE__).'/admin/actions/class.dcactionposts.php'; 
    7980$__autoload['dcCommentsActionsPage'] = dirname(__FILE__).'/admin/actions/class.dcactioncomments.php'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map