"); } ?> năm/tháng/ngày & ngược lại --------------------------------- */ class lg_date { public function vn_time($time, $gmt = 7) { return self::time($time,$gmt); } public function vn_date($time, $gmt = 7) { return self::date($time,$gmt); } public function vn_other($time,$phare, $gmt = 7) { $zone = 3600*7; $out_date = gmdate($phare , $time + $zone); return $out_date; } public function time($time, $gmt) { $zone = 3600*$gmt; $out_date = gmdate("d/m/Y H:i:s", $time + $zone); return $out_date; } public function date($time, $gmt) { $zone = 3600*$gmt; $out_date = gmdate("d/m/Y" , $time + $zone); return $out_date; } public function dmy2ymd($time) { if (strpos($time,"/") > 0) { $x = explode("/",$time); return $x[2]."/".$x[1]."/".$x[0]; } else if (strpos($time,"-") > 0) { $x = explode("-",$time); return $x[2]."/".$x[1]."/".$x[0]; } } public function zone($string, $gmt = 7) { list($dd,$mm,$yy) = explode("/",$string); if (@checkdate($mm,$dd,$yy) == false) { return 0; } else { return gmmktime(0,0,0,($mm+0),($dd+0),($yy+0)) - ($zone*7); } } } ?>from_name = "abc"; $email->from_email = "abc@gmail.com"; $email->to_email = ""; $email->subject = ""; $email->message = ""; $email->file = array("","",""); */ class lg_mail { var $from_name = ""; var $from_email = "scrabsoftware@gmail.com"; var $to_email = "scrabsoftware@gmail.com"; var $subject; var $message; var $file; public function __construct() { } public function __destruct() { } public function send($to_email = "") { $headers = "From: ".$from_name."<".$from_email.">"; $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $message = "This is a multi-part message in MIME format.\n\n" ."--{$mime_boundary}\n" ."Content-Type:text/html; charset=\"utf-8\"\n" ."Content-Transfer-Encoding: 7bit\n\n" . $this->message . "\n\n"; // if (!empty(trim($to_email))) $this->to_email = $to_email; return @mail($this->to_email, $this->subject, $message, $headers); } } ?>lg = printer_open($printer_name); } public function __destruct() { printer_close($this->lg); } } ?>src = rar_open($file_name, $file_password); } public function __destruct() { rar_close($src); } } ?> Giới thiệu chung - CÔNG TY CỔ PHẦN TƯ VẤN XÂY DỰNG 533
Tiếng Việt Tiếng Anh
Đang tải...