function Render()
 {
     $vars = array();
     $vars['img'] = $this->img;
     $tpl = new Template();
     echo $tpl->Process(BASE_PATH . 'view.tpl', $vars);
 }
 function Render()
 {
     $vars = array();
     $vars['img'] = $this->img;
     $vars['code'] = _POST('code');
     $vars['code_error'] = $this->codeError;
     $tpl = new Template();
     echo $tpl->Process(BASE_PATH . 'remove.tpl', $vars);
 }
Example #3
0
 public function Process($owner = NULL)
 {
     Core::Output(MESSAGE, "Processing View \"" . $this->getName() . "\" (" . $this->getPath() . ")");
     if ($owner == NULL) {
         parent::Process($this);
     } else {
         parent::Process($owner);
     }
     $this->content = $this->project->ConvertPathing($this->content, 'src="', '"');
     $this->content = $this->project->ConvertPathing($this->content, 'href="', '"');
 }
 function Render()
 {
     $vars = array();
     $vars['upload_url'] = $this->GetPostUrl();
     $vars['upload_type'] = _POST('upload_type', 'file');
     $vars['upload_error'] = $this->uploadError;
     $vars['email_error'] = $this->emailError;
     $vars['adsense_id'] = $this->GetAdsenseId();
     $vars['email'] = $this->GetEmail();
     $vars['thumb_size'] = _POST('thumb_size', '150x112');
     $vars['description'] = _POST('description');
     $vars['resize_options'] = $this->resizeOptions;
     $tpl = new Template();
     echo $tpl->Process(BASE_PATH . 'index.tpl', $vars);
 }