New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
I already have something similar in mind to connect a domain with a hosting, so extending this seems not too difficult and far from my idea. But one step at a time
website is up and running at http://dagent.org/
It was just an idea that you could consider. I think a standalone tool for vpses alone might be much beneficial thus replacing another spreadsheet.
I can understand that. But, for Alex it will be much easy since he has anyways developed the tool for domains that has similar requirements. Later he can add features like custom fields where one can add as many fields to store any information.
Your choice but you could consider forwarding to one of below pages with instructions on how to implement it documented.
https://github.com/mprz/dAgent
https://github.com/mprz/dAgent/blob/master/README.md
There's a nice SQL injection in the remove action, index page. You didn't escape the id variable, nor the action variable. Also use freaking PDO, I honestly don't know why anyone still uses the mysql_* functions anymore.
SQL injection can occur in PDO, MySQL, and MySQLi, as long as raw queries are being built.
Prepared statements are probably what you mean to advocate.
Yeah, I was talking about prepared statements, I just said PDO because you also get the ability to switch database types easily (to MySQL/SQLite for example)
Too bad the shit on git doesn't work.
@alex sweet..and Bootstrap gives you a +2
I know about the vulnerability, but first time hearing about PDO. Done some reading and it's definitely worth using it. It's my first PHP project so cut me some slack :P
Too bad you have problems with reading.
@seikan
Do you have a repo for your project - it looks good and I would like to test it.
@dAgent
I've just grabbed this latest version in your repo and it doesn't work.
It installs fine, creates tables, etc... When you add a Registrar it works and if i check out the table in mysql the content is there. However, it never displays it in the web gui - Likewise it then prevents you adding a domain as it isn't listing it.
Haven't had a chance to check further, but i'm assuming its a simple sql error - might get time to take a look tomorrow.
Thinking long term, I would strongly suggest using a whois lib as mentioned above rather than manually adding registrars, domain dates etc - it quickly becomes unmanageable with large lists of domains.
I'll look into it. Works on my localhost, but I will try to do a fresh install and see. Thanks for feedback!
fixed