+ /* if no action is specified, no need to further process this
+ * function here.
+ */
+ if(!isset($_GET['action']) && !isset($_POST['action']))
+ return;
+
+ if(isset($_GET['action']))
+ $action = $_GET['action'];
+ if(isset($_POST['action']))
+ $action = $_POST['action'];
+
+ switch($action) {