--- admin.php.org 2009-11-24 16:03:22.000000000 +0900
+++ admin.php 2011-03-06 23:56:04.359375000 +0900
@@ -221,5 +221,5 @@
/*]]>*/
-
+'.$MathJaxHeader.'
';
}
@@ -633,5 +633,5 @@
echo $DIVISION['header'].$DIVISION['style'].$DIVISION['script'].'
-'.NL.'
'.NL.$DIVISION['body'];
+'.$MathJaxHeader.''.NL.''.NL.$DIVISION['body'];
function _Exit($s=''){
--- amazon_associate.php.org 2009-10-19 18:27:06.000000000 +0900
+++ amazon_associate.php 2011-03-06 20:36:38.859375000 +0900
@@ -233,5 +233,5 @@
function sanitize_data($input, $filter=3){
- $_FILTER1 = array("\0"=>'', "\t"=>'', "\x00"=>'', '|'=>'|', "`"=>'`', "$"=>'$', ","=>',', '\\'=>'¥');
+ $_FILTER1 = array("\0"=>'', "\t"=>'', "\x00"=>'', '|'=>'|', "`"=>'`', "$"=>'$', ","=>',', '\\'=>'\');
$_FILTER2 = array("&"=>'&', "<"=>'<', ">"=>'>', '"'=>'"', "'"=>''');
if(is_array($input)){
--- dot.htaccess.org 2011-03-25 04:56:42.703375000 +0900
+++ dot.htaccess 2011-03-25 04:56:42.703375000 +0900
@@ -0,0 +1,6 @@
+AddHandler application/x-httpd-phpcgi .php
+RewriteEngine on
+RewriteRule ^pages/(.+)/$ index.php?path=pages/$1 [L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^(.*)$ index.php?path=$1 [L]
--- index.php.org 2009-10-15 00:45:02.000000000 +0900
+++ index.php 2011-03-24 21:32:40.703000000 +0900
@@ -50,5 +50,5 @@
-
+
--- js/comment.js.org 2009-09-02 19:04:32.000000000 +0900
+++ js/comment.js 2011-03-07 22:21:36.692250000 +0900
@@ -1,3 +1,3 @@
/* COMMENT.JS by martin $ 2009/09/02 01:01:57 */
o(d).on("click",function(){var A=oParts.target();var D=o("#c_name"),B=o("#c_com"),C=o("#Hiraptcha");if(A.id=="preview-button"){previewIt()}if(A.id=="c_com"){ed=A.$;if(D.value()==""&&o("#ACCEPT_ANONYMITY").value()==0){alert("投稿者名は必須です。");D.focus();return false}if(D.value()!=""&&D.value().match(new RegExp("^"+ONAME+"$","i"))&&o("#ADMIN").value()==0){if(confirm("管理者と同じ名前は使えません。\nログインしますか?")){return location.href="admin.php?UID="+o("#UID").value()+"&comment"}else{D.value("");D.focus();return false}}if(C){if(C.value()==""||C.value()=="右の4文字を入力して下さい"){C.css("color:#c80251").value("右の4文字を入力して下さい")}}}if(A.id=="Hiraptcha"){A.css("color:#333").value("")}if(A.id=="submit-button"){return(function(){if(B.value()==""){A.cancelEvent();alert("コメント内容がないようです。");B.focus();ed=B.$;return false}if(C){if(C.value()==""||C.value()=="右の4文字を入力して下さい"){A.cancelEvent();alert("画像認証用のひらがな4文字を入力して下さい。");C.css("color:#333").focus().value("");return false}return false}return true})()}if(A.id=="c_color"){A.on("change",function(){B.css("color:#"+A.$.value);return false;})}if(A.id=="non-disclosure"){var E=o("#cookieEnabled");if(!E.visible()&&A.checked()){E.show()}else{E.hide()}}return false});
-function previewIt(){var G=o("#c_color").value(),A=o("#c_com"),AI=A.value();F=o("#comment-previewarea");if(AI.trim()==""){alert("コメント内容がないようです。");A.focus();}var E="#cd7373";AI=AI.replace(//gm,">").replace(/\[\[(.+?):http:\/\/(.+?)\]\]/gm,function(J,I,H){return''+I+""});AI=AI.replace(/[^"]http:\/\/([;\/\?:@&=\+\$,\w\-\.!~%#\|]+)/gm,function(I,H){return'http://'+H+""});for(var B in smilies){var D=new RegExp(B.toString().replace(/(\W)/,"\\$1"),"g");AI=AI.replace(D,smilies[B])}AI=AI.replace(/[\n]/gm,"
").replace(/\[q\](.+?)\[\/q\]/gm,'');var C='\n';C+='";F.html(C);o("#submit-button").focus();};
+function previewIt(){var G=o("#c_color").value(),A=o("#c_com"),AI=A.value();F=o("#comment-previewarea");if(AI.trim()==""){alert("コメント内容がないようです。");A.focus();}var E="#cd7373";AI=AI.replace(//gm,">").replace(/\[\[(.+?):http:\/\/(.+?)\]\]/gm,function(J,I,H){return''+I+""});AI=AI.replace(/[^"]http:\/\/([;\/\?:@&=\+\$,\w\-\.!~%#\|]+)/gm,function(I,H){return'http://'+H+""});for(var B in smilies){var D=new RegExp(B.toString().replace(/(\W)/,"\\$1"),"g");AI=AI.replace(D,smilies[B])}AI=AI.replace(/[\n]/gm,"
").replace(/\[q\](.+?)\[\/q\]/gm,'');var C='\n';C+='";F.html(C);MathJax.Hub.Queue(["Typeset",MathJax.Hub,"comment-previewarea"]);o("#submit-button").focus();};
--- js/editor.js.org 2009-11-20 18:22:40.000000000 +0900
+++ js/editor.js 2011-03-07 22:33:12.176625000 +0900
@@ -524,4 +524,5 @@
} else previewHelper.html('Preview: page ' + ed.id.slice(4));
}
+ MathJax.Hub.Queue(["Typeset",MathJax.Hub,"preViewArea"]);
}
--- js/lib.js.org 2009-09-29 17:29:08.000000000 +0900
+++ js/lib.js 2011-03-07 23:39:46.957875000 +0900
@@ -114,4 +114,5 @@
ownerDiv.addAfter(commentsDiv); commentsDiv = o('#responses-' + uid);
tar.html(tar.html().replace(/\[\+\]/, '[-]')).title('表示したコメントを隠します');
+ MathJax.Hub.Queue(["Typeset",MathJax.Hub],"responses-"+uid);
toolTip.html(' コメント読み込み完了! ');
tar.$.disabled = false;
@@ -284,4 +285,5 @@
if(typeof pettieSyntax != UD) pettieSyntax();
articleViewer.show();
+ MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
var viewerHeight = articleViewer.css('height');
--- moby_admin.php.org 2009-03-24 02:08:44.000000000 +0900
+++ moby_admin.php 2011-03-06 20:37:08.984375000 +0900
@@ -26,5 +26,5 @@
} else $paging = '';
if($page > 1) $com = $pages[$page-2];
- $rep = array("|"=>'|', "`"=>'`', "$"=>'$', ","=>',', '\\'=>'¥');
+ $rep = array("|"=>'|', "`"=>'`', "$"=>'$', ","=>',', '\\'=>'\');
$com = htmlspecialchars(str_replace('`', NL, str_replace(array_values($rep), array_keys($rep), $com)));
$com = rtrim($com);
--- modules/comment.inc.php.org 2009-12-01 03:38:56.000000000 +0900
+++ modules/comment.inc.php 2011-03-06 23:56:29.687500000 +0900
@@ -476,5 +476,5 @@
p { margin: .3em 1em;}
-
+'.$MathJaxHeader.'
--- modules/pages.inc.php.org 2009-10-12 23:19:44.000000000 +0900
+++ modules/pages.inc.php 2011-03-06 20:39:07.359375000 +0900
@@ -340,5 +340,5 @@
$key = urlencode(my_encrypt(md5($_ip.OPASS)));
$page_content = get_file_content($target);
- $rep = array("|"=>'|', '%'=>'%', "$"=>'$', ","=>',', '\\'=>'¥');
+ $rep = array("|"=>'|', '%'=>'%', "$"=>'$', ","=>',', '\\'=>'\');
$page_content = htmlspecialchars(str_replace(array('`', '`'), array(NL, '`'), str_replace(array_values($rep), array_keys($rep), $page_content)));
if(g_('TMP')!=''){
@@ -582,5 +582,5 @@
$length = count($mt[0]);
for($i = 0; $i < $length; $i++){
- $rep = array('$'=>'$', '`'=>NL, '%'=>'%', ','=>',', '¥'=>'\\', '`'=>'`', '|'=>'|');
+ $rep = array('$'=>'$', '`'=>NL, '%'=>'%', ','=>',', '\'=>'\\', '`'=>'`', '|'=>'|');
$php = str_replace(array_keys($rep), array_values($rep), $mt[1][$i]);
if(eval($php) === FALSE){
@@ -594,5 +594,5 @@
if(strstr($page, '[style]') && preg_match_all('{`?\[style\](.+?)\[/style\]`?}', $page, $mt)){
$prev = '';
- $rep = array('`'=>NL, '%'=>'%', ','=>',', NL=>NL.' ', '¥'=>'\\');
+ $rep = array('`'=>NL, '%'=>'%', ','=>',', NL=>NL.' ', '\'=>'\\');
foreach ($mt[1] as $m){
$prev .= str_replace(array_keys($rep), array_values($rep), $m);
--- stat/view.php.org 2009-11-25 01:55:16.000000000 +0900
+++ stat/view.php 2011-03-06 22:20:09.687500000 +0900
@@ -374,5 +374,5 @@
global $dayWeek, $date, $log, $search_engines, $LINES, $LOGFILES;
$new_list = $dayline = array();
- $sort_type = array('.jp', '.com', '.net', '.org', 'ne.jp', 'co.jp', 'or.jp', 'ad.jp', 'ac.jp');
+ $sort_type = array('.jp', '.com', '.net', '.org', 'ne.jp', 'co.jp', 'or.jp', 'ad.jp', 'ac.jp', 'go.jp', 'ed.jp');
foreach ($LOGFILES as $i=>$logf){
if(g_('log') != 'all' && ($i+1) != $log) continue;
--- theme/basic/basic.css.org 2009-09-02 20:36:14.000000000 +0900
+++ theme/basic/basic.css 2011-03-08 15:43:13.921875000 +0900
@@ -599,7 +599,9 @@
}
.comments-div a.No{
- font: 800 150% georgia, arial, sans-serif;
+/* font: 800 150% georgia, arial, sans-serif; */
text-decoration: none;
padding-right: 10px;
+ font-size: 90%;
+ font-weight: bold;
}
.comments-div a.No:before { content: "#"; }
--- theme/basic/template.php.org 2009-12-01 22:31:48.000000000 +0900
+++ theme/basic/template.php 2011-03-24 20:37:54.594375000 +0900
@@ -65,8 +65,12 @@
%_SCRIPT_%
+TEMPLATE;
+$_TEMPLATE_HTML .= $MathJaxHeader;
+$_TEMPLATE_HTML .=<<