
bluegman991
Members-
Posts
394 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by bluegman991
-
While it may be true that the engine doesn't come with those features pre-installed. They are usually the first mod/add on's that are installed, so technically just about every other game similar to yours has those features...
-
A little something to start of your search for php and websockets. https://code.google.com/p/phpwebsocket/ Ok so we know that php is not the language of choice when creating socket connections. But obviously php is all he has and is set on using it. Are you saying that php simply is not compatible with websockets, or are you suggesting that there is another option that he can use that is already enabled on his hosting account?
-
Again we are trying to find a solution for the client side, not the server side. Browsers do not support C for client side programming. WSIRC uses Socket IO, which uses a combination of flash and websockets. If flash is installed on the users computer. Socket IO will use flash, if flash is not available Socket IO will use websockets. But yes that would be a good solution.
-
http://devzone.zend.com/209/writing-socket-servers-in-php/ Here is a decent example of creating a socket server, for chat mods. When you say maximal runtime. Are you saying your server force's a time limit on time out, or are you forgetting the infinite loop?
-
When I say don't use js, I meant don't use js alone, because it doesn't have the right tools to create an instant messaging app. I didn't tell him to use websockets. I said that if he wanted to use js, then use js websockets. But to be cautioned because cross browser compatibility is not very well with js web sockets... He can not use nodejs unless he has his own server we are looking for a client side + php solution. And flash is used for a lot more than web games. In fact most js chat providers use flash communicating with js... So they don't have to poll their server using up all of their resources. ;) Besides there arent that many options for listening to websockets that require using something that is most likely already installed on the persons computer AS an add on to their browser. So a few to choose from are Flash, Java, JS WebSocket, SilverLight(Windows Only, I think? I don't even believe that many windows computers have this installed.) Anyone care to add to the list of languages that don't require an additional installation for the client side user? P.S. !Angel... Why would you say to never use flash then suggest Socket.IO when Socket.IO uses flash?
-
Well since you want instant, ajax in javascript is probably not what you want to use since you would have to poll the server for updates. You could use javascript websockets, but I don't believe they are supported enough by browsers to make a cross browser compatible js websocket. I think your best bet would be to create a socket connection between a shockwave flash object and your php webserver. After that you can build your whole chat UI in flash, or you can set it up to communicate with javascript, so you can make your whole UI in html/hmtl5.
-
Don't know much about New Zealand, but I kinda doubt you would need a license to sell software...
-
magic_quotes_gpc error php 5.3 and above
bluegman991 replied to Uridium's topic in New Worlds Engine
Well you have to use it to turn it off, so by default php wont try to escape quotations and screw up your post and get data. -
LMFAO! Too Funny! I was just going to ignore his post, but your approach is way better.
-
That is not the date of which the email was made. That is the date of which google.com was registered.
-
A degree in Computer Science is going to look better than a degree in software engineering from the employers point of view. Course wise a CS major will require more math credits and will take classes that focus more on the theory of computation, as well as Operating System, Real Time, and Compiler engineering. A Software Engineering major on the other hand will focus on the development of applications. A CS grad can easily do a software engineers job because of their advanced knowledge of computation. Actually a lot of CS grads do become software engineers. However an SE grad with no experience in the field could not complete a job at a Computer Scientists level.
-
I'll probably pick it up later today. Not sure how much time i'll have to play it though. Anyone who's getting it for ps3 add me "wsb991"
-
Google Glass - What are your views on this gadget?
bluegman991 replied to Jan Kaufmann's topic in Tech News
It's pretty much a computer built into glasses. Record video from first person, or just without the use of your hands (because you might be using them for something else?) GPS no need to take your eyes off the road Browse the internet while in church without taking your eyes off the pastor. -
What is the one game that makes you rage?
bluegman991 replied to Jan Kaufmann's topic in General Gaming Discussion
Lol QWOP... addicting -
I am definitely going with the PS4. - PlayStation Loyalty - PS is definitely capable of achieving a lot more than xbox (performance and graphics wise) just waiting for a developer to take advantage of what it is capable of. - ^^ Hopefully since they have made PS4 a lot easier to develop on, someone will show us what it's capable of. (Suppose to be comparable to PC development) - PS3 already has a few games supporting 100+ player battles, I assume PS4 and its servers will probably be capable of close or more than twice that. - Multiple Awesome exclusives - Wayyyy better specs - I didn't think it was possible to add any more innovation to a controller, but Sony did it with the touch pad. - Better online experience is coming since online play now requires a PlayStation Plus Subscription. - 12 free games every month + discounts + other free stuff just for having a PlayStation Plus subscription - No need to worry about common issues like red ring of death The PS4 controller is reported to be a little bit bigger, but I have small - average size hands I guess and it is perfect for me. The only thing I don't like about the Xbox Controller is that it is un-symmetrical and the dead zones in the analog sticks. Would be nice if both consoles made controllers in small and large though.
-
I am not hyped yet. I will not be purchasing any new just released games until next gen consoles are released. So yea in about a few months I will be though. Hopefully Rockstar has Midnight Club: 5 In development also. Oh yea GTA V AND Midnight Club: 5!!!
-
Go Daddy. Been with them a few months. I decided why not invest in their interesting advertisements. Plus if you look out you can get really good deals from Go Daddy. I got domain and shared hosting both for $24 per year!
-
What TV Shows are you currently watching?
bluegman991 replied to Jan Kaufmann's topic in Media Entertainment (FKA Tv Shows)
Supernatural waiting for next season Walking Dead waiting for next season Breaking Bad waiting for next season Pretty Little Liars waiting for next season Continuum waiting for next season Nikita waiting for next season 90210 waiting for next season Terra Nova finished Heroes finished Kyle XY finished Under the Dome Current (Amazon Exclusive) Hemlock Grove Current (Netflix Exclusive) Medium Current Eureka Current Alphas Current (viewing last few episodes) ^^ A lot more shows that i've watched or am watching these are just ones you mentioned or I think you might like ^^ -
No. If your using the old mysql extension, use mres (mysql_real_escape_string) at minimum! If your using mysqli... Use binded parameters (at minimum). Sprintf is kind of a waste of resources since it can't do what mysql can, or have the knowledge of escaping that mysql has. When dealing with numbers it would also be expensive to just cast to int or float. Or check it against "is_(numeric,int,float)". Sprintf was not made for security (although it is the easy way out), it was made for formatting strings.
-
omg dood! y dont u use proper grahmr crackers, spelling, n punctuation?!?!?!
-
Have you tried debuggin it yet? If not try adding an echo under the line where the query is executed to see if that code block is actually being accessed. I have a feeling that either this is a problem in you logic, or the password and salt change process is different from the verification process.
-
Beautified by jsbeautifier.org This is a js beatifier so there may be syntax errors. (Only one i've really noticed is when referencing php class methods & properties) session_start();if (get_magic_quotes_gpc() == 0) { foreach($_POST as $k = > $v) { $_POST[$k] = addslashes($v); } foreach($_GET as $k = > $v) { $_GET[$k] = addslashes($v); } } if ($_POST['username'] == "" || $_POST['password'] == "") { die("<h3>LostNation Error</h3> You did not fill in the login form! <a href=login.php>> Back</a>"); } include "mysql.php"; require "global_func.php"; $username = (array_key_exists('username', $_POST) && is_string($_POST['username'])) ? $_POST['username'] : ''; $password = (array_key_exists('password', $_POST) && is_string($_POST['password'])) ? $_POST['password'] : ''; if (empty($username) || empty($password)) { die("<h3>LostNation Error</h3> You did not fill in the login form! <a href='login.php'>> Back</a>"); } $form_username = mysql_real_escape_string(stripslashes($username), $c); $raw_password = stripslashes($password); $uq = mysql_query("SELECT `userid`, `userpass`, `pass_salt`,`lastip_login`,`last_login` FROM `users` WHERE `login_name` = '$form_username'", $c); if (mysql_num_rows($uq) == 0) { die("<h3>LostNation Error</h3> Invalid username or password! <a href='login.php'>> Back</a>"); } else { $mem = mysql_fetch_assoc($uq); $login_failed = false; // Pass Salt generation: autofix if (empty($mem['pass_salt'])) { if (md5($raw_password) != $mem['userpass']) { $login_failed = true; } $salt = generate_pass_salt(); $enc_psw = encode_password($mem['userpass'], $salt, true); $e_salt = mysql_real_escape_string($salt, $c); // in case of changed salt function $e_encpsw = mysql_real_escape_string($enc_psw, $c); // ditto for password encoder $IP = $_SERVER['REMOTE_ADDR']; // Privacy for owners IP / Also located in header.php $IP = $_SERVER['REMOTE_ADDR']; if ($_SESSION['userid'] == 1 OR $_SESSION['userid'] == 2) { $IP = '127.0.0.1'; } mysql_query("UPDATE users SET pass_salt = '$e_salt', userpass = '$e_encpsw', lastip_login = '$IP', last_login = unix_timestamp() WHERE userid={$mem['userid']}"); } else { $login_failed = !(verify_user_password($raw_password, $mem['pass_salt'], $mem['userpass'])); } if ($login_failed) { die("<h3>LostNation Error</h3> Invalid username or password! <a href='login.php'>> Back</a>"); } if ($mem['userid'] == 1 && file_exists('./installer.php')) { die("<h3>LostNation Error</h3> The installer still exists! You need to delete installer.php immediately. <a href='login.php'>> Back</a>"); } session_regenerate_id(); $_SESSION['loggedin'] = 1; $_SESSION['userid'] = $mem['userid']; $loggedin_url = 'http://'.determine_game_urlbase().'/loggedin.php'; header("Location: {$loggedin_url}"); exit; } Now that this is readable...
-
Yup. On another note i didn't know Shakespeare's sisters where still alive, or that he had any for that matter. :p