Emblem Uploader Script

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Account Upgraded | Title Enabled! alfredao is offline
    MemberRank
    Jan 2008 Join Date
    Coronel FabriciLocation
    705Posts

    Emblem Uploader Script

    Some people could not use the Rotana's Emblem Uploader Script.

    I edited it and you no longer need to access using "?step=1"
    Is only allowed to upload images and the maximum file size is 30Kb.

    Credits:
    Rotana
    Alfredao
    Attached Files Attached Files


  2. #2
    Proficient Member Zinoxity is offline
    MemberRank
    Dec 2009 Join Date
    198Posts

    Re: Emblem Uploader Script

    Nice, I remember that script since long ago (I haven't been on these forums in ages) even though I don't use this, great job!

  3. #3
    RageZone GunZ | Ex-Owner Ricky Blaze is offline
    MemberRank
    Nov 2009 Join Date
    New YorkLocation
    608Posts

    Re: Emblem Uploader Script

    Oh cool, thx for posting dled. Imma test it ;o

  4. #4
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Emblem Uploader Script

    i dont know why others had a problem with the upload script rotana made, it works fine for me

  5. #5
    Status: Pooping eele is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    915Posts

    Re: Emblem Uploader Script

    Quote Originally Posted by Joe9099 View Post
    i dont know why others had a problem with the upload script rotana made, it works fine for me
    It worked great for me to, if you couldn't get to work, you had a wrong configurated Apache Server;)

  6. #6
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Emblem Uploader Script

    maybe because ppl used wamp or xammp

  7. #7
    Status: Pooping eele is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    915Posts

    Re: Emblem Uploader Script

    Quote Originally Posted by Military View Post
    maybe because ppl used wamp or xammp
    Same for me lal.

  8. #8
    Proficient Member Zinoxity is offline
    MemberRank
    Dec 2009 Join Date
    198Posts

    Re: Emblem Uploader Script

    Most people were not able to redirect people to the "?step=1" part of the URL, and others had errors with the way the script was being used, and kind of confused people, so it became a hassle.

  9. #9
    Account Upgraded | Title Enabled! pavan33 is offline
    MemberRank
    Oct 2008 Join Date
    RageZone xDLocation
    289Posts

    Re: Emblem Uploader Script

    rotana's worked fine for me too.. and ty for the release
    Posted via Mobile Device

  10. #10

    Re: Emblem Uploader Script

    I see the changes made. Thanks for this.

  11. #11
    Valued Member marbogunz is offline
    MemberRank
    Feb 2009 Join Date
    The NederlandsLocation
    119Posts

    Re: Emblem Uploader Script

    Dude i get error s..

    "30720") { $err .= "Your file is too large.
    "; $ok = 0; } if( !in_array(strtolower($extensao), $extensoes) ) { $err .= "Wrong File Type.
    "; $ok = 0; } if ($ok == 0) { echo "Sorry your file was not uploaded
    Verify this errors

    "; echo "$err"; } else { if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "Emblem uploaded and updated succesfully
    "; mssql_query("UPDATE Clan SET EmblemChecksum = EmblemChecksum + 1 WHERE Name = '$CLID'"); mssql_query("UPDATE Clan SET EmblemUrl = 'upload/".$target."' WHERE Name = '$CLID'"); } else { echo "Sorry, there was a problem uploading your file."; } } } ?>

  12. #12
    Account Upgraded | Title Enabled! alfredao is offline
    MemberRank
    Jan 2008 Join Date
    Coronel FabriciLocation
    705Posts

    Re: Emblem Uploader Script

    Quote Originally Posted by marbogunz View Post
    Dude i get error s..

    "30720") { $err .= "Your file is too large.
    "; $ok = 0; } if( !in_array(strtolower($extensao), $extensoes) ) { $err .= "Wrong File Type.
    "; $ok = 0; } if ($ok == 0) { echo "Sorry your file was not uploaded
    Verify this errors

    "; echo "$err"; } else { if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "Emblem uploaded and updated succesfully
    "; mssql_query("UPDATE Clan SET EmblemChecksum = EmblemChecksum + 1 WHERE Name = '$CLID'"); mssql_query("UPDATE Clan SET EmblemUrl = 'upload/".$target."' WHERE Name = '$CLID'"); } else { echo "Sorry, there was a problem uploading your file."; } } } ?>
    You need a Web Server to use that script.

  13. #13
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Emblem Uploader Script

    function anti_injection($value)
    {
    $value = preg_replace(sql_regcase("/(from|select|update|set|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$value);
    $value = trim($value);
    $value = strip_tags($value);
    $value = addslashes($value);
    $value = str_replace("'", "''", $value);
    return( $value );
    }

    The two highlighted lines are the only ones that matter to prevent SQLi.

  14. #14
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: Emblem Uploader Script

    thanku

  15. #15
    Valued Member Asaki is offline
    MemberRank
    Nov 2009 Join Date
    133Posts

    Re: Emblem Uploader Script

    Quote Originally Posted by Guy View Post
    function anti_injection($value)
    {
    $value = preg_replace(sql_regcase("/(from|select|update|set|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$value);
    $value = trim($value);
    $value = strip_tags($value);
    $value = addslashes($value);
    $value = str_replace("'", "''", $value);
    return( $value );
    }

    The two highlighted lines are the only ones that matter to prevent SQLi.
    Wrong corrected : The two highlighted lines are the only ones that matter to prevent anti msSQL injections



Page 1 of 2 12 LastLast

Advertisement