Changeset 3 for scripts/check.php
- Timestamp:
- May 5, 2008, 8:33:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/check.php
r1 r3 2 2 require ('../includes/config.php'); 3 3 $db = new tMySql; 4 5 6 7 4 $db->dbServer = $db_config['host']; 5 $db->dbUser = $db_config['user']; 6 $db->dbPassword = $db_config['pass']; 7 $db->dbName = $db_config['name']; 8 8 $db->connect(); 9 9 10 $db->query('del', 'select `id`, `created` from `servers` where (`online`/`online_checks`) <0.8');10 $db->query('del', 'select `id`, `created` from `servers` where (`online`/`online_checks`) < 0.8'); 11 11 while ($row = $db->fetch_assoc('del')) 12 { 13 if (($row['created'] + 3600 * 24 * 3) < time()) 12 14 { 13 if (($row['created']+3600*24*3)<time())14 {15 15 delserver($row['id']); 16 }17 16 } 17 } 18 18 ?>
Note:
See TracChangeset
for help on using the changeset viewer.