sub Postpage { my $extra; if ($is_preview) {$txt{'507'}=$txt{'771'};} $message =~ s~<\/~\<\;/~isg; if($post eq "imsend") { if(!$INFO{'to'}) { $INFO{'to'} = $FORM{'to'};} if($INFO{'to'}) {$settofield="message";} else {$settofield="to";} $idinfo = "$INFO{'id'}"; if(!$INFO{'adminim'}) { $extra = qq~ $txt{'150'} $txt{'748'} ~; } else { $extra = qq~$adminim~; } } else { $extra = qq~ $txt{'71'}: ~; if ($realname eq '' && $threadid ne '') {$settofield="name";} } $yymain .= qq~ ~; if ($pollthread != 2 || ($pollthread == 2 && $username eq 'Guest')) { $yymain .= qq~ ~; } ## [Poll Mod Options] ## if ($pollthread) { $maxpq ||= 60; $maxpo ||= 50; $maxpc ||= 0; $numpolloptions ||= 8; if ($guest_vote) {$gvchecked = " checked";} if ($hide_results) {$hrchecked = " checked";} if ($multi_choice) {$mcchecked = " checked";} $yymain .= qq~ ~; } if ($pollthread != 2) { # if not adding a poll to an existing thread, display standard post page inputs ## [/Poll Mod Options] ## if($enable_ubbc && $showyabbcbutt) { $yymain .= qq~
~; if($INFO{'adminim'} || $INFO{'action'} eq "imgroups") { $yymain .= qq~
~; } else { $yymain .= qq~~; } $yymain .= qq~
$yytitle
~; if ($pollthread == 2 ) {$extra = "";} else { $yymain .= qq~ ~; } $yymain .= qq~ $name_field $email_field $extra
$txt{'70'}:
~; if ($maxpc > 0) { $yymain .= qq~ ~; } $yymain .= qq~
$polltxt{'6'}:
  ~; for(my $i = 1; $i <= $numpolloptions; $i++) { $yymain .= qq~ ~; } $yymain .= qq~
  $polltxt{'7'} $i:  
$polltxt{'59'}:
$polltxt{'32'} $polltxt{'54'}
$polltxt{'26'} $polltxt{'55'}
$polltxt{'58'} $polltxt{'56'}
~; } else { $yymain .= qq~ ~; } $yymain .= qq~
$txt{'252'}:
~; } $yymain .= qq~
$txt{'297'}: ~; if (($showadded == 3 && $showsmdir ne 2) || ($showsmdir eq 3 && $showadded ne 2)){ $yymain .= qq~ $smiltxt{'1'} ~; } $yymain .= qq~
$txt{'72'}:

~; if ($showadded eq 2 || $showsmdir eq 2){ $yymain .= qq~ ~; } $yymain .= qq~


$notification $lastmod
$txt{'276'}:

$txt{'277'}

$txt{'329'}
~; unless ($pollthread == 2) {$yymain .= qq~ ~;} unless ($is_preview){$yymain .= qq~ ~;} $yymain.=qq~
~; }