Jump to content
MakeWebGames

KyleMassacre

Members
  • Posts

    2,921
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by KyleMassacre

  1. KyleMassacre

    Valet

    I don't know how many people keep up with Laravel but with the release of 5.3 they launched Valet. If you haven't seen it, check it out if you are running on OS X. I used to run Vagrant and loved it but I think this is much better
  2. I agree. You can use anything of mine as you will as long as it's not redistributed if it was a paid for modification. Message me if you have any questions
  3. No, I am not an admin. I dont know how to block people but you can change your email settings in your preferences.
  4. I don't think this is MCC. MCC has mysqli
  5. For something like MCC, Eloquent wouldn't be too hard but just a lot of work and requires some knowledge in OO (some). But each of your tables would basically require its own model and it would require a lot of altering in th model since MCC doesn't follow Eloquent's naming conventions. With that said, I don't think Eloquent would be a good fit for MCC, it was mainly a bad joke ;) And if MTG wants to step up and help like he said he would, that may be a bit cleaner than using the lib that I mentioned since your not used to (I am assuming) OO, method chaining, and objects
  6. That just made it even easier
  7. Eloquent isn't for the faint of heart it can get pretty scary
  8. Can't you do that through the inventory? It just doesn't track the logs
  9. If you click the quote button the SQL show
  10. It's based off codeigniter so you can check their documentation for more help. if you want something more fancy you could check out eloquent
  11. try this: https://bitbucket.org/getvivekv/php-mysqli-class Just so you know you will have to rewrite all your files though. Much like you would have anyway
  12. I think MTG has a wrapper for it
  13. Your cron still has the connection variable in the sprintf(), your fomatting is still non-existent and also you don't need to sprintf() every query; unless you are actually formatting it, which some of them you don't need. It's just adding a tiny bit extra processing where it's not needed. Me personally, I do not like to use that function to format my queries and I would rather use prepared statements for that but unfortunately for you, you don't have the luxury. I would more than likely use it for output on a string of something: $animalOne = "fox"; $animalTwo = "dog"; echo sprintf("The quick brown %s jumps over the lazy %s",$animalOne,$animalTwo);
  14. Also, your table should be out of the loop. You should only be printing your table rows inside the loop
  15. See what happens when you change the 3 to 4. I may have gotten confused
  16. $i % 3 is in laments terms to make it simple $i/3.
  17. Also I see where it could be causing that to happen. You can try instead: if($i != 0 && $i % 3 == 0)
  18. Take the $c variables out of your sprintf() functions and put them in your mysql_query() like: $qry = mysql_query($sql, $c);
  19. Just read the link that I supplied that's basically what it's talking about. It just has to do with your code formatting
  20. Just so you know, my HTML is not real
  21. Some things to note: I would suggest reading up on PSR: http://www.php-fig.org/psr/psr-2/: Use proper indentation, curly braces on the same line as your control statements i.e: if($a == $b) { //open brace on same line // execute here. Notice it has 4 spaces (not tab) } else { //same line again //Execute this block } PSR 2 helps improve readability If your going to use *sprintf then use it $sqll = sprintf("SELECT * FROM jobs WHERE Jid={$ir['job']}"); To: $sqll = sprintf("SELECT * FROM jobs WHERE Jid=%d",$ir['job']); I would also remove all your connection variables from your $sql* variables and place them in your actual mysql_query() calls. Other than that stuff, not too bad
  22. I pretty much completed everything now. I did make one change of something I mentioned up top: "extra": { "img_url": "http:\/\/someplace.com\/some_image.png" } to: "extra": { "slack-image": { "thumb": "http:\/\/someplace.com\/some_image.png" } } Here is a bunch of screen shots though to sink your teeth into: http://imgur.com/a/pxl4b
  23. Or you can try putting it in the attack script where it displays the links
  24. Try putting that near the very top of the script if its not already there and see if that helps. If not, I have no idea ATM
  25. Yes, but you may be encountering some sort of error before it does so causing it not run. Do you have any kind of errors on your screen that pops up? If so, you should definitely fix those
×
×
  • Create New...