Changeset 2823:f011562dadc7
- Timestamp:
- 11/27/14 15:28:36 (9 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/aboutConfig/_admin.php
r2566 r2823 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 13 14 $_menu['System']->addItem('about:config','plugin.php?p=aboutConfig','index.php?pf=aboutConfig/icon.png', 15 preg_match('/plugin.php\?p=aboutConfig(&.*)?$/',$_SERVER['REQUEST_URI']), 16 $core->auth->isSuperAdmin()); 14 $_menu['System']->addItem('about:config', 15 $core->adminurl->get('admin.plugin.aboutConfig'), 16 $core->adminurl->decode('load.plugin.file',array('pf' => 'aboutConfig/icon.png')), 17 preg_match('/'.preg_quote($core->adminurl->get('admin.plugin.aboutConfig')).'(&.*)?$/',$_SERVER['REQUEST_URI']), 18 $core->auth->isSuperAdmin()); -
plugins/aboutConfig/index.php
r2566 r2823 155 155 } 156 156 echo 157 '<form action=" plugin.php" method="post">'.157 '<form action="'.$p_url.'" method="post">'. 158 158 '<p class="anchor-nav">'. 159 159 '<label for="ls_nav" class="classic">'.__('Goto:').'</label> '.form::combo('ls_nav',$ns_combo). … … 164 164 ?> 165 165 166 <form action=" plugin.php" method="post">166 <form action="<?php echo $p_url; ?>" method="post"> 167 167 168 168 <?php … … 205 205 } 206 206 echo 207 '<form action=" plugin.php" method="post">'.207 '<form action="'.$p_url.'" method="post">'. 208 208 '<p class="anchor-nav">'. 209 209 '<label for="gs_nav" class="classic">'.__('Goto:').'</label> '.form::combo('gs_nav',$ns_combo).' '. … … 214 214 ?> 215 215 216 <form action=" plugin.php" method="post">216 <form action="<?php echo $p_url; ?>" method="post"> 217 217 218 218 <?php -
plugins/antispam/_admin.php
r2566 r2823 16 16 } 17 17 18 $_menu['Plugins']->addItem(__('Antispam'),'plugin.php?p=antispam','index.php?pf=antispam/icon.png', 19 preg_match('/plugin.php\?p=antispam(&.*)?$/',$_SERVER['REQUEST_URI']), 20 $core->auth->check('admin',$core->blog->id)); 18 $_menu['Plugins']->addItem(__('Antispam'), 19 $core->adminurl->get('admin.plugin.antispam'), 20 $core->adminurl->decode('load.plugin.file',array('pf' => 'antispam/icon.png')), 21 preg_match('/'.preg_quote($core->adminurl->get('admin.plugin.antispam')).'(&.*)?$/',$_SERVER['REQUEST_URI']), 22 $core->auth->check('admin',$core->blog->id)); 21 23 22 24 $core->addBehavior('coreAfterCommentUpdate',array('dcAntispam','trainFilters')); … … 31 33 $favs->register('antispam', array( 32 34 'title' => __('Antispam'), 33 'url' => 'plugin.php?p=antispam',34 'small-icon' => 'index.php?pf=antispam/icon.png',35 'large-icon' => 'index.php?pf=antispam/icon-big.png',35 'url' => $core->adminurl->get('admin.plugin.antispam'), 36 'small-icon' => $core->adminurl->decode('load.plugin.file',array('pf' => 'antispam/icon.png')), 37 'large-icon' => $core->adminurl->decode('load.plugin.file',array('pf' => 'antispam/icon-big.png')), 36 38 'permissions' => 'admin') 37 39 ); … … 79 81 if ($ttl != null && $ttl >=0) { 80 82 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $ttl).' '. 81 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php#antispam_moderation_ttl"> '.__('Blog settings').'</a>'). 83 sprintf(__('You can modify this duration in the %s'),'<a href="'.$core->adminurl->get('admin.blog.pref'). 84 '#antispam_moderation_ttl"> '.__('Blog settings').'</a>'). 82 85 '.</p>'; 83 86 } … … 93 96 ' '.__('days'). 94 97 '</label></p>'. 95 '<p><a href=" plugin.php?p=antispam">'.__('Set spam filters.').'</a></p>'.98 '<p><a href="'.$core->adminurl->get('admin.plugin.antispam').'">'.__('Set spam filters.').'</a></p>'. 96 99 '</div>'; 97 100 } -
plugins/antispam/inc/class.dc.spamfilter.php
r2566 r2823 40 40 } 41 41 42 $this->gui_url = 'plugin.php?p=antispam&f='.get_class($this);42 $this->gui_url = $core->adminurl->decode('admin.plugin.antispam',array('f' => get_class($this))); 43 43 } 44 44 -
plugins/antispam/inc/lib.dc.antispam.php
r2566 r2823 75 75 if (($count = self::countSpam($core)) > 0) { 76 76 $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 77 $icons['comments'][0] .= '</span></a> <br /><a href="comments.php?status=-2"><span>'.sprintf($str,$count); 77 $icons['comments'][0] .= '</span></a> <br /><a href="'.$core->adminurl->get('admin.comments',array('status' => '-2')).'"><span>'. 78 sprintf($str,$count); 78 79 } 79 80 } … … 83 84 if (($count = self::countSpam($core)) > 0) { 84 85 $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 85 return '</span></a> <br /><a href="comments.php?status=-2"><span>'.sprintf($str,$count); 86 return '</span></a> <br /><a href="'.$core->adminurl->get('admin.comments',array('status' => '-2')).'"><span>'. 87 sprintf($str,$count); 86 88 } else { 87 89 return ''; -
plugins/antispam/index.php
r2567 r2823 118 118 dcPage::jsLoad('js/jquery/jquery-ui.custom.js'). 119 119 dcPage::jsLoad('js/jquery/jquery.ui.touch-punch.js'). 120 dcPage::jsLoad( 'index.php?pf=antispam/antispam.js');120 dcPage::jsLoad($core->adminurl->decode('load.plugin.file',array('pf' => 'antispam/antispam.js'))); 121 121 } 122 122 ?> 123 <link rel="stylesheet" type="text/css" href=" index.php?pf=antispam/style.css" />123 <link rel="stylesheet" type="text/css" href="<?php echo $core->adminurl->decode('load.plugin.file',array('pf' => 'antispam/style.css')); ?>" /> 124 124 </head> 125 125 <body> … … 136 136 dcPage::notices(); 137 137 138 echo '<p><a href=" plugin.php?p=antispam" class="back">'.__('Back to filters list').'</a></p>';138 echo '<p><a href="'.$p_url.'" class="back">'.__('Back to filters list').'</a></p>'; 139 139 140 140 echo $filter_gui; … … 164 164 echo 165 165 '<ul class="spaminfo">'. 166 '<li class="spamcount"><a href=" comments.php?status=-2">'.__('Junk comments:').'</a> '.166 '<li class="spamcount"><a href="'.$core->adminurl->get('admin.comments',array('status' => '-2')).'">'.__('Junk comments:').'</a> '. 167 167 '<strong>'.$spam_count.'</strong></li>'. 168 '<li class="hamcount"><a href=" comments.php?status=1">'.__('Published comments:').'</a> '.168 '<li class="hamcount"><a href="'.$core->adminurl->get('admin.comments',array('status' => '1')).'">'.__('Published comments:').'</a> '. 169 169 $published_count.'</li>'. 170 170 '</ul>'; … … 179 179 if ($moderationTTL != null && $moderationTTL >=0) { 180 180 echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $moderationTTL).' '. 181 sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php#antispam_moderation_ttl"> '.__('Blog settings').'</a>'). 181 sprintf(__('You can modify this duration in the %s'),'<a href="'.$core->adminurl->get('admin.blog.pref'). 182 '#antispam_moderation_ttl"> '.__('Blog settings').'</a>'). 182 183 '.</p>'; 183 184 } -
plugins/attachments/_admin.php
r2566 r2823 38 38 public static function postHeaders() 39 39 { 40 $core =& $GLOBALS['core']; 40 41 return 41 '<script type="text/javascript" src=" index.php?pf=attachments/js/post.js"></script>';42 '<script type="text/javascript" src="'.$core->adminurl->decode('load.plugin.file',array('pf' => 'attachments/js/post.js')).'"></script>'; 42 43 } 43 44 public static function adminPostFormItems($main,$sidebar,$post) … … 58 59 $item .= 59 60 '<div class="media-item s-attachments">'. 60 '<a class="media-icon" href=" media_item.php?id='.$f->media_id.'">'.61 '<a class="media-icon" href="'.$core->adminurl->get('admin.media.item',array('id' => $f->media_id)).'">'. 61 62 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 62 63 '<ul>'. 63 '<li><a class="media-link" href=" media_item.php?id='.$f->media_id.'" '.64 '<li><a class="media-link" href="'.$core->adminurl->get('admin.media.item',array('id' => $f->media_id)).'" '. 64 65 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 65 66 '<li>'.$f->media_dtstr.'</li>'. … … 68 69 69 70 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 70 'href="post_media.php?post_id='.$post->post_id.'&media_id='.$f->media_id.'&remove=1">'. 71 'href="'.$core->adminurl->get('admin.post.media',array( 72 'post_id' => $post->post_id, 73 'media_id' => $f->media_id, 74 'remove' => '1' 75 )).'">'. 71 76 '<img src="images/trash.png" alt="'.__('remove').'" /></a>'. 72 77 '</li>'. … … 80 85 $item .= '<p class="form-note s-attachments">'.__('No attachment.').'</p>'; 81 86 } 82 $item .= '<p class="s-attachments"><a class="button" href="media.php?post_id='.$post->post_id.'">'.__('Add files to this entry').'</a></p>'; 87 $item .= 88 '<p class="s-attachments"><a class="button" href="'.$core->adminurl->get('admin.media',array('post_id' => $post->post_id)).'">'. 89 __('Add files to this entry').'</a></p>'; 83 90 $sidebar['metas-box']['items']['attachments']= $item; 84 91 } … … 90 97 $core =& $GLOBALS['core']; 91 98 echo 92 '<form action=" post_media.php" id="attachment-remove-hide" method="post">'.99 '<form action="'.$core->adminurl->get('admin.post.media').'" id="attachment-remove-hide" method="post">'. 93 100 '<div>'.form::hidden(array('post_id'),$post->post_id). 94 101 form::hidden(array('media_id'),'').
Note: See TracChangeset
for help on using the changeset viewer.