Display countdown timer to show when next scheduled cron job will execute
$30-100 USD
Pagado a la entrega
Need addon for FBML Facebook App <[url removed, login to view]>
The application has 4 stats that are executed using cron jobs. I would like a countdown timer placed under each stat to show time left for next cron job to execute.
## Deliverables
Again, I would like a displayed countdown clock shown underneath each stat that changes as a result of a cron job being executed.
The timer should be in sync with when the job is executed.
The facebook app is not using iframes, it is fbml.
One of my stats is Energy.
The cron job is set to go off every 5 mins. The execution file is:
<?php
//Database
include_once("[url removed, login to view]");
//Application Library
include_once("[url removed, login to view]");
CronJobForEnergy();
?>
The command in [url removed, login to view] is:
//Cron Job for Energy
function CronJobForEnergy()
{
? $appSetting = ApplicationSetting();
? $time = time();
? db_execute("Update user set energy=energy+1, last_charge=".$time." where energy<energy_max and (".$time."-last_charge)>=".$appSetting["cron_energy_stemina"]);
}
The display of the current energy is:
<?= $user["energy"]?>
Nº del proyecto: #3065193