-
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."; }} }; ?>
-
Re: Emblem
it seems your useing it as a html file try changing the extention to .php
-
Re: Emblem
-
Re: Emblem
Are you using AppServer or Wamp to acess this page?
-
Re: Emblem
-
Re: Emblem
-
Re: Emblem
what do you mean short open tag, somebody please tell me how to solve? -.-
-
Re: Emblem
google (how to enable short tags on wamp) i cba to tell you
-
Re: Emblem
I enabled. still same thing.
-
Re: Emblem