Changeset 2667934
- Timestamp:
- 01/28/2022 08:39:37 AM (4 years ago)
- Location:
- wxsync/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
setting.php (modified) (3 diffs)
-
wxsync.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxsync/trunk/readme.txt
r2667779 r2667934 3 3 Donate link: http://std.cloud 4 4 Tags: 微信公众号,免费,公众号文章采集,数据采集,微信公众号采集 5 Stable tag: 2.7.1 45 Stable tag: 2.7.15 6 6 Tested up to: 5.8.3 7 7 License: GPLv2 or later -
wxsync/trunk/setting.php
r2667779 r2667934 252 252 253 253 <tr> 254 <th>移除文中的链接</th>255 <td>256 <select name="article_removelink">257 <option value="keep" <?php if(!empty($_COOKIE['article_removelink']) && 0==$_COOKIE['article_removelink']){echo 'selected';} ?>>保留</option>258 <option value="removehref" <?php if(!empty($_COOKIE['article_removelink']) && 1==$_COOKIE['article_removelink']){echo 'selected';} ?>>移除链接,保留内容</option>259 <option value="all" <?php if(!empty($_COOKIE['article_removelink']) && 1==$_COOKIE['article_removelink']){echo 'selected';} ?>>移除链接,移除内容</option>260 </select>261 </td>262 </tr>263 264 265 <tr>266 254 <th>来源文字</th> 267 255 <td> … … 500 488 var wxsync_rmtailimg = jQuery('input[name=wxsync_rmtailimg]').val(); 501 489 var article_removeblank = jQuery('select[name=article_removeblank]').val(); 502 var article_removelink = jQuery('select[name=article_removelink]').val();503 490 var wxsync_setsourcetxt = jQuery('input[name=wxsync_setsourcetxt]').val(); 504 491 var wxsync_replace_words = jQuery('textarea[name=wxsync_replace_words]').val(); … … 542 529 wxsync_rmtailimg:wxsync_rmtailimg, 543 530 article_removeblank:article_removeblank, 544 article_removelink:article_removelink,545 531 wxsync_setsourcetxt:wxsync_setsourcetxt, 546 532 wxsync_replace_words:wxsync_replace_words, -
wxsync/trunk/wxsync.php
r2667779 r2667934 4 4 Plugin URI: http://std.cloud 5 5 Description: 标准云微信公众号文章免费采集、<strong>任意公众号自动采集5元/月</strong> 6 Version: 2.7.1 46 Version: 2.7.15 7 7 Author: 标准云(std.cloud) 8 8 Author URI: http://std.cloud … … 24 24 $GLOBALS['wxsync_tab'] = ''; 25 25 $GLOBALS['wxsync_error'] = array(); 26 $GLOBALS['wxsync_ver'] = '2.7.1 4';26 $GLOBALS['wxsync_ver'] = '2.7.15'; 27 27 $GLOBALS['wxsync_code'] = 0; 28 28 … … 58 58 ,'wxsync_rmheadimg','wxsync_rmtailimg','wxsync_replace_words','article_imgurl','article_href','article_debug','article_raw' 59 59 ,'host','port','username','password','article_remotetag','article_remote_a_href' 60 ,'article_userid','article_removeblank','article_tags' ,'article_removelink'60 ,'article_userid','article_removeblank','article_tags' 61 61 ); 62 62 foreach ($keys as $one){ … … 422 422 $article_replace_words = isset($req['wxsync_replace_words'])?$req['wxsync_replace_words']:''; 423 423 $article_removeblank = isset($req['article_removeblank'])?$req['article_removeblank']:0; 424 $article_removelink = isset($req['article_removelink'])?$req['article_removelink']:'keep';425 424 $article_tags = isset($req['article_tags'])?$req['article_tags']:''; 426 425 $article_tags = array_map('trim', explode('#', $article_tags)); … … 650 649 $content = strip_tags($content, '<br><img><video><iframe><code><a><audio><canvas><input>'); 651 650 } 652 if( isset($req['article_remote_a_href'])){651 if(!empty($req['article_remote_a_href'])){ 653 652 if(1 == $req['article_remote_a_href']){ 654 653 $content = preg_replace('/<a[^>]*>(.*?)<\/a>/i', '$1', $content); … … 665 664 } 666 665 667 if('removehref' == $article_removelink){668 $content = preg_replace('/<a[^>]*>(.*?)<\/a>/i', '$1', $content);669 }670 if('all' == $article_removelink){671 $content = preg_replace('/<a[^>]*>(.*?)<\/a>/i', '', $content);672 }673 666 if('keep' == $article_checkrepeat){ 674 667 if (!$override && post_exists($articleTitle)) {
Note: See TracChangeset
for help on using the changeset viewer.