Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, April 18, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  password protect of add, change and delete record

phpMyEdit General     password protect of add, change and delete record
Post new topic   Reply to topic   Goto page 1, 2, 3, 4, 5, 6, 7  Next  
 
Pjotr1234     Joined: 28 Dec 2014   Posts: 4  
Post Posted: 2014-12-28 18:43
Back to top  Reply with quote     

Hi,
I have function phpMyEdit code for editting my DB.
I would like to implement password protection of insert, delete and change actions. It mens that everybody can see all records, but changes will be protected by password. It doesn't matter if pwd will be stored in DB or hard coded in variable.

Could somebody help me ?

I am beginner = sorry for stupid question. My idea was to do it by trigger, but I am not abble to write function code for pwd input and check if it is correct.

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2014-12-29 20:09
Back to top  Reply with quote     

You probably need a login system for users, as described at http://www.phpbuilder.com/columns/user-authentication/Jason_Gilmore05172011.php3

Or maybe a user login exists with a user_id which could be made to correspond to a record_owner_id field in the data table. Then facilitate different permissions based on comparing record_owner_id with user_id.

user_id is usually populated in a session variable when users log in.

 
Pjotr1234     Joined: 28 Dec 2014   Posts: 4  
Post Posted: 2014-12-29 22:08
Back to top  Reply with quote     

No, my site is accesible for everybody. No one needs password for look at data. But I need to prevent changes of data for each. Change data can just few people. Therefore my idea is to add password field to add, copy, change and delete form. I do not know how. It is possible to make alter table add column password, but this functionality is not clear and it does not work for delete form. Password could be the same for each.
Do you have any idea how to do it ?

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2014-12-29 22:32
Back to top  Reply with quote     

Simplest way, assuming your website control panel offers an htaccess utility, would be to put a copy of the form in a password protected folder, which users would have to access in order to add/change/delete records. Anyone can view the public data so there you can disallow changes and allow changes in the new folder only.

Otherwise you need a login system as previously suggested, which is too complex to discuss in this forum.

 
Pjotr1234     Joined: 28 Dec 2014   Posts: 4  
Post Posted: 2014-12-29 22:48
Back to top  Reply with quote     

I have php script on my site which was generated by phpMyEdit. I understan how User Authentication (login script) works, but my problem is that I do not know how and where I can authentication script add to my existint php (phpMyEdit) file.
The best solution is to add password field to add, copy, change and delete form which is triggered from main grid page of phpMyEdit file. But id do not know how.

 
Pjotr1234     Joined: 28 Dec 2014   Posts: 4  
Post Posted: 2014-12-30 11:59
Back to top  Reply with quote     

Main page of my php application which was generated by phpMyEdit looks like http://s27.postimg.org/db4oscw3n/products1.jpg
Page for actions add, copy, edit and delete looks like http://s14.postimg.org/ldeffh5up/products2.jpg
But I need implement password protect for this actions, therefore e.g. delete page should looks like http://s14.postimg.org/4e5h07un5/products3.jpg (added entering field for password).

Does somebody know how to do it ?
Where into my php file (by phpMyEdit) I shoud add password field ?

Thx in advance

 
robinjack     Joined: 01 Mar 2021   Posts: 7258  
Post Posted: 2022-09-18 15:45
Back to top  Reply with quote     

An attention-grabbing dialogue is price comment. I believe that it is best to write more on this matter, it might not be a taboo topic but usually people are not sufficient to talk on such topics. To the next. Cheers Amarose

 
topboosterseo     Joined: 24 Jul 2022   Posts: 4504  
Post Posted: 2022-09-26 16:58
Back to top  Reply with quote     

I’ve been exploring for a bit for any high-quality articles or blog posts in this sort of area . Exploring in Yahoo I eventually stumbled upon this website. Studying this info So i¡¦m happy to convey that I’ve an incredibly excellent uncanny feeling I found out just what I needed. I so much no doubt will make certain to don¡¦t overlook this web site and provides it a glance a relentless basis. Diaetoxil

 
robinjack     Joined: 01 Mar 2021   Posts: 7258  
Post Posted: 2022-09-27 15:39
Back to top  Reply with quote     

very good post, i surely adore this site, go on it Protetox

 
robinjack     Joined: 01 Mar 2021   Posts: 7258  
Post Posted: 2022-09-29 10:58
Back to top  Reply with quote     

very nice post, i undoubtedly enjoy this excellent website, continue it this content

 
topboosterseo     Joined: 24 Jul 2022   Posts: 4504  
Post Posted: 2022-09-29 19:41
Back to top  Reply with quote     

One scene in particular, set at the aforementioned strip club, left me roaring in laughter. Heater Pro X

 
robinjack     Joined: 01 Mar 2021   Posts: 7258  
Post Posted: 2022-10-01 16:10
Back to top  Reply with quote     

What on earth is captcha code?, pls provide me captcha code codes or plugin, Thanks in advance. Protetox

 
topboosterseo     Joined: 24 Jul 2022   Posts: 4504  
Post Posted: 2022-10-03 19:45
Back to top  Reply with quote     

you have a wonderful weblog here! do you wish to have the invite posts on my own blog? bidvaluable

 
robinjack     Joined: 01 Mar 2021   Posts: 7258  
Post Posted: 2022-10-05 12:53
Back to top  Reply with quote     

Hello! I’ve been reading your web site for a while now and finally got the courage to go ahead and give you a shout out from Kingwood Texas! Just wanted to say keep up the good work! tcn micro sites

 
topboosterseo     Joined: 24 Jul 2022   Posts: 4504  
Post Posted: 2022-10-12 17:19
Back to top  Reply with quote     

You created some decent points there. I looked online for the issue and found most individuals should go in addition to with your internet site. Impact Keto Gummies

 
Post new topic   Reply to topic   Goto page 1, 2, 3, 4, 5, 6, 7  Next  

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy