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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ff238d36
Commit
ff238d36
authored
Oct 31, 2000
by
tara%tequilarista.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcting scope
parent
bac12bd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
globals.pl
globals.pl
+7
-7
No files found.
globals.pl
View file @
ff238d36
...
...
@@ -54,10 +54,10 @@ sub globals_pl_sillyness {
# here
#
my
$
db_host
=
"localhost"
;
my
$
db_name
=
"bugs"
;
my
$
db_user
=
"bugs"
;
my
$
db_pass
=
""
;
$::
db_host
=
"localhost"
;
$::
db_name
=
"bugs"
;
$::
db_user
=
"bugs"
;
$::
db_pass
=
""
;
do
'localconfig'
;
...
...
@@ -84,13 +84,13 @@ $::superusergroupset = "9223372036854775807";
sub
ConnectToDatabase
{
my
(
$useshadow
)
=
(
@_
);
if
(
!
defined
$::db
)
{
my
$name
=
$db_name
;
my
$name
=
$
::
db_name
;
if
(
$useshadow
&&
Param
(
"shadowdb"
)
&&
Param
(
"queryagainstshadowdb"
))
{
$name
=
Param
(
"shadowdb"
);
$::dbwritesallowed
=
0
;
}
$::db
=
DBI
->
connect
(
"DBI:mysql:host=$
db_host;database=$name"
,
$db_user
,
$
db_pass
)
||
die
"Can't connect to database server."
;
$::db
=
DBI
->
connect
(
"DBI:mysql:host=$
::db_host;database=$name"
,
$::db_user
,
$::
db_pass
)
||
die
"Can't connect to database server.
\n
"
;
}
}
...
...
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