-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
A good example is; http://magictallguy.tk/newsFeedArchive.php and the RSS feed to that http://magictallguy.tk/feed2.php It's somewhat a unified agreed way to allow sites to fetch certain data from other sites, quickly. I hope that helps ;)
-
Perhaps, one for his game, one for a forum?
-
Sounds like an awesome idea. As soon as my projects are done, I'll link you the RSS feed and the link ;)
-
Yep, here's something to connect to multiple databases, quickly (your first issue) <?php error_reporting(E_ALL); // Database info through array $config = array( $config = array( "database1" => array( "host" => "localhost", "user" => "root", "pass" => "usbw", "data" => "database2" ), "database2" => array( "host" => "localhost", "user" => "root", "pass" => "usbw", "data" => "database2" ) ); $db = array(); foreach($config as $database => $values) { $connection = mysql_connect($config[$database]['host'], $config[$database]['user'], $config[$database]['pass']); $db[$database] = mysql_select_db($config[$database]['data'], $connection) or die('Connection to '. $config[$database] .' failed. '. mysql_error()); } ?> Now, to address the second issue; <?php error_reporting(E_ALL); // Database info through array $config = array( "database" => array( "host" => "localhost", "user" => "root", "pass" => "usbw", "data" => "database2" ), "database" => array( "host" => "localhost", "user" => "root", "pass" => "usbw", "data" => "database2" ), "stylesheet" => array( "website" => "websitestyle.css", "path" => "path/to/file.css", "name" => "homestyle" ), "javascript" => array( "jquery" => "http://code.jquery.com/jquery.min.js", "website" => "website.js", "path" => "path/to/file.js", "name" => "jquery" ) ); $db = array(); $css = array(); foreach($config as $type => $values) { switch($type) { case 'database' : $connection = mysql_connect($config['database']['host'], $config['database']['user'], $config['database']['pass']); $db['database']['data'] = mysql_select_db($config['database']['data'], $connection) or die('Connection to '. $config['database'] .' failed. '. mysql_error()); break; case 'stylesheet' : $css['stylesheet']['name'] = $config['stylesheet']['path']; break; case 'javascript' : $js['javascript']['name'] = $config['javascript']['path']; } } //Test it all works, perform a dump var_dump($db); var_dump($css); var_dump($js); ?> Also, I'd use mysqli. Usage (Not tested) //Queries $db['database']['database2'] = mysql_query(); //Loop through the $css and $js arrays foreach($css as $style) { echo '<link rel="stylesheet" src="''. $style['stylesheet']['path'] .'" type="css/text" />'; } foreach($js as $javascript => $value) { echo '<script type="javascript/text" src="'. $javascript['javascript']['path'] .'"></script>'; }
-
I believe the-destroyers is McCodes - when Firecamp owned it, anyway.
-
Can you provide an example?
-
Look at the server logs, see how much of it you are actually using. If you can downgrade server, then do so - save some pennies :) With New Worlds Engine (dubbed NWE) you don't need to know programming, as it has a module installer/uninstaller. I'd advise checking that out :) Also, welcome to MakeWebGames
-
Inject more money into your budget.
-
There's probably no need to. If you do, and you do it indefinitely, you'll have a lot of 1KB files - which isn't nice to eyes, my eyes anyway. May I ask why you'd want to put it in a different file? Answering your question, they'd have to be stored in a super-global, such as _POST or _GET, sanitized and filtered in the file containing the query, and then processed.
-
Unless you had a table called `users`, with the column `id`, and a session with the index `id` ;)
-
...go to \b\, they might help
-
Are you on a shared server?
-
It's how everyone treats spammers.
-
#1 or #2 are my personal favourites
-
Way to go & sell yourself. Jimbo, check deviantart
-
The game could be greatly improved by adding typical game 'features', such as a story, and an unlock system - look at RPGS on the PC, and consoles; such as fallout 3. Also, the game looks and feels like mccodes, not "custom made".
-
I had time to make amendments to the source (although not a lot was done, mainly reformatted the config area) we have a result; Panther 0.2. Link to project I'm going to create it more object oriented at some point, as well as fully take in the previous comments made. -sniko
-
Perhaps the use of a flash or java applet?
-
Add a semi-colon at the end of each line
-
Yeah, it's vulnerable. Depending on the version you're running, there could be a patch available for you; check http://www.mccodes.com :)
-
if( $_GET['ID'] == 1 ) { echo 'You can\'t attack the admin'; $h->endpage(); exit; } I think that snippet at the top of each attack file would take less time :p Anyway, nice job :)
-
Thanks for all your time in viewing it, and taking the time to reply suggesting what I should do. Aventro - I've taken into account what you've suggested; I'll "upgrade" as soon as possible! K1ngscorp1o - Greatly appreciated on your reply! Ill fish out the duplicate segments as soon as possible, too!
-
Welcome to Panther Skeleton Version 0.1 I got a few days off work, and I decided to set myself a task - to create a simple skeleton game 'engine' within a set time-frame, I gave myself 10 hours. (The Easter clocks set me back a bit, but I somewhat achieved it :)). I hope some people can add to it; modules, re-code, whatever :) I made it for fun, nothing 'serious'. Technologies I developed it using; Apache Version Apache/2.2.17 PHP Version PHP/5.3.4 Brief overview It uses a smart file structure, which allows very easy templating, and module handling. .htaccess for nice URLs As it being a skeleton version, only a few modules have been created Login Signup Character creation Home Logout Gym ( 01/04/2013 ) [*]Everything is 'handled' through 1 page - index.php [*]Ability to disable modules (Add disabled.panther file to the module directory of said module) [*]Easy-add avatars (public/avatars) [*]Uses mysqli predefined statements [*]It's FREE Classes I've started writing a class to ensure making modules is easy - it's not quite finished. userclass.php __construct (Stores the users session id) getStat (Gets the stat value) getStatId (Gets the stat id - for stat creation) setStat (Sets a stat to a specific value) How to get the code Go to my GitHub respiratory Go to my site Donations I accept donations for this 'engine' :) If you'd like to make a donation, please go here GitTip PayPal Preview it Thanks for your time in reading, and I look forward to the future with Panther Skeleton :)
-
Player Email Verification
sniko replied to KyleMassacre's topic in Free Modules (Requests or Offers)
Mind testing your script with the following as a users e-mail; [email protected]%0ACc:harry@sniko,net%0ABcc:[email protected],[email protected] And check the recipient, and carbon copy values. From the screenshots, looks good! -
.....why mug me, Kyle? :p I wanna look at the source when I have a chance, if I may, Kyle?