public function getcontent()
 {
     $plugin = tyoutubeuploader::instance();
     $lang = $plugin->getlang();
     $args = targs::instance();
     $args->devkey = $plugin->devkey;
     $args->secret = $plugin->secret;
     $args->formtitle = $lang->optionstitle;
     $html = THtmlResource::instance();
     $result = sprintf('<p>%s <a href="http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html">http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html</a></p>', $lang->registerapp);
     $result .= $html->adminform('[text:secret]', $args);
     $result .= '<p><a href="' . litepublisher::$options->url . '/admin/youtube/getrequest.htm">' . $lang->getrequest . '</a></p>';
     return $result;
 }
Ejemplo n.º 2
0
 public function congratulation($password)
 {
     global $lang;
     $tml = file_get_contents(litepublisher::$paths->lib . 'install' . DIRECTORY_SEPARATOR . 'install.congratulation.tml');
     $html = THtmlResource::instance();
     $html->section = 'installation';
     $lang = tlocal::instance('installation');
     $args = targs::instance();
     $args->title = litepublisher::$options->name;
     $args->url = litepublisher::$options->url . '/';
     $args->password = $password;
     $content = $html->parsearg($tml, $args);
     $this->echohtml($content);
 }