Jump to content

blankextacy

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

Everything posted by blankextacy

  1. im not sure, im looking for something that blocks proxys from your website like http proxys and the script needs to be written in php haveing trouble finding one
  2. does any one know where i can find a php proxy blocker or does any one have the code that i can have?
  3. uhh i have no idea how to do tht but thanks for telling me what was wrong now i can figure out how to do that
  4. hey for some reason when some one logins they can edit their cookie and change thier username to nothing along with everything else giving them a mysql error and making it so they can screw with the game does any one know how i could fix this when i went to edit my cookies and looked up my site it said user/pass and let me edit.
  5. rawrz it worked i love you all!
  6. where do i put #!/usr/bin/php ?
  7. im a horrible coder but shh lol
  8. ya there it is im getting this error now /home/mitchell/public_html/cron_min/cron_minute.php: line 1: ?: No such file or directory /home/mitchell/public_html/cron_min/cron_minute.php: line 2: syntax error near unexpected token `"update turn set time_right=time_right-1"' /home/mitchell/public_html/cron_min/cron_minute.php: line 2: `mysql_query("update turn set time_right=time_right-1");' <? include "config.php"; mysql_query("update turn set time_right=time_right-1"); mysql_query("update turn set time_right=9 where time_right = -1"); mysql_query("update turn set time_left=6 where time_right = 0 and time_left = 0"); mysql_query("update turn set time_left=time_left-1 where time_right = 9"); $spell1 = mysql_query("select * from spellc"); while ($spell = mysql_fetch_array($spell1)) { mysql_query("update spellc set time=time-1 where id=$spell[id]"); mysql_query("DELETE from spellc where id=$spell[id] and time<=1"); } ?>
  9. ok im using cron tab 5 i guess well when ever i try to run a command it works fine but it doesnt run the file instead i get this error. /home/mitchell/public_html/cron_min/cron_minute.php: line 1: syntax error near unexpected token `(' /home/mitchell/public_html/cron_min/cron_minute.php: line 1: `<? include("config.php");' and when i used to use free cronjob services it ran the files perfectly
  10. full db or what i did in the db?
  11. no i mean i disable every register link he was doing it with out even being logged in.
  12. http://earth3045.com/urban/index.php i got him to stop for a bit but im woundering how to prevent it i deleted all the empty crews.
  13. nono, i mean he was adding stuff in kind of well its a game and i have crews he  was adding in empty crews.
  14. now he says hes defacing my site :p
  15. hey i got some one "GHOSTING" on my site or thats what theyre calling it and they keep adding stuff into the database some how is there away to prevent this its going on right now.
  16. ok say the list is 1. 1000 2. 500 3. 300 i want to add 1000 into another database as rank #1 and 500 in the same database as 1000 as a different row and then i want to add 300 in there as #3 just like i did with 1000 500.
  17. yeah i know that i dont want to do that i want it to select the highest the insert that into the database then the 2nd and then the 3rd
  18. hey is it possible to select from one field the highest the second and the third highest and single them out?
  19. Ok, i figured out why it wasnt printing but it only prints one of the 2 ids i selected im trying to make it print all of the things ive checked. heres what ive got now.[code]print"<input type='checkbox' name='item[]' value='$item[id]'/>"; if ($item[gem1] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem2] == 2 && $item[gem3] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem3] == 2 && $item[gem4] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[part] == Q) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>[QUEST ITEM]</center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } print"<br><br>"; } print"</td> <td>"; $item1 = mysql_query("select * from items WHERE owner=$stat[id] and status=0 and tb=0"); while ($item = mysql_fetch_array($item1)) { print"<input type=checkbox name=item1[] value='$item[id]'/>"; if ($item[gem1] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem2] == 2 && $item[gem3] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem3] == 2 && $item[gem4] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[part] == Q) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>[QUEST ITEM]</center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } print"<br><br>"; } print"Offer <input type=text name=pts size=3> Points. ($stat[trans_points] available) </td> </tr>"; print"<tr> <td colspan=2><center> <input type=submit value=\"SUBMIT TRADE\"></form></center></td></tr>"; print"</table>"; exit; } if ($action == offer) { $item = $_POST['item']; $items1 = mysql_query("select * from items WHERE id=$item"); while ($items = mysql_fetch_array($items1)) { print"$items[name]"; } } ?>[/code]
  20. Hi, im new to check boxes with php im trying to make it so players can trade items in my game but im not sure how they and check the boxes and make it insert the items checked into the database im trying to make it print all of the ids of the items. [code]if ($_GET['tbid']) { $user = mysql_fetch_array(mysql_query("select * from users where id='$tbid'")); print"<table border><tr><td width=350> <center> <font size=3> <b>$user[name]'s ITEMS</b> </font> </center> </td> <td width=350> <center> <font size=3> <b>YOUR ITEMS</b> </font> </center> </td> </tr> <tr> <td> <form method=post action=tradeblock1.php?action=offer>"; $item1 = mysql_query("select * from items WHERE owner=$user[id] and tb=1 order by id"); while ($item = mysql_fetch_array($item1)) { print"<input type=checkbox name=item value='$item[id]'/>"; if ($item[gem1] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem2] == 2 && $item[gem3] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem3] == 2 && $item[gem4] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } print"<br><br>"; } print"</td> <td>"; $item1 = mysql_query("select * from items WHERE owner=$stat[id] and status=0 and tb=0 order by id"); while ($item = mysql_fetch_array($item1)) { print"<input type=checkbox name=item1 value='$item[id]'/>"; if ($item[gem1] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem2] == 2 && $item[gem3] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem3] == 2 && $item[gem4] == 0) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) { print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\">$item[name]</span>"; } print"<br><br>"; } print"Offer <input type=text name=pts size=3> Points. ($stat[trans_points] available) </td> </tr>"; print"<tr> <td colspan=2><center> <input type=submit value=\"SUBMIT TRADE\"></form></center></td></tr>"; print"</table>"; exit; } if ($action == offer) { $it1 = mysql_query("select * from items WHERE id='$item'"); while ($it = mysql_fetch_array($it1)) { print"$it[id]"; } exit; }[/code]
  21. is it possible to make rows up and down like 5 rows to the left and then 5 rows down i know desc limit makes it # to the side. for querys like this [code]$CODE = mysql_query("select * from CODE WHERE CODE=$CODE order by CODE desc limit 5"); while ($CODE = mysql_fetch_array($CODE)) { print"CODE"; exit; }[/code]
  22. hey, i am working on a game and trying to make it so it shows the items you won from a attack in your crew vault but in if ($_GET['item']) { there is $user[FIELD] i cannot figure out how to carry that to if ($action == 'awarditem') { so the script can give the player the item. [code] <? $title = "Crew Vault"; include("header.php"); print"<center>"; print"<table width=100% class=stattabletitle> <tr width=100%> <td><b>Crew Vault</b></td> </tr> </table> <table width=100% cellpadding=0 cellspacing=0> "; $vault1 = mysql_query("select * from items WHERE crew=$stat[crewid] order by attack desc limit 50"); while ($vault = mysql_fetch_array($vault1)) { print "<span onMouseover=\"ddrivetip('<center>$vault[name]<br>Attack: $vault[attack]<br>HP: $vault[hp]<br>Exp Per Turn: $vault[ept]<br>Rage Per Turn: $vault[rpt]<br>Income: $vault[mpt]<br></center>','#666666', 125)\"; onMouseout=\"hideddrivetip()\"><a href=crewvault.php?item=$vault[id]><img src=$vault[img] width=50 height=50></a></span><br> "; } print"</table>"; print"</center>"; if ($_GET['item']) { print"<form method=post action=crewvault.php?action=awarditem&item=$item[id]"; print"<select name=user>"; $user = mysql_query("select * from users WHERE crewid=$stat[crewid]"); while ($users = mysql_fetch_array($user)) { print"<option value=$users[id]>$users[name]</option>"; } print"</select>"; print"<input type=submit class=submit value=Award>"; } if ($action == 'awarditem') { mysql_query("update `items` set `owner` = '$user[id]' and `crew` = '0' where `id` = '$item[id]'"); echo mysql_error(); print"<center>You have awarded $user[name] with $item[name].</center>"; } ?>[/code]
  23. no , its not that its something in the mysql coding im guessing
  24. could some one tell me why this code isnt working the codes site is www.revo-online.net/gdmovies/submit.php [code]<?php include("config.php"); ?> Submit a video here <form method=post action=submit.php?action=submit> Video name:<input type=text name=name><br> Email:<input type=text name=email><br> Username:<input type=text name=user><br> Picture link:<input type=text name=pic>(Http://www.site.com/pic.jpg)<br> Video link:<input type=text name=link>(Http://www.site.com/link.vid)<br> Type:<input type=text name=type>(fight)<br> <input type=submit value=Submit><br> </form> <?php if ($action == submit) { if (!$name || !$email || !$user || !$pic || !$link ) { print "You must fill out all fields."; exit; } $dupe1 = mysql_num_rows(mysql_query("select * from videos where link='$link'")); if ($dupe1 > 0) { print "Someone is using that link!"; exit; } $dupe2 = mysql_num_rows(mysql_query("select * from videos where name='$name'")); if ($dupe2 > 0) { print "That name is being used!"; exit; } mysql_query("insert into players (name, email, user, pic, link, type, submitted) values('$name','$email','$user','$pic','$link','$type','date('m/d/Y') ')") or die("Could not Submit."); print "You're video has been submitted."; } ?> [/code]
×
×
  • Create New...

Important Information

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.