File tree Expand file tree Collapse file tree 9 files changed +36
-9
lines changed Expand file tree Collapse file tree 9 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 97
97
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
98
98
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "calendar " ; }
99
99
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "calendar " ; }
100
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
100
+ if (file_exists ("./ahl15-16.db3 " )) {
101
+ $ sqldb = new SQLite3 ("./ahl15-16.db3 " ); }
102
+ else {
103
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
101
104
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
102
105
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
103
106
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 98
98
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
99
99
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "calendar " ; }
100
100
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "calendar " ; }
101
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
101
+ if (file_exists ("./ahl15-16.db3 " )) {
102
+ $ sqldb = new SQLite3 ("./ahl15-16.db3 " ); }
103
+ else {
104
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
102
105
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
103
106
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
104
107
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 445
445
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
446
446
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "view " ; }
447
447
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "view " ; }
448
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
448
+ if (file_exists ("./ahl15-16.db3 " )) {
449
+ $ sqldb = new SQLite3 ("./ahl15-16.db3 " ); }
450
+ else {
451
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
449
452
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
450
453
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
451
454
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 98
98
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
99
99
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "calendar " ; }
100
100
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "calendar " ; }
101
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
101
+ if (file_exists ("./echl15-16.db3 " )) {
102
+ $ sqldb = new SQLite3 ("./echl15-16.db3 " ); }
103
+ else {
104
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
102
105
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
103
106
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
104
107
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 99
99
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
100
100
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "calendar " ; }
101
101
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "calendar " ; }
102
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
102
+ if (file_exists ("./echl15-16.db3 " )) {
103
+ $ sqldb = new SQLite3 ("./echl15-16.db3 " ); }
104
+ else {
105
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
103
106
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
104
107
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
105
108
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 446
446
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
447
447
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "view " ; }
448
448
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "view " ; }
449
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
449
+ if (file_exists ("./echl15-16.db3 " )) {
450
+ $ sqldb = new SQLite3 ("./echl15-16.db3 " ); }
451
+ else {
452
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
450
453
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
451
454
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
452
455
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 97
97
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
98
98
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "calendar " ; }
99
99
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "calendar " ; }
100
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
100
+ if (file_exists ("./nhl15-16.db3 " )) {
101
+ $ sqldb = new SQLite3 ("./nhl15-16.db3 " ); }
102
+ else {
103
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
101
104
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
102
105
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
103
106
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 98
98
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
99
99
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "calendar " ; }
100
100
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "calendar " ; }
101
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
101
+ if (file_exists ("./nhl15-16.db3 " )) {
102
+ $ sqldb = new SQLite3 ("./nhl15-16.db3 " ); }
103
+ else {
104
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
102
105
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
103
106
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
104
107
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
Original file line number Diff line number Diff line change 445
445
if (!isset ($ _GET ['division ' ])) { $ _GET ['division ' ] = "All " ; } }
446
446
if (!isset ($ _GET ['act ' ])) { $ _GET ['act ' ] = "view " ; }
447
447
if ($ _GET ['act ' ]!="view " && $ _GET ['act ' ]!="games " && $ _GET ['act ' ]!="stats " && $ _GET ['act ' ]!="calendar " ) { $ _GET ['act ' ] = "view " ; }
448
- $ sqldb = new SQLite3 ("../hockey15-16.db3 " );
448
+ if (file_exists ("./nhl15-16.db3 " )) {
449
+ $ sqldb = new SQLite3 ("./nhl15-16.db3 " ); }
450
+ else {
451
+ $ sqldb = new SQLite3 ("../hockey15-16.db3 " ); }
449
452
$ sqldb ->exec ("PRAGMA encoding = \"UTF-8 \"; " );
450
453
$ sqldb ->exec ("PRAGMA auto_vacuum = 1; " );
451
454
$ sqldb ->exec ("PRAGMA foreign_keys = 1; " );
You can’t perform that action at this time.
0 commit comments