Ejemplo n.º 1
0
if ($message->hasErrors()) {
    echo '
					<div class="failed">' . implode("</div>\n<div class=\"failed\">", $message->errors()) . '</div>';
}
if ($message->hasWarnings()) {
    echo '
					<div class="notice">' . implode(',<br/><li>', $message->warnings()) . '</div>';
}
if ($message->hasMessages()) {
    echo '
					<div class="success">' . implode("</div>\n<div class=\"success\">", $message->messages()) . '</div>';
}
echo implode(",<br />\n", $message->messages());
$form->displayFormHeader();
$form->displayFormBody();
$button->display();
$form->displayFormFooter();
echo '
				<h1 class="legend">Legend</h1>
				
				<div class="noticeHeader"><img src="static/images/notice.png" align="middle" border="0" alt="notice" title="notice" />&nbsp;Origin</div>
				<div class="description">This port knocking client is based on <a href="http://cipherdyne.org/fwknop/" target="_blank">fwknop</a>. For more information read their <a href="http://cipherdyne.org/fwknop/docs/" target="_blank">documentation</a>.
				</div>

				<div class="noticeHeader"><img src="static/images/notice.png" align="middle" border="0" alt="notice" title="notice" />&nbsp;Return message</div>
				<div class="description">It is important to understand, that even if the client send out a correct knock and returns success, you cannot be sure to have an open port. This is based on the fact, that the knocking daemon doesn\'t return anything. So the client is unable to tell, if the request did, what you wanted it to do.
				</div>

			</div>
		</div>
	</div>