<?php

/*  Alternate WebKit
(C) 2011-2015 by Alternate Tools
-----------------------------------------------------

File:         mod_constants.php
Description:  constants
*/

// Constant to be changed
// --------------------------------------------------
// Admin
    $MAX_LOG_SIZE = 1000000;   // Size in bytes

// Constant to be used in template html files
// --------------------------------------------------

// Replacement constants
    $THMREP_HEAD_TITLE = '$$THM_HEAD_TITLE$$';
    $THMREP_HEAD_DESCRIPTION = '$$THM_HEAD_DESCRIPTION$$';
    $THMREP_HEAD_TAGS = '$$THM_HEAD_KEYWORDS$$';
    $THMREP_HEAD_REVISIT = '$$THM_HEAD_REVISIT$$';
    $THMREP_HEAD_CHARSET = '$$THM_HEAD_CHARSET$$';

    $THMREP_BODY_TITLE = '$$THM_BODY_TITLE$$';
    $THMREP_BODY_BACKLINK = '$$THM_BODY_BACKLINK$$';
    $THMREP_BODY_NAVIGATION_LINK = '$$THM_BODY_NAVIGATION_LINK$$';
    $THMREP_BODY_NAVIGATION_TEXT = '$$THM_BODY_NAVIGATION_TEXT$$';
    $THMREP_BODY_CONTENT = '$$THM_BODY_CONTENT$$';
    $THMREP_BODY_ADDCONTENT = '$$THM_BODY_ADDCONTENT$$';
    $THMREP_BODY_ADDCONTENT2 = '$$THM_BODY_ADDCONTENT2$$';

    $THMREP_FILE_NAVIGATION = '$$THM_FILE_NAVIGATION_%d$$';
    $THMREP_FILE_NAVIGATION_ENTRY = '$$THM_FILE_NAVIGATION_ENTRY_%d$$';
    $THMREP_FILE_NAVIGATION_ENTRY_SPLIT = '$$THM_FILE_NAVIGATION_ENTRY_SPLIT$$';
    $THMREP_FILE_FOOTER = '$$THM_FILE_FOOTER$$';
    $THMREP_FILE_SPLIT = '$$THM_FILE_SPLIT$$';

    $THMREP_SITE_TITLE = '$$THM_SITE_TITLE$$';
    $THMREP_SITE_DATE = '$$THM_SITE_DATE$$';
    $THMREP_SITE_TIME = '$$THM_SITE_TIME$$';
    $THMREP_SITE_YEAR = '$$THM_SITE_YEAR$$';
    $THMREP_SITE_AUTHOR = '$$THM_SITE_AUTHOR$$';
    $THMREP_SITE_MODIFIED = '$$THM_SITE_MODIFIED$$';
    
// Do NOT edit below unless you know what you are doing
// --------------------------------------------------

// Var pattern
    $THMREP_VAR_PATTERN = '/\$\$THM_[^\$]+\$\$/';

// Frontend
    $SITE_MAIN_SITE = "site_main.php";
    $SITE_SPLASHPAGE_SITE = "site_splashpage.php";
    $SITE_SURVEY_SITE = "site_survey.php";
    $SITE_CONSTRUCTION_SITE = "site_construction.php";
    $SITE_DISPLAYPICTURE_SITE = "site_displaypicture.php";

    $SITE_COUNTER_FILE = "stats/frontend_count.txt";
    $SITE_LOG_FILE = "stats/frontend_count_log.txt";
    $SITE_IP_FILE = "stats/frontend_count_ipaddr.txt";
    $SITE_STATS_FOLDER = "stats/";
    $SITE_CONFIG_FILE = "config/site_config.conf";
    $SITE_INDEX_FILE = "../index.htm";
    $SITE_DEFAULT_INDEX_FILE = "../config/index_default.conf";

// Title files
    $SPLASHPAGETITLE_CONFIG_FILE = "config/title_splashpage.conf";
    $SURVEYTITLE_CONFIG_FILE = "config/title_survey.conf";
    $CONSTRUCTIONTITLE_CONFIG_FILE = "config/title_construction.conf";

// Alignment constants
    $ALIGN_LEFT = "left";
    $ALIGN_RIGHT = "right";
    $ALIGN_CENTER = "center";
    $ALIGN_TOP = "top";
    $ALIGN_BOTTOM = "bottom";

// User folder
    $USER_FOLDER = "../config/users/";
    $USER_FOLDER_DELETED = "../config/users_deleted/";

// Pages folder
    $PAGES_FOLDER = "../config/pages/";
    
// Galleries folder
    $GALLERIES_FOLDER = "../config/galleries/";

// Survey folder
    $SURVEY_FOLDER = "../config/survey/";
    
// Guestbook folder
    $GUESTBOOK_FOLDER = "../config/guestbook/";
    
// Forms folder
    $FORM_FOLDER = "../config/forms/";
    
// Pageimages folder
    $PAGEIMAGES_FOLDER = "../config/pageimages/";
    $PAGEIMAGES_LIST = "../config/site_imagelist.js";
    $PAGEIMAGES_THUMB_WIDTH = 80;
    $PAGEIMAGES_PREVIEW_WIDTH = 160;

