#!/usr/local/bin/perl -w # SiteEngine. # setup parameters. # Lesha, 2000 # all right reserved. # opensource software; see artistic-license.txt for license agreement. # edit this file after install. { $debug = 3; # debug level - for testing # default values here - will be replaced after installation. ##### "to be replaced" block $SITE_IP = "www.your.site.com/dir/to/your/site"; # the main site information if ($debug == 1) { $start_path="."; } else { $start_path="/absolute/file/path/to/your/files"; # absolute path to the files } $email_command = "|/usr/lib/sendmail -t"; # sendmail command $from_addr = "you\@domain.com"; # mail adress to send mails from. $def_to_addr = "you\@domain.com"; # mail adress to send mails to. # by default. ##### end of "to be replaced" block # $data_dir = "des"; # directory with description files $static_dir = "static"; # root description file - # should exists at least empty $authors_file = "you.html"; # file with information about # the site authors. $about_file = "your_company.html" ; # file with information about site. # To add more static files change # &process_getfile() in index.cgi $icons = "img"; # directory to store image files. #### logfiles #### $logfile = "$start_path/$data_dir/mng_log.txt"; # admin actions log $auth_log = "$start_path/$data_dir/auth_log.txt"; # authorisation log $err_log = "$start_path/$data_dir/err_log.txt"; # error log $install_log = "install_log.txt"; # install log $tarfile = "sengine.tar"; $tar_command = "/bin/tar xvf"; #### for management use #### $need_def_news = 1; # allow everyone to add a "global" news $def_news_field = "0"; # defines a "number" of global news page $def_news_sub = ""; # defines a "sub" of global news page. $fields_file = "fields.des"; # root description file # should exists at least empty $field_dir_base = "$start_path/data"; # directory that keeps a data files $css_dir = "css_dir"; # directory for CSS files $passwd_file = "$data_dir/users_pwd"; # if absent - # will be created by first call. $c_pwd_name = "cmnr"; # name of cookie being used $tmp_dir = "$start_path/tmp"; # directory for session files $gb_dir = "gb"; # directory for guestbook files. $front_page = "index.cgi"; # name of front page. $mng_gb_present = 1; # need internal guestbook? $show_act_log = 1; # need mng_log to be shown? $show_act_log_count = 20; # entries to show $allow_change_pwd = 0; # if "1" - mng.cgi will display # password changing form. #### misc globals #### $superuser_mode = 0; # superuser by default? $valid_user = 0; # has user sucessfully logged $site_ip = $SITE_IP; $contacts_fname = $authors_file; $html_type = "HTML"; # for graphical/text data upload $gr_type = "Graphics"; # for graphical/text data upload $css_type = "CSS"; # for graphical/text data upload #### messages #### # # (for localisation) # %MSG = ( 'Error' => "Error:", 'Err_file' => "File operation problem", 'Err_1' => "Error. Please go back and correct your request.", 'Err_2' => "Please mail here if you have any questions", 'slogan' => "Life is never being so easy?", 'auth' => "About me", 'tree' => "Site map", 'search' => "Search", 'thanks' => "Thanks!", 'about' => "About site", 'opinion'=> "Leave your message", 'to_print'=> "Print", 'back'=>"<<", 'forth'=>">>", 'start'=>"Home", 'hello'=>"Hello, ", 'f_a'=>"Field added", 's_a'=>"Material added to field", 'add_s'=>"Add material", 'ch_s'=>"Sub-field changed", 'ch_s1'=>"at", 's_a1'=>"Material added ", 'ch_f'=>"Changed", 'sub_name' => "Material name:", 's_desc' => "Short Description:", 's_file' => "root file:", 'f_file' => "description file:", 'f_id' => "field ID number:", 'CSS' => "CSS file:", 's_pages' => "Pages:", 's_gb_name' => "Guestbook file name
(not active if empty - space to delete)
suggested to use the same name with field root file name.", 's_email' => "email to receive form output", 'gb_off' => "To NOT show guestbook at this page", 'news_on' => "Allow automatically upload news here", 'area' => "Here is a place to file that you're expecting to see in", 'f_back' => "Back to Field", 'pg'=>"Pages", 'ch_f'=>"Select field", 'ad_f'=>"Add field", 'ad_u'=>"Add user", 'brd_sent'=>"Sent", 'brd_r'=>"In reply to ", 'brd_s'=>"Subject", 'brd_c'=>"Comment", 'brd_rr'=>"Post", 'gb_name'=> "Name:
(must!)", 'gb_email'=> "E-mail:", 'gb_url'=> "Homepage:", 'gb_comment'=> "Comments:", 'gb_general'=> "Comments-Suggestions?", 'gb_town'=> "Location", 'gb_name_t'=> "Name:", 'gb_email_t'=> "E-mail:", 'gb_url_t'=> "URL:", 'gb_comment_t'=> "Comments?:", 'gb_general_t'=> "???", 'gb_date_t'=> "Date:", 'gb_town_t'=> "Location?:", 'gb_warn'=> "this field is required", 'mng_rep_1'=> "Field added", 'mng_rep_2' => "Material(sub) added.", 'mng_rep_3' => "to field", 'mng_begin' => "begin", 'mng_out' => "See result", 'mng_logout' => "logout", 'mng_pwd' => "Do you want to change a password?", 'mng_field_name' => "Field name :", 'mng_bk_f' => "Back to field page", 'mng_add_news' => "Add \"news\"", 'mng_css' => "CSS file", 'tr_empty'=>"It is still empty.", 'tr_last'=>"last changes", 'tr_nope'=>"Empty", 'tr_comm'=>"Comments", 'tr_noname'=>"Noname", 'tr_thanx'=>"Thank you for voting!", 'tr_subj'=>"HERE IS A VOTE FROM YOUR SITE", ); %MSG_r = ( 'Error' => "Проблемa", 'Err_file' => "Проблемы с файлом", 'Err_1' => "Error. Please go back and correct your request.", 'Err_1' => " Ошибка. Пожалуйста вернитесь и скорректируйте запрос.", 'Err_2' => " О ваших вопросах пишите сюда ", 'slogan' => " а кто сказал что будет легко?", 'auth' => " Авторы", 'tree' => " Карта сайта", 'search' => " Поиск по сайту", 'thanks' => " Спасибо!", 'about' => " O чем?", 'opinion'=> " Ваше мнение о данном материале:", 'to_print'=> " Для Печати", 'back'=>" <назад", 'forth'=>" вперед>", 'start'=>" Начало", 'hello'=>" Привет", 'f_a'=>"Field added", 's_a'=>"Material added to field", 'add_s'=>"Добавить материаl", 'ch_s'=>" изменен sub-раздел", 'ch_s1'=>" в разделe", 's_a1'=>" Добавлен sub-раздел", 'ch_f'=>" Выберите раздел", 'sub_name' => " Название материала:", 's_desc' => " Краткое описание:", 's_file' => " Kорневой файл:", 'f_file' => " Файл описания подразделов", 'f_id' => "field ID number:", 'CSS' => " файл стилей:", 's_pages' => " количество страниц:", 's_gb_name' => " гостевая книга
(не активно если пусто)
очень рекомендуется использовать то же
значение что и имя корневого файла раздела", 's_email' => " email, на который будет пересылаться
содержимое анкеты
(при наличии таковой)", 'gb_off' => " Отключить гостевую книгу", 'news_on' => " Разрешить автоматически добавлять новости", 'area' => "Here is a place to file that you're expecting to see in", 'f_back' => " Вернуться в раздел", 'pg'=>" Страницы", 'ch_f'=> "изменен", 'ad_f'=>" Добавить раздел", 'ad_u'=>"Add user", 'brd_sent'=>" Послано", 'brd_r'=>" В ответ на", 'brd_s'=> "Тема", 'brd_c'=>" Коментарий", 'brd_rr'=>"Ответить", 'gb_name'=> " Ваше имя*:", 'gb_email'=> " Ваш e-mail:", 'gb_url'=> " Адрес Вашей странички: ", 'gb_comment'=> " Ваш Комментарий:", 'gb_general'=> " Замечания - предложения?", 'gb_town'=> " Откуда вы?:", 'gb_name_t'=> " Имя:", 'gb_email_t'=> " e-mail:", 'gb_url_t'=> " Адрес странички:", 'gb_comment_t'=> " Комментарий:", 'gb_general_t'=> " Замечания - предложения?", 'gb_date_t'=> " Дата:", 'gb_town_t'=> " Откуда:", 'gb_warn'=> " поле обязательно для заполнения", 'mng_rep_1'=> "Добавлен раздел", 'mng_rep_2' => "", 'mng_rep_3' => " в раздел", 'mng_begin' => "begin", 'mng_out' => "See result", 'mng_logout' => "logout", 'mng_pwd' => " хотим поменять пароль?", 'mng_field_name' => " Имя раздела:", 'mng_bk_f' => " Вернуться в подраздел", 'mng_add_news' => " добавить \"новость\"", 'mng_css' => " Файл стилей? (CSS)", 'tr_empty'=>" It is still empty -
То есть не готово.", 'tr_last'=>" Последние изменения ", 'tr_nope'=>" пусто", 'tr_comm'=>" Comments", 'tr_noname'=>" Без названия", 'tr_thanx'=>" Благодарим вас за участие в нашем опросе!", 'tr_subj'=> "Заполненная Анкета!", ); ################ include files: if ($debug == 1) { require "lib/tools.cgi"; # main tools - cookies, login, etc. require "lib/html.cgi"; # site design consts - # change it to change colors, # fonts, etc. require "lib/gb.cgi"; # guestbook tools require "lib/tree.cgi"; # traversing site tools require "lib/brd.cgi"; # webboard tools. } 'success'; }