<?php
if(isset($useRouting) && $useRouting){
	include_once "./include/config.php";
}
else{
	include_once "../include/config.php";
}

// Constants for W_Communicator

// MMS - MY MESSAGE SEND

// MMS TABLE
define( "USERS_MESSAGES_TABLE",     $config["table_prefix"]."wm_mms_users_messages");
define( "USER_CONTACT_LIST_TABLE",  $config["table_prefix"]."wm_mms_contact_list");
define( "USERS_ONLINE_TABLE",       $config["table_prefix"]."wm_mms_online_users");
define( "BLOCK_POP_UP_MESSAGES_ON_SITE_TABLE",     $config["table_prefix"]."wm_mms_block_pop_up_messages");
define( "LAST_IM_CHEK_POP_UP_MESSAGES_TABLE",      $config["table_prefix"]."wm_mms_last_im_check_pop_up_messages");
define( "LAST_ALERTED_IDS_TABLE",   $config["table_prefix"]."wm_mms_last_alerted_ids");

// NEWS TABLE
define( "ENABLED_LID_TABLE",     $config["table_prefix"]."wm_news_enabled_lid");
define( "NEWS_STATE_TABLE",      $config["table_prefix"]."wm_news_user_news_state");
define( "LETTERS_STATE_TABLE",   $config["table_prefix"]."wm_news_user_letters_state");
define( "PERFECT_MATCH_TABLE",   $config["table_prefix"]."wm_news_perfect_match_alerted");
define( "PROFILE_VISITED_TABLE", $config["table_prefix"]."wm_news_profile_visited");


define( "DATING_WCOMMUNICATOR_HEADER", "<br>\nDating Communicator Page: Started");

define( "WN_FILE_MAIN",               $config["server"]."/w_communicator/communicator.php");
define( "WN_FILE_BROWSER_AUTH_ERROR", $config["server"]."/w_communicator/browser_auth_error.html");

define( "NEVER_WERE_ONLINE", -999999);    // ������� �� ��� � �������
define( "SYSTEM_USER",       -2);         // ������������ �������

define( "MAX_NEWS_TYPE_LEN", 500);
define( "MAX_NEWS_NAME_LEN", 500);
define( "MAX_NEWS_TEXT_LEN", 1000);

$smiles = array(
		"O:-)" => "<img src=\"./smiles/aa.gif\">",
		"O=)" => "<img src=\"./smiles/aa.gif\">",
		":-)" => "<img src=\"./smiles/ab.gif\">",
		":)" => "<img src=\"./smiles/ab.gif\">",
		"=)" => "<img src=\"./smiles/ab.gif\">",
		":-(" => "<img src=\"./smiles/ac.gif\">",
		":(" => "<img src=\"./smiles/ac.gif\">",
		";(" => "<img src=\"./smiles/ac.gif\">",
		";-)" => "<img src=\"./smiles/ad.gif\">",
		";)" => "<img src=\"./smiles/ad.gif\">",
		":-P" => "<img src=\"./smiles/ae.gif\">",
		"8-)" => "<img src=\"./smiles/af.gif\">",
		":-D" => "<img src=\"./smiles/ag.gif\">",
		":-[" => "<img src=\"./smiles/ah.gif\">",
		"=-O" => "<img src=\"./smiles/ai.gif\">",
		":-*" => "<img src=\"./smiles/aj.gif\">",
		":\'(" => "<img src=\"./smiles/ak.gif\">",
		":-X" => "<img src=\"./smiles/al.gif\">",
		":-x" => "<img src=\"./smiles/al.gif\">",
		">:o" => "<img src=\"./smiles/am.gif\">",
		":-\\" => "<img src=\"./smiles/an.gif\">",
		":-/" => "<img src=\"./smiles/an.gif\">",
		"*TIRED*" => "<img src=\"./smiles/ao.gif\">",
		"*JOKINGLY*" => "<img src=\"./smiles/ap.gif\">",
		"]:->" => "<img src=\"./smiles/aq.gif\">",
		"[:-}" => "<img src=\"./smiles/ar.gif\">",
		"*KISSED*" => "<img src=\"./smiles/as.gif\">",
		":-!" => "<img src=\"./smiles/at.gif\">",
		":-|" => "<img src=\"./smiles/au.gif\">",
		"*STOP*" => "<img src=\"./smiles/av.gif\">",
		"*KISSING*" => "<img src=\"./smiles/aw.gif\">",
		"@}->--" => "<img src=\"./smiles/ax.gif\">",
		"*THUMBS_UP*" => "<img src=\"./smiles/ay.gif\">",
		"*DRINK*" => "<img src=\"./smiles/ba.gif\">",
		"*IN_LOVE*" => "<img src=\"./smiles/bb.gif\">",
		"@=" => "<img src=\"./smiles/bc.gif\">"
		);
?>