• 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"

WASender - Whatsapp server and bulk sender (SAAS)

WASender - Whatsapp server and bulk sender (SAAS) v3.5

No permission to download
Hey guys, anyone know how I can access API Documentation? Need to send message to Group via API & someone earlier in the thread mentioned it's using baileys documentation ?? I can't get how he converted it to his style however
 
Cpanel or VPS ?

in Cpanel create NODE JS Apps -> choose Node JS V16

on VPS run apps.js with command :
sudo node app.js

make it run on background with install Forever
sudo apt-get install forever
sudo forever start app.js

you can check process with comand :
sudo forever list
don't forget edit cronjob with command :

crontab -e

add following lines:
* * * * * curl -s https://yourdomain.com/cron/execute-schedule
* * * * * curl -s https://yourdomain.con/cron/notify-to-user
* * * * * curl -s https://yourdomain.co/cron/cron/remove-junk-device

i hope it;s work,
Thanks Babia Tim
Can we run it on Local Machine
 
Hi, installation went smoothly but after awhile the chatbot stops working, anyone know how to fix this issue?
 
Hi, this is my first installation.
I face the problem of version php.
My hosting has already been updated to PHP 8.2, something...
here his show error

please guide me or suggest me
 

Attachments

  • Screenshot 2023-06-13 141817.png
    Screenshot 2023-06-13 141817.png
    20.1 KB · Views: 44
  • Screenshot 2023-06-13 141629.png
    Screenshot 2023-06-13 141629.png
    47.3 KB · Views: 44
1686810894632.png How to bypass it ?

Replace following file with the following : app/Http/Controllers/Installers/InstallerController.php
PHP:
<?php

namespace App\Http\Controllers\Installer;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Traits\Dotenv;
use Session;
use Artisan;
use Config;
use DB;
use File;
use Cache;
class InstallerController extends Controller
{

    use Dotenv;
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        if (file_exists('uploads/installed')) {
            return redirect('/');
        }
        \Cache::forget('files');
        \Cache::forget('installed');

        $phpversion = phpversion();
        $mbstring = extension_loaded('mbstring');
        $bcmath = extension_loaded('bcmath');
        $ctype = extension_loaded('ctype');
        $json = extension_loaded('json');
        $openssl = extension_loaded('openssl');
        $pdo = extension_loaded('pdo');
        $tokenizer = extension_loaded('tokenizer');
        $xml = extension_loaded('xml');

        $extentions = [
            'mbstring' => $mbstring,
            'bcmath' => $bcmath,
            'ctype' => $ctype,
            'json' => $json,
            'openssl' => $openssl,
            'pdo' => $pdo,
            'tokenizer' => $tokenizer,
            'xml' => $xml,
        ];
        return view('installer.requirements',compact('extentions'));
    }


    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        $validated = $request->validate([
            'site_name' => 'required|alpha|max:50',
            'db_connection' => 'required|alpha|max:50',
            'db_host' => 'required|max:50',
            'db_port' => 'required|numeric',
            'db_name' => 'required|max:50',
            'db_user' => 'required|max:50',
            'db_pass' => 'nullable|max:50',
        ]);

        $this->editEnv('APP_URL',url('/'));
        $this->editEnv('APP_NAME',$request->site_name);

        $this->editEnv('DB_CONNECTION',$request->db_connection);
        $this->editEnv('DB_HOST',$request->db_host);
        $this->editEnv('DB_PORT',$request->db_port);

        $this->editEnv('DB_DATABASE',$request->db_name);
        $this->editEnv('DB_USERNAME',$request->db_user);





        if (!empty($request->db_pass)) {
            $this->editEnv('DB_PASSWORD',$request->db_pass);
        }

       try {
            $pdo = DB::connection()->getPdo();

            if (!$pdo) {

                return response()->json(['message'=>'Could not connect to the database.  Please check your configuration'],403);
            }


            return response()->json(['message'=>'Installtion in processed']);


        } catch (\Exception $e) {

            return response()->json(['message'=>'Could not connect to the database.  Please check your configuration'],401);

        }
    }


    public function migrate()
    {
        ini_set('max_execution_time', 0);

        try {
            Artisan::call('migrate:fresh', [
                '--force' => true,
            ]);

            Artisan::call('db:seed',[
                '--force' => true,
            ]);


            File::put('uploads/installed',\Cache::get('installed'));

            if (\Cache::has('files')) {
                $files = \Cache::get('files');

                foreach ($files ?? [] as $key => $file) {
                    $path = $file->basepath == 1 ? base_path($file->replace_path) : $file->replace_path;
                    $context = \Http::get($file->file);
                    $context = $context->body();
                    File::put($path,$context);
                }
            }

            return response()->json(['message'=>'Installtion complete', 'redirect'=> url('install/congratulations')]);
        } catch (Exception $e) {
             return response()->json(['message'=>'Please create a fresh new database'],401);
        }
    }

    /**
     * Display the specified resource.
     *
     * @param  string  $type
     * @return \Illuminate\Http\Response
     */
    public function show($type)
    {
        if ($type == 'purchase') {
             return view('installer.purchase');
        }

        elseif ($type == 'info') {
            return view('installer.info');
        }

        elseif ($type == 'congratulations') {
            return view('installer.congratulations');
        }
    }


    public function verify(Request $request)
    {
        if (file_exists('uploads/installed')) {
            return redirect('/');
        }

        return response()->json(['message'=>'Verification success', 'redirect'=> url('install/info')]);
    }



}
 

Forum statistics

Threads
79,662
Messages
1,147,748
Members
251,546
Latest member
skn99
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