• R/O
  • HTTP
  • SSH
  • HTTPS

YANMAH2-season2-: Commit


Commit MetaInfo

Révision9d4d4fc7a4f8ffe611ad1d8f53ed02d870752125 (tree)
l'heure2019-01-20 14:30:16
AuteurKana Koda <kodakana@user...>
CommiterKana Koda

Message de Log

おしまい。

Change Summary

Modification

--- a/.directory
+++ b/.directory
@@ -1,9 +1,9 @@
11 [Dolphin]
22 SortOrder=1
3-SortRole=date
3+SortRole=modificationtime
44 Sorting=2
5-Timestamp=2016,11,3,16,24,11
6-Version=3
5+Timestamp=2018,7,17,1,42,27
6+Version=4
77 ViewMode=1
88
99 [Settings]
--- a/configurable_variables.php
+++ b/configurable_variables.php
@@ -42,7 +42,7 @@ $custom_session_save_path = 'default';
4242 //array('default','default') ならサーバの設定が使われる。
4343 $session_gc_prob = array('1', '100');
4444 //画像縮小用のモバイルゲートウェイの URL
45-$mobile_gateway_for_images = 'http://mgw.hatena.ne.jp/?';
45+$mobile_gateway_for_images = '';
4646 //スタイルシートへのパス
4747 $style_sheet = './style.php';
4848 //デフォルトの文字コード(UTF-8|SJIS|JIS|EUC-JP)
--- a/entry_processor.php
+++ b/entry_processor.php
@@ -1,6 +1,6 @@
11 <?php
22 //YANMAH2 - Yet ANother Mobile Accelerated HatenaHaiku
3-//(c) 2016 YANMAH2 project
3+//(c) 2018 YANMAH2 project
44 //This program is freesoftware. you can redistribute it and/or modify it under the terms of the [GNU Affero GPL v3](http://www.gnu.org/licenses/agpl.html).
55 ?>
66 <?php defined("HELLO") or exit(); ?>
@@ -190,7 +190,7 @@ if (preg_match("/[0-2][0-9]:[0-9]{2}:[0-9]{2}/u", $val->keyword)){
190190 $entry_body_a = explode("\n", $entry_body);
191191 $entry_body_b = array();
192192 foreach ($entry_body_a as $line){
193- if ($get_image == 'on'){
193+ if ($get_image == 'on' && $mobile_gateway_for_images != ''){
194194 if (preg_match("/<a[^>]*href=\".+(youtube|ugomemo|nicovideo).+\"[^>]*><img/u", $line)){
195195 $line = preg_replace("/<a[^>]*href=\"({$http_url_regexp})\"[^>]*>(<img[^>]*src=\")({$http_url_regexp})(\"[^>]*>)/ue", "'<a href=\"\\1\">\\2{$mobile_gateway_for_images}'.rawurlencode(rawurldecode('\\3')).'\\4';", $line);
196196 } elseif (preg_match("/<a[^>]*href=\"({$http_url_regexp})\"[^>]*>(<img[^>]*src=\")({$http_url_regexp})(\"[^>]*>)/u", $line)){
--- a/product_definitions.php
+++ b/product_definitions.php
@@ -1,13 +1,13 @@
11 <?php
22 //YANMAH2 - Yet ANother Mobile Accelerated HatenaHaiku
3-//(c) 2016 YANMAH2 project
3+//(c) 2018 YANMAH2 project
44 //This program is freesoftware. you can redistribute it and/ormodify it under the terms of the [GNU Affero GPL v3](http://www.gnu.org/licenses/agpl.html).
55 ?>
66 <?php defined("HELLO") or exit(); ?>
77 <?php
88 $product_name_abbr = "YANMAH2";
99 $product_name_full = "Yet ANother Mobile Accelerated Hatena-Haiku";
10-$product_version = "season2 2.02";
10+$product_version = "season2 2.03";
1111 $project_name = "YANMAH2 project";
1212 $project_url = "http://yanmah2.sourceforge.jp/";
1313 $user_agent = $product_name_abbr . '/' . $product_version . ' ' . $_SERVER['SERVER_NAME'];
Afficher sur ancien navigateur de dépôt.