Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,27 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2005-12-06 17:36:43 +0000 (Tue, 06 Dec 2005) $
|
||||
| > $Revision: 94 $
|
||||
| > $Author: bfarber $
|
||||
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Components Functions
|
||||
@@ -33,7 +24,7 @@
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -53,6 +44,7 @@ class ad_rssexport
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'RSS Export Manager' );
|
||||
$this->html = $this->ipsclass->acp_load_template('cp_skin_rss');
|
||||
|
||||
switch($this->ipsclass->input['code'])
|
||||
@@ -120,7 +112,7 @@ class ad_rssexport
|
||||
|
||||
if ( ! $rss_export_id )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Íå îäèí ID íå âûáðàí, ïîâòîðèòå ïîïûòêó çàíîâî ";
|
||||
$this->ipsclass->main_msg = "No ID was passed, please try again";
|
||||
$this->rssexport_overview();
|
||||
return;
|
||||
}
|
||||
@@ -153,6 +145,12 @@ class ad_rssexport
|
||||
|
||||
$this->ipsclass->cache['rss_export'] = array();
|
||||
|
||||
//--------------------------------------------
|
||||
// Load skin
|
||||
//--------------------------------------------
|
||||
|
||||
$this->ipsclass->load_skin();
|
||||
|
||||
//--------------------------------------------
|
||||
// Go loopy
|
||||
//--------------------------------------------
|
||||
@@ -219,6 +217,10 @@ class ad_rssexport
|
||||
'ttl' => $row['rss_export_cache_time']
|
||||
) );
|
||||
|
||||
$class_rss->create_add_image( $channel_id, array( 'title' => $row['rss_export_title'],
|
||||
'url' => $row['rss_export_image'],
|
||||
'link' => $this->ipsclass->vars['board_url'].'/index.php' ) );
|
||||
|
||||
//--------------------------------------------
|
||||
// Loop through topics and display
|
||||
//--------------------------------------------
|
||||
@@ -243,9 +245,9 @@ class ad_rssexport
|
||||
|
||||
if ( is_array( $this->ipsclass->skin['_macros'] ) )
|
||||
{
|
||||
foreach( $this->ipsclass->skin['_macros'] as $i => $rowm )
|
||||
foreach( $this->ipsclass->skin['_macros'] as $rowm )
|
||||
{
|
||||
if ( $row['macro_value'] != "" )
|
||||
if ( isset($row['macro_value']) AND $row['macro_value'] != "" )
|
||||
{
|
||||
$topic['post'] = str_replace( "<{".$rowm['macro_value']."}>", $rowm['macro_replace'], $topic['post'] );
|
||||
}
|
||||
@@ -266,16 +268,21 @@ class ad_rssexport
|
||||
$topic['post'] = str_replace( "<#IMG_DIR#>", $this->ipsclass->skin['_imagedir'], $topic['post'] );
|
||||
$topic['post'] = str_replace( "<#EMO_DIR#>", $this->ipsclass->skin['_emodir'] , $topic['post'] );
|
||||
|
||||
$topic['last_poster_name'] = $topic['last_poster_name'] ? $topic['last_poster_name'] : 'Guest';
|
||||
$topic['starter_name'] = $topic['starter_name'] ? $topic['starter_name'] : 'Guest';
|
||||
|
||||
//-----------------------------------------
|
||||
// Add item
|
||||
//-----------------------------------------
|
||||
|
||||
$class_rss->create_add_item( $channel_id, array( 'title' => $topic['title'],
|
||||
'link' => $this->ipsclass->vars['board_url'].'/index.php?showtopic='.$topic['tid'],
|
||||
'description' => $topic['post'],//$topic['description'],
|
||||
$class_rss->create_add_item( $channel_id, array( 'title' => $topic['title'],
|
||||
'link' => $this->ipsclass->vars['board_url'].'/index.php?showtopic='.$topic['tid'],
|
||||
'description' => $topic['post'],//$topic['description'],
|
||||
// 'content:encoded' => $topic['post'],
|
||||
'pubDate' => $class_rss->rss_unix_to_rfc( $topic['start_date'] ),
|
||||
'guid' => $topic['tid']
|
||||
'starter' => $topic['starter_name'],
|
||||
'poster' => $topic['last_poster_name'],
|
||||
'pubDate' => $class_rss->rss_unix_to_rfc( $topic['start_date'] ),
|
||||
'guid' => $topic['tid']
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -309,7 +316,7 @@ class ad_rssexport
|
||||
|
||||
if ( $return )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Ýêñïîðò RSS, êåø ïåðåñ÷èòàí";
|
||||
$this->ipsclass->main_msg = "RSS Export(s) Re-cached";
|
||||
$this->rssexport_overview();
|
||||
return;
|
||||
}
|
||||
@@ -339,7 +346,7 @@ class ad_rssexport
|
||||
|
||||
if ( ! $rssstream['rss_export_id'] )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Íåâîçìîæíî çàãðóçèòü ñòðîêó RSS èç áàçû äàííûõ. Âîçìîæíî åå ïðîñòî íåò.";
|
||||
$this->ipsclass->main_msg = "Could not load the RSS stream from the database. It maybe missing.";
|
||||
$this->rssexport_overview();
|
||||
return;
|
||||
}
|
||||
@@ -351,7 +358,7 @@ class ad_rssexport
|
||||
$this->ipsclass->DB->build_and_exec_query( array( 'delete' => 'rss_export', 'where' => 'rss_export_id='.$rss_export_id ) );
|
||||
|
||||
$this->rssexport_rebuild_cache( $rss_export_id, 0 );
|
||||
$this->ipsclass->main_msg = "Ýêñïîðò RSS ñòðîêè óäàëåí.";
|
||||
$this->ipsclass->main_msg = "RSS Export stream removed.";
|
||||
$this->rssexport_overview();
|
||||
}
|
||||
|
||||
@@ -385,7 +392,7 @@ class ad_rssexport
|
||||
{
|
||||
if ( ! $rss_export_id )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Íå îäèí ID íå âûáðàí, ïîâòîðèòå ïîïûòêó çàíîâî ";
|
||||
$this->ipsclass->main_msg = "No ID was passed, please try again";
|
||||
$this->rssexport_overview();
|
||||
return;
|
||||
}
|
||||
@@ -393,7 +400,7 @@ class ad_rssexport
|
||||
|
||||
if ( ! $rss_export_title OR ! $rss_export_count OR ! $rss_export_forums )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Âû äîëæíû çàïîëíèòü âñå ïîëÿ.";
|
||||
$this->ipsclass->main_msg = "You must complete the entire form.";
|
||||
$this->rssexport_form( $type );
|
||||
return;
|
||||
}
|
||||
@@ -419,13 +426,13 @@ class ad_rssexport
|
||||
{
|
||||
$this->ipsclass->DB->do_insert( 'rss_export', $array );
|
||||
$rss_export_id = 'all';
|
||||
$this->ipsclass->main_msg = 'Ñòðîêà ýêñïîðòà RSS ñîçäàíà';
|
||||
$this->ipsclass->main_msg = 'RSS Export Stream Created';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$this->ipsclass->DB->do_update( 'rss_export', $array, 'rss_export_id='.$rss_export_id );
|
||||
$this->ipsclass->main_msg = 'Ñòðîêà ýêñïîðòà RSS èçìåíåíà';
|
||||
$this->ipsclass->main_msg = 'RSS Export Stream Edited';
|
||||
}
|
||||
|
||||
$this->rssexport_rebuild_cache( $rss_export_id, 0 );
|
||||
@@ -443,13 +450,13 @@ class ad_rssexport
|
||||
// Init Vars
|
||||
//-----------------------------------------
|
||||
|
||||
$rss_export_id = intval($this->ipsclass->input['rss_export_id']);
|
||||
$dd_sort = array( 0 => array( 'DESC', 'Ïî óáûâàíèþ (9-0)' ), 1 => array( 'ASC', 'Ïî âîçðàñòàíèþ (0-9)' ) );
|
||||
$dd_order = array( 0 => array( 'start_date' , 'Ïî äàòå ñîçäàíèÿ òåìû' ),
|
||||
1 => array( 'last_post' , 'Ïî ïîñëåäíåìó ñîîáùåíèþ' ),
|
||||
2 => array( 'views' , 'Ïî êîë-âó ïðîñìîòðîâ' ),
|
||||
3 => array( 'starter_id' , 'Ïî ïîñëåäíåìó àâòîðó' ),
|
||||
4 => array( 'topic_rating_total', 'Ïî ðåéòèíãó' ) );
|
||||
$rss_export_id = isset($this->ipsclass->input['rss_export_id']) ? intval($this->ipsclass->input['rss_export_id']) : 0;
|
||||
$dd_sort = array( 0 => array( 'DESC', 'Descending (9-0)' ), 1 => array( 'ASC', 'Ascending (0-9)' ) );
|
||||
$dd_order = array( 0 => array( 'start_date' , 'Topic Start Date' ),
|
||||
1 => array( 'last_post' , 'Topic Last Post' ),
|
||||
2 => array( 'views' , 'Topic Views' ),
|
||||
3 => array( 'starter_id' , 'Topic Starter' ),
|
||||
4 => array( 'topic_rating_total', 'Topic Rating' ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Check (please?)
|
||||
@@ -458,8 +465,20 @@ class ad_rssexport
|
||||
if ( $type == 'add' )
|
||||
{
|
||||
$formcode = 'rssexport_add_save';
|
||||
$title = "Ñîçäàòü íîâóþ ñòðîêó ýêñïîðòà RSS";
|
||||
$button = "Ñîçäàòü";
|
||||
$title = "Create New RSS Export Stream";
|
||||
$button = "Create New RSS Export Stream";
|
||||
|
||||
$rssstream = array( 'rss_export_id' => 0,
|
||||
'rss_export_title' => '',
|
||||
'rss_export_forums' => NULL,
|
||||
'rss_export_desc' => '',
|
||||
'rss_export_image' => '',
|
||||
'rss_export_include_post' => 1,
|
||||
'rss_export_enabled' => 1,
|
||||
'rss_export_count' => '',
|
||||
'rss_export_cache_time' => '',
|
||||
'rss_export_sort' => '',
|
||||
'rss_export_order' => '' );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -467,14 +486,14 @@ class ad_rssexport
|
||||
|
||||
if ( ! $rssstream['rss_export_id'] )
|
||||
{
|
||||
$this->ipsclass->main_msg = "Íå îäèí ID íå âûáðàí, ïîâòîðèòå ïîïûòêó çàíîâî.";
|
||||
$this->ipsclass->main_msg = "No ID was passed, please try again.";
|
||||
$this->rssexport_overview();
|
||||
return;
|
||||
}
|
||||
|
||||
$formcode = 'rssexport_edit_save';
|
||||
$title = "Ðåäàêòèðîâàíèå ".$rssstream['rss_export_title'];
|
||||
$button = "Ñîõðàíèòü èçìåíåíèÿ";
|
||||
$title = "Edit RSS Export Stream ".$rssstream['rss_export_title'];
|
||||
$button = "Save Changes";
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
@@ -487,7 +506,7 @@ class ad_rssexport
|
||||
$aff = new admin_forum_functions();
|
||||
$aff->ipsclass =& $this->ipsclass;
|
||||
$dropdown = $aff->ad_forums_forum_list(1);
|
||||
$rss_export_forums = is_array($_POST['rss_export_forums']) ? implode( ",", $_POST['rss_export_forums'] ) : $rssstream['rss_export_forums'];
|
||||
$rss_export_forums = ( isset($_POST['rss_export_forums']) AND is_array($_POST['rss_export_forums']) ) ? implode( ",", $_POST['rss_export_forums'] ) : $rssstream['rss_export_forums'];
|
||||
|
||||
//-------------------------------
|
||||
// Form elements
|
||||
@@ -495,23 +514,23 @@ class ad_rssexport
|
||||
|
||||
$form = array();
|
||||
|
||||
$form['rss_export_title'] = $this->ipsclass->adskin->form_input( 'rss_export_title' , $this->ipsclass->txt_htmlspecialchars( $_POST['rss_export_title'] ? $_POST['rss_export_title'] : $rssstream['rss_export_title'] ) );
|
||||
$form['rss_export_desc'] = $this->ipsclass->adskin->form_input( 'rss_export_desc' , $this->ipsclass->txt_htmlspecialchars( $_POST['rss_export_desc'] ? $_POST['rss_export_desc'] : $rssstream['rss_export_desc'] ) );
|
||||
$form['rss_export_image'] = $this->ipsclass->adskin->form_input( 'rss_export_image' , $this->ipsclass->txt_htmlspecialchars( $_POST['rss_export_image'] ? $_POST['rss_export_image'] : $rssstream['rss_export_image'] ) );
|
||||
$form['rss_export_include_post'] = $this->ipsclass->adskin->form_yes_no( 'rss_export_include_post' , $_POST['rss_export_include_post'] ? $_POST['rss_export_include_post'] : $rssstream['rss_export_include_post'] );
|
||||
$form['rss_export_enabled'] = $this->ipsclass->adskin->form_yes_no( 'rss_export_enabled' , $_POST['rss_export_enabled'] ? $_POST['rss_export_enabled'] : $rssstream['rss_export_enabled'] );
|
||||
$form['rss_export_count'] = $this->ipsclass->adskin->form_simple_input( 'rss_export_count' , $_POST['rss_export_count'] ? $_POST['rss_export_count'] : $rssstream['rss_export_count'], 5 );
|
||||
$form['rss_export_title'] = $this->ipsclass->adskin->form_input( 'rss_export_title' , $this->ipsclass->txt_htmlspecialchars( ( isset($_POST['rss_export_title']) AND $_POST['rss_export_title'] ) ? $_POST['rss_export_title'] : $rssstream['rss_export_title'] ) );
|
||||
$form['rss_export_desc'] = $this->ipsclass->adskin->form_input( 'rss_export_desc' , $this->ipsclass->txt_htmlspecialchars( ( isset($_POST['rss_export_desc']) AND $_POST['rss_export_desc'] ) ? $_POST['rss_export_desc'] : $rssstream['rss_export_desc'] ) );
|
||||
$form['rss_export_image'] = $this->ipsclass->adskin->form_input( 'rss_export_image' , $this->ipsclass->txt_htmlspecialchars( ( isset($_POST['rss_export_image']) AND $_POST['rss_export_image'] ) ? $_POST['rss_export_image'] : $rssstream['rss_export_image'] ) );
|
||||
$form['rss_export_include_post'] = $this->ipsclass->adskin->form_yes_no( 'rss_export_include_post' , ( isset($_POST['rss_export_include_post']) AND $_POST['rss_export_include_post'] ) ? $_POST['rss_export_include_post'] : $rssstream['rss_export_include_post'] );
|
||||
$form['rss_export_enabled'] = $this->ipsclass->adskin->form_yes_no( 'rss_export_enabled' , ( isset($_POST['rss_export_enabled']) AND $_POST['rss_export_enabled'] ) ? $_POST['rss_export_enabled'] : $rssstream['rss_export_enabled'] );
|
||||
$form['rss_export_count'] = $this->ipsclass->adskin->form_simple_input( 'rss_export_count' , ( isset($_POST['rss_export_count']) AND $_POST['rss_export_count'] ) ? $_POST['rss_export_count'] : $rssstream['rss_export_count'], 5 );
|
||||
$form['rss_export_forums'] = $this->ipsclass->adskin->form_multiselect( 'rss_export_forums[]', $dropdown, explode( ",", $rss_export_forums ), 7 );
|
||||
$form['rss_export_cache_time'] = $this->ipsclass->adskin->form_simple_input( 'rss_export_cache_time' , $_POST['rss_export_cache_time'] ? $_POST['rss_export_cache_time'] : $rssstream['rss_export_cache_time'], 5 );
|
||||
$form['rss_export_sort'] = $this->ipsclass->adskin->form_dropdown( 'rss_export_sort' , $dd_sort , $_POST['rss_export_sort'] ? $_POST['rss_export_sort'] : $rssstream['rss_export_sort'] );
|
||||
$form['rss_export_order'] = $this->ipsclass->adskin->form_dropdown( 'rss_export_order', $dd_order, $_POST['rss_export_order'] ? $_POST['rss_export_order'] : $rssstream['rss_export_order'] );
|
||||
$form['rss_export_cache_time'] = $this->ipsclass->adskin->form_simple_input( 'rss_export_cache_time' , ( isset($_POST['rss_export_cache_time']) AND $_POST['rss_export_cache_time'] ) ? $_POST['rss_export_cache_time'] : $rssstream['rss_export_cache_time'], 5 );
|
||||
$form['rss_export_sort'] = $this->ipsclass->adskin->form_dropdown( 'rss_export_sort' , $dd_sort , ( isset($_POST['rss_export_sort']) AND $_POST['rss_export_sort'] ) ? $_POST['rss_export_sort'] : $rssstream['rss_export_sort'] );
|
||||
$form['rss_export_order'] = $this->ipsclass->adskin->form_dropdown( 'rss_export_order', $dd_order, ( isset($_POST['rss_export_order']) AND $_POST['rss_export_order'] ) ? $_POST['rss_export_order'] : $rssstream['rss_export_order'] );
|
||||
|
||||
$this->ipsclass->html .= $this->html->rss_export_form( $form, $title, $formcode, $button, $rssstream );
|
||||
|
||||
$this->ipsclass->admin->page_title = "Óïðàâëåíèå ýêñïîðòà RSS";
|
||||
$this->ipsclass->admin->page_detail = "Ýòà ñåêöèÿ ïîçâîëèò âàì óïðàâëÿòü ïîëÿìè RSS.";
|
||||
$this->ipsclass->admin->page_title = "RSS Export Manager";
|
||||
$this->ipsclass->admin->page_detail = "This section will allow you to manage your RSS export feeds.";
|
||||
|
||||
$this->ipsclass->admin->nav[] = array( "{$this->ipsclass->form_code}", "Óïðàâëåíèå RSS" );
|
||||
$this->ipsclass->admin->nav[] = array( '', "Add/Edit RSS Export Stream" );
|
||||
$this->ipsclass->admin->output();
|
||||
}
|
||||
|
||||
@@ -521,8 +540,6 @@ class ad_rssexport
|
||||
|
||||
function rssexport_overview()
|
||||
{
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Óïðàâëåíèå RSS' );
|
||||
|
||||
//-------------------------------
|
||||
// INIT
|
||||
//-------------------------------
|
||||
@@ -550,8 +567,8 @@ class ad_rssexport
|
||||
|
||||
$this->ipsclass->html .= $this->html->rss_export_overview( $content );
|
||||
|
||||
$this->ipsclass->admin->page_title = "Óïðàâëåíèå RSS";
|
||||
$this->ipsclass->admin->page_detail = "Ýòà ñåêöèÿ ïîçâîëèò âàì óïðàâëÿòü ïîëÿìè RSS.";
|
||||
$this->ipsclass->admin->page_title = "RSS Export Manager";
|
||||
$this->ipsclass->admin->page_detail = "This section will allow you to manage your RSS export feeds.";
|
||||
$this->ipsclass->admin->output();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user