-
Posts
2,657 -
Joined
-
Last visited
-
Days Won
74
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
call this file imagesearch.php <?php include "globals.php"; ///////////////////////////// // Illusions 2009 image search // ///////////////////////////// echo '<form method="get" action="http://www.google.com/images" target="_blank"> <input type="text" name="q" size="31" maxlength="255" value="" /> <input type="submit" value="Search for images" /> </form> '; $h->endpage(); ?> Bang a link in your preferences,php pointnig to the above file and bobs yer uncle.. and fannys yer aunt ;) Whats it do: Type any image name into the Search bar and google will find it :)
-
Re: multiple houses with shared housing This part concerns me.. what if the owner of the highest house divorces them and the other person decides not to leave. ? or am i thinking to far in front.
-
Re: MainMenu Mod! NEW! What Modern-Empires means Bwerk is the version you posted above is for mcc v1 as V2 doesnt require the use of the mysql.php file anymore other things you may encounter are some silly error like CALL TO UNDEFINED FUNTION so when you see a global command add $db to it
-
Re: [mccode v2] Items Pic mod SMOKEY goto your phpymyadmin and select ITEMS from there count the number of tables..... Then goto your staff_items.php and count the amount of INSERT INTO queries there is they should both match if not then you will need to work out which table is missing from phpmyadmin or your php file.
-
[MCCODES V2] File Creator and Editor ingame
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] File Creator and Editor ingame There is no safe feature to this mod.. its only safe if one person uses it and that person is the game owner and doesnt tell anyone wat the files are called. -
[MCCODES V2] File Creator and Editor ingame
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] File Creator and Editor ingame as noted from above -
[MCCODES V2] File Creator and Editor ingame
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] File Creator and Editor ingame oO0 SECURITY NOTICE 0Oo PLEASE CHANGE THE NAMES OF BOTH FILES AND ANYLINKS THAT ARE IN THEM EVEN THE STAFF LINKS WILL NEED TO BE CHANGED This is purely so other users that see this script dont decide to randomly type illusions.php or filedata.php im aware both are setup only for admin access but a little more security wont harm it..... OOPS forgot to mention on script post also make a txt file called filedata.txt this is for the inview of the filedata.php file which will allow you to change the link of the file you want to edit to a new one so you dont have to keep uploading filedata.php all the time. -
Re: [mccode v2] Ignore User Mail Fixed it... new sql ALTER TABLE ignore ADD reason VARCHAR (255) NOT NULL Call this file ignore.php And your users can now place a reason why statement for each person the ignore, <?php /*----------------------------------------------------- -- Ignore User For MC Code V2 -- Free Mod -- [url]http://www.squangle.org[/url] -- By Tonka -- ignore.php -----------------------------------------------------*/ include "globals.php"; switch($_GET['action']) { case 'ignoreform': ignore_form(); break; case 'ignoresub': ignore_submit(); break; case 'unignore': unignore(); break; default; index(); break; } function index() { global $db,$userid; echo '<h3>Ignoring a user</h3> [url="'.$_SERVER['PHP_SELF'].'?action=ignoreform"]Add User To Be Ignored[/url] <table width="85%" cellspacing="1" class="table"> <th>User ID</th> <th>Username</th> <th>Remove?</th> <th>Reason</th> <th>Status</th>'; $sql = sprintf(("SELECT `id`, `blocked`, `reason` FROM `ignore` WHERE userid = %u"), $userid); $q = $db->query($sql); while($r=$db->fetch_row($q)) { $select = sprintf(("SELECT `username`, `laston` FROM `users` WHERE userid = %u"), $r['blocked']); $u2 = $db->query($select); $u=$db->fetch_row($u2); $username = $u['username']; $id = $r['id']; if($u['laston'] >= time()-15*60) { $on='<font color=green>[b]Online[/b]</font>'; } else { $on='<font color=red>[b]Offline[/b]</font>'; } echo '<tr><td>'; echo sprintf("%u", $r['blocked']); echo '</td><td>'; echo '<a href="viewuser.php?u='; echo sprintf("%u", $r['blocked']); echo '">'; echo $username; echo '</a>'; echo '</td><td>'; echo '<a href="'.$_SERVER['PHP_SELF'].'?action=unignore&id='; echo $id; echo '">Remove</a>'; echo '</td><td>'; echo $r['reason']; echo '</td><td>'; echo $on; echo '</td></tr>'; } echo "</table>"; } function ignore_form() { echo '<h3>Ignore Mail From A Specified User</h3> The user will not be able to send you ingame mail. <form action="'.$_SERVER['PHP_SELF'].'?action=ignoresub" method="post"> ID of person to ignore: <input type="text" name="blid" /> Reason For User Ignore: <input type="text" name="reason" /> <input type="submit" value="Ignore Future Mail" /></form>'; } function ignore_submit() { global $db,$userid; $blid = mysql_real_escape_string($_POST['blid']); $reson = mysql_real_escape_string($_POST['reason']); $select = sprintf(("SELECT `userid`, `user_level` FROM `users` WHERE userid = %u"), $blid); $ul2 = $db->query($select); $ul=$db->fetch_row($ul2); if(empty($blid) or $blid == 0) { echo 'You did not enter a userid. [url="'.$_SERVER['PHP_SELF'].'?action=ignoreform"]Back[/url]'; } else if($ul['userid'] != $blid) { echo 'You can\'t ignore a non-existant user. [url="'.$_SERVER['PHP_SELF'].'?action=ignoreform"]Back[/url]'; } else if($ul['user_level'] != 1) { echo 'You can\'t ignore staff. [url="'.$_SERVER['PHP_SELF'].'?action=ignoreform"]Back[/url]'; } else if($blid == $userid) { echo 'You can\'t ignore yourself. [url="'.$_SERVER['PHP_SELF'].'?action=ignoreform"]Back[/url]'; } else { $insert = sprintf("INSERT INTO `ignore` (`userid`, `blocked`, `reason`) VALUES('%u', '%u', '{$_POST['reason']}')", $userid, $blid, $reason); $db->query($insert); echo 'Users Mail will be Ignored. [url='.$_SERVER[']Return to ignore[/url]'; } } function unignore() { global $db,$userid; $delete = sprintf(("DELETE FROM `ignore` WHERE id=%u AND userid=%u"), mysql_real_escape_string($_GET['id']), $userid); $db->query($delete); echo 'User un-ignored. [url='.$_SERVER[']Return to ignore[/url]'; } $h->endpage(); ?> Cheers haunted ;) damn hes got good eyes has our DAWG he spotted a ' when its hould have been ` DOH! lol cheers pal ;)
-
Re: [mccode v2] Ignore User Mail Ive made an update to thiss but seem to be having a few issues from Tonkas copy which works fine up until i added my parts so just to make those AWARE tonkas copy works fnie without the edits here.. just need some help. Ive created a new table on the ignore called reason varchar (255) not null add to the insert $insert = sprintf("INSERT INTO `ignore` (`userid`, `blocked`, `reason`) VALUES('%u', '%u', '{$_POST['reason']}')", $userid, $blid, $reason); Ok now the reason is inserted into the dbase but the text wont appear when someone goes back to the ignore script the REASON is just blank ive placed echo '</td><td>'; echo $reason; echo '</td><td>'; So it calls for the statement but its coming up blank... Any ideas
-
[MMCODE V2] Set Sell Price of houses after they are Purchased...
Uridium replied to Uridium's topic in Free Modifications
Re: [MMCODE V2] Set Sell Price of houses after they are Purchased... Destroyer.. all mods for MCC are useless thats why we create them, in the hope some people may see through the Uslessness of them and try making something from it :) -
Re: NOT a MOD just an Idea This post allows you to set a sell price http://criminalexistence.com/ceforums/index.php?topic=29121.0
-
Re: Quests!! I think he's doing fine on his own. As a first script i think we can certainly see some more decent scripts from him :) Sorry Danny wasnt aware you took part but yeah i'll +1 you :)
-
The houses on MCC are always at a set price even though i made a mod so when you sell them you could sell them at half the amount. so my thinknig is if a house can be bought new at say $50,000 and sold at $25,000 then why cant a user buy the house which was sold at $25,000 with reduced will as its now second hand :)
-
Re: Quests!! I'll +1 ya :) i havent tried it but looked over it
-
[Mccodes V2] [BIG MOD] Trading Card Game [$15]
Uridium replied to Joel's topic in Paid Modifications
Re: [Mccodes V2] [bIG MOD] Trading Card Game [$15] Damn joel lol your killing my way of thinking its great when it becomes obsessive Excellent Addition, Excellent Aspect and finally An original Idea Tru to form :) +1 -
Re: [v2] Viewuser Visual Update Nice addition Sniko deffo +1 from me :)
-
[MCcode V2 or V1] raDiO's Raffle Script [$10 USD]
Uridium replied to radio_active's topic in Paid Modifications
Re: [MCcode V2 or V1] raDiO's Raffle Script [$10 USD] For those having issues with the cron_weekly cron adding events then get rid of the evnt section completely and look inside your staff.php for this line $db->query("INSERT INTO announcements VALUES('{$_POST['text']}', unix_timestamp())"); $db->query("UPDATE users SET new_announcements=new_announcements+1"); after removing the event_add from the cron_weekly then add this $db->query("INSERT INTO announcements VALUES('The following people have won this weeks raffle: $message There is \$$extra in the pot to start off the new week. ', unix_timestamp())"); $db->query("UPDATE users SET new_announcements=new_announcements+1"); This will add to your Announcements rather than cluttering up your Events -
Re: [MMCODES V2] HACKING ATTEMPTS LOGGED Cheers for the addon matey +1
-
open up staff_punit.php and where the function ip_search_submit() starts over write with this.. function ip_search_submit() { global $db,$ir,$c,$h,$userid, $domain; print "Searching for users with the IP: [b]{$_POST['ip']}[/b] <table width=75%><tr style='background:gray'> <th>Track User</th><th>User</th> <th>Level</th> <th>Money</th> </tr>"; $q=$db->query("SELECT * FROM users WHERE lastip='{$_POST['ip']}'"); $ids=array(); while($r=$db->fetch_row($q)) { $ids[]=$r['userid']; print "\n<tr> <td> [url='http://whatismyipaddress.com/staticpages/index.php/ip-details?ip={$_POST[']Track {$_POST['ip']}[/url]</td> <td> [url='viewuser.php?u={$r[']{$r['username']}[/url]</td> <td> {$r['level']}</td> <td>{$r['money']}</td> </tr>"; } print "</table> [b]Mass Jail[/b] <form action='staff_punit.php?action=massjailip' method='post'> <input type='hidden' name='ids' value='".implode(",",$ids)."' /> Days: <input type='text' name='days' value='300' /> Reason: <input type='text' name='reason' value='Same IP users, Mail fedjail@{$domain} with your case.' /> <input type='submit' value='Mass Jail' /></form>"; } You can now track your users IP by country
-
Re: [MCCODES v2] Trivia Quiz Creator I forgot all about the addition to this mod oops
-
Re: Maintenance mode? oops my bad it should have been if($ir['mainmode] = 1) snd underneath it should have been else if($ir['user_level'] = 2) you get the idea lol
-
Re: Maintenance mode? You could just create a sql in the user table alter table users add mainmode INT (11) default 0; add to each script if($ir['user_level'] = 1) { die("<h1>Maintenance Mode Come Back Later</h1>"); } The above will allow staff to go on line rather than members
-
[mcCodes v2] Donator Pack About to Expire Warning
Uridium replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning You can add a staff section for this which will inform Donators of new and upcoming functions well before non paying members get to know. or use it for somthing completley different,, -
[mcCodes v2] Donator Pack About to Expire Warning
Uridium replied to CainFool's topic in Free Modifications
Re: [mcCodes v2] Donator Pack About to Expire Warning was messing with this might come in useful might not.... create SQLS CREATE TABLE IF NOT EXISTS `donevents` ( `donevID` int(11) NOT NULL auto_increment, `donevUSER` int(11) NOT NULL default '0', `donevTIME` int(11) NOT NULL default '0', `donevREAD` int(11) NOT NULL default '0', `donevTEXT` text NOT NULL, PRIMARY KEY (`donevID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; add this to your events.php before the final endpage statement if($ir['donatordays'] == 0) { exit(); $h->endpage(); } $_GET['delete1'] = abs((int) $_GET['delete1']); if($_GET['delete1']) { $db->query("DELETE FROM donevents WHERE donevID={$_GET['delete']} AND donevUSER=$userid"); print "[b]Event Deleted[/b] "; } if($_GET['delall31']) { print "This will delete all your events. There is [b]NO[/b] undo, so be sure. > [url='events.php?delall231=1']Yes, delete all my events[/url] > [url='events.php']No, go back[/url] "; $h->endpage(); exit; } if($_GET['delall231']) { $am=$db->num_rows($db->query("SELECT * FROM donevents WHERE donevUSER=$userid")); $db->query("DELETE FROM donevents WHERE donevUSER=$userid"); print "All [b]{$am}[/b] donevents you had were deleted. > [url='events.php']Back[/url] "; $h->endpage(); exit; } print "<h1>[b]Latest 10 Donator events</h1>[/b]<hr /> > [url='events.php?delall31=1']Delete All Events[/url]<hr />"; $q=$db->query("SELECT * FROM donevents WHERE donevUSER=$userid ORDER BY donevTIME DESC LIMIT 10;"); print "<table width=75% cellspacing=1 class='table'> <tr style='background:gray;'> <th>Time</th> <th>Event</th><th>Links</th> </tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>".date('F j Y, g:i:s a',$r['donevTIME']); if (!$r['donevREAD']) { print " [b]New![/b]"; } print "</td><td>{$r['donevTEXT']}</td><td>[url='events.php?delete1={$r[']Delete[/url]</td></tr>"; } print "</table>"; if($ir['new_events'] > 0) { $db->query("UPDATE donevents SET donevREAD=1 WHERE donevUSER=$userid"); $db->query("UPDATE users SET new_events=0 WHERE userid=$userid"); } add this to global_func.php below the events function donevent_add($userid,$text,$connection=0) { global $db; $text=mysql_escape($text); $db->query("INSERT INTO donevents VALUES('',$userid,UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}"); return 1; } open up index.php and add near top if($ir['donatordays'] == 7) { donevent_add($ir['userid'],"You have {$ir['donatordays']} Donator Days Remaining <a href=donator.php>Renew Days </a>"); } if($ir['donatordays'] == 1) { donevent_add($ir['userid'],"Your Donator Days Expires Tomorrow <a href=donator.php>Renew Days </a>"); } -
Re: Hospital Java Countdown Excellent Addition Shrek :) Deffo gonna +1 ya.