예제 #1
0
         }
         $action .= ' VERIFY';
     }
     if ($pending == 2) {
         $doc->unset_pending();
         $doc->pending = 2;
         $action .= ' UNPEND';
     }
     // kick back to data entry
     if ($pending == 1) {
         $doc->pending = 1;
         $doc->set_pending();
         $action .= ' REPEND';
     }
 }
 $doc->save_res($trigger);
 if ($mesg) {
     $result = false;
     $mesg = "Please correct the following before proceeding: {$mesg}";
     $action .= ' WARN';
 } elseif ($trigger || $resendemail) {
     // email update *****************************
     $email0 = stripslashes($email);
     // stripslashes($email? $email: $email_2nd);
     if (valid_email($email0)) {
         $action .= ' EMAIL';
         // $newp.
         $hedr = "From: \"Physician Career\" <*****@*****.**>\r\n";
         $hedr .= 'Date: ' . date('r') . "\r\nPrecedence: normal\r\n";
         $hedr .= "Organization: PhysicianCareer.com\r\nMIME-Version: 1.0\r\n" . "Content-Type: multipart/alternative;\r\n  boundary=\"----=_NextPart_000_000C_01C7836B.F0749520\"\r\n" . "Content-Language: en-us\r\n";
         $hedr .= "X-Originator: {$UUID}/{$REMOTE_ADDR}\r\nX-Mailer: FuzionHG Mail Processor " . phpversion();
예제 #2
0
             $doc->ofcity = $ofcity;
             $doc->ofzip = $ofzip;
             if (!empty($ofstate)) {
                 $doc->ofstate = $ofstate;
             }
             $doc->homephone = $homephone;
             $doc->cellphone = $cellphone;
             $doc->officephone = $officephone;
             $doc->officeext = $officeext;
             if (!empty($spec)) {
                 $doc->spec = $spec;
             }
             $doc->email = $email;
             $newp = randomkeys(rand(6, 12));
             $doc->password = sha1($newp);
             $doc->save_res();
             $saved = true;
             if (!isset($nodb)) {
                 $nodb = db_notes();
                 $sql = "insert into gestapo (phid,opid,action) values ({$doc->ph_id},{$UUID},'RESNEW EDIT')";
                 $result = $nodb->query($sql);
             }
             $redir = "showdocpc.php?id={$docid}&lid=0";
         }
     }
     if (!isset($resdb)) {
         $resdb = db_career();
     }
 } catch (Exception $e) {
     $mesg = 'Request failed: ' . $e->getMessage() . ' (' . $e->getCode() . ')<br>';
     unset($result);