var doc = window.parent.document; doc.getElementById('_results').innerHTML = '"; } function fin($t){ /*echo ""; */ echo ""; } $path="include/downloads/"; $send = "Processed complit."; $ts = strtotime(date("Y-m-d H:i:s")); $out = "include/uploads/NotFoundInCAMDPAMS_".$ts.".txt"; $type = $_POST['type_list']; $file_nm=basename( $_FILES['trust_list']['name']); $file_nm = $path.$file_nm; if(move_uploaded_file($_FILES['trust_list']['tmp_name'],$file_nm)){ if($type=='reviewed'){ $out_ex = "include/uploads/AlreadyTrustInCAMDPAMS_".$ts.".txt"; $rev = `/home/camdpams_www/signer/include/pl/review_auto.pl $file_nm $out $out_ex`; $out_fn = "AlreadyTrustInCAMDPAMs.txt"; } else{ $out_ex = "include/uploads/AlreadyTrust_NR_InCAMDPAMS_".$ts.".txt"; $trust = `/home/camdpams_www/signer/include/pl/trusted_auto.pl $file_nm $out $out_ex`; $out_fn = "AlreadyTrust_NR_InCAMDPAMs.txt"; } // unlink($file_nm); $len = `cat $out | wc -l`; $trst = `cat $out_ex | wc -l`; if($len > 0){ $send .="
exist - NotFoundInCAMDPAMS.txt"; } else{unlink($out);} if($trst > 0){ $send .="
exist - ".$out_fn.""; } else{unlink($out_ex);} fin($send); } ?>