PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wp-google-maps
/
includes
<?php namespace WPGMZA; if(!defined('ABSPATH')) return; class SystemInfo { const TYPE_INI = 0; const TYPE_CONST = 1; const TYPE_PROP = 2; public function __construct(){ $this->info = (object) array(); $this->analyze(); } public function analyze(){ $propMap = $this->getInfoMap(); foreach($propMap as $prop => $type){ $tag = strtolower($prop); $this->info->{$tag} = $this->read($prop, $type); } } public function compile(){ $items = array(); foreach($this->info as $prop => $value){ /* This could be more elegant for sure */ $title = str_replace(array("php", "mysql", "PHP_os", "vars", "_"), array("PHP", "MySQL", "PHP_OS", "Variables", " "), $prop); $title = ucwords($title); $items[] = "{$title}: $value"; } /* Developer Hook (Filter) - Modify system info items */ $items = apply_filters("wpgmza_system_info_compile_items", $items); return !empty($items) ? implode("\n", $items) : "No information found..."; } public function read($prop, $type){ global $wpgmza; $value = false; try{ if($type === self::TYPE_INI){ $value = ini_get($prop); } else if ($type === self::TYPE_CONST){ if(defined($prop)){ $value = constant($prop); } } else if ($type === self::TYPE_PROP){ switch($prop){ case "MYSQL_VERSION": global $wpdb; $value = empty($wpdb->use_mysqli) ? mysql_get_server_info() : mysqli_get_server_info($wpdb->dbh); break; case "internal_engine": $value = ucwords(str_replace("-", " ", $wpgmza->internalEngine->getEngine())); break; case "build_code": $value = $wpgmza->internalEngine->getBuildVersion(); break; case "map_engine": $value = ucwords(str_replace("-", " ", $wpgmza->settings->wpgmza_maps_engine)); break; } } return $value; } catch (\Exception $ex){ /* Silence */ } catch (\Error $err){ /* Silence */ } return false; } public function getInfoMap(){ return array( 'PHP_VERSION' => self::TYPE_CONST, 'PHP_OS_FAMILY' => self::TYPE_CONST, 'MYSQL_VERSION' => self::TYPE_PROP, 'memory_limit' => self::TYPE_INI, 'post_max_size' => self::TYPE_INI, 'upload_max_filesize' => self::TYPE_INI, 'max_execution_time' => self::TYPE_INI, 'max_input_time' => self::TYPE_INI, 'max_input_vars' => self::TYPE_INI, 'build_code' => self::TYPE_PROP, 'internal_engine' => self::TYPE_PROP, 'map_engine' => self::TYPE_PROP, ); } }
[-] class.admin-ui.php
[edit]
[+]
3rd-party-integration
[-] class.latlng.php
[edit]
[-] class.map.php
[edit]
[-] class.admin-notices.php
[edit]
[-] class.dom-query-results.php
[edit]
[-] class.pointlabel.php
[edit]
[-] class.upgrader.php
[edit]
[-] class.map-list-page.php
[edit]
[-] class.integrity-checker.php
[edit]
[-] class.dom-document.php
[edit]
[-] class.crud.php
[edit]
[+]
styling
[-] class.dynamic-translations.php
[edit]
[-] class.strings.php
[edit]
[-] class.library-script-panel.php
[edit]
[+]
open-layers
[-] class.maps-engine-dialog.php
[edit]
[+]
compat
[-] class.plugin.php
[edit]
[-] class.theme-panel.php
[edit]
[-] class.global-settings.php
[edit]
[+]
google-maps
[-] class.query.php
[edit]
[-] class.modal-dialog.php
[edit]
[-] class.script-loader.php
[edit]
[-] class.internal-engine.php
[edit]
[-] class.selector-to-xpath.php
[edit]
[-] class.polygon.php
[edit]
[-] class.rectangle.php
[edit]
[-] class.system-info.php
[edit]
[-] class.shortcodes.php
[edit]
[-] class.gdpr-compliance.php
[edit]
[+]
php8
[-] build.log
[edit]
[+]
tables
[-] class.polyline.php
[edit]
[-] class.settings.php
[edit]
[-] class.store-locator.php
[edit]
[-] class.country-select.php
[edit]
[-] class.settings-page.php
[edit]
[-] class.dom-element.php
[edit]
[+]
..
[-] class.elias-fano.php
[edit]
[-] class.distance.php
[edit]
[-] class.auto-loader.php
[edit]
[-] class.circle.php
[edit]
[-] class.page.php
[edit]
[-] class.component-anchor-control.php
[edit]
[+]
map-edit-page
[-] class.feature.php
[edit]
[-] class.marker.php
[edit]
[-] class.database.php
[edit]
[-] class.marker-filter.php
[edit]
[-] class.google-maps-api-loader.php
[edit]
[-] class.factory.php
[edit]
[+]
legacy
[-] class.installer-page.php
[edit]
[-] class.query-fragment.php
[edit]