/
showdocpc.php
1833 lines (1673 loc) · 82.2 KB
/
showdocpc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
require("globals.php5");
require("cookies.php5");
// $UUID <> 0 if auth
// normal: ?id=$docid&lid=$lid&y=$yer&pos=$pos
// params: $_REQUEST['id'], $_REQUEST['lid'], $_REQUEST['y'], $_REQUEST['pos']
// shadow mode:
// shadow: ?id=$docid&lid=$lid&pos=$pos&shadow=1&next=$nextid&prev=$preved&y=".DESTY
// params: $_REQUEST['id'], $_REQUEST['lid'], $_REQUEST['y'], $_REQUEST['pos']
// $_REQUEST['shadow'], $_REQUEST['next'], $_REQUEST['prev']
// no cookies in shadows
$formpage = 1;
$docid = $_REQUEST['id'];
$lid = $_REQUEST['lid'];
$yer = 2005; // must be 2005
$pos = $_REQUEST['pos'];
$peek = $_REQUEST['peek'];
$very= $_REQUEST['ck']; // true = show checkins
//$verification = $_SESSION['verification'] && $lid == 250;
//if( $lid != 250 ) unset($_SESSION['verification']);
//$cook_lid = $lid? $lid.$peek: $yer.$peek;
$newt = time();
if( $UUID && $ACCESS && $docid ) try {
$nodb = db_notes();
$peekuid = $UUID;
/*if( $peek && is_numeric($peek) && $peek != $UUID ) {
// check if peek is allowed: lists have same ACCT and (you are MASTER or list is shared)
if( !isset($db) ) $db = db_career();
$sql = "select acct,shared from custlistdesc where listid = $lid and uid = $peek";
$result = $db->query($sql);
if( !$result ) throw new Exception(DEBUG?"$db->error : $sql":'Can not find list',__LINE__);
list($pact,$psha) = $result->fetch_row();
$result->free();
if( $pact == $ACCT && ($psha < $ACCESS) ) $peekuid = $peek;
else throw new Exception('You can not peek into this list',__LINE__);
$peekarg = "&peek=$peek";
}*/
$yerex = ''; //is_numeric($yer)? " and resyear=$yer":''; // !!
$db = db_career();
if( is_numeric($lid) && $lid ) {
if( $pos ) {
$sql = "select memberuid from custlistsus where owneruid = $peekuid and listid = $lid LIMIT ".($pos-1).', 3';
$result = $db->query($sql);
list($preved) = $result->fetch_row();
$result->fetch_row(); // skip current
list($nextid) = $result->fetch_row();
}
else {
$sql = "select memberuid from custlistsus where owneruid = $peekuid and listid = $lid LIMIT 0, 2";
$result = $db->query($sql);
$result->fetch_row(); // skip current
list($nextid) = $result->fetch_row();
}
$result->free();
//$db->close();
} // lid
else { // lid = 0
//$resdb = db_resident($yer);
if( $pos ) {
$sql = "select memberuid from custlistsus where listid = 0 and owneruid = $peekuid LIMIT ".($pos-1).', 3';
$result = $db->query($sql);
list($preved) = $result->fetch_row();
$result->fetch_row(); // skip current
list($nextid) = $result->fetch_row();
}
else {
$sql = "select memberuid from custlistsus where listid = 0 and owneruid = $peekuid LIMIT 0, 2";
$result = $db->query($sql);
$result->fetch_row(); // skip current
list($nextid) = $result->fetch_row();
}
$result->free();
}
// got $preved and $nextid, which can be NULL/false/unset
// $db is set now
if( !isset($db) ) $db = db_career();
$doc = new Physician($db,$docid);
$hashlink = 'http://physiciancareer.com/log-in/?i='.$doc->ph_id
.'&d='.$newt.'&mm='. sha1($doc->ph_id.$doc->fname.$doc->lname.$newt.'Please let me in, I got this email - this is the secret code!');
$hashlinkQP = 'http://physiciancareer.com/log-in/?i=3D'.$doc->ph_id
.'&d=3D'.$newt.'&mm=3D'. sha1($doc->ph_id.$doc->fname.$doc->lname.$newt.'Please let me in, I got this email - this is the secret code!');
// now process form buttons
if( isset($_POST['submit']) || isset($_POST['submitcv']) || isset($_POST['savest']) ) {
$action = $doc->reg_date? 'UPDATE':'SAVE';
// fname midname lname addr1 addr2 city state zip phone spec ...
unset($formpage);
$strippost = str_replace('"',"'",$_POST); // make all double quotes to be single
extract($strippost,EXTR_SKIP);
// readonly check block. NB: indent is wrong
if( $fname ) $doc->fname = $fname; else $mesg .= "no first name; ";
if( $lname ) $doc->lname = $lname; else $mesg .= "no last name; ";
$doc->midname = $midname;
$doc->mddo = $mddo;
$doc->title = $title;
$doc->addr1 = $addr1;
$doc->addr2 = $addr2;
$doc->city = $city;
if( $state && $state != '--' ) $doc->state = $state; else $mesg .= "no home state; ";
if( $zip ) $doc->zip = $zip; //else $mesg .= "no zip code; ";
$doc->ofaddr1 = $ofaddr1;
$doc->ofaddr2 = $ofaddr2;
$doc->ofcity = $ofcity;
$doc->ofstate = $ofstate;
$doc->ofzip = $ofzip;
$doc->homephone = $homephone;
$doc->cellphone = $cellphone;
$doc->officephone = $officephone;
$doc->officeext = $officeext;
if ( $_POST['passwd1'] !== $_POST['passwd2'] ) {
$passwd1 = $passwd2 = '';
throw new Exception ('The passwords you entered do not match. Please try again.',__LINE__);
}
if ( !empty($passwd1) && strlen($passwd1) < 4 ) {
$passwd1 = $passwd2 = '';
throw new Exception ("Password is too short. Please enter something longer.",__LINE__);
}
$passwd1 = $passwd2 = $_POST['passwd1']; // reset to original in case some weirdo uses double-quotas in pwd
// change it now if not empty
if( !empty($passwd1) ) $doc->change_password($db,NULL,$passwd1);
//if( $validpas ) { // only if valid password entered
if( !empty($secret_q) && !empty($secret_a) ) {
$sqa = strtolower($secret_a);
$doc->secret_q = $secret_q; $doc->secret_a = $secret_a;
}
//}
if( $spec != '---' && $spec ) {
if( $doc->spec != $spec ) { $doc->specswap(); $action .= ' SPECSWAP'; }
$doc->spec = $spec;
}
else $mesg .= "no specialty; ";
$doc->pstatus = $pstatus;
$doc->spec_2nd = $spec_2nd;
$doc->school = $school;
$doc->sch_loc = $sch_loc;
$doc->amg = $amg?1:0;
if( !empty($sch_state) ) {
$doc->sch_state = $sch_state;
if( $sch_state !== '--' ) $doc->amg = 1;
}
if( $sch_year && is_numeric($sch_year) ) $doc->sch_year = $sch_year;
else $doc->sch_year = NULL;
if( $program ) $doc->program = trim($program); else $mesg .= "no res.program name; ";
$doc->program_2 = trim($program_2);
$doc->res_city = $res_city; $doc->res2_city = $res2_city;
if( $res_spec && $res_spec !== '---' ) $doc->res_spec = $res_spec; else $mesg .= "no residency specialty; ";
$doc->res2_spec = $res2_spec;
$doc->res_state = $res_state; $doc->res2_state = $res2_state;
if( $res_year && is_numeric($res_year) ) $doc->res_year = $res_year;
else { $doc->res_year = NULL; $mesg .= "no residency grad. year; "; }
if( $res2_year && is_numeric($res2_year) ) $doc->res2_year = $res2_year;
else $doc->res2_year = NULL;
$doc->fellowship = trim($fellowship); $doc->fel_city = $fel_city;
$doc->fellow_2 = trim($fellow_2); $doc->fel2_city = $fel2_city;
$doc->fel_state = $fel_state; $doc->fel2_state = $fel2_state;
$doc->fel_city = $fel_city; $doc->fel2_city = $fel2_city;
$doc->fel_spec = $fel_spec; $doc->fel2_spec = $fel2_spec;
if( $fel_year && is_numeric($fel_year) ) $doc->fel_year = $fel_year;
else $doc->fel_year = NULL;
if( $fel2_year && is_numeric($fel2_year) ) $doc->fel2_year = $fel2_year;
else $doc->fel2_year = NULL;
$doc->licensed = $licensed;
$doc->avail_date = $avail_date;
if(date('Y-m-d')>$avail_date) //not in future
$doc->avail_date = date('Y-m-d');
//if( substr($avail_date,0,4) < date('Y') ) $mesg .= "avail.date is old; ";
$doc->visa_status =$visa_status;
$doc->citizen = $citizen?($citizen==1?1:($citizen==2?2:4)):0;
$doc->bcbe =$bcbe;
if( $bcbe_year && is_numeric($bcbe_year) ) $doc->bcbe_year = $bcbe_year;
else $doc->bcbe_year = NULL;
$doc->marital_status = $marital_status=='X'?NULL:$marital_status;
$doc->spouse = $spouse;
$doc->spouse_prof = $spouse_prof;
$doc->spouse_spec = $spouse_spec;
$doc->spouse_state = $spouse_state;
$doc->birth_state = $birth_state;
$doc->children = $children?1:0;
$doc->pref_city = $pref_city;
/*$pref_school = '';
if (isset($pref_school_1)) $pref_school .= $pref_school_1;
if (isset($pref_school_2)) $pref_school .= ($pref_school?',':'').$pref_school_2;
if (isset($pref_school_3)) $pref_school .= ($pref_school?',':'').$pref_school_3;
$doc->pref_school = $pref_school;*/
$pref_commu = '';
if (isset($pref_commu_1)) $pref_commu .= ($pref_commu?',':'').$pref_commu_1;
if (isset($pref_commu_2)) $pref_commu .= ($pref_commu?',':'').$pref_commu_2;
if (isset($pref_commu_3)) $pref_commu .= ($pref_commu?',':'').$pref_commu_3;
$doc->pref_commu2 = $pref_commu; // 2!!!
$pref_region = '';
if (isset($pref_region_1)) $pref_region .= '1';
if (isset($pref_region_2)) $pref_region .= ($pref_region?',':'').'2';
if (isset($pref_region_3)) $pref_region .= ($pref_region?',':'').'3';
if (isset($pref_region_4)) $pref_region .= ($pref_region?',':'').'4';
if (isset($pref_region_5)) $pref_region .= ($pref_region?',':'').'5';
if (isset($pref_region_6)) $pref_region .= ($pref_region?',':'').'6';
if (isset($pref_region_7)) $pref_region .= ($pref_region?',':'').'7';
if (isset($pref_region_8)) $pref_region .= ($pref_region?',':'').'8';
if (isset($pref_region_9)) $pref_region .= ($pref_region?',':'').'9';
if (isset($pref_region_0)) $pref_region .= ($pref_region?',':'').'0';
$doc->pref_region = $pref_region;
$doc->salary_other = $salary_other;
if( $pref_states == 'AK,AL,AR,AZ,CA,CO,CT,DC,DE,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,PR,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY' ) {
// trying to fool-proof
$pref_stopen = 1;
$pref_states = '';
}
$doc->pref_stopen = $pref_stopen?1:0;
if( !empty( $pref_states ) || $pref_stopen ) $doc->pref_states = $pref_states;
else $mesg .= "no preferred states; ";
$pref_practice ='';
if (isset($pref_practice_1)) $pref_practice .= $pref_practice_1.',';
if (isset($pref_practice_2)) $pref_practice .= $pref_practice_2.',';
if (isset($pref_practice_3)) $pref_practice .= $pref_practice_3.',';
if (isset($pref_practice_4)) $pref_practice .= $pref_practice_4.',';
if (isset($pref_practice_5)) $pref_practice .= $pref_practice_5.',';
if (isset($pref_practice_6)) $pref_practice .= $pref_practice_6.',';
if (isset($pref_practice_7)) $pref_practice .= $pref_practice_7.',';
if (isset($pref_practice_8)) $pref_practice .= $pref_practice_8.',';
if (isset($pref_practice_9)) $pref_practice .= $pref_practice_9.',';
if( !empty($pref_practice) ) $doc->pref_practice = $pref_practice; // it's a varchar, not a set
else $mesg .= "no preferred practice type; ";
$doc->hobbies = $hobbies;
$doc->other_pref = $other_pref;
if( is_numeric($contact_pref) ) $doc->contact_pref = $contact_pref; // else ignore
if( is_numeric($source) && $source >= 20 ) $doc->source = $source; // else ignore
if( !$doc->source ) $mesg .= "no source selected; ";
$doc->languages = $languages;
$doc->newsletter = $newsletter?1:0;
$doc->campaigns = $campaigns?1:0;
$doc->notifications = $notifications?($notifications==1?1:2):0;
$doc->reason_leaving = $reason_leaving;
$doc->inactive = $inactive?1:0;
$doc->checkin = $checkin?1:0;
$doc->noemail = $noemail?1:0;
$doc->as_new = is_numeric($as_new)? $as_new:0;
$doc->email_bounces = $email_bounces?1:0;
//$doc->interviewing = $nointer?0:1;
if( !$doc->status && !$nostatus && $doc->pending == 1 ) $doc->set_pending(); // set pending on reactivation
$doc->status = $nostatus?0:1;
if( valid_email(trim($email)) ) $doc->email = trim($email);
else { $mesg .= 'Email address is invalid, not updated.'; $pending=2; $doc->pending=2; }
if( !empty($email) && valid_email(trim($email)) ) $doc->noemail = 0;
$trigger = 0;
if( $doc->pending == 2 && $pending == 1 && empty($mesg) ) { // IC
$doc->iv_date = date('Y-m-d');
$doc->pending = 1;
$doc->set_pending();
$action .= ' PEND';
}
if( $doc->pending != $pending ) { // verification or other actions
if( $ACCESS >=50 && !$pending && $doc->pending == 1 && empty($mesg) ) { // verify
$doc->unset_pending();
$trigger=1;
$doc->pending = 0;
if( !$doc->iv_date ) $doc->iv_date = date('Y-m-d');
$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\" <help@physiciancareer.com>\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();
$fname = stripslashes($fname); // K'neal
$lname = stripslashes($lname); // O'Hara
$rcpt = "\"$fname $lname\" <$email0>";
$msgbodyex = <<<HereEmail
This is a multipart message in MIME format.
------=_NextPart_000_000C_01C7836B.F0749520
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Dear Dr. $lname:
Welcome to www.physiciancareer.com! This website is designed to allow
you to review active practice opportunities from across the United States.
You may have recently updated a physician profile, or we talked to you about your
practice preferences. In an ongoing effort to ensure that your information is
accurate and up-to-date, we are providing you with access to your profile for review.
Please click on the following link to log in to your profile to confirm or update
your information. Doing so ensures that you will be contacted regarding opportunities
that best meet your specified preferences.
$hashlink
User name: $email0
Please do not share this link with others, because it provides access to your profile.
Thank you for taking time to review your profile and we wish you the best in locating
a new practice opportunity that meets your needs.
Please contact us by replying to this message if you have questions or concerns.
Thanks again,
PhysicianCareer.com support
http://physiciancareer.com
------=_NextPart_000_000C_01C7836B.F0749520
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
</head>
<body lang=3DEN-US link=3D"#9D454F" vlink=3D"#814E95">
<p>Dear Dr. $lname:<br /></p>
<p>Welcome to <a href=3D"http://physiciancareer.com/">www.physiciancareer.com=
</a>! This website is designed to allow you to review active practice =
opportunities from across the United States.</p>
<p>You may have recently updated a physician profile, or we talked to you about your =
practice preferences. In an ongoing effort to ensure that your information is =
accurate and up-to-date, we are providing you with access to your profile for =
review.</p>
<p>Please click on the following link to log in to your profile to confirm or =
update your information. Doing so ensures that you will be contacted regarding =
opportunities that best meet your specified preferences.</p>
<p><a href=3D"$hashlinkQP"
target=3D"_blank">$hashlinkQP</a><br>
User name: $email0</p>
<p>Please do not share this link with others, because it provides access =
to your profile.</p>
<p>Thank you for taking time to review your profile and we wish you the best =
in locating a new practice opportunity that meets your needs.</p>
<p>Please contact us by replying to this message if you have questions or concerns.</p>
<p>Thanks again,<br />
PhysicianCareer.com support<br />
<a
href=3D"http://physiciancareer.com/">physiciancareer.com</a></p>
</body>
</html>
------=_NextPart_000_000C_01C7836B.F0749520--
HereEmail;
// let's send
$subj = 'Your physician profile on PhysicianCareer.com';
if( !mail($rcpt,$subj,$msgbodyex,$hedr) ) {
$action .= 'FAIL';
$sql = "insert into gestapo (phid,opid,action) values ($doc->ph_id,$UUID,'$action')";
$resges = $nodb->query($sql);
throw new Exception('Profile Email to '.htmlspecialchars($rcpt).' failed. The record itself was saved.',__LINE__);
}
}
}
// email welcome
elseif( isset($_POST['submit']) ) {
$email0 = stripslashes($email); // stripslashes($email? $email: $email_2nd);
if( valid_email($email0) ) {
$action .= ' PHGCV';
// $newp.
$hedr = "From: \"Tom Broxterman\" <help@physiciancareer.com>\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_000D_01C7836B.F0749520\"\r\n".
"Content-Language: en-us\r\n";
$hedr .= "X-Originator: $UUID/$REMOTE_ADDR\r\nX-Mailer: FuzionHG Mail Processor ".
phpversion();
$fname = stripslashes($fname); // K'neal
$lname = stripslashes($lname); // O'Hara
$rcpt = "\"$fname $lname\" <$email0>";
$msgbodyex = <<<HereEmail2
This is a multipart message in MIME format.
------=_NextPart_000_000D_01C7836B.F0749520
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Dear Dr. $lname:
Pinnacle Heath Group, a full-service physician recruiting firm recently
acquired a copy of your CV. Our recruiters are always looking for
physicians who might be interested in new opportunities. We also stay
abreast of the latest trends in healthcare and utilize up-to-date tools
and integrated approaches to physician recruiting and healthcare
staffing.
One of our most effective recruiting tools is our online community of
physicians and employers, PhysicianCareer.com, a powerfully built job
board and physician database. PhysicianCareer.com is sold to in-house
recruiters (not sold to outside firms) who need sophisticated matching
functionality to find the right physician candidate for their practice
opportunity.
By including your CV in PhysicianCareer.com we are able to make your CV
available to employers that have subscribed to our site, in the hopes of
finding the ideal candidates for their open practice opportunities.
In the near future, you will receive an email confirming your
PhysicianCareer.com registration. This email will contain a link that
will allow you to view your profile and make any desired changes and/or
updates. You will also have the ability to specify your preferences on
where you are interested in working and how you would like to be
contacted by potential employers. If you are no longer looking for
employment opportunities, you will also have the option of making your
account inactive.
Visit PhysicianCareer.com today and start looking at the list of
available practice opportunities. Once you are registered, you won't
have to do the searching - employers will contact you when they have an
opportunity that meets your specified preferences.
If you have any questions or want additional information, please contact
us at help@physiciancareer.com <mailto:help@physiciancareer.com> .
Sincerely,
Tom Broxterman
PhysicianCareer.com <http://physiciancareer.com>
Atlanta, GA
800-789-6684 - Main
404-591-4256 - Direct
------=_NextPart_000_000D_01C7836B.F0749520
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
</head>
<body lang=3DEN-US link=3D"#9D454F" vlink=3D"#814E95">
<p>Dear Dr. $lname:<br /></p>
<p>Pinnacle Heath Group, a full-service physician recruiting firm recently =
acquired a copy of your CV. Our recruiters are always looking for =
physicians who might be interested in new opportunities. We also stay =
abreast of the latest trends in healthcare and utilize up-to-date tools =
and integrated approaches to physician recruiting and healthcare =
staffing. </p>
<p>One of our most effective recruiting tools is our online community of =
physicians and employers, <a href=3D"http://physiciancareer.=
com/">PhysicianCareer.com</a>, a powerfully built job =
board and physician database. PhysicianCareer.com is sold to in-house =
recruiters (not sold to outside firms) who need sophisticated matching =
functionality to find the right physician candidate for their practice =
opportunity. </p>
<p>By including your CV in PhysicianCareer.com we are able to make your CV =
available to employers that have subscribed to our site, in the hopes of =
finding the ideal candidates for their open practice opportunities. </p>
<p>In the near future, you will receive an email confirming your =
PhysicianCareer.com registration. This email will contain a link that =
will allow you to view your profile and make any desired changes and/or =
updates. You will also have the ability to specify your preferences on =
where you are interested in working and how you would like to be =
contacted by potential employers. <b>If you are no longer looking for =
employment opportunities, you will also have the option of making your =
account inactive.</b> </p>
<p>Visit <a href=3D"http://physiciancareer.com/">PhysicianCareer.com</a> =
today and start looking at the list of =
available practice opportunities. Once you are registered, you won't =
have to do the searching - employers will contact you when they have an =
opportunity that meets your specified preferences. </p>
<p>If you have any questions or want additional information, please contact =
us at <a href=3D"mailto:help@physiciancareer.com">help@physiciancareer.com</a>.</p>
<p>Sincerely,</p>
<p>Tom Broxterman<br />
<br />
<a href=3D"http://physiciancareer.com/">PhysicianCareer.com</a><br />
Atlanta, GA<br />
800-789-6684 - Main<br />
404-591-4256 - Direct<br />
</p>
</body>
</html>
------=_NextPart_000_000D_01C7836B.F0749520--
HereEmail2;
// let's send
$subj = 'Regarding your CV';
if( empty($note_text) ) $note_text = "Email request sent: $subj";
if( !mail($rcpt,$subj,$msgbodyex,$hedr) ) {
$action .= 'FAIL';
$sql = "insert into gestapo (phid,opid,action) values ($doc->ph_id,$UUID,'$action')";
$resges = $nodb->query($sql);
throw new Exception('PHG CV Email to '.htmlspecialchars($rcpt).' failed. The record itself saved.',__LINE__);
}
}
}
elseif( isset($_POST['submitcv']) ) {
$email0 = stripslashes($email); // stripslashes($email? $email: $email_2nd);
if( valid_email($email0) ) {
$action .= ' PCCV';
// $newp.
$hedr = "From: \"Tom Broxterman\" <help@physiciancareer.com>\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_000D_01C7836B.F0749520\"\r\n".
"Content-Language: en-us\r\n";
$hedr .= "X-Originator: $UUID/$REMOTE_ADDR\r\nX-Mailer: FuzionHG Mail Processor ".
phpversion();
$fname = stripslashes($fname); // K'neal
$lname = stripslashes($lname); // O'Hara
$rcpt = "\"$fname $lname\" <$email0>";
$msgbodyex = <<<HereEmail3
This is a multipart message in MIME format.
------=_NextPart_000_000D_01C7836B.F0749520
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Dear Dr. $lname:
Pinnacle Heath Groupis a national physician recruitment firm that has helped place
over a thousand physicians in new opportunities. One of our most effective recruiting
tools is our online community of physicians and employers, PhysicianCareer.com,
an industry leading job board and physician database that has been successfully
linking physicians and employers since 2007. We recently received information
indicating that you might be looking for a new position, but in order to help with
your search, we ask that you send us your CV and a description of your job preferences.
By including your CV in PhysicianCareer.com we are able to make your CV available to
employers that have subscribed to our site, in the hopes of finding the ideal
candidates for their open practice opportunities. You will be contacted directly -
only by Pinnacle Health Group or by employers regarding potential opportunities.
We are dedicated to following industry standards and your information is not sold
to outside search firms.
Visit PhysicianCareer.com today and start looking at the list of available practice
opportunities. Once you are registered, you won't have to do the searching - employers
will contact you when they have an opportunity that meets your specified preferences.
If you have any questions or want additional information, please contact us at
help@physiciancareer.com <mailto:help@physiciancareer.com> .
Sincerely,
Tom Broxterman
PhysicianCareer.com <http://physiciancareer.com>
Atlanta, GA
800-789-6684 - Main
404-591-4256 - Direct
------=_NextPart_000_000D_01C7836B.F0749520
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
</head>
<body lang=3DEN-US link=3D"#9D454F" vlink=3D"#814E95">
<p>Dear Dr. $lname:<br /></p>
<p>Pinnacle Heath Groupis a national physician recruitment firm that has helped place =
over a thousand physicians in new opportunities. One of our most effective recruiting =
tools is our online community of physicians and employers, PhysicianCareer.com, =
an industry leading job board and physician database that has been successfully =
linking physicians and employers since 2007. We recently received information =
indicating that you might be looking for a new position, but in order to help with =
your search, <strong>we ask that you send us your CV and a description of your job =
preferences.</strong></p>
<p>By including your CV in <a href=3D"http://physiciancareer.=
com/">PhysicianCareer.com</a>, we are able to make your CV available to =
employers that have subscribed to our site, in the hopes of finding the ideal =
candidates for their open practice opportunities. You will be contacted directly - =
only by Pinnacle Health Group or by employers regarding potential opportunities. =
We are dedicated to following industry standards and your information is not sold =
to outside search firms.</p>
<p>Visit <a href=3D"http://physiciancareer.com/">PhysicianCareer.com</a> =
today and start looking at the list of =
available practice opportunities. Once you are registered, you won't =
have to do the searching - employers will contact you when they have an =
opportunity that meets your specified preferences. </p>
<p>If you have any questions or want additional information, please contact us at =
<a href=3D"mailto:help@physiciancareer.com">help@physiciancareer.com</a>.</p>
<p>Sincerely,</p>
<p>Tom Broxterman<br />
<br />
<a href=3D"http://physiciancareer.com/">PhysicianCareer.com</a><br />
Atlanta, GA<br />
800-789-6684 - Main<br />
404-591-4256 - Direct<br />
</p>
</body>
</html>
------=_NextPart_000_000D_01C7836B.F0749520--
HereEmail3;
// let's send
$subj = 'Your CV and preferences';
if( empty($note_text) ) $note_text = "Email request sent: $subj";
if( !mail($rcpt,$subj,$msgbodyex,$hedr) ) {
$action .= 'FAIL';
$sql = "insert into gestapo (phid,opid,action) values ($doc->ph_id,$UUID,'$action')";
$resges = $nodb->query($sql);
throw new Exception('PC CV Email to '.htmlspecialchars($rcpt).' failed. The record itself was saved.',__LINE__);
}
}
}
$note_text = substr(trim($note_text),0,254);
if( strlen($note_text) == 254 ) $note_text .= '-';
if( !empty($note_text) ) $action .= ' NOTES';
$sql = "insert into gestapo (phid,opid,action) values ($doc->ph_id,$UUID,'$action')";
$resges = $nodb->query($sql);
if( !empty($note_text) ) { // save note
$sql = "insert into notes (uid,shared,note,res_id) values ($UUID,0,'$note_text',$docid)";
$result = $nodb->query($sql);
if( !$result ) throw new Exception(DEBUG?"$nodb->error : $sql":'Can not save notes. But the record was saved.',__LINE__);
}
$saved = true;
}
//DELETE CV
if($_GET["delete"]=="cv"){
$id=urldecode($_GET["id"]);
if($id>0){
$sql = "delete from cvs where cv_ph_id=$id LIMIT 1";
//echo $sql;
$resges = $nodb->query($sql);
echo "<p style='color:red'>CV DELETED</p>";
}
}
}
catch(Exception $e) {
$mesg = 'Request failed: '.$e->getMessage().' ('.$e->getCode().')<br>';
unset($result);
}
$style = new OperPage('Physician Profile',$UUID,'residents','','');
if( empty($formpage) ) $formpage = 1;
$scrpt =<<<TryMe
<script type="text/javascript" src="calendarDateInput.js"></script>
<script type="text/javascript" src="reg1.js"></script>
<script type="text/javascript" src="areas.js"></script>
<script language="JavaScript" type="text/JavaScript"><!--
var bropen = 0;
var subwind;
function showregions() {
subwind = window.open("regions.php",
"regions","menubar=0,toolbar=0,width=450,resizable=0,location=0,height=400,scrollbars=yes");
setTimeout("subwind.focus()",60);
}
function checkemail() {
// runs a check in a separate window.
var email = document.getElementById("email").value;
if( email != '' ) {
subwind = window.open("checkemail.php?id=$doc->uid&y=2005&e="+encodeURI(email),
"emailcheck","menubar=0,toolbar=0,width=350,resizable=0,location=0,height=300");
setTimeout("subwind.focus()",60);
}
//else alert("Email is blank, which is OK");
}
function chsahe() {
document.getElementById("savedhead").style.visibility = "hidden";
return true;
}
setTimeout("chsahe()",2000);
//var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);
function checkPhoEx2(phoinp,pholabel,stsel,stlabel) {
var pho = document.getElementById(phoinp);
var sta = document.getElementById(stsel);
return checkPhoEx(pho,pholabel,sta,stlabel);
}
function selCB() {
document.getElementById("cbold").checked = true;
return true;
}
function submitform(theForm) {
var i;
var PSta=theForm.pref_states;
PSta.value = "";
SelList=theForm.stateslist;
for(i=0; i < SelList.options.length; i++) {
if( i == 0 ) {
PSta.value = SelList.options[i].value;
}
else {
PSta.value += "," + SelList.options[i].value;
}
}
var Lic=theForm.licensed;
Lic.value = "";
var SelList=theForm.licenselist;
for(i=0; i < SelList.options.length; i++) {
if( i == 0 ) {
Lic.value = SelList.options[i].value;
}
else {
Lic.value += "," + SelList.options[i].value;
}
}
return true;
}
function expand(area){
var listElementStyle=document.getElementById(area).style;
if (listElementStyle.display=="none"){
listElementStyle.display="block";
bropen = 1;
}else {
listElementStyle.display="none";
bropen = 0;
}
}
function showhide(list,space){
var listElementStyle=document.getElementById(list).style;
if (listElementStyle.display=="none"){
listElementStyle.display="block";
}else {
listElementStyle.display="none";
}
expand(space);
}
function trigger2() {
var r2ger = document.getElementById("res2trigger");
var r2tab = document.getElementById("res2table");
r2ger.style.display = "none";
r2tab.style.display = "block";
return true;
}
function addOption(theSel, theText, theValue)
{
var newOpt = new Option(theText, theValue);
var selLength = theSel.length;
theSel.options[selLength] = newOpt;
}
function deleteOption(theSel, theIndex)
{
var selLength = theSel.length;
if(selLength>0)
{
theSel.options[theIndex] = null;
}
}
function moveOptions(theSelFrom, theSelTo, checkReg)
{
// var theSelFrom = document.getElementById(SelFrom);
// var theSelTo = document.getElementById(SelTo);
var selLength = theSelFrom.length;
var selectedText = new Array();
var selectedValues = new Array();
var selectedCount = 0;
var i;
// Find the selected Options in reverse order
// and delete them from the 'from' Select.
for(i=selLength-1; i>=0; i--)
{
if(theSelFrom.options[i].selected)
{
selectedText[selectedCount] = theSelFrom.options[i].text;
selectedValues[selectedCount] = theSelFrom.options[i].value;
deleteOption(theSelFrom, i);
selectedCount++;
}
}
// Add the selected text/values in reverse orser.
// This will add the Options to the 'to' Select
// in the same orser as they were in the 'from' Select.
for(i=selectedCount-1; i>=0; i--)
{
addOption(theSelTo, selectedText[i], selectedValues[i]);
}
return true;
}
function GetYY(ob) {
var YY;
if( ob.tagName == "BODY" ) {
YY = ob.offsetTop;
} else {
YY = ob.offsetTop + GetYY(ob.offsetParent);
}
return YY;
}
function hidepop(oid) {
var div = document.getElementById(oid);
div.style.visibility = "hidden";
}
function doshpop(obj) {
var div = document.getElementById("shpop");
var y = GetYY(obj);
div.style.top = y-10 + "px";
var lnk = document.getElementById("linkk");
lnk.value = "$hashlink";
div.style.visibility = "visible";
return true;
}
// -->
</script>
<style type="text/css">
<!--
.style1 {color: #333333}
.style2 {font-size: 10px}
.popss {
position:absolute; top:180px; left:570px; z-index:2; visibility: hidden;
padding:0.5em; background: silver; border-style: ridge;
border-width: 3px
}
-->
</style>
TryMe;
$style->Output($scrpt);
if( $UUID ) {
?>
<h1><?php if( !$doc->pending ) echo 'Verified '; ?>Physician Profile <span id="savedhead" style="visibility:<?php echo $saved?'visible':'hidden'; ?>">(Saved)</span></h1>
<?php
if( $mesg ) echo "<p id='error_msg'>$mesg</p>";
if( $doc ) {
if( $doc->inactive ) echo "<h2 id='warning_msg'>Inactive record. Subject to Clean-n-Sweep procedure.</h2>";
?>
<div id="shpop" class="popss">
Copy & Paste Link: <input type="text" maxlength="100" value="" readonly="true" name="link" id="linkk" />
<span style="font-style:italic; text-decoration:underline; color: blue;" onClick="hidepop('shpop')">close</span>
</div>
<div id="formdiv">
<form name="form1" method="post" action="showdocpc.php" onSubmit="return submitform(this);">
<p>ID#: <?php echo "$doc->uid (PCAREER)"; if( $lid < 128 || $lid == 250 ) echo " <a href='results.php?id=$lid&ck=$very$peekarg&y=2005'>back to the list</a>";?>.
<input name="id" type="hidden" id="id" value="<?php echo $doc->uid; ?>">
<input name="lid" type="hidden" id="lid" value="<?php echo $lid; ?>">
<input name="pos" type="hidden" id="pos" value="<?php echo $pos; ?>">
<input name="peek" type="hidden" id="peek" value="<?php echo $peek; ?>">
<input name="ck" type="hidden" id="ck" value="<?php echo $very; ?>">
<input name="formpage" type="hidden" id="formpage" value="<?php echo $formpage; ?>">
(Last saved on <?php echo $doc->last_save; ?>) <?php
$hashlink = 'http://physiciancareer.com/showdoctor/?pageid='.$docid.'C'.$UUID.'A'.
substr(md5($docid.$doc->fname.'2005'.$doc->lname.'Go, go, baby doll'),0,15);
echo "<a href=\"$hashlink\" target=\"_blank\">Profile Preview</a>";
/*if ( $doc->year && $doc->res_id ) echo " Resident record: <a href='showdoc.php?id=$doc->res_id&y=$doc->year&peek=$peek&ck=$very&lid=0'>Backlink</a>";*/
?></p>
<h3>Section 1 - Account</h3>
<table >
<tr>
<td width="15%" ><strong>First Name</strong>*:</td>
<td ><input name="fname" type="text" id="fname" value="<?php echo $doc->fname; ?>" maxlength="50"></td>
<td><label>
<input name="inactive" type="checkbox" title="check to suspend" id="inactive" value="1"
<?php echo $doc->inactive? 'checked':''; ?> >
Suspended</label></td>
</tr>
<tr>
<td>Middle Name:</td>
<td><input name="midname" type="text" id="midname" value="<?php echo $doc->midname; ?>" maxlength="30"></td>
<td>
<em><?php echo $doc->pending==1? 'Verification Pending':''; ?></em></td>
</tr>
<tr>
<td ><strong>Last name</strong>*:</td>
<td ><input name="lname" type="text" id="lname" value="<?php echo $doc->lname; ?>" maxlength="50"></td>
<td ><label><input name="checkin" type="radio" title="check to make public" id="checkin" value="1"
<?php echo $doc->checkin? 'checked':''; ?> >
Public</label> <label><input name="checkin" type="radio" title="check to make private" id="checkin0" value="0"
<?php echo $doc->checkin? '':'checked'; ?> >
Private</label></td>
</tr>
<tr>
<td>Degree:</td>
<td><input name="mddo" type="text" id="mddo" value="<?php echo $doc->mddo; ?>" size="10" maxlength="4">
MD/DO</td>
<td><label><input name="nostatus" type="checkbox" title="check to de-activate" id="nostatus" value="1"
<?php echo $doc->status? '':'checked'; ?> >
Inactive (Disabled) </label></td>
</tr>
<tr>
<td>Title:</td>
<td><input name="title" type="text" id="title" value="<?php echo $doc->title; ?>" maxlength="50" title="Additional titles: PhD, MBA, MPH, etc..."></td>
<td>Notify <label><input name="notifications" <?php echo $doc->notifications==1? 'checked':''; ?> type="radio" value="1">Twice</label>
<label><input name="notifications" <?php echo $doc->notifications==2? 'checked':''; ?> type="radio" value="2">Weekly</label>
<label><input name="notifications" <?php echo $doc->notifications? '':'checked'; ?> type="radio" value="0">None</label></td>
</tr>
<tr>
<td bgcolor="#E0E0FF">Home Address: </td>
<td bgcolor="#E0E0FF"><input name="addr1" type="text" id="addr1" value="<?php echo $doc->addr1; ?>" size="44" maxlength="50">
</td>
<td bgcolor="#E0E0FF"> </td>
</tr>
<tr>