X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=bin%2Fimport_ward_data;h=0e04f0598274506cec12fcc5de9760b36005d2a0;hb=63574045f42044601bfc460bf844ea82387f421f;hp=53a3c3d05aefbc4d28b5421bb2a6411da3f5e4c7;hpb=e78ac716347d97b0b3daa8c15ad3be42ce3e5d87;p=eq%2F.git diff --git a/bin/import_ward_data b/bin/import_ward_data index 53a3c3d..0e04f05 100755 --- a/bin/import_ward_data +++ b/bin/import_ward_data @@ -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"; } %hometeaching_data = (); %membership_data = ();