Example #1
0
    echo $lang_index['text_auto_refresh_after'];
    ?>
</font><font class='striking' id="countdown"></font><font class="small"><?php 
    echo $lang_index['text_seconds'];
    ?>
</font></h2>
<?php 
    print "<table width=\"100%\"><tr><td class=\"text\">\n";
    print "<iframe src='shoutbox.php?type=shoutbox' width='900' height='180' frameborder='0' name='sbox' marginwidth='0' marginheight='0'></iframe><br /><br />\n";
    print "<form action='shoutbox.php' method='get' target='sbox' name='shbox'>\n";
    print "<label for='shbox_text'>" . $lang_index['text_message'] . "</label><input type='text' name='shbox_text' id='shbox_text' size='100' style='width: 650px; border: 1px solid gray;' />  <input type='submit' id='hbsubmit' class='btn' name='shout' value=\"" . $lang_index['sumbit_shout'] . "\" />";
    if ($CURUSER['hidehb'] != 'yes' && $showhelpbox_main == 'yes') {
        print "<input type='submit' class='btn' name='toguest' value=\"" . $lang_index['sumbit_to_guest'] . "\" />";
    }
    print "<input type='reset' class='btn' value=\"" . $lang_index['submit_clear'] . "\" /> <input type='hidden' name='sent' value='yes' /><input type='hidden' name='type' value='shoutbox' /><br />\n";
    print smile_row("shbox", "shbox_text");
    print "</form></td></tr></table>";
}
// ------------- end: shoutbox ------------------//
// ------------- start: latest forum posts ------------------//
/*
if ($showlastxforumposts_main == "yes" && $CURUSER)
{
	$res = sql_query("SELECT posts.id AS pid, posts.userid AS userpost, posts.added, topics.id AS tid, topics.subject, topics.forumid, topics.views, forums.name FROM posts, topics, forums WHERE posts.topicid = topics.id AND topics.forumid = forums.id AND minclassread <=" . sqlesc(get_user_class()) . " ORDER BY posts.id DESC LIMIT 5") or sqlerr(__FILE__,__LINE__);
	if(mysql_num_rows($res) != 0)
	{
		print("<h2>".$lang_index['text_last_five_posts']."</h2>");
		print("<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\"><tr><td class=\"colhead\" width=\"100%\" align=\"left\">".$lang_index['col_topic_title']."</td><td class=\"colhead\" align=\"center\">".$lang_index['col_view']."</td><td class=\"colhead\" align=\"center\">".$lang_index['col_author']."</td><td class=\"colhead\" align=\"left\">".$lang_index['col_posted_at']."</td></tr>");

		while ($postsx = mysql_fetch_assoc($res))
		{
Example #2
0
						<form action="/shoutbox.php" id="helpbox" method='get' target='sbox' name='shbox'>
							<?php 
    echo $lang_login['text_message'];
    ?>
							<input type='text' id="hbtext" name='shbox_text' autocomplete='off' style='width: 500px; border: 1px solid gray'>
							<button type='submit' id='hbsubmit' class='btn' name='shout'><?php 
    echo $lang_login['sumbit_shout'];
    ?>
</button>
							<button type='reset' class='btn'><?php 
    echo $lang_login['submit_clear'];
    ?>
</button>
							<input type='hidden' name='sent' value='yes'><input type='hidden' name='type' value='helpbox' />
							<div id="sbword" style="display: none"><?php 
    echo $lang_login['sumbit_shout'];
    ?>
</div>
						<?php 
    echo smile_row("shbox", "shbox_text");
    ?>
					</td>
				</tr>
			</table>
			</form></td>
	</tr>
</table>

<?php 
}
stdfoot();
Example #3
0
function quickreply($formname, $taname, $submit)
{
    print "<textarea name='" . $taname . "' cols=\"100\" rows=\"8\" style=\"width: 450px\" onkeydown=\"ctrlenter(event,'compose','qr')\"></textarea>";
    print smile_row($formname, $taname);
    print "<br />";
    print "<input type=\"submit\" id=\"qr\" class=\"btn\" value=\"" . $submit . "\" />";
}
Example #4
0
	
</script>
<h2><?php echo $lang_index['text_shoutbox'] ?></h2>
<?php
	print("<table width=\"100%\"><tr><td class=\"text\">\n");
	if ($Advertisement->enable_ad()){
		$shout_ad = $Advertisement->get_ad('shoutindex');
		print("<div id=\"ad_shoutindex\">".$shout_ad[0]."</div>");
	}
	print("<iframe src='shoutbox.php?type=shoutbox' width='900' height='320' frameborder='0' name='sbox' marginwidth='0' marginheight='0'></iframe><br /><br />\n");
	print("<form action='shoutbox.php' method='get' target='sbox' name='shbox' onsubmit=\"return checkTime();\">\n");
	print("<label for='shbox_text'>".$lang_index['text_message']."</label><input type='text' name='shbox_text' id='shbox_text' size='100' style='width: 650px; border: 1px solid gray;' />  <input type='submit' id='hbsubmit' class='btn' name='shout' value=\"".$lang_index['sumbit_shout']."\" />");
	if ($CURUSER['hidehb'] != 'yes' && $showhelpbox_main =='yes')
		print("<input type='submit' id='toguest' class='btn' name='toguest' value=\"".$lang_index['sumbit_to_guest']."\" />");
	print("<input type='reset' class='btn' value=\"".$lang_index['submit_clear']."\" /> <input type='hidden' name='sent' value='yes' /><input type='hidden' name='type' value='shoutbox' /><br />\n");
	print(smile_row("shbox","shbox_text"));
	print("</form></td></tr></table>");
}
// ------------- end: shoutbox ------------------//
// ------------- start: funbox ------------------//
if ($showfunbox_main == "yes" && (!isset($CURUSER) || $CURUSER['showfb'] == "yes")){
	// Get the newest fun stuff
	if (!$row = $Cache->get_value('current_fun_content')){
		$result = sql_query("SELECT fun.*, IF(ADDTIME(added, '1 0:0:0') < NOW(),true,false) AS neednew FROM fun WHERE status != 'banned' AND status != 'dull' ORDER BY added DESC LIMIT 1") or sqlerr(__FILE__,__LINE__);
		$row = mysql_fetch_array($result);
		$Cache->cache_value('current_fun_content', $row, 1043);
	}
	if (!$row) //There is no funbox item
	{
		print("<h2>".$lang_index['text_funbox'].(get_user_class() >= $newfunitem_class ? "<font class=\"small\"> - [<a class=\"altlink\" href=\"fun.php?action=new\"><b>".$lang_index['text_new_fun']."</b></a>]</font>" : "")."</h2>");
	}
Example #5
0
function quickreply($formname, $taname, $submit)
{
    $smarty->assign("taname", $taname);
    $smarty->assign("submit", $submit);
    $smarty->assign(smile_row, smile_row($formname, $taname));
    $content = $smarty->fetch(MTPTTEMPLATES . '/quickeply.html');
    echo $content;
}