Jump to content
MakeWebGames

Anubis

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by Anubis

  1. Re: IP Banning tool [V1] + [V2] I'm a little confused at why you would have to use a full link to the ipbans folder in the first place? "You need to change the USER NAME part to your hosting username. If you use cpanel it will be that username." Its possible i am mistaken but wouldnt you be able to just use /ipbans since it is in the public_html folder and not have to mess with using the username?
  2. Anubis

    Url Encode

    Re: Url Encode PM sent to ya. Just let me know!
  3. Anubis

    Url Encode

    Re: Url Encode Great, Thank you! If your ever looking to make some side money let me know lol!
  4. Anubis

    Php program

    Re: Php program I have found that a program called "Easy PHP" is very useful for this. Although it doesnt allow you to test your crons everything else will work right from your desktop (php and mysql). That is unless you meant error detection in a php script in which case i use "Zend Studios 5". Not sure exactly what you were asking but one of the two listed should cover it.
  5. Anubis

    Url Encode

    Could someone put a small tutorial up on this subject of url encoding? I think this would be a invaluable tool for some of us that are newer to php and mysql. I have not ventured into this area yet so any help would be much appr. Thanks
  6. Re: FREE ADVANCED USERSONLINE MOD ok, i've taken what everyone has posted up here and put it together along with locations and gangs. I also linked gangs to the gang homepage.     <?php // Made by Daniel Robert // Free mod advanced useronline for v1 // Please do not resell // Please leave this note // Other than that have a nice time // Don't do drugs. They aren't good for you. // Usersonline.php 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(); $cn=0; echo "<table width='500' border='2' height='20' class='table' bordercolor='#666666'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Location</u></th> <th><u>Gang</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } 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="--"; } $cn++; $gq=mysql_query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangID={$r['gang']}",$c);$gangdata=mysql_fetch_array($gq); $cz = mysql_query("SELECT * FROM `cities` WHERE `cityid` = '".$r["location"]."'"); $ck = mysql_fetch_array($cz); echo "<tr> <td>$cn.</td> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url]</td> <td>{$r['userid']}</td> <td>{$r['level']}</td> <td>{$r['gender']}</td> <td>$str</td> <td>$".money_formatter($r['money'], "")."</td> <td>{$ck['cityname']}</td> <td>[url='gangs.php?action=view&ID={$r[']<font color=red>{$gangdata['gangNAME']}[/url]</font></td> <td><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "Her"; } else { echo "Him"; } echo "</a></td> </tr>"; } echo "</table>"; $h->endpage(); ?>     This works well on my site and the users love it.
  7. Re: viewusers.php You had way to many ( in your user levels. Try this.......... <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ 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(); $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=mysql_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']}",$c); if(mysql_num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=mysql_fetch_array($q); 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 if($r['user_level']==4) { $userl="IRC Mod"; } else {$userl="Assistant"; } $lon=date('F j, Y g:i:s a',$r['laston']); $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; $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"; } } if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<h3>Profile for {$r['username']}</h3> <table width=75%><tr style='background:gray'><th>General Info</th><th>Financial Info</th> <th>Display Pic</th></tr> <tr><td>Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $la $unit ago Online: $on Days Old: {$r['daysold']} Location: {$r['cityname']}</td><td> Money: \${$r['money']} Crystals: {$r['crystals']} Property: {$r['hNAME']} Referals: "; $rr=mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}",$c); print mysql_num_rows($rr); $q_y=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED={$r['userid']}",$c); $q_z=mysql_query("SELECT * FROM blacklist WHERE bl_ADDED={$r['userid']}",$c); print " Friends: ".mysql_num_rows($q_y)." Enemies: ".mysql_num_rows($q_z)." </td> <td rowspan='2'>"; if($r['display_pic']) { print "[img={$r[]"; } else { print "This user has no display pic!"; } print "</td></tr> <tr style='background:gray'><th>Physical Info</th><th>Links</th></tr> <tr><td>Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A"; } if($r['fedjail']) { print " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if($r['hospital']) { print " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5 || $ir['user_level'] == 6 || $ir['user_level'] == 8 || $ir['user_level'] == 4) { print " IP Address: {$r['lastip']}"; 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>"; } print "</td><td>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] [[url='attack.php?ID={$r[']Attack[/url]]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5 || $ir['user_level'] == 6 || $ir['user_level'] == 8 || $ir['user_level'] == 4) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if($ir['donatordays'] > 0) { print " [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } print "</td></tr></table>"; } } $h->endpage(); ?>
  8. Re: Left and right hand menu? so would someone be willing to help me do this for a small fee of course? let me know!
  9. I cannot seem to get this idea to work out for me. Obviously im new at this lol. What im trying to do is have BOTH a left and a right hand menu with the page text in the center. I know the header needs to be tweaked to do this but all ive been able to acomplish is getting both menus up but with the page text above and below the menus. Has anyone made this work? im kinda at a loss now lol.
  10. Re: [mccode] Whore House Mod FREE Ok, im not taking any credit for this plus im a noob so if ive made errors forgive me. I loved this mod but thought it could use a bit so ive added a three visit per day limit and also made it so a user has to have 100% energy to use the whorehouse. The pricing and naming (except gay and lesbian b/c i didnt use that part) has also been changed to suit my game but you can edit that has needed. First add this to your daysold cron: mysql_query("UPDATE users SET brothel=0",$c); then run this sql: ALTER TABLE `users` ADD `brothel` int(11) NOT NULL ; then use this whorehouse.php   <?php /*----------------------------------------------------- -- Whore House v1.0 -- A product of Stage3Gaming -- [url]http://www.stage3gaming.com[/url] -- whorehouse.php -----------------------------------------------------*/ 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(!$_GET['spend']) { if($ir['user_level'] <1) { print"Page closed for developement."; $h->endpage(); exit; } if($ir['brothel'] >2) { print"You would visit this establishment more than three times a day? Are you really trying to make it fall off?"; $h->endpage(); exit; } if ($ir['energy'] < $ir['maxenergy']) { print "<font color='red'>[b]You can only visit here when you have at least 100% energy.</font>[/b]"; $h->endpage(); exit; } print "<table border='1' width='90%'class='table' bordercolor='#939393'><th><h3>Speakeasy Brothel</h3></th><tr><td> Welcome, we have many fine prostitutes here, both male and female. Prices and payment options are listed below. Each time you sleep with someone you will gain will but you will also lose energy and some of your money! P.S. They love you long time!</td></tr></table> <h3>For The Guys</h3> <table border='1' width='90%' bordercolor='#939393' class='table'><tr><th>Prostitute</th><th>Age</th><th>Sex</th><th>Price</th><th><center>Hire</th></tr><tr> <td><center>April</td><td><center>19</td><td><center>Female</td><td><center>$300,000</td><td><center>[url='whorehouse.php?spend=april']Hire April[/url]</td></tr><tr> <td><center>Kelly</td><td><center>18</td><td><center>Female</td><td><center>$500,000</td><td><center>[url='whorehouse.php?spend=kelly']Hire Kelly[/url]</td></tr><tr> <td><center>Violet</td><td><center>23</td><td><center>Female</td><td><center>$1,000,000</td><td><center>[url='whorehouse.php?spend=shan']Hire Violet[/url]</td></tr><tr> <td><center>Emma</td><td><center>20</td><td><center>Female</td><td><center>$5,000,000</td><td><center>[url='whorehouse.php?spend=rhonda']Hire Emma[/url]</td></tr></table>"; print " <h3>For The Ladies</h3> <table border='1' width='90%' bordercolor='#939393' class='table'><tr><th>Prostitute</th><th>Age</th><th>Sex</th><th>Price</th><th><center>Hire</th></tr><tr> <td><center>Mark</td><td><center>26</td><td><center>Male</td><td><center>$300,000</td><td><center>[url='whorehouse.php?spend=mark']Hire Mark[/url]</td></tr><tr> <td><center>Bill</td><td><center>23</td><td><center>Male</td><td><center>$500,000</td><td><center>[url='whorehouse.php?spend=jason']Hire Bill[/url]</td></tr><tr> <td><center>Eddy</td><td><center>20</td><td><center>Male</td><td><center>$1,000,000</td><td><center>[url='whorehouse.php?spend=jaq']Hire Eddy[/url]</td></tr><tr> <td><center>Matthew</td><td><center>29</td><td><center>Male</td><td><center>$5,000,000</td><td><center>[url='whorehouse.php?spend=matt']Hire Matthew[/url]</td></tr></table>"; print " <h3>Gay And Lesbian Only</h3> <table border='1' width='90%' bordercolor='#939393' class='table'><tr><th>Prostitute</th><th>Age</th><th>Sex</th><th>Price</th><th><center>Hire</th></tr><tr> <td><center>Tommy</td><td><center>22</td><td><center>Male</td><td><center>$1,000,000</td><td><center>[url='whorehouse.php?spend=tom']Hire Tommy[/url]</td></tr><tr> <td><center>Tina</td><td><center>18</td><td><center>Female</td><td><center>$5,000,000</td><td><center>[url='whorehouse.php?spend=tina']Hire Tina[/url]</td></tr><tr> <td><center>Riko</td><td><center>20</td><td><center>Male</td><td><center>$7,000,000</td><td><center>[url='whorehouse.php?spend=riko']Hire Riko[/url]</td></tr><tr> <td><center>Michelle</td><td><center>18</td><td><center>Female</td><td><center>$10,000,000</td><td><center>[url='whorehouse.php?spend=mich']Hire Michelle[/url]</td></tr></table>"; } else { if($_GET['spend'] == 'april') { if($ir['money'] <300000) { print "You don't have enough money to hire a April!"; } else { mysql_query("UPDATE users SET will=will+35,energy=0,money=money-300000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a April \$300,000, took her to the back room and had your way with her. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'kelly') { if($ir['money'] <500000) { print "You don't have enough money to hire a Kelly!"; } else { mysql_query("UPDATE users SET will=will+70,energy=0,money=money-500000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Kelly \$500,000, took her to the back room and had your way with her. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'shan') { if($ir['money'] <1000000) { print "You don't have enough money to hire a Violet!"; } else { mysql_query("UPDATE users SET will=will+140,energy=0,money=money-1000000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed Violet \$1,000,000, took her to the back room and had your way with her. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'rhonda') { if($ir['money'] <5000000) { print "You don't have enough money to hire a Emma!"; } else { mysql_query("UPDATE users SET will=will+250,energy=0,money=money-5000000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed Emma \$5,000,000, took her to the back room and had your way with her. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'mark') { if($ir['money'] <300000) { print "You don't have enough money to hire a Mark!"; } else { mysql_query("UPDATE users SET will=will+35,energy=0,money=money-300000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Mark \$300,000, took him to the back room and had your way with him. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'jason') { if($ir['money'] <500000) { print "You don't have enough money to hire a Bill!"; } else { mysql_query("UPDATE users SET will=will+70,energy=0,money=money-500000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed Bill \$500,000, took him to the back room and had your way with him. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'jaq') { if($ir['money'] <1000000) { print "You don't have enough money to hire a Eddy!"; } else { mysql_query("UPDATE users SET will=will+140,energy=0,money=money-1000000, brothel=brothel+1WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed Eddy \$1,000,000, took him to the back room and had your way with him. You feel some of your will coming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'matt') { if($ir['money'] <5000000) { print "You don't have enough money to hire a Matthew!"; } else { mysql_query("UPDATE users SET will=will+250,energy=0,money=money-5000000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Matthew \$5,000,000, took him to the back room and had your way with him. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'tommy') { if($ir['money'] <1000000) { print "You don't have enough money to hire a Tommy!"; } else { mysql_query("UPDATE users SET will=will+35,energy=0,money=money-1000000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Tommy \$1,000,000, took him to the back room and had your way with him. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'tina') { if($ir['money'] <5000000) { print "You don't have enough money to hire a Tina!"; } else { mysql_query("UPDATE users SET will=will+70,energy=0,money=money-5000000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Tina \$5,000,000, took her to the back room and had your way with her. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'riko') { if($ir['money'] <7000000) { print "You don't have enough money to hire a Riko!"; } else { mysql_query("UPDATE users SET will=will+140,energy=0,money=money-7000000,brothel=brothel+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Riko \$7,000,000, took him to the back room and had your way with him. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'mich') { if($ir['money'] <10000000) { print "You don't have enough money to hire a Michelle!"; } else { mysql_query("UPDATE users SET will=will+250,energy=0,money=money-10000000, brothel=brothel+1WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed a Michelle \$10,000,000, took her to the back room and had your way with her. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } } $h->endpage(); ?>   I have tested this and it seems to work fine for me. There is also an entry that i put on all my pages to be able to shut them down when im working on them. Cudos to Genocide for creating it in the first place!
  11. Re: [mccode] Mods 4 Sale - UPDATED POST I have purchased the fed reply system and it works perfectly. V1 and V2 arent that different and if you look around the forums here you will find instructions on how to modify them to v2 yourself. Not really a big deal in my book. Sorry but i think the mod i got is great, i plan on grabbing more later lol.
  12. im lookin for a little knowledge here. I know im just being stupid and over looking something but can someone give me a hand with the energy taken by an attack? this is what i would like, 50% energy taken on the start of the attack and thats it, after that the battle would just continue until someone one or it ended in a stalemate.
×
×
  • Create New...