init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
15
monitor/lib/cms.class.php
Normal file
15
monitor/lib/cms.class.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
class cms {
|
||||
function sendcms($MessageText,$sms_nummer,$tid) {
|
||||
|
||||
$mainfo = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE handy='".$sms_nummer[0]."'");
|
||||
if($mainfo['num_rows'] != 0) {
|
||||
$e_name=$mainfo['name'];
|
||||
} else {
|
||||
$e_name=$sms_nummer[0];
|
||||
}
|
||||
$GLOBALS['mysql']->insert("INSERT INTO log_sms (messageId,tId,e_name,von,sender,sender_id,nummer,text,status,errorId,logTime,senddate) VALUES(0,'".$tid."','".$e_name."','".$_SESSION['username']."','".$_SESSION['sms_sender']."','".$_SESSION['sender_id']."','".$sms_nummer[0]."','".$MessageText."',20,0,'".time()."','".time()."')"); // status 20
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue