Enumerations | |
enum | wc_inc_path |
Functions | |
generateFeed ($wiki, $title, $lang, $fullContent, $feedType) | |
Variables | |
$file_path = __FILE__ | |
$path = dirname(__FILE__).'/' | |
$ini = new ini(wc_inc_path.'/conf/config.ini') | |
$title = isset($_GET['title']) ? varGet('title') : '' | |
$fullContent = isset($_GET['full_content']) ? true : false | |
$feedType = isset($_GET['feed_type']) ? varGet('feed_type') : wc_feed_format | |
$lang = isset($_GET['lang']) ? varGet('lang') : wc_default_lang | |
$id = 'comment_feed-'.$title.'-'.$lang.'-'.$fullContent.'-'.$feedType | |
$cacheDir = wc_inc_path.wc_cache_path.'/' | |
$options | |
$cacheLite = new Cache_Lite($options) | |
$con = new mysql(wc_db_host, wc_db_login, wc_db_password, wc_db_database) | |
$feed = generateFeed($wiki, $title, $lang, $fullContent, $feedType) | |
break | |
case | __pad0__ |
break | |
case | __pad1__ |
break |
A feed is generated to inform feed readers about the last comments in the site.
The generated feed can be in 3 formats :
The feed can contains the whole content or just a small sentence indicating the changement. This is controlled by the HTML GET variable "full_content".
The generated feed can be site wide, or related to a particular page. In that case, all comments of the page is served as a feed. This is controlled by the HTML GET variable "title".
Finally the lang can be controlled. The lang controlled in one of the lang available for the content. We're not talking about ui lang here (it doesn't make sense). It is controlled by the HTML GET variable "lang".
$options |
Initial value:
array( 'cacheDir' => $cacheDir, 'lifeTime' => 60*60 )