class preprocessing_youtube extends phpajax
{
var $inputs = array('title','desc','cat','keyword');
var $hotkeys="shift-u";
function loading()
{
aprint('loading', 'Preprocessing...');
ashow('loading');
}
function main()
{
global $dbute;
foreach ($this as $k => $v)
$$k = & $this->$k;
$code=YT_KEY_DEV;
$dtube = new dtube($code,"http://cesar.la/",YT_USER,YT_PASS);
$e=$dtube->upload($title,$desc,$cat,$keyword);
if ( $e == false)
{
alert("Unexpected error");
return;
}
#here we need to submit our form
aprint("url",$e[0]);
#our token
aprint("token",$e[1]);
#trigger the upload
js("yt_do_upload();");
}
}
Pergunta
zulian
Pessoal tenho essa class :
class preprocessing_youtube extends phpajax { var $inputs = array('title','desc','cat','keyword'); var $hotkeys="shift-u"; function loading() { aprint('loading', 'Preprocessing...'); ashow('loading'); } function main() { global $dbute; foreach ($this as $k => $v) $$k = & $this->$k; $code=YT_KEY_DEV; $dtube = new dtube($code,"http://cesar.la/",YT_USER,YT_PASS); $e=$dtube->upload($title,$desc,$cat,$keyword); if ( $e == false) { alert("Unexpected error"); return; } #here we need to submit our form aprint("url",$e[0]); #our token aprint("token",$e[1]); #trigger the upload js("yt_do_upload();"); } }Ae tento executa-la :E nada acontece ? :wacko:
alguém pode ajudar ? :mellow:
vlw por enquanto
Link para o comentário
Compartilhar em outros sites
6 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.