Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
475f0cea
Commit
475f0cea
authored
Jan 30, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by aclark@ghoti.org -- use localconfig file to get database
connection info.
parent
6f37d31f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
globals.pl
globals.pl
+14
-1
No files found.
globals.pl
View file @
475f0cea
...
...
@@ -32,6 +32,7 @@ sub globals_pl_sillyness {
$zz
=
@
main::
chooseone
;
$zz
=
@
main::
db_errstr
;
$zz
=
@
main::
default_column_list
;
$zz
=
$
main::
defaultqueryname
;
$zz
=
@
main::
dontchange
;
$zz
=
%
main::
keywordsbyname
;
$zz
=
@
main::
legal_bug_status
;
...
...
@@ -48,6 +49,18 @@ sub globals_pl_sillyness {
$zz
=
@
main::
prodmaxvotes
;
}
#
# Here are the --LOCAL-- variables defined in 'localconfig' that we'll use
# here
#
my
$db_host
=
"localhost"
;
my
$db_name
=
"bugs"
;
my
$db_user
=
"bugs"
;
my
$db_pass
=
""
;
do
'localconfig'
;
use
Mysql
;
use
Date::
Format
;
# For time2str().
...
...
@@ -63,7 +76,7 @@ $::defaultqueryname = "(Default query)";
sub
ConnectToDatabase
{
if
(
!
defined
$::db
)
{
$::db
=
Mysql
->
Connect
(
"localhost"
,
"bugs"
,
"bugs"
,
""
)
$::db
=
Mysql
->
Connect
(
$db_host
,
$db_name
,
$db_user
,
$db_pass
)
||
die
"Can't connect to database server."
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment