<?php
/*
[UCenter Home] (C) 2007-2008 Comsenz Inc.
$Id: invite.php 12304 2009-06-03 07:29:34Z liguode $
*/
if(!defined('IN_UCHOME')) {
exit('Access Denied');
}
//Óû§ÈÎÎñÍê³É±êʶ±äÁ¿ $task['done']
//ÈÎÎñÍê³É½á¹ûhtml´æ´¢±äÁ¿ $task['result']
//Óû§ÈÎÎñÏòµ¼html´æ´¢±äÁ¿ $task['guide']
$query = $_SGLOBAL['db']->query("SELECT COUNT(*) FROM ".tname('invite')." WHERE uid='$space[uid]' AND fuid>'0'");
$count = $_SGLOBAL['db']->result($query, 0);
if($count >= 10) {
$task['done'] = 1;//ÈÎÎñÍê³É
} else {
//ÈÎÎñÍê³ÉÏòµ¼
if($count) {
$task['guide'] .= '<p style="color:red;">Wow, cool, you have invited '.$count.' friends. Keep it up!</p><br>';
}
$task['guide'] .= '<strong>Please follow below step to complete this activity:</strong>
<ul class="task">
<li>Earn points<a href="cp.php?ac=invite" target="_blank"> Invite friend, Click here</a>£»</li>
<li>Invite your MSN, Yahoo, Aol friends or other IMs to join;</li>
<li>You need to complete this activity by inviting 10 friends.</li>
</ul>';
}
?>