Revisión | 9d4d4fc7a4f8ffe611ad1d8f53ed02d870752125 (tree) |
---|---|
Tiempo | 2019-01-20 14:30:16 |
Autor | Kana Koda <kodakana@user...> |
Commiter | Kana Koda |
おしまい。
@@ -1,9 +1,9 @@ | ||
1 | 1 | [Dolphin] |
2 | 2 | SortOrder=1 |
3 | -SortRole=date | |
3 | +SortRole=modificationtime | |
4 | 4 | Sorting=2 |
5 | -Timestamp=2016,11,3,16,24,11 | |
6 | -Version=3 | |
5 | +Timestamp=2018,7,17,1,42,27 | |
6 | +Version=4 | |
7 | 7 | ViewMode=1 |
8 | 8 | |
9 | 9 | [Settings] |
@@ -42,7 +42,7 @@ $custom_session_save_path = 'default'; | ||
42 | 42 | //array('default','default') ならサーバの設定が使われる。 |
43 | 43 | $session_gc_prob = array('1', '100'); |
44 | 44 | //画像縮小用のモバイルゲートウェイの URL |
45 | -$mobile_gateway_for_images = 'http://mgw.hatena.ne.jp/?'; | |
45 | +$mobile_gateway_for_images = ''; | |
46 | 46 | //スタイルシートへのパス |
47 | 47 | $style_sheet = './style.php'; |
48 | 48 | //デフォルトの文字コード(UTF-8|SJIS|JIS|EUC-JP) |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | //YANMAH2 - Yet ANother Mobile Accelerated HatenaHaiku |
3 | -//(c) 2016 YANMAH2 project | |
3 | +//(c) 2018 YANMAH2 project | |
4 | 4 | //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). |
5 | 5 | ?> |
6 | 6 | <?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)){ | ||
190 | 190 | $entry_body_a = explode("\n", $entry_body); |
191 | 191 | $entry_body_b = array(); |
192 | 192 | foreach ($entry_body_a as $line){ |
193 | - if ($get_image == 'on'){ | |
193 | + if ($get_image == 'on' && $mobile_gateway_for_images != ''){ | |
194 | 194 | if (preg_match("/<a[^>]*href=\".+(youtube|ugomemo|nicovideo).+\"[^>]*><img/u", $line)){ |
195 | 195 | $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); |
196 | 196 | } elseif (preg_match("/<a[^>]*href=\"({$http_url_regexp})\"[^>]*>(<img[^>]*src=\")({$http_url_regexp})(\"[^>]*>)/u", $line)){ |
@@ -1,13 +1,13 @@ | ||
1 | 1 | <?php |
2 | 2 | //YANMAH2 - Yet ANother Mobile Accelerated HatenaHaiku |
3 | -//(c) 2016 YANMAH2 project | |
3 | +//(c) 2018 YANMAH2 project | |
4 | 4 | //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). |
5 | 5 | ?> |
6 | 6 | <?php defined("HELLO") or exit(); ?> |
7 | 7 | <?php |
8 | 8 | $product_name_abbr = "YANMAH2"; |
9 | 9 | $product_name_full = "Yet ANother Mobile Accelerated Hatena-Haiku"; |
10 | -$product_version = "season2 2.02"; | |
10 | +$product_version = "season2 2.03"; | |
11 | 11 | $project_name = "YANMAH2 project"; |
12 | 12 | $project_url = "http://yanmah2.sourceforge.jp/"; |
13 | 13 | $user_agent = $product_name_abbr . '/' . $product_version . ' ' . $_SERVER['SERVER_NAME']; |