Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
Web Wargames Code Snippet to use
  • Xin
    Posts: 3,251
    So this is what you need to put in your challenges for the points to work, where 1 is the challenge number and 5 is the points added

    include('addscore.php');
    $add = add_score('1','5');
    if($add)


    For example

     <?php 
    if(isset($_POST['c']))
    {
    if($_POST['c'] == \"hakin\")
    {
    include('addscore.php');
    $add = add_score('1','5');
    if($add)
    {
    print \"<h2 align=\\"center\\">Congratulations, 5 points have been awarded!</h2>\";
    }
    else
    {
    print\"<h2 align=\\"center\\">You have already completed this challenge!</h2>\";
    exit();
    }
    }
    else
    {
    // Wrong password or no password entered display this message
    if (isset($_POST['password']) || $password == \"\") {
    print \"<p align=\\"center\\"><font color=\\"red\\"><b>Incorrect Password</b><br>Please enter the correct password</font></p>\";}

    }
    }?>
    Xin