verifyPackage( 'contact' ); // Now check permissions to access this page $gBitSystem->verifyPermission('p_contact_admin' ); $contact = new Contact(); // $contact->DataExpunge(); $row = 0; $handle = fopen("data/cotswold_guard_cust.csv", "r"); if ( $handle == FALSE) { $row = -999; } else { while (($data = fgetcsv($handle, 800, ",")) !== FALSE) { if ( $data ) { $contact->ContactRecordLoad( $data ); $row++; } } fclose($handle); } $gBitSmarty->assign( 'count', $row ); $gBitSystem->display( 'bitpackage:contact/load_contacts.tpl', KernelTools::tra( 'Load results: ' ) );