2022-02-13 17:58:25 +01:00
|
|
|
|
# file: gsl.conf
|
|
|
|
|
# Folder: /etc/gsl
|
|
|
|
|
# By echolib
|
|
|
|
|
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
|
|
|
|
|
|
|
|
|
|
#=======================================================================
|
2022-06-14 18:51:19 +02:00
|
|
|
|
# Set GSL Internal Configuration
|
2022-02-13 17:58:25 +01:00
|
|
|
|
#=======================================================================
|
2022-06-14 18:51:19 +02:00
|
|
|
|
# minimum size to check a post (default: 180)
|
|
|
|
|
gsl_article_min_Size=180
|
|
|
|
|
|
|
|
|
|
# Show log by time|level (default: 'time'); not set = level
|
|
|
|
|
gsl_log_order=time
|
2022-03-27 18:46:48 +02:00
|
|
|
|
|
2022-06-28 22:56:48 +02:00
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# # Directories Structure
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# Main
|
|
|
|
|
app_name="gsl"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_dir_lib="/var/lib/gsl"
|
|
|
|
|
gsl_dir_scripts="$gsl_dir_lib/scripts"
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_dir_help="$gsl_dir_lib/help"
|
|
|
|
|
gsl_dir_logs="/var/log/gsl"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_dir_domains="$gsl_dir_lib/domains"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_dir_db="$gsl_dir_lib/db"
|
|
|
|
|
|
2022-06-28 22:56:48 +02:00
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
#======================================================================
|
|
|
|
|
# iNSTALLATION DEPENDANCIES
|
|
|
|
|
#======================================================================
|
|
|
|
|
gsl_dirs=(
|
|
|
|
|
$gsl_dir_lib
|
|
|
|
|
$gsl_dir_scripts
|
|
|
|
|
$gsl_dir_domains
|
|
|
|
|
$gsl_dir_db
|
|
|
|
|
$gsl_dir_logs
|
|
|
|
|
$gsl_dir_help
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
gsl_files_scripts=(
|
|
|
|
|
$gsl_dir_scripts/gsl__db_manager
|
|
|
|
|
$gsl_dir_scripts/gsl__do_commons
|
|
|
|
|
$gsl_dir_scripts/gsl__domain_manager
|
|
|
|
|
$gsl_dir_scripts/gsl__edit_file
|
|
|
|
|
$gsl_dir_scripts/gsl__HTML_template
|
|
|
|
|
$gsl_dir_scripts/gsl__log_manager
|
|
|
|
|
$gsl_dir_scripts/gsl__post_checkers
|
|
|
|
|
$gsl_dir_scripts/gsl__post_makers
|
|
|
|
|
$gsl_dir_scripts/gsl__post_manager
|
|
|
|
|
$gsl_dir_scripts/gsl__srv_manager
|
|
|
|
|
$gsl_dir_scripts/gsl__stats
|
|
|
|
|
$gsl_dir_scripts/gsl__version
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
gsl_files_help=(
|
|
|
|
|
$gsl_dir_help/comment_ecrire-article.md
|
|
|
|
|
$gsl_dir_help/gsl_help.md
|
|
|
|
|
$gsl_dir_help/comment_installer-GSL.md
|
2022-06-18 18:02:14 +02:00
|
|
|
|
$gsl_dir_help/how-to_set_directory_for_articles.md
|
|
|
|
|
$gsl_dir_help/how-to_add_remove_authors.md
|
|
|
|
|
$gsl_dir_help/how-to_parameters_conf.md
|
|
|
|
|
$gsl_dir_help/how-to_CSS_classes.md
|
|
|
|
|
$gsl_dir_help/how-to_Tips_Advises.md
|
2022-06-14 18:51:19 +02:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
gsl_dirs_w=(
|
|
|
|
|
$gsl_dir_domains
|
|
|
|
|
$gsl_dir_db
|
|
|
|
|
$gsl_dir_logs
|
|
|
|
|
)
|
2022-02-13 17:58:25 +01:00
|
|
|
|
|
2022-06-28 22:56:48 +02:00
|
|
|
|
|
2022-02-13 17:58:25 +01:00
|
|
|
|
#=======================================================================
|
|
|
|
|
# Files
|
|
|
|
|
#=======================================================================
|
|
|
|
|
gsl_file_db_domains="$gsl_dir_db/domains.db"
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_file_logs="$gsl_dir_logs/gsl.log"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
# colors
|
|
|
|
|
NC="\e[0m"
|
|
|
|
|
CY="\e[33m"
|
|
|
|
|
CR="\e[0;91m"
|
2022-04-14 15:49:49 +02:00
|
|
|
|
|
2022-06-28 22:56:48 +02:00
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# LOGS settings
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
gsl_log_e="Err"
|
|
|
|
|
gsl_log_w="War"
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_log_i='Inf'
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_log_act_type="'page' or 'post'"
|
|
|
|
|
gsl_log_act_title='ARTICLE TITLE'
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_log_act_author='REGISTRED NAME'
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_log_act_info='it is about...'
|
|
|
|
|
gsl_log_act_slug='THIS-SLUG'
|
|
|
|
|
gsl_log_act_fcode='NBR : FILENAME : Alt Text'
|
|
|
|
|
gsl_log_act_fbrut='NBR : FILENAME'
|
|
|
|
|
gsl_log_act_flink='NAME : FILENAME : Alt Text'
|
|
|
|
|
gsl_log_act_image='NBR : FILENAME : ALT TEXT'
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_log_act_abbr='SHORT : LONG'
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_log_act_link='NAME : URL : Alt-Text'
|
|
|
|
|
|
2022-06-28 22:56:48 +02:00
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# CONTENT Article markers
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
gsl_mark_p_start='('
|
|
|
|
|
gsl_mark_p_close=')'
|
|
|
|
|
gsl_mark_flink='__'
|
2022-03-02 14:27:50 +01:00
|
|
|
|
gsl_mark_image='_image'
|
2022-03-05 19:25:04 +01:00
|
|
|
|
gsl_mark_fcode='_code'
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_mark_fbrut='_brut'
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_mark_title='#'
|
2022-02-27 19:16:16 +01:00
|
|
|
|
gsl_mark_list='='
|
2022-06-28 22:56:48 +02:00
|
|
|
|
gsl_mark_listo='+'
|
|
|
|
|
gsl_mark_newline='|'
|
2022-06-14 18:51:19 +02:00
|
|
|
|
gsl_mark_link='_'
|
2022-02-13 17:58:25 +01:00
|
|
|
|
gsl_mark_blockquote='---'
|
|
|
|
|
gsl_mark_blockquote_cite='_cite :'
|
|
|
|
|
gsl_mark_blockquote_year='_year :'
|
|
|
|
|
gsl_mark_blockquote_link='_link :'
|
|
|
|
|
gsl_mark_blockquote_book='_book :'
|
|
|
|
|
gsl_mark_blockquote_lang='_lang :'
|
|
|
|
|
|
2022-06-28 22:56:48 +02:00
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# bsis + icode
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
gsl_mark_icode='`'
|
|
|
|
|
icode_start='þ'
|
|
|
|
|
icode_close='Ł'
|
|
|
|
|
|
|
|
|
|
gsl_mark_bold='*'
|
|
|
|
|
bold_start='¶'
|
|
|
|
|
bold_close='ŧ'
|
|
|
|
|
|
|
|
|
|
gsl_mark_cross='×'
|
|
|
|
|
cross_start='ẞ'
|
|
|
|
|
cross_close='Ð'
|
|
|
|
|
|
|
|
|
|
gsl_mark_em='\'
|
|
|
|
|
em_start='ĸ'
|
|
|
|
|
em_close='ł'
|
|
|
|
|
|
|
|
|
|
gsl_mark_strong='¤'
|
|
|
|
|
strong_start='Ŋ'
|
|
|
|
|
strong_close='Ħ'
|
|
|
|
|
|
|
|
|
|
gsl_mark_del='~'
|
|
|
|
|
del_start='Ŧ'
|
|
|
|
|
del_close='ð'
|
|
|
|
|
|
|
|
|
|
|
2022-06-14 18:51:19 +02:00
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# HEADERS markers
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
# Needed HEADER markers
|
|
|
|
|
gsl_marker_type='type:'
|
|
|
|
|
gsl_marker_title='title:'
|
|
|
|
|
gsl_marker_slug='slug:'
|
|
|
|
|
gsl_marker_info='info:'
|
|
|
|
|
gsl_marker_author='author:'
|
|
|
|
|
gsl_marker_date='date:'
|
|
|
|
|
gsl_marker_tags='tags:'
|
|
|
|
|
|
|
|
|
|
# Optional HEADER markers
|
|
|
|
|
gsl_marker_css='css:'
|
|
|
|
|
gsl_marker_fcode='code:'
|
|
|
|
|
gsl_marker_fbrut='brut:'
|
|
|
|
|
gsl_marker_image='image:'
|
|
|
|
|
gsl_marker_abbr='abbr:'
|
|
|
|
|
gsl_marker_link='link:'
|
|
|
|
|
gsl_marker_flink='file:'
|
|
|
|
|
|
|
|
|
|
# Closed HTML static code
|
|
|
|
|
HTML_br='<br />'
|
|
|
|
|
HTML_p_close='</p>'
|
2022-03-06 15:57:20 +01:00
|
|
|
|
|
2022-03-27 18:46:48 +02:00
|
|
|
|
# Onlinde Repo
|
|
|
|
|
repo="https://git.a-lec.org/echolib/gsl/-/raw/main/usr/local/bin/gsl"
|
|
|
|
|
repo_tar="https://git.a-lec.org/echolib/gsl/-/archive/main/gsl-main.tar.gz"
|