Thursday, December 12, 2013

Technical information using includes scripts

Technical information using includes scripts:

The scripts in includes can not be executed directly, they need to be included into other scripts for use. They all need to use the 'config.php' ie;

'$doc_root=$_SERVER['DOCUMENT_ROOT'];
include_once ($doc_root.'/core/system/config/config.php');'

This script is mandatory for necessary values to work. These are the includes scripts that are available:

db_dump.php

db_wpc_core.php

get_core_values.php

get_open_functions_data.php

get_open_menu_data.php

get_plugins_data.php

get_secure_functions_data.php

get_template_data.php

list_db_items.php

secure.php

db_dump.php: This script retrieves all data within the database. This data is placed in an multi-dementional array $db_dump.

$db_dump[x][0] --> item [x][1] --> data --> $db_dump[x][0/1] $items[7/8]

db_wpc_core.php: This script retrieves all core values. The retrieved core values data it will be contained as a string in '$core_value_set'. This variable is an array with each set of core values contained in each element of the array. Data separator is '|' descriptions are separated by a comma, data is in an encoded hex string in each element.

$core_value_set[0] contains core version information

$core_value_set[1] contains options values

$core_value_set[2] contains configuration values

$core_value_set[3] contains database credentials

$core_value_set[4] contains installed secure functions list

$core_value_set[5] contains installed open functions list

$core_value_set[6] contains the administrative user and password

get_open_functions_data.php: This script retrieves all installed functions in the non-secure or 'open' section and places the data in an array: $open_functions_paths[x] --> $open_functions_names[x] --> $items[3]



get_open_menu_data.php: This script retrieves all installed menus in the non-secure or 'open' section and places the data in an array: $open_menus[x] $open_menu_paths[x] --> $open_menu_names[x] --> $items[1]

get_plugins_data.php: This script retrieves all installed plug-in's and places the data in an array: $plugin_menus[x] $plugin_paths[x] --> $plugin_names[x] --> $items[4]

get_open_functions_data.php: This script retrieves all installed functions in the secure section and places the data in an array: $secure_functions_paths[x] --> $secure_functions_names[x] --> $items[2]

get_open_menu_data.php: This script retrieves all installed menus in the secure section and places the data in an array: $secure_menus[x] $secure_menu_paths[x] --> $secure_menu_names[x] --> $items[0]

get_template_data.php: This script retrieves all installed templates and places the data in an array: $menu_path_temp[x] $template_dirs[x] $template_paths[x] --> $template_names[x] --> $items[9]

list_db_items.php: This script retrieves all data within the database. It then is separated into its item type group. This data is placed in an array: ($db_items_all[x] $db_items[x] --> $items[5] $items_title_list[x]) ($pg_name[x] $page_list[x] --> $items[6] $page_title_list[x])

secure.php: This script secures pages that require login to execute. $status="secure" user is logged in, $status="not_secured" user is not logged in.


All includes scripts are located in: '/core/system/includes/'

No comments:

Post a Comment