From b0374d52aa5b0fe743034fee554566130cfc5dbd Mon Sep 17 00:00:00 2001 From: WebShells <26513147+WebShells@users.noreply.github.com> Date: Sun, 17 Feb 2019 00:06:43 +0200 Subject: [PATCH 01/11] System Info Helpful info about ospos installation, user settings, system settings, and files permissions... --- application/language/en-US/config_lang.php | 2 + application/views/configs/manage.php | 6 ++ application/views/configs/server_stats.php | 100 +++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 application/views/configs/server_stats.php diff --git a/application/language/en-US/config_lang.php b/application/language/en-US/config_lang.php index 16ae15941..ac108e2c2 100644 --- a/application/language/en-US/config_lang.php +++ b/application/language/en-US/config_lang.php @@ -274,3 +274,5 @@ $lang["config_use_destination_based_tax"] = "Use Destination Based Tax"; $lang["config_website"] = "Website"; $lang["config_work_order_enable"] = "Work Order Support"; $lang["config_work_order_format"] = "Work Order Format"; +$lang["config_system_info"] = "System Info"; +$lang["config_server_notice"] = "Please use the below info for issue reporting."; \ No newline at end of file diff --git a/application/views/configs/manage.php b/application/views/configs/manage.php index f767c5dbe..5ffee5b10 100644 --- a/application/views/configs/manage.php +++ b/application/views/configs/manage.php @@ -47,6 +47,9 @@
| OSPOS Info | +config->item('application_version'); ?> - config->item('commit_sha1'), 0, 6); ?> + + |
+
|---|---|
| Extensions & Modules | +
+ ';
+ echo "BC Math: ", extension_loaded('bcmath') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "INTL: ", extension_loaded('intl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "OpenSSL: ", extension_loaded('openssl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "MBString: ", extension_loaded('mbstring') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "Curl: ", extension_loaded('curl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + // echo print_r(apache_get_modules()); + //echo "Rewrite Module: ", $isEnabled = in_array('mod_rewrite', apache_get_modules()); + //echo ($isEnabled) ? 'OK ✓' : 'MISSING ✗', ' '; + ?> + |
+
| User Settings | +Browser:
+ + + Server Software: + + PHP Version: + + Apache Version: + Server Port: + + DB Version: + + OS: + |
+
| File's Permissions | +Application/logs:
+ + Public/uploads: + + public/uploads/item_pics: + + import_items.csv: + '; + echo ".htaccess permissions were reset to 644"; + ?> + |
+
| OSPOS Info | -config->item('application_version'); ?> - config->item('commit_sha1'), 0, 6); ?> - - |
-
|---|---|
| Extensions & Modules | -
- ';
- echo "BC Math: ", extension_loaded('bcmath') ? 'Enabled ✓' : 'MISSING ✗', ' '; - echo "INTL: ", extension_loaded('intl') ? 'Enabled ✓' : 'MISSING ✗', ' '; - echo "OpenSSL: ", extension_loaded('openssl') ? 'Enabled ✓' : 'MISSING ✗', ' '; - echo "MBString: ", extension_loaded('mbstring') ? 'Enabled ✓' : 'MISSING ✗', ' '; - echo "Curl: ", extension_loaded('curl') ? 'Enabled ✓' : 'MISSING ✗', ' '; - // echo print_r(apache_get_modules()); - //echo "Rewrite Module: ", $isEnabled = in_array('mod_rewrite', apache_get_modules()); - //echo ($isEnabled) ? 'OK ✓' : 'MISSING ✗', ' '; - ?> - |
-
| User Settings | -Browser:
- - - Server Software: - - PHP Version: - - Apache Version: - Server Port: - - DB Version: - - OS: - |
-
| File's Permissions | -Application/logs:
- - Public/uploads: - - public/uploads/item_pics: - - import_items.csv: - '; - echo ".htaccess permissions were reset to 644"; - ?> - |
-
| OSPOS Info | +config->item('application_version'); ?> - config->item('commit_sha1'), 0, 6); ?> + + |
+
|---|---|
| Extensions & Modules | +
+ ';
+ echo "BC Math: ", extension_loaded('bcmath') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "INTL: ", extension_loaded('intl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "OpenSSL: ", extension_loaded('openssl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "MBString: ", extension_loaded('mbstring') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "Curl: ", extension_loaded('curl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + // echo print_r(apache_get_modules()); + //echo "Rewrite Module: ", $isEnabled = in_array('mod_rewrite', apache_get_modules()); + //echo ($isEnabled) ? 'OK ✓' : 'MISSING ✗', ' '; + ?> + |
+
| User Settings | +Browser:
+ + + Server Software: + + PHP Version: + + Apache Version: + Server Port: + + DB Version: + + OS: + |
+
| File's Permissions | +Application/logs:
+ + Public/uploads: + + public/uploads/item_pics: + + import_items.csv: + '; + echo ".htaccess permissions were reset to 644"; + ?> + |
+
| Extensions & Modules | +
+ ';
+ echo "BC Math: ", extension_loaded('bcmath') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "INTL: ", extension_loaded('intl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "OpenSSL: ", extension_loaded('openssl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "MBString: ", extension_loaded('mbstring') ? 'Enabled ✓' : 'MISSING ✗', ' '; + echo "Curl: ", extension_loaded('curl') ? 'Enabled ✓' : 'MISSING ✗', ' '; + ?> + |
+
|---|---|
| User Settings | +Browser:
+ + + Server Software: + + PHP Version: + + Server Port: + + DB Version: + + OS: + |
+
| File's Permissions | +Application/logs:
+ + Public/uploads: + + public/uploads/item_pics: + + import_items.csv: + + import_customers.csv: + '; + } else { + echo 'NOT Writable/Read Only ✓ '; + } + chmod("../.htaccess",0644); + chmod("../application/.htaccess",0644); + chmod("../public/.htaccess",0644); + chmod("../import_items.csv",0444); + chmod("../import_customers.csv",0444); + echo " "; + echo ".htaccess permissions were reset to 0644 "; + echo "CSV permissions were reset to 0444"; + ?> + Report An issue + |
+
| OSPOS Info | +lang->line('config_ospos_info'); ?> | config->item('application_version'); ?> - config->item('commit_sha1'), 0, 6); ?> |
@@ -96,16 +95,12 @@
} else {
echo 'NOT Writable/Read Only ✓
|---|