Success");
if($msg)echo("
".$msg."");
echo("
");
}
function successMsg($msg,$left=550,$top=10){
// this used to be used to do closeUtil()
global $movers;
echo("Success!");
if($msg)echo("
".$msg."
");
echo("");
//echo("
");
}
function errorMsg($msg,$left=550,$top=10){
echo("Error
".$msg."
");
}
function reload(){
//echo("");
echo("");
}
function myGet($x){ if(isset($_GET[$x]))$v=$_GET[$x]; else $v=""; return $v;}
function myPost($x){ if(isset($_POST[$x]))$v=$_POST[$x]; else $v=""; return $v;}
function rqst($x){$v=myGet($x);if($v=="")$v=myPost($x);return $v;}
function rqstq($x){return myGet($x);}
function getIF($x){$v=myGet($x); if(!empty($v))return "\$".$x."='".$v."';"; return ""; }
function mySession($x){ if(isset($_SESSION[$x])) $v=$_SESSION[$x]; else $v=""; return $v; }
function myCookie($x){ if(isset($_COOKIE[$x])) $v=$_COOKIE[$x]; else $v=""; return $v; }
function opacityTxt($i){ $i=_rep($i,"%",""); return "filter:alpha(opacity = ".$i."); moz-opacity:".($i/100)."; opacity:".($i/100).";";}
function reloadSlideshow(){echo("");exit();}
function reloadMsg($msg,$dir){echo("");}
function wrt($s){echo($s);}
function wrtb($s){echo($s."
");}
function _in($txt,$v){if(empty($txt) || empty($v))return 0;
//wrtb("
".$txt."-contains?-".$v."
");;
$r=strpos($txt,$v);if($r===false)return 0;return 1;}
function _ix($txt,$v){if(empty($txt) || empty($v))return false;$r=strpos($txt,$v);if($r===false)return -1;return $r;}
function _rep($txt,$v1,$v2){return str_replace($v1,$v2,$txt);}
function _split($txt,$v){return explode($v,$txt);}
//function split($v,$txt){return explode($v,$txt);} // removed in php 7.0.0
function _left($x,$i){return substr($x,0,$i);}
function _right($x,$i){return substr($x,($i*-1));}
function _len($x){return strlen($x);}
function alert($x){echo("");}
function getUrl($url){$url=_rep($url," ","%20"); return file_get_contents($url);}
function xtml($x){return _rep($x,"<","<");}
function _leftStr($txt,$v){ $r=strpos($txt,$v); if(!$r)return $txt; return _left($txt,$r); }
function getDisplayStyle($show){
if($show && $show!="no")return "";
return "display:none;";
}
function getDisplayStyleAND($show1,$show2){
if($show1 && $show1!="no" && $show2 && $show2!="no")return "";
return "display:none;";
}
//--------------------------- GET YOUTUBE TITLE --------------------------------
function getYoutubeTitle($vid){
$json = json_decode(file_get_contents("http://gdata.youtube.com/feeds/api/videos/".$vid."?v=2&alt=jsonc"));
//echo '
';
return $json->data->title;
}
//--------------------------- getYoutubeDetails() ------------------------------
function getYoutubeDetails($v,&$tid,&$tit,&$tim,&$desc,&$views){
global $movers,$roundedcorners;
$tid=fetch($v,"watch?v=","\">",0);
$tmpid=_split($tid,"&");
$tid=$tmpid[0];
$tit=fetch($v,"none;\" href=\"https://www.youtube.com/watch?v=".$tid,"",0);
$a=_split($tit,">");
$tit=$a[1];
$b=_split($tit,"<");
$tit=$b[0];
$tit=_rep($tit,"'","");
$tit=_rep($tit,""","");
$tit=_rep($tit,"&","");
$tit=_rep($tit,";","");
$tit=_rep($tit,"'","");
$tit=_rep($tit,",","");
$tit=_rep($tit,"??","?");
$tim=fetch($v,"font-size: 11px; font-weight: bold;\">","",0);
$desc=fetch($v,"3px 0px;\">","",0);
$desc=_rep($desc,"'","'");
$views=fetch($v,"Views:","",0);
}
?>