diff options
author | friendica <info@friendica.com> | 2013-10-10 16:15:54 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-10-10 16:15:54 -0700 |
commit | 6ac0a84fac9d477c2c1347bd057692c21cc0db3f (patch) | |
tree | e59d3871536d942fe824e901a56472a1dd1eab5e /boot.php | |
parent | a92e1c617b5584329939081c85e35ee60e3f1332 (diff) | |
parent | 71f22b20f44563a19ba242ba941e2fc452fe56ce (diff) | |
download | volse-hubzilla-6ac0a84fac9d477c2c1347bd057692c21cc0db3f.tar.gz volse-hubzilla-6ac0a84fac9d477c2c1347bd057692c21cc0db3f.tar.bz2 volse-hubzilla-6ac0a84fac9d477c2c1347bd057692c21cc0db3f.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1239,7 +1239,13 @@ function check_config(&$a) { $func = 'update_r' . $x; $retval = $func(); if($retval) { + // Prevent sending hundreds of thousands of emails by creating + // a lockfile. view/tpl/smarty3 is the only place we can + // guarantee the server can write to. + if (file_exists('view/tpl/smarty3/mailsent')) + return; //send the administrator an e-mail + file_put_contents('view/tpl/smarty3/mailsent', $x); $email_tpl = get_intltext_template("update_fail_eml.tpl"); $email_msg = replace_macros($email_tpl, array( |