<?php
######################################
#Автор daranger
#url :wm-scripts.ru
#icq: 403-964-898
######################################
$time = time();
$db->Query("DELETE FROM wm_ads_banner WHERE `date_end`<'$time'");
$db->Query("DELETE FROM wm_ads_slink WHERE `date_end`<'$time'");
$db->Query("DELETE FROM wm_link WHERE `date_end`<'$time'");
$db->Query("DELETE FROM wm_single WHERE `date_end`<'$time'");