Exemple #1
0
function getImgUrlList($content)
{
    $i = '';
    $s = '';
    $YuanStr = '';
    $TempS = '';
    $LalType = '';
    $nLen = '';
    $LalStr = '';
    $c = '';
    for ($i = 1; $i <= len($content); $i++) {
        $s = mid($content, $i, 1);
        if ($s == '<') {
            $YuanStr = mid($content, $i, -1);
            $TempS = lCase($YuanStr);
            $LalStr = mid($YuanStr, 1, inStr($YuanStr, '>'));
            $LalType = lCase(mid($TempS, 1, inStr($TempS, ' ')));
            if ($LalType == '<img ') {
                $c = $c . getLinkUrl($LalStr, 'src') . vbCrlf();
                $i = $i + $nLen;
            }
        }
        doEvents();
    }
    $getImgUrlList = $c;
    return @$getImgUrlList;
}
        $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . '/link.php';
    } else {
        $pageURL .= $_SERVER["SERVER_NAME"] . '/link.php';
    }
    return $pageURL;
}
try {
    $knownUser = KnownUserFactory::verifyMd5Hash();
    if ($knownUser == null) {
        header('Location: link.php');
    }
    if ($knownUser->getTimeStamp()->getTimestamp() < time() - 180) {
        header('Location: link.php');
    }
} catch (KnownUserException $ex) {
    header('Location: error.php?queuename=link&t=' . urlencode(getLinkUrl()));
}
//Buffer larger content areas like the main page content
ob_start();
?>
	<h3>Setting up the queue:</h3>
    <ol class="round">
        <li class="one">
            <h5>Write Known User code</h5>
            Add Known User code to the php page. The target php 
            page contains code to extract and persist information about a queue number. </li>
    </ol>

<?php 
//Assign all Page Specific variables
$body = ob_get_contents();