assign('SEP_Forum_SE_Version', SEP_Forum_SE_Version); $SEPFLG = new SEP_Forum_Language(); $smarty->register_object('SEPFLG', $SEPFLG, null, false); $SEPFSQL = SEP_Forum_Mysql::getInstance(); $SEPFSQL->printQuery(false); $SEPFSQL->setResource(null); $SEPFSQL->setModelMap(array('User' => 'se_users', 'Profile' => 'se_profiles', 'Profilevalue' => 'se_profilevalues', 'Profilefield' => 'se_profilefields', 'Profilecat' => 'se_profilecats', 'Level' => 'se_levels', 'Subnet' => 'se_subnets', 'Languagevar' => 'se_languagevars', 'Languagevar2' => 'se_languagevars', 'EmailQueue' => 'se_forum_email_queue')); // IF YOU DO YOU OWN TRANSLATIONS FOR SOCIALENGINE VERSION 2 // ADD YOUR LANGUAGE TO THIS LIST! $languages_map_v2 = array( 'english' => 'en', 'german' => 'de' ); // @INFO: interface // $language_code = en|de|... if(SEP_Forum_SE_Version == 3) { $_language = SE_Language::info(); $language_code = $_language['language_code']; if(empty($language_code)) { $language_code = SE_Language::info('language_code'); } } else { $language_code = $languages_map_v2[$global_lang]; } define('SEP_Forum_language_code', $language_code); $_language_info = $SEPFSQL->query("SELECT language_id FROM se_languages WHERE (language_code='".mysql_real_escape_string($language_code)."') LIMIT 1"); $language_id = $_language_info['language_id']; define('SEP_Forum_language_id', $language_id); $SEPFLG->init(getcwd().'/locale', 'forum', $language_code); $_menu_settings = SEP_Forum_Models::get_forum_setting('show_in_my_apps', 'show_in_main_menu'); $show_in_my_apps = $_menu_settings['show_in_my_apps']; $show_in_main_menu = $_menu_settings['show_in_main_menu']; $url_style = SEP_Forum_Models::get_forum_setting('url_style'); // default|mod_rewrite $number_of_instances = $SEPFSQL->find('count', array('model' => 'Instance')); $multi_instances = $number_of_instances > 1; $SEPFURL = new SEP_Forum_Urls($multi_instances, null, $url_style); $smarty->register_object('SEPFURL', $SEPFURL, null, false); if($multi_instances) { // get all forum instances $instances = $SEPFSQL->find('all', array('model' => 'Instance', 'fields' => array('id', 'name'), 'conditions' => array('mode=?', array('forum')), 'order' => 'position ASC')); $smarty->assign('sep_forum_instances', $instances); // first instance_id for default forum home $instance_id = $instances[0]['Instance']['id']; } else { // forum is running in forum mode only $first_instance = $SEPFSQL->find('first', array('model' => 'Instance', 'fields' => array('id'), 'order' => 'position ASC')); $instance_id = $first_instance['Instance']['id']; // if multi_instances == false, set to default forum instance_id $smarty->assign('sep_forum_instance', $instance_id); } $global_instance_id = &$instance_id; // set to default, if no instance_id was set per $_GET for forum home if(SEP_Forum_SE_Version == 3) { $smarty->assign('sep_forum_show_menu_item', true); $smarty->assign('sep_forum_multiinstances', $multi_instances); SE_Language::_preload(18001005); if($show_in_my_apps) { $plugin_vars = !empty($plugin_vars) ? $plugin_vars : array(); $plugin_vars['menu_user'] = array(); $plugin_vars['menu_user']['file'] = $SEPFURL->url_for_forum_home($instance_id, $url_style); $plugin_vars['menu_user']['icon'] = '../forum/icon_navbar_main.gif'; $plugin_vars['menu_user']['title'] = 18001005; } if($show_in_main_menu) { $plugin_vars['menu_main'] = Array('file' => $SEPFURL->url_for_forum_home($instance_id, $url_style), 'title' => 18001005); } } else { // se v2 if($show_in_my_apps) { $smarty->assign('sep_v2_user_menu_url', $SEPFURL->url_for_forum_home($instance_id, $url_style)); $smarty->assign('sep_v2_user_menu_img', '../forum/icon_navbar_main.gif'); $smarty->assign('sep_v2_user_menu_lang', 'Forum'); $smarty->assign('sep_v2_user_menu_show', true); } else { $smarty->assign('sep_v2_user_menu_show', false); } } // register function to decode post string $smarty->register_function('sep_forum_text_decode', array('SEP_Forum_Helper', 'text_decode')); $smarty->register_function('sep_forum_display_name', array('SEP_Forum_Helper', 'display_name')); $smarty->register_function('sep_forum_get_rating', array('SEP_Forum_Helper', 'get_rating')); $smarty->register_function('sep_forum_get_small_pagination_for_topic', array('SEP_Forum_Helper', 'small_pagination_for_topic')); $smarty->register_function('sep_forum_parse_additional_table_fields', array('SEP_Forum_Helper', 'parse_additional_table_fields')); $smarty->register_modifier('sep_forum_is_in_list', array('SEP_Forum_Helper', 'is_id_in_list')); global $params; $params = array(); if($page == "profile") { // Connect to API on profile page require_once getcwd().'/include/forum/api/impl/profile.php'; } // set login before last login if(empty($_COOKIE['SEP_Forum_before_last_login_date'])) { setcookie("SEP_Forum_before_last_login_date", $user->user_info['user_lastlogindate'], time()+3600*24*90, "/"); } elseif($_COOKIE['SEP_Forum_last_login_date'] != $user->user_info['user_lastlogindate'] && $_COOKIE['SEP_Forum_last_login_date'] != $_COOKIE['SEP_Forum_before_last_login_date']) { setcookie("SEP_Forum_before_last_login_date", $_COOKIE['SEP_Forum_last_login_date'], time()+3600*24*90, "/"); SEP_Forum_Helper::reset_topic_reads(); } // set last login if(empty($_COOKIE['SEP_Forum_last_login_date']) || $_COOKIE['SEP_Forum_last_login_date'] < $user->user_info['user_lastlogindate']) { setcookie("SEP_Forum_last_login_date", $user->user_info['user_lastlogindate'], time()+3600*24*90, "/"); } // delete attachments $delete_attachments = $SEPFSQL->find('all', array('model' => 'Attachment', 'fields' => array('Attachment.user_id', 'Attachment.post_id', 'Attachment.id', 'Attachment.filename'), 'conditions' => 'is_deleted=1', 'limit' => 5)); $_delete_attachments_ids = array(); foreach($delete_attachments as $attachment) { @unlink(getcwd().'/uploads_forum/'.$attachment['user_id'].'/'.$attachment['post_id'].'/'.$attachment['filename']); if(!empty($attachment['id'])) { $_delete_attachments_ids[] = $attachment['id']; } } if(!empty($_delete_attachments_ids) && is_array($_delete_attachments_ids) && count($_delete_attachments_ids) > 0) { $SEPFSQL->raw_query('DELETE FROM se_forum_attachments WHERE id IN ('.implode(',', $_delete_attachments_ids).') LIMIT 5'); } unset($delete_attachments); unset($_delete_attachments_ids); // TRIGGER EMAIL QUEUE $forum_settings = SEP_Forum_Models::get_forum_setting('email_queue_send_limit', 'email_queue_delay', 'email_queue_last_sent'); if(empty($forum_settings['email_queue_last_sent']) || strtotime($forum_settings['email_queue_last_sent']) < time()-($forum_settings['email_queue_delay']*60)) { $emails = $SEPFSQL->find('all', array('model' => 'EmailQueue', 'limit' => $forum_settings['email_queue_send_limit'], 'order' => 'priority DESC')); if(!empty($emails[0]['EmailQueue'])) { $delete_ids = array(); foreach($emails as $email) { $delete_ids[] = $email['EmailQueue']['id']; SEP_Forum_Helper::send_raw_email($email['EmailQueue']['email'], $email['EmailQueue']['subject'], $email['EmailQueue']['body']); } if(!empty($delete_ids[0])) { $delete_ids = implode(',', $delete_ids); $SEPFSQL->raw_query("DELETE FROM se_forum_email_queue WHERE id IN ($delete_ids)"); } } $SEPFSQL->update('Setting', array('value' => 'CURRENT_TIMESTAMP()'), array('id=?', array('email_queue_last_sent'))); } unset($delete_ids); unset($emails); unset($forum_settings); // number of items per page setting define('sep_forum_items_per_page', SEP_Forum_Models::get_forum_setting('items_per_page')); /** * Global method to determine if a multidimensional array is really empty * @return true, if array is empty * @param array $array array to check */ function sepf_aempty($array) { if ( empty($array)) { return true; } if (count($array, COUNT_RECURSIVE) === 0) { return true; } return false; } if(SEP_Forum_SE_Version == 3) { // add stats to "NETWORK STATISTICS" in home.tpl SE_Hook::register('se_site_statistics', array('SEP_Forum_Helper', 'get_forum_stats_for_home')); } ?> Healthy Friendships - Terms of Service
Search:
Advanced Search
HealthyFriendships.com Disclaimer


