Functions

class_set_state_check

Classes to be restored need to implement __set_state() function.

If they don't have it, we will convert to stdClass object.

package

WatchMan-Site7

Arguments

$matches

object

Matches.

Response

\object.

« More »

complete

Parse the line-buffer backwards to see if we have a constant or function or variable.

package

WatchMan-Site7

Arguments

$string

string

Name of constant or function or variable.

Response

array

Returns array of possible matches.

« More »

console_error_handler

Console error handler.

package

WatchMan-Site7

Arguments

$errno

integer

Number of error.

$errorstr

string

Message of error.

« More »

display_comment_recaptcha

Used for display comment recaptcha.

package

WatchMan-Site7

« More »

display_login_captcha

Used for display login captcha.

package

WatchMan-Site7

« More »

display_register_captcha

Used for display register captcha.

package

WatchMan-Site7

« More »

error

Error.

package

WatchMan-Site7

Arguments

$error

string

Message of error.

« More »

frontend_recaptcha_script

Used for frontend recaptcha script.

package

WatchMan-Site7

« More »

login_recaptcha_script

Used for login recaptcha script.

package

WatchMan-Site7

« More »

parse

See: http://jan.kneschke.de/projects/php-shell Return int 0 if a executable statement is in the session buffer, non-zero otherwise.

package

WatchMan-Site7

Throws
\Exception

Variable \'%s\' is not set.

\Exception

Variable \'%s\' is not a class.

\Exception

Variable %s (Class '%s') doesn't have a method named '%s'.

\Exception

Variable \'%s\' is not set.

\Exception

Variable \'%s\' is not a class.

\Exception

Variable %s (Class '%s') doesn't have a method named '%s'.

\Exception

Variable \'%s\' is not a array'.

\Exception

Class \'%s\' doesn\'t exist.

\Exception

Class '%s' doesn't have a method named '%s'.

Arguments

$code

object

Code.

Response

\integer.

« More »

save_variables

Saves newly defined variables to session.

package

WatchMan-Site7

Arguments

$existing

array

existing.

$current

array

current.

$ignore

array

ignore.

« More »

verify_comment_captcha

Used for verify comment captcha.

package

WatchMan-Site7

Arguments

$commentdata

string

Comment data.

Response

\array.

« More »

verify_login_captcha

Used for verify login captcha.

package

WatchMan-Site7

Arguments

$user

string

User.

$password

string

User password.

Response

\array.

« More »

verify_lostpassword_captcha

Used for verify lostpassword captcha.

package

WatchMan-Site7

Response

\array.

« More »

verify_registration_captcha

Used for verify registration captcha.

package

WatchMan-Site7

Arguments

$errors

string

Errors.

$sanitized_user_login

string

User login.

$user_email

string

User email.

Response

\array.

« More »

wms7_activation

Performed when the plugin is activation.

package

WatchMan-Site7

« More »

wms7_agent_del_from_file

Used for rewritecond user_agent delete in htaccess.

package

WatchMan-Site7

Arguments

$user_agent

string

Robot name.

« More »

wms7_agent_ins_to_file

Used for rewritecond user_agent insert into htaccess.

package

WatchMan-Site7

Arguments

$user_agent

string

Robot name.

« More »

wms7_attack_analyzer

Analyzes the nature of the site visit.

package

WatchMan-Site7

Arguments

$_log

string

Login.

$page_visit

string

Page visit.

$_http_user_agent

string

User agent.

$user_ip

string

User IP.

« More »

wms7_block_visitor

Block a visitor.

package

WatchMan-Site7

Arguments

$ban_notes

string

Ban notes.

$ban_user_agent

boolean

Ban user agent.

« More »

wms7_comlete

Parse the line-buffer backwards to see if we have a constant or function or variable.

package

WatchMan-Site7

« More »

wms7_console

Create modal window for control console PHP.

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

« More »

wms7_count_rows

Used for to obtain the number of visits records.

package

WatchMan-Site7

Response

\number.

« More »

wms7_country_name

Used to retrieve information of country of visitor.

package

