• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

ONNO - Laravel News & Magazine Script

ONNO - Laravel News & Magazine Script v1.4.3 Untouched

No permission to download
I am getting error
Code:
This page isn’t workinglocalhost is currently unable to handle this request.
HTTP ERROR 500
I am trying it on localhost
 
i alre
Go To
onno\Modules\Installer\Http\Controllers\InstallerController.php
Open InstallerController.php
after line 253 add this code
PHP:
return 'verified';
Like THis:
nulled.jpg
i already do this way but its always came with 500 internal server. any ide?

1663343786227.png
 
ping me in private pm if anyone already purchased this item
thanks
 
Babak updated ONNO - Laravel News & Magazine Script with a new update entry:

ONNO v1.4.3

Download ONNO v1.4.3 - Laravel News & Magazine Script Nulled Free
31 January 2023 v143

New
========
- Add Automatic System Update

Depreciation
==========
- Php version 7.2 Deprecated

Update
==========
- Update on Installer
- Update Laravel Version to 8.83.2
- Add Support to PHP Version 7.3 or above

Fixes
=============
- Date Localization fixed
- Image Cropping issue fixed
- RSS Image issue fixed

Read the rest of this update entry...
 
  • Like
Reactions: babibusuk
PHP:
<?php
namespace Modules\Installer\Http\Controllers;



use ZipArchive;
use App\Traits\UpdateTrait;
use Modules\User\Entities\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\File;
use Modules\Setting\Entities\Setting;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Session;
use Nwidart\Modules\Routing\Controller;
use Modules\Installer\Http\Requests\InstallRequest;

class InstallController extends Controller
{
    use UpdateTrait;
    public function index()
    {
        try {
            return view('installer::index');
        } catch (\Exception $e) {
            dd($e);
        }
    }

    public function getInstall(InstallRequest $request)
    {
        ini_set('max_execution_time', 900); //900 seconds
        $host           = $request->host;
        $db_user        = $request->db_user;
        $db_name        = $request->db_name;
        $db_password    = $request->db_password;

        $first_name     = $request->first_name;
        $last_name      = $request->last_name;
        $email          = $request->email;
        $login_password = $request->password;

        $purchase_code  = $request->purchase_code;

        //check for valid database connection
        try{
            $mysqli = @new \mysqli($host, $db_user, $db_password, $db_name);
        }catch (\Exception $e){
             return redirect()->back()->with('error', 'Please input valid database information.')->withInput($request->all());
        }
        if (mysqli_connect_errno()) {
            return redirect()->back()->with('error', 'Please input valid database information.');
        }
        $mysqli->close();

        // validate code

        $data['DB_HOST']        = $host;
        $data['DB_DATABASE']    = $db_name;
        $data['DB_USERNAME']    = $db_user;
        $data['DB_PASSWORD']    = $db_password;
        $verification = validate_purchase($purchase_code, $data);
        if ($verification === 'success') :
            session()->put('email', $email);
            session()->put('first_name', $first_name);
            session()->put('last_name', $last_name);
            session()->put('login_password', $login_password);
            session()->put('purchase_code', $purchase_code);

            return redirect()->route('install.finalize');
        elseif ($verification === 'connection_error'):
            return redirect()->back()->with('error', 'There is a problem to connect with SpaGreen server.Make sure you have active internet connection!');

        elseif ($verification === false):
            return redirect()->back()->with('error', 'Something went wrong. Please try again.');
        else:
            return redirect()->back()->with('error', $verification);
        endif;
    }

    public function final()
    {
        try {
            DB::statement('SET FOREIGN_KEY_CHECKS = 0');
            foreach (DB::select('SHOW TABLES') as $table) {
                $table_array = get_object_vars($table);
                Schema::drop($table_array[key($table_array)]);
            }
            DB::unprepared(file_get_contents(base_path('public/sql/sql.sql')));
            if (file_exists(base_path('public/sql/sql.sql'))):
                unlink(base_path('public/sql/sql.sql'));
            endif;
            $zip_file = base_path('public/install/installer.zip');
            if (file_exists($zip_file)) {
                $zip = new ZipArchive;
                if ($zip->open($zip_file) === TRUE) {
                    $zip->extractTo(base_path('public/install/installer/'));
                    $zip->close();
                } else {
                    return redirect()->back()->with('error', 'Installation files Not Found, Please Try Again');
                }
                unlink($zip_file);
            }

            $update_file_path = base_path('public/install/installer');

            if(is_dir($update_file_path))
            {
                $config_file = $update_file_path.'/config.json';
                if(file_exists($config_file)) {
                    $config = json_decode(file_get_contents($config_file), true);
                    $this->recurse_copy($update_file_path, base_path('/'));
                }
                else{
                    return redirect()->back()->with('error', 'Config File Not Found, Please Try Again');
                }
            }
            else{
                return redirect()->back()->with('error', 'Installation files Not Found, Please Try Again');
            }

            $this->dataInserts($config);
            $this->envUpdates();
            File::deleteDirectory($update_file_path);
            sleep(3);
            Artisan::call('all:clear');
            return redirect('/')->with('success', 'Installation was Successfull');
        } catch (\Exception $e) {
            dd($e);
        }
    }

