• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revisionb228da6ee1226ff40331d60d90b3e9bdcfe3b43f (tree)
Time2006-10-13 23:44:42
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

avtion=plugin の URL に対応

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@446 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_CustomURL/NP_CustomURL.php
+++ b/trunk/NP_CustomURL/NP_CustomURL.php
@@ -45,7 +45,7 @@ class NP_CustomURL extends NucleusPlugin
4545
4646 function getVersion()
4747 {
48- return '0.3.0';
48+ return '0.3.01';
4949 }
5050
5151 function getDescription()
@@ -370,7 +370,8 @@ class NP_CustomURL extends NucleusPlugin
370370 // Admin area check
371371 $uri = str_replace('/', '\/', sprintf("%s%s%s","http://",serverVar("HTTP_HOST"),serverVar("SCRIPT_NAME")));
372372 $plug_url = str_replace('/', '\/', $CONF['PluginURL']);
373- if (strpos($uri, $plug_url) === 0) $UsingPlugAdmin = TRUE;
373+ $u_plugAction = (getVar('action') == 'plugin' && getVar('name'));
374+ if (strpos($uri, $plug_url) === 0 || $u_plugAction) $UsingPlugAdmin = TRUE;
374375
375376 // redirect to other URL style
376377 if ($this->getBlogOption(intval($blogid), 'use_customurl') == 'yes' && !$UsingPlugAdmin && !$CONF['UsingAdminArea']) {
@@ -399,7 +400,8 @@ class NP_CustomURL extends NucleusPlugin
399400 // redirection nomal URL to FancyURL
400401 $temp_req = explode('?', serverVar('REQUEST_URI'));
401402 $request_path = reset($temp_req);
402- $feeds = ($request_path == 'xml-rss1.php' || $request_path == 'xml-rss2.php' || $request_path == 'atom.php');
403+ $feeds = ($request_path == '/xml-rss1.php' || $request_path == '/xml-rss2.php' || $request_path == '/atom.php');
404+ if ($feeds) return;
403405 if ($this->getBlogOption(intval($blogid), 'redirect_normal') == 'yes' && serverVar('QUERY_STRING') && !$feeds && !$exLink) {
404406 $temp = explode('&', serverVar('QUERY_STRING'));
405407 foreach ($temp as $k => $val) {
Show on old repository browser