update for version 1.0.1
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
@section('content')
|
||||
|
||||
<h1>Licence Agreement</h1>
|
||||
|
||||
<div class="login-box-body">
|
||||
<!-- form -->
|
||||
<form action="{{URL::route('postlicence')}}" method="post">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<!-- box -->
|
||||
<!-- form-group -->
|
||||
<div class="form-group" >
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{!! Session::get('fails') !!}</p>
|
||||
</div>
|
||||
@endif
|
||||
PLEASE READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY BEFORE DOWNLOADING OR USING THE SOFTWARE. BY CLICKING ON THE "ACCEPT" BUTTON, OPENING THE PACKAGE, OR DOWNLOADING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, STOP THE INSTALLATION PROCESS AND EXIT.</p>
|
||||
<!-- form-group -->
|
||||
<div class="form-group">
|
||||
<label><input type="checkbox" class="flat-red" id="accept" name="accept1"/> I accept the </label><a href="#" style="color:blue;" data-toggle="modal" data-target="#Edit"> Licence Agreement</a> <br>
|
||||
</div>
|
||||
<button value="prev" disabled="" id="access1">Prev</button>
|
||||
<input type="submit" disabled="" value="Next" id="access"/>
|
||||
</div>
|
||||
<br>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="Edit">
|
||||
<div class="modal-dialog" style="width:60%;height:70%;">
|
||||
<div class="modal-content">
|
||||
<div class="box-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidd en="true">×</span></button><h3 class="box-title">Licence and Agreements</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<pre>
|
||||
<h4>Open Software License ("OSL") v. 3.0</h4>
|
||||
This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
|
||||
|
||||
Licensed under the Open Software License version 3.0
|
||||
|
||||
1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
|
||||
|
||||
1. to reproduce the Original Work in copies, either alone or as part of a collective work;
|
||||
|
||||
2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
|
||||
|
||||
3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
|
||||
|
||||
4. to perform the Original Work publicly; and
|
||||
|
||||
5. to display the Original Work publicly.
|
||||
|
||||
2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
|
||||
|
||||
3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
|
||||
|
||||
4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
|
||||
|
||||
5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
|
||||
|
||||
6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
|
||||
|
||||
7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
|
||||
|
||||
8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
|
||||
|
||||
9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
|
||||
|
||||
10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
|
||||
|
||||
11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
|
||||
|
||||
12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
|
||||
|
||||
13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
|
||||
|
||||
14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
|
||||
|
||||
16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
|
||||
</pre>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis">Close</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</p>
|
||||
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script src="{{asset("lb-faveo/downloads/bootstrap.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var checker = document.getElementById('accept');
|
||||
var sendbtn = document.getElementById('access');
|
||||
// when unchecked or checked, run the function
|
||||
checker.onchange = function(){
|
||||
if(this.checked){
|
||||
sendbtn.disabled = false;
|
||||
} else {
|
||||
sendbtn.disabled = true;
|
||||
}
|
||||
}
|
||||
$(function() {
|
||||
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-red',
|
||||
radioClass: 'iradio_flat-red'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,224 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
@section('content')
|
||||
<h1>Prerequisites</h1>
|
||||
<div class="login-box-body" >
|
||||
<!-- form-box -->
|
||||
<?php
|
||||
define('PROBE_VERSION', '4.2');
|
||||
define('PROBE_FOR', '<b>Faveo</b>HELPDESK 1.0 and Newer');
|
||||
define('STATUS_OK', 'ok');
|
||||
define('STATUS_WARNING', 'warning');
|
||||
define('STATUS_ERROR', 'error');
|
||||
class TestResult {
|
||||
var $message;
|
||||
var $status;
|
||||
|
||||
function TestResult($message, $status = STATUS_OK) {
|
||||
$this->message = $message;
|
||||
$this->status = $status;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<p>Test/Probe Prerequisites required to be installed</p>
|
||||
|
||||
<div id="wrapper">
|
||||
<h1>Probe</h1>
|
||||
|
||||
<b>Probe Version:</b>
|
||||
<?php echo PROBE_VERSION?>
|
||||
<br>
|
||||
<b>Testing For:</b>
|
||||
<?php echo PROBE_FOR?>
|
||||
<h2>1. Environment test</h2>
|
||||
<ul>
|
||||
<?php
|
||||
|
||||
function validate_php(&$results) {
|
||||
if (version_compare(PHP_VERSION, '5.5') == -1) {
|
||||
$results[] = new TestResult('Minimum PHP version required in order to run Faveo HELPDESK is PHP 5.5. Your PHP version: ' . PHP_VERSION, STATUS_ERROR);
|
||||
return false;
|
||||
} else {
|
||||
$results[] = new TestResult('Your PHP version is ' . PHP_VERSION, STATUS_OK);
|
||||
return true;
|
||||
} // if
|
||||
} // validate_php
|
||||
|
||||
/**
|
||||
* Convert filesize value from php.ini to bytes
|
||||
*
|
||||
* Convert PHP config value (2M, 8M, 200K...) to bytes. This function was taken from PHP documentation. $val is string
|
||||
* value that need to be converted
|
||||
*
|
||||
* @param string $val
|
||||
* @return integer
|
||||
*/
|
||||
function php_config_value_to_bytes($val) {
|
||||
$val = trim($val);
|
||||
$last = strtolower($val{strlen($val) - 1});
|
||||
switch ($last) {
|
||||
// The 'G' modifier is available since PHP 5.1.0
|
||||
case 'g':
|
||||
$val *= 1024;
|
||||
case 'm':
|
||||
$val *= 1024;
|
||||
case 'k':
|
||||
$val *= 1024;
|
||||
} // if
|
||||
|
||||
return (integer) $val;
|
||||
} // php_config_value_to_bytes
|
||||
|
||||
/**
|
||||
* Validate memory limit
|
||||
*
|
||||
* @param array $result
|
||||
*/
|
||||
function validate_memory_limit(&$results) {
|
||||
$memory_limit = php_config_value_to_bytes(ini_get('memory_limit'));
|
||||
|
||||
$formatted_memory_limit = $memory_limit === -1 ? 'unlimited' : format_file_size($memory_limit);
|
||||
|
||||
if ($memory_limit === -1 || $memory_limit >= 67108864) {
|
||||
$results[] = new TestResult('Your memory limit is: ' . $formatted_memory_limit, STATUS_OK);
|
||||
return true;
|
||||
} else {
|
||||
$results[] = new TestResult('Your memory is too low to complete the installation. Minimal value is 64MB, and you have it set to ' . $formatted_memory_limit, STATUS_ERROR);
|
||||
return false;
|
||||
} // if
|
||||
} // validate_memory_limit
|
||||
|
||||
/**
|
||||
* Format filesize
|
||||
*
|
||||
* @param string $value
|
||||
* @return string
|
||||
*/
|
||||
function format_file_size($value) {
|
||||
$data = array(
|
||||
'TB' => 1099511627776,
|
||||
'GB' => 1073741824,
|
||||
'MB' => 1048576,
|
||||
'kb' => 1024,
|
||||
);
|
||||
|
||||
// commented because of integer overflow on 32bit sistems
|
||||
// http://php.net/manual/en/language.types.integer.php#language.types.integer.overflow
|
||||
// $value = (integer) $value;
|
||||
foreach ($data as $unit => $bytes) {
|
||||
$in_unit = $value / $bytes;
|
||||
if ($in_unit > 0.9) {
|
||||
return trim(trim(number_format($in_unit, 2), '0'), '.') . $unit;
|
||||
} // if
|
||||
} // foreach
|
||||
|
||||
return $value . 'b';
|
||||
} // format_file_size
|
||||
|
||||
function validate_zend_compatibility_mode(&$results) {
|
||||
$ok = true;
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.0') >= 0) {
|
||||
if (ini_get('zend.ze1_compatibility_mode')) {
|
||||
$results[] = new TestResult('zend.ze1_compatibility_mode is set to On. This can cause some strange problems. It is strongly suggested to turn this value to Off (in your php.ini file)', STATUS_WARNING);
|
||||
$ok = false;
|
||||
} else {
|
||||
$results[] = new TestResult('zend.ze1_compatibility_mode is turned Off', STATUS_OK);
|
||||
} // if
|
||||
} // if
|
||||
|
||||
return $ok;
|
||||
} // validate_zend_compatibility_mode
|
||||
|
||||
function validate_extensions(&$results) {
|
||||
$ok = true;
|
||||
|
||||
$required_extensions = array('mysqli', 'mcrypt', 'openssl', 'pdo', 'pdo_sqlite', 'pdo_mysql', 'sqlite3');
|
||||
|
||||
foreach ($required_extensions as $required_extension) {
|
||||
if (extension_loaded($required_extension)) {
|
||||
$results[] = new TestResult("Required extension '$required_extension' found", STATUS_OK);
|
||||
} else {
|
||||
$results[] = new TestResult("Extension '$required_extension' is required in order to run Faveo Helpdesk ", STATUS_ERROR);
|
||||
$ok = false;
|
||||
} // if
|
||||
} // foreach
|
||||
|
||||
// Check for eAccelerator
|
||||
if (extension_loaded('eAccelerator') && ini_get('eaccelerator.enable')) {
|
||||
$results[] = new TestResult("eAccelerator opcode cache enabled. <span class=\"details\">eAccelerator opcode cache causes Faveo Helpdesk to crash. <a href=\"https://eaccelerator.net/wiki/Settings\">Disable it</a> for folder where Faveo Helpdesk is installed, or use APC instead: <a href=\"http://www.php.net/apc\">http://www.php.net/apc</a>.</span>", STATUS_ERROR);
|
||||
$ok = false;
|
||||
} // if
|
||||
|
||||
// Check for XCache
|
||||
if (extension_loaded('XCache') && ini_get('xcache.cacher')) {
|
||||
$results[] = new TestResult("XCache opcode cache enabled. <span class=\"details\">XCache opcode cache causes Faveo Helpdesk to crash. <a href=\"http://xcache.lighttpd.net/wiki/XcacheIni\">Disable it</a> for folder where Faveo Helpdesk is installed, or use APC instead: <a href=\"http://www.php.net/apc\">http://www.php.net/apc</a>.</span>", STATUS_ERROR);
|
||||
$ok = false;
|
||||
} // if
|
||||
|
||||
$recommended_extensions = array(
|
||||
|
||||
// 'gd' => 'GD is used for image manipulation. Without it, system is not able to create thumbnails for files or manage avatars, logos and project icons. Please refer to <a href="http://www.php.net/manual/en/image.installation.php">this</a> page for installation instructions',
|
||||
// 'mbstring' => 'MultiByte String is used for work with Unicode. Without it, system may not split words and string properly and you can have weird question mark characters in Recent Activities for example. Please refer to <a href="http://www.php.net/manual/en/mbstring.installation.php">this</a> page for installation instructions',
|
||||
'curl' => 'cURL is used to support various network tasks. Please refer to <a href="http://www.php.net/manual/en/curl.installation.php">this</a> page for installation instructions',
|
||||
// 'iconv' => 'Iconv is used for character set conversion. Without it, system is a bit slower when converting different character set. Please refer to <a href="http://www.php.net/manual/en/iconv.installation.php">this</a> page for installation instructions',
|
||||
// 'imap' => 'IMAP is used to connect to POP3 and IMAP servers. Without it, Incoming Mail module will not work. Please refer to <a href="http://www.php.net/manual/en/imap.installation.php">this</a> page for installation instructions',
|
||||
// 'zlib' => 'ZLIB is used to read and write gzip (.gz) compressed files',
|
||||
// SVN extension ommited, to avoid confusion
|
||||
);
|
||||
|
||||
foreach ($recommended_extensions as $recommended_extension => $recommended_extension_desc) {
|
||||
if (extension_loaded($recommended_extension)) {
|
||||
$results[] = new TestResult("Recommended extension '$recommended_extension' found", STATUS_OK);
|
||||
} else {
|
||||
$results[] = new TestResult("Extension '$recommended_extension' was not found. <span class=\"details\">$recommended_extension_desc</span>", STATUS_WARNING);
|
||||
} // if
|
||||
} // foreach
|
||||
|
||||
return $ok;
|
||||
} // validate_extensions
|
||||
|
||||
// ---------------------------------------------------
|
||||
// Do the magic
|
||||
// ---------------------------------------------------
|
||||
|
||||
$results = array();
|
||||
|
||||
$php_ok = validate_php($results);
|
||||
$memory_ok = validate_memory_limit($results);
|
||||
$extensions_ok = validate_extensions($results);
|
||||
$compatibility_mode_ok = validate_zend_compatibility_mode($results);
|
||||
|
||||
foreach ($results as $result) {
|
||||
print '<li class="' . $result->status . '"><span>' . $result->status . '</span> — ' . $result->message . '</li>';
|
||||
} // foreach
|
||||
if ($php_ok && $memory_ok && $extensions_ok && $compatibility_mode_ok) {
|
||||
?>
|
||||
</div> <form action="{{URL::route('postprerequisites')}}" method="post"><input type="hidden" name="_token" value="{{ csrf_token() }}"><br>
|
||||
<a href="{{URL::route('licence')}}" style="text-color:black" id="access1"> Prev</a> <input type="submit" id="access" value="Next">
|
||||
</form>
|
||||
<br>
|
||||
<?php
|
||||
} else {
|
||||
?></div><br>
|
||||
<a href="{{URL::route('licence')}}" style="text-color:black"><button value="prev" id="access1">Prev</button></a> <input type="submit" value="Next" id="access" disabled=""> <?php
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
a:link {color:#000;} /* unvisited link */
|
||||
a:visited {color:#000;} /* visited link */
|
||||
a:hover {color:#000;} /* mouse over link */
|
||||
a:active {color:#000;}
|
||||
</style>
|
||||
<p><br>
|
||||
<div id="legend">
|
||||
<ul>
|
||||
<li class="ok"><span>ok</span> — All OK</li>
|
||||
<li class="warning"><span>warning</span> — Not a deal breaker, but it's recommended to have this installed for some features to work</li>
|
||||
<li class="error"><span>error</span> — Faveo HELPDESK require this feature and can't work without it</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
@stop
|
||||
@@ -0,0 +1,166 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('content')
|
||||
<style type="text/css">
|
||||
select {
|
||||
width:150px;
|
||||
border:1px solid red;
|
||||
-webkit-border-top-right-radius: 15px;
|
||||
-webkit-border-bottom-right-radius: 15px;
|
||||
-moz-border-radius-topright: 15px;
|
||||
-moz-border-radius-bottomright: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
border-bottom-right-radius: 15px;
|
||||
padding:2px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<h1>Localisation</h1>
|
||||
<div class="login-box-body" >
|
||||
|
||||
<form action="{{URL::route('postlocalization')}}" method="post">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<select class="form-control" name="language" >
|
||||
<option value="English(India)">English(India)</option>
|
||||
<option value="English(U.k)">English(U.K)</option>
|
||||
</select>
|
||||
<br>
|
||||
|
||||
<select class="form-control" name="timezone" >
|
||||
<option value="US/Samoa">US/Samoa</option>
|
||||
<option value="US/Hawaii">US/Hawaii</option>
|
||||
<option value="US/Alaska">US/Alaska</option>
|
||||
<option value="US/Pacific">US/Pacific</option>
|
||||
<option value="America/Tijuana">America/Tijuana</option>
|
||||
<option value="US/Arizona">US/Arizona</option>
|
||||
<option value="US/Mountain">US/Mountain</option>
|
||||
<option value="America/Chihuahua">America/Chihuahua</option>
|
||||
<option value="America/Mazatlan">America/Mazatlan</option>
|
||||
<option value="America/Mexico_City">America/Mexico_City</option>
|
||||
<option value="America/Monterrey">America/Monterrey</option>
|
||||
<option value="Canada/Saskatchewan">Canada/Saskatchewan</option>
|
||||
<option value="US/Central">US/Central</option>
|
||||
<option value="US/Eastern">US/Eastern</option>
|
||||
<option value="US/East-Indiana">US/East-Indiana</option>
|
||||
<option value="America/Bogota">America/Bogota</option>
|
||||
<option value="America/Lima">America/Lima</option>
|
||||
<option value="America/Caracas">America/Caracas</option>
|
||||
<option value="Canada/Atlantic">Canada/Atlantic</option>
|
||||
<option value="America/La_Paz">America/La_Paz</option>
|
||||
<option value="America/Santiago">America/Santiago</option>
|
||||
<option value="Canada/Newfoundland">Canada/Newfoundland</option>
|
||||
<option value="America/Buenos_Aires">America/Buenos_Aires</option>
|
||||
<option value="Greenland">Greenland</option>
|
||||
<option value="Atlantic/Stanley">Atlantic/Stanley</option>
|
||||
<option value="Atlantic/Azores">Atlantic/Azores</option>
|
||||
<option value="Atlantic/Cape_Verde">Atlantic/Cape_Verde</option>
|
||||
<option value="Africa/Casablanca">Africa/Casablanca</option>
|
||||
<option value="Europe/Dublin">Europe/Dublin</option>
|
||||
<option value="Europe/Lisbon">Europe/Lisbon</option>
|
||||
<option value="Europe/London">Europe/London</option>
|
||||
<option value="Africa/Monrovia">Africa/Monrovia</option>
|
||||
<option value="Europe/Amsterdam">Europe/Amsterdam</option>
|
||||
<option value="Europe/Belgrade">Europe/Belgrade</option>
|
||||
<option value="Europe/Berlin">Europe/Berlin</option>
|
||||
<option value="Europe/Bratislava">Europe/Bratislava</option>
|
||||
<option value="Europe/Brussels">Europe/Brussels</option>
|
||||
<option value="Europe/Budapest">Europe/Budapest</option>
|
||||
<option value="Europe/Copenhagen">Europe/Copenhagen</option>
|
||||
<option value="Europe/Ljubljana">Europe/Ljubljana</option>
|
||||
<option value="Europe/Madrid">Europe/Madrid</option>
|
||||
<option value="Europe/Paris">Europe/Paris</option>
|
||||
<option value="Europe/Prague">Europe/Prague</option>
|
||||
<option value="Europe/Rome">Europe/Rome</option>
|
||||
<option value="Europe/Sarajevo">Europe/Sarajevo</option>
|
||||
<option value="Europe/Skopje">Europe/Skopje</option>
|
||||
<option value="Europe/Stockholm">Europe/Stockholm</option>
|
||||
<option value="Europe/Vienna">Europe/Vienna</option>
|
||||
<option value="Europe/Warsaw">Europe/Warsaw</option>
|
||||
<option value="Europe/Zagreb">Europe/Zagreb</option>
|
||||
<option value="Europe/Athens">Europe/Athens</option>
|
||||
<option value="Europe/Bucharest">Europe/Bucharest</option>
|
||||
<option value="Africa/Cairo">Africa/Cairo</option>
|
||||
<option value="Africa/Harare">Africa/Harare</option>
|
||||
<option value="Europe/Helsinki">Europe/Helsinki</option>
|
||||
<option value="Europe/Istanbul">Europe/Istanbul</option>
|
||||
<option value="Asia/Jerusalem">Asia/Jerusalem</option>
|
||||
<option value="Europe/Kiev">Europe/Kiev</option>
|
||||
<option value="Europe/Minsk">Europe/Minsk</option>
|
||||
<option value="Europe/Riga">Europe/Riga</option>
|
||||
<option value="Europe/Sofia">Europe/Sofia</option>
|
||||
<option value="Europe/Tallinn">Europe/Tallinn</option>
|
||||
<option value="Europe/Vilnius">Europe/Vilnius</option>
|
||||
<option value="Asia/Baghdad">Asia/Baghdad</option>
|
||||
<option value="Asia/Kuwait">Asia/Kuwait</option>
|
||||
<option value="Africa/Nairobi">Africa/Nairobi</option>
|
||||
<option value="Asia/Riyadh">Asia/Riyadh</option>
|
||||
<option value="Asia/Tehran">Asia/Tehran</option>
|
||||
<option value="Europe/Moscow">Europe/Moscow</option>
|
||||
<option value="Asia/Baku">Asia/Baku</option>
|
||||
<option value="Europe/Volgograd">Europe/Volgograd</option>
|
||||
<option value="Asia/Muscat">Asia/Muscat</option>
|
||||
<option value="Asia/Tbilisi">Asia/Tbilisi</option>
|
||||
<option value="Asia/Yerevan">Asia/Yerevan</option>
|
||||
<option value="Asia/Kabul">Asia/Kabul</option>
|
||||
<option value="Asia/Karachi">Asia/Karachi</option>
|
||||
<option value="Asia/Tashkent">Asia/Tashkent</option>
|
||||
<option value="Asia/Kolkata">Asia/Kolkata</option>
|
||||
<option value="Asia/Kathmandu">Asia/Kathmandu</option>
|
||||
<option value="Asia/Yekaterinburg">Asia/Yekaterinburg</option>
|
||||
<option value="Asia/Almaty">Asia/Almaty</option>
|
||||
<option value="Asia/Dhaka">Asia/Dhaka</option>
|
||||
<option value="Asia/Novosibirsk">Asia/Novosibirsk</option>
|
||||
<option value="Asia/Bangkok">Asia/Bangkok</option>
|
||||
<option value="Asia/Ho_Chi_Minh">Asia/Ho_Chi_Minh</option>
|
||||
<option value="Asia/Jakarta">Asia/Jakarta</option>
|
||||
<option value="Asia/Krasnoyarsk">Asia/Krasnoyarsk</option>
|
||||
<option value="Asia/Chongqing">Asia/Chongqing</option>
|
||||
<option value="Asia/Hong_Kong">Asia/Hong_Kong</option>
|
||||
<option value="Asia/Kuala_Lumpur">Asia/Kuala_Lumpur</option>
|
||||
<option value="Australia/Perth">Australia/Perth</option>
|
||||
<option value="Asia/Singapore">Asia/Singapore</option>
|
||||
<option value="Asia/Taipei">Asia/Taipei</option>
|
||||
<option value="Asia/Ulaanbaatar">Asia/Ulaanbaatar</option>
|
||||
<option value="Asia/Urumqi">Asia/Urumqi</option>
|
||||
<option value="Asia/Irkutsk">Asia/Irkutsk</option>
|
||||
<option value="Asia/Seoul">Asia/Seoul</option>
|
||||
<option value="Asia/Tokyo">Asia/Tokyo</option>
|
||||
<option value="Australia/Adelaide">Australia/Adelaide</option>
|
||||
<option value="Australia/Darwin">Australia/Darwin</option>
|
||||
<option value="Asia/Yakutsk">Asia/Yakutsk</option>
|
||||
<option value="Australia/Brisbane">Australia/Brisbane</option>
|
||||
<option value="Australia/Canberra">Australia/Canberra</option>
|
||||
<option value="Pacific/Guam">Pacific/Guam</option>
|
||||
<option value="Australia/Hobart">Australia/Hobart</option>
|
||||
<option value="Australia/Melbourne">Australia/Melbourne</option>
|
||||
<option value="Pacific/Port_Moresby">Pacific/Port_Moresby</option>
|
||||
<option value="Australia/Sydney">Australia/Sydney</option>
|
||||
<option value="Asia/Vladivostok">Asia/Vladivostok</option>
|
||||
<option value="Asia/Magadan">Asia/Magadan</option>
|
||||
<option value="Pacific/Auckland">Pacific/Auckland</option>
|
||||
<option value="Pacific/Fiji">Pacific/Fiji</option>
|
||||
</select>
|
||||
<br>
|
||||
|
||||
<select class="form-control" name="date" >
|
||||
<option value="d/m/Y">DD/MM/YYYY</option>
|
||||
<option value="m/d/Y">MM/DD/YYYY</option>
|
||||
<option value="Y/m/d">YYYY/MM/DD</option>
|
||||
</select>
|
||||
<br>
|
||||
|
||||
<select class="form-control" name="datetime" >
|
||||
<option value="d/m/Y H:i">DD/MM/YYYY H:i</option>
|
||||
<option value="m/d/Y H:i">MM/DD/YYYY H:i</option>
|
||||
<option value="Y/m/d H:i">YYYY/MM/DD H:i</option>
|
||||
</select>
|
||||
|
||||
<br>
|
||||
<a href="{{URL::route('prerequisites')}}" style="text-color:black" id="access1"> Prev</a>
|
||||
<input type="submit" value="Next" id="access">
|
||||
</form>
|
||||
<br>
|
||||
</div>
|
||||
</p>
|
||||
@stop
|
||||
@@ -0,0 +1,31 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
@section('content')
|
||||
<h1>Configuration</h1>
|
||||
<div class="login-box-body">
|
||||
<h3>Database Connection</h3>
|
||||
{!! Form::open(['url'=> '/step4post']) !!}
|
||||
<!-- <b>database</b><br> -->
|
||||
<select class="form-control" name="default" id="default">
|
||||
<option value="mysql">mysql</option>
|
||||
<option value="pgsql">pgsql</option>
|
||||
<option value="sqlsrv">sqlsrv</option>
|
||||
</select><br>
|
||||
<!-- <b>Host</b><br> -->
|
||||
<input type="text" class="form-control" name="host" id="host" placeholder="Host" required><br>
|
||||
<!-- <b>Database Name</b><br> -->
|
||||
<input type="text" class="form-control" name="databasename" id="databasename" placeholder="Databsae Name" required><br>
|
||||
<!-- <b>User Name</b><br> -->
|
||||
<input type="text" class="form-control" name="username" id="username" placeholder="Username" required><br>
|
||||
<!-- <b>User Password</b><br> -->
|
||||
<input type="text" class="form-control" name="password" id="password" placeholder="Password" ><br>
|
||||
|
||||
<!-- <input type="submit" value="prev" id="access1"> -->
|
||||
<a href="{{URL::route('localization')}}" style="text-color:black" id="access1"> Prev</a>
|
||||
<input type="submit" value="next" id="access">
|
||||
</form>
|
||||
<br>
|
||||
</div>
|
||||
</p>
|
||||
@stop
|
||||
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
@section('content')
|
||||
|
||||
<h1>Database test</h1>
|
||||
<div class="login-box-body">
|
||||
<?php
|
||||
/**
|
||||
* FaveoHELPDESK Probe
|
||||
*
|
||||
* Copyright (c) 2014 Ladybird Web Solution.
|
||||
*
|
||||
*/
|
||||
// -- Please provide valid database connection parameters ------------------------------
|
||||
$default = Session::get('default');
|
||||
$host = Session::get('host');
|
||||
$username = Session::get('username');
|
||||
$password = Session::get('password');
|
||||
$databasename = Session::get('databasename');
|
||||
|
||||
define('DB_HOST', $host); // Address of your MySQL server (usually localhost)
|
||||
define('DB_USER', $username); // Username that is used to connect to the server
|
||||
define('DB_PASS', $password); // User's password
|
||||
define('DB_NAME', $databasename); // Name of the database you are connecting to
|
||||
|
||||
define('PROBE_VERSION', '4.2');
|
||||
define('PROBE_FOR', '<b>Faveo</b>HELPDESK 1.0 and Newer');
|
||||
|
||||
define('STATUS_OK', 'ok');
|
||||
define('STATUS_WARNING', 'warning');
|
||||
define('STATUS_ERROR', 'error');
|
||||
|
||||
class TestResult {
|
||||
|
||||
var $message;
|
||||
var $status;
|
||||
|
||||
function TestResult($message, $status = STATUS_OK) {
|
||||
$this->message = $message;
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
} // TestResult
|
||||
|
||||
?>
|
||||
|
||||
<?php if (DB_HOST && DB_USER && DB_NAME) {
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
|
||||
$mysqli_ok = true;
|
||||
|
||||
$results = array();
|
||||
// error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
|
||||
|
||||
error_reporting(0);
|
||||
|
||||
if ($connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME)) {
|
||||
$results[] = new TestResult('Connected to database as ' . DB_USER . '@' . DB_HOST, STATUS_OK);
|
||||
|
||||
if (mysqli_select_db($connection, DB_NAME)) {
|
||||
$results[] = new TestResult('Database "' . DB_NAME . '" selected', STATUS_OK);
|
||||
|
||||
$mysqli_version = mysqli_get_server_info($connection);
|
||||
|
||||
if (version_compare($mysqli_version, '5') >= 0) {
|
||||
$results[] = new TestResult('MySQL version is ' . $mysqli_version, STATUS_OK);
|
||||
|
||||
// $have_inno = check_have_inno($connection);
|
||||
|
||||
} else {
|
||||
$results[] = new TestResult('Your MySQL version is ' . $mysqli_version . '. We recommend upgrading to at least MySQL5!', STATUS_ERROR);
|
||||
$mysqli_ok = false;
|
||||
} // if
|
||||
} else {
|
||||
$results[] = new TestResult('Failed to select database. <br> MySQL said: ' . mysqli_error(), STATUS_ERROR);
|
||||
$mysqli_ok = false;
|
||||
} // if
|
||||
} else {
|
||||
$results[] = new TestResult('Failed to connect to database. <br> MySQL said: ' . mysqli_error(), STATUS_ERROR);
|
||||
$mysqli_ok = false;
|
||||
} // if
|
||||
|
||||
// ---------------------------------------------------
|
||||
// Validators
|
||||
// ---------------------------------------------------
|
||||
|
||||
foreach ($results as $result) {
|
||||
print '<li class="' . $result->status . '"><span>' . $result->status . '</span> — ' . $result->message . '</li>';
|
||||
} // foreach
|
||||
|
||||
?>
|
||||
</ul>
|
||||
<?php } else {?>
|
||||
<p>Database test is <strong>turned off</strong>. To turn it On, please open probe.php in your favorite text editor and set DB_XXXX connection parameters in database section at the beginning of the file:</p>
|
||||
<ul>
|
||||
<li>DB_HOST — Address of your MySQL server (usually localhost)</li>
|
||||
<li>DB_USER — Username that is used to connect to the server</li>
|
||||
<li>DB_PASS — User's password</li>
|
||||
<li>DB_NAME — Name of the database you are connecting to</li>
|
||||
</ul>
|
||||
<p>Once these settings are set, probe.php will check if your database meets the system requirements.</p>
|
||||
<?php $mysqli_ok = null;?>
|
||||
<?php } // if ?>
|
||||
|
||||
<?php if ($mysqli_ok !== null) {?>
|
||||
<?php if ($mysqli_ok) {?>
|
||||
<p id="verdict" class="all_ok">OK, this system can run <b>Faveo</b>HELPDESK</p>
|
||||
|
||||
<h3 id="conn">Database connection successfull</h3>
|
||||
|
||||
<span id="wait">Please wait this may take a minute......</span>
|
||||
{{-- <a href="{{URL::route('configuration')}}" style="text-color:black"><button value="prev" id="access1">Prev</button></a> --}}
|
||||
<a href="{{URL::route('account')}}" class="pull-right" id="next" style="text-color:black"><button value="next" id="access1">Next</button></a>
|
||||
{{-- <form action="{{URL::route('postconnection')}}" method="post"> --}}
|
||||
{!! Form::open( ['id'=>'form','method' => 'PATCH'] )!!}
|
||||
{{-- <input type="hidden" name="_token" value="{{ csrf_token() }}"> --}}
|
||||
<!-- <b>default</b><br> -->
|
||||
<input type="hidden" name="default" value="{!! $default !!}"/>
|
||||
<!-- <b>Host</b><br> -->
|
||||
<input type="hidden" name="host" value="{!! $host !!}"/>
|
||||
<!-- <b>Database Name</b><br> -->
|
||||
<input type="hidden" name="databasename" value="{!! $databasename !!}"/>
|
||||
<!-- <b>User Name</b><br> -->
|
||||
<input type="hidden" name="username" value="{!! $username !!}"/>
|
||||
<!-- <b>User Password</b><br> -->
|
||||
<input type="hidden" name="password" value="{!! $password !!}"/>
|
||||
<input type="submit" style="display:none;">
|
||||
</form>
|
||||
|
||||
<div id="show" style="display:none;">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}"><br/><br/><br/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
// submit a ticket
|
||||
$(document).ready(function () {
|
||||
$("#form").submit();
|
||||
});
|
||||
|
||||
// Edit a ticket
|
||||
$('#form').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "postconnection",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$("#conn").hide();
|
||||
$("#show").show();
|
||||
$("#wait").show();
|
||||
},
|
||||
success: function(response) {
|
||||
|
||||
// $("#dismis").trigger("click");
|
||||
if (response == 1)
|
||||
{
|
||||
$("#show").hide();
|
||||
$("#wait").hide();
|
||||
$("#conn").show();
|
||||
// $("#next1").trigger("click");
|
||||
}
|
||||
else if (response == 0)
|
||||
{
|
||||
alert('Please check all your fields');
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<p><br><p>
|
||||
<?php } else {?>
|
||||
<p id="verdict" class="not_ok">This system does not meet <b>Faveo</b>HELPDESK system requirements</p>
|
||||
<a href="{{URL::route('configuration')}}" style="color:black"><button value="prev" id="access2">Back</button></a><br>
|
||||
<?php } // if ?>
|
||||
<h2>Legend</h2>
|
||||
<div id="legend">
|
||||
<ul>
|
||||
<li class="ok"><span>ok</span> — All OK</li>
|
||||
<li class="warning"><span>warning</span> — Not a deal breaker, but it's recommended to have this installed for some features to work</li>
|
||||
<li class="error"><span>error</span> — <b>Faveo</b>HELPDESK require this feature and can't work without it</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } // if ?>
|
||||
<?php
|
||||
if (function_exists('date_default_timezone_set')) {
|
||||
date_default_timezone_set('GMT');
|
||||
} // if
|
||||
?>
|
||||
</div></p>
|
||||
@stop
|
||||
@@ -0,0 +1,67 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('content')
|
||||
<h1>Create Admin Account</h1>
|
||||
<div class="login-box-body" >
|
||||
<?php
|
||||
$language = Session::get('language');
|
||||
$timezone = Session::get('timezone');
|
||||
$date = Session::get('date');
|
||||
$datetime = Session::get('datetime');
|
||||
?>
|
||||
|
||||
{!! Form::open(['url'=>route('postaccount')]) !!}
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<!-- Hidden form fields -->
|
||||
<input type="hidden" name="language" id="language" value="{{$language}}">
|
||||
<input type="hidden" name="timezone" id="timezone" value="{{$timezone}}">
|
||||
<input type="hidden" name="date" id="date" value="{{$date}}">
|
||||
<input type="hidden" name="datetime" id="datetime" value="{{$datetime}}">
|
||||
|
||||
<!-- Personal Information -->
|
||||
<h4>Personal Information</h4>
|
||||
<b>First Name</b>
|
||||
<input type="text" class="form-control" name="firstname" id="firstname">
|
||||
@if($errors->has('firstname'))
|
||||
<div class="text-red">{{$errors->first('firstname')}}</div>
|
||||
@endif
|
||||
|
||||
<b>Last Name</b>
|
||||
<input type="text" class="form-control" name="Lastname" id="Lastname">
|
||||
@if($errors->has('Lastname'))
|
||||
<div class="text-red">{{$errors->first('Lastname')}}</div>
|
||||
@endif
|
||||
|
||||
<b>Email</b>
|
||||
<input type="text" class="form-control" name="email" id="email">
|
||||
@if($errors->has('email'))
|
||||
<div class="text-red">{{$errors->first('email')}}</div>
|
||||
@endif
|
||||
|
||||
<h4>Login Information</h4>
|
||||
<b>User Name</b>
|
||||
<input type="text" class="form-control" name="username" id="username">
|
||||
@if($errors->has('username'))
|
||||
<div class="text-red">{{$errors->first('username')}}</div>
|
||||
@endif
|
||||
|
||||
<b>Password</b>
|
||||
<input type="password" class="form-control" name="password" id="password">
|
||||
@if($errors->has('password'))
|
||||
<div class="text-red">{{$errors->first('password')}}</div>
|
||||
@endif
|
||||
|
||||
<b>Confirm Password</b>
|
||||
<input type="password" class="form-control" name="confirmpassword" id="confirmpassword">
|
||||
@if($errors->has('confirmpassword'))
|
||||
<div class="text-red">{{$errors->first('confirmpassword')}}</div>
|
||||
@endif
|
||||
|
||||
<br>
|
||||
{{-- <a href="{{URL::route('configuration')}}" id="access1" style="color:black"> Prev</a> --}}
|
||||
<input type="submit" value="Next" id="access">
|
||||
{!! Form::token() !!}
|
||||
{!! Form::close() !!}
|
||||
<br><p>
|
||||
</div></p>
|
||||
@stop
|
||||
@@ -0,0 +1,26 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
@section('content')
|
||||
<style type="text/css">
|
||||
h1
|
||||
{
|
||||
color:#008A00;
|
||||
}
|
||||
h3
|
||||
{
|
||||
color: 19D119;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<h1>You're All Set</h1>
|
||||
<p>
|
||||
|
||||
<h3>Thank You</h3>
|
||||
<p>
|
||||
|
||||
<br>
|
||||
<a href="{{url('auth/login')}}" id="access1"> Submit</a>
|
||||
<br><br><br>
|
||||
<p>
|
||||
|
||||
@stop
|
||||
Reference in New Issue
Block a user