diff options
| -rw-r--r-- | FeedStatus.php | 16 | ||||
| -rw-r--r-- | feed_lib.php | 16 | ||||
| -rw-r--r-- | modules/mod_feed.php | 19 | ||||
| -rw-r--r-- | modules/mod_status.php | 12 |
4 files changed, 54 insertions, 9 deletions
diff --git a/FeedStatus.php b/FeedStatus.php index 193b772..04d1692 100644 --- a/FeedStatus.php +++ b/FeedStatus.php @@ -1,10 +1,26 @@ <?php +/** + * @version $Header$ + * + * FeedStatus class + * + * @version $Revision$ + * @package feed + */ +/** + * required setup + */ require_once( LIBERTY_PKG_PATH.'LibertyComment.php' ); require_once( USERS_PKG_PATH.'BitUser.php'); define( 'FEEDSTATUS_CONTENT_TYPE_GUID','feedstatus'); + +/** + * FeedStatus + * @package feed + */ class FeedStatus extends LibertyComment { /** diff --git a/feed_lib.php b/feed_lib.php index 3fb8f6f..fcfb7d8 100644 --- a/feed_lib.php +++ b/feed_lib.php @@ -1,5 +1,17 @@ <?php +/** + * @version $Header$ + * + * FeedStatus class + * + * @version $Revision$ + * @package feed + * @subpackage functions + */ +/** + * feed_get_actions + */ function feed_get_actions( $pListHash ) { global $gBitDb; @@ -14,7 +26,7 @@ function feed_get_actions( $pListHash ) { $whereSql = "WHERE 1=1 "; } - $query = "SELECT lal.content_id, lal.user_id, lal.log_message, MAX(lal.last_modified) AS last_modified, uu.login, uu.real_name, uu.email + $query = "SELECT lal.content_id, lal.user_id, lal.log_message, MAX(lal.last_modified) AS last_modified, uu.login, uu.real_name, uu.email FROM liberty_action_log lal INNER JOIN liberty_content lc ON (lc.content_id=lal.content_id) INNER JOIN users_users uu ON (uu.user_id=lal.user_id) @@ -76,7 +88,7 @@ function feed_get_status( $pListHash ){ $whereSql = "WHERE 1=1 "; } - $query = "SELECT lal.content_id, lal.user_id, lal.log_message, MAX(lal.last_modified) AS last_modified, lc.data, uu.login, uu.real_name, uu.email + $query = "SELECT lal.content_id, lal.user_id, lal.log_message, MAX(lal.last_modified) AS last_modified, lc.data, uu.login, uu.real_name, uu.email FROM liberty_action_log lal INNER JOIN liberty_content lc ON (lc.content_id=lal.content_id) INNER JOIN liberty_comments lcs ON (lcs.content_id = lc.content_id) diff --git a/modules/mod_feed.php b/modules/mod_feed.php index 9e1f56c..494522b 100644 --- a/modules/mod_feed.php +++ b/modules/mod_feed.php @@ -1,10 +1,21 @@ <?php +/** + * @version $Header$ + * + * FeedStatus class + * + * @version $Revision$ + * @package feed + * @subpackage functions + */ +/** + * global defs + */ global $gQueryUser,$gBitSmarty; require_once( FEED_PKG_PATH.'feed_lib.php' ); - if( !empty($gQueryUser) ){ if( !empty( $moduleParams['module_params']['no_link_user'] ) ) { @@ -22,11 +33,5 @@ if( !empty($gQueryUser) ){ $actions = feed_get_actions( $listHash ); $_template->tpl_vars['actions'] = new Smarty_variable( $actions); - - } - - - - ?> diff --git a/modules/mod_status.php b/modules/mod_status.php index a9070f4..d1f619b 100644 --- a/modules/mod_status.php +++ b/modules/mod_status.php @@ -1,5 +1,17 @@ <?php +/** + * @version $Header$ + * + * FeedStatus class + * + * @version $Revision$ + * @package feed + * @subpackage functions + */ +/** + * global defs + */ global $gQueryUser,$gBitSmarty; require_once( FEED_PKG_PATH.'feed_lib.php' ); |
