Jump to content

ProXy_

Members
  • Posts

    67
  • Joined

  • Last visited

    Never

About ProXy_

  • Birthday 03/27/1987

Contact Methods

  • Website URL
    http://ju.nu
  • Yahoo
    _spawn_of_Satan_

Profile Information

  • Gender
    Male
  • Location
    Michigan

ProXy_'s Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, i'm trying to search an XML file and pull up multiple results. I can manage to get one result but not all of them. The XML format: <hits id="1"> <name>cleland.Gor.part1.rar</name> <extension>rar</extension> <size>100MB</size> <description>w00t this is the shizzle</description> <address>http://www.cleland.com</address> <details>http://www.cleland.html</details> <tags>XXXLXXXL|Gor</tags> <rate>0.00</rate> <added>2009-07-17 07:49:29</added> <related>661f53bcf6cb832c03e9</related> <password></password> </hits>
  2. i Appreciate your help. This is exactly what i have been looking for all over the place. And thank you for the code, it saves me a little time so i can just throw this in here and get our api system back up in little time. Thank you again. i really do appreciate this
  3. I have the access to mysql & all that. I'm not very experienced with mysql & innodb I'm a pretty quick learner. so if i need to study these languages. i can do so. I just needed to find some way to make this possible just can't risk getting exploited again :/ so, thank you again for your time.
  4. I've tried a few things above, and i couldn't really seem to get anywhere. The main part i'm trying to figure out is how to Allow x amount of visits per ip in x minutes Is this possible at all, i've searched everywhere and i'm just getting nowhere. I Appreciate all help.
  5. Thank you all for your feedback. We've changed alot of things around. including the way our ads are displayed. and we're also adding the option for users to preview the site before visiting the url! Our site manager is developed in Ajax We've Added Small Features such as Transfering URL's to another account. Member API, most popular used in Wordpress to Twitter script. you can see an example at: http://twitter.com/funnyread @ILMV: i'm the developer, not the designer, i posted in a "php forum" so i could get "php" feedback like: the way the site works/speed etc.. But i appreciate all Constructive Criticism, thank you
  6. Thank you for the idea, i really think i can go somewhere with this. i really appreciate all your help.
  7. This kinda helps a little bit, but the person randomly switches his host to another free host and does it again. so i'm trying to just stop an ip instead of a website. And to the others, i'm on a paid shared server, thats why i am trying to make a php script to auto ban anyone that abuses my API. i had a few ideas, but after a while of creating the ideas, i don't see a future that would resolve my problem. But, if one IP adds 40 urls in under a minute, Add IP to .htaccess. Would be a simple way of explaining what i am trying to figure out :/
  8. Hello, I'm trying to figure out how i can ban an IP if they're flooding me For example: if i had api http://blah.com/api.php?url=http://url And someone makes a script to open 2000 iframes and flood it. is there any way i can detect it with PHP? i've already got a good idea how to auto add their ip to .htaccess i just have been looking trying to find different ways of blocking floods and i havn't gotten anywhere, appreciate any help. thanks
  9. Thank you, the method worked great. and easy implication. I appreciate everyone's help
  10. i'm starting to realize some problems with explode. i was really hoping there was another way to do this. Basicly i created a counter that acts off 1 .txt file in this text file there are tons of pages with their counters They look like this: $site-0*end$site Basicly my code grabs the number and adds the hit to it, if visited. Problem i'm getting is this: say one page is: 93.html and another page is 193.html Both of these pages will get pulled. it completely ignores the 1 this is the current code, i would really appreciate any help. $code=file_get_contents("../docs/counter.txt"); $code2=file_get_contents("../docs/counter.txt"); $ex1=explode("$stray3-", $code); $ex2=explode("*end$stray3", $ex1[1]); $nope="0"; $d=$ex2[0]; once again i really appreciate any help offered:)
  11. Perfect, I appreciate your help. i thought about using the onchange but for some silly reason i never tested with it :/ Thanks again
  12. i've done some research the past couple days trying to get my new ajax site manager to work with internet explorer. This works great with Firefox. Here is the option tag: <option value="thename" onclick="Go(this.value)">Pick</option> the function: function Go(url) { document.getElementById(url).style.display = ''; } Appreciate the help. I've looked all over the forums for some ideas And i have not stumbled upon any "working" so far.
  13. Here is the fix for your javascript: <head> <script language="JavaScript" src="/scripts/gen_validatorv31.js" type="text/javascript"></script> <SCRIPT type="text/javascript"> function ShowOneCar() { if (document.getElementById("onecar").style.display == "none") { document.getElementById("onecar").style.display = ''; if (document.getElementById("twocars").style.display == '') { document.getElementById("twocars").style.display = "none"; } if (document.getElementById("threecars").style.display == '') { document.getElementById("threecars").style.display = "none"; } } else { document.getElementById("onecar").style.display = "none"; } } function ShowTwoCars() { if (document.getElementById("twocars").style.display == "none") { document.getElementById("twocars").style.display = ''; if (document.getElementById("onecar").style.display == '') { document.getElementById("onecar").style.display = "none"; } if (document.getElementById("threecars").style.display == '') { document.getElementById("threecars").style.display = "none"; } } else { document.getElementById("twocars").style.display = "none"; } } function ShowThreeCars() { if (document.getElementById("threecars").style.display == "none") { document.getElementById("threecars").style.display = ''; if (document.getElementById("onecar").style.display == '') { document.getElementById("onecar").style.display = "none"; } if (document.getElementById("twocars").style.display == '') { document.getElementById("twocars").style.display = "none"; } } else { document.getElementById("theecars").style.display = "none"; } } </script> <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("auto1"); frmvalidator.EnableOnPageErrorDisplaySingleBox(); frmvalidator.EnableMsgsTogether(); frmvalidator.addValidation("name","req","Please enter your First Name"); frmvalidator.addValidation("name","maxlen=20","Max length for First Name is 20"); frmvalidator.addValidation("name","alpha","Alphabetic chars only for First Name"); frmvalidator.addValidation("last","req","Please enter your Last Name"); frmvalidator.addValidation("last","maxlen=20","Max length is 20"); frmvalidator.addValidation("last","alpha","Alphabetic chars only for Last Name"); frmvalidator.addValidation("mi","maxlen=2","Max length is 2"); frmvalidator.addValidation("mi","alpha","Alphabetic chars only for Middle Initial"); frmvalidator.addValidation("email","maxlen=50", "Max length is 50"); frmvalidator.addValidation("email","req", "Please enter a email address"); frmvalidator.addValidation("email","email", "Please enter a valid email address."); frmvalidator.addvalidation("hp","req", "Phone is required"); frmvalidator.addValidation("hp","maxlen=10", "Max length is 10 You don't have to add () or any separators"); frmvalidator.addValidation("hp","numeric","Numeric chars only"); frmvalidator.addValidation("add","req","Please enter your home address"); frmvalidator.addValidation("add","maxlen=20","Max length is 30"); frmvalidator.addValidation("add","alpha","Alphabetic chars only"); frmvalidator.addValidation("add2","maxlen=20","Max length is 30"); frmvalidator.addValidation("add2","alpha","Alphabetic chars only"); frmvalidator.addValidation("city","req","Please enter your City"); frmvalidator.addValidation("city","maxlen=20","Max length is 20"); frmvalidator.addValidation("city","alpha","Alphabetic chars only"); frmvalidator.addValidation("state","req","Please enter your State"); frmvalidator.addValidation("state","maxlen=2","Max length is 2 (example=KY)"); frmvalidator.addValidation("state","alpha","Alphabetic chars only"); frmvalidator.addValidation("zip","req","Please enter your Zip code"); frmvalidator.addValidation("zip","maxlen=5","Max length is 5"); frmvalidator.addValidation("zip","alpha","Alphabetic chars only"); frmvalidator.addValidation("cp","maxlen=10","Max length for is 10"); frmvalidator.addValidation("cp","numeric","Numeric chars only"); frmvalidator.addValidation("work","maxlen=10","Max length for is 10"); frmvalidator.addValidation("work","numeric","Numeric chars only"); frmvalidator.addValidation("make1","req","Please enter the make of you vehicle"); frmvalidator.addValidation("make1","maxlen=20","Max length for make is 20"); frmvalidator.addValidation("make1","alpha","Alphabetic chars only"); frmvalidator.addValidation("model1","req","Please enter the model of your vehicle"); frmvalidator.addValidation("model1","maxlen=20","Max length is 20 for model"); frmvalidator.addValidation("model1","alpha","Alphabetic chars only"); frmvalidator.addValidation("color1","req","Color is required please fill in"); frmvalidator.addValidation("color1","maxlen=10","Max length is 10"); frmvalidator.addValidation("color1","alpha","Alphabetic chars only"); frmvalidator.addValidation("plate1","maxlen=7", "Max length is 7 for Plate #"); frmvalidator.addValidation("plate1","req", "Please enter your plate number"); frmvalidator.addValidation("plate1","alnum_s", "Please enter a valid plate number XXX XXX"); frmvalidator.addValidation("make2","req","Please enter the make of you vehicle"); frmvalidator.addValidation("make2","maxlen=20","Max length for make is 20"); frmvalidator.addValidation("make2","alpha","Alphabetic chars only"); frmvalidator.addValidation("model2","req","Please enter the model of your vehicle"); frmvalidator.addValidation("model2","maxlen=20","Max length is 20 for model"); frmvalidator.addValidation("model2","alpha","Alphabetic chars only"); frmvalidator.addValidation("color2","req","Color is required please fill in"); frmvalidator.addValidation("color2","maxlen=10","Max length is 10"); frmvalidator.addValidation("color2","alpha","Alphabetic chars only"); frmvalidator.addValidation("plate2","maxlen=7", "Max length is 7 for Plate #"); frmvalidator.addValidation("plate2","req", "Please enter your plate number"); frmvalidator.addValidation("plate2","alnum_s", "Please enter a valid plate number XXX XXX"); frmvalidator.addValidation("make3","req","Please enter the make of you vehicle"); frmvalidator.addValidation("make3","maxlen=20","Max length for make is 20"); frmvalidator.addValidation("make3","alpha","Alphabetic chars only"); frmvalidator.addValidation("model3","req","Please enter the model of your vehicle"); frmvalidator.addValidation("model3","maxlen=20","Max length is 20 for model"); frmvalidator.addValidation("model3","alpha","Alphabetic chars only"); frmvalidator.addValidation("color3","req","Color is required please fill in"); frmvalidator.addValidation("color3","maxlen=10","Max length is 10"); frmvalidator.addValidation("color3","alpha","Alphabetic chars only"); frmvalidator.addValidation("plate3","maxlen=7", "Max length is 7 for Plate #"); frmvalidator.addValidation("plate3","req", "Please enter your plate number"); frmvalidator.addValidation("plate3","alnum_s", "Please enter a valid plate number XXX XXX"); function Validate() { if (document.registration_form.password.value != document.registration_form.password_confirmation.value) { alert("The two passwords are not identical! "+ "Please enter the same password again for confirmation"); return false; } return true; } </script> </head> <body> <div class="form"> <ul> <form name="auto1" method="post" action="submit.php" onsubmit="return Validate();"> <li><H2>Step 1 Contact Info.</H2></li> <li><div id='auto1_errorloc' class='error_strings'></li> <li>Name</li> <li> <label for="name">First</label> <input type="text" name="name" maxlength="20"> <label for="last">Last</label> <input type="text" name="last" maxlength="20"> <label for="mi">M.I.</label> <input type="text" name="mi" maxlength="2"> </li> <li>Phone(s)</li> <li> <label for="hp">Main</label> <input type="text" name="hp" maxlength="10"> <label for="male">Cell</label> <input type="text" name="cp" maxlength="10"> <label for="work">Work</label> <input type="text" name="work" maxlength="10"> </li> <li><label for="email">E-mail</label> <input type="text" name="email" maxlength="50"></li> <li><label for="add">Street</label> <input type="text" name="add" maxlength="30"></li> <li><label for="add2">Street 2</label> <input type="text" name="add2" maxlength="30"></li> <li><label for="city">City</label> <input type="text" name="city" maxlength="20"> <label for="state">State</label> <input type="text" name="state" maxlength="2"> <label for="zip">Zip</label> <input type="text" name="zip" maxlength="5"></li> <li> <label for="password">Password</label> <input type="password" name="password"> <label for="passwrod_conformation">Confirm Password</label> <input type="password" name="password_confirmation"> </li> <li><input type="radio" onClick="ShowOneCar()">One <input type="radio" onClick="ShowTwoCars()">Two <input type="radio" onclick="ShowThreeCars()">Three</li> <div style="display: none;" id="onecar"> <li><H2>Vehicle Information</H2></li> <li>Vehicle 1</li> <li> <label for="make">Make</label> <input type="text" name="make" maxlength="20"> </li> <label for="model">Model</label> <input type="text" name="model" maxlength="20"> </li> <label for="color">Color</label> <input type="text" name="color" maxlength="10"> </li> <label for="plate">Plate #</label> <input type="text" name="plate" maxlength="7"> </li> </div> <div id="twocar"> <div style="display: none;" id="twocars"> <li><H2>Vehicle Information</H2></li> <li>Vehicle 1</li> <li> <label for="make">Make</label> <input type="text" name="make" maxlength="20"> </li> <label for="model">Model</label> <input type="text" name="model" maxlength="20"> </li> <label for="color">Color</label> <input type="text" name="color" maxlength="10"> </li> <label for="plate">Plate #</label> <input type="text" name="plate" maxlength="7"> </li> <li>Vehicle 2</li> <li> <label for="make2">Make</label> <input type="text" name="make" maxlength="20"> </li> <label for="model2">Model</label> <input type="text" name="model" maxlength="20"> </li> <label for="color2">Color</label> <input type="text" name="color" maxlength="10"> </li> <label for="plate2">Plate #</label> <input type="text" name="plate" maxlength="7"> </li> </div> <div style="display: none;" id="threecars"> <li><H2>Vehicle Information</H2></li> <li>Vehicle 1</li> <li> <label for="make">Make</label> <input type="text" name="make" maxlength="20"> </li> <label for="model">Model</label> <input type="text" name="model" maxlength="20"> </li> <label for="color">Color</label> <input type="text" name="color" maxlength="10"> </li> <label for="plate">Plate #</label> <input type="text" name="plate" maxlength="7"> </li> <li>Vehicle 2</li> <li> <label for="make2">Make</label> <input type="text" name="make" maxlength="20"> </li> <label for="model2">Model</label> <input type="text" name="model" maxlength="20"> </li> <label for="color2">Color</label> <input type="text" name="color" maxlength="10"> </li> <label for="plate2">Plate #</label> <input type="text" name="plate" maxlength="7"> </li> <li>Vehicle 3</li> <li> <label for="make3">Make</label> <input type="text" name="make" maxlength="20"> </li> <label for="model3">Model</label> <input type="text" name="model" maxlength="20"> </li> <label for="color3">Color</label> <input type="text" name="color" maxlength="10"> </li> <label for="plate3">Plate #</label> <input type="text" name="plate" maxlength="7"> </li> <li> </div> <button type="reset" value="Reset">Reset</button> <button type="submit" value="Submit">Submit</button> </li> </ul> </form> </body> </html> I'll check out the validation problem now
  14. I have used this for a long time, works great <?php /* declare target date; source: http://us.imdb.com/ReleaseDates?0121766 ; */ $day = 31; // Day of the countdown $month = 12; // Month of the countdown $year = 2009; // Year of the countdown $hour = 23; // Hour of the day (east coast time) $event = "New Year's Eve, 2009"; //event $calculation = ((mktime ($hour,0,0,$month,$day,$year) - time(void))/3600); $hours = (int)$calculation; $days = (int)($hours/24); /* mktime() http://www.php.net/manual/en/function.mktime.php time() http://www.php.net/manual/en/function.time.php (int) http://www.php.net/manual/en/language.types.integer.php */ ?> <ul> <li>The date is <?=(date ("l dS of F Y h:i:s A"));?>.</li> <li>It is <?=$days?> days until <?=$event?>.</li> <li>It is <?=$hours?> hours until <?=$event?>.</li> </ul>
  15. I've created a Ajax chat system, that allows user to change rooms, however you can remove that option. they also can change font "-f" i basicly coded it to be a light chat box, with mirc like functions. users could create there own rooms and so on...anyways i'd be willing to teach you how to build this script by giving you some examples. feel free to private message me anytime if your interested. its a great thing to learn!
×
×
  • 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.