Location: PHPKode > projects > IntraMessenger > admin/list_options_update.php
<?php
/*******************************************************
 **                  IntraMessenger - server          **
 **                                                   **
 **  Copyright:      (C) 2006 - 2011 THeUDS           **
 **  Web:            http://www.theuds.com            **
 **                  http://www.intramessenger.net    **
 **  Licence :       GPL (GNU Public License)         **
 **  http://opensource.org/licenses/gpl-license.php   **
 *******************************************************/

/*******************************************************
 **       This file is part of IntraMessenger-server  **
 **                                                   **
 **  IntraMessenger is a free software.               **
 **  IntraMessenger is distributed in the hope that   **
 **  it will be useful, but WITHOUT ANY WARRANTY.     **
 *******************************************************/
//
error_reporting(E_ALL);
//
$nb_corrections = 0;
$options_fixed = "";
$ready_for_register_on_server_list = "";
if (isset($_POST['lang'])) $lang = $_POST['lang']; else $lang = "";
if (isset($_POST['check'])) $check = $_POST['check']; else $check = "";
//
// install :
if (isset($_POST['step'])) $step = intval($_POST['step']); else $step = 0;
if (isset($_POST['lic'])) $lic = $_POST['lic']; else $lic = "";
//
$checkoptionsonly = "";
if (isset($_POST['submit']))
{
  $submit_array = array_keys($_POST['submit']);
  if ($submit_array[0] == "checkoptions") $checkoptionsonly = "X";
}
//
$repertoire  = getcwd() . "/"; 
if ( (substr_count($repertoire, "/admin_demo/") == 0) and (substr_count($repertoire, "\admin_demo/") == 0) ) 
{
  require ("../common/constant.inc.php");
  //
  if (isset($_POST['T_MAINTENANCE_MODE'])) $MAINTENANCE_MODE = $_POST['T_MAINTENANCE_MODE']; else $MAINTENANCE_MODE = "";
  if (isset($_POST['T_DISPLAY_USER_FLAG_COUNTRY'])) $DISPLAY_USER_FLAG_COUNTRY = $_POST['T_DISPLAY_USER_FLAG_COUNTRY']; else $DISPLAY_USER_FLAG_COUNTRY = "";
  if (isset($_POST['T_FORCE_USERNAME_TO_PC_SESSION_NAME'])) $FORCE_USERNAME_TO_PC_SESSION_NAME = $_POST['T_FORCE_USERNAME_TO_PC_SESSION_NAME']; else $FORCE_USERNAME_TO_PC_SESSION_NAME = "";
  if (isset($_POST['T_ALLOW_INVISIBLE'])) $ALLOW_INVISIBLE = $_POST['T_ALLOW_INVISIBLE']; else $ALLOW_INVISIBLE = "";
  if (isset($_POST['T_ALLOW_CONFERENCE'])) $ALLOW_CONFERENCE = $_POST['T_ALLOW_CONFERENCE']; else $ALLOW_CONFERENCE = "";
  if (isset($_POST['T_ALLOW_SMILEYS'])) $ALLOW_SMILEYS = $_POST['T_ALLOW_SMILEYS']; else $ALLOW_SMILEYS = "";
  if (isset($_POST['T_ALLOW_CHANGE_CONTACT_NICKNAME'])) $ALLOW_CHANGE_CONTACT_NICKNAME = $_POST['T_ALLOW_CHANGE_CONTACT_NICKNAME']; else $ALLOW_CHANGE_CONTACT_NICKNAME = "";
  if (isset($_POST['T_ALLOW_CHANGE_EMAIL_PHONE'])) $ALLOW_CHANGE_EMAIL_PHONE = $_POST['T_ALLOW_CHANGE_EMAIL_PHONE']; else $ALLOW_CHANGE_EMAIL_PHONE = "";
  if (isset($_POST['T_ALLOW_CHANGE_FUNCTION_NAME'])) $ALLOW_CHANGE_FUNCTION_NAME = $_POST['T_ALLOW_CHANGE_FUNCTION_NAME']; else $ALLOW_CHANGE_FUNCTION_NAME = "";
  if (isset($_POST['T_ALLOW_CHANGE_AVATAR'])) $ALLOW_CHANGE_AVATAR = $_POST['T_ALLOW_CHANGE_AVATAR']; else $ALLOW_CHANGE_AVATAR = "";
  if (isset($_POST['T_ALLOW_SEND_TO_OFFLINE_USER'])) $ALLOW_SEND_TO_OFFLINE_USER = $_POST['T_ALLOW_SEND_TO_OFFLINE_USER']; else $ALLOW_SEND_TO_OFFLINE_USER = "";
  if (isset($_POST['T_ALLOW_USER_TO_HISTORY_MESSAGES'])) $ALLOW_USER_TO_HISTORY_MESSAGES = $_POST['T_ALLOW_USER_TO_HISTORY_MESSAGES']; else $ALLOW_USER_TO_HISTORY_MESSAGES = "";
  if (isset($_POST['T_ALLOW_USE_PROXY'])) $ALLOW_USE_PROXY = $_POST['T_ALLOW_USE_PROXY']; else $ALLOW_USE_PROXY = "";
  if (isset($_POST['T_ALLOW_USER_RATING'])) $ALLOW_USER_RATING = $_POST['T_ALLOW_USER_RATING']; else $ALLOW_USER_RATING = "";
  if (isset($_POST['T_HIDE_COL_FUNCTION_NAME'])) $HIDE_COL_FUNCTION_NAME = $_POST['T_HIDE_COL_FUNCTION_NAME']; else $HIDE_COL_FUNCTION_NAME = "";
  if (isset($_POST['T_ALLOW_EMAIL_NOTIFIER'])) $ALLOW_EMAIL_NOTIFIER = $_POST['T_ALLOW_EMAIL_NOTIFIER']; else $ALLOW_EMAIL_NOTIFIER = "";
  if (isset($_POST['T_GROUP_FOR_SBX_AND_ADMIN_MSG'])) $GROUP_FOR_SBX_AND_ADMIN_MSG = $_POST['T_GROUP_FOR_SBX_AND_ADMIN_MSG']; else $GROUP_FOR_SBX_AND_ADMIN_MSG = "";
  if (isset($_POST['T_ENTERPRISE_SERVER'])) $ENTERPRISE_SERVER = $_POST['T_ENTERPRISE_SERVER']; else $ENTERPRISE_SERVER = "";
  if (isset($_POST['T_STATISTICS'])) $STATISTICS = $_POST['T_STATISTICS']; else $STATISTICS = "";
  if (isset($_POST['T_FORCE_AWAY_ON_SCREENSAVER'])) $FORCE_AWAY_ON_SCREENSAVER = $_POST['T_FORCE_AWAY_ON_SCREENSAVER']; else $FORCE_AWAY_ON_SCREENSAVER = "";
  if (isset($_POST['T_USER_HIEARCHIC_MANAGEMENT_BY_ADMIN'])) $USER_HIEARCHIC_MANAGEMENT_BY_ADMIN = $_POST['T_USER_HIEARCHIC_MANAGEMENT_BY_ADMIN']; else $USER_HIEARCHIC_MANAGEMENT_BY_ADMIN = "";
  if (isset($_POST['T_LOCK_USER_CONTACT_LIST'])) $LOCK_USER_CONTACT_LIST = $_POST['T_LOCK_USER_CONTACT_LIST']; else $LOCK_USER_CONTACT_LIST = "";
  if (isset($_POST['T_LOCK_USER_OPTIONS'])) $LOCK_USER_OPTIONS = $_POST['T_LOCK_USER_OPTIONS']; else $LOCK_USER_OPTIONS = "";
  if (isset($_POST['T_FORCE_STATUS_LIST_FROM_SERVER'])) $FORCE_STATUS_LIST_FROM_SERVER = $_POST['T_FORCE_STATUS_LIST_FROM_SERVER']; else $FORCE_STATUS_LIST_FROM_SERVER = "";
  if (isset($_POST['T_USER_NEED_PASSWORD'])) $USER_NEED_PASSWORD = $_POST['T_USER_NEED_PASSWORD']; else $USER_NEED_PASSWORD = "";
  if (isset($_POST['T_ALLOW_AUTO_ADD_NEW_USER_ON_SERVER'])) $ALLOW_AUTO_ADD_NEW_USER_ON_SERVER = $_POST['T_ALLOW_AUTO_ADD_NEW_USER_ON_SERVER']; else $ALLOW_AUTO_ADD_NEW_USER_ON_SERVER = "";
  if (isset($_POST['T_PENDING_NEW_AUTO_ADDED_USER'])) $PENDING_NEW_AUTO_ADDED_USER = $_POST['T_PENDING_NEW_AUTO_ADDED_USER']; else $PENDING_NEW_AUTO_ADDED_USER = "";
  if (isset($_POST['T_PENDING_USER_ON_COMPUTER_CHANGE'])) $PENDING_USER_ON_COMPUTER_CHANGE = $_POST['T_PENDING_USER_ON_COMPUTER_CHANGE']; else $PENDING_USER_ON_COMPUTER_CHANGE = "";
  if (isset($_POST['T_FORCE_UPDATE_BY_SERVER'])) $FORCE_UPDATE_BY_SERVER = $_POST['T_FORCE_UPDATE_BY_SERVER']; else $FORCE_UPDATE_BY_SERVER = "";
  if (isset($_POST['T_FORCE_UPDATE_BY_INTERNET'])) $FORCE_UPDATE_BY_INTERNET = $_POST['T_FORCE_UPDATE_BY_INTERNET']; else $FORCE_UPDATE_BY_INTERNET = "";
  if (isset($_POST['T_CRYPT_MESSAGES'])) $CRYPT_MESSAGES = $_POST['T_CRYPT_MESSAGES']; else $CRYPT_MESSAGES = "";
  if (isset($_POST['T_LOG_MESSAGES'])) $LOG_MESSAGES = $_POST['T_LOG_MESSAGES']; else $LOG_MESSAGES = "";
  if (isset($_POST['T_LOG_SESSION_OPEN'])) $LOG_SESSION_OPEN = $_POST['T_LOG_SESSION_OPEN']; else $LOG_SESSION_OPEN = "";
  if (isset($_POST['T_SEND_ADMIN_ALERT'])) $SEND_ADMIN_ALERT = $_POST['T_SEND_ADMIN_ALERT']; else $SEND_ADMIN_ALERT = "";
  if (isset($_POST['T_STOP_USE_THIS_SERVER_ADDRESS_NOW_USE_THIS_URL'])) $STOP_USE_THIS_SERVER_ADDRESS_NOW_USE_THIS_URL = $_POST['T_STOP_USE_THIS_SERVER_ADDRESS_NOW_USE_THIS_URL']; else $STOP_USE_THIS_SERVER_ADDRESS_NOW_USE_THIS_URL = "";
  if (isset($_POST['T_FULL_CHECK'])) $FULL_CHECK = $_POST['T_FULL_CHECK']; else $FULL_CHECK = "";
  if (isset($_POST['T_PUBLIC_OPTIONS_LIST'])) $PUBLIC_OPTIONS_LIST = $_POST['T_PUBLIC_OPTIONS_LIST']; else $PUBLIC_OPTIONS_LIST = "";
  if (isset($_POST['T_PUBLIC_USERS_LIST'])) $PUBLIC_USERS_LIST = $_POST['T_PUBLIC_USERS_LIST']; else $PUBLIC_USERS_LIST = "";
  if (isset($_POST['T_PUBLIC_POST_AVATAR'])) $PUBLIC_POST_AVATAR = $_POST['T_PUBLIC_POST_AVATAR']; else $PUBLIC_POST_AVATAR = "";
  if (isset($_POST['T_EXTERN_URL_TO_REGISTER'])) $EXTERN_URL_TO_REGISTER = $_POST['T_EXTERN_URL_TO_REGISTER']; else $EXTERN_URL_TO_REGISTER = "";
  if (isset($_POST['T_EXTERN_URL_FORGET_PASSWORD'])) $EXTERN_URL_FORGET_PASSWORD = $_POST['T_EXTERN_URL_FORGET_PASSWORD']; else $EXTERN_URL_FORGET_PASSWORD = "";
  if (isset($_POST['T_EXTERN_URL_CHANGE_PASSWORD'])) $EXTERN_URL_CHANGE_PASSWORD = $_POST['T_EXTERN_URL_CHANGE_PASSWORD']; else $EXTERN_URL_CHANGE_PASSWORD = "";
  if (isset($_POST['T_EXTERNAL_AUTHENTICATION'])) $EXTERNAL_AUTHENTICATION = $_POST['T_EXTERNAL_AUTHENTICATION']; else $EXTERNAL_AUTHENTICATION = "";
  if (isset($_POST['T_IM_ADDRESS_BOOK_PASSWORD'])) $IM_ADDRESS_BOOK_PASSWORD = $_POST['T_IM_ADDRESS_BOOK_PASSWORD']; else $IM_ADDRESS_BOOK_PASSWORD = "";
  if (isset($_POST['T_NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER'])) $NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER = $_POST['T_NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER']; else $NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER = "";
  if (isset($_POST['T_SITE_TITLE'])) $SITE_TITLE = trim($_POST['T_SITE_TITLE']); else $SITE_TITLE = "";
  if (isset($_POST['T_SITE_TITLE_TO_SHOW'])) $SITE_TITLE_TO_SHOW = $_POST['T_SITE_TITLE_TO_SHOW']; else $SITE_TITLE_TO_SHOW = "";
  if (isset($_POST['T_SITE_URL_TO_SHOW'])) $SITE_URL_TO_SHOW = $_POST['T_SITE_URL_TO_SHOW']; else $SITE_URL_TO_SHOW = "";
  if (isset($_POST['T_ADMIN_EMAIL'])) $ADMIN_EMAIL = $_POST['T_ADMIN_EMAIL']; else $ADMIN_EMAIL = "";
  if (isset($_POST['T_ADMIN_PHONE'])) $ADMIN_PHONE = $_POST['T_ADMIN_PHONE']; else $ADMIN_PHONE = "";
  if (isset($_POST['T_SCROLL_TEXT'])) $SCROLL_TEXT = $_POST['T_SCROLL_TEXT']; else $SCROLL_TEXT = "";
  if (isset($_POST['T_PROXY_ADDRESS'])) $PROXY_ADDRESS = $_POST['T_PROXY_ADDRESS']; else $PROXY_ADDRESS = "";
  if (isset($_POST['T_INCOMING_EMAIL_SERVER_ADDRESS'])) $INCOMING_EMAIL_SERVER_ADDRESS = $_POST['T_INCOMING_EMAIL_SERVER_ADDRESS']; else $INCOMING_EMAIL_SERVER_ADDRESS = "";
  if (isset($_POST['T_PASSWORD_FOR_PRIVATE_SERVER'])) $PASSWORD_FOR_PRIVATE_SERVER = $_POST['T_PASSWORD_FOR_PRIVATE_SERVER']; else $PASSWORD_FOR_PRIVATE_SERVER = "";
  if (isset($_POST['T_ALLOW_UPPERCASE_SPACE_USERNAME'])) $ALLOW_UPPERCASE_SPACE_USERNAME = $_POST['T_ALLOW_UPPERCASE_SPACE_USERNAME']; else $ALLOW_UPPERCASE_SPACE_USERNAME = "X";
  if (isset($_POST['T_CENSOR_MESSAGES'])) $CENSOR_MESSAGES = $_POST['T_CENSOR_MESSAGES']; else $CENSOR_MESSAGES = "";
  if (isset($_POST['T_PWD_NEED_DIGIT_LETTER'])) $PWD_NEED_DIGIT_LETTER = $_POST['T_PWD_NEED_DIGIT_LETTER']; else $PWD_NEED_DIGIT_LETTER = "";
  if (isset($_POST['T_PWD_NEED_UPPER_LOWER'])) $PWD_NEED_UPPER_LOWER = $_POST['T_PWD_NEED_UPPER_LOWER']; else $PWD_NEED_UPPER_LOWER = "";
  if (isset($_POST['T_PWD_NEED_SPECIAL_CHARACTER'])) $PWD_NEED_SPECIAL_CHARACTER = $_POST['T_PWD_NEED_SPECIAL_CHARACTER']; else $PWD_NEED_SPECIAL_CHARACTER = "";
  if (isset($_POST['T_SHOUTBOX'])) $SHOUTBOX = $_POST['T_SHOUTBOX']; else $SHOUTBOX = "";
  if (isset($_POST['T_SHOUTBOX_NEED_APPROVAL'])) $SHOUTBOX_NEED_APPROVAL = $_POST['T_SHOUTBOX_NEED_APPROVAL']; else $SHOUTBOX_NEED_APPROVAL = "";
  if (isset($_POST['T_SHOUTBOX_VOTE'])) $SHOUTBOX_VOTE = $_POST['T_SHOUTBOX_VOTE']; else $SHOUTBOX_VOTE = "";
  if (isset($_POST['T_GROUP_USER_CAN_JOIN'])) $GROUP_USER_CAN_JOIN = $_POST['T_GROUP_USER_CAN_JOIN']; else $GROUP_USER_CAN_JOIN = "";
  if (isset($_POST['T_SERVERS_STATUS'])) $SERVERS_STATUS = $_POST['T_SERVERS_STATUS']; else $SERVERS_STATUS = "";
  if (isset($_POST['T_CHECK_VERSION_INTERNET'])) $CHECK_VERSION_INTERNET = $_POST['T_CHECK_VERSION_INTERNET']; else $CHECK_VERSION_INTERNET = "";
  if (isset($_POST['T_TIME_ZONES'])) $TIME_ZONES = $_POST['T_TIME_ZONES']; else $TIME_ZONES = "";
  if (isset($_POST['T_SHOUTBOX_PUBLIC'])) $SHOUTBOX_PUBLIC = $_POST['T_SHOUTBOX_PUBLIC']; else $SHOUTBOX_PUBLIC = "";
  if (isset($_POST['T_BOOKMARKS'])) $BOOKMARKS = $_POST['T_BOOKMARKS']; else $BOOKMARKS = "";
  if (isset($_POST['T_BOOKMARKS_VOTE'])) $BOOKMARKS_VOTE = $_POST['T_BOOKMARKS_VOTE']; else $BOOKMARKS_VOTE = "";
  if (isset($_POST['T_BOOKMARKS_PUBLIC'])) $BOOKMARKS_PUBLIC = $_POST['T_BOOKMARKS_PUBLIC']; else $BOOKMARKS_PUBLIC = "";
  if (isset($_POST['T_BOOKMARKS_NEED_APPROVAL'])) $BOOKMARKS_NEED_APPROVAL = $_POST['T_BOOKMARKS_NEED_APPROVAL']; else $BOOKMARKS_NEED_APPROVAL = ""; 
  if (isset($_POST['T_LOCK_USER_PROFILE'])) $LOCK_USER_PROFILE = $_POST['T_LOCK_USER_PROFILE']; else $LOCK_USER_PROFILE = "";
  if (isset($_POST['T_INVITE_FILL_PROFILE_ON_FIRST_LOGIN'])) $INVITE_FILL_PROFILE_ON_FIRST_LOGIN = $_POST['T_INVITE_FILL_PROFILE_ON_FIRST_LOGIN']; else $INVITE_FILL_PROFILE_ON_FIRST_LOGIN = "";
  if (isset($_POST['T_ROLES_TO_OVERRIDE_PERMISSIONS'])) $ROLES_TO_OVERRIDE_PERMISSIONS = $_POST['T_ROLES_TO_OVERRIDE_PERMISSIONS']; else $ROLES_TO_OVERRIDE_PERMISSIONS = "";
  if (isset($_POST['T_WAIT_STARTUP_IF_SERVER_UNAVAILABLE'])) $WAIT_STARTUP_IF_SERVER_UNAVAILABLE = $_POST['T_WAIT_STARTUP_IF_SERVER_UNAVAILABLE']; else $WAIT_STARTUP_IF_SERVER_UNAVAILABLE = "";
  //if (isset($_POST['T_'])) $XXXXXX = $_POST['T_']; else $XXXXXX = "";
  //
  // Numeric options : 
  $MAX_NB_USER = intval($_POST['T_MAX_NB_USER']);
  $MAX_NB_SESSION = intval($_POST['T_MAX_NB_SESSION']);
  $MAX_NB_CONTACT_BY_USER = intval($_POST['T_MAX_NB_CONTACT_BY_USER']);
  $MAX_NB_IP = intval($_POST['T_MAX_NB_IP']);
  $CHECK_NEW_MSG_EVERY = intval($_POST['T_CHECK_NEW_MSG_EVERY']);
  $OUTOFDATE_AFTER_X_DAYS_NOT_USE = intval($_POST['T_OUTOFDATE_AFTER_X_DAYS_NOT_USE']);
  $MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER = intval($_POST['T_MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER']);
  $PROXY_PORT_NUMBER = intval($_POST['T_PROXY_PORT_NUMBER']);
  $MINIMUM_USERNAME_LENGTH = intval($_POST['T_MINIMUM_USERNAME_LENGTH']);
  $MINIMUM_PASSWORD_LENGTH = intval($_POST['T_MINIMUM_PASSWORD_LENGTH']);
  $SHOUTBOX_REFRESH_DELAY = intval($_POST['T_SHOUTBOX_REFRESH_DELAY']);
  $SHOUTBOX_STORE_DAYS = intval($_POST['T_SHOUTBOX_STORE_DAYS']);
  $SHOUTBOX_STORE_MAX = intval($_POST['T_SHOUTBOX_STORE_MAX']);
  $SHOUTBOX_QUOTA_USER_DAY = intval($_POST['T_SHOUTBOX_QUOTA_USER_DAY']);
  $SHOUTBOX_QUOTA_USER_WEEK = intval($_POST['T_SHOUTBOX_QUOTA_USER_WEEK']);
  $SHOUTBOX_APPROVAL_QUEUE_USER = intval($_POST['T_SHOUTBOX_APPROVAL_QUEUE_USER']);
  $SHOUTBOX_APPROVAL_QUEUE = intval($_POST['T_SHOUTBOX_APPROVAL_QUEUE']);
  $SHOUTBOX_LOCK_USER_APPROVAL = intval($_POST['T_SHOUTBOX_LOCK_USER_APPROVAL']);
  $SHOUTBOX_MAX_NOTES_USER_DAY = intval($_POST['T_SHOUTBOX_MAX_NOTES_USER_DAY']);
  $SHOUTBOX_MAX_NOTES_USER_WEEK = intval($_POST['T_SHOUTBOX_MAX_NOTES_USER_WEEK']);
  $SHOUTBOX_REMOVE_MESSAGE_VOTES = intval($_POST['T_SHOUTBOX_REMOVE_MESSAGE_VOTES']);
  $SHOUTBOX_LOCK_USER_VOTES = intval($_POST['T_SHOUTBOX_LOCK_USER_VOTES']);
  $LOCK_DURATION = intval($_POST['T_LOCK_DURATION']);
  $UNREAD_MESSAGE_VALIDITY = intval($_POST['T_UNREAD_MESSAGE_VALIDITY']);
  $LOCK_AFTER_NO_CONTACT_DURATION = intval($_POST['T_LOCK_AFTER_NO_CONTACT_DURATION']);
  $LOCK_AFTER_NO_ACTIVITY_DURATION = intval($_POST['T_LOCK_AFTER_NO_ACTIVITY_DURATION']);
  //
  // Hidden options :
  $LANG = $_POST['T_LANG'];
  $AWAY_REASONS_LIST = trim($_POST['T_AWAY_REASONS_LIST']);
  $ONLINE_REASONS_LIST = trim($_POST['T_ONLINE_REASONS_LIST']);
  $BUSY_REASONS_LIST = trim($_POST['T_BUSY_REASONS_LIST']);
  $DONOTDISTURB_REASONS_LIST = trim($_POST['T_DONOTDISTURB_REASONS_LIST']);
  $PUBLIC_FOLDER = trim($_POST['T_PUBLIC_FOLDER']);
  $special_mode = $_POST['special_mode'];
  //$SPECIAL_MODE_OPEN_COMMUNITY = $_POST['T_SPECIAL_MODE_OPEN_COMMUNITY'];
  //$SPECIAL_MODE_GROUP_COMMUNITY = $_POST['T_SPECIAL_MODE_GROUP_COMMUNITY'];
  //
  // Boolean options :
  if ($MAINTENANCE_MODE != "") $MAINTENANCE_MODE = "X";
  if ($DISPLAY_USER_FLAG_COUNTRY != "") $DISPLAY_USER_FLAG_COUNTRY = "X";
  if ($FORCE_USERNAME_TO_PC_SESSION_NAME != "") $FORCE_USERNAME_TO_PC_SESSION_NAME = "X";
  if ($ALLOW_INVISIBLE != "") $ALLOW_INVISIBLE = "X";
  if ($ALLOW_CONFERENCE != "") $ALLOW_CONFERENCE = "X";
  if ($ALLOW_SMILEYS != "") $ALLOW_SMILEYS = "X";
  if ($ALLOW_CHANGE_CONTACT_NICKNAME != "") $ALLOW_CHANGE_CONTACT_NICKNAME = "X";
  if ($ALLOW_CHANGE_EMAIL_PHONE != "") $ALLOW_CHANGE_EMAIL_PHONE = "X";
  if ($ALLOW_CHANGE_FUNCTION_NAME != "") $ALLOW_CHANGE_FUNCTION_NAME = "X";
  if ($ALLOW_CHANGE_AVATAR != "") $ALLOW_CHANGE_AVATAR = "X";
  if ($ALLOW_SEND_TO_OFFLINE_USER != "") $ALLOW_SEND_TO_OFFLINE_USER = "X";
  if ($ALLOW_USER_TO_HISTORY_MESSAGES != "") $ALLOW_USER_TO_HISTORY_MESSAGES = "X";
  if ($ALLOW_USE_PROXY != "") $ALLOW_USE_PROXY = "X";
  //if ($ALLOW_USER_RATING != "") $ALLOW_USER_RATING = "X"; NON ! 
  if ($ALLOW_EMAIL_NOTIFIER != "") $ALLOW_EMAIL_NOTIFIER = "X";
  if ($GROUP_FOR_SBX_AND_ADMIN_MSG != "") $GROUP_FOR_SBX_AND_ADMIN_MSG = "X";
  if ($ENTERPRISE_SERVER != "") $ENTERPRISE_SERVER = "X";
  if ($STATISTICS != "") $STATISTICS = "X";
  if ($FORCE_AWAY_ON_SCREENSAVER != "") $FORCE_AWAY_ON_SCREENSAVER = "X";
  if ($USER_HIEARCHIC_MANAGEMENT_BY_ADMIN != "") $USER_HIEARCHIC_MANAGEMENT_BY_ADMIN = "X";
  if ($LOCK_USER_CONTACT_LIST != "") $LOCK_USER_CONTACT_LIST = "X";
  if ($LOCK_USER_OPTIONS != "") $LOCK_USER_OPTIONS = "X";
  if ($FORCE_STATUS_LIST_FROM_SERVER != "") $FORCE_STATUS_LIST_FROM_SERVER = "X";
  if ($USER_NEED_PASSWORD != "") $USER_NEED_PASSWORD = "X";
  if ($ALLOW_AUTO_ADD_NEW_USER_ON_SERVER != "") $ALLOW_AUTO_ADD_NEW_USER_ON_SERVER = "X";
  if ($PENDING_NEW_AUTO_ADDED_USER != "") $PENDING_NEW_AUTO_ADDED_USER = "X";
  if ($PENDING_USER_ON_COMPUTER_CHANGE != "") $PENDING_USER_ON_COMPUTER_CHANGE = "X";
  if ($FORCE_UPDATE_BY_SERVER != "") $FORCE_UPDATE_BY_SERVER = "X";
  if ($FORCE_UPDATE_BY_INTERNET != "") $FORCE_UPDATE_BY_INTERNET = "X";
  if ($CRYPT_MESSAGES != "") $CRYPT_MESSAGES = "X";
  if ($LOG_MESSAGES != "") $LOG_MESSAGES = "X";
  if ($LOG_SESSION_OPEN != "") $LOG_SESSION_OPEN = "X";
  if ($SEND_ADMIN_ALERT != "") $SEND_ADMIN_ALERT = "X";
  if ($FULL_CHECK != "") $FULL_CHECK = "X";
  if ($PUBLIC_OPTIONS_LIST != "") $PUBLIC_OPTIONS_LIST = "X";
  if ($PUBLIC_USERS_LIST != "") $PUBLIC_USERS_LIST = "X";
  if ($PUBLIC_POST_AVATAR != "") $PUBLIC_POST_AVATAR = "X";
  if ($NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER != "") $NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER = "X";
  if ($CENSOR_MESSAGES != "") $CENSOR_MESSAGES = "X";
  if ($PWD_NEED_DIGIT_LETTER != "") $PWD_NEED_DIGIT_LETTER = "X";
  if ($PWD_NEED_UPPER_LOWER != "") $PWD_NEED_UPPER_LOWER = "X";
  if ($PWD_NEED_SPECIAL_CHARACTER != "") $PWD_NEED_SPECIAL_CHARACTER = "X";
  if ($SHOUTBOX != "") $SHOUTBOX = "X";
  if ($SHOUTBOX_NEED_APPROVAL != "") $SHOUTBOX_NEED_APPROVAL = "X";
  if ($SHOUTBOX_VOTE != "") $SHOUTBOX_VOTE = "X";
  if ($GROUP_USER_CAN_JOIN != "") $GROUP_USER_CAN_JOIN = "X";
  if ($SERVERS_STATUS != "") $SERVERS_STATUS = "X";
  if ($CHECK_VERSION_INTERNET != "") $CHECK_VERSION_INTERNET = "X";
  if ($TIME_ZONES != "") $TIME_ZONES = "X";
  if ($SHOUTBOX_PUBLIC != "") $SHOUTBOX_PUBLIC = "X";
  if ($BOOKMARKS != "") $BOOKMARKS = "X";
  if ($BOOKMARKS_VOTE != "") $BOOKMARKS_VOTE = "X";
  if ($BOOKMARKS_PUBLIC != "") $BOOKMARKS_PUBLIC = "X";
  if ($BOOKMARKS_NEED_APPROVAL != "") $BOOKMARKS_NEED_APPROVAL = "X";
  if ($LOCK_USER_PROFILE != "") $LOCK_USER_PROFILE = "X";
  if ($INVITE_FILL_PROFILE_ON_FIRST_LOGIN != "") $INVITE_FILL_PROFILE_ON_FIRST_LOGIN = "X";
  if ($ROLES_TO_OVERRIDE_PERMISSIONS != "") $ROLES_TO_OVERRIDE_PERMISSIONS = "X";
  if ($WAIT_STARTUP_IF_SERVER_UNAVAILABLE != "") $WAIT_STARTUP_IF_SERVER_UNAVAILABLE = "X";
  //
  $SPECIAL_MODE_OPEN_COMMUNITY = "";
  $SPECIAL_MODE_GROUP_COMMUNITY = "";
  if ($special_mode == "2") $SPECIAL_MODE_GROUP_COMMUNITY = "X";
  if ($special_mode == "3") $SPECIAL_MODE_OPEN_COMMUNITY = "X";
  //
  $PUBLIC_FOLDER =      trim($PUBLIC_FOLDER);
  $SCROLL_TEXT =        trim($SCROLL_TEXT);
  $SITE_TITLE =         trim($SITE_TITLE);
  $SITE_TITLE_TO_SHOW = trim($SITE_TITLE_TO_SHOW);
  $SITE_URL_TO_SHOW =   trim($SITE_URL_TO_SHOW);
  //
  $PUBLIC_FOLDER =      str_replace("'", "`", $PUBLIC_FOLDER);
  $SCROLL_TEXT =        str_replace("'", "`", $SCROLL_TEXT);
  $SITE_TITLE =         str_replace("'", "`", $SITE_TITLE);
  $SITE_TITLE_TO_SHOW = str_replace("'", "`", $SITE_TITLE_TO_SHOW);
  $SITE_URL_TO_SHOW =   str_replace("'", "", $SITE_URL_TO_SHOW);
  $ADMIN_EMAIL =        str_replace("'", "", $ADMIN_EMAIL);
  $ADMIN_PHONE =        str_replace("'", "", $ADMIN_PHONE);
  $PROXY_ADDRESS =      str_replace("'", "", $PROXY_ADDRESS);
  $AWAY_REASONS_LIST =  str_replace("'", "", $AWAY_REASONS_LIST);
  $AWAY_REASONS_LIST =  str_replace("#", "", $AWAY_REASONS_LIST);
  $ONLINE_REASONS_LIST =  str_replace("'", "", $ONLINE_REASONS_LIST);
  $ONLINE_REASONS_LIST =  str_replace("#", "", $ONLINE_REASONS_LIST);
  $BUSY_REASONS_LIST =    str_replace("'", "", $BUSY_REASONS_LIST);
  $BUSY_REASONS_LIST =    str_replace("#", "", $BUSY_REASONS_LIST);
  $DONOTDISTURB_REASONS_LIST =  str_replace("'", "", $DONOTDISTURB_REASONS_LIST);
  $DONOTDISTURB_REASONS_LIST =  str_replace("#", "", $DONOTDISTURB_REASONS_LIST);
  $INCOMING_EMAIL_SERVER_ADDRESS = str_replace("'", "", $INCOMING_EMAIL_SERVER_ADDRESS);
  $INCOMING_EMAIL_SERVER_ADDRESS = trim($INCOMING_EMAIL_SERVER_ADDRESS);
  //
  //
  // Corriger les options
  //
  if ($MAX_NB_USER <= 0) $MAX_NB_USER = "0";  // 0 : unlimited
  if ($MAX_NB_SESSION <= 0) $MAX_NB_SESSION = "0";  // 0 : unlimited
  if ($MAX_NB_CONTACT_BY_USER <= 0) $MAX_NB_CONTACT_BY_USER = "0";  // 0 : unlimited
  if ($MAX_NB_IP <= 0) $MAX_NB_IP = "0";
  if ($CHECK_NEW_MSG_EVERY < 10) {$CHECK_NEW_MSG_EVERY = "20"; $nb_corrections++; $options_fixed .= "CHECK_NEW_MSG_EVERY#"; }
  if ($MINIMUM_USERNAME_LENGTH < 2) {$MINIMUM_USERNAME_LENGTH = "2"; $nb_corrections++; $options_fixed .= "MINIMUM_USERNAME_LENGTH#"; }
  if ($MINIMUM_USERNAME_LENGTH > 10) {$MINIMUM_USERNAME_LENGTH = "10"; $nb_corrections++; $options_fixed .= "MINIMUM_USERNAME_LENGTH#"; }
  if ($MINIMUM_PASSWORD_LENGTH < 4) {$MINIMUM_PASSWORD_LENGTH = "4"; $nb_corrections++; $options_fixed .= "MINIMUM_PASSWORD_LENGTH#"; }
  if ($MINIMUM_PASSWORD_LENGTH > 20) { $MINIMUM_PASSWORD_LENGTH = "20"; $nb_corrections++; $options_fixed .= "MINIMUM_PASSWORD_LENGTH#"; }
  if ($OUTOFDATE_AFTER_X_DAYS_NOT_USE <= 9) $OUTOFDATE_AFTER_X_DAYS_NOT_USE = "90";
  if ($OUTOFDATE_AFTER_X_DAYS_NOT_USE > 999) $OUTOFDATE_AFTER_X_DAYS_NOT_USE = "999";
  if ($MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER <= 0) $MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER = "10";
  if ($MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER > 99) $MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER = "10";
  if ($SHOUTBOX_REFRESH_DELAY <= 10) $SHOUTBOX_REFRESH_DELAY = "30";
  if ($SHOUTBOX_REFRESH_DELAY > 120) $SHOUTBOX_REFRESH_DELAY = "90";
  if ($SHOUTBOX_STORE_DAYS <= 0) $SHOUTBOX_STORE_DAYS = "30";
  if ($SHOUTBOX_STORE_DAYS > 99) $SHOUTBOX_STORE_DAYS = "90";
  if ($SHOUTBOX_STORE_MAX <= 5) $SHOUTBOX_STORE_MAX = "50";
  if ($SHOUTBOX_STORE_MAX > 999) $SHOUTBOX_STORE_MAX = "900";
  if ($SHOUTBOX_APPROVAL_QUEUE_USER <= 0) $SHOUTBOX_APPROVAL_QUEUE_USER = "3";
  if ($SHOUTBOX_APPROVAL_QUEUE_USER > 9) $SHOUTBOX_APPROVAL_QUEUE_USER = "9";
  if ($SHOUTBOX_APPROVAL_QUEUE <= 1) $SHOUTBOX_APPROVAL_QUEUE = "10";
  if ($SHOUTBOX_APPROVAL_QUEUE > 99) $SHOUTBOX_APPROVAL_QUEUE = "90";
  if ($LOCK_DURATION < 5) $LOCK_DURATION = "0";  // 0 : unlimited
  if ($LOCK_DURATION > 9999) $LOCK_DURATION = "9000";
  if ($UNREAD_MESSAGE_VALIDITY <= 1) $UNREAD_MESSAGE_VALIDITY = "0"; // 0 : unlimited
  if ($UNREAD_MESSAGE_VALIDITY > 99) $UNREAD_MESSAGE_VALIDITY = "90";
  if ($LOCK_AFTER_NO_CONTACT_DURATION < 10) $LOCK_AFTER_NO_CONTACT_DURATION = "0"; // 0 : disable
  if ($LOCK_AFTER_NO_CONTACT_DURATION > 99) $LOCK_AFTER_NO_CONTACT_DURATION = "90";
  if ($LOCK_AFTER_NO_ACTIVITY_DURATION < 10) $LOCK_AFTER_NO_ACTIVITY_DURATION = "0"; // 0 : disable
  if ($LOCK_AFTER_NO_ACTIVITY_DURATION > 99) $LOCK_AFTER_NO_ACTIVITY_DURATION = "90";
  //
  if ( ($LANG != "EN") and ($LANG != "FR") and ($LANG != "IT") and ($LANG != "PT") and ($LANG != "ES") and ($LANG != "BR") and ($LANG != "RO") and ($LANG != "DE") and ($LANG != "NL") ) $LANG = "EN";
  //
  // Corriger les options, et indiquer le nombre (de corrections).
  //
  if ( ($SPECIAL_MODE_OPEN_COMMUNITY != "") and ($SPECIAL_MODE_GROUP_COMMUNITY != "") )
  {
    $SPECIAL_MODE_OPEN_COMMUNITY = "";
    $SPECIAL_MODE_GROUP_COMMUNITY = "";
    $nb_corrections = ($nb_corrections + 2);
    $options_fixed .= "SPECIAL_MODE_OPEN_COMMUNITY#SPECIAL_MODE_GROUP_COMMUNITY#";
  }
  if ( ($CRYPT_MESSAGES != "") and ($LOG_MESSAGES != "") ) {$LOG_MESSAGES = ""; $nb_corrections++; $options_fixed .= "LOG_MESSAGES#"; }
  if ( ($FORCE_UPDATE_BY_INTERNET != "") and ($FORCE_UPDATE_BY_SERVER != "") ) {$FORCE_UPDATE_BY_SERVER = ""; $nb_corrections++; $options_fixed .= "FORCE_UPDATE_BY_SERVER#"; }
  //
  if ($EXTERNAL_AUTHENTICATION != "")
  {
    if ($USER_NEED_PASSWORD == "") {$USER_NEED_PASSWORD = "X"; $nb_corrections++; $options_fixed .= "USER_NEED_PASSWORD#"; }
    if ($ALLOW_AUTO_ADD_NEW_USER_ON_SERVER == "") {$ALLOW_AUTO_ADD_NEW_USER_ON_SERVER = "X"; $nb_corrections++; $options_fixed .= "ALLOW_AUTO_ADD_NEW_USER_ON_SERVER#"; }
    if ($PENDING_NEW_AUTO_ADDED_USER != "") {$PENDING_NEW_AUTO_ADDED_USER = ""; $nb_corrections++; $options_fixed .= "PENDING_NEW_AUTO_ADDED_USER#"; }
    if ($NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER != "") {$NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER = ""; $nb_corrections++; $options_fixed .= "NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER#"; }
  }
  //
  //if ( (strlen($IM_ADDRESS_BOOK_PASSWORD) > 4) and ($ENTERPRISE_SERVER == "") )
  if (strlen($IM_ADDRESS_BOOK_PASSWORD) > 4)
  {
    $nb_corrections_before = $nb_corrections;
    //
    if ($ENTERPRISE_SERVER != "") {$ENTERPRISE_SERVER = ""; $nb_corrections++; $options_fixed .= "ENTERPRISE_SERVER#"; }
    if ($PASSWORD_FOR_PRIVATE_SERVER != "") {$PASSWORD_FOR_PRIVATE_SERVER = ""; $nb_corrections++; $options_fixed .= "PASSWORD_FOR_PRIVATE_SERVER#"; }
    if ($ALLOW_AUTO_ADD_NEW_USER_ON_SERVER == "") {$ALLOW_AUTO_ADD_NEW_USER_ON_SERVER = "X"; $nb_corrections++; $options_fixed .= "ALLOW_AUTO_ADD_NEW_USER_ON_SERVER#"; }
    if ($PENDING_NEW_AUTO_ADDED_USER != "") {$PENDING_NEW_AUTO_ADDED_USER = ""; $nb_corrections++; $options_fixed .= "PENDING_NEW_AUTO_ADDED_USER#"; }
    if ($FORCE_USERNAME_TO_PC_SESSION_NAME != "") {$FORCE_USERNAME_TO_PC_SESSION_NAME = ""; $nb_corrections++; $options_fixed .= "FORCE_USERNAME_TO_PC_SESSION_NAME#"; }
    if ($PENDING_USER_ON_COMPUTER_CHANGE != "") {$PENDING_USER_ON_COMPUTER_CHANGE = ""; $nb_corrections++; $options_fixed .= "PENDING_USER_ON_COMPUTER_CHANGE#"; }
    if ($USER_HIEARCHIC_MANAGEMENT_BY_ADMIN != "") {$USER_HIEARCHIC_MANAGEMENT_BY_ADMIN = ""; $nb_corrections++; $options_fixed .= "USER_HIEARCHIC_MANAGEMENT_BY_ADMIN#"; }
    if ($USER_NEED_PASSWORD == "") {$USER_NEED_PASSWORD = "X"; $nb_corrections++; $options_fixed .= "USER_NEED_PASSWORD#"; }
    if ($LOG_MESSAGES != "") {$LOG_MESSAGES = ""; $nb_corrections++; $options_fixed .= "LOG_MESSAGES#"; }
    if ($CHECK_VERSION_INTERNET == "") {$CHECK_VERSION_INTERNET = "X"; $nb_corrections++; $options_fixed .= "CHECK_VERSION_INTERNET#"; }
    if ($FORCE_UPDATE_BY_SERVER != "") {$FORCE_UPDATE_BY_SERVER = ""; $nb_corrections++; $options_fixed .= "FORCE_UPDATE_BY_SERVER#"; }
    if ($FORCE_UPDATE_BY_INTERNET == "") {$FORCE_UPDATE_BY_INTERNET = "X"; $nb_corrections++; $options_fixed .= "FORCE_UPDATE_BY_INTERNET#"; }
    if ( (intval($MAX_NB_USER) < 200) and (intval($MAX_NB_USER) >0) ) {$MAX_NB_USER = "0"; $nb_corrections++; $options_fixed .= "MAX_NB_USER#"; }
    if ( (intval($MAX_NB_SESSION) < 50) and (intval($MAX_NB_SESSION) >0) ) {$MAX_NB_SESSION = "100"; $nb_corrections++; $options_fixed .= "MAX_NB_SESSION#"; }
    //
    if ($nb_corrections > $nb_corrections_before) $ready_for_register_on_server_list = "OK";
  }
  else
  {
    if ($IM_ADDRESS_BOOK_PASSWORD != "") {$IM_ADDRESS_BOOK_PASSWORD = ""; $nb_corrections++; $options_fixed .= "IM_ADDRESS_BOOK_PASSWORD#"; }
  }
  if ( ($ALLOW_AUTO_ADD_NEW_USER_ON_SERVER == "") and ($PENDING_NEW_AUTO_ADDED_USER != "") ) {$PENDING_NEW_AUTO_ADDED_USER = ""; $nb_corrections++; $options_fixed .= "PENDING_NEW_AUTO_ADDED_USER#"; }
  //if ( ($PENDING_USER_ON_COMPUTER_CHANGE == "") and ($USER_NEED_PASSWORD == "") ) {$USER_NEED_PASSWORD = "X"; $nb_corrections++; $options_fixed .= "USER_NEED_PASSWORD#"; }
  if ( ($PENDING_USER_ON_COMPUTER_CHANGE == "") and ($FORCE_USERNAME_TO_PC_SESSION_NAME == "") and ($USER_NEED_PASSWORD == "") ) {$USER_NEED_PASSWORD = "X"; $nb_corrections++; $options_fixed .= "USER_NEED_PASSWORD#"; }
  //if ( ($NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER != "") and ($USER_NEED_PASSWORD == "") ) {$USER_NEED_PASSWORD = "X"; $nb_corrections++; $options_fixed .= "USER_NEED_PASSWORD#"; }
  if ( ($NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER != "") and ($ALLOW_AUTO_ADD_NEW_USER_ON_SERVER == "") ) {$NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER = ""; $nb_corrections++; $options_fixed .= "NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER#"; }
  if ( ($CRYPT_MESSAGES != "") and ($LOG_MESSAGES != "") ) {$LOG_MESSAGES = ""; $nb_corrections++; $options_fixed .= "LOG_MESSAGES#"; }
  if ( ($CRYPT_MESSAGES != "") and ($CENSOR_MESSAGES != "") ) {$CENSOR_MESSAGES = ""; $nb_corrections++; $options_fixed .= "CENSOR_MESSAGES#"; }
  if ( ($GROUP_FOR_SBX_AND_ADMIN_MSG != "") and ($SPECIAL_MODE_GROUP_COMMUNITY != "") ) {$GROUP_FOR_SBX_AND_ADMIN_MSG = ""; $nb_corrections++; $options_fixed .= "GROUP_FOR_SBX_AND_ADMIN_MSG#"; }
  if ( ($USER_HIEARCHIC_MANAGEMENT_BY_ADMIN != "") and ($SPECIAL_MODE_GROUP_COMMUNITY != "") ) {$USER_HIEARCHIC_MANAGEMENT_BY_ADMIN = ""; $nb_corrections++; $options_fixed .= "USER_HIEARCHIC_MANAGEMENT_BY_ADMIN#"; }
  if ( ($USER_HIEARCHIC_MANAGEMENT_BY_ADMIN != "") and ($SPECIAL_MODE_OPEN_COMMUNITY != "") ) {$USER_HIEARCHIC_MANAGEMENT_BY_ADMIN = ""; $nb_corrections++; $options_fixed .= "USER_HIEARCHIC_MANAGEMENT_BY_ADMIN#"; }
  //if ( ($GROUP_USER_CAN_JOIN != "") and ( ($SPECIAL_MODE_GROUP_COMMUNITY == "") or ($GROUP_FOR_SBX_AND_ADMIN_MSG == "") ) ) {$GROUP_USER_CAN_JOIN = ""; $nb_corrections++; $options_fixed .= "GROUP_USER_CAN_JOIN#"; }
  if ( ($GROUP_USER_CAN_JOIN != "") and ($SPECIAL_MODE_GROUP_COMMUNITY == "") and ($GROUP_FOR_SBX_AND_ADMIN_MSG == "") ) {$GROUP_USER_CAN_JOIN = ""; $nb_corrections++; $options_fixed .= "GROUP_USER_CAN_JOIN#"; }
  if ( ($LOCK_USER_OPTIONS != "") and ($ALLOW_EMAIL_NOTIFIER != "") ) {$ALLOW_EMAIL_NOTIFIER = ""; $nb_corrections++; $options_fixed .= "ALLOW_EMAIL_NOTIFIER#"; }
  if ( ($LOCK_USER_CONTACT_LIST != "") and ($ALLOW_USER_RATING != "") ) {$ALLOW_USER_RATING = ""; $nb_corrections++; $options_fixed .= "ALLOW_USER_RATING#"; }
  if ( ($DISPLAY_USER_FLAG_COUNTRY != "") and ($CHECK_VERSION_INTERNET == "") ) {$CHECK_VERSION_INTERNET = "X";}
  
  if ($LOCK_USER_PROFILE != "")
  {
    if ($ALLOW_CHANGE_CONTACT_NICKNAME != "") {$ALLOW_CHANGE_CONTACT_NICKNAME = ""; $nb_corrections++; $options_fixed .= "ALLOW_CHANGE_CONTACT_NICKNAME#"; }
    if ($ALLOW_CHANGE_EMAIL_PHONE != "") {$ALLOW_CHANGE_EMAIL_PHONE = ""; $nb_corrections++; $options_fixed .= "ALLOW_CHANGE_EMAIL_PHONE#"; }
    if ($ALLOW_CHANGE_FUNCTION_NAME != "") {$ALLOW_CHANGE_FUNCTION_NAME = ""; $nb_corrections++; $options_fixed .= "ALLOW_CHANGE_FUNCTION_NAME#"; }
    if ($ALLOW_CHANGE_AVATAR != "") {$ALLOW_CHANGE_AVATAR = ""; $nb_corrections++; $options_fixed .= "ALLOW_CHANGE_AVATAR#"; }
    if ($ALLOW_USER_RATING != "") {$ALLOW_USER_RATING = ""; $nb_corrections++; $options_fixed .= "ALLOW_USER_RATING#"; }
    if ($INVITE_FILL_PROFILE_ON_FIRST_LOGIN != "") {$INVITE_FILL_PROFILE_ON_FIRST_LOGIN = ""; $nb_corrections++; $options_fixed .= "INVITE_FILL_PROFILE_ON_FIRST_LOGIN#"; }
  }
  //
  // Enregistrement
  //
  if ( (is_writeable("../common/config/config.inc.php")) and ($checkoptionsonly == "") )
  {
    // Backup :
    if (is_writeable("../common/config/config.inc.bak.php")) copy("../common/config/config.inc.php", "../common/config/config.inc.bak.php");
    //
    $fp = fopen("../common/config/config.inc.php", "w"); 
    if (flock($fp, 2)); 
    { 
      //
      fputs($fp, "<?php" . "\r\n"); 
      fputs($fp, "/*******************************************************" . "\r\n"); 
      fputs($fp, " **                  IntraMessenger - server          **" . "\r\n"); 
      fputs($fp, " **                                                   **" . "\r\n"); 
      fputs($fp, " **  Copyright:      (C) 2006 - 2011 THeUDS           **" . "\r\n"); 
      fputs($fp, " **  Web:            http://www.theuds.com            **" . "\r\n"); 
      fputs($fp, " **                  http://www.intramessenger.net    **" . "\r\n"); 
      fputs($fp, " **  Licence :       GPL (GNU Public License)         **" . "\r\n"); 
      fputs($fp, " **  http://opensource.org/licenses/gpl-license.php   **" . "\r\n"); 
      fputs($fp, " *******************************************************/" . "\r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "/*******************************************************" . "\r\n"); 
      fputs($fp, " **       This file is part of IntraMessenger-server  **" . "\r\n"); 
      fputs($fp, " **                                                   **" . "\r\n"); 
      fputs($fp, " **  IntraMessenger is a free software.               **" . "\r\n"); 
      fputs($fp, " **  IntraMessenger is distributed in the hope that   **" . "\r\n"); 
      fputs($fp, " **  it will be useful, but WITHOUT ANY WARRANTY.     **" . "\r\n"); 
      fputs($fp, " *******************************************************/" . "\r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "if ( !defined('INTRAMESSENGER') ) die(); ");
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "define('_LANG', '" . $LANG . "'); \r\n"); 
      fputs($fp, "## EN / FR / IT / PT / BR / RO / DE \r\n"); 
      fputs($fp, "\r\n"); 
      fputs($fp, "define('_MAINTENANCE_MODE', '" . $MAINTENANCE_MODE . "'); \r\n"); 
      fputs($fp, "## To apply updates (pour effectuer les mises à jour).\r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### ADMIN OPTIONS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_MAX_NB_USER', '" . $MAX_NB_USER . "'); \r\n"); 
      fputs($fp, "define('_MAX_NB_SESSION', '" . $MAX_NB_SESSION . "'); \r\n"); 
      fputs($fp, "define('_MAX_NB_CONTACT_BY_USER', '" . $MAX_NB_CONTACT_BY_USER . "'); \r\n"); 
      fputs($fp, "define('_MAX_NB_IP', '" . $MAX_NB_IP . "'); \r\n"); 
      fputs($fp, "define('_DISPLAY_USER_FLAG_COUNTRY', '" . $DISPLAY_USER_FLAG_COUNTRY . "'); \r\n"); 
      fputs($fp, "define('_OUTOFDATE_AFTER_X_DAYS_NOT_USE', '" . $OUTOFDATE_AFTER_X_DAYS_NOT_USE . "'); \r\n"); 
      fputs($fp, "define('_CHECK_NEW_MSG_EVERY', '" . $CHECK_NEW_MSG_EVERY . "'); \r\n"); 
      fputs($fp, "define('_FULL_CHECK', '" . $FULL_CHECK . "'); \r\n"); 
      fputs($fp, "define('_PUBLIC_FOLDER', '" . $PUBLIC_FOLDER . "'); \r\n"); 
      fputs($fp, "define('_PUBLIC_OPTIONS_LIST', '" . $PUBLIC_OPTIONS_LIST . "'); \r\n"); 
      fputs($fp, "define('_PUBLIC_USERS_LIST', '" . $PUBLIC_USERS_LIST . "'); \r\n"); 
      fputs($fp, "define('_PUBLIC_POST_AVATAR', '" . $PUBLIC_POST_AVATAR . "'); \r\n"); 
      fputs($fp, "define('_SERVERS_STATUS', '" . $SERVERS_STATUS . "'); \r\n"); 
      fputs($fp, "define('_STATISTICS', '" . $STATISTICS . "'); \r\n"); 
      fputs($fp, "define('_TIME_ZONES', '" . $TIME_ZONES . "'); \r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### USERS RESTRICTIONS OPTIONS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_ALLOW_CONFERENCE', '" . $ALLOW_CONFERENCE . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_INVISIBLE', '" . $ALLOW_INVISIBLE . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_SMILEYS', '" . $ALLOW_SMILEYS . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_CHANGE_CONTACT_NICKNAME', '" . $ALLOW_CHANGE_CONTACT_NICKNAME . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_CHANGE_EMAIL_PHONE', '" . $ALLOW_CHANGE_EMAIL_PHONE . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_CHANGE_FUNCTION_NAME', '" . $ALLOW_CHANGE_FUNCTION_NAME . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_CHANGE_AVATAR', '" . $ALLOW_CHANGE_AVATAR . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_UPPERCASE_SPACE_USERNAME', '" . $ALLOW_UPPERCASE_SPACE_USERNAME . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_SEND_TO_OFFLINE_USER', '" . $ALLOW_SEND_TO_OFFLINE_USER . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_USER_TO_HISTORY_MESSAGES', '" . $ALLOW_USER_TO_HISTORY_MESSAGES . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_USER_RATING', '" . $ALLOW_USER_RATING . "'); \r\n"); 
      fputs($fp, "## If not empty, allow user to rate their contacts (but cannot see average).\r\n"); 
      fputs($fp, "## If 'PUBLIC', users can see their contacts average.\r\n"); 
      fputs($fp, "# \r\n"); 
      fputs($fp, "define('_ALLOW_EMAIL_NOTIFIER', '" . $ALLOW_EMAIL_NOTIFIER . "'); \r\n"); 
      fputs($fp, "define('_INCOMING_EMAIL_SERVER_ADDRESS', '" . $INCOMING_EMAIL_SERVER_ADDRESS . "'); \r\n"); 
      fputs($fp, "define('_INVITE_FILL_PROFILE_ON_FIRST_LOGIN', '" . $INVITE_FILL_PROFILE_ON_FIRST_LOGIN . "'); \r\n"); 
      fputs($fp, "define('_HIDE_COL_FUNCTION_NAME', '" . $HIDE_COL_FUNCTION_NAME . "'); \r\n"); 
      fputs($fp, "define('_LOCK_USER_CONTACT_LIST', '" . $LOCK_USER_CONTACT_LIST . "'); \r\n"); 
      fputs($fp, "define('_LOCK_USER_OPTIONS', '" . $LOCK_USER_OPTIONS . "'); \r\n"); 
      fputs($fp, "define('_LOCK_USER_PROFILE', '" . $LOCK_USER_PROFILE . "'); \r\n"); 
      fputs($fp, "define('_FORCE_AWAY_ON_SCREENSAVER', '" . $FORCE_AWAY_ON_SCREENSAVER . "'); \r\n"); 
      fputs($fp, "define('_FORCE_STATUS_LIST_FROM_SERVER', '" . $FORCE_STATUS_LIST_FROM_SERVER . "'); \r\n"); 
      fputs($fp, "# \r\n"); 
      fputs($fp, "## // example: 'On phone;Meeting;Not in front of screen;Back in 5 minutes;Eating' \r\n"); 
      fputs($fp, "define('_AWAY_REASONS_LIST', '" . $AWAY_REASONS_LIST . "'); \r\n"); 
      fputs($fp, "define('_ONLINE_REASONS_LIST', '" . $ONLINE_REASONS_LIST . "'); \r\n"); 
      fputs($fp, "define('_BUSY_REASONS_LIST', '" . $BUSY_REASONS_LIST . "'); \r\n"); 
      fputs($fp, "define('_DONOTDISTURB_REASONS_LIST', '" . $DONOTDISTURB_REASONS_LIST . "'); \r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### SECURITY OPTIONS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_MINIMUM_USERNAME_LENGTH', '" . $MINIMUM_USERNAME_LENGTH . "'); \r\n"); 
      fputs($fp, "define('_USER_NEED_PASSWORD', '" . $USER_NEED_PASSWORD . "'); \r\n"); 
      fputs($fp, "define('_MINIMUM_PASSWORD_LENGTH', '" . $MINIMUM_PASSWORD_LENGTH . "'); \r\n"); 
      fputs($fp, "define('_PWD_NEED_DIGIT_LETTER', '" . $PWD_NEED_DIGIT_LETTER . "'); \r\n"); 
      fputs($fp, "define('_PWD_NEED_UPPER_LOWER', '" . $PWD_NEED_UPPER_LOWER . "'); \r\n"); 
      fputs($fp, "define('_PWD_NEED_SPECIAL_CHARACTER', '" . $PWD_NEED_SPECIAL_CHARACTER . "'); \r\n"); 
      fputs($fp, "define('_MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER', '" . $MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER . "'); \r\n"); 
      fputs($fp, "define('_LOCK_DURATION', '" . $LOCK_DURATION . "'); \r\n");  // for _MAX_PASSWORD_ERRORS_BEFORE_LOCK_USER
      fputs($fp, "define('_CRYPT_MESSAGES', '" . $CRYPT_MESSAGES . "'); \r\n"); 
      fputs($fp, "define('_CENSOR_MESSAGES', '" . $CENSOR_MESSAGES . "'); \r\n"); 
      fputs($fp, "define('_LOG_MESSAGES', '" . $LOG_MESSAGES . "'); \r\n"); 
      fputs($fp, "define('_LOG_SESSION_OPEN', '" . $LOG_SESSION_OPEN . "'); \r\n"); 
      fputs($fp, "define('_FORCE_UPDATE_BY_SERVER', '" . $FORCE_UPDATE_BY_SERVER . "'); \r\n"); 
      fputs($fp, "define('_FORCE_UPDATE_BY_INTERNET', '" . $FORCE_UPDATE_BY_INTERNET . "'); \r\n"); 
      fputs($fp, "define('_SEND_ADMIN_ALERT', '" . $SEND_ADMIN_ALERT . "'); \r\n"); 
      fputs($fp, "define('_UNREAD_MESSAGE_VALIDITY', '" . $UNREAD_MESSAGE_VALIDITY . "'); \r\n"); 
      fputs($fp, "define('_LOCK_AFTER_NO_CONTACT_DURATION', '" . $LOCK_AFTER_NO_CONTACT_DURATION . "'); \r\n"); 
      fputs($fp, "define('_LOCK_AFTER_NO_ACTIVITY_DURATION', '" . $LOCK_AFTER_NO_ACTIVITY_DURATION . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_USE_PROXY', '" . $ALLOW_USE_PROXY . "'); \r\n"); 
      fputs($fp, "define('_PROXY_ADDRESS', '" . $PROXY_ADDRESS . "'); \r\n"); 
      fputs($fp, "define('_PROXY_PORT_NUMBER', '" . $PROXY_PORT_NUMBER . "'); \r\n"); 
      fputs($fp, "define('_PASSWORD_FOR_PRIVATE_SERVER', '" . $PASSWORD_FOR_PRIVATE_SERVER . "'); \r\n"); 
      fputs($fp, "## Use a long password, to improve security transfert (must be more them 5 characters !).\r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### ADMIN OPTIONS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_SITE_TITLE', '" . $SITE_TITLE . "'); \r\n"); 
      fputs($fp, "define('_SITE_URL_TO_SHOW', '" . $SITE_URL_TO_SHOW . "'); \r\n"); 
      fputs($fp, "define('_SITE_TITLE_TO_SHOW', '" . $SITE_TITLE_TO_SHOW . "'); \r\n"); 
      fputs($fp, "define('_SCROLL_TEXT', '" . $SCROLL_TEXT . "'); \r\n"); 
      fputs($fp, "## Only a temp message/text.\r\n"); 
      fputs($fp, "define('_ADMIN_EMAIL', '" . $ADMIN_EMAIL . "'); \r\n"); 
      fputs($fp, "define('_ADMIN_PHONE', '" . $ADMIN_PHONE . "'); \r\n"); 
      fputs($fp, "define('_GROUP_FOR_SBX_AND_ADMIN_MSG', '" . $GROUP_FOR_SBX_AND_ADMIN_MSG . "'); \r\n"); 
      fputs($fp, "define('_GROUP_USER_CAN_JOIN', '" . $GROUP_USER_CAN_JOIN . "'); \r\n"); 
      fputs($fp, "define('_CHECK_VERSION_INTERNET', '" . $CHECK_VERSION_INTERNET . "'); \r\n"); 
      fputs($fp, "define('_IM_ADDRESS_BOOK_PASSWORD', '" . $IM_ADDRESS_BOOK_PASSWORD . "'); \r\n"); 
      fputs($fp, "define('_WAIT_STARTUP_IF_SERVER_UNAVAILABLE', '" . $WAIT_STARTUP_IF_SERVER_UNAVAILABLE . "'); \r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### BOOKMARKS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_BOOKMARKS', '" . $BOOKMARKS . "'); \r\n"); 
      fputs($fp, "define('_BOOKMARKS_VOTE', '" . $BOOKMARKS_VOTE . "'); \r\n"); 
      fputs($fp, "define('_BOOKMARKS_PUBLIC', '" . $BOOKMARKS_PUBLIC . "'); \r\n"); 
      fputs($fp, "define('_BOOKMARKS_NEED_APPROVAL', '" . $BOOKMARKS_NEED_APPROVAL . "'); \r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### SHOUTBOX ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_SHOUTBOX', '" . $SHOUTBOX . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_REFRESH_DELAY', '" . $SHOUTBOX_REFRESH_DELAY . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_STORE_DAYS', '" . $SHOUTBOX_STORE_DAYS . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_STORE_MAX', '" . $SHOUTBOX_STORE_MAX . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_QUOTA_USER_DAY', '" . $SHOUTBOX_QUOTA_USER_DAY . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_QUOTA_USER_WEEK', '" . $SHOUTBOX_QUOTA_USER_WEEK . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_NEED_APPROVAL', '" . $SHOUTBOX_NEED_APPROVAL . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_APPROVAL_QUEUE_USER', '" . $SHOUTBOX_APPROVAL_QUEUE_USER . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_APPROVAL_QUEUE', '" . $SHOUTBOX_APPROVAL_QUEUE . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_LOCK_USER_APPROVAL', '" . $SHOUTBOX_LOCK_USER_APPROVAL . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_VOTE', '" . $SHOUTBOX_VOTE . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_MAX_NOTES_USER_DAY', '" . $SHOUTBOX_MAX_NOTES_USER_DAY . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_MAX_NOTES_USER_WEEK', '" . $SHOUTBOX_MAX_NOTES_USER_WEEK . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_REMOVE_MESSAGE_VOTES', '" . $SHOUTBOX_REMOVE_MESSAGE_VOTES . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_LOCK_USER_VOTES', '" . $SHOUTBOX_LOCK_USER_VOTES . "'); \r\n"); 
      fputs($fp, "define('_SHOUTBOX_PUBLIC', '" . $SHOUTBOX_PUBLIC . "'); \r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### SPECIALS OPTIONS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_SPECIAL_MODE_OPEN_COMMUNITY', '" . $SPECIAL_MODE_OPEN_COMMUNITY . "'); \r\n"); 
      fputs($fp, "define('_SPECIAL_MODE_GROUP_COMMUNITY', '" . $SPECIAL_MODE_GROUP_COMMUNITY . "'); \r\n"); 
      fputs($fp, "define('_ROLES_TO_OVERRIDE_PERMISSIONS', '" . $ROLES_TO_OVERRIDE_PERMISSIONS . "'); \r\n"); 
      fputs($fp, "define('_ENTERPRISE_SERVER', '" . $ENTERPRISE_SERVER . "'); \r\n"); 
      fputs($fp, "define('_FORCE_USERNAME_TO_PC_SESSION_NAME', '" . $FORCE_USERNAME_TO_PC_SESSION_NAME . "'); \r\n"); 
      fputs($fp, "define('_ALLOW_AUTO_ADD_NEW_USER_ON_SERVER', '" . $ALLOW_AUTO_ADD_NEW_USER_ON_SERVER . "'); \r\n"); 
      fputs($fp, "define('_NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER', '" . $NEED_QUICK_REGISTER_TO_AUTO_ADD_NEW_USER . "'); \r\n"); 
      fputs($fp, "define('_PENDING_NEW_AUTO_ADDED_USER', '" . $PENDING_NEW_AUTO_ADDED_USER . "'); \r\n"); 
      fputs($fp, "define('_PENDING_USER_ON_COMPUTER_CHANGE', '" . $PENDING_USER_ON_COMPUTER_CHANGE . "'); \r\n"); 
      fputs($fp, "define('_USER_HIEARCHIC_MANAGEMENT_BY_ADMIN', '" . $USER_HIEARCHIC_MANAGEMENT_BY_ADMIN . "'); \r\n"); 
      fputs($fp, "\r\n# \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "###################################### EXTERNAL AUTHENTICATION OPTIONS ###################################### \r\n"); 
      fputs($fp, "## \r\n"); 
      fputs($fp, "# \r\n \r\n"); 
      fputs($fp, "define('_EXTERNAL_AUTHENTICATION', '" . $EXTERNAL_AUTHENTICATION . "'); \r\n"); 
      fputs($fp, "define('_EXTERN_URL_TO_REGISTER', '" . $EXTERN_URL_TO_REGISTER . "'); \r\n"); 
      fputs($fp, "define('_EXTERN_URL_FORGET_PASSWORD', '" . $EXTERN_URL_FORGET_PASSWORD . "'); \r\n"); 
      fputs($fp, "define('_EXTERN_URL_CHANGE_PASSWORD', '" . $EXTERN_URL_CHANGE_PASSWORD . "'); \r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "define('_STOP_USE_THIS_SERVER_ADDRESS_NOW_USE_THIS_URL', '" . $STOP_USE_THIS_SERVER_ADDRESS_NOW_USE_THIS_URL . "'); \r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "# Server version: " . _SERVER_VERSION . "\r\n"); 
      fputs($fp, "# Options date: " . date("Y-m-d") . "\r\n"); 
      //
      fputs($fp, "" . "\r\n"); 
      fputs($fp, "?>"); 
      flock($fp, 3); 
    } 
    fclose($fp); 
  }
}
//
//if ( ($step > 0) and ($lic == "ok") ) // bug
if ($step > 0)
  header("location:../install/install.php?lang=" . $lang . "&step=" . $step . "&lic=" . $lic . "&");
else
{
  require("../common/log.inc.php");
  write_log("log_options_update", $nb_corrections . ";" . $options_fixed . ";");
  //
  if ($check == "update")
    header("location:check.php?lang=" . $lang . "&");
  else
  {
    //if ( ($ready_for_register_on_server_list == "OK") and ($checkoptionsonly == "") )
      //header("location:register_to_public_servers_list.php?lang=" . $lang . "&");
    //else
      header("location:list_options_updating.php?lang=" . $lang . "&nb_corr=" . $nb_corrections . "&list_corr=" . base64_encode($options_fixed) . "&");
  }
}
?>
Return current item: IntraMessenger