Commit | Line | Data |
---|---|---|
b42b2bf9 H |
1 | #!/usr/bin/php |
2 | <?php | |
a3be90c6 | 3 | /* |
4 | * Script that XXX put xapian here? | |
5 | * Called XXX | |
6 | */ | |
7 | ||
8 | // Use relative address of config file | |
9 | // Change this, if you move you cron directory. | |
10 | $dir=substr(__FILE__, 0, strrpos(__FILE__, '/')); | |
ccb9c667 | 11 | require_once($dir.'/../wwwroot/config/config.inc'); |
a3be90c6 | 12 | |
ccb9c667 | 13 | require_once(INCLUDE_DIR.'/database.inc'); |
b42b2bf9 H |
14 | |
15 | $db = new CLASS_DATABASE(); | |
16 | $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;'); | |
17 | ?> |