WatchMan-Site7

Arguments

$country_code

string

Country code.

Response

\user

country name.

« More »

wms7_create_graph_stat

Used for create graph statistic of visits.

package

WatchMan-Site7

Arguments

$where

string

Login result (0, 1, 2, 3).

Response

\records.

« More »

wms7_create_table_stat

Used for create table statistic of visits.

package

WatchMan-Site7

Arguments

$where

string

Login result (0, 1, 2, 3).

Response

\records.

« More »

wms7_create_tables

Used for create tables: watchman_site, watchman_site_countries.

package

WatchMan-Site7

Response

\boolean.

« More »

wms7_deactivation

Performed when the plugin is deactivation.

package

WatchMan-Site7

« More »

wms7_file_editor

Create modal window for files editor (index.php robots.txt .htaccess wp-config.php).

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

« More »

wms7_flds_csv

Used for resolve fields for export.

package

WatchMan-Site7

Response

\string.

« More »

wms7_geobytes

Used to retrieve ip information from the provider Geobytes.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

Response

\array.

« More »

wms7_get_plain

Used for parse of mail parts.

package

WatchMan-Site7

Arguments

$str

string

mail body.

$boundary

string

boundary.

Response

\string.

« More »

wms7_goto_draft

Go to the draft folder of mailbox.

package

WatchMan-Site7

« More »

wms7_imap_list_decode

Used for decode imap list.

package

WatchMan-Site7

Arguments

$list

string

IMAP list.

Response

\array.

« More »

wms7_ip_api

Used to retrieve ip information from the provider IP_API.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

Response

\array.

« More »

wms7_ip_del_from_file

Used for ip delete from htaccess.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

« More »

wms7_ip_info

Used to retrieve ip information from the provider IP_info.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

Response

\array.

« More »

wms7_ip_ins_to_file

Used for ip insert into htaccess.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

« More »

wms7_languages

Localization of plugin.

package

WatchMan-Site7

« More »

wms7_lat_lon_save

It works when receiving geolocation data in $_POST.

package

WatchMan-Site7

« More »

wms7_load_css_js

Register google-maps, wms7-script.js, wms7-style.css. Used to work with the main screen of the plugin.

package

WatchMan-Site7

« More »

wms7_load_script_css

Register wms7-navigator.js. Used to transmit data about the location of the visitor.

package

WatchMan-Site7

« More »

wms7_load_widget

Register widget - counter site visits.

package

WatchMan-Site7

« More »

wms7_mail

Create modal window for control mailboxes.

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

« More »

wms7_mail_body

Used for get the body of e-mail.

package

WatchMan-Site7

Arguments

$msgno

string

Number of e-mail into mailbox.

Response

\array.

« More »

wms7_mail_connection

Used for mail box connection.

package

WatchMan-Site7

Response

\object.

« More »

wms7_mail_delete

Used for move mail to trash or delete.

package

WatchMan-Site7

« More »

wms7_mail_folder_name

Return Name of mail folder.

package

WatchMan-Site7

Arguments

$folder_num

string

Number of folder mail box.

« More »

wms7_mail_header

Used for used to get the header of e-mail.

package

WatchMan-Site7

Arguments

$msgno

string

Number of e-mail into mailbox.

Response

\array.

« More »

wms7_mail_inbox

Used for get imap fetch overview.

package

WatchMan-Site7

Response

\array.

« More »

wms7_mail_inbox_connection

Used for mail inbox connection.

package

WatchMan-Site7

Response

\object.

« More »

wms7_mail_move

Used for mail move to folder.

package

WatchMan-Site7

« More »

wms7_mail_new

Create modal window for create mail new or draft.

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

$draft

string

Letter - answer or draft.

« More »

wms7_mail_parts

Used for get mail parts.

package

WatchMan-Site7

Arguments

$object

string

object of mail.

$parts

string

parts of mail.

Response

\array.

« More »

wms7_mail_save_to_draft

Used for mail save to folder Draft.

package

WatchMan-Site7

« More »

wms7_mail_send

Used for mail send.

package

