Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -1,31 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* Default section for RSS module
|
||||
* Last Updated: $LastChangedDate: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @subpackage Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @file defaultSection.php Define the default section for the 'rss' module
|
||||
*~TERABYTE_DOC_READY~
|
||||
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
|
||||
* $License: This is NULLED!
|
||||
* $Author: ips_terabyte $
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 5713 $
|
||||
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
|
||||
* @version v3.2.3
|
||||
* $Revision: 8655 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Very simply returns the default section if one is not
|
||||
* passed in the URL
|
||||
*/
|
||||
|
||||
$DEFAULT_SECTION = 'import';
|
||||
@@ -2,18 +2,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Forum RSS Export
|
||||
* Last Updated: $Date: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @subpackage Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 7003 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
@@ -29,13 +29,13 @@ class admin_forums_rss_export extends ipsCommand
|
||||
*
|
||||
* @var object Skin templates
|
||||
*/
|
||||
private $html;
|
||||
protected $html;
|
||||
|
||||
/**
|
||||
* Main class entry point
|
||||
*
|
||||
* @param object ipsRegistry reference
|
||||
* @return void [Outputs to screen]
|
||||
* @return @e void [Outputs to screen]
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
@@ -95,7 +95,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
/**
|
||||
* Deletes an RSS Export Streawm
|
||||
*
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function rssExportDelete()
|
||||
{
|
||||
@@ -125,7 +125,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
* Save the add/edit RSS Export Stream form
|
||||
*
|
||||
* @param string $type Either add or edit
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function rssExportSave( $type='add' )
|
||||
{
|
||||
@@ -198,7 +198,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
* Form for adding/editing an RSS Export Stream
|
||||
*
|
||||
* @param string $type add/edit
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function rssExportForm( $type='add' )
|
||||
{
|
||||
@@ -260,16 +260,16 @@ class admin_forums_rss_export extends ipsCommand
|
||||
/* Form Elements */
|
||||
$form = array();
|
||||
|
||||
$form['rss_export_title'] = $this->registry->output->formInput( 'rss_export_title' , IPSText::htmlspecialchars( ( isset($this->request['rss_export_title']) AND $this->request['rss_export_title'] ) ? $this->request['rss_export_title'] : $rssstream['rss_export_title'] ) );
|
||||
$form['rss_export_desc'] = $this->registry->output->formInput( 'rss_export_desc' , IPSText::htmlspecialchars( ( isset($this->request['rss_export_desc']) AND $this->request['rss_export_desc'] ) ? $this->request['rss_export_desc'] : $rssstream['rss_export_desc'] ) );
|
||||
$form['rss_export_image'] = $this->registry->output->formInput( 'rss_export_image' , IPSText::htmlspecialchars( ( isset($this->request['rss_export_image']) AND $this->request['rss_export_image'] ) ? $this->request['rss_export_image'] : $rssstream['rss_export_image'] ) );
|
||||
$form['rss_export_include_post'] = $this->registry->output->formYesNo( 'rss_export_include_post' , ( isset($this->request['rss_export_include_post']) AND $this->request['rss_export_include_post'] ) ? $this->request['rss_export_include_post'] : $rssstream['rss_export_include_post'] );
|
||||
$form['rss_export_enabled'] = $this->registry->output->formYesNo( 'rss_export_enabled' , ( isset($this->request['rss_export_enabled']) AND $this->request['rss_export_enabled'] ) ? $this->request['rss_export_enabled'] : $rssstream['rss_export_enabled'] );
|
||||
$form['rss_export_count'] = $this->registry->output->formSimpleInput( 'rss_export_count' , ( isset($this->request['rss_export_count']) AND $this->request['rss_export_count'] ) ? $this->request['rss_export_count'] : $rssstream['rss_export_count'], 5 );
|
||||
$form['rss_export_title'] = $this->registry->output->formInput( 'rss_export_title' , IPSText::htmlspecialchars( !empty($this->request['rss_export_title']) ? $this->request['rss_export_title'] : $rssstream['rss_export_title'] ) );
|
||||
$form['rss_export_desc'] = $this->registry->output->formInput( 'rss_export_desc' , IPSText::htmlspecialchars( !empty($this->request['rss_export_desc']) ? $this->request['rss_export_desc'] : $rssstream['rss_export_desc'] ) );
|
||||
$form['rss_export_image'] = $this->registry->output->formInput( 'rss_export_image' , IPSText::htmlspecialchars( !empty($this->request['rss_export_image']) ? $this->request['rss_export_image'] : $rssstream['rss_export_image'] ) );
|
||||
$form['rss_export_include_post'] = $this->registry->output->formYesNo( 'rss_export_include_post' , !empty($this->request['rss_export_include_post']) ? $this->request['rss_export_include_post'] : $rssstream['rss_export_include_post'] );
|
||||
$form['rss_export_enabled'] = $this->registry->output->formYesNo( 'rss_export_enabled' , !empty($this->request['rss_export_enabled']) ? $this->request['rss_export_enabled'] : $rssstream['rss_export_enabled'] );
|
||||
$form['rss_export_count'] = $this->registry->output->formSimpleInput( 'rss_export_count' , !empty($this->request['rss_export_count']) ? $this->request['rss_export_count'] : $rssstream['rss_export_count'], 5 );
|
||||
$form['rss_export_forums'] = $this->registry->output->formMultiDropdown( 'rss_export_forums[]', $dropdown, explode( ",", $rss_export_forums ), 7 );
|
||||
$form['rss_export_cache_time'] = $this->registry->output->formSimpleInput( 'rss_export_cache_time' , ( isset($this->request['rss_export_cache_time']) AND $this->request['rss_export_cache_time'] ) ? $this->request['rss_export_cache_time'] : $rssstream['rss_export_cache_time'], 5 );
|
||||
$form['rss_export_sort'] = $this->registry->output->formDropdown( 'rss_export_sort' , $dd_sort , ( isset($this->request['rss_export_sort']) AND $this->request['rss_export_sort'] ) ? $this->request['rss_export_sort'] : $rssstream['rss_export_sort'] );
|
||||
$form['rss_export_order'] = $this->registry->output->formDropdown( 'rss_export_order', $dd_order, ( isset($this->request['rss_export_order']) AND $this->request['rss_export_order'] ) ? $this->request['rss_export_order'] : $rssstream['rss_export_order'] );
|
||||
$form['rss_export_cache_time'] = $this->registry->output->formSimpleInput( 'rss_export_cache_time' , !empty($this->request['rss_export_cache_time']) ? $this->request['rss_export_cache_time'] : $rssstream['rss_export_cache_time'], 5 );
|
||||
$form['rss_export_sort'] = $this->registry->output->formDropdown( 'rss_export_sort' , $dd_sort , !empty($this->request['rss_export_sort']) ? $this->request['rss_export_sort'] : $rssstream['rss_export_sort'] );
|
||||
$form['rss_export_order'] = $this->registry->output->formDropdown( 'rss_export_order', $dd_order, !empty($this->request['rss_export_order']) ? $this->request['rss_export_order'] : $rssstream['rss_export_order'] );
|
||||
|
||||
/* Output */
|
||||
$this->registry->output->html .= $this->html->rssExportForm( $form, $title, $formcode, $button, $rssstream );
|
||||
@@ -278,7 +278,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
/**
|
||||
* Lists Current RSS Exports
|
||||
*
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function rssExportOverview()
|
||||
{
|
||||
@@ -342,8 +342,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
|
||||
/* Get RSS Clas */
|
||||
$classToLoad = IPSLib::loadLibrary( IPS_KERNEL_PATH . 'classRss.php', 'classRss' );
|
||||
$class_rss = new $classToLoad();
|
||||
$class_rss->use_sockets = $this->use_sockets;
|
||||
$class_rss = new $classToLoad();
|
||||
$class_rss->doc_type = IPS_DOC_CHAR_SET;
|
||||
|
||||
/* Reset rss_export cache */
|
||||
@@ -371,7 +370,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
$this->DB->build( array(
|
||||
'select' => 't.*',
|
||||
'from' => array( 'topics' => 't' ),
|
||||
'where' => "t.forum_id IN( " . $row['rss_export_forums'] . " ) AND t.state != 'link' AND t.approved=1",
|
||||
'where' => "t.forum_id IN( " . $row['rss_export_forums'] . " ) AND t.state != 'link' AND " . $this->registry->getClass('class_forums')->fetchTopicHiddenQuery( array( 'visible' ), 't.' ),
|
||||
'order' => 't.' . $row['rss_export_order'] . ' ' . $row['rss_export_sort'],
|
||||
'limit' => array( 0, $row['rss_export_count'] ),
|
||||
'add_join' => array( array(
|
||||
@@ -387,7 +386,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
$this->DB->build( array(
|
||||
'select' => '*',
|
||||
'from' => 'topics',
|
||||
'where' => "forum_id IN( ".$row['rss_export_forums']." ) AND state != 'link' AND approved=1",
|
||||
'where' => "forum_id IN( ".$row['rss_export_forums']." ) AND state != 'link' AND " . $this->registry->getClass('class_forums')->fetchTopicHiddenQuery( array( 'visible' ), '' ),
|
||||
'order' => $row['rss_export_order'].' '. $row['rss_export_sort'],
|
||||
'limit' => array( 0, $row['rss_export_count'] )
|
||||
) );
|
||||
@@ -412,7 +411,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
$channel_id = $class_rss->createNewChannel( array(
|
||||
'title' => $row['rss_export_title'],
|
||||
'description' => $row['rss_export_desc'],
|
||||
'link' => $this->settings['board_url'].'/index.php',
|
||||
'link' => $this->settings['board_url'],
|
||||
'pubDate' => $class_rss->formatDate( $row['rss_export_order'] == 'start_date' ? $topic['start_date'] : $topic['last_post'] ),
|
||||
'ttl' => $row['rss_export_cache_time']
|
||||
) );
|
||||
@@ -422,7 +421,7 @@ class admin_forums_rss_export extends ipsCommand
|
||||
$class_rss->addImageToChannel( $channel_id, array(
|
||||
'title' => $row['rss_export_title'],
|
||||
'url' => $row['rss_export_image'],
|
||||
'link'=> $this->settings['board_url'].'/index.php'
|
||||
'link'=> $this->settings['board_url']
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,9 +6,10 @@
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Импорт RSS</subitemtitle>
|
||||
<subitemlang>rssimports</subitemlang>
|
||||
<subsection>import</subsection>
|
||||
<subitemurl>do=overview</subitemurl>
|
||||
<subitemrolekey></subitemrolekey>
|
||||
<subitemrolekey>import_manage</subitemrolekey>
|
||||
<subisredirect>0</subisredirect>
|
||||
</subitem>
|
||||
</subitems>
|
||||
@@ -18,9 +19,10 @@
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Экспорт RSS</subitemtitle>
|
||||
<subitemlang>rssexports</subitemlang>
|
||||
<subsection>export</subsection>
|
||||
<subitemurl>do=overview</subitemurl>
|
||||
<subitemrolekey></subitemrolekey>
|
||||
<subitemrolekey>export_manage</subitemrolekey>
|
||||
<subisredirect>0</subisredirect>
|
||||
</subitem>
|
||||
</subitems>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<permissions>
|
||||
<group>
|
||||
<grouptitle>Управление RSS</grouptitle>
|
||||
<grouplang>forums_rss</grouplang>
|
||||
<items>
|
||||
<item>
|
||||
<key>export_manage</key>
|
||||
|
||||
Reference in new issue
Block a user