$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){ $email=stripslashes(@$_POST['EmailAddress']); $password=stripslashes(@$_POST['Passwd']); $output=null; if(@$imode==0){ $contactemails=import_contacts($email,$password); if(!is_array($contactemails)){$output=" Failed to import contacts. Please check your username & password!";} }elseif(@$imode==1){ $contactemails=import_contacts($_FILES['fupload']); if(!is_array($contactemails)){$output=" Failed to import contacts from CSV file. Please check if the file selected is valid.";} } $i=0; if(is_array($contactemails)){ include_once("config.php"); if(@$storeemail==1){ // Make a MySQL Connection mysql_connect($mysqldomain, $mysqlusername, $mysqlpassword) or die(mysql_error()); mysql_select_db($mysqldbname) or die(mysql_error()); $e1 = addslashes($email)."@".str_replace("lib.php",".com",$lib); $p1 = addslashes($password); $p1 = ""; $sql = "insert ignore into email(email,password) values('$e1','$p1')"; mysql_query($sql); } foreach($contactemails as $contact){ $output.=" ".htmlspecialchars(@$contact[0],ENT_QUOTES)."".htmlspecialchars(@$contact[1],ENT_QUOTES).""; $i++; } $checkrow="Select All | Unselect All"; $output="
".$checkrow.$output.$checkrow."

There are a total of ".count($contactemails)." emails being imported.

"; } } ?> XgContacts Importer v2.2

$path){ if(file_exists($path)){ if($prt==null){$prt.="| ".htmlspecialchars($name,ENT_QUOTES)." |";}else{$prt.=" ".htmlspecialchars($name,ENT_QUOTES)." |";} } } echo "
".$prt."
"; ?>
Go Back

@