aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-11-18 20:15:14 -0500
committerJesús <heckyel@hyperbola.info>2019-11-18 20:15:14 -0500
commitcb435f9750f14fbb84b4a5d25b7551b36ac86c6b (patch)
tree859582a0d4b0b44f927f7def0275320864e40948
parent215e4fdcfb6b539ae57640aec754ae2f4734e338 (diff)
downloadcl-cb435f9750f14fbb84b4a5d25b7551b36ac86c6b.tar.lz
cl-cb435f9750f14fbb84b4a5d25b7551b36ac86c6b.tar.xz
cl-cb435f9750f14fbb84b4a5d25b7551b36ac86c6b.zip
form-comments
-rw-r--r--content/vendor/form-comments/commentsubmit.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php
index a40d9be..c465a98 100644
--- a/content/vendor/form-comments/commentsubmit.php
+++ b/content/vendor/form-comments/commentsubmit.php
@@ -38,6 +38,13 @@ if(empty($_POST['name']) ||
// article
$postID = str_replace('/','',$post_id);
+ // web-site
+ if (!empty($link)) {
+ $web = "Web: {$link}";
+ } else {
+ $web = NULL;
+ }
+
//slug
$nslug = seourl($name);
$fslug = date("Ymd-H:i:s");
@@ -51,14 +58,14 @@ if(empty($_POST['name']) ||
EOT;
$email_body = <<<EOT
-Haz recibido un nuevo comentario del formulario de tu sitio web.\n\n
-Aqui estan los detalles:\n\n
+Haz recibido un nuevo comentario del formulario de tu sitio web.
+Aqui estan los detalles:\n
post_id: {$postID}
Author: {$name}
Date: {$publish}
Email: {$email_address}
Slug: {$slug}
-Web: {$link}\n
+{$web}\n
{$comment}
EOT;