<?php
include './db.inc';
include './db_twits.inc';
$twits = new twits;
header("Content-type: application/json");
switch($_REQUEST['action']) {
case 'remove_old':
$twits->remove_old($query,$_SERVER['REQUEST_TIME']-(14*24*3600));
echo json_encode('update'=>'Old tweets have been removed');
break;
}
?>