
Paddy
Members-
Posts
211 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Paddy
-
Well basically you need to do this run your cron trough the URL bar http://www.yourdomain.com/cron_whatever.php?code=123456 etc then see the outcome, dont worry to ask where you dont know ;) PS is your game live? if so try not running them to much and create a back up
-
have you tried running them manually each to see if one or more give any error?
-
thanks mate
-
Hi guys, Just wanted to add a little bit to it, if you cant see the difference well would be best to test it your selves, <?php include_once(DIRNAME(__FILE__).'/globals.php'); if(!isset($_GET['ID'])) { echo 'Invalid User ID'; } else if($_GET['ID'] == $_SESSION['userid']) { echo 'Haha, what does sending money to yourself do anyway?'; } else { if(isset($_POST['money'])) { if($_POST['money'] > $ir['money']){ echo 'Abusing will take you to jail.'; } else { $_POST['money'] = abs(intval($_POST['money'])); $_GET['ID'] = abs(intval($_GET['ID'])); $db->query("UPDATE `users` SET `money` = `money` - " .$_POST['money']." WHERE (`userid` = $userid)"); $db->query("UPDATE `users` SET `money` = `money` + " .$_POST['money']." WHERE (`userid` = ".$_GET['ID'].")"); echo ' You sent $'.number_format($_POST['money']).' to ID '.$_GET['ID'].' with the message: '.htmlentities(stripslashes($_POST['Message'])).''; event_add($_GET['ID'],"You received $".number_format($_POST['money'])." from ".htmlentities(stripslashes($ir['username']))." with the message: ".htmlentities(stripslashes($_POST['Message'])).""); $it = $db->query("SELECT userid, username FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=".$_GET['ID'].""); $er = $db->fetch_row($it); $db->query("INSERT INTO `cashxferlogs` VALUES ('', $userid, ".$_GET['ID'].", ".$_POST['money'].", unix_timestamp(), '".$ir['lastip']."', '".$er['lastip']."')"); } } else { echo ' <script language="javascript" type="text/javascript"> function limitText(limitField, limitCount, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } else { limitCount.value = limitNum - limitField.value.length; } } </script> <h3> Sending Money</h3> Whats up '.$ir['username'].' !! You are sending money to ID: [b]'.$_GET['ID'].'[/b] You currently have [b]$'.number_format($ir['money']).'[/b] please put in the amount available. <form name=sendcash action=sendcash.php?ID='.$_GET['ID'].'" method=post> Amount:</p> <input type=text maxlength="15" name=cash onKeyPress="javascript: clean_inputs()" onKeyUp="javascript: clean_inputs();"> Message:</p> <textarea cols="45" rows="7" name="message" onKeyDown="limitText(this.form.message,this.form.countdown,80);" onKeyUp="limitText(this.form.message,this.form.countdown,80);"> </textarea> <font size="1">(Maximum characters: 80) You have <input readonly type="text" name="countdown" size="3" value="80"> characters left.</font> <input type="submit" value="Send" /></form></p> '; echo ' <h3>Latest 5 Transfers</h3> <table width=90% border="2" cellspacing = "1"> <th width = "35%">Time</th> <th width = "15">User From</th> <th width = "15%">User To</th> <th width = "35%">Amount</th> </tr>'; $q = $db->query("SELECT cx.*,u1.username as sender, u2.username as sent FROM cashxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid WHERE cx.cxFROM=$userid ORDER BY cx.cxTIME DESC LIMIT 5"); while($r=$db->fetch_row($q)) { if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } echo '<tr> <td>' . date("F j, Y, g:i:s a",$r['cxTIME']) . '</td> <td>'.htmlentities(stripslashes($r['sender'])).' ['.$r['cxFROM'].'] </td> <td>'.$r['sent'].' ['.$r['cxTO'].'] </td> <td> $'.number_format($r['cxAMOUNT']).'</td> </tr>'; } echo <<<EOT <script type="text/javascript"> function clean_inputs() { document.sendcash.cash.value = document.sendcash.cash.value.replace(new RegExp(/_|\\|\]|\[|\^|[^0-9A-z]/), ''); } </script> </table> EOT; } } $h->endpage(); ?> Hope you like the little effort i put in :)
-
Re: New Houses Mod [Mccodes V2] Thanks for this, allthough i didnt use the same file but i added the casses and function and the link [url="houses.php?page=removal&id='.$r['uhouseId'].'"]Remove '.($r['hNAME']).'[/url] and takes me to but my property is not removed from the list nor from the database, is this just me ?
-
Re: New Houses Mod [Mccodes V2] I know its an oldish topic, but i think the last post made allot off sense. Having a list saying 0 nights and all that looks odd, so a function to remove your house from the rental market would be appreciated Thanks
-
Re: Avatar Page - My first mod I have thought of this before but in a different way, What i wanted to do is the same thing but on register page, while registering they can have some images with a radio button and they can choose an image, for those who are already registered can find the same thing under preference page, Nice mod mate
-
Re: Help please seems like he needs to put a bignit in paypal :lol:
-
Re: [mccodes] Advanced Pet Mod [$15] ok :)
-
Re: [mccodes] Advanced Pet Mod [$15] was that ment to be a msg to me?
-
Re: [mccodes] Advanced Pet Mod [$15] :-D yeah a total make over but as you can see with a little bit of work you can make it look great, and works 100% now working on a pet hall of fame and a pet arena
-
Re: [mccodes] Advanced Pet Mod [$15] i have bought this mod.. if you wish to see what and how it turned out check it out on my game, link is on my sig :-) more updates will be added to it
-
Re: need help does it take you to login page or to an other website? is it on some or all pages? [perhaps on profiles] more info will be needed but there is ways that someone made this actually happen! go to phpmyadmin check the settngs table see if you find anything weird!.. like a URL
-
Re: [mccodes] Advanced Pet Mod [$15] Are you intrested in selling or not? this is my last msg on this topic im not wasting anymore of my time waiting for a reply!!
-
Re: [mccodes] Advanced Pet Mod [$15] yes please contact me on msn pcollins80@hotmail dot com
-
Re: [mccodes] Advanced Pet Mod [$15] as soon as you upload images ill buy it Thanks
-
Re: [mccodes] Advanced Pet Mod [$15] if this $15 includes the installation im getting it Actually nm ill install it my self, need some details how many tables and how many files Thanks
-
Re: This isn't necessarily a mod but css optimization for fast web page loading! My way worked pretty good for me imo changing the extension from .css to .php and gzip it like the other php files and worked very good. When i used these optimizers i had issues on certain browsers so i don't recommend them but that's just my opinion thanks for the tip though might help a few users
-
Re: I need help Please read asap go into your css file find the table class and change it to this table.table { font-family: verdana, helvetica, arial, geneva, sans-serif; margin-top: 10%; margin-left: 20%; font-size: 14px; then edit the necessary PS That is the edit for announcements, ill try find more for ya
-
Re: Cron Job Replacement This seems very interesting, maybe you can explain what benefits we should expect, would a game/website run faster? less strain on the Database how user friendly is it, if a user after a year wants to add new jobs for example? would like to here more about it Thanks
-
Re: [V2] Mug feature with Stats! did you try to run them 1 by 1?
-
Re: [MCCODES ALL] IE8 Fix for visual Errors i dont think that is a browser issue, more like glitches in the actual script which i must suggest you fix ASAP, unless you are using AJAX or JS!
-
Re: Help With Header this is just a guess but if i remember well you need to define the $db somewhere in the function?? correct me if im wrong!!
-
Login & Register & Header & Lost Password
Paddy replied to veaseyspike's topic in Free Modifications
Re: Login & Register & Header & Lost Password yeah good idea, unless you need alot off admins :lol: -
Re: [V2] Will Refill! one thing i wont add this in is i or most of us use will potions to get something back from donations as an item but still good addon and thanks