InfixEdu School - School Management System Software

InfixEdu School - School Management System Software v8.2.8

No permission to download

jasam10

New member
Jun 16, 2020
14
3
3
@ubaid
For nulling go to app\Http\Controllers\
open InstallController.php and remove/clear all codes and replace with this codes
PHP:
<?php

namespace App\Http\Controllers;

use App\User;
use App\SmStaff;
use App\Envato\Envato;
use GuzzleHttp\Client;
use App\SmGeneralSettings;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
use Brian2694\Toastr\Facades\Toastr;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Session;
use GuzzleHttp\Exception\ConnectException;

class InstallController extends Controller
{

    public function is_valid_domain_name($domain_name)
    {
        return TRUE;
    }


    //##Step01
    public function index()
    {
        if (Schema::hasTable('sm_general_settings') && Schema::hasTable('users')) {
            $users = DB::table('users')->get();
            if ($users->count() > 0) {
                return redirect('login');
            } else {
                Session::put('step1', 1);
                return view('install.welcome_to_infix');
            }
        } else {
            Session::put('step1', 1);
            return view('install.welcome_to_infix');
        }
    }

    //##Step2
    public function CheckPurchaseVerificationPage()
    {
        // if (Schema::hasTable('sm_general_settings') && Schema::hasTable('users')) {
        //     return redirect('login');
        // } else {
        if (Session::get('step1') != 1) {
            return redirect('install');
        } else {
            Session::put('step2', 2);
            return view('install.check_purchase_page');
        }
        // }
    }
    //##Step03
    public function CheckVerifiedInput(Request $request)
    {
        // if (Schema::hasTable('sm_general_settings') && Schema::hasTable('users')) {
        //     return redirect('login');
        // } else {
        if (Session::get('step1') != 1) {
            return redirect('install');
        } elseif (Session::get('step2') != 2) {
            return redirect('check-purchase-verification');
        } else {
                                Session::put('step3', 3);
                                Session::flash("message-success", "Congratulations! Purchase code is verified.");
                                return redirect('check-environment');
        }
        // }
    }

    //##Step04
    public function checkEnvironmentPage()
    {
        // if (Schema::hasTable('sm_general_settings') && Schema::hasTable('users')) {
        //     return redirect('login');
        // } else {


        if (Session::get('step1') != 1) {
            return redirect('install');
        } elseif (Session::get('step2') != 2) {
            return redirect('check-purchase-verification');
        } elseif (Session::get('step3') != 3) {
            return redirect('check-purchase-verification');
        } else {
            try {
                $path = '';
                $folders = array(
                    $path . "/route",
                    $path . "/resources",
                    $path . "/public",
                    $path . "/storage",
                );

                Session::put('step4', 4);
                return view('install.checkEnvironmentPage')->with('folders', $folders);
            } catch (\Exception $e) {
                Toastr::error('Operation Failed', 'Failed');
                return redirect()->back();
            }
        }
        // }
    }


    //##Step06
    public function confirmation()
    {

        try {
            return view('install.confirmation');
        } catch (\Exception $e) {
            Toastr::error('Operation Failed', 'Failed');
            return redirect()->back();
        }
    }








    //##Step05
    public function checkEnvironment(Request $request)
    {
        // if (Schema::hasTable('sm_general_settings') && Schema::hasTable('users')) {
        //     return redirect('login');
        // } else {
        if (Session::get('step1') != 1) {
            return redirect('install');
        } elseif (Session::get('step2') != 2) {
            return redirect('check-purchase-verification');
        } elseif (Session::get('step3') != 3) {
            return redirect('check-purchase-verification');
        } elseif (Session::get('step4') != 4) {
            return redirect('check-environment');
        } else {
            try {
                if (phpversion() >= '7.1' && OPENSSL_VERSION_NUMBER > 0x009080bf && extension_loaded('mbstring') && extension_loaded('tokenizer') && extension_loaded('xml') && extension_loaded('ctype')  && extension_loaded('json')) {
                    Session::put('step5', 5);
                    return redirect('system-setup-page');
                } else {
                    Session::flash("message-danger", "Ops! Extension are disabled.  Please check requirements!");
                    return redirect()->back()->with("message-danger", "Ops! Extension are disabled.  Please check requirements!");
                }
            } catch (\Exception $e) {
                Toastr::error('Operation Failed', 'Failed');
                return redirect()->back();
            }
        }
        // }
    }



    //##Step06
    public function systemSetupPage()
    {

        if (Schema::hasTable('sm_general_settings') && Schema::hasTable('users')) {
            return redirect('login');
        } else {
            if (Session::get('step1') != 1) {
                return redirect('install');
            } elseif (Session::get('step2') != 2) {
                return redirect('check-purchase-verification');
            } elseif (Session::get('step3') != 3) {
                return redirect('check-purchase-verification');
            } elseif (Session::get('step4') != 4) {
                return redirect('check-environment');
            } else {
                try {
                    Session::put('step6', 6);
                    return view('install.systemSetupPage');
                } catch (\Exception $e) {
                    Toastr::error('Operation Failed', 'Failed');
                    return redirect()->back();
                }
            }
        }
    }



