
boionfire81
Members-
Posts
532 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by boionfire81
-
Yeah, Kyle so far so good. The simple switch seemed to work :)
-
Try to explain in lamens terms. Never heard of switch. But outside of me, if we can make this mod work, it can go to mcc as a free mod. That's why Im hoping for a fairly easy edit, like urls
-
yeah, but how to kill other than just the ending "; and new EOF? My register is default other than http://makewebgames.io/forum/game-engines/mccode-development-support/free-modifications/15655-good-evil This was the part the messed me up call_arbitrary_functions();
-
So how should I print the drop down? global_noauth is in register, so produces a fatal if included. BUT without it simply prints the dropdown code. What am I suppossed to do? I'm aware of the issue, but not of a solution.
-
Ok, kyle I see the allowed pages in the db but it's more on a per instance basis. So would the allow feature work? Having the access.php file would be a great addition I think. But I was think of something more like this <?php $eon = mysqli_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); if($ir['traveltime'] > 0) { die("You are travelling for {$ir['traveltime']} minutes. Please wait until you arrive at your destination to access this page."); exception (inventory.php*,events.php*,mailbox.php*) } if ( $ir['jail'] > 0) { die("This page cannot be accessed while in the {$eon['cityname']} jail."); exception (events.php*,mailbox.php*, chapel.php*,gang.php*) } if ( $ir['hospital'] > 0) { die("This page cannot be accessed while in the {$eon['cityname']} hospital."); exception (chapel.php, mycompany.php*, mailbox.php*) } if ( $ir['fishing_time'] > 0) { die("This page cannot be accessed while fishing."); } if ( $ir['hunting_time'] > 0) { die("This page cannot be accessed while hunting."); } if ( $ir['mining_time'] > 0) { die("This page cannot be accessed while mining."); } if ( $ir['refine_time'] > 0) { die("This page cannot be accessed while refining metal."); } ?> Just seems simpler to add override rules for urls with a wildcard for functions. Not to mention, this would be a really good mod for MWG if we can get exceptions to work. Instead of several lines in each file for each file, just 1 file and 1 line change.
-
I've got the same issue. I tried adding include ('global_func.php'); and i said fatal can not call twice, blah. Tried switching the "" to '' and that was a no go. Basically it does not get past the ".class_dropdown(NULL,"classID")."
-
I did that to minimized space usage. Have it in a single file. But of course, it was my belief that there would be some type of function somewhere in php library of resources that would allow an exception line to be written. So your saying there is no line of code that can add an exception?
-
Ok, mission of the day (switching off others to avoid sever brain damage) I've created a file called access.php <?php $eon = mysqli_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); if($ir['traveltime'] > 0) { die("You are travelling for {$ir['traveltime']} minutes. Please wait until you arrive at your destination to access this page."); } if ( $ir['jail'] > 0) { die("This page cannot be accessed while in the {$eon['cityname']} jail."); } if ( $ir['hospital'] > 0) { die("This page cannot be accessed while in the {$eon['cityname']} hospital."); } if ( $ir['fishing_time'] > 0) { die("This page cannot be accessed while fishing."); } if ( $ir['hunting_time'] > 0) { die("This page cannot be accessed while hunting."); } if ( $ir['mining_time'] > 0) { die("This page cannot be accessed while mining."); } if ( $ir['refine_time'] > 0) { die("This page cannot be accessed while refining metal."); } ?> As I prefer hunting, fishing, etc to take time (even if small increments). Without it, the game would simply be to easy. Clcik this, click that, you made 1mill dollars. So start is going time based. But if in jail I think people should still be able to visit their gang. But with the above code, it's all or nothing. Can this file be included on a page, and exclude specific urls per instance. i.e. if fishing disallow hunting, mining, etc. but allow fishing page. Or if hosp allow only company/if jail allow only gangs. etc? Anyone know of an edit?
-
lol, it's paid up for a year, and they are helpful, but it's one of those overseas tech support situations when you using the chat feature. Me I'm usually to impatient to wait for a ticket response, lol. What host would you suggest?
-
Will do that tomorrow. I went through about 30 variations though, so will take awhile. If it was a simple one or two would be easier. But....tomorrow
-
Ok, all it did was print the entire java at the bottom of the page.
-
don't know yet. I wasn't the one having the issue. A friend is playing and testing. He gets the errors, but only sometimes. ??
-
ok hold on slow down. I have 4 files and 2 edits. I have the notify.js, the notifyme.php and the header (where java goes, I think), and then the menu where the bars are displayed. lol I did good keeping up with you guys for awhile, but slow down remember I just picked up php about 1 month ago, lol. Everything I know about php is from this forum. sooooo, slow......down.
-
Changed the include/macro lines and double checked for session id etc not found. What should I be looking for?
-
Well the first error was the quotes had to be changed to avoid a fatal. Then I toggled with the mailread = 0, and then the variabes. Basically in the end the best I got was a blank area. Not a good sign, but considering 9/10 tries ended in a No Messages, despite there being 8 messages. -.-
-
Dude -.- yeah even that produced a bunch of errors. Right about now, my brain is to fried to even think...I would post code but I've tried the () & {} % vs $ then the '..' bro!!!
-
echo ($mc > 0) ? 'Mailbox (' . $mc . ')' : 'Mailbox (0)'; echo "</th> </tr> <tr> <td>"; if ($mc > 0){ echo "<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> {$r['mail_subject']}"; } else { echo "<a href='mailbox.php'> No Messages</a>"; } But doesn't show any messages right now (maybe because they aren't new)? Also, now I have 2 undefined warnings. I tried $id = session_id(); but no luck
-
Ok, so notifyme.php <?php include globals_nonauth.php; global $db, $ir, $c, $userid; $db->query("SELECT `energy`, `maxenergy`, `brave`, `maxbrave`, `will`, `maxwill`, `level`, `money`, `crystals`, `hp`, `maxhp`, `new_events`, `new_mail` FROM `users` WHERE `userid` = $userid"); notify.js (copy/pasted from above) header <script src="js/notify.js"></script> mainmenu.php <td colspan='2'> <span class='label' id='energypercent'><b>Energy:</b> {$ir['energy']}/{$ir['maxenergy']}<br /> <img src='greenbar.png' width='$enpercbar' height='10' /><img src='redbar.png' width='$enopp' height='10' /></span><br /> <span class='label' id='bravepercent'><b>Stamina:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src='yellowbar.png' width='$brpercbar' height='10' /><img src='redbar.png' width='$bropp' height='10' /></span><br /> <span class='label' id='healthpercent'><b>Health:</b> {$hpperc}%<br /> <img src='greenbar.png' width='$hppercbar' height='10' /><img src='redbar.png' width='$hpopp' height='10' /></span><br /> <span class='label' id='willpercent'><b>Will:</b> {$wiperc}%<br /> <img src='bluebar.png' width='$wipercbar' height='10' /><img src='redbar.png' width='$wiopp' height='10' /></span><br /> <span class='label' id='expercent'><b>EXP:</b> {$experc}%<br /> <img src='bluebar.png' width='$expercbar' height='10' /><img src='redbar.png' width='$exopp' height='10' /></span><br /> (haven't done the mail/events part yet, that's another story) But I've never really worked with json. So encode, parse..huh????
-
<?php $macropage="gym.php"; include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour'); if(!$ir['jail']) { print "<h2>Sports Center</h2><hr width='100'>"; } else { print "<h3>Jail Fitness</h3><hr />"; } $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['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']);
-
Well, I found out a lot of my login issues were actually because mod_sec with cPanel was enabled. Now that is disabled and there is this error Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/public_html/gym.php:2) in /home/public_html/globals.php on line 13 Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/gym.php:2) in /home/public_html/lib/basic_error_handler.php on line 39 - Critical Error A critical error has occurred, and page execution has stopped. Below are the details: PHP Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/gym.php:2) (2) Action taken: Line executed: /home/public_html/globals.php:114 I have a modified gym, but I have a feeling there might be something "globally" needed fixed. Also, anyone know how to integrate mod_sec with mccodes? Just a security thing, but giving it what I can. Otherwise will try to research tomorrow.
-
Ok, not 2 year bump, just 1, lol. I can't find where the query is for the drink prices etc???? It is there, cause it took my moneys, but I can't find it. I dunno probably brain dead from days on days with mc -.-
-
[uSER=65371]sniko[/uSER] I've reached out to you before in private message and never heard back. Just posting here in case anyone else can answer this question. Since both the advanced properties and marriage modification are written by you, are they compatible? Before I got to install is there anything I should note before adding the marriage mod (after advanced properties are already installed.)
-
But the reason it takes to the next click might be because of the location of queries??? Dunno I haven't search through to try to find them. Was wondering if anyone knew of a mod tha could handle it. I found one on the forums, but can't seem to get it to work.
-
Exactly [uSER=69001]Zettieee[/uSER] And [uSER=68711]KyleMassacre[/uSER] bruh, I'm just learning this whole php thing, take it easy lol.
-
plus for those who leave the browser window open (this is more a personal preferences, as yes this can cause strain unless force logout when idle).