Source
cui_checkbox_new "$dlg" "Account is &active" 13 13 20 1 $IDC_FETCHMAILDLG_CHKACTIVE $CWS_NONE $CWS_NONE && ctrl="$p2"
#------------------------------------------------------------------------------
# /var/install/bin/cui-vmail-tools-fetchmail.cui.sh
# Copyright (c) 2001-2016 the eisfair team, team(at)eisfair(dot)org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------
. /var/install/include/cuilib
. /var/install/include/mysqllib-2
#============================================================================
# global constants
#============================================================================
IDC_LISTVIEW='10' # listview ID
IDC_HELPTEXT='11' # help text ID
IDC_FETCHMAILDLG_BUTOK='10' # dlg OK button ID
IDC_FETCHMAILDLG_BUTCANCEL='11' # dlg Cancel button ID
IDC_FETCHMAILDLG_LABEL1='12' # dlg label ID
IDC_FETCHMAILDLG_LABEL2='13' # dlg label ID
IDC_FETCHMAILDLG_LABEL3='14' # dlg label ID
IDC_FETCHMAILDLG_LABEL4='15' # dlg label ID
IDC_FETCHMAILDLG_LABEL5='16' # dlg label ID
IDC_FETCHMAILDLG_LABEL6='17' # dlg label ID
IDC_FETCHMAILDLG_EDSERVER='20' # dlg edit ID
IDC_FETCHMAILDLG_EDLOGIN='21' # dlg edit ID
IDC_FETCHMAILDLG_EDPASSWD1='22' # dlg edit ID
IDC_FETCHMAILDLG_EDPASSWD2='23' # dlg edit ID
IDC_FETCHMAILDLG_EDRECIPIENT='24' # dlg edit ID
IDC_FETCHMAILDLG_EDOPTIONS='25' # dlg edit ID
IDC_FETCHMAILDLG_CHKACTIVE='26' # dlg edit ID
IDC_INPUTDLG_BUTOK='10' # dlg OK button ID
IDC_INPUTDLG_BUTCANCEL='11' # dlg Cancel button ID
IDC_INPUTDLG_EDVALUE='20' # dlg edit ID
current_user=''
current_user_id="0"
selected_entry=''
show_help="no"
vmail_sql_server="localhost"
vmail_sql_db_name="vmaildata"
vmail_sql_user="vmailprovider"
vmail_sql_pass="vmail"
if [ -e /etc/config.d/vmail ]
then
. /etc/config.d/vmail
vmail_sql_server="$VMAIL_SQL_HOST"
vmail_sql_db_name="$VMAIL_SQL_DATABASE"
vmail_sql_user="$VMAIL_SQL_USER"
vmail_sql_pass="$VMAIL_SQL_PASS"
fi
#============================================================================