Jump to content

Conor

Members
  • Posts

    72
  • Joined

  • Last visited

Posts posted by Conor

  1. Is the file you're uploading a jpg, pjpg (whatever that is) or a gif and under 20mb?

    i tried a .jpg and .gif and i wouldnt think any picture could be over 20MB :o these ones definetly arent over that they where very small banners

    you can try yourself if you want

    http://fshanger.webatu.com/upload.php

    Invalid File, upload a .zip file only
    dont mind the last bit the file extenions are still jpg, jpeg, gif i just changed that bit because i plan to only allow .zip files
  2. Ok so this is my upload_file.php

    <?php

    if ($_FILES["file"]["error"] > 0)

    {

    echo "Error: " . $_FILES["file"]["error"] . "<br />";

    }

    else

    {

    echo "Upload: " . $_FILES["file"]["name"] . "<br />";

    echo "Type: " . $_FILES["file"]["type"] . "<br />";

    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";

    echo "Stored in: " . $_FILES["file"]["tmp_name"];

    }

    ?>

    <?php

    if ($_FILES["file"]["error"] > 0)

    {

    echo "Error: " . $_FILES["file"]["error"] . "<br />";

    }

    else

    {

    echo "Upload: " . $_FILES["file"]["name"] . "<br />";

    echo "Type: " . $_FILES["file"]["type"] . "<br />";

    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";

    echo "Stored in: " . $_FILES["file"]["tmp_name"];

    }

    ?>

    <?php

    if ((($_FILES["file"]["type"] == "image/gif")

    || ($_FILES["file"]["type"] == "image/jpeg")

    || ($_FILES["file"]["type"] == "image/pjpeg"))

    && ($_FILES["file"]["size"] < 20000))

    {

    if ($_FILES["file"]["error"] > 0)

    {

    echo "Error: " . $_FILES["file"]["error"] . "<br />";

    }

    else

    {

    echo "Upload: " . $_FILES["file"]["name"] . "<br />";

    echo "Type: " . $_FILES["file"]["type"] . "<br />";

    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";

    echo "Stored in: " . $_FILES["file"]["tmp_name"];

    }

    }

    else

    {

    echo "Invalid file";

    }

    ?>

    <?php

    if ((($_FILES["file"]["type"] == "image/gif")

    || ($_FILES["file"]["type"] == "image/jpeg")

    || ($_FILES["file"]["type"] == "image/pjpeg"))

    && ($_FILES["file"]["size"] < 20000))

    {

    if ($_FILES["file"]["error"] > 0)

    {

    echo "Return Code: " . $_FILES["file"]["error"] . "<br />";

    }

    else

    {

    echo "Upload: " . $_FILES["file"]["name"] . "<br />";

    echo "Type: " . $_FILES["file"]["type"] . "<br />";

    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";

    echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";

    if (file_exists("/wp-content/uploads/" . $_FILES["file"]["name"]))

    {

    echo $_FILES["file"]["name"] . " already exists. ";

    }

    else

    {

    move_uploaded_file($_FILES["file"]["tmp_name"],

    "upload/" . $_FILES["file"]["name"]);

    echo "Stored in: " . "/wp-content/uploads/" . $_FILES["file"]["name"];

    }

    }

    }

    else

    {

    echo "Invalid file";

    }

    ?>

  3. phpVMS Virtual Airline Administration Software

    Install Check

    Checking PHP version

    [OK] PHP version is 5.2.x

    Checking connectivity...

    [OK] Can contact outside servers

    Checking for SimpleXML module...

    [OK] SimpleXML module exists!

    Checking file hashes for corrupt or mismatched files

    [Checksum failed] /install/templates/s3_setup_finished.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/common/PIREPData.class.php did not match, possibly corrupt or out of date

    [Error] ../core/common/RegistrationData.class.php doesn't exist

    [Checksum failed] /core/common/CentralData.class.php did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/fsfk_log_flightimages.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/profile_stats.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/fsfk_log_flightplan.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/fsfk_log_flightdata.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/email_pilot_retired.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/fsfk_vaconfig.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/login_passwordreset.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/templates/pirep_editform.tpl did not match, possibly corrupt or out of date

    [Checksum failed] /core/classes/CodonEvent.class.php did not match, possibly corrupt or out of date

    [Checksum failed] /admin/modules/Maintenance/Maintenance.php did not match, possibly corrupt or out of date

    [Checksum failed] /lib/js/jquery_essentials.js did not match, possibly corrupt or out of date

    [Checksum failed] /lib/js/ofc/js-ofc-library/ofc.js did not match, possibly corrupt or out of date

    -- Checked 164 files, found 16 errors

    I fixed the registration but the rest of the problems are still there

  4. Is there anyway to require new pilots to click an activation link in there email?

    it would be helpfull because it would automaticlly add the VA email o there safe contacts list so future emails wont go into the junk filter

  5. People lie about there age all the time in websites and the second they do that they take the risk they have broken the rules and broken the law ;)

    As for claiming to be a parent youd know by the language of the amil if it was a 30-40 year old than a 10 year old ;) and besides claiming to be your parents is illegal it's identity theft

  6. Well legally the parents have control and juristiction over what they do so if they give consent to something they can do likewise in the case of a VA if the parents give consent to register and keep certain details (name age and email only) then legally we are allowed to do it

  7. It seems I am well within my limit I'm not selling a product it's not a commercial site and they have permission from there parent or gaurdian

    I should pit it on the registration page though that all applicants under the age of 13 are requested to have there parents send me an email or I a signed letter through the post

×
×
  • Create New...