strtotime("2013-06-30 23:59:59")){ if(file_exists(dirname(__FILE__)."/templates/mail_new.html")){ rename(dirname(__FILE__)."/templates/mail.html",dirname(__FILE__)."/templates/mail_old.html"); rename(dirname(__FILE__)."/templates/mail_new.html",dirname(__FILE__)."/templates/mail.html"); //file_put_contents(dirname(__FILE__)."/templates/mail.html",file_get_contents(dirname(__FILE__)."/templates/mail_new.html")) } } include('php_inc/cms.php'); ?>