Jump to content
MakeWebGames

Zero-Affect

Members
  • Posts

    3,713
  • Joined

  • Last visited

    Never

Everything posted by Zero-Affect

  1. Lol strats you ain't having a good day eh :P
  2. Love you too Seanybob, Did he say anything about me marsh?
  3. Cron Minute ^may help Also check => Crons These two will explain and help alot, May wanna check if your host allows crons (if it's free host then sometimes they don't). You may also need help with security: if so don't hesitate to help or check [mp]17[/mp]
  4. Zero-Affect

    University

    Doesn't matter what ethnicity or creed you are when it comes down to it were all human, besides the french... All rich parents will put their kids through UNI but poor people get into UNI and work their way through (i'd take the working way anyday because then i know i DID IT without help). It's hard but you feel better for doing it and helps you get into your own life rather than your parents shadows.
  5. Ah some i have had afew years experience in VB (forgot most of it due to it being about 5 years ago) May have to have a chat sometime.
  6. echo "[url='".basename($_SERVER[']Forum Info Change[/url] "; if( $ir['bankpinwanted'] == 1 ) { echo "[url='".basename($_SERVER[']Bank Pin Change[/url] "; } else { echo "[url='bankmanager.php']Apply for a Bank Pin[/url] "; } echo "[url='".basename($_SERVER[']Personal Detail Change[/url] "; Not sure if it's been fixed or not so just thought i'd fix what i saw was wrong EDITED: minor bug
  7. if(!@getimagesize($r['display_pic) { echo "<center>[img=images/nodisplay.jpg]"; } elseif(@getimagesize($r['display_pic) { echo "<center>[img={$r[] </center>"; } Actually it would be more like $image_check = (@getimagesize($r['display_pic']); $image_check = ( is_array($r['display_pic']) ) ? '[img='.$r['display_pic'].']' : '[img=images/nodisplay.jpg]' ;   also Immortal don't forget to close the array ']
  8. Does it matter about anyones personal opinion on a Graphics Designer? Not everyone will like a single designer. The original answer has been answered and the poster said he'd be using one of the answers so this thread needs no more posts.
  9. I'll be adding wsIRC to support Alain on CrimGame and wsIRC seems to be coming along great wsIRC FTW!
  10. notice the error? Dave look at Demo's account and tell me it still ain't erroring.
  11. Dave didn't i error your display image?   if(preg_match("/^.*\.(jpg|jpeg|png|gif)$/i", $r['display_pic'])) { if ( is_array(@getimagesize($r['display_pic'])) ) { $pic = "[img={$r[]"; } } else { $pic = "This user has no display pic!"; } If you had listened to mdshare when he mentioned getimagesize first time round you may have easily avoided this entire thread.
  12. Zero-Affect

    hack

    Well said AB, the script is jacked up and could do with a recode in sections, i did offer a small bit of code above which no one seemed to comment on so rather they didn't understand it or just don't like me ;(
  13. => ^he does have a point there, i never considered that either. So how is this faster than MTG's? That's like calling the [mysql]SELECT * FROM users WHERE userid = $userid[/mysql] query in files rather than using the $ir query from globals.
  14. Really... Why is that exactly?
  15. Torn is custom by Joe Chedburn, Mc is the rip of Torn(Torn City), hitmanslife is MC but very very edited version (dean i believe does the coding for go3.net).
  16. Zero-Affect

    hack

    abs(inval) i really had trouble with understanding at first but i think i have it down right. abs = Absolute value (strips away +/- and so on leaving only floats and integers). inval = Changes the variable into integer. floatval = Changes the variable into float. Why not use my method?
  17. Is it weird that i could read through your code all day? Mesmerizing 8o
  18. yeah i hate people that change their name to their website... :P Good mod MTG
  19. ah well spotted Alan.
  20. Zero-Affect

    hack

    Weird how not many "GURU's" post on anything but MCC lol if (!empty($_POST['buypoints'])){ $_POST['amount'] = abs((int) $_POST['amount']); $_POST['points_id'] = abs((int) $_POST['points_id']); replace with if ( !empty($_POST['buypoints']) AND ctype_digit($_POST['buypoints']) ){ $_POST['amount'] = ( isset($_POST['amount']) AND ctype_digit($_POST['amount']) ) ? $_POST['amount'] : '' ; $_POST['points_id'] = ( isset($_POST['points_id']) AND ctype_digit($_POST['points_id']) ) ? $_POST['points_id'] : '' ; if ( empty($_POST['amount']) AND empty($_POST['points_id']) ) { echo ' Invalid Command. '; include 'footer.php'; die(); } Need anymore security help refer to => [mp]17[/mp]
  21. Peter made it because paddy recommended peter to me, but no offense to peter he is still amateur. If your after TOP QUALITY visit SOSFACTORY or i believe it's nitro deisgns who did immortalknight.
  22. oh i remember you, your that noob right? lol Welcome Back comrade:)
  23. The preg_match function i used isn't preg_replace but ok, i have been testing and see no issues at all (i don't use the replace because what's really the point, the users wouldn't know their usernames if it stripped half of it away). if coded properly i don't see how anything should slip through.
  24. i'd personally just filter preferences with something like if ( !preg_match("/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['new_name']) ) { echo ' You can only have a letters, numbers, spaces and underscores. > [url="file.php?act=example"]go back[/url]. '; $h->endpage(); die; } then why even bother filtering the output of username (also register should be filtered).
  25. replace print "<h3>".$set['game_name']." Newletter</h3>"; print "<table class='table' width='75%' cellspacing='0' cellpadding='3'><tr><th colspan='2'>Select a subject</th></tr> <form action='?act=sendmail' method='post'> <tr><td>Subject: </td><td><input type='text' name='subject' value='Subject here' /></td></tr> <tr><td>Email: </td><td><textarea rows=10 cols=50 name='email'></textarea></td></tr> <tr><td colspan='2'><center><input type='submit' value='Send mass mail' /></form></center></td></tr></table>"; $h->endpage(); with echo "<h3>".$set['game_name']." Newletter</h3>"; echo "<table class='table' width='75%' cellspacing='0' cellpadding='3'>"; echo "<tr><th colspan='2'>Select a subject</th></tr>"; echo "<form action='?act=sendmail' method='post'>"; echo "<tr><td>To: </td><td> <select name="to" type="dropdown"><option value="members">Members</option><option value="staff">Staff</option></select> </td></tr>"; echo "<tr><td>Subject: </td><td><input type='text' name='subject' value='Subject here' /></td></tr>"; echo "<tr><td>Email: </td><td><textarea rows=10 cols=50 name='email'></textarea></td></tr>"; echo "<tr><td colspan='2'><center><input type='submit' value='Send mass mail' /></form></center></td></tr></table>"; $h->endpage(); die;   then $getem=$db->query("SELECT `email` FROM `users`"); while($em=$db->fetch_row($getem)) { mail($email,$subject,$message,$from); print "Message Sent Successfully"; $h->endpage(); } with $array_options = array('staff' => '2', 'members' => '1'); if ( !array_key_exists($_POST['to'], $array_options) ) { echo "You did not select a group to send to."; $h->endpage(); die; } $group_to = ( $_POST['to'] == 'staff' ) ? '> 2' : '== 1' ; $getem=$db->query("SELECT `email` FROM `users` WHERE `user_level` $group_to"); while($em=$db->fetch_row($getem)) { mail($email,$subject,$message,$from); echo "Message Sent Successfully to {$_POST['to']}"; $h->endpage(); } didn't test but should be alright
×
×
  • Create New...