projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrates the PlSet views to hruid.
[platal.git]
/
bin
/
cron
/
notifs.birthday.php
diff --git
a/bin/cron/notifs.birthday.php
b/bin/cron/notifs.birthday.php
index
ca27d84
..
542f67f
100755
(executable)
--- a/
bin/cron/notifs.birthday.php
+++ b/
bin/cron/notifs.birthday.php
@@
-26,6
+26,9
@@
$date = date('Y-m-d', time() + 7 * 24*60*60);
$stamp = date('Ymd000000');
$like = date('%-m-d', time() + 7 * 24*60*60);
$stamp = date('Ymd000000');
$like = date('%-m-d', time() + 7 * 24*60*60);
+XDB::execute("DELETE FROM watch_ops
+ WHERE cid = 4 AND date < CURDATE()");
+
XDB::execute("INSERT INTO watch_ops (uid, cid, known, date)
SELECT user_id, 4, $stamp, '$date'
FROM auth_user_md5
XDB::execute("INSERT INTO watch_ops (uid, cid, known, date)
SELECT user_id, 4, $stamp, '$date'
FROM auth_user_md5