Просмотр файла globalchat/cms/rotorcms_3/head.php

Размер файла: 3.13Kb
<?php
require_once ('../includes/start.php');
require_once ('../includes/functions.php');
require_once ('../includes/header.php');
if (!isset ($preventing_output))
{
include_once ('../themes/header.php');

if (empty ($gc_title))
/* Следующая строчка - заголовок чата. Можно изменить на свое усмотрение */
$gc_title = 'GlobalChat';

$config['newtitle'] = $gc_title;
}

/** Начало свободного кода
* Свободный код - это часть скрипта, в которой хранятся значения DIV классов всех блоков GlobalChat 
* Вы можете изменить значения ниже данных констант на свое усмотрение
* Изменять скрипт вне свободного кода - запрещено */

/* Если форма ввода сообщений стоит в не удобном положении,
* то вы можете отрегулировать ее вертикальное положение изменив этот параметр */
define ('GC_C_FORM_POSITION_CORRECTION', 0);

/** DIV - div для всех версий
* DIV_C - div классы веб версии
* DIV_M - div классы мобильной версии
*/

define ('DIV_MODULE_TOPICS', 'b');
define ('DIV_MODULE_QUIZ', 'a');
define ('DIV_MODULE_DECRYPTOR', 'a');

define ('DIV_SMILES_LIST', 'site');
define ('DIV_BBCODES_LIST', 'site');


define ('DIV_C_USER_NICK', '');
define ('DIV_C_USER_ID', '');
define ('DIV_C_CHAT_AREA', '');
define ('DIV_C_MSGS_LIST', 'b'); 
define ('DIV_C_QUICK_MSG', 'site');
define ('DIV_C_INFO_PANEL', 'site');
define ('DIV_C_USERS_IN_THE_ROOM', 'site');
define ('DIV_C_ROOMS_LIST', 'site');

define ('DIV_C_MSG', 'note');
define ('DIV_C_ERROR', 'note');

define ('DIV_M_MSG', 'note');
define ('DIV_M_ERROR', 'note');

define ('DIV_M_USERS_LIST', 'b');
define ('DIV_M_USERS_IN_THE_ROOM', 'b');
define ('DIV_M_USERS_ONLINE', 'b');

define ('DIV_M_USER_ID', '');
define ('DIV_M_USER_INFO_PANEL', 'b');
define ('DIV_M_USER_MENU', 'site');
define ('DIV_M_USER_MENU_TITLE', 'b');
define ('DIV_M_USER_PROFILE', 'site');
define ('DIV_M_USER_PROFILE_TITLE', 'b');
define ('DIV_M_WRITE_TO_USER', 'a');

define ('DIV_M_NAVIGATION_FOOT', 'b');

define ('DIV_M_QUICK_MSG_FORM', 'site');
define ('DIV_M_QUICK_MSG', 'site');

define ('DIV_M_ROOMS_LIST', 'b');
define ('DIV_M_AUTOUPDATE_FORM', 'b');
define ('DIV_M_MSG_FORM', 'a');
define ('DIV_M_MSGS_LIST', 'b');
define ('DIV_M_PAGINATION', 'nav');
/* Конец свободного кода */



if (is_user ())
{
$guser = DB::run() -> queryFetch("SELECT * FROM `users` WHERE `users_login`=? LIMIT 1;", array($log));
define ('GC_USER', true);
define ('GC_USER_ID', $guser['users_id']);
define ('GC_USER_NICK', $guser['users_login']);
	if ($guser['users_gender'] == 2)
	define ('GC_USER_SEX', 0);
	else
	define ('GC_USER_SEX', 1);
	if (is_admin ())
	define ('GC_USER_ADMIN', 1);
}
else
{
define ('GC_USER_ID', null);
define ('GC_USER_NICK', null);
define ('GC_USER_SEX', null);
}