window.location='login.php?redirect=groupspost';"; exit(); } if ($setts['enable_c360_tabs']==1) include_once("c360tabs.php");?>
=4) $rating++; else if ($row['rate']<=2) $rating--;} $timestamp_regDate = strtotime($userDetails['regdate']); $timestamp_todayDate = $currentTimeOffset; $resultDifference = $timestamp_todayDate-$timestamp_regDate; $timestamp_minDays = (60*60*24*$setts['g_minregdays']); if ($resultDifference>$timestamp_minDays && $setts['g_minfeedback']<=$rating) { if ($_POST['group_category']!=0&&$_POST['group_name']!=""&&$_POST['group_s_description']!=""&&$_POST['group_f_description']!=""&&$_POST['group_charter']!="") { $insertGroup = addSqlRow("user","INSERT INTO nash_groups (g_leader_username, g_leader_id, g_category, g_name, g_short_desc, g_full_desc, g_type, g_physical, g_city, g_state, g_zip, g_charter, g_date_created) VALUES ('".$group_leader_username."','".$group_leader_userid."','".$group_category."','".$group_name."','".$group_s_description."','".$group_f_description."','".$group_type."','".$group_physical."','".$group_city."','".$group_state."','".$group_zip."','".$group_charter."','".$timeNowOffset."')"); $gid = $insertGroup; $insertAsMember = addSqlRow("user","INSERT INTO nash_groups_members (groupid, userid, join_date, isapproved, ismoderator, isleader) VALUES ('".$gid."','".$group_leader_userid."','".$timeNowOffset."',1,1,1)"); $seeIfUserExistAlready = getSqlRow("user","SELECT * FROM nash_groups_prefs WHERE userid='".$s_memberid."'"); if (!$seeIfUserExistAlready) $insertUserPrefs = addSqlRow("user","INSERT INTO nash_groups_prefs (userid) VALUES ('".$s_memberid."')"); $updGroup = editSqlRow("user","UPDATE nash_groups SET g_members_quantity=1,g_moderators_quantity=1 WHERE g_id='".$gid."'"); if ($setts['is_tinyurls']==1) tinyurl_builder("g",$gid,trim($group_name)); $mid = $s_memberid; include_once("mails/notify_admin_new_group_created.php"); echo "

".$lang['nash3148']."
".$lang['nash424']."

"; $link = processLink('groupslist'); echo ""; } else { echo "

".$lang['nash671'].":


".$lang['nash424'].""; $link = "groupspost.php"; echo ""; }} else { echo "

".$lang['nash3149']." ".$setts['g_minfeedback']." ".$lang['nash676']." ".$setts['g_minregdays']." ".$lang['nash3150'].".
".$lang['nash424']."

"; $link = processLink('groupslist'); echo ""; }} else { ?>
.
.
:

:

:

:

:






:
:  
:    

, :