Version 3.4.5

This commit is contained in:
Neo committed 2025-12-19 00:38:12 -08:00
1 parent fb6b5baabc
commit e4478369d8
1360 files changed
+228921 -179445

No files matched your search

@@ -7,7 +7,7 @@
* $Author: ips_terabyte $
* @since 14th May 2003
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
* @version v3.3.4
* @version v3.4.5
* $Revision: 8655 $
*/
@@ -2,18 +2,18 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* IP.Board v3.4.5
* Forum RSS Export
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* Last Updated: $Date: 2013-02-21 08:36:30 -0500 (Thu, 21 Feb 2013) $
* </pre>
*
* @author $Author: bfarber $
* @author $Author: mmecham $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Forums
* @link http://www.invisionpower.com
* @version $Rev: 10914 $
* @version $Rev: 12010 $
*/
if ( ! defined( 'IN_ACP' ) )
@@ -347,7 +347,11 @@ class admin_forums_rss_export extends ipsCommand
/* Reset rss_export cache */
$this->cache->updateCacheWithoutSaving( 'rss_export', array() );
/* Grab the parser file */
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/text/parser.php', 'classes_text_parser' );
$parser = new $classToLoad();
/* Go loopy */
$this->DB->build( array( 'select' => '*', 'from' => 'rss_export' ) );
$outer = $this->DB->execute();
@@ -433,13 +437,16 @@ class admin_forums_rss_export extends ipsCommand
// Parse the post
//-----------------------------------------
$this->settings['__noTruncateUrl'] = 1;
IPSText::getTextClass( 'bbcode' )->parse_smilies = $topic['use_emo'];
IPSText::getTextClass( 'bbcode' )->parse_html = ( $this->registry->class_forums->forum_by_id[ $topic['forum_id'] ]['use_html'] and $topic['post_htmlstate'] ) ? 1 : 0;
IPSText::getTextClass( 'bbcode' )->parse_nl2br = $topic['post_htmlstate'] == 2 ? 1 : 0;
IPSText::getTextClass( 'bbcode' )->parse_bbcode = 1;
IPSText::getTextClass( 'bbcode' )->parsing_section = 'topics';
$topic['post'] = IPSText::getTextClass('bbcode')->preDisplayParse( $topic['post'] );
/* set up parser */
$parser->set( array( 'memberData' => array( 'member_id' => 0, 'member_group_id' => $this->settings['guest_group'] ),
'parseBBCode' => 1,
'parseHtml' => ( $this->registry->class_forums->forum_by_id[ $topic['forum_id'] ]['use_html'] and $topic['post_htmlstate'] ) ? 1 : 0,
'parseEmoticons' => $topic['use_emo'],
'parseArea' => 'topics' ) );
$topic['post'] = $parser->display( $topic['post'] );
if( $row['rss_export_include_post'] AND $topic['topic_hasattach'] )
{
if ( ! is_object( $_attachments ) )
@@ -476,8 +483,8 @@ class admin_forums_rss_export extends ipsCommand
//$topic['post'] = preg_replace( "#\[attachment=(\d+?)\:(?:[^\]]+?)\]#is", "<a href='{$this->settings['board_url']}/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=\\1'>".$this->settings['board_url']."/index.php?app=forums&module=forums&section=attach&type=post&attach_id=\\1</a>", $topic['post'] );
/* Fix up relative URLs */
$topic['post'] = preg_replace( "#([^/])style_images/(<\#IMG_DIR\#>)#is", "\\1" . $this->settings['board_url'] . "/style_images/\\2" , $topic['post'] );
$topic['post'] = preg_replace( "#([\"'])style_emoticons/#is" , "\\1" . $this->settings['board_url'] . "/style_emoticons/", $topic['post'] );
$topic['post'] = preg_replace( '#([^/])style_images/(<\#IMG_DIR\#>)#is', "\\1" . $this->settings['board_url'] . "/style_images/\\2" , $topic['post'] );
$topic['post'] = preg_replace( '#(["\'])style_emoticons/#is' , "\\1" . $this->settings['board_url'] . "/style_emoticons/", $topic['post'] );
$topic['post'] = $this->registry->output->replaceMacros( $topic['post'] );
File diff suppressed because it is too large. Load diff
@@ -2,10 +2,10 @@
<menu>
<tabitems>
<item>
<title>RSS Import</title>
<title>RSS Импорт</title>
<subitems>
<subitem>
<subitemtitle>RSS Import</subitemtitle>
<subitemtitle>RSS Импорт</subitemtitle>
<subitemlang>rssimports</subitemlang>
<subsection>import</subsection>
<subitemurl>do=overview</subitemurl>
@@ -15,10 +15,10 @@
</subitems>
</item>
<item>
<title>RSS Export</title>
<title>RSS Экспорт</title>
<subitems>
<subitem>
<subitemtitle>RSS Export</subitemtitle>
<subitemtitle>RSS Экспорт</subitemtitle>
<subitemlang>rssexports</subitemlang>
<subsection>export</subsection>
<subitemurl>do=overview</subitemurl>
@@ -1,28 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<permissions>
<group>
<grouptitle>RSS Management</grouptitle>
<grouptitle>Управление RSS</grouptitle>
<grouplang>forums_rss</grouplang>
<items>
<item>
<key>export_manage</key>
<string>Can manage forum RSS exports?</string>
<string>Может изменять/добавлять RSS экспорт?</string>
</item>
<item>
<key>export_delete</key>
<string>Can delete forum RSS exports?</string>
<string>Может удалять RSS экспорт?</string>
</item>
<item>
<key>import_manage</key>
<string>Can manage forum RSS imports?</string>
<string>Может изменять/добавлять RSS импорт?</string>
</item>
<item>
<key>import_delete</key>
<string>Can delete forum RSS imports?</string>
<string>Может удалять RSS импорт?</string>
</item>
<item>
<key>import_remove</key>
<string>Can remove topics previously imported via RSS?</string>
<string>Может удалять темы импортированные через RSS?</string>
</item>
</items>
</group>