Ejemplo n.º 1
0
     $embevi = new EmbeVi();
     $embevi->setAcceptShortUrl();
     $embevi->setProviderIconLocal();
     $embevi->setProviderIconUrl('images/icons/');
     $embevi->setAcceptExtendedSupport();
     if ($embevi->parseUrl($Message)) {
         //set embeded width
         $embevi->setWidth(C_VIDEO_WIDTH);
         //set embeded height
         $embevi->setHeight(C_VIDEO_HEIGHT);
         //get the icon from the provider info
         $ealt = $embevi->getEmbeddedInfo();
         #					$eicon = $embevi->getEmbeddedIcon();
         $eicon = $embevi->getProviderImageIdentifier();
         //display video and embeded code
         $video = $embevi->getCode();
         $NewMsg .= "<font class=\"notify\"><img src=\"" . $eicon . "\" border=0 width='16' alt='&copy; " . $ealt . "' title='&copy; " . $ealt . "'>&nbsp;<a href='" . $Message . "' onMouseOver=\"window.status='" . sprintf(L_CLICK, L_ORIG_VIDEO) . ".'; return true\" title='" . sprintf(L_CLICK, L_ORIG_VIDEO) . "' target=_blank>" . L_VIDEO . "</a> " . $Dest . ":</font></td><td width=\"99%\" valign=\"top\">" . $video . "</td></tr></table>";
     }
 } elseif ($User == "SYS room") {
     $Message = "<I>" . ROOM_SAYS . " <FONT class=\"notify\">" . $Message . "</FONT></FONT></I></td></tr></table>";
     $noteclass = "notify2";
 } elseif ($User == "SYS math") {
     $Equation = '<a onClick="window.parent.math_popup(); return false" title="' . sprintf(L_CLICKS, L_LINKS_15, L_LINKS_20) . '" onMouseOver="window.status=\'' . sprintf(L_CLICKS, L_LINKS_15, L_LINKS_20) . '.\'; return true" target="_blank">' . L_EQUATION . '</a>';
     $MathDest = sprintf(L_MATH, $Equation, $Dest);
     $Message = "<FONT class=\"notify\">" . $MathDest . "</FONT></td></tr></table>";
     $noteclass = "notify";
 } elseif (substr($User, 0, 8) != "SYS dice") {
     if ($Dest != "") {
         $NewMsg .= "</td><td width=\"1%\" nowrap=\"nowrap\" valign=\"top\"><B>" . $colornamedest_tag . "[" . htmlspecialchars(stripslashes($Dest)) . "]" . $colornamedest_endtag . "></B><BDO dir=\"{$textDirection}\"></BDO> ";
     }
     $noteclass = "notify";