diff --git a/emailPoubelle.php b/emailPoubelle.php index c37b1fc..b5be640 100644 --- a/emailPoubelle.php +++ b/emailPoubelle.php @@ -107,6 +107,14 @@ switch ($action) { $get_value = urlUnGen($_GET['value']); DeleteAlias($get_value['id'], $get_value['alias_full']); break; + case "cron" : + if (CRON) { + echo '
Version = VERSION ?> - Créé par David Mercereau sous licence GNU GPL v3
Télécharger et utiliser ce script sur le site du projet emailPoubelle.php
- + diff --git a/lib/ep_function.php b/lib/ep_function.php index ff15f26..caa2d92 100644 --- a/lib/ep_function.php +++ b/lib/ep_function.php @@ -299,4 +299,16 @@ function CheckUpdate() { } } } + +function LifeExpire() { + global $dbco; + try { + $deletecmd = $dbco->prepare("DELETE FROM ".DBTABLEPREFIX."alias WHERE dateExpir IS NOT NULL AND dateExpir < '".date('Y-m-d H:i:s')."'"); + $deletecmd->execute(); + } catch ( PDOException $e ) { + echo "DB error : ", $e->getMessage(); + die(); + } + return true; +} ?> diff --git a/www/template-exemple/style.css b/www/template-exemple/style.css index 0f0a9a1..3342dc4 100644 --- a/www/template-exemple/style.css +++ b/www/template-exemple/style.css @@ -248,6 +248,9 @@ article form { text-shadow : 0 -1px 1px rgba(0,0,0,0.25); width : 25%; } + article input.button:disabled, .btn{ + color: #888; + } article textarea { height : 100px; }