Emblem

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Emblem

    I get this error when using the emblem upload script :X someone please help
    it's not exactly an error but when i type in my wan ip thats what i see,


    Code:
    Enter your user ID:  
    Enter your password:  
    
    
     
    
    '; } if ($step == '2') { $user1 = anti_injection($_POST['user']); $pass1 = anti_injection($_POST['pass']); if (valida(Array($user1,$pass1)) == TRUE) { $query = mssql_query("SELECT AID From Login Where UserID = '$user1' AND Password = '$pass1' "); while($r = mssql_fetch_array($query)){ if (mssql_num_rows($query) == 1){ $query2 = mssql_query(" SELECT Login.UserID, Login.Password, ClanMember.Grade, Clan.EmblemUrl, Clan.Name, Clan.CLID FROM ClanMember INNER JOIN Clan ON ClanMember.CLID = Clan.CLID INNER JOIN Login INNER JOIN Character ON Login.AID = Character.AID ON ClanMember.CID = Character.CID Where Login.UserID = '$user1' and Login.Password = '$pass1' and ClanMember.Grade = '1' "); if (mssql_num_rows($query2) >= '1'){ echo '
    Please choose a file:  
    
    
     
    
    ' ; for($i='';$i < @mssql_num_rows($query2);++$i){ $row = @mssql_fetch_row($query2); $ClanName = $row[4]; echo '';echo $row[4];echo'' ; }echo'
    '; }}else { echo " ERROR GEEN CLAN ";} } } ; } ; if ($step == 'done') { $emblem = $_POST['uploaded'] ; $CLID = $_POST['clan']; $target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (!($_FILES['uploaded']['size'] > '9500')) { //echo "Your file is too large.
    "; $ok=1; if(($_FILES['uploaded']['type'] == "image/jpeg")) { $ok=1; //echo "Wrong file type.
    "; } if(($_FILES['uploaded']['type'] == "image/GIF")) { $ok=1; //echo "Wrong file type.
    "; } if(($_FILES['uploaded']['type'] == "image/PNG")) { $ok=1; //echo "Wrong file type.
    "; } } else { $ok=0;} // if ($ok==0) { echo "Sorry your file was not uploaded
    "; echo "Please check the file size or file type"; } else { if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ".basename( $_FILES['uploadedfile']['name']). " has been uploaded
    "; echo "You may close this window now"; 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."; }} }; ?>
    Last edited by lxchadxl; 10-07-09 at 12:53 AM.


  2. #2
    Rival Gamers Owner own_prox is offline
    MemberRank
    Jul 2007 Join Date
    HellLocation
    1,077Posts

    Re: Emblem

    it seems your useing it as a html file try changing the extention to .php

  3. #3
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: Emblem

    the files are all in php

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

    Re: Emblem

    Are you using AppServer or Wamp to acess this page?

  5. #5
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: Emblem

    wamp.
    bumpbump

  6. #6

    Re: Emblem

    Short open tag.

  7. #7
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: Emblem

    what do you mean short open tag, somebody please tell me how to solve? -.-

  8. #8
    Rival Gamers Owner own_prox is offline
    MemberRank
    Jul 2007 Join Date
    HellLocation
    1,077Posts

    Re: Emblem

    google (how to enable short tags on wamp) i cba to tell you

  9. #9
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: Emblem

    I enabled. still same thing.

  10. #10
    Account Upgraded | Title Enabled! Trilest is offline
    MemberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    549Posts

    Re: Emblem

    You forgot the
    PHP Code:
    <?



Advertisement