Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | Admin Panel Configuration File: Tasks SEARCH    

AdminPanel

  TechNotes
Admin Panel Configuration File: Account
Admin Panel Configuration File: Alerts
Admin Panel Configuration File: Channels
Admin Panel Configuration File: Servers
Admin Panel Configuration File: Software
Admin Panel Configuration File: Tasks
Admin Panel Installation Troubleshooting
Installing Admin Panel on a server
Where to host Mioplanet Admin Panel

  Help
01. Introduction
02. The tab Products
03. The tab Alerts
04. The tab Channels

  Products
All Products
MioDB
MioFactory
Mioplanet Admin Panel

TechNote
Admin Panel Configuration File: Tasks

Product: Admin Panel


The file tasks.mem makes it possible to automate some tasks.

To automate tasks:

- Create and configure the file panel/config/tasks/tasks.mem

- Run the script in the page every 10 minutes. Two methods are possible:
 
- Include/run the PHP script panel/engine/tasks/execTasks.php.
- Include the file panel/engine/tasks/index.php in an IFRAME. 


tasks.mem


The file must be created in can be created in panel/config/tasks/.
Create the sub-folder tasks if necessary.

Possibles keys:
 
alertsToHistory
Expired alerts in the specified alerts feeds are sent in the history file.
Set the list of alerts IDs you want to be processed.

channelsToHistory
Expired news in the specified RSS feeds are sent in the history file.
Set the list of alerts IDs you want to be processed.

Parameter relativeTime
Expressed in hours.
With this parameter you can adjust the time between the clients and the server if they are not in the same timezone.

Example:
myAlert=relativeTime:-1

 




Sample Code

channelsToHistory {
    MY_RSSFEED
}
alertsToHistory {
    MY_ALERTS_A=relativeTime:-6
    MY_ALERTS_B=relativeTime:-6
}