update v1.0.4.1
This commit is contained in:
177
app/Http/Controllers/API/helpdesk/InstallerApiController.php
Normal file
177
app/Http/Controllers/API/helpdesk/InstallerApiController.php
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
<?php namespace App\Http\Controllers\API\helpdesk;
|
||||||
|
// controllers
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
// requests
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Http\Requests\helpdesk\InstallerRequest;
|
||||||
|
// models
|
||||||
|
use App\User;
|
||||||
|
use App\Model\helpdesk\Settings\System;
|
||||||
|
use App\Model\helpdesk\Form\Form_details;
|
||||||
|
// classes
|
||||||
|
use App;
|
||||||
|
use Artisan;
|
||||||
|
use Config;
|
||||||
|
use File;
|
||||||
|
use Hash;
|
||||||
|
use Input;
|
||||||
|
use Redirect;
|
||||||
|
use Session;
|
||||||
|
use View;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* |=======================================================================
|
||||||
|
* |Class: InstallController
|
||||||
|
* |=======================================================================
|
||||||
|
*
|
||||||
|
* Class to perform the first install operation without this the database
|
||||||
|
* settings could not be started
|
||||||
|
*
|
||||||
|
* @package Faveo HELPDESK
|
||||||
|
* @subpackage Controller
|
||||||
|
* @author Ladybird <info@ladybirdweb.com>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
class InstallerApiController extends Controller {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* config_database
|
||||||
|
* This function is to configure the database and install the application via API call.
|
||||||
|
* @return type Json
|
||||||
|
*/
|
||||||
|
public function config_database(Request $request) {
|
||||||
|
error_reporting(E_ALL & ~E_NOTICE);
|
||||||
|
|
||||||
|
// Check for pre install
|
||||||
|
if (\Config::get('database.install') == '%0%') {
|
||||||
|
|
||||||
|
$default = $request->database;
|
||||||
|
$host = $request->host;
|
||||||
|
$database = $request->databasename;
|
||||||
|
$dbusername = $request->dbusername;
|
||||||
|
$dbpassword = $request->dbpassword;
|
||||||
|
$port = $request->port;
|
||||||
|
|
||||||
|
if(isset($default) && isset($host) && isset($database) && isset($dbusername)){
|
||||||
|
|
||||||
|
// Setting environment values
|
||||||
|
$_ENV['DB_TYPE'] = $default;
|
||||||
|
$_ENV['DB_HOST'] = $host;
|
||||||
|
$_ENV['DB_PORT'] = $port;
|
||||||
|
$_ENV['DB_DATABASE'] = $database;
|
||||||
|
$_ENV['DB_USERNAME'] = $dbusername;
|
||||||
|
$_ENV['DB_PASSWORD'] = $dbpassword;
|
||||||
|
|
||||||
|
$config = '';
|
||||||
|
foreach ($_ENV as $key => $val) {
|
||||||
|
$config .= "{$key}={$val}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write environment file
|
||||||
|
$fp = fopen(base_path()."/.env", 'w');
|
||||||
|
fwrite($fp, $config);
|
||||||
|
fclose($fp);
|
||||||
|
|
||||||
|
return ['response'=>'success','status'=>'1'];
|
||||||
|
} else {
|
||||||
|
return ['response'=>'fail','reason'=>'insufficient parameters','status'=>'0'];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return ['response'=>'fail','reason'=>'this system is already installed','status'=>'0'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* config_database
|
||||||
|
* This function is to configure the database and install the application via API call.
|
||||||
|
* @return type Json
|
||||||
|
*/
|
||||||
|
public function config_system(Request $request) {
|
||||||
|
error_reporting(E_ALL & ~E_NOTICE);
|
||||||
|
// Check for pre install
|
||||||
|
if (\Config::get('database.install') == '%0%') {
|
||||||
|
$firstname = $request->firstname;
|
||||||
|
$lastname = $request->lastname;
|
||||||
|
$email = $request->email;
|
||||||
|
$username = $request->username;
|
||||||
|
$password = $request->password;
|
||||||
|
$timezone = $request->timezone;
|
||||||
|
$datetime = $request->datetime;
|
||||||
|
|
||||||
|
// Migrate database
|
||||||
|
Artisan::call('migrate', array('--force' => true));
|
||||||
|
Artisan::call('db:seed', array('--force' => true));
|
||||||
|
|
||||||
|
// Creating minum settings
|
||||||
|
$system = System::where('id','=','1')->first();
|
||||||
|
$system->time_zone = $timezone;
|
||||||
|
$system->date_time_format = $datetime;
|
||||||
|
$system->save();
|
||||||
|
|
||||||
|
// Creating default form field
|
||||||
|
$form1 = new Form_details;
|
||||||
|
$form1->label = 'Name';
|
||||||
|
$form1->type = 'text';
|
||||||
|
$form1->form_name_id = '1';
|
||||||
|
$form1->save();
|
||||||
|
|
||||||
|
$form2 = new Form_details;
|
||||||
|
$form2->label = 'Phone';
|
||||||
|
$form2->type = 'number';
|
||||||
|
$form2->form_name_id = '1';
|
||||||
|
$form2->save();
|
||||||
|
|
||||||
|
$form3 = new Form_details;
|
||||||
|
$form3->label = 'Email';
|
||||||
|
$form3->type = 'text';
|
||||||
|
$form3->form_name_id = '1';
|
||||||
|
$form3->save();
|
||||||
|
|
||||||
|
$form4 = new Form_details;
|
||||||
|
$form4->label = 'Subject';
|
||||||
|
$form4->type = 'text';
|
||||||
|
$form4->form_name_id = '1';
|
||||||
|
$form4->save();
|
||||||
|
|
||||||
|
$form5 = new Form_details;
|
||||||
|
$form5->label = 'Details';
|
||||||
|
$form5->type = 'textarea';
|
||||||
|
$form5->form_name_id = '1';
|
||||||
|
$form5->save();
|
||||||
|
|
||||||
|
// Creating user
|
||||||
|
$user = User::create(array(
|
||||||
|
'first_name' => $firstname,
|
||||||
|
'last_name' => $lastname,
|
||||||
|
'email' => $email,
|
||||||
|
'user_name' => $username,
|
||||||
|
'password' => Hash::make($password),
|
||||||
|
'active' => 1,
|
||||||
|
'role' => 'admin',
|
||||||
|
'assign_group' => 'group A',
|
||||||
|
'primary_dpt' => 'support',
|
||||||
|
));
|
||||||
|
|
||||||
|
// Setting database installed status
|
||||||
|
$value = '1';
|
||||||
|
$install = app_path('../config/database.php');
|
||||||
|
$datacontent = File::get($install);
|
||||||
|
$datacontent = str_replace('%0%', $value, $datacontent);
|
||||||
|
File::put($install, $datacontent);
|
||||||
|
|
||||||
|
// Applying email configuration on route
|
||||||
|
$smtpfilepath = "\App\Http\Controllers\Common\SettingsController::smtp()";
|
||||||
|
$path22 = app_path('Http/routes.php');
|
||||||
|
$content23 = File::get($path22);
|
||||||
|
$content23 = str_replace('"%smtplink%"', $smtpfilepath, $content23);
|
||||||
|
File::put($path22, $content23);
|
||||||
|
|
||||||
|
// If user created return success
|
||||||
|
if($user){
|
||||||
|
return ['response'=>'success','status'=>'1'];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return ['response'=>'fail','reason'=>'this system is already installed','status'=>'0'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -300,7 +300,6 @@ class TicketController extends Controller {
|
|||||||
* @param type TicketRequest $request
|
* @param type TicketRequest $request
|
||||||
* @return type bool
|
* @return type bool
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function reply(Ticket_Thread $thread, TicketRequest $request, Ticket_attachments $ta ) {
|
public function reply(Ticket_Thread $thread, TicketRequest $request, Ticket_attachments $ta ) {
|
||||||
$attachments = $request->file('attachment');
|
$attachments = $request->file('attachment');
|
||||||
$check_attachment = null;
|
$check_attachment = null;
|
||||||
@@ -634,13 +633,16 @@ class TicketController extends Controller {
|
|||||||
if(Alert::first()->ticket_status == 1 || Alert::first()->ticket_department_member == 1) {
|
if(Alert::first()->ticket_status == 1 || Alert::first()->ticket_department_member == 1) {
|
||||||
// send email to agents
|
// send email to agents
|
||||||
$agents = User::where('role','=','agent')->get();
|
$agents = User::where('role','=','agent')->get();
|
||||||
|
// dd($agents);
|
||||||
foreach($agents as $agent)
|
foreach($agents as $agent)
|
||||||
{
|
{
|
||||||
if($ticketdata->dept_id == $agent->primary_dpt)
|
$department_data = Department::where('id','=',$ticketdata->dept_id)->first();
|
||||||
|
|
||||||
|
if($department_data->name == $agent->primary_dpt)
|
||||||
{
|
{
|
||||||
$agent_email = $agent->email;
|
$agent_email = $agent->email;
|
||||||
$agent_user = $agent->first_name;
|
$agent_user = $agent->first_name;
|
||||||
Mail::send('emails.'.$mail, ['agent' => $agent_user, 'ticket_number' => $ticket_number2, 'from'=>$company, 'email' => $emailadd, 'name' => $ticket_creator, 'system' => $system], function ($message) use ($agent_email, $agent_user, $ticket_number2, $updated_subject) {
|
Mail::send('emails.'.$mail, ['agent' => $agent_user ,'content'=>$body , 'ticket_number' => $ticket_number2, 'from'=>$company, 'email' => $emailadd, 'name' => $ticket_creator, 'system' => $system], function ($message) use ($agent_email, $agent_user, $ticket_number2, $updated_subject) {
|
||||||
$message->to($agent_email, $agent_user)->subject($updated_subject);
|
$message->to($agent_email, $agent_user)->subject($updated_subject);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -712,12 +714,9 @@ class TicketController extends Controller {
|
|||||||
|
|
||||||
$user_name = User::where('id','=', $user_id)->first();
|
$user_name = User::where('id','=', $user_id)->first();
|
||||||
|
|
||||||
if($user_name->role == 'user' )
|
if($user_name->role == 'user' ) {
|
||||||
{
|
|
||||||
$username = $user_name->user_name;
|
$username = $user_name->user_name;
|
||||||
}
|
} elseif($user_name->role == 'agent' or $user_name->role == 'admin') {
|
||||||
elseif($user_name->role == 'agent' or $user_name->role == 'admin')
|
|
||||||
{
|
|
||||||
$username = $user_name->first_name . " " . $user_name->last_name;
|
$username = $user_name->first_name . " " . $user_name->last_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -756,12 +755,9 @@ class TicketController extends Controller {
|
|||||||
*/
|
*/
|
||||||
public function create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept, $assignto, $form_data) {
|
public function create_ticket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept, $assignto, $form_data) {
|
||||||
$max_number = Tickets::whereRaw('id = (select max(`id`) from tickets)')->first();
|
$max_number = Tickets::whereRaw('id = (select max(`id`) from tickets)')->first();
|
||||||
if($max_number == null)
|
if($max_number == null) {
|
||||||
{
|
|
||||||
$ticket_number = "AAAA-9999-9999999";
|
$ticket_number = "AAAA-9999-9999999";
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
foreach ($max_number as $number) {
|
foreach ($max_number as $number) {
|
||||||
$ticket_number = $max_number->ticket_number;
|
$ticket_number = $max_number->ticket_number;
|
||||||
}
|
}
|
||||||
@@ -798,11 +794,9 @@ class TicketController extends Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// store collaborators
|
// store collaborators
|
||||||
|
// dd($headers);
|
||||||
$this->store_collaborators($headers, $id);
|
$this->store_collaborators($headers, $id);
|
||||||
|
|
||||||
if ($this->ticket_thread($subject, $body, $id, $user_id) == true) {
|
if ($this->ticket_thread($subject, $body, $id, $user_id) == true) {
|
||||||
return $ticket_number;
|
return $ticket_number;
|
||||||
}
|
}
|
||||||
|
@@ -41,7 +41,6 @@ class InstallController extends Controller {
|
|||||||
if (Session::get('step5') == 'step5') {
|
if (Session::get('step5') == 'step5') {
|
||||||
return Redirect::route('account');
|
return Redirect::route('account');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config::get('database.install') == '%0%') {
|
if (Config::get('database.install') == '%0%') {
|
||||||
return view('themes/default1/installer/helpdesk/view1');
|
return view('themes/default1/installer/helpdesk/view1');
|
||||||
} else {
|
} else {
|
||||||
@@ -186,90 +185,23 @@ class InstallController extends Controller {
|
|||||||
$dbpassword = Input::get('password');
|
$dbpassword = Input::get('password');
|
||||||
$port = Input::get('port');
|
$port = Input::get('port');
|
||||||
|
|
||||||
// set default value
|
// Setting environment values
|
||||||
$path0 = app_path('../config/database.php');
|
$_ENV['DB_TYPE'] = $default;
|
||||||
$content0 = File::get($path0);
|
$_ENV['DB_HOST'] = $host;
|
||||||
$content0 = str_replace('%default%', $default, $content0);
|
$_ENV['DB_PORT'] = $port;
|
||||||
File::put($path0, $content0);
|
$_ENV['DB_DATABASE'] = $database;
|
||||||
// set host,databasename,username,password
|
$_ENV['DB_USERNAME'] = $dbusername;
|
||||||
if ($default == 'mysql') {
|
$_ENV['DB_PASSWORD'] = $dbpassword;
|
||||||
$path = app_path('../config/database.php');
|
|
||||||
$content = File::get($path);
|
|
||||||
$content = str_replace('%host%', $host, $content);
|
|
||||||
File::put($path, $content);
|
|
||||||
|
|
||||||
$path1 = app_path('../config/database.php');
|
$config = '';
|
||||||
$content1 = File::get($path1);
|
foreach ($_ENV as $key => $val) {
|
||||||
$content1 = str_replace('%database%', $database, $content1);
|
$config .= "{$key}={$val}\n";
|
||||||
File::put($path1, $content1);
|
|
||||||
|
|
||||||
$path2 = app_path('../config/database.php');
|
|
||||||
$content2 = File::get($path2);
|
|
||||||
$content2 = str_replace('%username%', $dbusername, $content2);
|
|
||||||
File::put($path2, $content2);
|
|
||||||
|
|
||||||
$path3 = app_path('../config/database.php');
|
|
||||||
$content3 = File::get($path3);
|
|
||||||
$content3 = str_replace('%password%', $dbpassword, $content3);
|
|
||||||
File::put($path3, $content3);
|
|
||||||
|
|
||||||
$path4 = app_path('../config/database.php');
|
|
||||||
$content4 = File::get($path4);
|
|
||||||
$content4 = str_replace('%port%', $port, $content4);
|
|
||||||
File::put($path4, $content4);
|
|
||||||
|
|
||||||
} elseif ($default == 'pgsql') {
|
|
||||||
$path = app_path('../config/database.php');
|
|
||||||
$content = File::get($path);
|
|
||||||
$content = str_replace('%host1%', $host, $content);
|
|
||||||
File::put($path, $content);
|
|
||||||
|
|
||||||
$path1 = app_path('../config/database.php');
|
|
||||||
$content1 = File::get($path1);
|
|
||||||
$content1 = str_replace('%database1%', $database, $content1);
|
|
||||||
File::put($path1, $content1);
|
|
||||||
|
|
||||||
$path2 = app_path('../config/database.php');
|
|
||||||
$content2 = File::get($path2);
|
|
||||||
$content2 = str_replace('%username1%', $username, $content2);
|
|
||||||
File::put($path2, $content2);
|
|
||||||
|
|
||||||
$path3 = app_path('../config/database.php');
|
|
||||||
$content3 = File::get($path3);
|
|
||||||
$content3 = str_replace('%password1%', $password, $content3);
|
|
||||||
File::put($path3, $content3);
|
|
||||||
|
|
||||||
$path4 = app_path('../config/database.php');
|
|
||||||
$content4 = File::get($path4);
|
|
||||||
$content4 = str_replace('%port1%', $port, $content4);
|
|
||||||
File::put($path4, $content4);
|
|
||||||
|
|
||||||
} elseif ($default == 'sqlsrv') {
|
|
||||||
$path = app_path('../config/database.php');
|
|
||||||
$content = File::get($path);
|
|
||||||
$content = str_replace('%host2%', $host, $content);
|
|
||||||
File::put($path, $content);
|
|
||||||
|
|
||||||
$path1 = app_path('../config/database.php');
|
|
||||||
$content1 = File::get($path1);
|
|
||||||
$content1 = str_replace('%database2%', $database, $content1);
|
|
||||||
File::put($path1, $content1);
|
|
||||||
|
|
||||||
$path2 = app_path('../config/database.php');
|
|
||||||
$content2 = File::get($path2);
|
|
||||||
$content2 = str_replace('%username2%', $username, $content2);
|
|
||||||
File::put($path2, $content2);
|
|
||||||
|
|
||||||
$path3 = app_path('../config/database.php');
|
|
||||||
$content3 = File::get($path3);
|
|
||||||
$content3 = str_replace('%password2%', $password, $content3);
|
|
||||||
File::put($path3, $content3);
|
|
||||||
|
|
||||||
$path4 = app_path('../config/database.php');
|
|
||||||
$content4 = File::get($path4);
|
|
||||||
$content4 = str_replace('%port2%', $port, $content4);
|
|
||||||
File::put($path4, $content4);
|
|
||||||
}
|
}
|
||||||
|
// Write environment file
|
||||||
|
$fp = fopen(base_path()."/.env", 'w');
|
||||||
|
fwrite($fp, $config);
|
||||||
|
fclose($fp);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,13 +250,6 @@ class InstallController extends Controller {
|
|||||||
* @return type view
|
* @return type view
|
||||||
*/
|
*/
|
||||||
public function accountcheck(InstallerRequest $request) {
|
public function accountcheck(InstallerRequest $request) {
|
||||||
// dd($request);
|
|
||||||
// config/database.php management
|
|
||||||
$default = $request->input('default');
|
|
||||||
$host = $request->input('host');
|
|
||||||
$database = $request->input('databasename');
|
|
||||||
$dbusername = $request->input('dbusername');
|
|
||||||
$dbpassword = $request->input('dbpassword');
|
|
||||||
|
|
||||||
// migrate database
|
// migrate database
|
||||||
Artisan::call('migrate', array('--force' => true));
|
Artisan::call('migrate', array('--force' => true));
|
||||||
@@ -347,7 +272,6 @@ class InstallController extends Controller {
|
|||||||
$system->date_time_format = $datetime;
|
$system->date_time_format = $datetime;
|
||||||
$system->save();
|
$system->save();
|
||||||
|
|
||||||
|
|
||||||
$form1 = new Form_details;
|
$form1 = new Form_details;
|
||||||
$form1->label = 'Name';
|
$form1->label = 'Name';
|
||||||
$form1->type = 'text';
|
$form1->type = 'text';
|
||||||
@@ -403,10 +327,6 @@ class InstallController extends Controller {
|
|||||||
*/
|
*/
|
||||||
public function finalize() {
|
public function finalize() {
|
||||||
if (Session::get('step6') == 'step6') {
|
if (Session::get('step6') == 'step6') {
|
||||||
// $var = "http://" . $_SERVER['HTTP_HOST'] . "/epeper-pdf";
|
|
||||||
// $siteurl = Option::where('option_name', '=', 'siteurl')->first();
|
|
||||||
// $siteurl->option_value = $var;
|
|
||||||
// $siteurl->save();
|
|
||||||
$value = '1';
|
$value = '1';
|
||||||
$install = app_path('../config/database.php');
|
$install = app_path('../config/database.php');
|
||||||
$datacontent = File::get($install);
|
$datacontent = File::get($install);
|
||||||
@@ -435,12 +355,10 @@ class InstallController extends Controller {
|
|||||||
* @return type view
|
* @return type view
|
||||||
*/
|
*/
|
||||||
public function finalcheck() {
|
public function finalcheck() {
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
return redirect('/auth/login');
|
return redirect('/auth/login');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return redirect('/auth/login');
|
return redirect('/auth/login');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@@ -21,6 +21,7 @@ class Kernel extends HttpKernel {
|
|||||||
'Illuminate\Session\Middleware\StartSession',
|
'Illuminate\Session\Middleware\StartSession',
|
||||||
'Illuminate\View\Middleware\ShareErrorsFromSession',
|
'Illuminate\View\Middleware\ShareErrorsFromSession',
|
||||||
//'App\Http\Middleware\VerifyCsrfToken',
|
//'App\Http\Middleware\VerifyCsrfToken',
|
||||||
|
'App\Http\Middleware\LanguageMiddleware',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
\App\Http\Controllers\Common\SettingsController::smtp();
|
"%smtplink%";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -22,7 +22,23 @@ $router->get('getmail/{token}', 'Auth\AuthController@getMail');
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|-------------------------------------------------------------------------------
|
|-------------------------------------------------------------------------------
|
||||||
|Admin Routes
|
| API Routes
|
||||||
|
|-------------------------------------------------------------------------------
|
||||||
|
| These routes are the API calls.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
Route::group(['prefix' => 'api'], function () {
|
||||||
|
|
||||||
|
Route::get('/database-config',['as'=>'database-config','uses'=>'API\helpdesk\InstallerApiController@config_database']);
|
||||||
|
Route::get('/system-config',['as'=>'database-config','uses'=>'API\helpdesk\InstallerApiController@config_system']);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
|-------------------------------------------------------------------------------
|
||||||
|
| Admin Routes
|
||||||
|-------------------------------------------------------------------------------
|
|-------------------------------------------------------------------------------
|
||||||
| Here is defining entire routes for the Admin Panel
|
| Here is defining entire routes for the Admin Panel
|
||||||
|
|
|
|
||||||
@@ -401,7 +417,7 @@ Route::group(['middleware' => 'role.user', 'middleware' => 'auth'], function ()
|
|||||||
Route::post('/step6post', ['as' => 'postaccount', 'uses' => 'Installer\helpdesk\InstallController@accountcheck']);
|
Route::post('/step6post', ['as' => 'postaccount', 'uses' => 'Installer\helpdesk\InstallController@accountcheck']);
|
||||||
Route::get('/final', ['as' => 'final','uses' => 'Installer\helpdesk\InstallController@finalize']);
|
Route::get('/final', ['as' => 'final','uses' => 'Installer\helpdesk\InstallController@finalize']);
|
||||||
Route::post('/finalpost', ['as' => 'postfinal','uses' => 'Installer\helpdesk\InstallController@finalcheck']);
|
Route::post('/finalpost', ['as' => 'postfinal','uses' => 'Installer\helpdesk\InstallController@finalcheck']);
|
||||||
Route::patch('/postconnection', ['as' => 'postconnection','uses' => 'Installer\helpdesk\InstallController@postconnection']);
|
Route::post('/postconnection', ['as' => 'postconnection','uses' => 'Installer\helpdesk\InstallController@postconnection']);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|=============================================================
|
|=============================================================
|
||||||
|
@@ -38,7 +38,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'version' => 'COMMUNITY 1.0.4',
|
'version' => 'COMMUNITY 1.0.4.1',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@@ -25,7 +25,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => '%default%',
|
'default' => env('DB_TYPE', 'mysql'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -53,36 +53,37 @@ return [
|
|||||||
|
|
||||||
'mysql' => [
|
'mysql' => [
|
||||||
'driver' => 'mysql',
|
'driver' => 'mysql',
|
||||||
'host' => '%host%',
|
'host' => env('DB_HOST', 'localhost'),
|
||||||
'database' => '%database%',
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
'username' => '%username%',
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
'password' => '%password%',
|
'password' => env('DB_PASSWORD', ''),
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
'collation' => 'utf8_unicode_ci',
|
'collation' => 'utf8_unicode_ci',
|
||||||
'port' => '%port%',
|
'port' => env('DB_PORT', ''),
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'strict' => false,
|
'strict' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
'pgsql' => [
|
'pgsql' => [
|
||||||
'driver' => 'pgsql',
|
'driver' => 'pgsql',
|
||||||
'host' => 'localhost',
|
'host' => env('DB_HOST', 'localhost'),
|
||||||
'database' => 'fav',
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
'username' => '%username1%',
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
'password' => '%password1%',
|
'password' => env('DB_PASSWORD', ''),
|
||||||
'port' => '%port1%',
|
'port' => env('DB_PORT', ''),
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'schema' => 'public',
|
'schema' => 'public',
|
||||||
],
|
],
|
||||||
|
|
||||||
'sqlsrv' => [
|
'sqlsrv' => [
|
||||||
|
|
||||||
'driver' => 'sqlsrv',
|
'driver' => 'sqlsrv',
|
||||||
'host' => '%host2%',
|
'host' => env('DB_HOST', 'localhost'),
|
||||||
'database' => '%database2%',
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
'username' => '%username2%',
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
'password' => '%password2%',
|
'password' => env('DB_PASSWORD', ''),
|
||||||
'port' => '%port2%',
|
'port' => env('DB_PORT', ''),
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@@ -98,8 +98,7 @@
|
|||||||
<div class="settingiconblue">
|
<div class="settingiconblue">
|
||||||
<div class="settingdivblue">
|
<div class="settingdivblue">
|
||||||
<a href="{{ url('emails') }}"><span class="fa-stack fa-2x">
|
<a href="{{ url('emails') }}"><span class="fa-stack fa-2x">
|
||||||
|
<i class="fa fa-envelope-o fa-stack-1x"></i>
|
||||||
<i class="fa fa-at fa-stack-1x"></i>
|
|
||||||
</span></a>
|
</span></a>
|
||||||
</div>
|
</div>
|
||||||
<center class="box-title" >{!! Lang::get('lang.incoming_emails') !!}</center>
|
<center class="box-title" >{!! Lang::get('lang.incoming_emails') !!}</center>
|
||||||
@@ -111,8 +110,7 @@
|
|||||||
<div class="settingiconblue">
|
<div class="settingiconblue">
|
||||||
<div class="settingdivblue">
|
<div class="settingdivblue">
|
||||||
<a href="{{ url('getsmtp') }}"><span class="fa-stack fa-2x">
|
<a href="{{ url('getsmtp') }}"><span class="fa-stack fa-2x">
|
||||||
|
<i class="fa fa-at fa-stack-1x"></i>
|
||||||
<i class="fa fa-envelope-o fa-stack-1x"></i>
|
|
||||||
</span></a>
|
</span></a>
|
||||||
</div>
|
</div>
|
||||||
<center class="box-title" >{!! Lang::get('lang.outgoing_emails') !!}</center>
|
<center class="box-title" >{!! Lang::get('lang.outgoing_emails') !!}</center>
|
||||||
|
@@ -128,7 +128,7 @@ if (DB_HOST && DB_USER && DB_NAME) {
|
|||||||
|
|
||||||
<span id="wait">Please wait this may take a while......</span>
|
<span id="wait">Please wait this may take a while......</span>
|
||||||
|
|
||||||
{!! Form::open( ['id'=>'form','method' => 'PATCH'] )!!}
|
{!! Form::open( ['id'=>'form','method' => 'POST'] )!!}
|
||||||
{{-- <input type="hidden" name="_token" value="{{ csrf_token() }}"> --}}
|
{{-- <input type="hidden" name="_token" value="{{ csrf_token() }}"> --}}
|
||||||
<!-- <b>default</b><br> -->
|
<!-- <b>default</b><br> -->
|
||||||
<input type="hidden" name="default" value="{!! $default !!}"/>
|
<input type="hidden" name="default" value="{!! $default !!}"/>
|
||||||
|
@@ -18,66 +18,6 @@ active
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<style type="text/css">
|
|
||||||
td input {
|
|
||||||
padding: 3px;
|
|
||||||
margin-left: 250px;
|
|
||||||
width: 280px;
|
|
||||||
}
|
|
||||||
td select {
|
|
||||||
width: 290px;
|
|
||||||
margin-left: 250px;
|
|
||||||
font-size: 17px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#sectool {
|
|
||||||
min-width: 200px;
|
|
||||||
padding: 5px;
|
|
||||||
line-height: 20px;
|
|
||||||
min-height: 18px;
|
|
||||||
background-color: #3AA7D9;
|
|
||||||
float: right;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: 5px 6px #88C8E5;
|
|
||||||
margin-right: -10px;
|
|
||||||
|
|
||||||
|
|
||||||
z-indexndex: 666;
|
|
||||||
}
|
|
||||||
#sectool p{
|
|
||||||
text-align: justify;
|
|
||||||
text-align-last: center;
|
|
||||||
font-size: 14px;
|
|
||||||
color: aliceblue;
|
|
||||||
width: 200px;
|
|
||||||
word-wrap: break-word;
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 600;
|
|
||||||
font-variant: normal;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
padding:10px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
border:1px solid #FF3048;
|
|
||||||
page-break-inside:avoid;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote{
|
|
||||||
padding:10px 20px;
|
|
||||||
margin:0 0 20px;
|
|
||||||
font-size:12.5px;
|
|
||||||
border-left: 5px solid #DD0019;
|
|
||||||
background-color: #FFE8EB;
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{!! Form::open(['url'=>route('postaccount')]) !!}
|
{!! Form::open(['url'=>route('postaccount')]) !!}
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||||
@if($errors->first('firstname')||$errors->first('Lastname')||$errors->first('email')||$errors->first('username')||$errors->first('password')||$errors->first('confirmpassword'))
|
@if($errors->first('firstname')||$errors->first('Lastname')||$errors->first('email')||$errors->first('username')||$errors->first('password')||$errors->first('confirmpassword'))
|
||||||
@@ -106,32 +46,26 @@ active
|
|||||||
<h1>Personal Information</h1>
|
<h1>Personal Information</h1>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{-- <label for="box1">Name</label> --}}
|
|
||||||
{!! Form::label('firstname',Lang::get('lang.first_name')) !!}
|
{!! Form::label('firstname',Lang::get('lang.first_name')) !!}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{-- <input type="text" name="firstname" required> --}}
|
{!! Form::text('firstname',null,['style' =>'margin-left:250px']) !!}
|
||||||
{!! Form::text('firstname',null,['class' => 'form-control']) !!}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::label('Last Name',Lang::get('lang.last_name')) !!}
|
{!! Form::label('Last Name',Lang::get('lang.last_name')) !!}
|
||||||
{{-- <label for="box2">Last Name</label> --}}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{-- <input type="text" name="Lastname" > --}}
|
{!! Form::text('Lastname',null,['style' =>'margin-left:250px']) !!}
|
||||||
{!! Form::text('Lastname',null,['class' => 'form-control']) !!}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||||
{{-- <label for="box3">Email</label> --}}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{-- <input type="text" name="email" > --}}
|
{!! Form::text('email',null,['style' =>'margin-left:250px']) !!}
|
||||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -141,21 +75,19 @@ active
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||||
{{-- <label>User Name</label> --}}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{-- <input type="text" style="margin-left: 200px" name="email" > --}}
|
{!! Form::text('username',null,['style' =>'margin-left:200px']) !!}
|
||||||
{!! Form::text('username',null,['class' => 'form-control', 'style' => 'margin-left: 200px']) !!}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::label('Password',Lang::get('lang.password')) !!}
|
{!! Form::label('Password',Lang::get('lang.password')) !!}
|
||||||
{{-- <label>Password</label> --}}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{-- <input type="password" style="margin-left: 200px" name="username" > --}}
|
<div style="margin-left:50px;">
|
||||||
{!! Form::text('password','ssssss',['class' => 'form-control' , 'style' => 'margin-left: 200px']) !!}
|
{!! Form::password('password',null,[]) !!}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -163,7 +95,9 @@ active
|
|||||||
{!! Form::label('confirmpassword',Lang::get('lang.confirm_password')) !!}
|
{!! Form::label('confirmpassword',Lang::get('lang.confirm_password')) !!}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{!! Form::text('confirmpassword','ssssss',['class' => 'form-control' , 'style' => 'margin-left: 200px']) !!}
|
<div style="margin-left:50px;">
|
||||||
|
{!! Form::password('confirmpassword',null,[]) !!}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@@ -58,6 +58,25 @@
|
|||||||
font-variant: normal;
|
font-variant: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
padding:10px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border:1px solid #FF3048;
|
||||||
|
page-break-inside:avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote{
|
||||||
|
padding:10px 20px;
|
||||||
|
margin:0 0 20px;
|
||||||
|
font-size:12.5px;
|
||||||
|
border-left: 5px solid #DD0019;
|
||||||
|
background-color: #FFE8EB;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body class="wc-setup wp-core-ui">
|
<body class="wc-setup wp-core-ui">
|
||||||
|
Reference in New Issue
Block a user