By requesting membership, you understand and agree that HealthyFriendships.com is a service to members of the health community. Members are responsible for the content of their posts and understand that HealthyFriendships.com retains the right to remove, edit, move or close any topic at any time. Members who ignore warnings about violations of the rules will be suspended or banned from the community.


The members of the community create the content and the opinions and views expressed by the members are not necessarily those of HealthyFriendships.com, its sponsor or its access provider.


Participants can be held legally liable for the contents of their speech, and may be held legally accountable if their speech includes anything that may cause legal action to be taken against HealthyFriendships.com, itÂ’s sponsors or access providers.


You agree to indemnify and hold harmless HealthyFriendships.com, its Sponsor, and its access provider for any loss, liability, claim, damage, and expenses (including reasonable attorney fees) arising from, or in connection with the contents of your speech and your use of the HealthyFriendships.com community.


We reserve the right to suspend posting privileges to any person who violates the rules without notice.


Members must always take into account that some members who recommend particular products and health strategies may have a vested interest in them, and members who highlight the risks of particular products and health strategies may have a vested interest in the alternatives. Members should always do further questioning and research, i.e. DYODD (Do Your Own Due Diligence) before following this type of advice.


Please note that membership is subject to a seven day waiting period before you will be able to post messages.

You agree, through your use of this forum, that you will not post any material which is false, defamatory, inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually oriented, threatening, invasive of a person's privacy, adult material, or otherwise in violation of any International or United States Federal law. You also agree not to post any copyrighted material unless you own the copyright or you have written consent from the owner of the copyrighted material. Spam, flooding, advertisements, chain letters, pyramid schemes, and solicitations are also forbidden on this forum.

