浏览代码

Add files via upload

Daniele Bonini (皮夕): WebDev, DevOps and project care by lots of Simplicity bits 3 年之前
父节点
当前提交
0b87f3153a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Private/scripts/home.php

+ 4 - 0
Private/scripts/home.php

@@ -82,6 +82,10 @@
      } else {  
      } else {  
        // display the msg
        // display the msg
        $msg = HTMLencode(file_get_contents($curPath . DIRECTORY_SEPARATOR . "msgs" . DIRECTORY_SEPARATOR . $val));
        $msg = HTMLencode(file_get_contents($curPath . DIRECTORY_SEPARATOR . "msgs" . DIRECTORY_SEPARATOR . $val));
+       
+       $msg = enableEmails($msg);
+       $msg = enableLinks($msg);
+
        echo("<div style='background-color:$bgcolor;float:$float;padding:5px;max-width:300px;min-width:260px;border-radius:2px;white-space:normal;'>".str_replace("\n", "<br>", $msg)."<div style='float:right;font-size:9px;'>$time</div></div><br><br><br>");
        echo("<div style='background-color:$bgcolor;float:$float;padding:5px;max-width:300px;min-width:260px;border-radius:2px;white-space:normal;'>".str_replace("\n", "<br>", $msg)."<div style='float:right;font-size:9px;'>$time</div></div><br><br><br>");
      }	   
      }	   
      echo("<div style='clear:both;' style='height:2px;'></div>");
      echo("<div style='clear:both;' style='height:2px;'></div>");