wms7-io-interface.php

Description: Designed to work with the file system.

PHP version 8.0.1

Constants

FS_CHMOD_FILE

FS_CHMOD_FILE = 420 & ~umask()

Specifies the permissions for files. (by default = 0644)

How to set this constant: <?php define( "FS_CHMOD_FILE", ( 0644 & ~ umask() ) ); ?>

Defined only in the admin panel when connected: wp-admin/includes/file.php

where ( 0644 & ~ umask() ) is:

the '&' (ampersand) is the 'And' bitwise operator,

the '~' (tilde) is the 'Not' bitwise operator,

the umask() function returns the current umask

Functions

wms7_save_index_php()

wms7_save_index_php(string  $file_content) 

Save file index.php.

Parameters

string $file_content

File content.

wms7_save_robots_txt()

wms7_save_robots_txt(string  $file_content) 

Save file robots.txt.

Parameters

string $file_content

File content.

wms7_save_htaccess()

wms7_save_htaccess(string  $file_content) 

Save file htaccess.

Parameters

string $file_content

File content.

wms7_save_wp_config()

wms7_save_wp_config(string  $file_content) 

Save file wp_config.php.

Parameters

string $file_content

File content.

wms7_wp_debug_change()

wms7_wp_debug_change(boolean  $wp_debug) 

Change settings debug_log in wp_config.php.

Parameters

boolean $wp_debug

True or False.

wms7_check_debug_log()

wms7_check_debug_log() 

Check file debug.log - empty or not. If not empty, the button debug_log lights up.

wms7_clear_debug_log()

wms7_clear_debug_log() 

Clear file debug.log

wms7_ip_del_from_file()

wms7_ip_del_from_file(string  $user_ip) 

Delete IP from file htaccess.

Parameters

string $user_ip

User ip.

wms7_ip_ins_to_file()

wms7_ip_ins_to_file(string  $user_ip) 

Insert IP into file htaccess.

Parameters

string $user_ip

User ip.

wms7_agent_ins_to_file()

wms7_agent_ins_to_file(string  $user_agent) 

Insert user_agent into file htaccess.

Parameters

string $user_agent

Robot name.

wms7_agent_del_from_file()

wms7_agent_del_from_file(string  $user_agent) 

Delete user_agent in file htaccess.

Parameters

string $user_agent

User agent of browser.

wms7_flds_csv()

wms7_flds_csv() : string

Select fields main table of plugin for export.

Returns

string

wms7_output_csv()

wms7_output_csv() 

Export selected data of main table of plugin to external file.

wms7_delete_csv()

wms7_delete_csv() 

Delete old export file of selected items black list table.