Changeset 18841
- Timestamp:
- 04/27/17 15:05:40 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/dch/shiftinfo.php
r18681 r18841 61 61 function get_expertinfo($db) 62 62 { 63 64 63 $query="SELECT username as login, usertitle as name, email, fid5 as mobile, fid7 as skype 65 64 FROM logbook.userfields … … 74 73 } 75 74 76 function userinfo_to_string($userinfo){ 75 function userinfo_to_string($userinfo) 76 { 77 77 $s = $userinfo['name'] . "[" .$userinfo['login']."]" . ": <br>"; 78 78 $s .= " email:" . $userinfo['email'] . "<br>"; … … 82 82 } 83 83 84 function send_warning_mail_to_user($userinfo){ 85 $msg = "Dear " . $userinfo['name'] . "[".$userinfo['login']."]" ."\n\n"; 86 $msg .= ", please insert your 'Shifthelper Mobile Phone Number' in "; 84 function send_warning_mail_to_user($userinfo, $today) 85 { 86 $msg = "Dear " . $userinfo['name'] . "[".$userinfo['login']."]," ."\n\n"; 87 $msg .= "please insert your 'Shifthelper Mobile Phone Number' in "; 87 88 $msg .= ' https://www.fact-project.org/logbook/usercp.php?action=profile'; 88 89 send_email($today, $msg); 89 90 90 } 91 91 … … 110 110 echo "<li>".userinfo_to_string($userinfo)."</li>\n"; 111 111 if (!$userinfo['mobile']) 112 send_warning_mail_to_user($userinfo );112 send_warning_mail_to_user($userinfo, $today); 113 113 } 114 114 }
Note:
See TracChangeset
for help on using the changeset viewer.