Jump to content
xisto Community

HmmZ

Members
  • Content Count

    365
  • Joined

  • Last visited

Posts posted by HmmZ


  1. Hmm,Lucky to see sierrad was offended by the -1rep...I found out who and what...Click on sierrad (username)click on the -1rep pntsthen click on thomas4 (username) the one who gave it to her..without reason aswellOnce you click his name then the error returns on a next page


  2. I ám using that code ($pass=md($pass):) look again :)

    What I meant, was that with the registration, the password will come hashed into the table, and I thought with the login it would then require to insert the hashed password (a whole different password then the user wanted..), so basically, im using the md5 in the registration ánd with the login, and theres where my question earlier comes in, does thát matter?

    and could you tell me what a custom salt is?
    I've heard about it before, but i don't know what people mean by that ;)

    and thanks for the tip on single quotes and the urldecode()

    Oh, and you want to be careful when passing user-entered values directly to a MySQL query. It can create all sorts of problems of the security kind.

    ??Their values go through some stripping first don't they? Once stripped and secured from sql injection, then the values are send through a query, so why wouldn't this be secure? B)

  3. the 26 days was calculated with 1.5minute songs, but the average song these days is 3-4minutes long....so it would double the amount of days...I have 1 gigabyte of songs on my HD, but i only listen to like...100mb of those songs XD.Well one thing is certain, they are better off with enabling it to be a portable HD, instead of enabling it only for songs, else noone would be buying these things...I hope Duracell or something comes up with like...ultra-lithium batterys or something, else it wouldn't be possible to listen the whole thing off, and I hate the idea of:Instead of carrying 10 dvds, carrying 50batterys just to keep up with the portable HD eating all your batterys energy..hehe :)


  4. mySQL query error: SELECT title FROM trap17_ipbtopics WHERE tid =

     

    mySQL error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

    mySQL error code:

    Date: Tuesday 29th of March 2005 11:48:43 PM


    This happened when I clicked a users reputation (he had -1 so i wanted to check it out), from there I clicked on the user that gave the -1 rep, the following page had this error (the rest was blank)

     

    Notice from serverph:
    Placed error report in quote tags.


  5. Thang Global is a game I recently joined, and it's a great mmorpg so far, even though they don't have quests (except for the beginners quest), they have enough other aspects that balance the lack of quests:

     

    -Nice graphics

    -fast-paced battles

    -Vendoring (having a shop)

    -Refining your weapons and armor

    -weapon combos

    -6slotted combination set where you can enhance hp/mp/crit chance/attack rating/defence rating

     

    Overal a good game, they are in Open Beta, but, with the introduction of game money for real money, they pretty much turned into a F2P game (free to play).

     

    just check it out :)

    Thang Global


  6. If your using CSS:

    body{

    scrollbar-face-color: #color;

    scrollbar-shadow-color: #color;

    scrollbar-highlight-color: #color;

    scrollbar-3dlight-color: #color;

    scrollbar-darkshadow-color: #color;

    scrollbar-track-color: #color;

    scrollbar-arrow-color: #color;

    }

     

    If you just want to edit 1 page:

    <style>scrollbar-face-color: #color; scrollbar-shadow-color: #color; scrollbar-highlight-color: #color; scrollbar-3dlight-color: #color; scrollbar-darkshadow-color: #color; scrollbar-track-color: #color; scrollbar-arrow-color: #color;</style>

     

    experiment with the colors :)


  7. Hmm,

    the error says theres a problem on line 20...

    // Then you need to make sure the database you want// is selected.mysql_select_db($db);?>

    try the following:
    mysql_select_db("$db",$ms);

    if that doesnt work you can try to take off the apostrophes, if the problem still persists please reply again

    P.S. please don't forget that Xisto uses your cPanel username in db usernames and dbs, e.g. cpanelusername_dbusername and yourcpanelusername_dbname.

  8. Ok, vizskywalker was finally able to solve the problem with my registration, but when I tried to login with my testaccount, it just continuously give me the "wrong username/password" error, i registered a new account and tried again, but still fails...

     

    here's the authentication page...:

    <?php $user = $_POST['username'];$pass = $_POST['password'];$user=strip_tags($user);$pass=strip_tags($pass);$user=str_replace(" ","",$user);$pass=str_replace(" ","",$pass);$user=str_replace("%20","",$user);$pass=str_replace("%20","",$pass);$user=addslashes($user);$pass=addslashes($pass);$conn = mysql_connect("localhost","***","***");mysql_select_db("***");$pass=md5($pass);$request = "SELECT * FROM go_logintable WHERE password='$pass' AND username='$user'";$results = mysql_query("$request",$conn);if(mysql_num_rows($results)==0){	echo "Username/Password Incorrect";	$_SESSION['auth'] = false;}else{	echo "Succesfully logged in";	$_SESSION['user'] = $user;	$_SESSION['auth'] = true;}?>
    I don't know if it matters, but the registration also uses $password=md5($password), so the password is already encoded, like i said, i dont know if that matters.

     

    also, since the error i get is displayed with

    if(mysql_num_rows($results)==0)
    maybe the problem is there..

     

     

    [And again...sorry im bugging you guys..again :)]


  9. Well...I started all over, writing the whole thing all over again (it was getting confusing), BUT, of course, it's not working B)

    It does give me the errors i worked on (passwords dont match, emails dont match, didnt fill everything out) and it gave me the success message, the only problem now is...it doesnt insert the info in the table B):D:)B):):(;)

    so here is, once more (HOPEFULLY!), my register_user page:

    <?phpinclude "http://forums.xisto.com/no_longer_exists/ "http://forums.xisto.com/no_longer_exists/ Variables$host="localhost";$user="***";$pass="***";$db="***";$table="***";//registration shortcuts$username=$_POST['username'];$password=$_POST['password'];$password2=$_POST['password2'];$fullname=$_POST['fullname'];$gender=$_POST['gender'];$birthday=$_POST['birthday'];$birthmonth=$_POST['birthmonth'];$birthyear=$_POST['birthyear'];$country=$_POST['country'];$email=$_POST['email'];$email2=$_POST['email2'];if ($password!=$password2) {	print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>Your Confirm Password didn't match the original password</b><br><A HREF='javascript:history.back()'><img src='http://forums.xisto.com/no_longer_exists/; border='0'></A></td></tr></table>";}if ($email!=$email2) {	print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>Your Confirm E-Mail didn't match the original E-Mail</b><br><A HREF='javascript:history.back()'><img src='http://forums.xisto.com/no_longer_exists/; border='0'></A></td></tr></table>";}if ($username==''||$password==''||$fullname==''||$country==''||$email=='') {	print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>You did not fill out all the fields</b><br><A HREF='javascript:history.back()'><img src='http://forums.xisto.com/no_longer_exists/; border='0'></A></td></tr></table>";}//Connect..mysql_connect($host,$user,$pass) or die(mysql_error());mysql_select_db($db) or die(mysql_error());$password=md5($password);$addit="INSERT into $table VALUES ('$username','$password','$fullname','$gender','$birthday','$birthmonth','$birthyear','$country','$email')"; mysql_query($addit);print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>Registration was succesfull, you can now log in</b></td></tr></table>";}?>
    I think there must be a problem in the connect part...=/

  10. Haha,

     

    Nice little tut, Ill add a bit

     

    If you have many programs you wish to put in one new folder (in my example we will use Applications with my HD=C:/) This is also WinXP tutorial material!

     

    Step 1:

    =>go to my computer

    =>then to your main HD C:/

    =>then to your documents and settings folder C:/Documents and Settings/

    =>then choose your user folder [if its your comp, choose "all Users"]C:/Documents and Settings/All Users/

    =>go to the "menu start" folder C:/Documents and Settings/All Users/Menu Start/

    =>once your there, go to "Programs" folder C:/Documents and Settings/All Users/Menu Start/Programs/

    =>Youre finally at the place where the real action comes, make a new folder in this map, name it to your desire (in my example we use "Applications")

     

    To check you did it right, go to your start>Programs and see if you see the folder you just created

     

    =>In your new folder (Applications) drag and drop the programs you want in there, in my example, I will put some applications in the folder

    =>In my Applications folder, ive dragged Photoshop, Word, Antivirus Software and my AntiSpyware.

     

    If i go to Start>Programs>Applications I can now select any of the applications I just dragged into the folder

     

    I've explained it in great detail, so now it may look harder then it is, but if you try it, you'll see its a matter of seconds to do it, a useful way to make new folders in my start menu :)


  11. It was actually a questioning statement rather then just a plain statement, as ive mentioned before im a noob in php...

    It's funny how people will blame anything/anyone other than themselves.

    so NO need to say that, first read right before judging like that...

    second, it was solved so why dig the thread up again, you'll only get other threads down in the list...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.