-
Posts
443 -
Joined
-
Last visited
-
Days Won
20
Content Type
Profiles
Forums
Events
Everything posted by AdamHull
-
error_reporting(E_ALL); ini_set('display_errors', 1); add this to the top of the file under the <?php and let us know what errors are shown
-
Your editor isn't putting stars in again is it as I have it on my mccodes game and the one I posted works
-
<?php require(__DIR__.'/sglobals.php'); echo " <div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> New Business</h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'>"; if($ir['user_level'] > 2) die("Unauthroized Access!"); $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? strtolower(trim($_GET['action'])) : ''; switch($_GET['action']) { case "createbusiness": create_business_form(); break; case "createbusinesssub": create_business_sub(); break; default: print "Error this script requires an action."; break; } function create_business_form() { global $h; print " <form action='staff_business.php?action=createbusiness' method='POST'> <h3>Create a Business</h3> Name: <input type='text' name='className' /> Minimum users for business: <input type='text' name='classMembers'/> Business Description: <textarea rows=4 cols=40 name='classDesc' /></textarea> Cost to start business: <input type='text' name='classCost'/> <input type='submit' value='Create' /> </form>"; $h->endpage(); } function create_business_sub() { global $db,$ir,$h; if($ir['user_level'] > 2) die("Unauthorized Access!"); $cn = isset($_POST['className']) && ctype_alpha($_POST['className']) ? $db->escape(strip_tags(stripslashes($_POST['className']))) : ''; $cd = isset($_POST['classDesc']) && ctype_alpha($_POST['classDesc']) ? $db->escape(strip_tags(stripslashes($_POST['classDesc']))) : ''; $cm = isset($_POST['classMembers']) && ctype_digit($_POST['classMembers']) ? abs(intval($_POST['classMembers'])) : 0; $cc = isset($_POST['classCost']) && ctype_digit($_POST['classCost']) ? abs(intval($_POST['classCost'])) : 0; if(empty($cn) || empty($cd) || empty($cm) || empty($cc)) { echo "You have missed a required field."; $h->endpage(); exit; } $db->query("INSERT INTO `businesses_classes` VALUES('', '{$cn}', '{$cm}', '{$cd}', '{$cc}')"); print "The business was successfully created.<br /> <a href='staff_business.php?action=createbusiness'>Back!</a>"; stafflog_add("Created the <span class='highlight'>business</span>: {$_POST['className']}"); } $h->endpage(); ?> Just replace whole file with this!
-
<span class="highlight">business</span>: {$_POST['className']}"); } [MENTION=70347]NonStopCoding[/MENTION] has made a mistake you need to change the <span class="Highlight"> which is right at the end in stafflog_add to <span class='highlight'>
-
Your code is showing blank due to the * in the code
-
mccode-v2 Track Players' Actions - The Easy Way
AdamHull replied to TheMasterGeneral's topic in Free Modifications
[MENTION=70347]NonStopCoding[/MENTION] did something simular for a game we where helping out on, but instead of watch all users you could select the ones you wanted to watch -
It does :) any problems happy to help
-
Looks ok, does it work?
-
I already have one.. Haha
-
Pete, I'm addicted! Just about to give this a rating in the App Store!
-
ill pop up on skype MTG
-
the only error i get in the console is from the jquery library which is: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
-
I am stuck trying to get this to work, I have followed MTG's wiki and nothing, The chat boxs appear but they will not submit the messages. Any one have any idea?
-
What error you getting?
-
Dann you MTG :p I was looking forward to doing something i did not have to create in my mind first :)
-
I'm at work today until midnight GMT, but if no one has converted this for you when I wake up tomorrow I shall do it for you, contact me on Skype/email [email protected] and if you have any other ideas I will add these into it aswell
-
Ajaxify, jQuery your Entire MC-Code Game [Any MC-Code Version]
AdamHull replied to Sim's topic in Free Modifications
I was having the same issue! Until I have up, it does not seem to like a custom layout. If you put it in a standard copy of v2 it works fine -
Spamming is getting worse! Try a email verification?
-
You have not replied to my PM tho [MENTION=64603]Sim[/MENTION] :P so you are **** at something ;) EDIT ---- Your not **** just MWG not telling me you replied :P
-
You can not sit and take the **** out of a full community! I am sure that some off the mods on your site are from this community? So in fact you do need it to run your game yeh? Also if you can make 6k on side products then concentrate on dope runners as I signed up and you had three different layouts for me to log in with none off them match! So when you can come onto a site and **** on people's work, take a step back and look at your own, most of the developers on this site probably can show your skills up, Dave is a full time magneto front and back end developer with the qualifications, [MENTION=64603]Sim[/MENTION] is very talented in jquery and javascript, Kyle and script are rumored to be good, and that's just a few off them
-
Drop him a email as he is not online yet!
-
$7?
-
Just took a quick glance over the register and login in script, there is no password encryption!
-
MCCode V2 All Mods Returning Blank Page
AdamHull replied to D T K's topic in Requests & In Production
Also the forum changes some off the code, which is annoying! Why don't you post the mods you are struggling with and we maybe able to help you!