Note that it is impossible for the staff or the owners of this forum to confirm the validity of posts. Please remember that we do not actively monitor the posted messages, and as such, are not responsible for the content contained within. We do not warrant the accuracy, completeness, or usefulness of any information presented. The posted messages express the views of the author, and not necessarily the views of this forum, its staff, its subsidiaries, or this forum's owner. Anyone who feels that a posted message is objectionable is encouraged to notify an administrator or moderator of this forum immediately. The staff and the owner of this forum reserve the right to remove objectionable content, within a reasonable time frame, if they determine that removal is necessary. This is a manual process, however, please realize that they may not be able to remove or edit particular messages immediately. This policy applies to member profile information as well.

You remain solely responsible for the content of your posted messages. Furthermore, you agree to indemnify and hold harmless the owners of this forum, any related websites to this forum, its staff, and its subsidiaries. The owners of this forum also reserve the right to reveal your identity (or any other related information collected on this service) in the event of a formal complaint or legal action arising from any situation caused by your use of this forum.

You have the ability, as you register, to choose your username. We advise that you keep the name appropriate. With this user account you are about to register, you agree to never give your password out to another person except an administrator, for your protection and for validity reasons. You also agree to NEVER use another person's account for any reason. We also HIGHLY recommend you use a complex and unique password for your account, to prevent account theft.

After you register and login to this forum, you will be able to fill out a detailed profile. It is your responsibility to present clean and accurate information. Any information the forum owner or staff determines to be inaccurate or vulgar in nature will be removed, with or without prior notice. Appropriate sanctions may be applicable.

Please note that with each post, your IP address is recorded, in the event that you need to be banned from this forum or your ISP contacted. This will only happen in the event of a major violation of this agreement.

Also note that the software places a cookie, a text file containing bits of information (such as your username and password), in your browser's cache. This is ONLY used to keep you logged in/out. The software does not collect or send any other form of information to your computer.