Welcome, Guest. Please Login or Register.
May 09, 2025, 11:15:25 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  MySQL Password « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: MySQL Password  (Read 910 times)
blar
Jr. Member
**
Posts: 62


just be noob :D

ICQ - 60591109
MySQL Password
« on: December 26, 2002, 10:06:38 AM »
Reply with quote

don't want anyone can see your mysqlpassword in the admin section?

edit admin.php

search

         <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '" width="400"><font size="2">' . $txt['yse7'] . '</font></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="text" name="db_passwd" value="' . $db_passwd . '" /></td>


replace with

         <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '" width="400"><font size="2">' . $txt['yse7'] . '</font></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="password" name="db_passwd" value="' . $db_passwd . '" /></td>


the mysql password field is then a REAL password field
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:MySQL Password
« Reply #1 on: December 26, 2002, 10:15:58 AM »
Reply with quote

That's not going to change anything.  A person can just look at the HTML's sourcecode and read your password. ::)
Logged

blar
Jr. Member
**
Posts: 62


just be noob :D

ICQ - 60591109
Re:MySQL Password
« Reply #2 on: December 26, 2002, 10:17:33 AM »
Reply with quote

i don't like that anyone can watch on my screen and read the password. (eg if you on a lanparty, meet friends...)
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:MySQL Password
« Reply #3 on: December 26, 2002, 10:18:24 AM »
Reply with quote

I would go into it a little more - make it so value="" (or simply omit that attribute) and then when you check the stuff they submitted, use the old password if it's still blank.  Of course, this means they have to have a password for the mySQL to work......

hmmmmm....

-[Unknown]
Logged
blar
Jr. Member
**
Posts: 62


just be noob :D

ICQ - 60591109
Re:MySQL Password
« Reply #4 on: December 26, 2002, 10:20:07 AM »
Reply with quote

value="" is not good if you save settings - this kill your password
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:MySQL Password
« Reply #5 on: December 26, 2002, 10:27:03 AM »
Reply with quote

Quote from: blar on December 26, 2002, 10:20:07 AMvalue="" is not good if you save settings - this kill your password

Please continue to read the rest of my post.

-[Unknown]
Logged
Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:MySQL Password
« Reply #6 on: December 26, 2002, 10:28:46 AM »
Reply with quote

Admin.pl:

thats simple, add after:

   $helpfile = (isset($HTTP_POST_VARS['helpfile']) ? $HTTP_POST_VARS['helpfile'] : "$boardurl/YaBBHelp/index.html");

this line:

   $db_passwd =(isset($HTTP_POST_VARS['db_passwd']) ? $db_passwd : $HTTP_POST_VARS['db_passwd']);


and replace line 1101 by:
<td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="text" name="db_passwd" value="" /></td>


Bjoern
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:MySQL Password
« Reply #7 on: December 26, 2002, 10:30:37 AM »
Reply with quote

Exactly! (although you mean .php not .pl :p)

-[Unknown]
Logged
Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:MySQL Password
« Reply #8 on: December 26, 2002, 10:33:47 AM »
Reply with quote

;D jp

at the moment i have the pl Version from YaBB, but when all errors in 1.5 are fixed i will use it.
Logged

Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:MySQL Password
« Reply #9 on: January 04, 2003, 02:41:38 PM »
Reply with quote

here is the mod:

Download

;D
Logged

TF
Full Member
***
Posts: 214


I'm a llama!

Re:MySQL Password
« Reply #10 on: January 04, 2003, 05:15:34 PM »
Reply with quote

Bjørn:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sites/mysite/www/Sources/Admin.php on line 1101
Logged
Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:MySQL Password
« Reply #11 on: January 05, 2003, 06:22:28 PM »
Reply with quote

hhm, works for me fine.

anyone else installed it ?
« Last Edit: January 05, 2003, 06:22:53 PM by Björn » Logged

Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:MySQL Password
« Reply #12 on: January 05, 2003, 06:32:11 PM »
Reply with quote

Admin section ??? do you mean "Forum Preferences and Settings"

its the only place where i saw my psw revealed.

does your mod keep the psw in memory so when you apply your newsettings that your password isn't going to blank
Logged


Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:MySQL Password
« Reply #13 on: January 05, 2003, 08:17:47 PM »
Reply with quote

Yes, in "Forum Preferences and Settings" the database password.

Only when you enter a new password your old one is overwritten.
Logged

Mr.Sins
Full Member
***
Posts: 113


BROOD WAR FOR LIFE

ICQ - 36721259cl.david@newmail.net WWW
Re:MySQL Password
« Reply #14 on: January 06, 2003, 05:26:45 AM »
Reply with quote

sold, but link is dead.
i would appreciate it if you would mail it to me.
« Last Edit: January 06, 2003, 05:32:19 AM by Mr.Sins » Logged


Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  MySQL Password « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.091 seconds with 20 queries.