// Pagefiles folder
    $PAGEFILES_FOLDER = "../config/pagefiles/";
    
// Gallery images
    $GALLERYIMAGES_DEFCOLS = 4;
    $GALLERYIMAGES_DEFNUM = 10;
    $GALLERYIMAGES_DEFALIGN = $ALIGN_LEFT;
    $GALLERYIMAGES_DEFTEXTALIGN = $ALIGN_TOP;
    $GALLERYIMAGES_DEFWIDTH = 640;
    $GALLERYIMAGES_DEFHEIGHT = 480;
    $GALLERYIMAGES_THUMB_DEFWIDTH = 80;
    $GALLERYIMAGES_THUMB_DEFHEIGHT = 60;
    $GALLERYIMAGES_SIZE_AUTO = "0";
    $GALLERYIMAGES_SIZE_PORTRAIT = "1";
    $GALLERYIMAGES_SIZE_NOAUTO = "2";

// YouTube gallery
    $YOUTUBEGALLERY_DEFCOLS = 2;
    $YOUTUBEGALLERY_DEFNUM = 10;
    $YOUTUBEGALLERY_DEFALIGN = $ALIGN_LEFT;
    $YOUTUBEGALLERY_DEFTEXTALIGN = $ALIGN_TOP;
    $YOUTUBEGALLERY_DEFWIDTH = 320;
    $YOUTUBEGALLERY_DEFHEIGHT = 200;

// Link list
    $LINKLIST_DEFCOLS = 2;
    $LINKLIST_DEFNUM = 10;
    $LINKLIST_DEFALIGN = $ALIGN_LEFT;
    $LINKLIST_DEFTEXTALIGN = $ALIGN_TOP;
    
// Form
    $FORM_DEFNUM = 10;
    $FORM_DEFTEXTALIGN = $ALIGN_LEFT; // Also used for contact, guestbook, search!!

// Search page
    $SEARCH_MAXSTRING = 255;

// Theme folder
    $THEME_FOLDER = "../config/themes/";
    $THEME_MAIN_FOLDER = "../";
    $THEME_IMAGES_FOLDER = "../theme_images/";
    $THEME_FILES_FOLDER = "../theme_files/";

// Folder to store mails in
    $MAIL_FOLDER = "../config/mails/";

// Images
    $ADMIN_HEADER_IMAGE = "../images/admin_head.jpg";

    $ERROR_IMAGE = "../images/admin_ico_error.gif";
    
    $HELP_IMAGE = "../images/admin_ico_help.gif";

    $PAGE_IMAGE = "../images/admin_ico_page.gif";
    $PAGE_LINK_IMAGE = "../images/admin_ico_page_link.gif";
    $PAGE_CONTACT_IMAGE = "../images/admin_ico_page_contact.gif";
    $PAGE_GALLERY_IMAGE = "../images/admin_ico_page_gallery.gif";
    $PAGE_YOUTUBEGALLERY_IMAGE = "../images/admin_ico_page_youtubegallery.gif";
    $PAGE_LINKLIST_IMAGE = "../images/admin_ico_page_linklist.gif";
    $PAGE_GUESTBOOK_IMAGE = "../images/admin_ico_page_guestbook.gif";
    $PAGE_SITEMAP_IMAGE = "../images/admin_ico_page_sitemap.gif";
    $PAGE_NEWSLETTER_IMAGE = "../images/admin_ico_page_newsletter.gif";
    $PAGE_SEARCH_IMAGE = "../images/admin_ico_page_search.gif";
    $PAGE_FORM_IMAGE = "../images/admin_ico_page_form.gif";

    $EDITGALLERY_IMAGE = "../images/admin_ico_editgallery.gif";
    $EDITYOUTUBEGALLERY_IMAGE = "../images/admin_ico_edityoutubegallery.gif";
    $EDITLINKLIST_IMAGE = "../images/admin_ico_editlinklist.gif";
    $EDITFORM_IMAGE = "../images/admin_ico_editform.gif";
    $EDITGUESTBOOK_IMAGE = "../images/admin_ico_editguestbook.gif";

    $LOCKED_IMAGE = "../images/admin_ico_locked.gif";

    $CUSTOMER_IMAGE = "../images/admin_ico_usercustomer.gif";
    $REPORTER_IMAGE = "../images/admin_ico_userreporter.gif";
    $OWNER_IMAGE = "../images/admin_ico_userowner.gif";
    $ADMIN_IMAGE = "../images/admin_ico_useradmin.gif";
    $NEWSLETTER_IMAGE = "../images/admin_ico_newsletter.gif";

    $FILE_IMAGE = "../images/admin_ico_file.gif";

    $FOLDER_IMAGE = "../images/admin_ico_folder.gif";
    $FOLDERUP_IMAGE = "../images/admin_ico_folder_up.gif";
    $FOLDERFILE_IMAGE = "../images/admin_ico_folder_file.gif";
    $FOLDERIMAGE_IMAGE = "../images/admin_ico_folder_image.gif";

    $SPLASHPAGE_IMAGE = "../images/splashpage";
    $CONSTRUCTION_IMAGE = "../images/construction";

    $FAVICO_IMAGE = "../favicon.ico";

    $MAIL_IMAGE = "../images/admin_ico_mail.gif";
    $MAIL_FAILED_IMAGE = "../images/admin_ico_mail_failed.gif";

