Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Custom package



Threaded Mode | Print  

 Custom package (1 Replies, Read 815 times)
tenutso
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hi I'm trying to create custom package which combines two software packages which we author. The problem is that I need to create two cron entries since they both run at different intervals. I solved this problem seemingly by using cPanel's api to create cron jobs (inside install.php) but I can't seem to figure out how to pull in customer's cpanel username and password into install.php. The package is being provisioned by whmcs in the standard way. Any suggestions?
IP: --   

Custom package
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5647
Status:
Hi,

You can use the following function in install.php to add a Cronjob for your custom script :
PHP Code

 global $softpanel;
$cron_min '*';
$cron_hour '*';
$cron_day '*';
$cron_month '*';
$cron_weekday '*';
$command 'php '.$__settings['softpath'].'/cron.php'// $__settings['softpath'] will be the path to installation
$softpanel->addcron($cron_min$cron_hour$cron_day$cron_month$cron_weekday$command); 



-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 19, 2024, 4:20 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.030