mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +05:30
Updated local comment system moving the settings into /admin/config
Local comments system uses config.ini and is in /admin/config now with all other settings.
This commit is contained in:
parent
c8b7ed9af3
commit
e8abe7b999
48 changed files with 620 additions and 287 deletions
|
|
@ -45,6 +45,25 @@ breadcrumb.home = "Home"
|
|||
; Comment system. Choose "facebook", "disqus", or "disable".
|
||||
comment.system = "disable"
|
||||
|
||||
; Local comments settings
|
||||
comments.moderation = "false"
|
||||
comments.honeypot = "true"
|
||||
comments.jstime = "true"
|
||||
comments.notify = "true"
|
||||
comments.notifyadmin = "true"
|
||||
comments.admin.email = ""
|
||||
comments.salt = ""
|
||||
|
||||
; Local comments SMTP settings
|
||||
comments.mail.enabled = "false"
|
||||
comments.mail.host = ""
|
||||
comments.mail.username = ""
|
||||
comments.mail.password = ""
|
||||
comments.mail.port = "587"
|
||||
comments.mail.encryption = "tls"
|
||||
comments.mail.from.email = ""
|
||||
comments.mail.from.name = ""
|
||||
|
||||
; Facebook comments
|
||||
fb.appid = ""
|
||||
fb.num = "5"
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -341,3 +341,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -351,3 +351,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ subpages = "Unterseiten"
|
|||
getstarted = "Los geht's"
|
||||
onthispage = "Auf dieser Seite"
|
||||
backtotop = "Nach oben"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ subpages = "Unterseiten"
|
|||
getstarted = "Los geht's"
|
||||
onthispage = "Auf dieser Seite"
|
||||
backtotop = "Nach oben"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ subpages = "Unterseiten"
|
|||
getstarted = "Los geht's"
|
||||
onthispage = "Auf dieser Seite"
|
||||
backtotop = "Nach oben"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -342,3 +342,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -407,3 +407,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -407,3 +407,12 @@ backtotop = "Torna in cima"
|
|||
subpages = "Sottopagine"
|
||||
getstarted = "Per cominciare"
|
||||
onthispage = "Su questa pagina"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -341,3 +341,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -341,3 +341,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -352,3 +352,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -340,3 +340,12 @@ backtotop = "Back to top"
|
|||
subpages = "Sub pages"
|
||||
getstarted = "Get started"
|
||||
onthispage = "On this page"
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
keep_me_logged_in = "Keep me logged in"
|
||||
session_security = "Session security"
|
||||
ip_session_validation = "IP session validation"
|
||||
ip_session_validation_explain = "Keep this enabled for better security. Disable only for users whose IP changes frequently (for example, mobile networks)."
|
||||
enable_jstime = "Enable jstime"
|
||||
jstime_desc = "Block spam submissions that are sent too quickly by bots."
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@
|
|||
<span class="badge badge-warning"><?php echo $pendingCount; ?></span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<a class="nav-item nav-link <?php echo (isset($tab) && $tab === 'settings') ? 'active' : ''; ?>"
|
||||
href="<?php echo site_url();?>admin/comments/settings"><?php echo i18n('Settings');?></a>
|
||||
</div>
|
||||
</nav>
|
||||
<br><br>
|
||||
|
|
@ -125,165 +123,6 @@
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php elseif ($tab === 'settings'): ?>
|
||||
<!-- Settings Form -->
|
||||
<form method="POST" action="<?php echo site_url(); ?>admin/comments/settings">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
|
||||
<!-- // removed by Emidio 20251105
|
||||
<div class="alert alert-info">
|
||||
<strong><?php echo i18n('Note'); ?>:</strong> <?php echo i18n('Enable_comments_in_main_config'); ?>
|
||||
<br>
|
||||
<code>config/config.ini</code> → <code>comment.system = "local"</code>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<h4><?php echo i18n('General_Settings');?></h4>
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Comment_Moderation');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" name="comments.moderation" value="true"
|
||||
<?php echo comments_config('comments.moderation') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Require_admin_approval');?></label>
|
||||
</div>
|
||||
<small class="form-text text-muted"><?php echo i18n('Comments_moderation_desc');?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Anti_Spam_Protection');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" name="comments.honeypot" value="true"
|
||||
<?php echo comments_config('comments.honeypot') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Enable_honeypot');?></label>
|
||||
</div>
|
||||
<small class="form-text text-muted"><?php echo i18n('Honeypot_desc');?></small>
|
||||
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" name="comments.jstime" value="true"
|
||||
<?php echo comments_config('comments.jstime') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Enable_jstime');?></label>
|
||||
</div>
|
||||
<small class="form-text text-muted"><?php echo i18n('Jstime_desc');?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><?php echo i18n('Email_Notifications');?></h4>
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Enable_Notifications');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" name="comments.notify" value="true"
|
||||
<?php echo comments_config('comments.notify') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Send_email_notifications');?></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="admin-email" class="col-sm-3 col-form-label"><?php echo i18n('Admin_Email');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="admin-email" name="comments.admin.email"
|
||||
value="<?php echo _h(comments_config('comments.admin.email')); ?>"
|
||||
placeholder="admin@example.com">
|
||||
<small class="form-text text-muted"><?php echo i18n('Admin_email_desc');?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><?php echo i18n('SMTP_Settings');?></h4>
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Enable_SMTP');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" name="comments.mail.enabled" value="true"
|
||||
<?php echo comments_config('comments.mail.enabled') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Enable_SMTP_for_emails');?></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-host" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Host');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="mail-host" name="comments.mail.host"
|
||||
value="<?php echo _h(comments_config('comments.mail.host')); ?>"
|
||||
placeholder="smtp.gmail.com">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-port" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Port');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="number" class="form-control" id="mail-port" name="comments.mail.port"
|
||||
value="<?php echo _h(comments_config('comments.mail.port')); ?>"
|
||||
placeholder="587">
|
||||
<small class="form-text text-muted">587 (TLS) or 465 (SSL)</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-encryption" class="col-sm-3 col-form-label"><?php echo i18n('Encryption');?></label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-control" id="mail-encryption" name="comments.mail.encryption">
|
||||
<option value="tls" <?php echo comments_config('comments.mail.encryption') === 'tls' ? 'selected' : ''; ?>>TLS</option>
|
||||
<option value="ssl" <?php echo comments_config('comments.mail.encryption') === 'ssl' ? 'selected' : ''; ?>>SSL</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-username" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Username');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="mail-username" name="comments.mail.username"
|
||||
value="<?php echo _h(comments_config('comments.mail.username')); ?>"
|
||||
placeholder="your-email@gmail.com">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-password" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Password');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="password" class="form-control" id="mail-password" name="comments.mail.password"
|
||||
value="<?php echo _h(comments_config('comments.mail.password')); ?>"
|
||||
placeholder="<?php echo i18n('Enter_password');?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-from-email" class="col-sm-3 col-form-label"><?php echo i18n('From_Email');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="mail-from-email" name="comments.mail.from.email"
|
||||
value="<?php echo _h(comments_config('comments.mail.from.email')); ?>"
|
||||
placeholder="noreply@example.com">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-from-name" class="col-sm-3 col-form-label"><?php echo i18n('From_Name');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="mail-from-name" name="comments.mail.from.name"
|
||||
value="<?php echo _h(comments_config('comments.mail.from.name')); ?>"
|
||||
placeholder="<?php echo config('blog.title'); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-9 offset-sm-3">
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Settings');?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($editComment)): ?>
|
||||
<!-- Edit Comment Modal/Page -->
|
||||
<h3><?php echo i18n('Edit_Comment');?></h3>
|
||||
|
|
@ -326,3 +165,4 @@
|
|||
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
169
system/admin/views/config-comments.html.php
Normal file
169
system/admin/views/config-comments.html.php
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
||||
<h2><?php echo i18n('Comments_Settings');?></h2>
|
||||
<br>
|
||||
<nav>
|
||||
<div class="nav nav-tabs" id="nav-tab">
|
||||
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
|
||||
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
|
||||
<a class="nav-item nav-link" id="nav-writing-tab" href="<?php echo site_url();?>admin/config/writing"><?php echo i18n('Writing');?></a>
|
||||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link active" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
</nav>
|
||||
<br><br>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<h4><?php echo i18n('General_Settings');?></h4>
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Comment_Moderation');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="hidden" name="-config-comments_moderation" value="false">
|
||||
<input type="checkbox" class="form-check-input" name="-config-comments_moderation" value="true"
|
||||
<?php echo config('comments.moderation') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Require_admin_approval');?></label>
|
||||
</div>
|
||||
<small class="form-text text-muted"><?php echo i18n('Comments_moderation_desc');?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Anti_Spam_Protection');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="hidden" name="-config-comments_honeypot" value="false">
|
||||
<input type="checkbox" class="form-check-input" name="-config-comments_honeypot" value="true"
|
||||
<?php echo config('comments.honeypot') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Enable_honeypot');?></label>
|
||||
</div>
|
||||
<small class="form-text text-muted"><?php echo i18n('Honeypot_desc');?></small>
|
||||
|
||||
<div class="form-check">
|
||||
<input type="hidden" name="-config-comments_jstime" value="false">
|
||||
<input type="checkbox" class="form-check-input" name="-config-comments_jstime" value="true"
|
||||
<?php echo config('comments.jstime') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('enable_jstime');?></label>
|
||||
</div>
|
||||
<small class="form-text text-muted"><?php echo i18n('jstime_desc');?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><?php echo i18n('Email_Notifications');?></h4>
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Enable_Notifications');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="hidden" name="-config-comments_notify" value="false">
|
||||
<input type="checkbox" class="form-check-input" name="-config-comments_notify" value="true"
|
||||
<?php echo config('comments.notify') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Send_email_notifications');?></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="admin-email" class="col-sm-3 col-form-label"><?php echo i18n('Admin_Email');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="admin-email" name="-config-comments_admin_email"
|
||||
value="<?php echo _h(config('comments.admin.email')); ?>"
|
||||
placeholder="admin@example.com">
|
||||
<small class="form-text text-muted"><?php echo i18n('Admin_email_desc');?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><?php echo i18n('SMTP_Settings');?></h4>
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label"><?php echo i18n('Enable_SMTP');?></label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-check">
|
||||
<input type="hidden" name="-config-comments_mail_enabled" value="false">
|
||||
<input type="checkbox" class="form-check-input" name="-config-comments_mail_enabled" value="true"
|
||||
<?php echo config('comments.mail.enabled') === 'true' ? 'checked' : ''; ?>>
|
||||
<label class="form-check-label"><?php echo i18n('Enable_SMTP_for_emails');?></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-host" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Host');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="mail-host" name="-config-comments_mail_host"
|
||||
value="<?php echo _h(config('comments.mail.host')); ?>"
|
||||
placeholder="smtp.gmail.com">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-port" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Port');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="number" class="form-control" id="mail-port" name="-config-comments_mail_port"
|
||||
value="<?php echo _h(config('comments.mail.port')); ?>"
|
||||
placeholder="587">
|
||||
<small class="form-text text-muted">587 (TLS) or 465 (SSL)</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-encryption" class="col-sm-3 col-form-label"><?php echo i18n('Encryption');?></label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-control" id="mail-encryption" name="-config-comments_mail_encryption">
|
||||
<option value="tls" <?php echo config('comments.mail.encryption') === 'tls' ? 'selected' : ''; ?>>TLS</option>
|
||||
<option value="ssl" <?php echo config('comments.mail.encryption') === 'ssl' ? 'selected' : ''; ?>>SSL</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-username" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Username');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="mail-username" name="-config-comments_mail_username"
|
||||
value="<?php echo _h(config('comments.mail.username')); ?>"
|
||||
placeholder="your-email@gmail.com" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-password" class="col-sm-3 col-form-label"><?php echo i18n('SMTP_Password');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="password" class="form-control" id="mail-password" name="-config-comments_mail_password"
|
||||
value="<?php echo _h(config('comments.mail.password')); ?>"
|
||||
placeholder="<?php echo i18n('Enter_password');?>" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-from-email" class="col-sm-3 col-form-label"><?php echo i18n('From_Email');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="email" class="form-control" id="mail-from-email" name="-config-comments_mail_from_email"
|
||||
value="<?php echo _h(config('comments.mail.from.email')); ?>"
|
||||
placeholder="noreply@example.com">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="mail-from-name" class="col-sm-3 col-form-label"><?php echo i18n('From_Name');?></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="mail-from-name" name="-config-comments_mail_from_name"
|
||||
value="<?php echo _h(config('comments.mail.from.name')); ?>"
|
||||
placeholder="<?php echo config('blog.title'); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-9 offset-sm-3">
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Settings');?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -9,6 +9,9 @@
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link active" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -68,6 +68,9 @@ Please install and enable the GD extension to use the thumbnail feature.
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link active" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link active" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link active" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
<a class="nav-item nav-link active" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
@ -133,7 +136,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4><?php echo i18n('Comments');?></h4>
|
||||
<h4><?php echo i18n('comments');?></h4>
|
||||
<hr>
|
||||
<p><?php echo i18n('To_use_Disqus_or_Facebook_comment_you_need_to_provide_Disqus_shortname_or_Facebook_App_ID');?></p>
|
||||
<div class="form-group row">
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ Please install and enable the INTL extension to format the date format to your l
|
|||
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
|
||||
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
|
||||
<a class="nav-item nav-link" id="nav-security-tab" href="<?php echo site_url();?>admin/config/security"><?php echo i18n('Security');?></a>
|
||||
<?php if(config('comment.system') === 'local') { ?>
|
||||
<a class="nav-item nav-link" id="nav-comments-tab" href="<?php echo site_url();?>admin/config/comments"><?php echo i18n('comments');?></a>
|
||||
<?php } ?>
|
||||
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
|
||||
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ if (isset($author[0])) {
|
|||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fa fa-comments"></i>
|
||||
<p>
|
||||
<?php echo i18n('Comments'); ?>
|
||||
<?php echo i18n('comments'); ?>
|
||||
<?php
|
||||
$pendingCount = getPendingCommentsCount();
|
||||
if ($pendingCount > 0): ?>
|
||||
|
|
@ -182,15 +182,6 @@ if (isset($author[0])) {
|
|||
</p>
|
||||
</a>
|
||||
</li>
|
||||
<?php if ($role === 'admin'):?>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo site_url();?>admin/comments/settings" class="nav-link">
|
||||
<p>
|
||||
<?php echo i18n('Settings'); ?>
|
||||
</p>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,21 @@
|
|||
"social.tiktok",
|
||||
"breadcrumb.home",
|
||||
"comment.system",
|
||||
"comments.moderation",
|
||||
"comments.honeypot",
|
||||
"comments.jstime",
|
||||
"comments.notify",
|
||||
"comments.notifyadmin",
|
||||
"comments.admin.email",
|
||||
"comments.salt",
|
||||
"comments.mail.enabled",
|
||||
"comments.mail.host",
|
||||
"comments.mail.username",
|
||||
"comments.mail.password",
|
||||
"comments.mail.port",
|
||||
"comments.mail.encryption",
|
||||
"comments.mail.from.email",
|
||||
"comments.mail.from.name",
|
||||
"fb.appid",
|
||||
"fb.num",
|
||||
"fb.color",
|
||||
|
|
|
|||
|
|
@ -2457,6 +2457,75 @@ post('/admin/config/security', function () {
|
|||
}
|
||||
});
|
||||
|
||||
// Show Config page
|
||||
get('/admin/config/comments', function () {
|
||||
|
||||
$user = $_SESSION[site_url()]['user'] ?? null;
|
||||
$role = user('role', $user) ?? null;
|
||||
|
||||
if (login()) {
|
||||
config('views.root', 'system/admin/views');
|
||||
if ($role === 'admin') {
|
||||
render('config-comments', array(
|
||||
'title' => generate_title('is_default', i18n('Config')),
|
||||
'description' => safe_html(strip_tags(blog_description())),
|
||||
'canonical' => site_url(),
|
||||
'metatags' => generate_meta(null, null),
|
||||
'type' => 'is_admin-config',
|
||||
'is_admin' => true,
|
||||
'bodyclass' => 'admin-config',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config')
|
||||
));
|
||||
} else {
|
||||
render('denied', array(
|
||||
'title' => generate_title('is_default', i18n('Config')),
|
||||
'description' => safe_html(strip_tags(blog_description())),
|
||||
'canonical' => site_url(),
|
||||
'metatags' => generate_meta(null, null),
|
||||
'type' => 'is_admin-config',
|
||||
'is_admin' => true,
|
||||
'bodyclass' => 'denied',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config')
|
||||
));
|
||||
}
|
||||
} else {
|
||||
$login = site_url() . 'login';
|
||||
header("location: $login");
|
||||
}
|
||||
});
|
||||
|
||||
// Submitted Config page data
|
||||
post('/admin/config/comments', function () {
|
||||
|
||||
$proper = is_csrf_proper(from($_REQUEST, 'csrf_token')) ?? null;
|
||||
if (login() && $proper) {
|
||||
$new_config = array();
|
||||
$new_Keys = array();
|
||||
$user = $_SESSION[site_url()]['user'];
|
||||
$role = user('role', $user);
|
||||
if ($role === 'admin') {
|
||||
foreach ($_POST as $name => $value) {
|
||||
if (substr($name, 0, 8) == "-config-") {
|
||||
$name = str_replace("_", ".", substr($name, 8));
|
||||
if(!is_null(config($name))) {
|
||||
$new_config[$name] = $value;
|
||||
} else {
|
||||
$new_Keys[$name] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
save_config($new_config, $new_Keys);
|
||||
$redir = site_url() . 'admin/config/comments';
|
||||
header("location: $redir");
|
||||
} else {
|
||||
$redir = site_url();
|
||||
header("location: $redir");
|
||||
}
|
||||
} else {
|
||||
$login = site_url() . 'login';
|
||||
header("location: $login");
|
||||
}
|
||||
});
|
||||
|
||||
// Show Config page
|
||||
get('/admin/config/performance', function () {
|
||||
|
|
@ -3123,7 +3192,7 @@ get('/admin/comments', function () {
|
|||
'type' => 'is_admin-comments',
|
||||
'is_admin' => true,
|
||||
'bodyclass' => 'admin-comments',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Comments'),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('comments'),
|
||||
'tab' => 'all',
|
||||
'page' => $page,
|
||||
'comments' => $comments,
|
||||
|
|
@ -3171,7 +3240,7 @@ get('/admin/comments/pending', function () {
|
|||
'type' => 'is_admin-comments',
|
||||
'is_admin' => true,
|
||||
'bodyclass' => 'admin-comments',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Comments') . ' » ' . i18n('Pending'),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('comments') . ' » ' . i18n('Pending'),
|
||||
'tab' => 'pending',
|
||||
'page' => $page,
|
||||
'comments' => $comments,
|
||||
|
|
@ -3201,7 +3270,7 @@ get('/admin/comments/settings', function () {
|
|||
'type' => 'is_admin-comments',
|
||||
'is_admin' => true,
|
||||
'bodyclass' => 'admin-comments',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Comments') . ' » ' . i18n('Settings'),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('comments') . ' » ' . i18n('Settings'),
|
||||
'tab' => 'settings',
|
||||
'pendingCount' => $pendingCount
|
||||
));
|
||||
|
|
@ -3304,7 +3373,7 @@ get('/admin/comments/edit/:commentfile/:commentid', function ($commentfile, $com
|
|||
'type' => 'is_admin-comments',
|
||||
'is_admin' => true,
|
||||
'bodyclass' => 'admin-comments',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . site_url() . 'admin/comments">' . i18n('Comments') . '</a> » ' . i18n('Edit'),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . site_url() . 'admin/comments">' . i18n('comments') . '</a> » ' . i18n('Edit'),
|
||||
'editComment' => $editComment,
|
||||
'pendingCount' => $pendingCount
|
||||
));
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ function displayComments($url, $file = null)
|
|||
|
||||
?>
|
||||
<div class="comments-list">
|
||||
<!--- <h4><?php echo i18n('Comments'); ?> (<?php echo count($comments); ?>)</h4> --->
|
||||
<!--- <h4><?php echo i18n('comments'); ?> (<?php echo count($comments); ?>)</h4> --->
|
||||
<?php
|
||||
foreach ($commentTree as $comment) {
|
||||
displayComment($comment, $url, $file = null);
|
||||
|
|
|
|||
|
|
@ -14,88 +14,6 @@ function local()
|
|||
return config('comment.system') === 'local';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get comments configuration value
|
||||
*
|
||||
* @param string $key Configuration key (use 'reload' to force cache reload)
|
||||
* @return mixed Configuration value or null
|
||||
*/
|
||||
function comments_config($key)
|
||||
{
|
||||
static $_config = array();
|
||||
|
||||
$config_file = 'config/comments.ini';
|
||||
|
||||
// Allow cache reload
|
||||
if ($key === 'reload') {
|
||||
$_config = array();
|
||||
return null;
|
||||
}
|
||||
|
||||
if (empty($_config) && file_exists($config_file)) {
|
||||
$_config = parse_ini_file($config_file, false);
|
||||
}
|
||||
|
||||
return isset($_config[$key]) ? $_config[$key] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Save comments configuration
|
||||
*
|
||||
* @param array $data Configuration data to save
|
||||
* @return bool Success status
|
||||
*/
|
||||
function save_comments_config($data = array())
|
||||
{
|
||||
$config_file = 'config/comments.ini';
|
||||
|
||||
if (!file_exists($config_file)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$string = file_get_contents($config_file);
|
||||
|
||||
foreach ($data as $word => $value) {
|
||||
// Ensure null and empty values are saved as empty strings
|
||||
if ($value === null || $value === '') {
|
||||
$value = '""';
|
||||
} else {
|
||||
// Encode value
|
||||
$value = json_encode($value, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
|
||||
$map = array('\r\n' => ' \n ', '\r' => ' \n ');
|
||||
$value = trim(strtr($value, $map));
|
||||
|
||||
// Escape dots in the key for regex
|
||||
$escapedWord = str_replace('.', '\.', $word);
|
||||
|
||||
// Try to replace existing line
|
||||
$pattern = "/^" . $escapedWord . " = .*/m";
|
||||
if (preg_match($pattern, $string)) {
|
||||
$string = preg_replace($pattern, $word . ' = ' . $value, $string);
|
||||
} else {
|
||||
// If line doesn't exist, add it at the end
|
||||
$string = rtrim($string) . "\n" . $word . ' = ' . $value . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
$string = rtrim($string) . "\n";
|
||||
$result = file_put_contents($config_file, $string, LOCK_EX);
|
||||
|
||||
// Clear PHP opcache for this file
|
||||
if (function_exists('opcache_invalidate')) {
|
||||
opcache_invalidate($config_file, true);
|
||||
}
|
||||
|
||||
// Clear cache after saving
|
||||
if ($result !== false) {
|
||||
comments_config('reload');
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get comments file path for a post/page
|
||||
* Replicates content file path inside comments folder
|
||||
|
|
@ -403,14 +321,14 @@ function validateComment($data)
|
|||
}
|
||||
|
||||
// Validate honeypot (if enabled)
|
||||
if (comments_config('comments.honeypot') === 'true') {
|
||||
if (config('comments.honeypot') === 'true') {
|
||||
if (!empty($data['website'])) {
|
||||
$errors[] = 'comment_submission_error_spam';
|
||||
}
|
||||
}
|
||||
|
||||
// Validate js and time (if enabled) - minimum 2 seconds, maximum 600 seconds
|
||||
if (comments_config('comments.jstime') === 'true') {
|
||||
if (config('comments.jstime') === 'true') {
|
||||
if (!$data['company'] || secondsGenerationSubmit($data['company']) < 3 || secondsGenerationSubmit($data['company']) > 3600) {
|
||||
$errors[] = 'comment_submission_error_spam';
|
||||
}
|
||||
|
|
@ -464,7 +382,7 @@ function commentInsert($data, $url, $mdfile = null)
|
|||
'date' => date('Y-m-d H:i:s', $timestamp),
|
||||
'parent_id' => isset($data['parent_id']) && !empty($data['parent_id']) ? $data['parent_id'] : null,
|
||||
'notify' => isset($data['notify']) && $data['notify'] === '1',
|
||||
'published' => comments_config('comments.moderation') !== 'true', // Auto-publish if moderation disabled
|
||||
'published' => config('comments.moderation') !== 'true', // Auto-publish if moderation disabled
|
||||
'ip' => $_SERVER['REMOTE_ADDR'] ?? 'unknown'
|
||||
);
|
||||
|
||||
|
|
@ -514,7 +432,7 @@ function setSubscription($email, $action) {
|
|||
if (!is_dir($subscriptions_dir)) {
|
||||
mkdir($subscriptions_dir);
|
||||
}
|
||||
$subscription_file = $subscriptions_dir . '/' . encryptEmailForFilename($email, comments_config('comments.salt'));
|
||||
$subscription_file = $subscriptions_dir . '/' . encryptEmailForFilename($email, config('comments.salt'));
|
||||
|
||||
$subscription = getSubscription($email);
|
||||
|
||||
|
|
@ -554,7 +472,7 @@ function setSubscription($email, $action) {
|
|||
// returns array
|
||||
function getSubscription($email) {
|
||||
$subscriptions_dir = 'content/comments/.subscriptions';
|
||||
$subscription_file = $subscriptions_dir . '/' . encryptEmailForFilename($email, comments_config('comments.salt'));
|
||||
$subscription_file = $subscriptions_dir . '/' . encryptEmailForFilename($email, config('comments.salt'));
|
||||
if (!file_exists($subscription_file)) {
|
||||
$subscription['status'] = 'no';
|
||||
$subscription['date'] = date('Y-m-d H:i:s');
|
||||
|
|
@ -643,13 +561,13 @@ function sendSubscriptionEmail($email) {
|
|||
|
||||
// Server settings
|
||||
$mail->isSMTP();
|
||||
$mail->Host = comments_config('comments.mail.host');
|
||||
$mail->Host = config('comments.mail.host');
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = comments_config('comments.mail.username');
|
||||
$mail->Password = comments_config('comments.mail.password');
|
||||
$mail->Port = comments_config('comments.mail.port');
|
||||
$mail->Username = config('comments.mail.username');
|
||||
$mail->Password = config('comments.mail.password');
|
||||
$mail->Port = config('comments.mail.port');
|
||||
|
||||
$encryption = comments_config('comments.mail.encryption');
|
||||
$encryption = config('comments.mail.encryption');
|
||||
if ($encryption === 'tls') {
|
||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
||||
} elseif ($encryption === 'ssl') {
|
||||
|
|
@ -658,8 +576,8 @@ function sendSubscriptionEmail($email) {
|
|||
|
||||
// Recipients
|
||||
$mail->setFrom(
|
||||
comments_config('comments.mail.from.email'),
|
||||
comments_config('comments.mail.from.name')
|
||||
config('comments.mail.from.email'),
|
||||
config('comments.mail.from.name')
|
||||
);
|
||||
$mail->addAddress($email);
|
||||
|
||||
|
|
@ -672,9 +590,9 @@ function sendSubscriptionEmail($email) {
|
|||
<h3>" . i18n('comment_subscribe_thread') . ": ".config('site.url')."</h3>
|
||||
<p>" . i18n('comment_subscribe_request') . " ".config('blog.title')."</p>
|
||||
<p>" . i18n('comment_subscribe_never_requested') . "</p>
|
||||
<p>" . i18n('comment_subscribe_click') . " <a href=\"".config('site.url')."?subscribe=".encryptEmailForFilename($email, comments_config('comments.salt'))."\"><b>" . i18n('comment_subscribe_here') . "</b></a> " . i18n('comment_subscribe_confirm_message') . "</p>
|
||||
<p>" . i18n('comment_subscribe_click') . " <a href=\"".config('site.url')."?subscribe=".encryptEmailForFilename($email, config('comments.salt'))."\"><b>" . i18n('comment_subscribe_here') . "</b></a> " . i18n('comment_subscribe_confirm_message') . "</p>
|
||||
<p> </p>
|
||||
<p>" . i18n('comment_subscribe_unsubscribe_message') . " ".config('blog.title')." " . i18n('comment_subscribe_unsubscribe_anytime') . ": <a href=\"".config('site.url')."?unsubscribe=".encryptEmailForFilename($email, comments_config('comments.salt'))."\"><b>" . i18n('comment_unsubscribe') . "</b></a>.</p>
|
||||
<p>" . i18n('comment_subscribe_unsubscribe_message') . " ".config('blog.title')." " . i18n('comment_subscribe_unsubscribe_anytime') . ": <a href=\"".config('site.url')."?unsubscribe=".encryptEmailForFilename($email, config('comments.salt'))."\"><b>" . i18n('comment_unsubscribe') . "</b></a>.</p>
|
||||
<p> </p>
|
||||
";
|
||||
|
||||
|
|
@ -840,7 +758,7 @@ function commentModify($file, $commentId, $data)
|
|||
function sendCommentNotifications($url, $newComment, $allComments, $notifyAdmin = true, $notifySubscribers = true)
|
||||
{
|
||||
// Check if mail is enabled
|
||||
if (comments_config('comments.mail.enabled') !== 'true') {
|
||||
if (config('comments.mail.enabled') !== 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -848,11 +766,11 @@ function sendCommentNotifications($url, $newComment, $allComments, $notifyAdmin
|
|||
|
||||
// Add admin email - notify if comments.notifyadmin = "true" OR comments.moderation = "true"
|
||||
if ($notifyAdmin) {
|
||||
$shouldNotifyAdmin = (comments_config('comments.notifyadmin') === 'true') ||
|
||||
(comments_config('comments.moderation') === 'true');
|
||||
$shouldNotifyAdmin = (config('comments.notifyadmin') === 'true') ||
|
||||
(config('comments.moderation') === 'true');
|
||||
|
||||
if ($shouldNotifyAdmin) {
|
||||
$adminEmail = comments_config('comments.admin.email');
|
||||
$adminEmail = config('comments.admin.email');
|
||||
if (!empty($adminEmail) && filter_var($adminEmail, FILTER_VALIDATE_EMAIL)) {
|
||||
$recipients[$adminEmail] = array(
|
||||
'name' => 'Administrator',
|
||||
|
|
@ -863,7 +781,7 @@ function sendCommentNotifications($url, $newComment, $allComments, $notifyAdmin
|
|||
}
|
||||
|
||||
// Add subscribers only if notifySubscribers is true AND comments.notify is enabled
|
||||
if ($notifySubscribers && comments_config('comments.notify') === 'true') {
|
||||
if ($notifySubscribers && config('comments.notify') === 'true') {
|
||||
// Add parent comment author (if replying)
|
||||
if (!empty($newComment['parent_id'])) {
|
||||
foreach ($allComments as $comment) {
|
||||
|
|
@ -920,13 +838,13 @@ function sendCommentEmail($to, $toName, $url, $comment, $type = 'admin')
|
|||
|
||||
// Server settings
|
||||
$mail->isSMTP();
|
||||
$mail->Host = comments_config('comments.mail.host');
|
||||
$mail->Host = config('comments.mail.host');
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = comments_config('comments.mail.username');
|
||||
$mail->Password = comments_config('comments.mail.password');
|
||||
$mail->Port = comments_config('comments.mail.port');
|
||||
$mail->Username = config('comments.mail.username');
|
||||
$mail->Password = config('comments.mail.password');
|
||||
$mail->Port = config('comments.mail.port');
|
||||
|
||||
$encryption = comments_config('comments.mail.encryption');
|
||||
$encryption = config('comments.mail.encryption');
|
||||
if ($encryption === 'tls') {
|
||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
||||
} elseif ($encryption === 'ssl') {
|
||||
|
|
@ -935,8 +853,8 @@ function sendCommentEmail($to, $toName, $url, $comment, $type = 'admin')
|
|||
|
||||
// Recipients
|
||||
$mail->setFrom(
|
||||
comments_config('comments.mail.from.email'),
|
||||
comments_config('comments.mail.from.name')
|
||||
config('comments.mail.from.email'),
|
||||
config('comments.mail.from.name')
|
||||
);
|
||||
$mail->addAddress($to, $toName);
|
||||
|
||||
|
|
@ -945,7 +863,7 @@ function sendCommentEmail($to, $toName, $url, $comment, $type = 'admin')
|
|||
$mail->CharSet = 'UTF-8';
|
||||
|
||||
if ($type === 'admin') {
|
||||
if (comments_config('comments.moderation') === 'true') {
|
||||
if (config('comments.moderation') === 'true') {
|
||||
$mail->Subject = i18n('comment_email_admin_awaiting') . " - " . config('blog.title');
|
||||
}
|
||||
else {
|
||||
|
|
@ -967,7 +885,7 @@ function sendCommentEmail($to, $toName, $url, $comment, $type = 'admin')
|
|||
<p>" . nl2br(htmlspecialchars($comment['comment'])) . "</p>
|
||||
<p><a href='" . site_url() . "{$url}#comment-{$comment['id']}'>" . i18n('comment_email_view_comment') . "</a></p>
|
||||
<p> </p>
|
||||
<p>" . i18n('comment_subscribe_unsubscribe_message') . " ".config('blog.title')." " . i18n('comment_subscribe_unsubscribe_anytime') . ": <a href=\"".config('site.url')."?unsubscribe=".encryptEmailForFilename($to, comments_config('comments.salt'))."\"><b>" . i18n('comment_unsubscribe') . "</b></a>.</p>
|
||||
<p>" . i18n('comment_subscribe_unsubscribe_message') . " ".config('blog.title')." " . i18n('comment_subscribe_unsubscribe_anytime') . ": <a href=\"".config('site.url')."?unsubscribe=".encryptEmailForFilename($to, config('comments.salt'))."\"><b>" . i18n('comment_unsubscribe') . "</b></a>.</p>
|
||||
<p> </p>
|
||||
";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue