Redirect::Page(URLBuilder::getURL(NULL, 'StationList.php'));
             break;
         }
     }
     $sf->FailTransaction();
 case 'time_clock_command':
     if (getTTProductEdition() >= 15 and $action != 'submit') {
         //Debug::setVerbosity(11);
         Debug::Text('Time Clock Command: ' . $data['time_clock_command'], __FILE__, __LINE__, __METHOD__, 10);
         $tc = new TimeClock($data['type']);
         $tc->setIPAddress($data['source']);
         $tc->setPort($data['port']);
         //$tc->setUsername( $data['user_name'] );
         $tc->setPassword($data['password']);
         $slf = new StationListFactory();
         $slf->getByIdAndCompanyId($data['id'], $current_company->getId());
         if ($slf->getRecordCount() == 1) {
             $s_obj = $slf->getCurrent();
         }
         $s_obj->setLastPunchTimeStamp($s_obj->getLastPunchTimeStamp());
         if ($s_obj->getTimeZone() != '' and !is_numeric($s_obj->getTimeZone())) {
             Debug::text('Setting Station TimeZone To: ' . $s_obj->getTimeZone(), __FILE__, __LINE__, __METHOD__, 10);
             TTDate::setTimeZone($s_obj->getTimeZone());
         }
         $result_str = NULL;
         switch ($data['time_clock_command']) {
             case 'test_connection':
                 if ($tc->testConnection() == TRUE) {
                     $result_str = TTi18n::gettext('Connection Succeeded!');
                 } else {
                     $result_str = TTi18n::gettext('Connection Failed!');