Login Register






[PHP]HTML management interface filter_list
Author
Message
[PHP]HTML management interface #1
Hi!

So I've created this mainly for our projects with bluedog.tar.gz, he wasn't really happy with editing all the in-line HTML so I've made this simple interface, where you can create HTML files and edit them without changing any other code or whatever.

Installing:
=> Create a database and import the sheets.sql file that is found in the archive (usually through phpmyadmin if you use MySQL). This script uses PDO to handle all queries so it should handle different databases pretty well, however it was written for MySQL. So if you use a different DB, make sure that the SQL syntax is correct (I use simple queries to make sure that multiple DB systems work).
=> Go to /inc/conf.inc and edit the settings there.
=> Make sure the directory /styles/ is writeable.

Using the styles in your code:
=> Import the file: /styles/import.inc in every file, where you want to use the sheets.
=> Sheets are used by placing the variable $style['name of the sheet']

Troubles you may encounter:
=> You may get weird SQL errors. If you do, make sure that all the DB info in /inc/conf.inc is correct. If you are 100% sure it is, make sure that PDO is enabled on your server.

NOTES:
=> Yes, the GFX sux. I don't do GFX.
=> The file test.php shows how the sheets can be used.
=> Yes I know that the file test.php shows an alert box with the text XSS in it. It was for testing purpose and I didn't feel like re-making it.
=> The script isn't 100% finished, but it is usable now. Just minor things have to be added (development mode etc.)
=> The sheets can be used without a DB. As test.php demonstrates.
=> All forms in the script are vulnerable to CSRF. This is due to the fact, that I usually use a general system to prevent CSRF that doesn't really work well with other mechanisms.
Staff will never ever ask you for your personal information.
We know everything about you anyway.


RE: [PHP]HTML management interface #2
UPDATE: Now instead of variables an object is being used. This method enables importing sheets into sheets and some more fun stuff. Also, you don't have to echo the variables anymore. But since there are 0 downloads, I don't think anybody cares anyway Biggrin
Staff will never ever ask you for your personal information.
We know everything about you anyway.


RE: [PHP]HTML management interface #3
I love this, thanks Biggrin


RE: [PHP]HTML management interface #4
(01-03-2013, 11:30 PM)bluedog.tar.gz Wrote: I love this, thanks Biggrin

You should Tongue I made it mainly for you Biggrin
Staff will never ever ask you for your personal information.
We know everything about you anyway.


RE: [PHP]HTML management interface #5
That good working , Best of luck for your future work...........


RE: [PHP]HTML management interface #6
I have ended this project because there are better engines like Twig
Staff will never ever ask you for your personal information.
We know everything about you anyway.