ajax.php
changeset 714 2f1706c4231f
parent 685 17ebe24cdf85
child 800 9cdfe82c56cd
equal deleted inserted replaced
713:6865705ec8a6 714:2f1706c4231f
   467         die('userlist = new Array(); namelist = new Array(); errorstring=\'No page matches found.\'');
   467         die('userlist = new Array(); namelist = new Array(); errorstring=\'No page matches found.\'');
   468       }
   468       }
   469       break;
   469       break;
   470     case "preview":
   470     case "preview":
   471       require_once(ENANO_ROOT.'/includes/pageutils.php');
   471       require_once(ENANO_ROOT.'/includes/pageutils.php');
       
   472       $template->init_vars();
   472       echo PageUtils::genPreview($_POST['text']);
   473       echo PageUtils::genPreview($_POST['text']);
   473       break;
   474       break;
   474     case "pagediff":
   475     case "pagediff":
   475       require_once(ENANO_ROOT.'/includes/pageutils.php');
   476       require_once(ENANO_ROOT.'/includes/pageutils.php');
   476       $id1 = ( isset($_GET['diff1']) ) ? (int)$_GET['diff1'] : false;
   477       $id1 = ( isset($_GET['diff1']) ) ? (int)$_GET['diff1'] : false;