YaBB SE Community

Development => Completed mods => Topic started by: Jack.R.Abbit on April 22, 2003, 07:27:12 PM

Title: [Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Jack.R.Abbit on April 22, 2003, 07:27:12 PM
This mod hides the MySQL database password in the Admin section.  It also adds an additional field that can be used to change the password.  By entering the current password into the "Database Password" field and the new password into the "Database Password (New)" field, you can chagne the password. This allows you to hide it but still change it if you need to.

hidedbpassword (http://www.netamorphic.com/mods.by.jack/) - Updated 06/05/2003

Updates:
06/05/2003 - Updated/verified it for 1.5.2 & 1.5.3

Enjoy!

I should mention that be sure to back up your data before applying this, or any, mod.  Everything I post works fine in my YaBB installation but your milage may vary.

-Jack
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Jack.R.Abbit on June 05, 2003, 01:17:10 PM
Updated/verified it for 1.5.2 & 1.5.3
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: newbieyabbie on June 11, 2003, 10:13:43 PM
Hi, this is a very good mod, I used it when I had 1.4.1, but now that I tried to install on 1.5.3, I get
Code: [Select]
2: fopen(Sources/Admin.php) [function.fopen]: failed to create stream: Permission denied
(/home/allabout/public_html/yabbse/Sources/Packages.php ln 416)
No other mods are installed. Any ideas?
Thanx
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Metho on June 11, 2003, 11:49:01 PM
It's not the mod really, it's your file permissions. (on admin.php) You'll have to chmod it to the correct setting...I'm not precisely sure what it needs to go to. My bad practice is chmoding the file to 777, installing, and then changing it back to a safe setting. That's the bad way to do it though. Jack or someone else could probably tell you what it needs to be set to for sure.

Methonis
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Daniel D. on June 12, 2003, 12:02:56 AM
666 - Why does a readme file excists ?
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: newbieyabbie on June 12, 2003, 11:26:02 AM
Thank you, I'll try that.
Quote
Posted by: Daniel D.  Posted on: Today at 04:02:56am  
666 - Why does a readme file excists ?
Isn't 666 just as risky as 777, I mean one is rw-rw-rw and the other is rwx-rwx-rwx. This is fine to edit and write to files but what should the permissions be afterwards, 655? 644?
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: newbieyabbie on June 12, 2003, 11:36:47 AM
Excellent, it worked. Thank you.
Newbieyabbie hits self in the head. I should've known this already, its the "fopen and streams that through me off.
Thanks again
Title: hiding Sql details
Post by: MartinB on July 30, 2003, 02:40:28 PM
YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 4.0.x
Server Platform: Windows
Link to Forum:

Problem Description:
I doubt this is possible but, let's say I wanted to host a forum for my friend, however, I don't want them to be able to see my SQL username/server/ or password which they can usually do in the ADMIN panel.

However, I still would like to give them admin access. Is this possible?

Cheers.
Title: Re:hiding Sql details
Post by: Ben_S on July 30, 2003, 03:04:13 PM
Check the completed mods board, there was a mod to hide them, not sure if it was updated to work with the current version though.
Title: Re:hiding Sql details
Post by: [Unknown] on July 30, 2003, 04:42:14 PM
There are about three ;).

-[Unknown]
Title: Re:hiding Sql details
Post by: MartinB on July 30, 2003, 04:50:26 PM
direct url anyone ;)
Title: Re:hiding Sql details
Post by: Ben_S on July 30, 2003, 05:02:23 PM
The search button is your friend, takes less than 2 mins to find, keywords hide & password but anyway http://www.netamorphic.com/mods.by.jack/
Title: Re:hiding Sql details
Post by: MartinB on July 30, 2003, 05:43:33 PM
lol i knew u cudnt resist, thanks :)
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Douglas on July 30, 2003, 05:55:18 PM
Thread merged with the appropriate Mod.  :)
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: MartinB on July 31, 2003, 09:33:38 AM
I have download http://www.netamorphic.com/mods.by.jack/hidedbpassword.zip

And unziped etc, now, what exactly do i need to get this to work, I've uploaded it to the packages folder.

what next please :)?
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Jack.R.Abbit on July 31, 2003, 09:52:45 AM
First off... I really only do YaBBPaks... I don't do BoardMod.  Some Mod authors only do BoardMod... I only do YaBBPaks.  Having said that, the best way to install the mod is to download the YaBBPak via the Package Manager of your board and install it that way.  Barring that, the zip file contains everything used to construct the YaBBPak and is about 99.9% of what you need to either do a BoardMod install or a manual install.  Thankfully this mod is pretty simple so I think I can talk you through it.  There should be two versions of the modification file (*.mod)... choose the one that best fits your version of YaBB SE.  And open it in your favorit text editor.  The .mod is in this format:
Code: [Select]
<file>
**** Name of File to be Modified ****
</file>

<search>
**** String to be Searched 4 ****
</search>

<replace|add|before>
**** Modification to be Made
</replace|add|before>
You will want to open the file that is meant to be modified.... search for the string to be search for... and the either replace it with the modification, add it directly after it or add it directly before it (depending on what the mod istruction indicates)

After you have performed all the modification instructions, upload the file and you should be up and running.  (as a side note, some mods require a database modifiaction file to be run... this one does not)

Finally... be very careful when performing these "search and change" steps... because there are too many unknowns (to me) when a person does a hand install, I won't be ableto help you out too much... be thankful this only has 2 modifications.

-Jack

Oh... and if you decide you want to use BoardMod... BoardMod does not understand the same modification instructions so it would need to be translated... (not too hard but not something I'll do)
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: MartinB on July 31, 2003, 11:08:02 AM
installed mod successfully,

however, let me get this right, if i wanted to run a forum for a friend, they cud just uninstall the mod and then view the password couldn't they?

also, i tried to remove the mod, and still cant see the password so im confused lol ??? have i just contradicted myself
Title: Re:[Done 1.4.1 & 1.5.X] Hide Db Password (yet still change it)
Post by: Ben_S on July 31, 2003, 12:33:00 PM
goto the admin page and take a look at the package manager/yabbpak options  :)