June 15, 200818 yr Hi I'm totally new here so go easy on me! I'm trying to update a photo gallery website which was built using myphpadmin. Basically I'm looking for a way to activate the password control to the admin page of the site. I know next to nothing about databases and php so I'm hoping there might be a simple way to do this. I have found a file called user_password.php and have the feeling that answer lies in there somewhere but nothing obvious stands out. Does anyone know what I should be looking for? thanks
June 15, 200818 yr Not quite sure what you mean, do you mean you cant access phpmyadmin because you have forgotten the password? Cheers Pat
June 15, 200818 yr Author No - I found that password and have access. What I mean is I need to create some security for the admin page of the website where you can upload new photographs to the gallery. This code from the user_password.php file looks promising but I'm not sure what will happen if i change it. <input type="password" name="pma_pw" size="10" class="textfield" <?php echo $chg_evt_handler; ?>="nopass[1].checked = true" /> <?php echo $GLOBALS['strReType']; ?> : <input type="password" name="pma_pw2" size="10" class="textfield" <?php echo $chg_evt_handler; ?>="nopass[1].checked = true" /> I'm sorry I don't know more about myphp to know if this is a simple or complicated question...
June 15, 200818 yr No - I found that password and have access. What I mean is I need to create some security for the admin page of the website where you can upload new photographs to the gallery. This code from the user_password.php file looks promising but I'm not sure what will happen if i change it. <input type="password" name="pma_pw" size="10" class="textfield" <?php echo $chg_evt_handler; ?>="nopass[1].checked = true" /> <?php echo $GLOBALS['strReType']; ?> : <input type="password" name="pma_pw2" size="10" class="textfield" <?php echo $chg_evt_handler; ?>="nopass[1].checked = true" /> I'm sorry I don't know more about myphp to know if this is a simple or complicated question... So at the moment, are you getting illegal access with people uploading. Pat
June 15, 200818 yr Author So at the moment, are you getting illegal access with people uploading. Pat Well the access is open to anyone who adds /admin to the web address. I'm not sure if the photographer has had illegal uploads to her site in the past but its something she wants to block now. I've got three password related files. The user_password.php file in the db folder. And two javascript files in the library server_privileges.js and user_password.js. I'm kind of hoping that password protection is built in and I just need to activate it somewhere.
Create an account or sign in to comment