public function checkChallenge($username)
 {
     $challengeInProgress = false;
     $challengeDAO = new ChallengeDAO();
     $challenge = $challengeDAO->getByUsername($username);
     if (!is_null($challenge->getChallengeId())) {
         $challengeInProgress = TRUE;
     }
     return $challengeInProgress;
 }
var_dump($fox);
//        $userSvc = new UserService();
//        $service = $userSvc->checkLogin("foxbarrelinc", "adminpwd");
//        var_dump($service);
$par1 = $_SERVER['REMOTE_ADDR'];
var_dump($par1);
$par2 = gethostbyaddr($par1);
var_dump($par2);
var_dump(redirect_arrayName());
var_dump(redirect_par());
$_SESSION[redirect_arrayName()] = redirect_par();
var_dump($_SESSION[redirect_arrayName()]);
var_dump($_SERVER['HTTP_USER_AGENT']);
$hashValue = passwordEncrypt("fifafo", "schildp@d");
var_dump($hashValue);
$color = randomColor();
echo "<span style='color:" . $color . "'>" . $color . "</span>";
$cDAO = new ChallengeDAO();
$temp_var = $cDAO->getByUsername("foxbarrelinc");
var_dump($temp_var);
$challengeSvc = new ChallengeService();
$service = $challengeSvc->getChallegeby("foxbarrelinc");
var_dump($service);
$bool_temp = $challengeSvc->checkChallenge($service->getUser()->getUsername());
var_dump($bool_temp);
$wDAO = new WeighpointDAO();
$points = $wDAO->getPointsByChallengeId($service->getChallengeId());
?>
    </body>
</html>