// Files
    $ADMIN_MAIN_SITE = "index.php";
    $ADMIN_LOGIN_SITE = "login.php";
    $ADMIN_LIST_PAGECONTENTS_SITE = "list_pagecontents.php";
    $ADMIN_EDIT_PAGECONTENTS_SITE = "edit_pagecontents.php";
    $ADMIN_MODIFY_PAGECONTENTS_SITE = "modify_pagecontents.php";
    $ADMIN_EDIT_GALLERY_SITE = "edit_gallery.php";
    $ADMIN_EDIT_YOUTUBEGALLERY_SITE = "edit_youtubegallery.php";
    $ADMIN_EDIT_LINKLIST_SITE = "edit_linklist.php";
    $ADMIN_EDIT_FORM_SITE = "edit_form.php";
    $ADMIN_LIST_GUESTBOOK_SITE = "list_guestbook.php";
    $ADMIN_EDIT_GUESTBOOK_SITE = "edit_guestbook.php";
    $ADMIN_MODIFY_GUESTBOOK_SITE = "modify_guestbook.php";
    $ADMIN_LIST_PAGES_SITE = "list_pages.php";
    $ADMIN_EDIT_PAGES_SITE = "edit_pages.php";
    $ADMIN_MODIFY_PAGES_SITE = "modify_pages.php";
    $ADMIN_LIST_PAGEIMAGES_SITE = "list_pageimages.php";
    $ADMIN_EDIT_PAGEIMAGES_SITE = "edit_pageimages.php";
    $ADMIN_MODIFY_PAGEFILES_SITE = "modify_pagefiles.php";
    $ADMIN_LIST_PAGEFILES_SITE = "list_pagefiles.php";
    $ADMIN_EDIT_PAGEFILES_SITE = "edit_pagefiles.php";
    $ADMIN_MODIFY_PAGEIMAGES_SITE = "modify_pageimages.php";
    $ADMIN_EDITCONFIGURATION_SITE = "edit_configuration.php";
    $ADMIN_EDITSPLASHPAGE_SITE = "edit_splashpage.php";
    $ADMIN_EDITSURVEY_SITE = "edit_survey.php";
    $ADMIN_LIST_SURVEYRESULTS_SITE = "list_surveyresults.php";
    $ADMIN_MODIFY_SURVEYRESULTS_SITE = "modify_surveyresults.php";
    $ADMIN_EDITCONSTRUCTION_SITE = "edit_construction.php";
    $ADMIN_SEND_NEWSLETTER_SITE = "send_newsletter.php";
    $ADMIN_LIST_USERS_SITE = "list_users.php";
    $ADMIN_MODIFY_USERS_SITE = "modify_user.php";
    $ADMIN_EDIT_USERS_SITE = "edit_user.php";
    $ADMIN_LIST_MAILS_SITE = "list_mails.php";
    $ADMIN_EDIT_MAILS_SITE = "edit_mail.php";
    $ADMIN_SELECT_THEME_SITE = "select_theme.php";
    $ADMIN_EDIT_LOGOS_SITE = "edit_logos.php";
    $ADMIN_EDITFILE_SITE = "edit_file.php";
    $ADMIN_EDITFOLDER_SITE = "edit_folder.php";

    $ADMIN_SYSINFO_SITE = "display_sysinfo.php";
    $ADMIN_PHPINFO_SITE = "display_phpinfo.php";
    $ADMIN_LOG_SITE = "display_log.php";
    $ADMIN_LOG_FILE = "../stats/log_admin.adat";
    $ADMIN_LOG_ARCHIVE = "../stats/archive/";
    $FRONT_COUNT_FILE = "../" . $SITE_COUNTER_FILE;
    $FRONT_LOG_FILE = "../" . $SITE_LOG_FILE;
    $FRONT_IPLOG_FILE = "../" . $SITE_IP_FILE;
    $LOG_ARCHIVE = "../stats/archive/";

// Filter,sort, usertype constants
    $FILTER_ALL = 0;
    $FILTER_UNLOCKED = 1;
    $FILTER_LOCKED = 2;
    $FILTER_DONE = 1;
    $FILTER_UNDONE = 2;
    $FILTER_THISYEAR = 3;
    $FILTER_THISMONTH = 4;
    $FILTER_SENT = 1;
    $FILTER_UNSENT = 2;
    
// Line feed constants
    $LINE_FEED = "\r\n";

// Software
    $SOFTWARE_VERSION = "Alternate WebKit 0.993";
    $SOFTWARE_DATE = "2015-06-10";
    $SOFTWARE_CHANGES = "../languages/changes.conf";

// Session
    $ADMIN_SESS_USER = 'user_name_' . $_SERVER['SERVER_NAME'];
    $ADMIN_SESS_TYPE = 'user_type_' . $_SERVER['SERVER_NAME'];
?>