Текущий сайт
$current_catalogue[ИМЯ_ПОЛЕ_СИСТЕМНОЙ_ТАБЛИЦЫ_"САЙТЫ"]
$current_catalogue[Catalogue_Name] $current_catalogue[Domain] $current_catalogue[Template_ID] $current_catalogue[TemplateSettings] $current_catalogue[Read_Access_ID] $current_catalogue[Write_Access_ID] $current_catalogue[Mirrors] $current_catalogue[Priority] $current_catalogue[Checked] $current_catalogue[Edit_Access_ID] $current_catalogue[Subscribe_Access_ID] $current_catalogue[Moderation_ID] $current_catalogue[Title_Sub_ID] $current_catalogue[E404_Sub_ID] $current_catalogue[Created] $current_catalogue[LastUpdated] $current_catalogue[Robots] $current_catalogue[Description] $current_catalogue[Keywords] $current_catalogue[Language] $current_catalogue[Email] $current_catalogue[Copy] $current_catalogue[Cache_Access_ID] $current_catalogue[Cache_Lifetime] $current_catalogue[Comment_Rule_ID]
Текущий раздел
$current_sub[Subdivision_ID] $current_sub[Catalogue_ID] $current_sub[Parent_Sub_ID] $current_sub[Subdivision_Name] $current_sub[Template_ID] $current_sub[ExternalURL] $current_sub[EnglishName] $current_sub[LastUpdated] $current_sub[Created] $current_sub[Hidden_URL] $current_sub[Read_Access_ID] $current_sub[Write_Access_ID] $current_sub[Priority] $current_sub[Checked] $current_sub[Edit_Access_ID] $current_sub[Subscribe_Access_ID] $current_sub[Moderation_ID] $current_sub[Favorite] $current_sub[TemplateSettings] $current_sub[UseMultiSubClass] $current_sub[UseEditDesignTemplate] $current_sub[img] $current_sub[Pic] $current_sub[Description] $current_sub[Keywords] $current_sub[Cache_Access_ID] $current_sub[Cache_Lifetime] $current_sub[Comment_Rule_ID]
Текущий компонент в разделе
$current_cc[Sub_Class_ID] => 77 $current_cc[Subdivision_ID] => 125 $current_cc[Class_ID] => 212 $current_cc[Sub_Class_Name] => Название компонента $current_cc[Priority] => 0 $current_cc[Read_Access_ID] => 1 $current_cc[Write_Access_ID] => 3 $current_cc[EnglishName] => response $current_cc[Checked] => 1 $current_cc[Catalogue_ID] => 3 $current_cc[Edit_Access_ID] => 3 $current_cc[Checked_Access_ID] => 3 $current_cc[Delete_Access_ID] => 3 $current_cc[Subscribe_Access_ID] => 0 $current_cc[Moderation_ID] => 1 $current_cc[DaysToHold] => 0 $current_cc[AllowTags] => 0 $current_cc[RecordsPerPage] => 5 $current_cc[SortBy] => Date DESC $current_cc[Created] => 2012-03-15 22:54:13 $current_cc[LastUpdated] => 2012-03-15 22:54:13 $current_cc[DefaultAction] => index $current_cc[NL2BR] => 1 $current_cc[UseCaptcha] => 0 $current_cc[CustomSettings] => $current_cc[Class_Template_ID] => 0 $current_cc[isNaked] => 0 $current_cc[AllowRSS] => 0 $current_cc[AllowXML] => 0 $current_cc[Cache_Access_ID] => 2 $current_cc[Cache_Lifetime] => 0 $current_cc[CacheForUser] => 0 $current_cc[sysTbl] => 0 $current_cc[_nc_final] => 1 $current_cc[Class_Name] => XCsport: MegaAgregator $current_cc[Class_Group] => XCsport ...тут куски кода всего компонента... $current_cc[Type] => useful $current_cc[Real_Class_ID] => 212 $current_cc[Subdivision_Name] => Отзывы/отчеты $current_cc[Hidden_URL] => /news/response/ $current_cc[Hidden_Host] => site.ru
Текущий пользователь
$current_user[User_ID] $current_user[Password] $current_user[PermissionGroup_ID] $current_user[Checked] $current_user[Language] $current_user[Created] $current_user[LastUpdated] $current_user[Email] $current_user[Confirmed] $current_user[RegistrationCode] $current_user[Keyword] $current_user[Login] $current_user[ForumName] $current_user[ForumAvatar] $current_user[ForumSignature] $current_user[FullName] $current_user[Catalogue_ID] $current_user[InsideAdminAccess]
Спасибо, полезно. Вот что лежит внутри $template_env:
Текущий шаблон дизайна
[Template_ID] => 83 [Description] => Название шаблона дизайна [Parent_Template_ID] => 81 [Settings] => %ШАБЛОНЫ НАВИГАЦИИ% [CustomSettings] => [Header] => %ХЕДЕР МАКЕТа ШАБЛОНА% [Footer] => %ФУТЕР МАКЕТ ШАБЛОНА% [CSS] => [_nc_final] => 1
$cc_env в другой раз расковыряю :)
Finar.
march2012-update: во даем, у меня массив текущего компонента по-ошибке такой-же, как у сайта. И никто из 1200 просмотревших не обратил внимания... :)
А вот и $cc_env
Текущий компонент (его "исходник")
[Sub_Class_ID] = 86 [Subdivision_ID] = 123 [Class_ID] = 212 [Sub_Class_Name] = Фотоальбомы [Priority] = 0 [Read_Access_ID] = 1 [Write_Access_ID] = 3 [EnglishName] = photo [Checked] = 1 [Catalogue_ID] = 3 [Edit_Access_ID] = 3 [Checked_Access_ID] = 3 [Delete_Access_ID] = 3 [Subscribe_Access_ID] = 0 [Moderation_ID] = 1 [DaysToHold] = 0 [AllowTags] = 0 [RecordsPerPage] = 50 [SortBy] = Date DESC [Created] = 2012-03-15 22:56:54 [LastUpdated] = 2012-05-30 20:40:31 [DefaultAction] = index [NL2BR] = 1 [UseCaptcha] = 0 [CustomSettings] = $CustomSettings = array(%ПОЛЬЗОВАТЕЛЬСКИЕ ВИЗУАЛЬНЫЕ НАСТРОЙКИ%); [Class_Template_ID] = 217 [isNaked] = 0 [AllowRSS] = 0 [AllowXML] = 0 [Cache_Access_ID] = 2 [Cache_Lifetime] = 0 [CacheForUser] = 0 [_db_Read_Access_ID] = 0 [_db_Write_Access_ID] = 0 [_db_Edit_Access_ID] = 0 [_db_Delete_Access_ID] = 0 [_db_Checked_Access_ID] = 0 [_db_Moderation_ID] = 0 [_db_Cache_Access_ID] = 0 [_db_Cache_Lifetime] = 0 [Class_Name] = Фотогалерея [Class_Group] = Шаблоны компонентов [FormPrefix] = %ПРЕФИКС СПИСКА ОБЪЕКТОВ% [RecordTemplateFull] = %ОБЪЕКТ В СПИСКЕ% [TitleTemplate] = $f_Name [TitleList] = [UseAltTitle] = 0 [AddTemplate] = %АЛЬТЕРНАТИВНАЯ ФОРМА ДОБАВЛЕНИЯ% [EditTemplate] = %АЛЬТЕРНАТИВНАЯ ФОРМА ИЗМЕНЕНИЯ% [AddActionTemplate] = %ДЕЙСТВИЕ ПОСЛЕ ДОБАВЛЕНИЯ ОБЪЕКТА% [EditActionTemplate] = %ДЕЙСТВИЕ ПОСЛЕ ИЗМЕНЕНИЯ ОБЪЕКТА% [SearchTemplate] = %ФОРМА ПОИСКА ПЕРЕД СПИСКОМ ОБЪЕКТОВ% [FullSearchTemplate] = %ФОРМА РАСШИРЕННОГО ПОИСКА% [SubscribeTemplate] = [System_Table_ID] = 0 [Settings] = %СИСТЕМНЫЕ НАСТРОЙКИ КОМПОНЕНТА% [File_Path] = [File_Mode] = 0 [AddCond] = %УСЛОВИЯ ДОБАВЛЕНИЯ ОБЪЕКТА% [EditCond] = %УСЛОВИЯ ИЗМЕНЕНИЯ ОБЪЕКТА% [SubscribeCond] = [DeleteCond] = [CheckActionTemplate] = [DeleteActionTemplate] = %ДЕЙСТВИЕ ПОСЛЕ УДАЛЕНИЯ ОБЪЕКТА% [CustomSettingsTemplate] = $settings_array = array(%ТЕКУЩИЕ НАСТРОЙКИ КОМПОНЕНТА СЛОВАМИ%) [ClassDescription] = %ОПИСАНИЕ КОМПОНЕНТА% [DeleteTemplate] = [ClassTemplate] = 212 [Type] = useful [_nc_final] = 1 [Real_Class_ID] = 217 [Sub_Class_Settings] = Array (%ТЕКУЩИЕ НАСТРОЙКИ КОМПОНЕНТА В ПОЛЯХ%) [sysTbl] = 0 [Subdivision_Name] = Фотоальбомы [Hidden_URL] = /photo/ [Hidden_Host] = %АДРЕС САЙТА% [convert2txt] = $f_EndText = htmlspecialchars($f_EndText);$f_EndText = nl2br($f_EndText);$f_byline = htmlspecialchars($f_byline);$f_byline = nl2br($f_byline);$f_announce_bk = htmlspecialchars($f_announce_bk);$f_announce_bk = nl2br($f_announce_bk);$f_Name = htmlspecialchars($f_Name);$f_Name = nl2br($f_Name);$f_Author = htmlspecialchars($f_Author);$f_Author = nl2br($f_Author);$f_SourceName = htmlspecialchars($f_SourceName);$f_SourceName = nl2br($f_SourceName);$f_SourceUrl = htmlspecialchars($f_SourceUrl);$f_SourceUrl = nl2br($f_SourceUrl);$f_path = htmlspecialchars($f_path);$f_path = nl2br($f_path); [LocalQuery] = /netcat/?catalogue=3&sub=123&cc=86 [curPos] = 0 [dateField] = Date [recNum] = 50 [maxRows] = 50 [addLink] = /photo/add_photo.html [subscribeLink] = /photo/subscribe_photo.html [searchLink] = /photo/search_photo.html [fieldCount] = 28 [begRow] = 1 [endRow] = 50 [totRows] = 112 [prevLink] = [nextLink] = /netcat/?catalogue=3&sub=123&cc=86&curPos=50
Оставить комментарий