diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-10-24 08:10:45 +0100 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-10-24 08:10:45 +0100 |
| commit | 847af06fec2956e4390222c7e2e5c009bf4da2aa (patch) | |
| tree | 85c6eb71873989d783ad51a79568761e4a162818 | |
| parent | 96f434cde946b626ece62d876b0f75fd6b925647 (diff) | |
| download | contact-847af06fec2956e4390222c7e2e5c009bf4da2aa.tar.gz contact-847af06fec2956e4390222c7e2e5c009bf4da2aa.tar.bz2 contact-847af06fec2956e4390222c7e2e5c009bf4da2aa.zip | |
Move external data loaders to import directory
These would normally only be used to initially download legacy data so do not need to be available normally. Particular sites only need their own versions anyway
| -rw-r--r-- | import/load_contacts.php (renamed from load_contacts.php) | 4 | ||||
| -rw-r--r-- | import/load_phx_contacts.php (renamed from load_phx_contacts.php) | 4 | ||||
| -rw-r--r-- | import/load_sage_contacts.php (renamed from load_sage_contacts.php) | 4 | ||||
| -rw-r--r-- | import/load_wande_contacts.php (renamed from load_wande_contacts.php) | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/load_contacts.php b/import/load_contacts.php index 0cc39fa..20f90c6 100644 --- a/load_contacts.php +++ b/import/load_contacts.php @@ -7,7 +7,7 @@ */ // Initialization -require_once( '../kernel/setup_inc.php' ); +require_once( '../../kernel/setup_inc.php' ); require_once(CONTACT_PKG_PATH.'Contact.php' ); // Is package installed and enabled @@ -22,7 +22,7 @@ $contact->DataExpunge(); $row = 0; -$handle = fopen("data/clientdatabase.csv", "r"); +$handle = fopen("../data/clientdatabase.csv", "r"); if ( $handle == FALSE) { $row = -999; } else { diff --git a/load_phx_contacts.php b/import/load_phx_contacts.php index d5db898..f719b0b 100644 --- a/load_phx_contacts.php +++ b/import/load_phx_contacts.php @@ -7,7 +7,7 @@ */ // Initialization -require_once( '../kernel/setup_inc.php' ); +require_once( '../../kernel/setup_inc.php' ); require_once(CONTACT_PKG_PATH.'Contact.php' ); // Is package installed and enabled @@ -22,7 +22,7 @@ $contact->PhxDataExpunge(); $row = 0; -$handle = fopen("data/clientdatabase.csv", "r"); +$handle = fopen("../data/clientdatabase.csv", "r"); if ( $handle == FALSE) { $row = -999; } else { diff --git a/load_sage_contacts.php b/import/load_sage_contacts.php index 5ef0a76..bbb8136 100644 --- a/load_sage_contacts.php +++ b/import/load_sage_contacts.php @@ -7,7 +7,7 @@ */ // Initialization -require_once( '../kernel/setup_inc.php' ); +require_once( '../../kernel/setup_inc.php' ); require_once(CONTACT_PKG_PATH.'Contact.php' ); // Is package installed and enabled @@ -22,7 +22,7 @@ $contact->SageDataExpunge(); $row = 0; -$handle = fopen("data/customers.csv", "r"); +$handle = fopen("../data/customers.csv", "r"); if ( $handle == FALSE) { $row = -999; } else { diff --git a/load_wande_contacts.php b/import/load_wande_contacts.php index e3d4fb8..5d9b8c0 100644 --- a/load_wande_contacts.php +++ b/import/load_wande_contacts.php @@ -7,7 +7,7 @@ */ // Initialization -require_once( '../kernel/setup_inc.php' ); +require_once( '../../kernel/setup_inc.php' ); require_once(CONTACT_PKG_PATH.'Contact.php' ); // Is package installed and enabled @@ -22,7 +22,7 @@ $contact->wandeDataExpunge(); $row = 0; -$handle = fopen("data/6085_clients1.csv", "r"); +$handle = fopen("../data/6085_clients1.csv", "r"); if ( $handle == FALSE) { $row = -999; } else { |
