Jump to content
xisto Community

Eggie

Members
  • Content Count

    244
  • Joined

  • Last visited

Everything posted by Eggie

  1. oh...i didn't know it's that much....but i only learned to do it with cron jobs so i posted that script before...i'm a newbie in scripting so i really don't know about that...(i'm currently getting my register script to work and helping bhupinunder with his game)@pyost:you have msn???if you do pls send me PM with it..i need help asap
  2. why don't you want to work with cron jobs...it's not that hard...you have the script i wrote for you and you just need to adjust it and it will be over...i always like helping people with something i know and that's what i ask from other people...to help me if i have problems
  3. you can either raise 0.08 hp per minute or you can raise 5 HP per hor which is better if you ask me... <?php$cpass=insert_your_own_password_here;$revive=$_GET["revive"];if ($revive == $cpass) { mysql_query("update players set hp=hp+5"); print "Revive Complete"; exit;}?>now go to cron jobs in cpanel...let's say that the above code is in your www/ folder named revive.php writelynx -dump http://yourgameurl.com/folder/revive.php?revive=insert_your_own_password_here > /dev/nulland set it to hourly(to do that script every hour) did that help?i hope it did! Eggie
  4. solved again )) mysql_query("UPDATE users SET userpass = '".md5($_POST['pass'])."' WHERE email = '".$_POST['email']."'") or die(mysql_error()); pls put [sOLVED] in the topic name(and delete this)
  5. 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 'email=jurica@mail.com' at line 1
  6. <?php$dbh = mysql_connect('localhost','jaskaran_gc','gc') or die("Cannot Connect: " . mysql_error());mysql_select_db('jaskaran_gc',$dbh);?><form method="post" action="restore.php?recover=answer"><tr><td>Email:</td><td><input type="text" name="email"></td></tr><tr><td>pass:</td><td><input type="password" name="pass"></td></tr><p><input type="submit" value="Submit!"></p></form><?phpif ($_GET['recover'] == 'answer') mysql_query("update users set userpass=$_POST['pass'] where email=$_POST['email']") or die(mysql_error());?> whats wrong now?(i should have asked from the start for someone to solve it now now when no one will answer) Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jaskaran/public_html/restore.php on line 11
  7. While trying to make password recovery script for "bhupinunder" i run into a problem... i made this: <?php$dbh = mysql_connect('localhost','jaskaran_gc','gc') or die ("Cannot Connect: " . mysql_error());mysql_select_db('jaskaran_gc',$dbh);?><form method=post action=restore.php?recover=answer><?php print"Email:</td><td><input type=text name=email></td></tr>";?><P><INPUT TYPE=submit VALUE=Submit!></P></form><?phpif ($recover=answer) print"$email";?>and it doesn't print anything...but if i put it like this <?php$dbh = mysql_connect('localhost','jaskaran_gc','gc') or die ("Cannot Connect: " . mysql_error());mysql_select_db('jaskaran_gc',$dbh);?><form method=post action=restore.php?recover=answer><?php print"Email:</td><td><input type=text name=email></td></tr>";?><P><INPUT TYPE=submit VALUE=Validate it!></P></form><?phpif ($recover=answer) print"ssss";?> it just shows that form and prints how do i make it that i type email and click submit that the email is stored in "$email" if someone help me with that i don't think that i'll have any problems storing it in mysql! pls respond
  8. Is there any way i could add another bookmark toolbar on my firefox browser??i already googled it and didn't find the answer...i found how to add toolbar but i can only add icons in it and i cant put bookmark toolbar in it?does anyone know how to do it?answer would be appreciated !
  9. those passwords are encoded so i think that you can't modify them from phpmyadmin like you want...you need to do something and i will find out what Edit: i have found out that md5() function returns hashed version of your password and puts it into your database...that's what the problem most probably... so you need to hash your password you want to replace it with or remove md5() from your register script(which is not good) if you needed that information because you are creating a register script,put md5()function into it do it like this: $db_pass5 = md5($new_pass);mysql_query("insert into players (pass) values(''$db_pass5)") or die("Could not register.. trouble with adding you to the players table.");that should do it... i hope i helped
  10. 1.my video card is embed Intel 82865G Graphics2.It's stand alone version so it doesn't need quake 3 installed3.I solved it...i installed Intel Extreme Graphics 2 and it is solved...i don't know how because my Windows is XP professional and Intel Extreme Graphics is not for that OS!
  11. ok..but i can't now...my girlfriend is here and she's pissed...i will post here if it solved the problem or it didn't and thank you for posting EDIT:i tried it and still nothing...i really don't know why....damn
  12. Should i put that in "config.php" or?and i already posted few times that it does connect to database but something is wrong and it doesn't put information while registering....
  13. While installing Bid for power(stand alone quake 3 mod) i got the Quake 3 console blue screen like you got when usually starting to play quake 3 and this comes out and stops! when it says "Initializing OpenGL driver" some warnings and errors come out....I don't know how to solve it...anyone got a clue?
  14. most people give their websites to the most search sites they can...but the primary is google cause most people use it and aging it's the best..use google and be prod that it exists
  15. isn't that the same as mine...just your has more lines? i don't think that that's the problem...
  16. This is how i connect to my database: config.php <?phpmysql_pconnect("localhost","eggie_Eggie","jajetic");mysql_select_db("eggie_Eggie");$cpass="resetpasswordhere";$gamename="Land of Damned";$site_com = "eggie.sphosting.com"; $end_of_email = "@eggie.sphosting.com"; $admin_name = "Eggie";$admin_email = "jurica@mail.com"; $bottom_link = "http://eggie.sphosting.com"; // note some of these just dont work...$top_color = "000000";$table_border = "466AB0";$text_color = "466AB0";$bg_color = "#000000";$bordercolor = "#666666";$bg_color2 = "#003366";$highlitec = "#003366";$forumsbgc = "#000000";if ($title == NULL) { $title = "CANNOT FIND NAME OF PAGE!";}else{ end;}?> this is my register script::register.php it includes head.php which includes config.php <?php $title = "Register"; include("head.php"); ?><script language="JavaScript" type="text/JavaScript"><!--function launchName() { name=window.open("reghelp.php?help=Name","","width=200,height=200,top=100,left=100,resizable=yes,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")}function launchSecquestion() { secquestion=window.open("reghelp.php?help=SQ","","width=200,height=200,top=100,left=100,resizable=yes,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")}function launchSecanswer() { secanswer=window.open("reghelp.php?help=SA","","width=200,height=200,top=100,left=100,resizable=yes,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")}function launchRefid() { refid=window.open("reghelp.php?help=refid","","width=200,height=200,top=100,left=100,resizable=yes,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")}function launchClasses() { refid=window.open("reghelp.php?help=classes","","width=400,height=400,top=100,left=100,resizable=yes,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")}</script><?phpif (!$action == 'register') {?><center><b>A random password will be sent to your e-mail after registration</b><br /><br /><b>/@*#%{}()-<> can't be used.</b><br /><br /><b>The e-mail can't be sent to AOL, Netscape, or Comcast accounts as far as I know. Use <a href=http://yahoo.com/ /><br /><br /><b>* = Required Information</b><br /><br /><br /><?php$players = mysql_query("SELECT * FROM players WHERE varified = 'Yes'") or die(mysql_error());$nump = mysql_num_rows($players);echo "<b>$nump</b> people have already registered.";?></center><br /><form method="post" action="register.php"><input type=hidden name="action" value="register" /><center><table><tr><td>*Username:</td><td><input type=text name=new_user>-<a href="java script:launchName()">?</a></td></tr><tr><td>*Class:</td><td> <select size=5 name="class" id="class"> <option value="Swordman">Swordman</option> <option value="Archer">Archer</option> <option value="Thief">Thief</option> <option value="Mage">Mage</option> <option value="Acolyte">Acolyte</option> </select>-<a href="java script:launchClasses()">?</a> </td></tr><tr><td>*Password:</td><td><input type=password name=new_pass></td></tr><tr><td>*Varify Password:</td><td><input type=password name=var_pass></td></tr><tr><td>*Email:</td><td><input type=text name=new_email></td></tr><tr><td>*Varify Email:</td><td><input type=text name=var_email></td></tr><tr><td>*Password Recovery Question:</td><td> <select name=sec_question id=type> <option value="Whats your mothers Maiden Name?">Whats your mothers Maiden Name?</option> <option value="When is your B-day?">When is your B-day?</option> <option value="What is your pets name?">What is your pets name? </select>-<a href="java script:launchSecquestion()">?</a> </td></tr><tr><td>*Answer:</td><td><input type=text name=sec_pass>-<a href="java script:launchSecanswer()">?</a></td></tr><?phpprint "<tr><td>Referral ID:</td><td><input type=text name=ref value=$ref>-<a href=java script:launchRefid()>?</a> <i>Not needed</i></td></tr><tr><td colspan=2 align=center><input type=submit value=Register></td></tr></form></table></center>";}?><?phpif ($action == 'register') {$new_user = htmlspecialchars($new_user);$new_user = strip_tags($new_user);$skill = htmlspecialchars($skill);$new_pass = htmlspecialchars($new_pass);$var_pass = htmlspecialchars($var_pass);$new_email = htmlspecialchars($new_email);$var_email = htmlspecialchars($var_email);$sec_question = htmlspecialchars($sec_question);$sec_pass = htmlspecialchars($sec_pass);$ref = htmlspecialchars($ref);if (ereg("^([a-zA-Z0-9_\.]*)@([A-Za-z0-9_]*)\.([A-Za-z_\.]*)$", $new_email)) {if(eregi('[/@*#%{}()=<>-]', $new_user)) { print "The Username contains an invalid character!"; include("foot.php"); exit;}if(eregi('[/@*#%{}()=<>]', $sec_question)) { print "'$sec_question' contains invalid character(s)!"; include("foot.php"); exit;}if(eregi('[@*#%{}()=<>-]', $sec_pass)) { print "'$sec_pass' contains an invalid character(s)!"; include("foot.php"); exit;}if(strlen($new_user) < 3) { print "Your Username $new_user is too small, 3 character minimum"; include("foot.php"); exit;}if(strlen($new_user) > 15) { print "Your Username $new_user is too big, 15 character maximum"; include("foot.php"); exit;}if(strlen($new_pass) < 3) { print "Your Password $new_pass is too small, 3 character minimum"; include("foot.php"); exit;}if(strlen($new_pass) > 15) { print "Your Password $new_pass is too big, 15 character maximum"; include("foot.php"); exit;} if (!$new_user || !$new_email || !$sec_question || !$sec_pass || !$new_pass || !$var_pass || !$class) { print "You must fill out all fields."; include("foot.php"); exit; } $dupe1 = mysql_num_rows(mysql_query("select * from players where user='$new_user'")); if ($dupe1 > 0) { print "Someone has already registered that username. Please choose another."; include("foot.php"); exit; } $dupe2 = mysql_num_rows(mysql_query("select * from players where email='$new_email'")); if ($dupe2 > 0) { print "Someone has already registered using that email."; include("foot.php"); exit; } if ($new_email != $var_email) { print "The emails do not match."; include("foot.php"); exit; } if ($new_pass != $var_pass) { print "The passwords do not match."; include("foot.php"); exit; } if ($class == "Swordman") { $charclass = "Swordman"; } if ($class == "Archer") { $charclass = "Archer"; } if ($class == "Thief") { $charclass = "Thief"; } if ($class == "Mage") { $charclass = "Mage"; } if ($class == "Acolyte") { $charclass = "Acolyte"; } $email_pass = ($new_pass); $db_pass = md5($new_pass); $db_pass2 = md5($db_pass); $db_pass3 = md5($db_pass2); $db_pass4 = md5($db_pass3); $db_pass5 = md5($db_pass4); mysql_query("insert into players (user, email, pass, question, answer, class) values('$new_user','$new_email','$db_pass5', '$sec_question', '$sec_pass','$charclass')") or die("Could not register.. trouble with adding you to the players table."); $randomver = rand(1000 , 9000); $info = mysql_fetch_array(mysql_query("select * from players where user='$new_user' and pass='$db_pass5'")); mysql_query("insert into register (userid, refid, random) values('$info[id]','$ref','$randomver')") or die("Could not register. trouble with adding you to the register table."); $register = mysql_fetch_array(mysql_query("select * from register where userid='$info[id]'")); $message = "Welcome to $site_com\nYou must validate your account by clicking the link below\n<a href=$email_link/verify.php?action=verify&id=$info[id]&pass=$register[random]>Click Here</a>\nYour Username is: $new_user\nYour Password is: $email_pass\nThank You for signing up\n\n\nDON'T REPLY TO THIS E-MAIL, IT IS AUTOMATED."; mail("$new_email", "Welcome to $site_com", "$message","From: webadmin$end_of_email\r\n"."Reply-To: $admin_email\r\n"."X-Mailer: PHP/" . phpversion()) or die("Well bad news is, your user name is now taken, more bad news is that the e-mail could not be sent"); print "<center><br><br><b><i><u>You have now registerd to play $gamename. Please check you e-mail for the verification link. E-mail can take up to 24 hours to recieve, please be patient</center></b></i></u><br>"; echo mysql_error();}else{ print "Your e-mail is in an invalid format"; include("foot.php"); exit; }}?><?php include("foot.php"); ?> Remove my credits if you want to vujsa:P EDIT:i said that i reinstalled all the scripts to original and sql tables but it didn't help me solve the problem http://forums.xisto.com/no_longer_exists/ thats the page for registration and it is getting from the table that one person is registered(the one i made manually in the mysql) but it won't put anything into the tables
  17. Can't you help me?;)i would like help from anyone only if he's not so stupid that he steals my scripts or delete my hosting plan but i think that noone will...i believe that people won't fool me:) i hope i'm right
  18. i meant that i will give you my Cpanel login information if you want to help me so i don't need to copy the entire page of "config.php" or "register.php" because it will be too long and people will think that i'm doing it for credits which i wouldn't like (but i can do it if you want me to) and i will be denied once more for the hosting and i don't want that
  19. i checked sql database and there is that table...but no information in it after i register a account... @vujsa: mysql_pconnect("","",""); i meant i use that and for the code-i asked if someone wants i can grant him my account information so he can check it if he wants... but i ain't gonna post it on the forum
  20. i have created a website and it is not working properly... i have had a website on sphosting.com and everything worked fine till i got some errors(i got the errors because of the crappy host)...now the fun part starts...they said they solved the problem but i got another one..i said them to repair it again and they did...now i tried to login but as i entered the info it said the info isn't correct...i checked the SQL and everything seemed fine..i tried again and again the error came...i tried than to register,entered ALL info and when this was suppose to come out "You have now registered to play $gamename. Please check you e-mail for the verification link. E-mail can take up to 24 hours to recieve, please be patient" the register.php was there again ... i uploaded the script that I KNOW that worked fine before i made major updates on the scripts and it didn't work... i changed my host and installed the newer script and the let me call it "default" script and none worked... i think the problem could be that it doesn't connect to my database correctly but the news on the index.php is in the database and it's correctly shown without any problems...i even tried the echo mysql_error(); and it didn't work does anyone have time to see my scripts and see what is wrong?? EDIT:BTW:i use p_connect for connecting to my database
  21. i have made a support ticket and they said that they are looking into it,and i got one more error after i saw that...i have made one more support ticket and they solved it earlier today...now the site is online and i can finally get more people on my site if you want to...register and check out the site...thanks
  22. Aren't Mozilla and firefox equal?well...my browser's name is Mozilla Firefox.I dont know why i get javascript errors... can anyone here be my helper in that game...i need someone experienced with it! well...i think that the internet explorer isn't that good so i don't use it...internet explorer was made by microsoft so i dont like but i still use their Windows XP thats enough to them EDIT:BTW as my site was approved and back online and my site here on Xisto was denied because of too many one line posts i will stay there until more errors come back and i get too many people so i need to change(as it is 5GB it is unlikely to happen soon)
  23. put your Windows XP into your CD-rom and restart your PC after that when you boot it you get options...you need to go to the step before you choose where to install Windows where you can arrange your Partitions...you can delete(with "L"),or create new ones...delete C: partition and than recreate it,after that choose install partition of your windows(with ENTER key)i hope this helps!
  24. that site is down..i'm transferring it to eggie.astahost.com when i get approved by admin
  25. Well...that guy Criss Angel is really Incredible...He actually split a girl in half in one of his videos...But it's hard to believe that...don't you think that...But maybe he's a specialist surgeon and he fixed her But all magic is nice to see and i really like watching all kinds of magic videos.... Better thing is tricks like bar tricks with coins and bottles which YOU can actually do
×
×
  • 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.