Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,686
  • Joined

  • Last visited

  • Days Won

    81

Everything posted by Uridium

  1. Re: viewuser Put up a screenie of your current Viewuser so we have an idea what that layouts like
  2. This is quite useful for those that have the same url link on multiple files and want to change the name of the actual file name. example there are various files that can use the viewuser.php but if we changed the filename to say look_at_user.php then we would have to change every files so it matches the new link.. what this trick does is it lets you change the config.php file so every link for look_at_user.php is automatically updated on every file that calls for the file.. so for arguments sake we want to add a new staff.php name which we will call staff_new_name.php so open up config.php after the cron code add a , at the end and add $staff_file = 'staff_new_name' now open up mainmenu.php and under the <? add include "config.php"; and change the url for the staff link to if your using the echo statement echo "Staff Menu"; or this if your using the print statement print "Staff Menu "; change name of the file as well so it reflects to staff_new_name.php << this is just an example name obviously... repeat the procedure for all the new file names you want to create.
  3. 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 :)
  4. 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.
  5. 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
  6. 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.
  7. 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.
  8. Re: [MCCODES V2] File Creator and Editor ingame as noted from above  
  9. 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.
  10. 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 ;)
  11. 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
  12. 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 :)
  13. 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
  14. 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 :)
  15. 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 :)
  16. Re: Quests!! I'll +1 ya :) i havent tried it but looked over it
  17. 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
  18. Re: [v2] Viewuser Visual Update Nice addition Sniko deffo +1 from me :)
  19. 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
  20. Re: [MMCODES V2] HACKING ATTEMPTS LOGGED Cheers for the addon matey +1
  21. 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
  22. Re: [MCCODES v2] Trivia Quiz Creator I forgot all about the addition to this mod oops
  23. 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
  24. 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
  25. 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,,
×
×
  • Create New...