$security_required = 1; global $emailtmp; include("config.php"); include_once('../init.php'); $lib=stripslashes(@$_GET['lib']); $id = stripslashes(intval(@$_GET['id'])); $query = "select email from users where id=?"; $mememail = $db->GetOne($query,array($id)); foreach($importerinfo as $name=>$path){ if($lib==$path){ if(file_exists($lib)===true){$defaultimporterlib=$lib;}else{echo "
Cannot find ".htmlspecialchars($lib,ENT_QUOTES).". Please make sure it is uploaded to the same directory!"; exit;} break; } } include($defaultimporterlib); if(intval(@$_POST['update'])==1){ $id = stripslashes(intval(@$_POST['mid'])); $email=stripslashes(@$_POST['EmailAddress']); $password=stripslashes(@$_POST['Passwd']); $output=null; $contactemails=import_contacts($email,$password); if(!is_array($contactemails)){$output="Failed to import contacts. Please check your username & password!";}else{ foreach($contactemails as $contact){ $output.="
|
||||||||
|
|
||||||||
|
||||||||
/*Auto Detect Script Available*/
$prt=null;
foreach($importerinfo as $name=>$path){
if(file_exists($path)){
if($prt==null){$prt.="| ".htmlspecialchars($name,ENT_QUOTES)." |";}else{$prt.=" ".htmlspecialchars($name,ENT_QUOTES)." |";}
}
}
echo "
".$prt." ";
?>
=@$output;?>
_
| ||||||||