Ejemplo n.º 1
0
/**
 * Get all the contests registered
 * @global type $login_uid
 * @global type $logged
 * @return type 
 */
function get_contests_reg()
{
    global $login_uid;
    global $logged;
    if (!$logged) {
        return FALSE;
    }
    $reg = new ContestRegistrationTbl();
    if (!$reg->GetByField("uid", $login_uid)) {
        return array();
    }
    $cidlist = array();
    do {
        $cidlist[] = intval($reg->detail['cid']);
    } while ($reg->MoreRows());
    return $cidlist;
}