boinc/html/ops/delete_expired_tokens.php

13 lines
270 B
PHP
Executable File

#!/usr/bin/env php
<?php
require_once("../inc/util.inc");
require_once("../inc/boinc_db.inc");
echo "Starting: ", time_str(time()), "\n";
$num_deleted = BoincToken::delete_expired();
echo $num_deleted, " tokens deleted\n";
echo "Finished: ", time_str(time()), "\n";