Overview  Package  Tree cmsdAm 0.8

cmsdAm

Class cmsdam_general

cmsdAm.cmsdam_general

class cmsdam_general

General purpose class.

Very poor class, it contains general purpose methods.

Class instance: $cms->general

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

Field Summary
public var$cmsdam_ob_cleaned
Method Summary
public voidcmsdam_general
public strgeneral_uptime

This is the machine uptime string.

public boolcmsdam_ob_clean

Clean the cmsdam output buffer.

public boolflush_html_header_block

Write to the browser the cmsdam HTML header.

Field Detail

cmsdam_ob_cleaned

public var $cmsdam_ob_cleaned
Method Detail

cmsdam_general()

public void cmsdam_general()

general_uptime()

public str general_uptime()

This is the machine uptime string.

Useful if you want the "uptime" string to your section, seldom needed.
Someone wont use it for security reason... NOTE: It only runs on UNIX systems, with uptime command on the php path!

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>
Returns:
The system uptime string

cmsdam_ob_clean()

public bool cmsdam_ob_clean()

Clean the cmsdam output buffer.

Use this, instead of cleaning the output buffer yourself from your section! NOTE: Calling this method prevents cmsdam from ending the html page itself! Remember to use exit() as your last line in your section if you use this method to avoid html code injected from index section.

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>
Returns:
true

flush_html_header_block()

public bool flush_html_header_block(var $page_title = "")

Write to the browser the cmsdam HTML header.

It get picked from /index_header.php. This method must be called from your section before any character is sent to the browser!!

Parameters:
$page_title
Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>
Returns:
true

Overview  Package  Tree cmsdAm 0.8