İlk temizlik tamamlandı bir önceki projeden

This commit is contained in:
Ümit Tunç
2026-04-28 21:14:25 +03:00
commit f80443aec0
10000 changed files with 959965 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
function mailtemp($mail,$name,$data="") {
$temp = db("mail_templates")->where("title",$name)->first();
$html = $temp->html;
$subject = $temp->title2;
if(is_array($data)) {
foreach($data AS $a => $d) {
$html = str_replace("{".$a."}",$d,$html);
$subject = str_replace("{".$a."}",$d,$subject);
}
}
@mailsend($mail,$subject,$html);
}
?>