include_once './plugins/video/youtube.class.php'; $jutjub = new YouTube(); $youtube = $jutjub->EmbedVideo($Message, C_VIDEO_WIDTH, C_VIDEO_HEIGHT); $NewMsg .= "<font class=\"notify\"><img src=\"images/icons/youtube.png\" border=0 alt='YouTube' title='YouTube'> <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 valign=\"top\">" . $youtube . "</td></tr></table>"; } elseif ($User == "SYS video") { //require EmbeVi Class include_once 'plugins/video/embevi.class.php'; //instantiate EmbeVi class $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='© " . $ealt . "' title='© " . $ealt . "'> <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>';