-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
"HELP" register.php - Deprecated: Function ereg()
sniko replied to IEatYourCookies's topic in Modification Support
Paste your implementation. - Just the function, the function call, and how the parameters are built. -
"HELP" register.php - Deprecated: Function ereg()
sniko replied to IEatYourCookies's topic in Modification Support
Replace your valid_email() function with; function valid_email($email) { if(preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email) == FALSE) { // Email invalid return false; } return true; } Live preview -
If it was built by a human, it can be broken by a human ;)
-
Yes, have a read here: https://www.owasp.org/index.php/Unrestricted_File_Upload
-
"HELP" register.php - Deprecated: Function ereg()
sniko replied to IEatYourCookies's topic in Modification Support
I'll give you the fishing rod, but not the fish. if (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email) == FALSE) { See regex tester -
You said you're considering moving hosting provider. May I suggest you use DigitalOcean? Once you've experienced their service, you won't ever go back to "shared cPanel cheap hosting".
-
"HELP" register.php - Deprecated: Function ereg()
sniko replied to IEatYourCookies's topic in Modification Support
ereg has been deprecated, and dropped in later versions of PHP. You're going to want to look at preg_match http://uk1.php.net/preg_match. -
The issue is that you're sending a HTTP header after output, causing that message, and most likely, not firing the redirect. To fix it, change your code around so that there is no output before you send the HTTP header, or make use of output buffering (properly).
-
You're looking for vanity URLs/pretty URLs - mod_rewrite. An example would be something like; RewriteEngine On RewriteRule ^([^/]*)$ /viewuser.php?u=$1 [L,QSA] However, that would direct everything to viewuser.php - but it's a start. To accomplish what you're trying to achieve, look at RewriteCond (rewrite conditions)
-
Brand New Hosting AVAILABLE AT Cheap Prices
sniko replied to AnonymousUser's topic in Linux and Webservers
****. Sign me up to one month of your hosting package to prove DigitalOcean isn't a serious competitor, and I doubt you'll meet any expectations someone expects with deploying their application to the web - especially with (bloat ware) cPanel. -
Today Playing with GhostScript and ImageMagick to convert PDFs into JPGs and then cropping them. Creating more API endpoints to integrate with a 3rd party service Finalising collection designs within MongoDb Tomorrow Database restructure (MySQL) User class build (for a custom CMS platform) Building security token system for user requests [*]Planning a design [*]Planning the system design for the front-end websites using the custom CMS platform
-
Brand New Hosting AVAILABLE AT Cheap Prices
sniko replied to AnonymousUser's topic in Linux and Webservers
You use the term "Unlimited", I think you should change that to "Unmetered". I'll throw in the usual questions; How much server experience do you have? Do you have any backup procedures in place? Do you have any recovery procedures in place? How can we get support? Do we contact you? If so, what times are you available? After all, you are providing a service that we are paying for. [*]What kind of interface do we have to interact with the server? [*]How dated is the technology on the user? Software versions Hardware versions [*]How often would you update software/drivers/... [*]Can we install PHP extensions? (PECL, PEAR) -
Nope. Unless with your implementation it changed. My code would send a HTTP GET request to ajaxListener.php?cmd=train&stat=strength. Your AJAX listener would "route" that request on switching the _GET['cmd'] value, down to the train() function. Admittedly, this should really be a POST.
-
I'd suggest using the REST methodology. It would open doors for much easier app building, and (depending on the back-end structure; classes, namespaces, etc - future proofing and enhancing code/routines) Sure this could be achieved with the others, but I personally find sending RESTful request to a web service (for apps) is much easier than sending SOAP requests. You'd need a good design pattern, obvious and most logical choice is the MVC design pattern.
-
What type of methodology? REST, SOAP, (sorry for saying this) cheap labelling for a class, or?
-
Considering you're switching on a _GET to call the respective function, this should suffice; (I've only done one button, but you'll get the gist on how to do the others. You will also need the jQuery library) <div id="response"></div> <a href="" class="trainButton" data-type="train" data-stat="strength">Train Strength</a> <script> $(document).ready(function() { $('.trainButton').click(function() { var strType = $(this).data('type'); var strStat = $(this).data('stat'); $.get('ajaxListener.php?cmd=' + strType + '&stat=' + strStat, function(strTrainResponse) { $('#response').html(strTrainResponse); }); }); }); </script> You're also open to SQL injection. <font> should not be used. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font This looks more like your AJAX listener, not caller. Don't use exit; directly. At least call $h->endpage() beforehand. There is no default case handler
-
OP said > ok i open to offers as no one wants to buy it $5 is an offer.
-
mccode-v2 Integrate GoInstant - Real Time Chat Widget
sniko replied to sniko's topic in Free Modifications
Thanks [MENTION=68479]Oracle[/MENTION]! I'm planning of creating a guide to integrate pusher, and perhaps a tiny admin panel to accompany it, but nothing is set in stone, yet. -
You don't necessarily need MySQL. You need a database. MySQL is a relational database management system - you could go for NoSQL (Neo4j, Mongo, etc - although these are mostly used for BIG data, however not limited to that.) A webserver Apache Nginx ... [*]A database SQL NoSQL [*]Server-side programming To communicate with the database(s) [*]Client-side programming Display everything to an end-user
-
The way a business flourishes is by supply & demand, to make a profit that outweighs the costs of developing such product/service. Currently, the demand for v3 is so low, it doesn't complement the costs involved. //These are my own views and opinions reflecting v3
-
What part are you stuck with, exactly?
-
I see no correlation between the use of invalid licenses and the communities enjoyment, sorry.
-
If you're trying to promote yourself, it would be better to provide your work in the post. > Hey Tangled, > I've done some main menu designs before, and here are some samples of my work > [screenshot1] [screenshot2] [screenshot3] > For more samples, or if you'd like to discuss your design with me, contact me via e-mail ([email protected]) or PM me You will get more people come to you, as you'd be exposing your work in multiple places, and not one Someone doesn't have to search for you work. This guy sent me on a stupid adventure looking for his work so I can see if I want to give him my money, and this guy sent me samples of his work [*]You will look much more professional It's rookie-know-how on selling and making yourself look professional when proposing to new (and old) clients.
-
> might. Don't make accusations without providing evidence to backup your claims; even if you intend to post evidence, post it at the same time of the accusation, else you look like an idiot/hater.
-
Yes, i've seen a few - but I can't remember the names. I'd like to see more games adopt those mechanics, personally.