    protected function dataInserts($config)
    {
        try {
            DB::transaction(function () {
                $user                = User::find(1);
                $user->email         = session()->get('email');
                $user->first_name    = session()->get('first_name');
                $user->last_name     = session()->get('last_name');
                $user->password      = bcrypt(session()->get('login_password'));
                $user->save();
            });
        } catch (\Throwable $th) {
            dd($th);
        }

    DB::transaction(function () use($config) {
        $code = Setting::where('title','purchase_code')->first();

        if ($code)
        {
            $code->update([
                'value' => session()->get('purchase_code'),
            ]);
        }
        else{
            Setting::create([
                'title' => 'purchase_code',
                'value' => session()->get('purchase_code'),
            ]);
        }

        if (isAppMode())
        {
            $version = $config['app_version'];
            $version_code = $config['app_version_code'];
        }
        else{
            $version = $config['web_version'];
            $version_code = $config['web_version_code'];
        }

        $code       = Setting::where('title','version_code')->first();
        $current_version_no = Setting::where('title','current_version')->first();
        $version_no = Setting::where('title','version')->first();

        if ($code)
        {
            $code->update([
                'value' => $version_code,
            ]);
        }
        else{
            Setting::create([
                'title' => "version_code",
                'value' => $version_code
            ]);
        }

        if ($version_no)
        {
            $version_no->update([
                'value' => $version_code,
            ]);
        }
        else{
            Setting::create([
                'title' => "version",
                'value' => $version_code
            ]);
        }

        if ($current_version_no)
        {
            $current_version_no->update([
                'value' => $version,
            ]);
        }
        else{
            Setting::create([
                'title' => "current_version",
                'value' => $version
            ]);
        }

        if (arrayCheck('removed_directories',$config))
        {
            foreach ($config['removed_directories'] as $directory)
            {
                File::deleteDirectory(base_path($directory));
            }
        }
    });
        app_config();
        pwa_config();
    }

    protected function envUpdates()
    {
        envWrite('APP_URL', URL::to('/'));
        envWrite('MIX_ASSET_URL', URL::to('/').'/public');
        envWrite('APP_INSTALLED', 'yes');
        Artisan::call('key:generate');
        Artisan::call('migrate', ['--force' => true]);
    }
}

how can i bypass the purchase code from these codes
 
sql is required as it seems its using sql from there server . can you put you current sql to public/sql/sql.sql
 
#message: "file_get_contents(/home/jollytimechat/public_html/public/sql/sql.sql): Failed to open stream: No such file or directory"
#code: 0
#file: "/home/jollytimechat/public_html/Modules/Installer/Http/Controllers/InstallController.php"
#line: 76
#severity: E_WARNING
 
i just follow Babak instructions but i found the code is note full

like this the last line is 238
can any one provide me the full code please


Now i find the code and i add return 'verified';
but its keep asking for the code
There is a problem with your purchase code.Please contact with Envato support team.
 

Attachments

  • code.png
    code.png
    87.8 KB · Views: 10
  • codes.png
    codes.png
    120.5 KB · Views: 9
Last edited:
Modules/Installer/Http/Controllers/InstallController.php
PHP:
<?php
namespace Modules\Installer\Http\Controllers;

use ZipArchive;
use App\Traits\UpdateTrait;
use Modules\User\Entities\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\File;
use Modules\Setting\Entities\Setting;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Session;
use Nwidart\Modules\Routing\Controller;
use Modules\Installer\Http\Requests\InstallRequest;

class InstallController extends Controller
{
    use UpdateTrait;

    public function index()
    {
        try {
            return view('installer::index');
        } catch (\Exception $e) {
            dd($e);
        }
    }

