Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -1,20 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Posting display formatting methods
* Last Updated: $Date: 2009-11-10 18:07:22 -0500 (Tue, 10 Nov 2009) $
* Last Updated: $Date: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
* </pre>
* File Created By: Matt Mecham
*
* @author $Author: bfarber $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @version $Revision: 5345 $
*
* @link http://www.invisionpower.com
* @version $Revision: 7003 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -63,7 +63,6 @@ class classPostForms extends classPost
// Set up
//-----------------------------------------
$output = '';
$extraData = array();
$errors = '';
@@ -79,9 +78,14 @@ class classPostForms extends classPost
}
catch( Exception $error )
{
throw new Exception( $error->getMessage() );
$e = $error->getMessage();
if ( $e != 'NO_POSTING_PPD' )
{
throw new Exception( $e );
}
}
//-----------------------------------------
// Appending a reason for the edit?
//-----------------------------------------
@@ -147,7 +151,7 @@ class classPostForms extends classPost
if ( $this->_postErrors )
{
$errors = $this->lang->words[ $this->_postErrors ];
$errors = isset($this->lang->words[ $this->_postErrors ]) ? $this->lang->words[ $this->_postErrors ] : $this->_postErrors;
}
$html = $this->registry->getClass('output')->getTemplate('editors')->ajaxEditBox( $postContent, $this->getPostID(), $errors, $extraData );
@@ -204,7 +208,16 @@ class classPostForms extends classPost
}
catch( Exception $error )
{
throw new Exception( $error->getMessage() );
$e = $error->getMessage();
if ( $formType == 'edit' AND $e == 'NO_POSTING_PPD' )
{
}
else
{
throw new Exception( $e );
}
}
//-----------------------------------------
@@ -299,7 +312,7 @@ class classPostForms extends classPost
if ( $this->_postErrors )
{
$output .= $this->registry->getClass('output')->getTemplate('post')->errors( $this->lang->words[ $this->_postErrors ] );
$output .= $this->registry->getClass('output')->getTemplate('post')->errors( isset($this->lang->words[ $this->_postErrors ]) ? $this->lang->words[ $this->_postErrors ] : $this->_postErrors );
}
if ( $this->getIsPreview() )
@@ -320,15 +333,19 @@ class classPostForms extends classPost
/* status from mod posts */
$this->registry->getClass('class_forums')->checkGroupPostPerDay( $this->getAuthor(), TRUE );
$_statusMsg[] = $this->registry->getClass('class_forums')->ppdStatusMessage;
if ( $formType != 'edit' AND $this->registry->getClass('class_forums')->ppdStatusMessage )
{
$_statusMsg[] = $this->registry->getClass('class_forums')->ppdStatusMessage;
}
$_statusMsg[] = $this->registry->getClass('class_forums')->fetchPostModerationStatusMessage( $this->getAuthor(), $this->getForumData(), $topic, $formType );
//-----------------------------------------
// Load attachments so we get some stats
//-----------------------------------------
require_once( IPSLib::getAppDir( 'core' ) . '/sources/classes/attach/class_attach.php' );
$class_attach = new class_attach( $this->registry );
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'core' ) . '/sources/classes/attach/class_attach.php', 'class_attach' );
$class_attach = new $classToLoad( $this->registry );
$class_attach->type = 'post';
$class_attach->attach_post_key = $this->post_key;
$class_attach->init();
@@ -591,7 +608,6 @@ class classPostForms extends classPost
// INIT
//-----------------------------------------
$output = '';
$cached_members = array();
$attach_pids = array();
$posts = array();
@@ -705,8 +721,8 @@ class classPostForms extends classPost
// Grab render attach class
//-----------------------------------------
require_once( IPSLib::getAppDir( 'core' ) . '/sources/classes/attach/class_attach.php' );
$this->class_attach = new class_attach( $this->registry );
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'core' ) . '/sources/classes/attach/class_attach.php', 'class_attach' );
$this->class_attach = new $classToLoad( $this->registry );
$this->class_attach->attach_post_key = '';
$this->registry->getClass( 'class_localization')->loadLanguageFile( array( 'public_topic' ), 'forums' );
@@ -743,7 +759,7 @@ class classPostForms extends classPost
'sig' => 'checked="checked"',
'emo' => 'checked="checked"',
'html' => array(),
'tra' => $this->getAuthor('auto_track') ? 'checked="checked"' : ''
'tra' => ( $this->getAuthor('auto_track') OR $this->getSettings('enableTracker') ) ? 'checked="checked"' : ''
);
if ( ! $this->getSettings('enableSignature') )
@@ -857,7 +873,7 @@ class classPostForms extends classPost
if ($can_pin AND !$topic['pinned'] )
{
$selected = ($this->getModOptions() == 'pin') ? " selected='selected'" : '';
$html .= "<option value='pin'{$selected}>".$this->lang->words['mod_pin']."</option>";
}
else if ($can_unpin AND $topic['pinned'] )
@@ -939,7 +955,8 @@ class classPostForms extends classPost
{
if ( isset($topic['topic_open_time']) AND $topic['topic_open_time'] )
{
$date = IPSTime::unixstamp_to_human( $topic['topic_open_time'] );
# Bug 23258 - add on TZ as we take this off when saving time
$date = IPSTime::unixstamp_to_human( $topic['topic_open_time'] + $this->registry->class_localization->getTimeOffset() );
$mytimes['open_date'] = sprintf("%02d.%02d.%04d", $date['day'], $date['month'], $date['year'] );
$mytimes['open_time'] = sprintf("%02d:%02d" , $date['hour'] , $date['minute'] );
}
@@ -949,7 +966,8 @@ class classPostForms extends classPost
{
if ( isset($topic['topic_close_time']) AND $topic['topic_close_time'] )
{
$date = IPSTime::unixstamp_to_human( $topic['topic_close_time'] );
# Bug 23258 - add on TZ as we take this off when saving time
$date = IPSTime::unixstamp_to_human( $topic['topic_close_time'] + $this->registry->class_localization->getTimeOffset() );
$mytimes['close_date'] = sprintf("%02d.%02d.%04d", $date['day'], $date['month'], $date['year'] );
$mytimes['close_time'] = sprintf("%02d:%02d" , $date['hour'] , $date['minute'] );
}
@@ -1043,7 +1061,7 @@ class classPostForms extends classPost
{
foreach( $_POST['question'] as $id => $question )
{
$poll_questions[$id] = $question;
$poll_questions[$id] = IPSText::parseCleanValue( $question );
}
$poll_question = ipsRegistry::$request['poll_question'];
@@ -1062,7 +1080,7 @@ class classPostForms extends classPost
{
foreach( $_POST['choice'] as $id => $choice )
{
$poll_choices[ $id ] = $choice;
$poll_choices[ $id ] = IPSText::parseCleanValue( $choice );
}
}
@@ -1167,8 +1185,8 @@ class classPostForms extends classPost
// Grab render attach class
//-----------------------------------------
require_once( IPSLib::getAppDir( 'core' ) . '/sources/classes/attach/class_attach.php' );
$this->class_attach = new class_attach( $this->registry );
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'core' ) . '/sources/classes/attach/class_attach.php', 'class_attach' );
$this->class_attach = new $classToLoad( $this->registry );
}
//-----------------------------------------
@@ -1183,5 +1201,4 @@ class classPostForms extends classPost
return $attachData[0]['html'] . $attachData[0]['attachmentHtml'];
}
}
@@ -1 +1,10 @@
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<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>␍</body>␍</html>␍
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<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>
</body>
</html>