Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,657
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Uridium

  1. Re: Small Mod :) Nice one POG Deffo be using this mod might be small but makes a BIG difference :) +10 from me
  2. Re: [V2] Ignore User Mail [V2] Fixed TONKAS copy of the Ignore.. Took me a while to find the problem but it seems you had extra ' in the word You can't Ignore so for those using TONKAS script just find the word CAN'T and change it to Cannot You should have a working copy now
  3. Re: [V2] Ignore User Mail [V2]   ORIGINAL POST WIITHOUT THE EDITS   <?php /*----------------------------------------------------- -- Ignore User For MC Code V2 -- Free Mod -- [url]http://www.squangle.org[/url] -- By Illusions -- Edited to work properly 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,$ir,$c,$userid,$h; print "<h3>Mailbanning a user</h3> [url='ignore.php?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>Status</th>"; $sql = sprintf(("SELECT `id`, `blocked` 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 $username; echo '</td><td>'; echo "[url='ignore.php?action=unignore&id=$id']Remove[/url]"; echo '</td><td>'; echo $on; echo "</td></tr>"; } print "</table>"; } function ignore_form() { print "<h3>Ignore Mail From A Specified User</h3> The user will not be able to send you ingame mail. <form action='ignore.php?action=ignoresub' method='post'> ID of person to ignore: <input type='text' name='blid' /> <input type='submit' value='Ignore Future Mail' /></form>"; } function ignore_submit() { global $db,$ir,$c,$h,$userid; if($_POST['blid'] == "") { print "You did not enter a userid. [url='ignore']Back[/url]"; } else if ($_POST['blid'] == $userid) { print "You can't ignore yourself"; } else { $insert = sprintf("INSERT INTO `ignore` (`id`, `userid`, `blocked`) VALUES ('NULL', '%u', '%u')", $userid, mysql_real_escape_string($_POST['blid'])); $db->query($insert); print "Users Mail will be Ignored. [url='mailbox.php']Return to Mail Box[/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); print "User un-ignored."; } $h->endpage(); ?>
  4. Re: [V2] Ignore User Mail [V2]   Ive sent the Orig to your FTP try that one JD
  5. Re: [V2] Ignore User Mail [V2]     ON line 87 where the PRINT statment is remove the " or quotation mark
  6. Re: {MOD} UPGRADED upload pics add pics to shops, Items, Inventory for those not being able to view the pics once uploaded ive corrected the problem with the uploaditmpic.php above so use that from the first post.. also fixed able to edit pics and pic name that was also having errors on the staff panel. added ability to view pics in shops and in your inventory...
  7. Re: [V2] Youtube Mod [V2]   Thanks Anyone else want to say I'm working for Youtube? Actually my post should have said but seeing as your not working for them the mods great Stupid dyslexic keyboard
  8. Re: [V2] Ignore User Mail [V2]   Jamboy which part are you having problems with are you getting an error is everyone else being put on ignore ? ya if i put one person on ignore, it will then put every othr player in the game on my ignore list there is no error Myself and tonka looked and checked the script on your site everything is working normally as it should be,,,
  9. Re: [V2] Youtube Mod [V2] Extermination if your working for youtube tell em to quit messing with my password lol But seeing as yout now working for them the mods great :) +100
  10. Re: [V2] Ignore User Mail [V2]   Jamboy which part are you having problems with are you getting an error is everyone else being put on ignore ?
  11. Re: {MOD} Upload Item Pics Via admin panel + Create Description..   My original post didnt have that Edition it was introduced later. My origiinal post was.....   if(empty($_FILES['imagefile']))   Under the function at top of page and..   /*Update DB*/ mysql_query( sprintf("UPDATE `items` SET `itmpic` = '%s' WHERE `itmpicname` = %u", mysql_real_escape_string($picture), $userid)); }   Near the bottom of page Hope that helps
  12. Re: {MOD} Upload Item Pics Via admin panel + Create Description.. PART 2 this will display the pics youve upload and let you give a description Original Script by script was by TwiztedFake Open up staff_items.php Find: Code: Armor Defense: <input type='text' name='armor' value='0' /><hr /> After add: Code: [b]Item Pics[/b] <input type='text' name='itmpic' value='' /><hr />   Find:   $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)"); Replace with:   $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor,'{$_POST['itmpic']}')");   Scroll down a bit on same file find Find: Code: Armor Defense: <input type='text' name='armor' value='{$itemi['armor']}' /><hr /> After Add: Code: [b]Item Pics[/b] <input type='text' name='itmpic' value='{$itemi['itmpic']}' /><hr />   Find: Code: $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)");   And Overwrite with this   $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor, '{$_POST['itmpic']}')");   Now open up iteminfo.php find   print "<table width=75% class='table' cellspacing='1'><tr style='background: gray;'><th colspan=2>[b]Looking up info on {$id['itmname']}[/b]</th></tr><tr bgcolor=#dfdfdf><td colspan=2>The [b]{$id['itmname']}[/b] is a/an {$id['itmtypename']} Item - [b]{$id['itmdesc']}[/b]</th><tr style='background: gray;'><th colspan=2>Item Info</th></tr><tr style='background:gray'><th>Item Buy Price</th><th>Item Sell Price</th></tr><tr><td>";   Overwrite the entire TWO lines with this one   if($id['itmpic']) { $itmpic = "<tr style='background: gray;'><td colspan='2' style='text-align: center;'>[img=itmpics/".$id[]</td></tr>"; } print "<table width=75% class='table' cellspacing='1'><tr style='background: gray;'><th colspan=2>[b]Looking up info on {$id['itmname']}[/b]</th></tr>$itmpic[b]{$r['itmdesc']}[/b]<tr bgcolor=#dfdfdf><td colspan=2><center>The [b]{$id['itmname']}</center>[/b]</th><tr style='background: gray;'><th colspan=2>Item Info</th></tr><tr style='background:gray'><th>Item Buy Price</th><th>Item Sell Price</th></tr><tr><td>";   so the line below the above should just be if($id['itmbuyprice']) And thats it you should be good top go....
  13. Sorry TONKA ive had to remove your part of the script there was errors. UPDATE >> YOU CAN NOW VIEW YOUR UPLOADED PICS IN THE SHOPS AND NOW IN YOUR INVENTORY Create a folder on your FTP called itmpics this is where you Images will be stored,,, The first script will allow you to upload Item Pics to your server so they can be used when you add pics to the INFO page. this UPLOAD script was by Isomerizer found here http://criminalexistence.com/ceforums/index.php?topic=10319.0 The second script which was for adding pics to the INFO page will allow you to Add a Description to your picture when youve uploaded it UIsing the script above the ITMPICS script was by TwiztedFake and can be found here http://criminalexistence.com/ceforums/index.php?topic=18505.0 First of all the easy part.. This will probably be in two section.. ALTER TABLE `items` ADD `itmpic` VARCHAR( 255 ) NOT NULL ; For the UPLOAD ITEM PIC Create a file called uploaditmpic.php << NEWER VERSION NOW KEEPS TRACKS OF PICS AND DESCRIPTION <?php /*----------------------------------------------------- -- Isomerizer -- Copyright held 2007-2008 © Isomerizer.com -- uploadpic.php -----------------------------------------------------*/ require("sglobals.php"); if(empty($_FILES['imagefile'])) { echo ' Upload an Item Image: <form name="imageuploader" method="post" action="'.$_SERVER['PHP_SELF'].'" enctype="multipart/form-data"> [i]Path of Image:[/i] <input type="file" name="imagefile" /> <input type="submit" name="Submit" value="Upload Image" /> </form> (Max 10000 file bytes , Must be file extention gif, jpg, jpeg, png, bmp....) (Images are resized to 150 x 150) '; } else { //Edit below for max fb size of the pic $maxsize = 1000000; /*Basic security procedures*/ if(!$_SERVER['REQUEST_METHOD'] == "POST" || !isset($_SERVER['HTTP_USER_AGENT'])){ echo 'Hack Attempt!'; $h->endpage(); exit; } $headerinject = array("Content-Type:", "MIME-Version:", "Content-Transfer-Encoding:", "bcc:", "cc:"); foreach($_POST as $k => $v){ foreach($headerinject as $v2){ if(strpos($v, $v2) !== false){ logBadRequest(); header("HTTP/1.0 403 Forbidden"); exit; } } } /*What extensions can be used?*/ $valid = array('image/gif', 'image/png', 'image/pjpeg','image/jpeg', 'image/jpg'); /*If the extension isnt allowed...*/ if(!in_array($_FILES['imagefile']['type'], $valid)) { $type = strrchr($_FILES['imagefile']['name'], '.'); echo 'This file type '.$type.' is not allowed. [url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; $h->endpage(); exit; } /*Check image size*/ if ($_FILES['imagefile']['size'] > $maxsize) { echo 'Image to large [url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; $h->endpage(); exit; } $check = ''.$_FILES['imagefile']['tmp_name'].''; /*Check for .exe files*/ if (is_executable($check) || !is_file($check)) { echo 'The file '.$_FILES['imagefile']['name'].' seems to be harmful to the server [url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; @unlink($check); $h->endpage(); exit; } /*Now to create the correct image using php*/ if ($_FILES['imagefile']['type']=="image/jpeg") { $create = @ImageCreateFromJPEG(''.$_FILES['imagefile']['tmp_name'].''); $image = @Imagejpeg($create, 'itmpics/'.$_FILES['imagefile']['name'].''); } if ($_FILES['imagefile']['type']=="image/png") { $create = @ImageCreateFromPNG(''.$_FILES['imagefile']['tmp_name'].''); $image = @Imagepng($create, 'itmpics/'.$_FILES['imagefile']['name'].''); } if ($_FILES['imagefile']['type']=="image/jpg") { $create = @ImageCreateFromJPEG(''.$_FILES['imagefile']['tmp_name'].''); $image = @Imagejpeg($create, 'itmpics/'.$_FILES['imagefile']['name'].''); } if ($_FILES['imagefile']['type']=="image/gif") { $create = @ImageCreateFromGIF(''.$_FILES['imagefile']['tmp_name'].''); $image = @Imagegif($create, 'itmpics/'.$_FILES['imagefile']['name'].''); } if ($_FILES['imagefile']['type']=="image/pjpeg") { $create = @ImageCreateFromJPEG(''.$_FILES['imagefile']['tmp_name'].''); $image = @Imagejpeg($create, 'itmpics/'.$_FILES['imagefile']['name'].''); } /*Destroy the php image*/ @unlink(''.$_FILES['imagefile']['tmp_name'].''); @ImageDestroy($create); /*If php could not create the image*/ if (!$create) { echo 'The image you are trying to upload seems to be corrupt please try again! [url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; $h->endpage(); exit; } $path = 'itmpics/'; $pic = $_FILES['imagefile']['name']; $picture = $path.$pic; $oldpic = $ir['display_pic']; /*Check to see if its already uploaded*/ if ($picture == $oldpic) { echo ' Image already uploaded![url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; $h->endpage(); exit; } /*Delete previous image to save space*/ $delete = @unlink($oldpic); if ($delete) { echo 'Previous image deleted from system... '; } if (!$delete) { echo 'No Previous image to be deleted... '; } $dataa = $_FILES['imagefile']['size']; $datab = $_FILES['imagefile']['type']; $datad = $_FILES['imagefile']['name']; /*Information for user*/ echo 'Old Image Location: '.$oldpic.' New Image Location: '.$picture.' Image Uploaded <u>Info:</u> Image Name: '.$datad.' Image Size: '.$dataa.' bytes Type: '.$datab.' [url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; /*Check DB*/ $check = mysql_query( sprintf("SELECT COUNT(*) as cnt FROM `items` WHERE `itmpic` = '%s'", mysql_real_escape_string($picture))); $checks = mysql_fetch_array($check); if ($checks['cnt'] > 0) { echo 'Please use another image name [url="'.$_SERVER['PHP_SELF'].'"]Back[/url]'; $h->endpage(); exit; } /*Update DB*/ mysql_query( sprintf("UPDATE `items` SET `itmpic` = '%s' WHERE `itmpic` = %u", mysql_real_escape_string($picture), $userid)); } $h->endpage(); exit; ?> Now open smenu.php and Add this line to the Items Section > Upload Item Pic Thats it for ISOMERIZERS edit The next part if for displaying the Images so i'll post this one first and do the next on another post.. DO THE POST BELOW BEFORE THIS PART ADDING PICS TO SHOPS... open SHOPS.php and find this line print "\n<tr style='background: gray;'><th colspan=5>{$lt}</th></tr>"; ) under it overwrite with this line print "\n<tr><td>{$r['itmname']}</td><td>[img=itmpics/{$r[]</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; now open INVENTORY.PHP << DEPENDING ON IF YOU HAVENT CHANGE THE INVENTORY SCRIPT find <td class=\"h\">Total Sell Value</td> Under it add <td class=\"h\">Item Pic</td> now find print "$".($i['itmsellprice']*$i['inv_qty']); and under it add this line print"</td><td>[img=itmpics/{$i[]";
  14. Re: [ADDON] Oxidations Youtube script   Dont get me wrong OXI im not discracing your script im just pointing out that with youtube now making downloads harder the script didnt work. because of it.
  15. Re: My forgot password. [v2] & [v1] If anyone is still having probs with this script as i did :) No offence killah change if(file_exist("config.php")) to if(file_exists("config.php")) thats it all done :)
  16. Re: Activation code and cron V.2 Would work even better if you gave us the SQL Tables for it ?
  17. Re: [MOD] This mod lets your Users Ignore Other Users Emails Big Thank you to TONKA for the working version :)
  18. Re: [V2] Ignore User Mail [V2] TONKA your a star However i cant take the credit for this as yours works and mine didnt lol So im quite happy for you to remove my name and add your own to the credits Matey a big thanks for this its been driving me nuts :) +100 from me :)
  19. Re: My forgot password. [v2] & [v1]   I don't think you are funny. Keep your comment's to your self. And don't you have a game you should be running? Rather than posting something so pathetic. Lately all your post's has just been containing 2 - 8 words. NICE ONE The annoying little prick has been getting on my nerves too lately with his smirk comments Cant wait for him to post after this so i can rip the little shit to shreads
  20. Re: Activation code and cron V.2   I was just about to say that lol you beat me too it... shouldnt it be global_func or even globals Reason for EDIT dyslexic keyboard
  21. Re: [ADDON] Oxidations Youtube script The download YOUTUBE part doesnt work i also tested it before i altered anything and it still never worked so i'll look into finding a possible solution. What i do know is Youtube have restricted the majority of downloadable files But even so the script from OXI wasnt pointing in the right place anyway...
  22. This is an addon from the details.php which was posted on here but i cant find it. so i'll just Give credit to where credits due to the owner... Copyright 2008 Ammo This ADDON will allow you to View every members details from the staff or admin Panel. Firstly create a file called staffuserdetails.php   <? include "sglobals.php"; //This contains user stuff switch($_GET['action']) { case 'viewuserdetails': view_user_begin(); break; default: print "Error: This script requires an action."; break; } function htmlspcl($in) { return str_replace("'", "'", htmlspecialchars($in)); } function view_user_begin() { global $db,$ir,$c,$h,$r,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>View User Details</h3> You can view any aspect of this user. <form action='details.php?action=viewuserdetails method='post'> User: ".user_dropdown($c,'u')." <input type='submit' value='View This User' /></form>"; } $h->endpage(); ?>   Open up smenu.php and add this line to the USERS section   > [url='staffuserdetails.php?action=viewuserdetails']View User Details[/url]   Now create a file called details.php this is the file from AMMO   <?php /* |------------------------------------------------| details.php Free For CE Members Copyright 2008 Ammo |------------------------------------------------| */ include "sglobals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $wq=$db->query("SELECT * FROM gangwars where warDECLARER={$ir['gang']} or warDECLARED={$ir['gang']}"); //$gq=$db->query("SELECT * FROM gangs WHERE gangID={$_GET['ID']}"); $gangdata=$db->fetch_row($gq); $gq=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangID={$ir['gang']}"); $gangdata=$db->fetch_row($gq); $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); global $db,$ir,$c,$h,$gangdata; if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Yes[/b]</font>"; } else { $on="<font color=red>[b]No[/b]</font>"; } $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); if ($ir['user_level']== 1) { print" Your Not A Staff Member"; } else { print "<h3>Details For {$r['username']}</h3> <table width=100% cellspacing=3 ><u>[b]General Info[/b]</u> Username: {$r['username']} Login Name: {$r['login_name']} User Level: $userl Duties: {$r['duties']} E-Mail Address: {$r['email']} IP Address: <font color=red>{$r['lastip']}</font> Signed Up IP: <font color=green>{$r['lastip_signup']}</font> Login IP: <font color=blue>{$r['lastip_login']}</font> </td> Display Picture URL: {$r['display_pic']} [i]<font color=red>(<a href={$r['display_pic']}>View</a>)[/i]</font> Gender: {$r['gender']} Signed Up: $sup Online: $on Last Active: $lon Last Action: $str Last Login: $str2 Days Old: {$r['daysold']} Property: {$r['hNAME']} Location: {$r['cityname']} Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']}</table> <table width=100% cellspacing=1 > <u>[b]Finacial Info[/b]</u> Money: \${$r['money']} Crystals: {$r['crystals']} Rubys: {$r['ruby']} Bank Money: \${$r['bankmoney']} Cyber Money: \${$r['cybermoney']} Crystal Bank: {$r['cbank']} Ruby Bank: {$r['rbank']} Marketing Scheme: \${$r['mmarket']}</table> "; if($r['gang']) { print " <table width=100% cellspacing=0 > <u>[b]Gang Info</u>[/b] Gang: [url='gangs.php?action=view&ID={$r[']<font color=green>{$r['gangNAME']} ({$r['gangID']})</font>[/url] Gang President ID: <a href=viewuser.php?u={$gangdata['gangPRESIDENT']}>{$gangdata['gangPRESIDENT']}</a> Gang Vice-President ID: <a href=viewuser.php?u={$gangdata['gangVICEPRES']}>{$gangdata['gangVICEPRES']}</a> Gang Wars: <font color=red>".$db->num_rows($wq)." Wars</font> Gang Respect: {$r['gangRESPECT']} Gang Current Crime ID: {$r['gangCRIME']} Gang Current Crime Name: {$gangdata['ocNAME']} Gang Crime Hours Left: {$r['gangCHOURS']} <u>Gang Financial Info</u> Gang Money: {$r['gangMONEY']} Gang Crystals: {$r['gangCRYSTALS']} </table>"; } else { print "<table width=100% cellspacing=0 >[b]<u>Gang Info</u>[/b] <font color=red>No Gang</font> </table>"; } print" <table width=100% cellspacing=0 >[b]<u>Forum Info</u>[/b] Forum Posts: {$r['posts']} Forum Credits: {$r['fcredits']} Forum Avatar: {$r['forums_avatar']} [i]<font color=red>(<a href={$r['forums_avatar']}>View</a>)[/i]</font> Forum Sig: {$r['forums_signature']} <u>Special Info</u> Donator Days: {$r['donatordays']} Days Left Fed Jail Days: {$r['fed_days']} Fed Reason: {$r['fed_reason']} Mail Ban Days: {$r['mailban']} Mail Ban Reason: {$r['mb_reason']} Forum Ban Days: {$r['forumban']} Forum Ban Reason: {$r['fb_reason']}</table> <table width=100% cellspacing=0 >[b]<u>Weapon Infomation</u>[/b] Primary Weapon ID: {$r['equip_primary']} Secondary Weapon ID: {$r['equip_secondary']} Armour ID: {$r['equip_armor']}</table> <u>Jail/Hospital Details</u> Jail Time: {$r['jail']} Jail Reason: {$r['jail_reason']} Hospital Time: {$r['hospital']} Hospital Reason: {$r['hospreason']} <u>Stats Infomation</u> Strength: {$r['strength']} [Ranked: {$ir['strank']}] Agilty: {$r['agility']} [Ranked: {$ir['agirank']}] Gaurd: {$r['guard']} [Ranked: {$ir['guarank']}] Labour: {$r['labour']} [Ranked: {$ir['labrank']}] IQ: {$r['IQ']} [Ranked: {$ir['IQrank']}] Total Stats: {$ts} [Ranked: $tsrank] <u>Performace Stats</u> Energy: {$r['energy']} Brave: {$r['brave']} Will: {$r['will']} Health: {$r['hp']} Max Energy: {$r['maxenergy']} Max Brave: {$r['maxbrave']} Max Will: {$r['maxwill']} Max Health: {$r['maxhp']} EXP: {$r['exp']}% Steps: {$r['turns']} Oxygen: {$r['oxygen']}/100 <u>Actions</u> [url='jailuser.php?userid={$r[']Jail User[/url] [url='mailban.php?userid={$r[']Mail Ban User[/url] [url='staff_users.php?action=edituser']Edit User[/url] [url='staff_users.php?action=deluser']Delete User[/url] "; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form> "; } } } $h->endpage(); ?>   And your done.
  23. I havent added much just made it so Users can search for Youtube vids within your game.. The original script to this can be found here.. http://criminalexistence.com/ceforums/index.php?topic=10385.0 Copyright still remains with Oxidations free youtube script. create a file called youtube.php and add this..   <?php /*************************** -- Basic YouTube Downloader Script -- Compiled by Oxidati0n -- Free Code, copyright 2007. ***************************/ include "globals.php"; if($_POST['video']) { $file=file_get_contents("http://m.youtube.com/details?v=".$_POST['video']."&s=mmr&p=1&warned=yes"); if($_POST['type'] == "Download") { if(!eregi('Invalid Video ID.', $file) and !eregi('Not Available on Mobile', $file)) { header("Location: rtsp://rtsp.youtube.com/youtube/videos/".$_POST['video']."/video.3gp"); } elseif(eregi('Not Available on Mobile', $file)) { print "<body bgcolor=#222><font color=#000><style>*{ color:#000; text-align:left; } body,form{ font-family:Verdana;font-size:11pt; } input{ color:#000; }</style> <font size=+5>Not available for download.</font> <hr /> [b]Enter the YouTube Video ID[/b] [img=http://s.ytimg.com/yt/img/pixel-vfl73.gif] NOTE: Video will be formatted in 3GP in which you can send to your mobile phone. <form action='youtube.php' method='post'> ID: <input type='text' name='video'> <input type='submit' name='type' value='Watch'><input type='submit' name='type' value='Download'></form></font></body>"; }else { print "<body bgcolor=#222><font color=#000><style>*{ color:#000; text-align:left; } body,form{ font-family:Verdana;font-size:11pt; } input{ color:#000; }</style> <font size=+5>Youtube Video doesn't exist.</font> <hr /> [b]Enter the YouTube Video ID[/b] [img=http://s.ytimg.com/yt/img/pixel-vfl73.gif] NOTE: Video will be formatted in 3GP in which you can send to your mobile phone. <form action='youtube.php' method='post'> ID: <input type='text' name='video'> <input type='submit' name='type' value='Watch'><input type='submit' name='type' value='Download'></form></font></body>"; } } elseif($_POST['type'] == "Watch") { print "<body bgcolor=#222><font color=#000><style>*{ color:#000; } input{ color:#000; }</style> <h3>YouTube Video</h3> "; ?> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/<?=$_POST['video']?>"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/<?=$_POST['video']?>" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> <?php print " </font></body>"; } } else { print "<body bgcolor=#222><font color=#000><style>*{ color:#000; text-align:left; } body,form{ font-family:Verdana;font-size:11pt; } input{ color:#000; }</style>[b]Enter the YouTube Video ID[/b] [img=http://s.ytimg.com/yt/img/pixel-vfl73.gif] NOTE: Video will be formatted in 3GP in which you can send to your mobile phone. <h3>HOW TO GET AN ID</h3> To get the ID for the Youtube video simply look at the last letters: example [url]www.youtube.com/watch?v=[/url][b]mJUVHYsFqfg[/b] so the ID for this Video is [b]mJUVHYsFqfg[/b] and is what you type into the ID: box <form action='youtube.php' method='post'> ID: <input type='text' name='video'> <input type='submit' name='type' value='Watch'><input type='submit' name='type' value='Download'></form></font> [url='http://www.youtube.com/'][i]YouTube[/i] - Broadcast Yourself.[/url]</h3><div class='s'>Search Youtube for your Favourite Vid and ID number <form name=nqgs method=GET action='http://www.youtube.com/results' target='blank' style='display:block;margin:6px 0 4px' onsubmit='if(this.q.value==''){document.getElementById('nqms').style.display='block';return false;}return true'><input id=nqsbq type=text name=q size=30 maxlength=2048 style='margin:0 4px 0 0' title='Search youtube.com'><input type=submit name=btnGNS value='Search youtube.com'><input name=oi type=hidden value='navquery_searchbox'><input name=sa type=hidden value=X><input name=as_sitesearch type=hidden value='youtube.com'><input type=hidden name=hl value='en'><input type=hidden name=newwindow value=1><input type=hidden name=safe value='off'><div class=sl id=nqms style='display:none;color:red'>Please enter some search terms.</div></form> </body>"; } ?>   You can now search the youtube vids from your game
  24. Re: [MOD] This mod lets your Users Ignore Other Users Emails   Well if i can get it working on my script then people can have it for FREE Just gotta iron out a few bugs but it wont beat me lol
  25. Re: [MOD] This mod lets your Users Ignore Other Users Emails   By Joe the boys right..DONT USE THE CODE FOR THE MOMENT I MUST HAVE FORGOT SOMETHING Cheers Dementor
×
×
  • Create New...