Welcome, Guest. Please Login or Register.
August 26, 2025, 08:51:56 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Dont want to display Database-login and pass..??? « previous next »
Pages: 1 [2] 3 4 Reply Ignore Print
Author Topic: Dont want to display Database-login and pass..???  (Read 3370 times)
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Dont want to display Database-login and pass..???
« Reply #15 on: December 21, 2001, 09:04:56 PM »
Reply with quote

I still think it's petty but I included a fix for you...try it out.  It's quick and could use more refining but that should work fine.
Logged

Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #16 on: December 21, 2001, 09:06:41 PM »
Reply with quote

Quote from: Matt Siegman on December 21, 2001, 08:43:28 PMone of these days, i'll write mod for it...

hello
thx for help
nice hear it  ;D

Pebbels
Logged
Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #17 on: December 21, 2001, 09:10:05 PM »
Reply with quote

Quote from: Jeff Lewis on December 21, 2001, 09:04:56 PMI still think it's petty but I included a fix for you...try it out.  It's quick and could use more refining but that should work fine.

Hello
thanks i will test it !

Mfg Pebbels
Logged
Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #18 on: December 21, 2001, 09:52:47 PM »
Reply with quote

Quote from: Jeff Lewis on December 21, 2001, 09:04:56 PMI still think it's petty but I included a fix for you...try it out.  It's quick and could use more refining but that should work fine.
hello
yes it works ,but its not what i want, i have delete databaseinfo from the settings.php its now in the file database_connect.php , but it would shows at adminpanel the infos again.  :'( :'(
 i think its same way  to read out database option from different file.

mfg Pebbels
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Dont want to display Database-login and pass..???
« Reply #19 on: December 22, 2001, 12:04:38 AM »
Reply with quote

Yeah sorry, there is one other thing to change, will send it after my hockey game tonight...
Logged

Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #20 on: December 22, 2001, 12:19:50 AM »
Reply with quote

hello
thx , and good luck for ur game  ;D

Mfg Pebbels
Logged
Razgo
Full Member
***
Posts: 125


Dance with the Beat

ICQ - 144284881 WWW
Re:Dont want to display Database-login and pass..???
« Reply #21 on: December 22, 2001, 01:28:48 PM »
Reply with quote

I'm not sure if I read everything correctly but you did say you only had one data base.

so why not just change the prefex?

I have 2 yaBB SE on the one data base.

now I understand that they will still see the username and password to the data base,

but you can also create another data base user name and password for that username only. and that way they won't see your personal data base username and password.

did this make any sense? it does work as long as your server allows for more than one username for your one data base.
Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Dont want to display Database-login and pass..???
« Reply #22 on: December 22, 2001, 01:43:27 PM »
Reply with quote

Lines 880-894 in Admin.php contain this code:

<td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse5]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_server" value="$db_server"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse6]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_user" value="$db_user"></td>
  </tr><tr>
    <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>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse8]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_name" value="$db_name"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse54]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_prefix" value="$db_prefix"></td>
  </tr><tr>

change it to:

<td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse5]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_server" value="bypassed"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse6]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_user" value="bypassed"></td>
  </tr><tr>
    <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="bypassed"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse8]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_name" value="bypassed"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse54]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_prefix" value="bypassed"></td>
  </tr><tr>

Like I said it's a quick fix and could probably be made better elsewhere but for now that should work for you.
Logged

Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #23 on: December 22, 2001, 02:06:39 PM »
Reply with quote

Quote from: Razgo on December 22, 2001, 01:28:48 PMI'm not sure if I read everything correctly but you did say you only had one data base.

so why not just change the prefex?

I have 2 yaBB SE on the one data base.

now I understand that they will still see the username and password to the data base,

but you can also create another data base user name and password for that username only. and that way they won't see your personal data base username and password.

did this make any sense? it does work as long as your server allows for more than one username for your one data base.

hmm...yes its right, but i dont have an own server, ive  rent webspace only.

Mfg Pebbels
« Last Edit: December 22, 2001, 02:08:13 PM by Pebbels » Logged
Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #24 on: December 22, 2001, 02:29:04 PM »
Reply with quote

hello jeff
there is somthing wrong

that all my changes :
index.php :
include_once ("QueryString.php");
include_once ("Settings.php");
include_once ("database_connect.php");
include_once ($language);
include_once ("$sourcedir/Subs.php");
include_once ("$sourcedir/Load.php");
include_once ("$sourcedir/Security.php");

new file database_connect.php :
<?php
########## Database Info ##########
$db_name = "xxxx ";
$db_user = "xxxxx ";
$db_passwd = "xxxx ";
$db_server = "xxxx";
$db_prefix = "yabbse_";
?>

and thats last at Admin.php :

<td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse5]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_server" value="bypassed"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse6]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_user" value="bypassed"></td>
  </tr><tr>
    <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="bypassed"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse8]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_name" value="bypassed"></td>
  </tr><tr>
    <td class="windowbg2" bgcolor="$color[windowbg2]" width="400"><font size="2">$txt[yse54]</font></td>
    <td class="windowbg2" bgcolor="$color[windowbg2]"><input type="text" name="db_prefix" value="bypassed"></td>
  </tr><tr>

and now it shows  the new changes at my adminpanel :
bypassed. thats ok , but if i save settings at my adminpanel, look this error :
An Error Has Occurred!

2: Supplied argument is not a valid MySQL result resource
(/is/htdocs/xxxx/www.domain.de/ghn/yabbse/Sources/Load.php ln 120)
 
Mfg Pebbels
« Last Edit: December 22, 2001, 02:32:53 PM by Pebbels » Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Dont want to display Database-login and pass..???
« Reply #25 on: December 22, 2001, 02:47:05 PM »
Reply with quote

Hmm, it should work as the values of the second include should overwrite the bypassed :)

I will look again shortly...
Logged

Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Dont want to display Database-login and pass..???
« Reply #26 on: December 23, 2001, 05:41:49 AM »
Reply with quote

I'll do this tomorrow -- write a mod for the whole shebang... I just spent 12 hours writing a new Package Manager, and I kinda want to sleep....

Anyway, I got 1 fix to do b4 yours... IM me about this so I remember please
Logged

Pebbels
Noobie
*
Posts: 33


I love YaBB SE!

ICQ - 9604411 WWW
Re:Dont want to display Database-login and pass..???
« Reply #27 on: December 23, 2001, 07:32:16 PM »
Reply with quote

@Jeff
@Matt
 thanks for ya great support!  ;)
@Matt im waiting for this fix , i hope it wont be so long .  ;D

Mfg Pebbels
Logged
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Dont want to display Database-login and pass..???
« Reply #28 on: December 23, 2001, 08:58:35 PM »
Reply with quote

I just finished adding the last few features into the New Package Manager.  I am now gonna start on your mod and that other guy's mod
Logged

Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Dont want to display Database-login and pass..???
« Reply #29 on: December 23, 2001, 10:41:56 PM »
Reply with quote

Done, its crude, but it works...

http://www.mattsiegman.com/YaBBSE/Packages/No_Show_MySQL_info.mod.yp

OR download with your package manager:
http://www.mattsiegman.com/YaBBSE/Packages
My package serv
Logged

Pages: 1 [2] 3 4 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Dont want to display Database-login and pass..??? « 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.052 seconds with 16 queries.