.pdf)
WHM Plugins
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | LogManager::savesettings( archive, remarchive ) |
| Description: | Change the account's log archival settings. |
| Parameters: | |
| archive (boolean) | |
| This parameter allows you to specify whether or not to archive logs. A value of 1 indicates that logs should be archived. | |
| remarchive (boolean) | |
| Whether to remove existing logs. A value of 1 indicates that logs should be removed. | |
| Returns: | |
This function does not produce any output.
|
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | LogManager::showsettings( ) |
| Description: | Retrieve the current log archival settings. |
| Returns: | |
The output will contain a chunk of HTML similar to: <input value=1 type=checkbox name=archivelogs> Archive Logs in your home directory at the end of each month <br /> <input value=1 type=checkbox name=remoldarchivedlogs> Remove the previous month's archived logs from your home directory at the end of each month <br /> |
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | LogManager::listdownloads( ) |
| Description: | List raw access logs available for download. |
| Returns: | |
The output will contain the following chunk of HTML, repeated for each log available: <a href="/getlogarchive/$logfile">$logfile</a> |