WatchMan-Site7

« More »

wms7_mail_unseen

Used for mail inbox unseen.

package

WatchMan-Site7

Response

\number.

« More »

wms7_mail_view

Create modal window for mail view.

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

« More »

wms7_mailbox_selector

Used for get the mailbox selector.

package

WatchMan-Site7

Response

\array.

« More »

wms7_msg_smtp

Checking the connection to the servers SMTP.

Uses the PHPMailer library, which is not written in the standard snake_case.

package

WatchMan-Site7

Arguments

$msg

string

Sends a message to the admin about on the website.

Response

string

Ok or error.

« More »

wms7_output_csv

Used for export data to external file.

package

WatchMan-Site7

« More »

wms7_parse_user_agent

Parsing User Agent to extract data: name browser, name platform, name operating system.

package

WatchMan-Site7

Arguments

$user_agent

string

User Agent of visitor.

Response

\array.

« More »

wms7_query

Main function to build console.

package

WatchMan-Site7

« More »

wms7_register_session

Register session for use plugin console PHP.

package

WatchMan-Site7

« More »

wms7_reload

Reload environment of console.

package

WatchMan-Site7

« More »

wms7_save_geolocation

Save data of geolocation of visitor.

package

WatchMan-Site7

Arguments

$data

string

Data of geolocation or error.

« More »

wms7_save_htaccess

Used for save htaccess.

package

WatchMan-Site7

Arguments

$file_content

string

File content.

« More »

wms7_save_index_php

Used for save index.php.

package

WatchMan-Site7

Arguments

$file_content

string

File content.

« More »

wms7_save_robots_txt

Used for save robots.txt.

package

WatchMan-Site7

Arguments

$file_content

string

File content.

« More »

wms7_save_wp_config

Used for save wp_config.php.

package

WatchMan-Site7

Arguments

$file_content

string

File content.

« More »

wms7_send_backend

Used for Serves to send information to the client browser (backend of site).

package

WatchMan-Site7

Arguments

$data

string

Number of visits records and mails inbox unseen.

« More »

wms7_send_frontend

Used for Serves to send information to the client browser (frontend of site).

package

WatchMan-Site7

Arguments

$data

string

Number of visits records.

« More »

wms7_sql_countries

Used to populate the data in table prefix_watchman_site_countries.

package

WatchMan-Site7

Response

\string.

« More »

wms7_sse_backend

Used for Serves to send information to the client browser (backend of site).

package

WatchMan-Site7

« More »

wms7_sse_frontend

Used for Serves to send information to the client browser (frontend of site).

package

WatchMan-Site7

« More »

wms7_stat

Create modal window for control statistic of visits.

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

« More »

wms7_sx_geo

Used to retrieve ip information from the provider SxGeo.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

Response

\array.

« More »

wms7_who_is

Used for select of name who is provider.

package

WatchMan-Site7

Arguments

$user_ip

string

User ip.

$provider_who_is

string

Name of who is provider.

Response

\array.

« More »

wms7_widget_counter

Used for create the number of visits to different categories of visitors and different time.

package

WatchMan-Site7

Response

\number.

« More »

wms7_win_popup

Enable popup window for role administrator only.

package

WatchMan-Site7

« More »

wms7_wp_cron

Create modal window for control of cron events.

package

WatchMan-Site7

Arguments

$str_head

string

Head of modal window.

« More »

Constants

WMS7_PLUGIN_NAME

« More »

WMS7_PLUGIN_DIR

« More »

WMS7_PLUGIN_URL

« More »

FS_CHMOD_FILE

« More »

Classes, interfaces and traits

Wms7_Browser

Description: Parses user-agent to get the names: browser, platform, operating system.

« More »

Wms7_Core

Description: Used to records data about visiting the site.

« More »

Wms7_Cron

Description: Used to control the cron events of the site.

« More »

Wms7_List_Table

Description: Creates a site visit custom table.

« More »

Wms7_Shortcode

Description: Use to create shortcode black_list.

« More »

Wms7_Widget

Description: Used to create a widget - counter site visits.

« More »