stryker
Members-
Posts
146 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by stryker
-
Re: Advertising www.clickzvault.net is a good place to advertise.
-
Parameters: Table: Name of table to update Data: array of $field->$value with new values Id Field: Name of field to use as ID field Id Value: Value of ID field function mysql_update_array($table, $data, $id_field, $id_value) { foreach ($data as $field=>$value) { $fields[] = sprintf("`%s` = '%s'", $field, mysql_real_escape_string($value)); } $field_list = join(',', $fields); $query = sprintf("UPDATE `%s` SET %s WHERE `%s` = %s", $table, $field_list, $id_field, intval($id_value)); return $query; }
-
Re: MCCODES + Graphic to globally change it you need to so so in your header file
-
Re: Texas Hold 'Em Mod i been working on a php/ajax powered texas holdem script since july.....only got the core junk done
-
Re: [TGM] Federal Jail Court System [TGM] the main problem is the install instructions they are not complete and poorly done, if cronus would learn to type it out the right way then no one would have problems.
-
Re: [free] AJAX Notepad v2 save as updatenotepad.php <?php include "globals.php"; if($_GET['text']) { $text=$_GET['text']; $text=mysql_real_escape_string($text); $text=strip_tags($text); $db->query("UPDATE users SET user_notepad='$text' WHERE userid=$userid"); } else { echo "ERROR!"; } $h->endpage(); ?> Replace This if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr>[b]Personal Notepad Updated![/b]"; } print "<hr width='400'>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>"; With This //Created by oxidati0n. print <<<TXT <div align="center" id="message"></div> <iframe width=10 height=10 frameborder=0 marginheight=0 margin=0 name="finish" id="finish"></iframe> <form onsubmit="UpdateNotepad()"> Notepad: <textarea id="notepad" width=60 height=25>{$ir['notepad']}</textarea> <input type="submit" value="Submit" id="lkme"> </form> TXT; In header.php Find ?> After Add <script> <!-- function UpdateNotepad() { var locme=document.getElementById('lkme'); var mess=document.getElementById('message'); var content=document.getElementById('notepad').value; locme.disabled = true; locme.value = "Notepad Updated!"; finish.location.href = "updatenotepad.php?text=".content; mess.innerHTML = "<font color=red>Notepad Updated Successfully</font>"; } //--> </script>
-
<?php function html($element, $attributes=false, $tabs=0, $newline=false) { // Number of spaces to use for tabs $tabstop = 4; // Check to see if any tabs are needed if($tabs > 0){ $tab = $tabstop * $tabs; for($x = 0;$x < $tab;$x++){ $spaces .= " "; } } print "$spaces<"; // Do we need to print a new line at the end if($newline == true){ $new = "\n"; } // print $element; // Do we have any attributes we need to add if($attributes){ $args = split(" ",$attributes); for($x = 0;$x < count($args);$x++){ $i = split("=",$args[$x]); if(strtoupper($i[0]) == "NOWRAP"){ print " nowrap"; } else if(strtoupper($i[0]) == "SELECTED"){ print " selected"; } else if(strtoupper($i[0]) == "CHECKED"){ print " checked"; } else{ print " $i[0]=\"$i[1]\""; } } } // Finish up print ">$new"; } // Example html("html", "", "", true); html("head", "", 1, true); html("title", "", 2); print "Example"; html("/title", "", 0, true); html("/head", "", 1, true); html("body", "bgcolor=white", 1, true); print "Hello World!\n"; html("/body", "", 1, true); html("/html", "", 0, true); ?>
-
[Free] [V1] Guess What Cup? (Casino Game)
stryker replied to Isomerizer's topic in Free Modifications
Re: [Free] [V1] Guess What Cup? (Casino Game) why did you make a free version of mine and oxi's pick 3 mod? -
Re: Adding crimes and cities in v2 you just told everyone how legit your game is.....not very
-
Re: [Free] [v1] User Verification [Captcha] this looks very familar
-
Re: SQL Injections well if they can't get what they want through sql injections or xss attacks then most likely they will try to brute force your server
-
Re: [FREE] Alarm clock [v1.1 v2 v1] you can set it to goto a banner clients site every 15 mins or so, and open up in a new window, that way if players don't want to see ads they can pay not to see them
-
Re: Drug Place so all you did was edit the bar mod?
-
Re: CrystalShop Mod!! Free!! tthere is no point making this v2 since the shopping system is differant
-
Re: Problem loading brushes. tlp files work only for gimp zbrush and paintshop
-
Re: HELP NEEDED learn some php and mysql
-
Re: SQL Injections explain what your talking about plz
-
Re: SQL Injections php back door look it up
-
Re: [mccode] validation mod it's easier to send the new player an email and then having them check email and enter a pin number that use these stupid captchas
-
put this line in your header file in you login and your register file. if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) || ($_SERVER['HTTP_USER_AGENT']=='') || ($_SERVER['HTTP_VIA']!='')){ die("Don't use proxies, please."); } very basic but does what it should
-
Re: MC Code Mailbox Exploit? you can block such exploits in your htaccess file
-
Re: 1h work to solve the dumbest error there is now i a getting Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in past.php on line 49 line 49 while($line = mysql_fetch_array($supResult,MYSQL_ASSOC)){
-
Re: 1h work to solve the dumbest error there is but lets see if you can fix this? Warning: Wrong parameter count for mysql_fetch_assoc() in past.php on line 41 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in past.php on line 49 lines 38 - 49 $prize = array(); $query = sprintf("SELECT rank,prize FROM prizes WHERE type = 'supporter'"); $prizeResult = mysql_query($query); while($line = mysql_fetch_array($prizeResult)){ $prize[$line[0]] = $line[1]; } $query = sprintf("SELECT id,pimp,networth,online,rank,nrank,status,online FROM %s WHERE status='supporter' ORDER BY nrank ASC limit 10", $pTable); //echo $query; $supResult = mysql_query($query); $i = 1; while($line = mysql_fetch_assoc($supResult,MYSQL_ASSOC)){ if($rankstart==0){$rankcolor="#220000";$rankstart++;}
-
!!! Many ideas for Mc 2.0 but I cant program !!!
stryker replied to MDK666's topic in General Discussion
Re: !!! Many ideas for Mc 2.0 but I cant program !!! already coded, the stones idea is actually called spell crafting it is from UO and Diablo 2 -
Re: Causes of Looping? it'll get rid of one error