    //##Step07
    public function confirmInstalling(Request $request)
    {
        set_time_limit(2700);
        $this->validate($request, [
            'institution_name' => 'required',
            'system_admin_email' => 'required',
            'system_admin_password' => 'min:6|required_with:password_confirmation|same:password_confirmation',
            'password_confirmation' => 'min:6'
        ]);


        try {
            $sql = base_path('database/infixv4_5.sql');
            DB::unprepared(file_get_contents($sql));
        } catch (\Exception $e) {
            Artisan::call('migrate:refresh');
        }

        try {
            Session::put('system_admin_email', $request->system_admin_email);
            Session::put('system_admin_password', $request->system_admin_password);

            // Artisan::call('migrate:refresh');
            // if ($request->install_mode == 1) {
            //     Artisan::call('db:seed');
            // }


            if (Schema::hasTable('migrations')) {
                $migration = DB::table('migrations')->get();
                if (count($migration) > 0) {
                    $id = 1;
                    $setting = SmGeneralSettings::find($id);
                    if ($setting == "") {
                        $setting = new SmGeneralSettings();
                    }
                    $setting->school_name = @$request->input('institution_name');
                    $setting->email = @$request->input('system_admin_email');
                    $setting->system_purchase_code = Session::get('purchasecode');
                    $setting->system_activated_date = date('Y-m-d');
                    $setting->system_domain = Session::get('domain');
                    $setting->save();
                }

                $user = User::find(1);
                if (empty($user)) {
                    $user = new User();
                }

                $user->role_id = 1;
                $user->username = $request->input('system_admin_email');
                $user->full_name = 'System Administrator';
                $user->email = $request->input('system_admin_email');
                $user->password = Hash::make($request->input('system_admin_password'));
                $user->save();

                $staff = SmStaff::find(1);
                if (empty($staff)) {
                    $staff = new SmStaff();
                }
                $staff->user_id  = $user->id;
                $staff->first_name  = 'System';
                $staff->last_name  = 'Administrator';
                $staff->full_name  = 'System Administrator';
                $staff->email  = $request->input('system_admin_email');
                $staff->save();
                return redirect('confirmation');
            }
        } catch (\Exception $e) {
            Toastr::error('Operation Failed', 'Failed');
            return redirect('system-setup-page');
        }
    }


    public function verifiedCode()
    {

        // dd('k');
        try {
            if (Schema::hasTable('sm_general_settings')) {
                $GetData = DB::table('sm_general_settings')->find(1);
                if (!empty($GetData)) {
                    $UserData = Envato::verifyPurchase($GetData->system_purchase_code);
                    if (!empty($UserData['verify-purchase']['item_id']) && (User::$item == $UserData['verify-purchase']['item_id'])) {
                        return redirect('/login');
                    }
                } else {
                    return view('install.verified_code');
                }
            } else {
                return redirect('install');
            }
        } catch (\Exception $e) {
            dd($e);
            Toastr::error('Operation Failed', 'Failed');
            return redirect()->back();
        }
    }

    public function verifiedCodeStore(Request $request)
    {

        try {
            $envatouser = htmlspecialchars($request->input('envatouser'));
            $purchasecode = htmlspecialchars($request->input('purchasecode'));
            $domain = htmlspecialchars($request->input('installationdomain'));

            $obj = Envato::verifyPurchase($purchasecode);


            if (!empty($obj)) {
                foreach ($obj as $data) {
                    if (!empty($data['item_id'])) {

                        $setting = SmGeneralSettings::first();
                        $setting->system_domain = $domain;
                        $setting->envato_user = $envatouser;
                        $setting->system_purchase_code = $purchasecode;
                        $setting->envato_item_id = $data['item_id'];
                        $setting->system_activated_date = date('Y-m-d');
                        $setting->save();

                        $url = Session::get('url');

                        return redirect($url);
                    }
                }
            } else {
                Session::flash("message-danger", "Ops! Purchase Code is not vaild. Please try again.");
                return redirect()->back();
            }
            Session::flash("message-danger", "Ops! Purchase Code is not vaild. Please try again.");
            return redirect()->back();
        } catch (\Exception $e) {
            Toastr::error('Operation Failed', 'Failed');
            return redirect()->back();
        }
    }
}
500 Error



Whoops, something went wrong on our servers.
 

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,641
26,991
120
See on your servers what went wrong. Check your server/domain error log.
 

jasam10

New member
Jun 16, 2020
14
3
3
See on your servers what went wrong. Check your server/domain error log.
there is no any error log file if i dont use this code then its working but ask me to purchase code and other details if i change file with this code i have 500 error
 

me7517

Member
Babiato Lover
Dec 23, 2019
24
55
18
@White Devil @jacksii

I have the latest Infix - School Management System Software v5.0.0
I'm willing to share it here, but I need your help to install it on my server.
Because after the installation, I get Error 500.
Please refer this screenshot.
 

Attachments

  • Screenshot (80).png
    Screenshot (80).png
    309.8 KB · Views: 33

me7517

Member
Babiato Lover
Dec 23, 2019
24
55
18
@slvrsteele
I found this on my error log:

No matching DirectoryIndex (index.html,index.php,index.php2,index.php3,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
 

White Devil

Well-known member
Trusted Seller
Trusted Uploader
Jan 6, 2019
3,107
6,072
120
world
babiato.tech
White Devil updated Infix - School Management System Software with a new update entry:

InfixEdu - School Management System Software

v5 -Major Release (7 Aug 2020)
thanks to ==@me7517

Fixed : Fees module bug fixed
Fixed : Online exam bug fixed
Fixed : Image upload issue in student update
Fixed : Academic year change on logout (fixed)
Fixed : Child attendance problem in parent panel (fixed)
Fixed : Exam result view in student & parent panel (fixed)
Fixed : Database backup issue fixed
Fixed : Student import issue fixed
Fixed : Library book issue problem fixed

Update : Academic year updated
Update ...

Read the rest of this update entry...
 
  • Love
Reactions: ayyaz

me7517

Member
Babiato Lover
Dec 23, 2019
24
55
18
I found this forum is very helpful and I'm happy to share the latest InfixEdu v5 with you guys.
 

me7517

Member
Babiato Lover
Dec 23, 2019
24
55
18
Anyone who managed to install the latest v5 InfixEdu, please share your sql database.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu