Author | UPDATED |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
I just update my post:
I have been trying all night, I think I fairly far but I can not get the querys to check and update properly... Right now the pass = pass thing works, it just won't say that you beat the challenge after you already got your user_basic1 updated... I think my problem is that it is not updating and that the elseif that checks to see if user_basic1 = 'Completed' doesn't work. I am not sure though there could be more.
Code
<center> .: Basic 1 :. <center>
<br>
<hr>
<?php
$pwd = basic1done;
if (!isset($_POST['user']))
{
?>
.: <b> LOGIN <b> :.
<br>
<br>
<form action="viewpage.php?page_id=22" METHOD="post" name="login">
Password
<br/>
<input class="textbox" type="password" style="width: 100px;" name="pass"/>
<br/>
<input type='submit' value='<login>'>
</form>
<!------ The first challenges are easy, your password is: basic1done ------>
<br>
<br>
<?php
mysql_select_db('unrealcomps_game');
if ($_POST['pass'] == $pwd and $sql = 'SELECT user_basic1 = \'Uncompleted\' FROM fusion_users WHERE user_id LIMIT 0, 30 ')
{
print "<center><font color='white'><br><br>Congrats 5 points will be added!<br /><br /><font /><center />";
$sql = 'UPDATE fusion_users SET user_basic1 = \'Completed\' WHERE 1';
}
elseif ($_POST['pass'] == $pwd and $sql = 'SELECT user_basic1 = \'Completed\' FROM fusion_users WHERE user_id LIMIT 0, 30 ')
{
print "<center><font color='white'><br><br>Congrats 5 points will be added!<br /><br /><font /><center />";
}
elseif ($_POST['pass'] == $pwd)
{
print "<center><font color='white'><br><br>Your password was incorrect!<br /><br /><font /><center />";
}
}
print "<center><font color='white'><br><br><br><br>If your lost <i>go here<i /><br /><br /><br /><br /><font /><center />";
?>
P.S. This is not the right catagory so if an admin could more it to general I would be grateful
Edited by on 01-10-07 17:29 |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
I am still googling just to clear that up. |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Okay I found a compiler... I still need a decompiler... (java) |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
dont keep making posts, just edit the original one.
|
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Okay, from now on I will just edit this one  |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Try DJ Java Decompiler, it decompiles your classes into humanized readable java files unless it's obfuscated and javac.exe, etc. can be downloaded, of course, from www.java.sun.com. Better try looking for its J2SE download sections to find your wanted stuffs. And, mostly java progs usually use MD5, DES algo by default... better check its Crypto package...
Cheers!
|
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
what are you actually googling to not be able to find something?
|
 |
Author | RE: general questions |
regret Member

Posts: 144 Location: edge of existence...
Joined: 16.10.06 Rank: Apprentice | |
I'm not sure which OS you're looking to get a compiler/IDE for, but...
Windows: JBuilder and IDEA
Linux/Unix: JBuilder, Netbeans, Eclipse, Forte, Vide, and the GCJ stand-alone complier.

I am the machine that reveals the truth to you as only I can see it.
Memories are nice, but that\'s all they are....memories.
You can\'t ever find a place that\'s nice and peaceful, because there isn\'t any. You may think there is, but once you get there, when you\'re not looking, somebody\'ll sneak up and write \'Fuck you\' right under your nose. |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Alright, I got a .class java decompiler 'jad' but know I need one that will decompile .jar Thanks for in info!
P.S. I am googleing .jar decompiler |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
masta_hacks, you made 50 threads these 2 days.
I am really tired of your shit.
|
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
do you even know wat a .jar file is? maybe you should wiki that first
|
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
W / E I already decrypted it no thanks to anyone other than lum0s. If you don't like my posts then don't read them. I already said I was gonna edit this one. |
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
masta_hacks wrote:
W / E I already decrypted it no thanks to anyone other than lum0s. If you don't like my posts then don't read them. I already said I was gonna edit this one.
STFU, don't waste our time.
50 fucking threads that can be done in one google search.
Fuck off, bitch.
(Sorry for uncensored naughty words. I had to use them.)
|
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
the only good thing your threads are for is flaming and inceasing post count
|
 |
Author | RE: general questions |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Will you make an article how to find a java compiler now?
|
 |
Author | RE: UPDATED |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
I just updated my post, thanks for reading it  |
 |
Author | RE: UPDATED |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
sorry but that php code is awful. it just wont work. there are way too many bugs and syntax errors in it with both the php and sql to fit in one post so im just going to advise you to read the manual on php.net.
|
 |
Author | RE: UPDATED |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Could you tell me one of them? |
 |
Author | RE: UPDATED |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
the second line of php you check a variable which doesnt exist, namely $sql.
if youre trying to query the database you need to first:
$query=mysql_query("SELECT * FROM tablename WHERE username=[persons username]" ;
$result=mysql_fetch_assoc($query);
if($result['fieldname']=="somevalue" {
carry on code here
}
|
 |
Author | RE: UPDATED |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Oh okay thank you  |
 |