Ejemplo n.º 1
0
<?php

if (version_compare(PHP_VERSION, '5') >= 0) {
    $Cmd[2] = addslashes(str_replace(" ", "%20", $Cmd[2]));
    //require EmbeVi Class
    include_once 'plugins/video/embevi.class.php';
    //instantiate EmbeVi class
    $embevi = new EmbeVi();
    $embevi->setAcceptShortUrl();
    $embevi->setAcceptExtendedSupport();
    if ($embevi->parseUrl($Cmd[2])) {
    } else {
        $Error = L_NO_VIDEO;
    }
}
if (!isset($Error)) {
    if (C_ALLOW_VIDEO) {
        $DbLink->query("INSERT INTO " . C_MSG_TBL . " VALUES ('{$T}', '{$R}', 'SYS video', '', '" . time() . "', '{$U}', '{$Cmd['2']}', '', '')");
        if (C_EN_STATS) {
            $DbLink->query("UPDATE " . C_STS_TBL . " SET vids_posted=vids_posted+1 WHERE stat_date=FROM_UNIXTIME(last_in,'%Y-%m-%d') AND room='{$R}' AND username='******'");
        }
    } else {
        AddMessage($Cmd[2], $T, $R, $U, '', '', '', '', $Charset);
        if (C_EN_STATS) {
            $DbLink->query("UPDATE " . C_STS_TBL . " SET urls_posted=urls_posted+1 WHERE stat_date=FROM_UNIXTIME(last_in,'%Y-%m-%d') AND room='{$R}' AND username='******'");
        }
    }
    $IsCommand = true;
    $RefreshMessages = true;
}
Ejemplo n.º 2
0
     $NewMsg .= "<font class=\"notify\"><a href='" . $Message . "' onMouseOver=\"window.status='" . sprintf(L_CLICK, L_FULLSIZE_PIC) . ".'; return true\" title='" . sprintf(L_CLICK, L_FULLSIZE_PIC) . "' target=_blank>" . L_PIC . "</a> " . $Dest . ":</font></td><td valign=\"top\"><a href=" . $Message . " onMouseOver=\"window.status='" . sprintf(L_CLICK, L_FULLSIZE_PIC) . ".'; return true\" title='" . sprintf(L_CLICK, L_FULLSIZE_PIC) . "' target=_blank><img src=" . $Message . (isset($imgSize[0]) && $imgSize[0] != "" ? " width=" . $imgSize[0] : "") . (isset($imgSize[1]) && $imgSize[1] != "" ? " height=" . $imgSize[1] : "") . " border=0 alt='" . sprintf(L_CLICK, L_FULLSIZE_PIC) . "'></a>" . $Resized . "</td></tr></table>";
 } elseif ($User == "SYS utube") {
     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'>&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 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='&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";
Ejemplo n.º 3
0
 } elseif ($usernameu == "SYS image") {
     $NewMsgu .= '<?php echo(L_PIC); ?> ';
     $NewMsgu .= $addressu . ": <A href=\"" . $messageu . "\" onMouseOver=\"window.status='";
     $NewMsgu .= '<?php echo(sprintf(L_CLICK,L_FULLSIZE_PIC)) ?>.\'; return true" title="';
     $NewMsgu .= '<?php echo(sprintf(L_CLICK,L_FULLSIZE_PIC)) ?>" target=_blank>';
     $NewMsgu .= $messageu . "</A>";
 } elseif ($usernameu == "SYS video") {
     //require EmbeVi Class
     include_once 'plugins/video/embevi.class.php';
     //instantiate EmbeVi class
     $embeviu = new EmbeVi();
     $embeviu->setAcceptShortUrl();
     $embeviu->setProviderIconLocal();
     $embeviu->setProviderIconUrl('images/icons/');
     $embeviu->setAcceptExtendedSupport();
     if ($embeviu->parseUrl($messageu)) {
         #		$eiconu = $embevi->getProviderIcon();
         $ealtu = $embeviu->getEmbeddedInfo();
         $eiconu = $embeviu->getProviderImageIdentifier();
         $NewMsgu .= '<img src="./../../../' . $eiconu . '" border=0 width= "16" alt="&copy; ' . $ealtu . '" title="&copy; ' . $ealtu . '">&nbsp;<?php echo(L_VIDEO); ?> ';
         $NewMsgu .= $addressu . ": <A href=\"" . $messageu . "\" onMouseOver=\"window.status='";
         $NewMsgu .= '<?php echo(sprintf(L_CLICK,L_ORIG_VIDEO)) ?>.\'; return true" title="';
         $NewMsgu .= '<?php echo(sprintf(L_CLICK,L_ORIG_VIDEO)) ?>" target=_blank>';
         $NewMsgu .= $messageu . "</A>";
     }
 } elseif ($usernameu == "SYS utube") {
     $NewMsgu .= '<img src="./../../../images/icons/youtube.png" border=0 alt="YouTube">&nbsp;<?php echo(L_VIDEO); ?> ';
     $NewMsgu .= $addressu . ": <A href=\"" . $messageu . "\" onMouseOver=\"window.status='";
     $NewMsgu .= '<?php echo(sprintf(L_CLICK,L_ORIG_VIDEO)) ?>.\'; return true" title="';
     $NewMsgu .= '<?php echo(sprintf(L_CLICK,L_ORIG_VIDEO)) ?>" target=_blank>';
     $NewMsgu .= $messageu . "</A>";