Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MyPHPAdmin password

Featured Replies

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

Not quite sure what you mean, do you mean you cant access phpmyadmin because you have forgotten the password?

 

Cheers

 

Pat

  • 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...

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

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.