From 54e5fdcc77667d91d8b7dec15199a7b6428e825e Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Wed, 31 Mar 2010 15:02:36 +0000
Subject: [PATCH] Add a module for /ping that can be used for website
 monitoring utilities.

---
 .../modules/ping/controllers/IndexController.php      | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 application/modules/ping/controllers/IndexController.php

diff --git a/application/modules/ping/controllers/IndexController.php b/application/modules/ping/controllers/IndexController.php
new file mode 100644
index 00000000..de6bd0ff
--- /dev/null
+++ b/application/modules/ping/controllers/IndexController.php
@@ -0,0 +1,11 @@
+<?php
+
+class Ping_IndexController extends Unl_Controller_Action
+{
+	public function indexAction()
+	{
+		$this->getResponse()->setHeader('Content-type', 'text/plain');
+		$this->_disableLayoutAndView();
+		echo 'pong';
+	}
+}
-- 
GitLab