aboutsummaryrefslogtreecommitdiff
path: root/Autres/crontab.php
blob: b23b83ccef20df91338a0f35bfd1103686a2267c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

//Identifiants SQL
define('DBHOST','localhost');
define('DBUSER','c4_freetorrent');
define('DBPASS','1b10"yujl/qnN2)?L{WtT]),%s)y|(Tm');
define('DBNAME','c4_freetorrent');

//Connexion SQL
$db = new PDO("mysql:host=".DBHOST.";port=8889;dbname=".DBNAME, DBUSER, DBPASS);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

$stmt = $db->query('DELETE FROM xbt_announce_log WHERE mtime < (NOW() - INTERVAL 59 MINUTE)');
?>