X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=bin%2Fmerge_eq_ppi_eq_interview_tables;h=cd7484b84680f473bff49b5aadd50217c1eb48e4;hb=ff9fe56b29ea1d02844bc54d8a9864c120ff5c17;hp=c53ed4fc58b09535cc1fd843133d74ecbe79c2c3;hpb=9dc519979d37f94ab0bec341d3508819cd3b68d3;p=eq%2F.git diff --git a/bin/merge_eq_ppi_eq_interview_tables b/bin/merge_eq_ppi_eq_interview_tables index c53ed4f..cd7484b 100755 --- a/bin/merge_eq_ppi_eq_interview_tables +++ b/bin/merge_eq_ppi_eq_interview_tables @@ -3,14 +3,10 @@ use DBI; use Getopt::Std; -################################################### -# GLOBALS -$dbname = "phpgroupware"; -$dbhost = "192.168.0.2"; # This can be an IP address or name -$dbport = 3306; -$dbuser = "phpgroupware"; # This may require an additional '\@localhost' -$dbpass = "phpgroupware"; -################################################### +$mydir = `cd \$(dirname $0) 2>/dev/null; pwd`; chomp($mydir); +unshift @INC,("$mydir/../setup"); +if( -f "$mydir/../setup/db_config.local") { require "db_config.local"; } +else { require "db_config"; } ################################################### # Connect to the database