0){ require_once('include/vCard.php'); $vcard = new vCard(); $record = $vcard->importVCard($_FILES['vcard']['tmp_name']); header("Location: index.php?action=DetailView&module=Contacts&record=$record"); exit(); }else{ require_once('XTemplate/xtpl.php'); echo "\n

\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME']." ".$mod_strings['LBL_IMPORT_VCARD'], true); echo "\n

\n"; global $theme; $error_msg = ''; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; global $app_strings; global $app_list_strings; global $current_language; $mod_strings = return_module_language($current_language, 'Contacts'); $xtpl=new XTemplate ('modules/Contacts/ImportVCard.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("IMAGE_PATH", $image_path);$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']); $xtpl->assign("ERROR_TEXT", $mod_strings['LBL_EMPTY_VCARD']); $xtpl->assign("HEADER", $mod_strings['LBL_IMPORT_VCARD']); $xtpl->assign("MODULE", $_REQUEST['module']); if ($error_msg != '') { $xtpl->assign("ERROR", $error_msg); $xtpl->parse("main.error"); } $xtpl->parse("main"); $xtpl->out("main"); }?>