Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
0 Members and 2 Guests are viewing this topic.
**************************************/
define('ROOT_PATH', './');include(ROOT_PATH . "global.php");require(ROOT_PATH . "includes/sessions.php");
function get_num_words ($text) { $text_words = explode (" ", $text); $text_words = sizeof ($text_words); return $text_words;}
function get_num_words ($text) {if (strlen(trim($text)) == 0) {return;} else { $text_words = explode (" ", $text); $text_words = sizeof ($text_words); return $text_words;}}
//--------------------------------------------------------------------------//---------------Save Shouts------------------------------------------------//--------------------------------------------------------------------------$shout = (stripslashes(trim($HTTP_POST_VARS['shout'])));if ($shout == "shout it!") { $shout_user = trim($HTTP_POST_VARS['shout_user']); $shout_message = $HTTP_POST_VARS['shout_message']; $shout_message = trim ($shout_message); $shout_date = time(); $shout_ip = $session_info['session_ip']; $shout_user_id = $user_info['user_id'];
//--------------------------------------------------------------------------//---------------Save Shouts------------------------------------------------//--------------------------------------------------------------------------$shout = (stripslashes(trim($HTTP_POST_VARS['shout'])));if ($shout == "shout it!") { $shout_user = (isset($HTTP_POST_VARS['shout_user'])) ? (stripslashes(trim($HTTP_POST_VARS['shout_user']))) : ""; $shout_message = (isset($HTTP_POST_VARS['shout_message'])) ? un_htmlspecialchars(trim((string)$HTTP_POST_VARS['shout_message'])) : ""; $shout_date = time(); $shout_ip = $session_info['session_ip']; $shout_user_id = $user_info['user_id'];