PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi ! i've been a while in html but a newbie in php , now i have started to make php based sites without cms & login system's , when i make a website i see other inexperienced people editing / adding the content's & the template crashes . i wish to know what could be done to prevent inexperienced people from editing , ie. if they edit the script or content it should produce an error .
i have seen this in wordpress template's , when one tries to edit the footer it display's an error or a set of text asking not to edit a free template .
sorry if im writing in the wrong place or if i'am asking a stupid q's in an advanced forum .
manohoo wrote:If you are the directory owner, have you thought of making the directories READ only to other users?
yep ! thank's for your info . that's also a good choice , but is there anyway by which i may prevent un-experienced people from editing the template content's , like copyright etc . some code's that makes the template render error when something like the footer content's being edited , this idea i got wile i was wring with wordpress .
i've read about a script added to the directory would make it read only , this would help cuz inexperienced people may find it difficult to make it to read .
There's nothing you can do in your code to distinguish experienced from inexperienced programmers. As I said in a previous post, the best tool you have is the directory attributes where the code resides, so that you can control who can have READ or WRITE permissions.
If I can read your mind correctly, I think that you are referring to a code encoder. If that's the case then you will have to use a PHP encoder application, such as:
manohoo wrote:There's nothing you can do in your code to distinguish experienced from inexperienced programmers. As I said in a previous post, the best tool you have is the directory attributes where the code resides, so that you can control who can have READ or WRITE permissions.
If I can read your mind correctly, I think that you are referring to a code encoder. If that's the case then you will have to use a PHP encoder application, such as:
thanks , i'am currently using a 32 & a 64bit coder to code my content's . still i'am looking for something tht would render error when the footer is removed or edited , i stress this cuz i saw the same feature being used in wordpress .
btw many thanks for those links i'm trying them too
If you have the known good footer somewhere, you could create a hash of some kind (like the CRC codes that floppies use to use to insure the data was preserved correctly) - then include the footed from where ever you store it (the place where someone can edit it for some reason) and then hash that and compare it against your known hash value. If they match then all is good. If not - then stuff is broken.
BUT - why not use a CMS - there are simple ones that are easy to implement that would give you some degree of control and they typically have better security for content.
bjazmoore wrote:If you have the known good footer somewhere, you could create a hash of some kind (like the CRC codes that floppies use to use to insure the data was preserved correctly) - then include the footed from where ever you store it (the place where someone can edit it for some reason) and then hash that and compare it against your known hash value. If they match then all is good. If not - then stuff is broken.
BUT - why not use a CMS - there are simple ones that are easy to implement that would give you some degree of control and they typically have better security for content.
Bjaz
thanks for your reply , will try wht u've said
i too love cms & working on it . i used joomla but now came to wordpress due to the easy updating system & control i find in wordpress . but my site is a personal one & wont have more than 50 pages so cms wont be a real necessary .
i too love cms & working on it . i used joomla but now came to wordpress due to the easy updating system & control i find in wordpress . but my site is a personal one & wont have more than 50 pages so cms wont be a real necessary .[/quote]
I read what I wrote. Dumb. Just compare the known string against the one that might be changed.
But hey! This whole thing just confuses me. Why do you even have the issue. If you can not secure the content then you need a tool - regardless of the size of the site - like a CMS or blog or even a wiki.
If size is an issue - try CMSimple or razorCMS (both do not require database) or CMS Made Simple if you want a database. These are not overkill for your needs and provide the extra layer of user security required.
bjazmoore wrote:i too love cms & working on it . i used joomla but now came to wordpress due to the easy updating system & control i find in wordpress . but my site is a personal one & wont have more than 50 pages so cms wont be a real necessary .
I read what I wrote. Dumb. Just compare the known string against the one that might be changed.
But hey! This whole thing just confuses me. Why do you even have the issue. If you can not secure the content then you need a tool - regardless of the size of the site - like a CMS or blog or even a wiki.
If size is an issue - try CMSimple or razorCMS (both do not require database) or CMS Made Simple if you want a database. These are not overkill for your needs and provide the extra layer of user security required.