Esempio n. 1
0
 function reportSlideChanges()
 {
     $this->_template->disableHeader();
     $this->_template->disableFooter();
     $id = @$_GET['slide'];
     $compareTo = @$_GET['compareTo'];
     if (!isset($id)) {
         die("Error in receiving Slide id!");
     }
     $slide1 = new Slide();
     $slide2 = new Slide();
     $slide1->createFromIDLite($id);
     if (!isset($compareTo)) {
         $slide2->id = $slide1->getPreviousRevisionID();
     } else {
         $slide2->id = $compareTo;
     }
     $slide2->createFromIDLite($slide2->id);
     //$slide2->content=$this->tidyhtml($slide2->content);
     //$slide1->content=$this->tidyhtml($slide1->content);
     $this->set('new_content', htmlspecialchars($slide1->content));
     $this->set('old_content', htmlspecialchars($slide2->content));
     $this->set('slide_id', $id);
     //echo $this->htmlDiff($slide2->content, $slide1->content);
 }