![]() | |||||||
Php help needed I have a very basic directory site in which people submit their sites too. I have a very simple backend (admin.php) in which I can approve submitted links and then they get installed in the mysql database. The backend does not have any way to delete the links that I do not want. I can only approve the links. Currently I have to approve the unwanted links and then, I log into cpanel and access the database and find the unwanted link and delete it. I need to add some code to my admin.php but am lacking the expertise to do this. Do I need to hire a php coder or is their a couple lines of code I can add? Heres the php code I currently have in my admin.php PHP Code: |
Something like this should do the job: ( untested, please back up your database before using ) PHP Code: |
That is very unsecure code... :confused: All I would need to do is find out the name of the cookie and im in. |
Just delete the login stuff and put this admin.php into some folder called "admin" Password protect that folder via cpanel Password protected directories option. The rest of the code can be secured or unsecured it doesn't matters. |
NC thanks for the help. I still can not get this to work. I really do appreciate your help tho. The original developer, of the site, saw this thread and has contacted and offered assistance! :) Nick, I took your advice and secured the admin.php file in a password protected folder. I would have never thought about this - but its a great tip! It may be oldhat too some, but tips like this are very helpful to us who are still learning...:) |
;) Thanks. Happens to me all the time when I am only looking at the cream floating on the glass and assume its filled with milk. Without knowing it could be water on which the cream is floating :D |
| All times are GMT -7. The time now is 06:25 PM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0