Commit | Line | Data |
---|---|---|
b42b2bf9 H |
1 | #!/usr/bin/php |
2 | <?php | |
3 | require('/storage/system/www-root/kyberia.sk/config/config.inc'); | |
4 | require(SYSTEM_ROOT.'/inc/database.inc'); | |
5 | require(SYSTEM_ROOT.'/inc/senate.inc'); | |
6 | ||
7 | $db = new CLASS_DATABASE(); | |
8 | $db->query('insert into node_content select node_id,node_content from nodes where ( DATE_SUB(CURDATE(),INTERVAL 2 DAY) < node_created OR DATE_SUB(CURDATE(),INTERVAL 2 DAY) < node_updated) ON DUPLICATE KEY UPDATE node_content.node_content = nodes.node_content;'); | |
9 | ?> |