Browse Source

clear script

master
Robin Thoni 10 years ago
parent
commit
25703378bf
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      misc/api.vdm-clear.php

+ 8
- 0
misc/api.vdm-clear.php View File

@@ -0,0 +1,8 @@
1
+<?php
2
+require_once "../sql.php";
3
+function clear()
4
+{
5
+  database_exec("DELETE FROM tokens WHERE `date` < ADDDATE(CURRENT_TIMESTAMP, -1)");
6
+}
7
+clear();
8
+?>

Loading…
Cancel
Save