ajax.php
changeset 734 904fbf10f112
parent 714 2f1706c4231f
child 800 9cdfe82c56cd
equal deleted inserted replaced
712:331e009416d5 734:904fbf10f112
   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;