redis); $power = 0; $query = "SELECT channal,owner from "._TABLE_USER_WBW_BLOCK_." where id= ? "; $row = $this->fetch($query,array($blockId)); if($row ){ if(empty($row["channal"])){ if($row["owner"]==$_COOKIE["userid"]){ $power = 30; } } else{ $power = $channelInfo->getPower($row["channal"]); } } return $power; } }