Create a addon module for WHMCS for runs remote scripts in other servers. After this, the module donwload a PDF or similar file to send to the customer and donwload in the customer panel.
[url removed, login to view]
Features of WHMCS Addon Script
The idea its generate an addon to allow to run some scripts in other servers with cron timetable. (date and time) (Daily, weekly, twice a month and monthly , and runs the script, for example.
The script in the other server store a file that the addon donwload and upload into customer panel. Then send an email to the customer, with WHMCS and file attached. This file can naming like….. [url removed, login to view]
Features in Admin side
Posibility to create different services (remote scripts)
Each service can differents fields
Service Name (the customer can be this name)
IP of the remote server (the remote ssh)(*)
Script for run (for example /root/scripts/[url removed, login to view])(*)
The file of the result script (for example /tmp/[url removed, login to view](*)
Time: In minutes. The time to wait to donwload the result file.
Envío del resultado al cliente y listado en downloads al cliente
Fields with (*) can introduce wildcard that can be sustituted by the domain name, the ID customer etc. (these fields are neccesary to generate the expression to send to the remote server for the call.
For example. We can call to the script with user ID and domain. The domain and the ID are in the WHMCS customer panel.
Script: /root/scripts/[url removed, login to view] $domain $ID
Donwload: /tmp/$domain$[url removed, login to view]
Time in minutes: 20
The script runs with the select schedule and with the sent paremeters and then donwload the associate file. Send the email to the customer and Upload the file to the customer area with date, time and domain
Features in Customer side
The domain to scan (the customer fill this in the cart) The customer cant change this
The associate service (The name of the service) (Only admin can select this) With this filed you can know th script that the WHMCS can run
The ID of verification. Ramdom hexadecimal de 20 digit( no changes and the customer can see in customer area) With this ID the script knows if the URL site its verified.