Exemplo n.º 1
0
    function buildValidateLink($link, $level)
    {
        if (substr($link->url, 0, 4) != 'http' || !$link->validate) {
            return;
        }
        $validationIconSrc = 'validate.php?id=' . $link->id . '&uniq=' . SB_StopWatch::getMicroTime();
        if (strlen($link->favicon) && $this->deleteInvalidFavicons && !$this->fc->isFaviconCached($link->favicon)) {
            $this->tree->updateLink($link->id, array('favicon' => ''), false);
        }
        if ($this->discoverMissingFavicons) {
            $validationIconSrc .= '&get_favicon=1';
        }
        $url = SB_Page::quoteValue($link->url);
        $name = SB_Page::quoteValue($link->name);
        $this->linkCount++;
        $this->fields['-raw' . $this->counter++ . '-'] = <<<__LINK
<div class="link">
    <img class="favicon" height=16 width=16 src="{$validationIconSrc}" alt="">
    <a href="{$url}">{$name}</a>
</div>
__LINK;
    }
Exemplo n.º 2
0
 function _buildUserList($select = null, $exclude = null)
 {
     foreach ($this->um->getUsers() as $uid => $rec) {
         if (!$this->matchesUserFilter($rec)) {
             continue;
         }
         if ($uid == $exclude) {
             continue;
         }
         echo '<option ' . ($select == $uid ? 'selected' : '') . ' value="' . $uid . '">' . SB_Page::quoteValue($rec['completenamehtml']) . "</option>\n";
     }
 }