예제 #1
0
        public ActionResult nightlyjobs(bool Zapier, string zapKeyWord)
        {
            //Very poor authentication. But it's better than nothing!
            if (zapKeyWord == "zapKey31678")
            {
                Maintenance.DeleteRawVideoFiles();
                Maintenance.DeleteOldPDFs();
                Maintenance.DeleteOldVHDs();
                Email.sendAdminMessage("Performed Nightly Maintance");
            }

            return(Json(new { result = "bla" }));
        }