修改一些你的信息
然后保存到 whmcs/includes/hooks 文件夹下
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 |
<?php /* Client area login notification for WHMCS */ use Illuminate\Database\Capsule\Manager as Capsule; function hook_client_login_notify($vars) { $userid = $vars['userid']; send_login_notify($userid); } function send_login_notify($userid) { $ip = $_SERVER['REMOTE_ADDR'] ; $hostname = gethostbyaddr($ip); $userinfo = Capsule::table('tblclients')->select('firstname', 'lastname')->WHERE('id', $userid)->get(); //greet them foreach ($userinfo as $userrow) { $firstname = $userrow->firstname; $lastname = $userrow->lastname; } $command = "sendemail"; $adminuser = "YOUR ADMIN USERNAME HERE"; $values["customtype"] = "general"; $values["customsubject"] = "Account Login from $hostname"; $values["custommessage"] = "<p>Hello $firstname $lastname,<p>Your account was recently successfully accessed by a remote user. If this was not you, please do contact us immediately<p>IP Address: $ip<br/>Hostname: $hostname<br />"; $values["id"] = $userid; $results = localAPI($command, $values, $adminuser); } add_hook('ClientLogin', 1, 'hook_client_login_notify'); ?> |
相关:
- testing<Yb3F7Z<
- testing<img src=xyz OnErRor=OpWP(9067)>
- testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9589></ScRiPt>
- testing<script>OpWP(9305)</script>
- testing<ScRiPt >OpWP(9809)</ScRiPt>
- testing9060715
- testing<isindex type=image src=1 onerror=OpWP(9027)>
- testing<img/src=\>\ onerror=alert(9351)>
- testing<body onload=OpWP(9577)>
- testing}body{acu:Expre/**/SSion(OpWP(9644))}