Jump to content
MakeWebGames

AdamHull

Members
  • Posts

    443
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by AdamHull

  1. 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
  2. Your editor isn't putting stars in again is it as I have it on my mccodes game and the one I posted works
  3. <?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!
  4. <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'>
  5. Your code is showing blank due to the * in the code
  6. [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
  7. It does :) any problems happy to help
  8. Looks ok, does it work?
  9. I already have one.. Haha
  10. Pete, I'm addicted! Just about to give this a rating in the App Store!
  11. ill pop up on skype MTG
  12. the only error i get in the console is from the jquery library which is: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
  13. 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?
  14. What error you getting?
  15. Dann you MTG :p I was looking forward to doing something i did not have to create in my mind first :)
  16. 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
  17. 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
  18. Spamming is getting worse! Try a email verification?
  19. 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
  20. 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
  21. Drop him a email as he is not online yet!
  22. Clever little bot!
  23. Just took a quick glance over the register and login in script, there is no password encryption!
  24. 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!
×
×
  • Create New...