-
Posts
2,657 -
Joined
-
Last visited
-
Days Won
74
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Re: To all who read this board. I agree with KILLAH and to those that give freebies. I for one am always chaging things on Freebies but it doesnt take two mins to post who its done by to save all the hassle later.
-
DONT USE AT THE MOMENT TILL I FIGURE WHAT I MISSED SORRY GUYS AND GALS Open up Preferences.php and find print "<h3>Preferences</h3> Now add these following at the bottom. before the "; [url='ignoreusermail.php?action=mailform']Ignore A Users Email[/url] [url='ignoreusermail.php?action=unmailform']Un-Ignore A Users Email[/url] Create a file called ignoreusermail.php <?php include "globals.php"; switch($_GET['action']) { case 'mailform': mail_user_form(); break; case 'mailsub': mail_user_submit(); break; case 'unmailform': unmail_user_form(); break; case 'unmailsub': unmail_user_submit(); break; default; mailban_home(); break; } function prefs_home() { global $db,$ir,$c,$userid,$h; print "<h3>Mailbanning a user</h3> [url='ignoreusermail.php?action=mailform']Add User To Be Ignored[/url] [url='ignoreusermail.php?action=unmailform']Ungignore User[/url] "; } function mail_user_form() { global $db,$ir,$c,$h,$userid; print "<h3>Ignore Mail From A Specified User</h3> The user will not be able to send you ingame mail. <form action='ignoreusermail.php?action=mailsub' method='post'> User to Ignore: ".user_dropdown($c,'user',$_GET['ID'])." Days To Ignore: <input type='text' name='days' /> Reason: <input type='text' name='reason' /> <input type='submit' value='Ignore Future Mail' /></form>"; } function mail_user_submit() { global $db,$ir,$c,$h,$userid; $_POST['reason']=$_POST['reason']; $re=$db->query("UPDATE users SET usermailban={$_POST['days']},usermb_reason='{$_POST['reason']}' WHERE usermbid={$_POST['user']}"); event_add($_POST['user'],"You were banned from mail for {$_POST['days']} day(s) for the following reason: {$_POST['reason']}",$c); print "<font size=4>Users Mail will be Ignored.</font> [url='mailbox.php']Return to Mail Box[/url]"; stafflog_add("Mail Ignored User ID {$_POST['user']} for {$_POST['days']} days"); } function unmail_user_form() { global $db,$ir,$c,$h,$userid; print "<h3>Un-Ignoring User Mail</h3> The user will be removed from your Ignore Mail List. <form action='ignoreusermail.php?action=unmailsub' method='post'> User to Uningnore: ".mailb_user_dropdown($c,'user')." <input type='submit' value='Un-mailban User' /></form>"; } function unmail_user_submit() { global $db,$ir,$c,$h,$userid; $db->query("UPDATE users SET usermailban=0 WHERE usermbid={$_POST['user']}"); print "User un-Ignored."; event_add($_POST['user'], ".", $c); stafflog_add("Un-mailbanned user ID {$_POST['user']}"); } $h->endpage(); ?> Now open up mailbox.php **NOTE THIS WILL DO THE SAME AS PREFS BUT IN THE REPLY BOX** FIND print "[url='mailbox.php?action=delete&ID={$r[']Delete[/url] And underneath overwrite with. [url='preport.php?ID={$r[']Report[/url] [url='ignoreusermail.php?action=mailform']Ignore Usermail[/url] [url='ignoreusermail.php?action=unmailform']Un-Ignore Usermail[/url]</td><td>{$r['mail_text']}</td></tr>"; Now for the SQL ALTER TABLE `users` ADD `usermailban` INT( 11 ) NOT NULL default '0'; ALTER TABLE `users` ADD `usermb_reason` varchar(255) NOT NULL default '0'; ALTER TABLE `users` ADD `usermbid` INT( 11 ) NOT NULL default '0'; Your users can now Ignore and Un-ignore other users...
-
Re: Boat + Planks Mod [V2] Thought id make life easier for ya Karlos this is for the V1 version.. Copyright remains as above. <?php //Planks Mod //Made By karlos + sniko //Copyright © //Made For Mccode V2 //Date Made: 20 - Aug - 2008 //Free To Criminal Exsitence Forum Users session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($ir['jail'] or $ir['hospital']) { echo("This page cannot be accessed while in jail or hospital."); } if(!$_GET['spend']) { print "<h2>Plank And Boat Shop</h2> [i]Here you can buy Planks. Planks Are Needed To Make A Boat The You Can Travel.[/i] [i]You can also Build Your Boat Here.[/i] You Currently Have {$ir['planks']} Planks. <table width=95% border=1> <th height=10%># Of Planks</th><th height=10%>Price</th><th height=10%>Buy</th></tr> <td><center>5</td><td><center>$250</td><td><center>[url='planksshop.php?spend=5']Buy now[/url]</td></tr> <td><center>10</td><td><center>$500</td><td><center>[url='planksshop.php?spend=10']Buy now[/url]</td></tr> <td><center>15</td><td><center>$750</td><td><center>[url='planksshop.php?spend=15']Buy now[/url]</td></tr><tr> <td><center>20</td><td><center>$1000</td><td><center>[url='planksshop.php?spend=20']Buy now[/url]</td></tr> <td><center>25</td><td><center>$1250</td><td><center>[url='planksshop.php?spend=25']Buy now[/url]</a></td></tr></table> <table width=95% border=1> <th height=10%>Boat</th><th height=10%>Build</th></tr> <td><center>Small Boat</td><td><center>[url='planksshop.php?spend=boat']Build Now[/url]</td></tr><tr></table>"; } else { if($_GET['spend'] == '5') { if($ir['money'] <249) { print "You don't have enough money to buy the planks, you need $50!"; } else { mysql_query("UPDATE users SET money=money-250, planks=planks+5 WHERE userid=$userid",$c); print "Congratulations, you bought 5 planks for $250! [url='planksshop.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '10') { if($ir['money'] <499) { print "You don't have enough money to buy the planks, you need $500!"; } else { mysql_query("UPDATE users SET money=money-500, planks=planks+10 WHERE userid=$userid",$c); print "Congratulations, you bought 10 planks for $500! [url='planksshop.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '15') { if($ir['money'] <749) { print "You don't have enough money to buy the planks, you need $50!"; } else { mysql_query("UPDATE users SET money=money-750, planks=planks+15 WHERE userid=$userid",$c); print "Congratulations, you bought 15 planks for $750! [url='planksshop.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '20') { if($ir['money'] <999) { print "You don't have enough money to buy the planks, you need $1000!"; } else { mysql_query("UPDATE users SET money=money-1000, planks=planks+20 WHERE userid=$userid",$c); print "Congratulations, you bought 20 planks for $50! [url='planksshop.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '25') { if($ir['money'] <1249) { print "You don't have enough money to buy the planks, you need $1250!"; } else { mysql_query("UPDATE users SET money=money-1250, planks=planks+25 WHERE userid=$userid",$c); print "Congratulations, you bought 25 planks for $1250! [url='planksshop.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == 'boat') { if($ir['planks'] <49) { print "You only have {$ir['planks']} planks you need 50"; } else { mysql_query("UPDATE users SET planks=planks-50, boat=boat+1 WHERE userid=$userid",$c); print "Congratulations, you built a boat for 50 planks! [url='planksshop.php']Back to Shop[/url] "; } } } } } } } } $h->endpage(); ?> Use the rest of the script above as written..
-
Re: Boat + Planks Mod [V2] lol i love your way of thinking your ideas are about the same as mine keep up the good work karlos i look forward to see more of your scripts +100 from me :)
-
Re: Vallheru created before Mcc ? Your Probably right jaye1 still its a nice Freebie engine to work on all the same, quite a large download aswell at 1.5mb has a fair few extras in the includes folder but its taken me a fair while just to translate that one page lol
-
Re: Vallheru created before Mcc ? Although ive had to translate most of the Vallheru's script from Polish to English this is rather a Neat engine. Havent seen a Cron on it but everything is updating as it would on Mcc even without a cron. The admin panel could do with more features granted but its already equipped without over 100 NPCS each graded at different levels You can even change the style of the layout just by adding a premade CSS and selecting from ones that are all ready in the css folder Although my Polish is rubbish and Google isnt much help with the language it would take a bit of editing but i think this is quite a decent engine to work on.. Not sure about any SQL Injection problems but it would be ideal for a beginner.
-
Im trying to see the Difference between a Polish Game called Vallheru and MCCodes and too be honest oher than Mcc having a header image there isnt much difference....... I may have these dates wrong but i went back to the mcc lite version and its creation year was 2006, where as the creation year for the vallheru was 2004...... and the MCC So was the creator of the MCC who flogs his game for $300 and the Vallheru which is Free, pulling a fast one.....
-
Re: Tutorial: v1 - v2 Conversion when your converting to V2 remove the line that says include "global_func.php"; and overwrite with include "globals.php";
-
Re: [Any] Quick Chat With Owner Not if ya give them a dud yahoo ID thats always offline which defeats the object but hey lol
-
Re: [mod] Mcc Christmas Theme I just offer things that people dont have. just a thought and design phase for people to look at MCCodes a bit more differently rather than how they loko now. Ya never know the flash may take it to a newer level :)
-
Re: [mod] Flash header all Versions of MCC I agree with Extermination and ZERO anyone else wanna comment ;)
-
Re: [FREE] [V2] 2 Game Styles/Themes I for one love Freebies dont really care if anyone else has it or not. hes offered his time and services to do this so thats a +10 from me. problem with all you idiots that pay for these mods is you think your the only one who has them. THINK AGAIN. with so many P2P programs and torrent sites out there we could probably pick up your work for nothing... Just because people charge doesnt mean you cant get it for Free.
-
Re: [Any] Quick Chat With Owner if its for Yahoo then you could use this code [url="http://edit.yahoo.com/config/send_webmesg?.target=0000000000&.src=pg"][img=http://opi.yahoo.com/online?u=0000000000&m=g&t=1][/url] alter the 0000000000 to the YM id of a person on staff so both the 0000000000 need to be the same staff persons name.. just created more links if you have more staff.. This will show staff who have Yahoo to be Online or Offline....
-
Re: [mod] Mcc Christmas Theme Thats quite true but if they have it now then its less hassle later when they need to add it to their site. and anyay at moment its still a demo i might change the layout yet. Adding snow looked cool but i took it off due to lagg
-
Seeing as its nearing chrimbo ive decided to make a christmas header includes an MP3, xmas tune with 5 links DEMO http://www.nightdreamer2000.com/zenellion/xmasheader.php The header isnt linked to the game at the moment but you get the general idea i'll post the files as soon as my connection stops peeing me off.... Will also do a Halloween theme if anyone wants it. as its only the header your changing its quite easy to revert back to your old version just keep a backup of it.
-
Re: [mod] Flash header all Versions of MCC Updated Flash File For those that cant find a suitable picture for a logo You can add text to the Blank space instead... create a file called logo.txt and insert this name=NAME OF YOUR GAME&enddata=1 Upload the logo.txt to the images/ folder where the Flash file is.. NOTE If you have a file called logo.jpg the flash will instantly select that rather than the TXT file so rename your logo.jpg to somthing else (if it isnt being used by any other file)
-
The flash header includes links for HOME, Inventory, Bank, Forums, Your Account.... Includes atmospheric background noises and if you want you can add your own logo picture.. PIC Pack comes with full install files and read me note.. http://www.nightdreamer2000.com/zenellion/headerpack.zip Have fun....
-
[mccode] How hard would it be and can it be done..
Uridium replied to Uridium's topic in Free Modifications
Re: How hard would it be and can it be done.. Thanks for that Nyna just i was fed up of seeing the words crystals and points on games would be nice to have the option of renaming them before the game installs. Im aware most of the mods and even the mcc refers to crystals but addin the post comment to selct from or insert into would be an ideal way for games to make their games that little bit different.. Thanks :) -
Ive been looking at the installer for the mccodes and i reckon with a bit of tweaking you could rename the items before the game is setup.. On the settings it has this when it installs... print "Main MySQL data was written. Now write Extra MySQL data. "; $username=$_POST['a_username']; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['a_password']}'), 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['a_gender']}', unix_timestamp(), '{$_POST['a_email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); $db->query("INSERT INTO settings VALUES(NULL, 'game_name', '{$_POST['game_name']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'game_owner', '{$_POST['game_owner']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'paypal', '{$_POST['paypal']}')"); $db->query("INSERT INTO settings VALUES(NULL, 'game_description', '{$_POST['game_description']}')"); So my theory is if i wanted to change for example crystals for a user defined format i should be able to remove the word crystals from the INSERT INTO string and add ($POST['elemental_type']) as it shows in the insert into settings and for anything where the elemental_type would be involved in this case the word crystals it could be defined as anything... Obviously addint this before the count.. <tr> <td align='center'>Elemental type for game use</td> <td><input type='text' name='elemental_type' /></td> </tr> If ive gone barking mad then thats just me but is there a possabilty this can be done..
-
Seeing as im better at Flash than i am at coding lol heres a freebie Flash clock for your site. come with built in MP3 Track when you click on ILLUSIONS 2008 DEMO << DEMO OFFLINE AT MOMENT SORRY >> Also has a built in Calender. Dont worry about users from different parts of the globe the clock works off your PC so the time will always be right for everyone. Add this line to the html part of your header.php <param name="movie" value="clocktest.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="clocktest.swf" quality="high" bgcolor="#000000" width="130" height="140" name="clocktest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> DOWNLOAD CLOCK www.brutalimpact.net/clocktest.zip
-
Quickest way to test your Crons without using cpanel
Uridium replied to Uridium's topic in General Discussion
Re: Quickest way to test your Crons without using cpanel yep sorry about that i just hate fecking Lemmings :) -
Quickest way to test your Crons without using cpanel
Uridium replied to Uridium's topic in General Discussion
Re: Quickest way to test your Crons without using cpanel if youve nothing good to say Feck off out of my post twat -
Re: [MOD] Item Market Auction Well i have to say that shines a new light on things your post made the most sense. as i said before im not good with how to secure an SQL injection and to be honest im not even sure how they do it. But all i know is everyone on this forum is helping someone else and then you get One Person who Bitches and the rest flock like lemmings. Which too me is uncalled for. But i would like to lean and know hwo the SQL injection system works so i can work on better coding routines.
-
Re: [MOD] Item Market Auction So what your basically saying then your watching people on here that dont know about the security isuuses on their games. so when some poor coder has worked months to get the site as they want it all the sleepless nights trying to get it up and running for the public. Unknowing that some day he's gonna get hacked. And that some person with the security knowledge is going to reep all the benefits by luring his players and watch his his hard work goes to ruins. Thats not a business mind thats just fecking evil.
-
Re: [MOD] Item Market Auction The script does work JD i tested it on two servers. but regards the injection bit im not up on the safety aspect of the code all i know is it works.. yes your right it would be nice to see this script with a more secure rating.. when i got the script of a dodgy website Granted it never worked but ive put a lot of my work into it to make it work and share with others.. The reason im not selling it for 1 its not mine 2 i dont see the point in charging for something when the Bloody stupid Mccodes Program cost the person $300 to begin with. So what you get for $300.. ATTACK doesnt work i spend more time getting a message saying bad bad girl... FORUMS. Was pointed out in previous posts to be very insecure HEADER. well thats just a waste of space you add html to any script and you get an heading error. Has anyone been on the Mono Country website lately half of theri site doesnt even work... But i can guarantee you this when they launch the next mccodes I bet you half the mods on this forum will be implemented into it in some way or another,,