Version 1.1.1
This commit is contained in:
1 parent
aabfdc1f57
commit
7ef3d1712a
179 files changed
+57457
-44972
No files matched your search
@@ -2,10 +2,10 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| IBFORUMS v1
|
||||
| Invision Board v1.1
|
||||
| ========================================
|
||||
| by Matthew Mecham and David Baxter
|
||||
| (c) 2001,2002 IBForums
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
@@ -226,12 +226,13 @@ class post_functions extends Post {
|
||||
|
||||
$db_string = $std->compile_db_string(
|
||||
array (
|
||||
'tid' => $this->topic['tid'],
|
||||
'forum_id' => $class->forum['id'],
|
||||
'start_date' => time(),
|
||||
'choices' => addslashes(serialize($poll_array)),
|
||||
'starter_id' => $ibforums->member['id'],
|
||||
'votes' => 0,
|
||||
'tid' => $this->topic['tid'],
|
||||
'forum_id' => $class->forum['id'],
|
||||
'start_date' => time(),
|
||||
'choices' => addslashes(serialize($poll_array)),
|
||||
'starter_id' => $ibforums->member['id'],
|
||||
'votes' => 0,
|
||||
'poll_question' => $class->parser->bad_words($ibforums->input['pollq']),
|
||||
)
|
||||
);
|
||||
|
||||
@@ -295,9 +296,24 @@ class post_functions extends Post {
|
||||
|
||||
}
|
||||
|
||||
// Are we checking for auto promotion?
|
||||
|
||||
if ($ibforums->member['g_promotion'] != '-1&-1')
|
||||
{
|
||||
list($gid, $gposts) = explode( '&', $ibforums->member['g_promotion'] );
|
||||
|
||||
if ( $gid > 0 and $gposts > 0 )
|
||||
{
|
||||
if ( $ibforums->member['posts'] + 1 >= $gposts )
|
||||
{
|
||||
$mgroup = "mgroup='$gid', ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$ibforums->member['last_post'] = time();
|
||||
|
||||
$DB->query("UPDATE ibf_members SET ".$pcount.
|
||||
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
|
||||
"last_post='" .$ibforums->member['last_post'] ."'".
|
||||
"WHERE id='" .$ibforums->member['id']."'");
|
||||
}
|
||||
@@ -350,6 +366,13 @@ class post_functions extends Post {
|
||||
$class->output .= $class->html->preview( $class->parser->convert( array( 'TEXT' => $this->post['post'], 'CODE' => $class->forum['use_ibc'], 'SMILIES' => $ibforums->input['enableemo'], 'HTML' => $class->forum['use_html']) ) );
|
||||
}
|
||||
|
||||
$extra = "";
|
||||
|
||||
if ($ibforums->vars['poll_tags'])
|
||||
{
|
||||
$extra = $ibforums->lang['poll_tag_allowed'];
|
||||
}
|
||||
|
||||
$class->output .= $class->html_start_form( array( 1 => array( 'CODE', '11' ), 2 => array( 'f', $class->forum['id']) ) );
|
||||
|
||||
//---------------------------------------
|
||||
@@ -370,7 +393,7 @@ class post_functions extends Post {
|
||||
|
||||
$mod_options = $class->mod_options();
|
||||
|
||||
$poll_box = $class->html->poll_box($poll);
|
||||
$poll_box = $class->html->poll_box($poll, $extra);
|
||||
|
||||
$end_form = $class->html->EndForm( $ibforums->lang['submit_poll'] );
|
||||
|
||||
|
||||
Reference in new issue
Block a user