Случайный альбом
Flash Point 2011
Некультурный отдых - Flash Point 2011
Изображений: 77
Косово поле-2011
Некультурный отдых - Косово поле-2011
Изображений: 214
Меточки:
Нацарапано:  29.10.2009
Категория: Работа
Метки новости:
Мозгов совсем нет - постоянно ползаю за константами e107 на wiki...
заведу ка я себе свои собственные.


e107 Constants
Constant Abs/Rel Sample Path Purpose
e_SELF Abs Filename URL (e.g. "http:// www.mysite.com/mybase /e107_admin/admin.php") Holds the complete URL, other than the query string (if any)
e_QUERY Text view.all Holds the full query string
(string after *.php?)
Note: $e_SELF.(e_QUERY ? "?".e_QUERY : "") provides the complete URI.

e_HTTP Abs /mybase/ Absolute base directory of the installation
e_BASE Rel ../ The path to the base e107 directory, relative to current folder.
e_BASE_SELF Rel ../e107_admin/admin.php Current URL, in base-relative form. This is easily translated to normal query form.

e_ADMIN Rel ../e107_admin/ Admin files directory (e.g.
e_IMAGE Rel ../e107_images/ Subdirectory for all images
e_THEME Rel ../e107_themes/ Subdirectory for all themes

e_PLUGIN Rel ../e107_plugin/ Subdirectory for all plugins
e_FILE Rel ../e107_files/ Subdirectory for various files
e_HANDLER Rel ../e107_handlers/ Subdirectory for various code handlers

e_LANGUAGEDIR Rel ../e107_languages/ Base language file directory
e_ADMIN_ABS Abs /mybase/e107_admin/ Admin Files
e_IMAGE_ABS Abs /mybase/e107_image/ Images

e_THEME_ABS Abs /mybase/e107_theme/ Themes
e_PLUGIN_ABS Abs /mybase/e107_plugin/ Plugins
e_FILE_ABS Abs /mybase/e107_files/ Files

e_HANDLER_ABS Abs /mybase/e107_handlers/ Handlers
e_LANGUAGEDIR_ABS Abs /mybase/e107_languages/ Languages
e_DOCS Rel ../e107_docs/help Help files directory

e_DOCS_ABS Abs /mybase/e107_docs/help Help files directory
e_DOCROOT Abs $_SERVER['DOCUMENT_ROOT'] Server-specific information - note that not all servers support this, and it may be removed in future versions
e_DOWNLOAD Varies downloads Public downloads base directory

MAINTHEME Abs site theme Directory of active site theme
PREVIEWTHEME Rel preview_theme Preview theme base directory (if active)
PREVIEWTHEMENAME Text N/A Name of theme being previewed (if active)

SITEURL Abs http:// www.yoursite.com / Absolute site URL
SITEURLBASE Abs http:// www.yoursite.com Base site URL
THEME Rel current_theme Directory of currently active theme

THEME_ABS Abs current_theme Base directory of currently active theme
USER Rel Is existing user Set if existing user
USERID Rel 1 ID as assigned by e107 to user

USERNAME Rel username Display Name (user_name in user table) for current user
USERTHEME Rel user theme Directory of specific active user's theme
USEREMAIL you@domain.com Display Email (user_email in user table) for current user


PHP constants to know
e_SELF Rel refering page actual page
_SERVER


Звиздец рекомендует поделиться ссылкой с камрадами и откомментить эту заметку:
для печатиПечатай!  
 
ZviZdeZ.ru
Придет серенький Фенрир и укусит нас за мир

2009-2011©