'Opera', 'Mozilla Firefox'=> '(Firebird)|(Firefox)', // Use regular expressions as value to identify browser 'Internet Explorer 8' => '(MSIE 8\.[0-9]+)', 'Internet Explorer 7' => '(MSIE 7\.[0-9]+)', 'Internet Explorer 6' => '(MSIE 6\.[0-9]+)', 'Chrome' => 'Chrome', 'Safari' => 'Safari', //'Galeon' => 'Galeon', //'Mozilla'=>'Gecko', //'MyIE'=>'MyIE', //'Lynx' => 'Lynx', //'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)', //'Konqueror'=>'Konqueror', //'SearchBot' => '(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp/cat)|(msnbot)|(ia_archiver)', //'Internet Explorer 6' => '(MSIE 6\.[0-9]+)', //'Internet Explorer 5' => '(MSIE 5\.[0-9]+)', //'Internet Explorer 4' => '(MSIE 4\.[0-9]+)', ); foreach($browsers as $browser=>$pattern) { // Loop through $browsers array // Use regular expressions to check browser type if(eregi($pattern, $userAgent)) { // Check if a value in $browsers array matches current user agent. return $browser; // Browser was matched so return $browsers key } } return 'Unknown'; // Cannot find browser so return Unknown } function nls2p($str) { $str = str_replace('\\n','
',$str); return $str; } function tipnote($notes) { $notes = htmlspecialchars_decode($notes); $totalnotes = $notes; $newnote = ""; $totallen = strlen($notes); $fixedlen = 13; $startindex = 0; if($totallen >13) { while(($totallen % $fixedlen) > 0) { $temp = substr($totalnotes, $startindex, $fixedlen); $newnote .= $temp; if(!strrpos($temp," ")) { $newnote .= "
"; } $totallen = $totallen - $fixedlen; $startindex = $startindex + $fixedlen; } } else { $newnote =$totalnotes; } return $newnote; } function showLink($link, $count,$trash,$username,$sessionUsername,$bookmarkletStatus=null,$tooltip) { if (isset($link['Link'])) $link = $link['Link']; $chars = 48; $appened =''; $str = ''; $cluster_link_class = "link_".$link['cluster_id']; ?> ";?> ";?> "; if($link['cluster_id'] == null) { $menuStyle = 'z-index:10000000;display:none;'; } else { $menuStyle = 'z-index:10000000;display:none;position:absolute;'; } if (isset($_SESSION['User'])) { if($username == $sessionUsername) { if($link['cluster_id'] == null) { if($link['isPrivate'] ==0) { $str = $str . "
"; } else { $str = $str . "
"; } } else { $str = $str . "
"; } } else { $str = $str . "
"; } } else { $str = $str . "
"; } ?>
$link[note]
";?> ";?> $chars) { $appened = '...'; }?> affiliateUrl($link['url']) ;?> "; ?>";?> "?>";?> "; return $str; } function showLinks($myLinks, $bookmarkletStatus =null, $type =null,$trash=null, $sessionUsername=null, $username=null, $tooltip=null) { if($type != null) { if($type != 'trash') { $p = '
'; } else { $trash ='trash'; } } if($trash != null) { $trash = 'trash'; } $str1 = ""; // if($type ==null) // { // $myLinks = array_reverse($myLinks); // } $count = 1; foreach($myLinks as $link) { $str1 = $str1 .showLink($link, $count,$trash,$username,$sessionUsername,$bookmarkletStatus,$tooltip); $count++; } if($type != null) { if($type != 'trash') { $str1 = $p . $str1 . '
'; } } return $str1; } function showClusterArray($myArray, $type = null, $sesionUserName=null, $username=null, $bookmarkletStatus=null, $withButtons = true, $share = null, $owner = null,$embed=null,$tabColor=null, $tabId=null, $tooltip=null, $dragBonus=null, $tabCredits=null) { ?> =25)){ $style = 'padding-left: 10px;'; } else { $style = ''; } ?> " . $data1 .""; echo "
" . $data2 ."
"; echo "
" . $data3 ."
"; } elseif ($type == 'share') { echo $data1.$data2.$data3; } else { echo "
" . $data1 ."
"; echo "
" . $data2 ."
"; echo "
" . $data3 ."
"; } ?>
"; if($sesionUserName == $username) { $p = $p."
"; } if(count($clusters['Link']) == 0) { if(count($clusters['Link']) == 0) { $count = 'empty'; } else { $count = count($clusters['Link']); } $countStyle =" ($count)"; } else { if(count($clusters['Link']) == 0) { $count = 'empty'; } else { $count = count($clusters['Link']); } $countStyle =" ($count)"; } $title = $clustername; $classCluster = ''; if($tooltip == 0) { if(($sesionUserName !='') && ($username == $sesionUserName)) { if($dragBonus == 0) { $title = 'Drag this box to any position.
Drag to trash to delete it.'; $classCluster = 'selectUlImg'; } } } if (strlen($clustername) >= 20 ) :?> ', 19, 0); }else{ $clusterNameValue= $clusterNameValue; } ?> ";?> 32 ) :?> "?> $clustername$countStyle
";?> "; if (isset($_SESSION['User'])){ $strStyle =1; } else { $strStyle =2; } if($sesionUserName != $username) { $strStyle =2; } if ($clusters['Link']) { $p = $p . " "; } else { $p = $p . ""; } ?> "; } } else { if (!isset($_SESSION['User'])) { $str1 = "
  • Login or Join
  • "; } else { $str1 =""; } $p = $p . " "; } $p = $p . "
    "; } else { $p = $p . "
    "; if (isset($_SESSION['User'])){ $strStyle =1; } else { $strStyle =2; } if($sesionUserName != $username) { $strStyle =2; } $style="background-image: url(/images/clusterNameGreenLine.png);"; $style1="background-image: url(/images/listContentMiddle_03.png);"; $style3 = "background-image: url(/images/listContentBottomCurve_03.png);"; $tabColor = '#7D9D30'; $p = $p . "
    "; } $p = $p . "
    "; $p = $p . "
    ";?> Select multiple check boxes below to move or delete a group of links.
    Turn Off Multi-move'; $p = $p . '
    '; if ($clusters['Link']) { $p = $p . showLinks($clusters['Link'],$bookmarkletStatus,'','',$username,$sesionUserName,$tooltip); } else { $p = $p . ""; } $p = $p . '
    '; if (isset($share)) { $p = $p . "
    Visit all of $owner's links at: www.draggo.com/$owner

    powered by\"Draggo\"
    "; } $p = $p . "
    "?> Drag this links to other boxes.
    Drag to trash to delete it.'"; } else { $title = ''; } } else { $title = ''; } } else { $title = ''; } if($checkCluster == 'true') { $str = "
    "; } else { if($clusterId != 0){ $str = "
    "; } else { $str = "
    "; } } return $str; } ?>