html_separator();
?>
	<?php 
html_titleline(gettext("Node A settings"));
?>
	<?php 
html_inputbox("aname", gettext("Node Name"), $pconfig['aname'], "", false, 40);
?>
	<?php 
html_inputbox("apath", gettext("Path"), $pconfig['apath'], sprintf(gettext("Path to the local device. (e.g. %s)"), "/dev/da1"), false, 40);
?>
	<?php 
html_inputbox("aremoteaddr", gettext("Node B IP address"), $pconfig['aremoteaddr'], gettext("Address of the remote hastd daemon. It must be a static IP address."), false, 40);
?>
	<?php 
html_separator();
?>
	<?php 
html_titleline(gettext("Node B settings"));
?>
	<?php 
html_inputbox("bname", gettext("Node Name"), $pconfig['bname'], "", false, 40);
?>
	<?php 
html_inputbox("bpath", gettext("Path"), $pconfig['bpath'], sprintf(gettext("Path to the local device. (e.g. %s)"), "/dev/da1"), false, 40);
?>
	<?php 
html_inputbox("bremoteaddr", gettext("Node A IP address"), $pconfig['bremoteaddr'], gettext("Address of the remote hastd daemon. It must be a static IP address."), false, 40);
?>
	</table>
	<div id="submit">
Beispiel #2
0
function getContentByJavascript($url, $num)
{
    $html = file_get_contents($url);
    $content_position = getPosition($html, "\$.MSNImageSlider.Images");
    $content_endPosition = getPosition($html, "\$.MSNImageSlider.Index");
    $content = substr($html, $content_position, $content_endPosition - $content_position);
    $tag_position = getPosition($content, "[");
    $tag_endPosition = getPosition($content, "]");
    $content = substr($content, $tag_position + 1, $tag_endPosition - $tag_position - 1);
    $array = html_separator($content, "}");
    foreach ($array as $key => $value) {
        if ($tag_position = strpos($value, "{")) {
            $content = substr($value, $tag_position + 1);
            $content_array = html_separator($content, ",");
            foreach ($content_array as $content_key => $content_html) {
                if (strpos($content_html, "src")) {
                    $tag_position = getPosition($content_html, "'");
                    $tag_endPosition = getPosition($content_html, "'", "last");
                    $content = substr($content_html, $tag_position, $tag_endPosition - $tag_position + 1);
                    echo "<img src=" . $content . "></img>";
                    echo "<br />";
                }
                if (strpos($content_html, "text")) {
                    $tag_position = getPosition($content_html, "'");
                    $tag_endPosition = getPosition($content_html, "'", "last");
                    $content = substr($content_html, $tag_position + 1, $tag_endPosition - $tag_position - 1);
                    echo $content;
                    echo "<br />";
                }
            }
        }
    }
}