$userid = $user->userid;
 //if ($userid != '137108251921190199260') { // '1722128760393014001402920636'
 //	continue;
 //}
 $USER = $user;
 $nextMessage = "";
 //'<div style="font-family:sans-serif,Arial,Helvettica; font-size: 10pt">';
 $followlastrun = $user->followlastrun;
 $now = time();
 if ($followlastrun == 0) {
     $timeback = 3600;
     //3600 = 1 hour
     $followlastrun = $now - $timeback;
 }
 // GET PEOPLE THEY FOLLOW
 $followingusers = getUsersBeingFollowedByMe($userid);
 $countj = count($followingusers);
 for ($j = 0; $j < $countj; $j++) {
     $next = $followingusers[$j];
     $name = $next['Name'];
     $nextuserid = $next['UserID'];
     $as = getUserActivity($nextuserid, $followlastrun);
     if ($as->totalno > 0) {
         $nextMessage .= '<br />' . $LNG->ADMIN_CRON_FOLLOW_USER_ACTIVITY_MESSAGE . ' <span style="font-weight:bold">' . $name . '</span>: <a href="' . $CFG->homeAddress . 'ui/popups/activityviewerusers.php?userid=' . $nextuserid . '&fromtime=' . $followlastrun . '">' . $LNG->ADMIN_CRON_FOLLOW_SEE_ACTIVITY_LINK . '</a>';
     }
 }
 // GET ITEMS THEY FOLLOW
 $itemArray = getItemsBeingFollowedByMe($userid);
 $k = 0;
 $countk = count($itemArray);
 for ($k = 0; $k < $countk; $k++) {
예제 #2
0
				<td align="right" width="10%"><b><?php 
echo $LNG->USER_HOME_TABLE_ACTION;
?>
</b></td>
				<td align="right" width="10%"><b><?php 
echo $LNG->USER_HOME_TABLE_VIEW;
?>
</b></td>
			</tr>
			<tr>
				<td colspan="5" valign="top" style="border-top: 1px solid #666666 "></td>
			</tr>

		<?php 
$followingCount = 0;
$userArray = getUsersBeingFollowedByMe($user->userid);
$i = 0;
$count = count($userArray);
for ($j = 0; $j < $count; $j++) {
    $next = $userArray[$j];
    $i++;
    $name = $next['Name'];
    $nextuserid = $next['UserID'];
    ?>
			<tr>
				<td style="color: #666666 "><?php 
    echo $LNG->USER_HOME_PERSON_LABEL;
    ?>
</td>
				<td align="left"><?php 
    echo $name;