From 1f6a8ec61742b0484e664e54958b050082505210 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 28 Dec 2016 11:51:40 +0530 Subject: [PATCH] Bug-fix-patch-13 # Installer JavaScript disabled check # Added 'mbstring' in extension check # Added max execution time check warning --- .../installer/helpdesk/check-js.blade.php | 9 +-- .../installer/helpdesk/view2.blade.php | 47 +++++--------- .../installer/layout/installer2.blade.php | 63 +++++++++++++++++++ 3 files changed, 82 insertions(+), 37 deletions(-) create mode 100644 resources/views/themes/default1/installer/layout/installer2.blade.php diff --git a/resources/views/themes/default1/installer/helpdesk/check-js.blade.php b/resources/views/themes/default1/installer/helpdesk/check-js.blade.php index aa44a40fb..b16f7b07e 100644 --- a/resources/views/themes/default1/installer/helpdesk/check-js.blade.php +++ b/resources/views/themes/default1/installer/helpdesk/check-js.blade.php @@ -9,11 +9,12 @@ active
JavaScript Disabled!
-

Hello, Sparky! You are just few steps away from your support system. It looks like that JavaScript is disabled in your browser or not supported by your browser. FAVEO doesn't work properly without JavaScript, and it may cause errors in installation. Please check and enable JavaScript in your browser in order to install and run FAVEO to its full extent.

-
-

- +

Hello, Sparky! You are just a few steps away from your support system. It looks like that JavaScript is disabled in your browser or not supported by your browser. FAVEO doesn't work properly without JavaScript, and it may cause errors in installation. Please check and enable JavaScript in your browser in order to install and run FAVEO to its full extent.

+

+ Have you enabled JavaScript?  + Click here to reload the page now.

+ diff --git a/resources/views/themes/default1/installer/helpdesk/view2.blade.php b/resources/views/themes/default1/installer/helpdesk/view2.blade.php index 37c0da96f..4d4ec1f51 100644 --- a/resources/views/themes/default1/installer/helpdesk/view2.blade.php +++ b/resources/views/themes/default1/installer/helpdesk/view2.blade.php @@ -12,37 +12,7 @@ active @section('content') - - - - $value) { -// // # code... -// // } -// if (strpos($to_check, $statement) !== false) { -// return true; -// } else { -// return false; -// } -?> - -
+

Environment Test

@if (Session::has('fail_to_change'))
@@ -208,7 +178,7 @@ function validate_zend_compatibility_mode(&$results) { function validate_extensions(&$results) { $ok = true; - $required_extensions = array('mcrypt', 'openssl', 'pdo', 'fileinfo', 'curl', 'zip'); + $required_extensions = array('mcrypt', 'openssl', 'pdo', 'fileinfo', 'curl', 'zip', 'mbstring'); foreach ($required_extensions as $required_extension) { if (extension_loaded($required_extension)) { @@ -277,6 +247,16 @@ function checkDisabledFunctions(&$results) { return $ok; } +function checkMaxExecutiontime(&$results) +{ + $ok = true; + if ((int)ini_get('max_execution_time') >= 120) { + $results[] = new TestResult("Maximum execution time is as per requirement.", STATUS_OK); + } else { + $results[] = new TestResult("Maximum execution time is too low. Recommneded execution time is 120 seconds ", STATUS_WARNING); + } + return $ok; +} // --------------------------------------------------- // Do the magic // --------------------------------------------------- @@ -288,6 +268,7 @@ $memory_ok = validate_memory_limit($results); $extensions_ok = validate_extensions($results); $file_permission = checkFilePermission($results); $required_functions = checkDisabledFunctions($results); +$check_execution_time = checkMaxExecutiontime($results); ?>

diff --git a/resources/views/themes/default1/installer/layout/installer2.blade.php b/resources/views/themes/default1/installer/layout/installer2.blade.php new file mode 100644 index 000000000..e48ef80ab --- /dev/null +++ b/resources/views/themes/default1/installer/layout/installer2.blade.php @@ -0,0 +1,63 @@ + + + + + + Faveo HELPDESK + + + + + + + + + + + + + + +

+ faveo

+ +
+ @yield('content') +
+ + +

Copyright © 2015 - ยท Ladybird Web Solution Pvt Ltd. All Rights Reserved. Powered by Faveo

+ + + + + + + + + + + + \ No newline at end of file