    public function getInstall(InstallRequest $request)
    {
        ini_set('max_execution_time', 900); // 900 seconds
        $host           = $request->host;
        $db_user        = $request->db_user;
        $db_name        = $request->db_name;
        $db_password    = $request->db_password;

        $first_name     = $request->first_name;
        $last_name      = $request->last_name;
        $email          = $request->email;
        $login_password = $request->password;

        // Check for a valid database connection
        try {
            $mysqli = @new \mysqli($host, $db_user, $db_password, $db_name);
        } catch (\Exception $e) {
            return redirect()->back()->with('error', 'Please input valid database information.')->withInput($request->all());
        }

        if (mysqli_connect_errno()) {
            return redirect()->back()->with('error', 'Please input valid database information.');
        }

        $mysqli->close();

        // Continue with the installation process

        session()->put('email', $email);
        session()->put('first_name', $first_name);
        session()->put('last_name', $last_name);
        session()->put('login_password', $login_password);

        return redirect()->route('install.finalize');
    }

    public function final()
    {
        try {
            DB::statement('SET FOREIGN_KEY_CHECKS = 0');
            foreach (DB::select('SHOW TABLES') as $table) {
                $table_array = get_object_vars($table);
                Schema::drop($table_array[key($table_array)]);
            }
            DB::unprepared(file_get_contents(base_path('public/sql/sql.sql')));

            $zip_file = base_path('public/install/installer.zip');

            if (file_exists($zip_file)) {
                $zip = new ZipArchive;

                if ($zip->open($zip_file) === TRUE) {
                    $zip->extractTo(base_path('public/install/installer/'));
                    $zip->close();
                } else {
                    return redirect()->back()->with('error', 'Installation files not found. Please try again.');
                }

                unlink($zip_file);
            }

            $update_file_path = base_path('public/install/installer');

            if (is_dir($update_file_path)) {
                $config_file = $update_file_path . '/config.json';

                if (file_exists($config_file)) {
                    $config = json_decode(file_get_contents($config_file), true);
                    $this->recurse_copy($update_file_path, base_path('/'));
                } else {
                    return redirect()->back()->with('error', 'Config File not found. Please try again.');
                }
            } else {
                return redirect()->back()->with('error', 'Installation files not found. Please try again.');
            }

            $this->dataInserts($config);
            $this->envUpdates();
            File::deleteDirectory($update_file_path);
            sleep(3);
            Artisan::call('all:clear');
            return redirect('/')->with('success', 'Installation was successful');
        } catch (\Exception $e) {
            dd($e);
        }
    }

    protected function dataInserts($config)
    {
        try {
            DB::transaction(function () {
                $user                = User::find(1);
                $user->email         = session()->get('email');
                $user->first_name    = session()->get('first_name');
                $user->last_name     = session()->get('last_name');
                $user->password      = bcrypt(session()->get('login_password'));
                $user->save();
            });
        } catch (\Throwable $th) {
            dd($th);
        }

        DB::transaction(function () use ($config) {
            if (isAppMode()) {
                $version = $config['app_version'];
                $version_code = $config['app_version_code'];
            } else {
                $version = $config['web_version'];
                $version_code = $config['web_version_code'];
            }

            $code = Setting::where('title', 'version_code')->first();
            $current_version_no = Setting::where('title', 'current_version')->first();
            $version_no = Setting::where('title', 'version')->first();

            if ($code) {
                $code->update([
                    'value' => $version_code,
                ]);
            } else {
                Setting::create([
                    'title' => "version_code",
                    'value' => $version_code,
                ]);
            }

            if ($version_no) {
                $version_no->update([
                    'value' => $version_code,
                ]);
            } else {
                Setting::create([
                    'title' => "version",
                    'value' => $version_code,
                ]);
            }

            if ($current_version_no) {
                $current_version_no->update([
                    'value' => $version,
                ]);
            } else {
                Setting::create([
                    'title' => "current_version",
                    'value' => $version,
                ]);
            }

            if (arrayCheck('removed_directories', $config)) {
                foreach ($config['removed_directories'] as $directory) {
                    File::deleteDirectory(base_path($directory));
                }
            }
        });

        app_config();
        pwa_config();
    }

    protected function envUpdates()
    {
        envWrite('APP_URL', URL::to('/'));
        envWrite('MIX_ASSET_URL', URL::to('/').'/public');
        envWrite('APP_INSTALLED', 'yes');
        Artisan::call('key:generate');
        Artisan::call('migrate', ['--force' => true]);
    }
}

/Modules/Installer/Http/Requests/InstallRequest.php

PHP:
<?php

namespace Modules\Installer\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class InstallRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'host'          => 'required',
            'db_user'       => 'required',
            'db_name'       => 'required',
            'first_name'    => 'required',
            'last_name'     => 'required',
            'email'         => 'required|email',
            'password'      => 'required|min:6',
            'purchase_code' => 'sometimes', // تغيير هذا السطر
        ];
    }

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }
}
 
The last problem is that the file public/sql/sql.sql
And the file public/install/installer.zip
Not available
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock