includes/template.php
changeset 677 2a263b598a2b
parent 674 f514dc675f32
child 685 17ebe24cdf85
equal deleted inserted replaced
676:47413d71c2d9 677:2a263b598a2b
  1138       var USER_LEVEL_MEMBER = ' . USER_LEVEL_MEMBER . ';
  1138       var USER_LEVEL_MEMBER = ' . USER_LEVEL_MEMBER . ';
  1139       var USER_LEVEL_CHPREF = ' . USER_LEVEL_CHPREF . ';
  1139       var USER_LEVEL_CHPREF = ' . USER_LEVEL_CHPREF . ';
  1140       var USER_LEVEL_MOD = ' . USER_LEVEL_MOD . ';
  1140       var USER_LEVEL_MOD = ' . USER_LEVEL_MOD . ';
  1141       var USER_LEVEL_ADMIN = ' . USER_LEVEL_ADMIN . ';
  1141       var USER_LEVEL_ADMIN = ' . USER_LEVEL_ADMIN . ';
  1142       var disable_redirect = ' . ( isset($_GET['redirect']) && $_GET['redirect'] == 'no' ? 'true' : 'false' ) . ';
  1142       var disable_redirect = ' . ( isset($_GET['redirect']) && $_GET['redirect'] == 'no' ? 'true' : 'false' ) . ';
  1143       var pref_disable_js_fx = ' . ( @$session->user_extra['disable_js_fx'] == 1 ? '1' : '0' ) . ';
  1143       var pref_disable_js_fx = ' . ( @$session->user_extra['disable_js_fx'] == 1 ? 'true' : 'false' ) . ';
  1144       var csrf_token = "' . $session->csrf_token . '";
  1144       var csrf_token = "' . $session->csrf_token . '";
  1145       var editNotice = \'' . ( (getConfig('wiki_edit_notice')=='1') ? str_replace("\n", "\\\n", RenderMan::render(getConfig('wiki_edit_notice_text'))) : '' ) . '\';
  1145       var editNotice = \'' . ( (getConfig('wiki_edit_notice')=='1') ? str_replace("\n", "\\\n", RenderMan::render(getConfig('wiki_edit_notice_text'))) : '' ) . '\';
  1146       var prot = ' . ( ($protected) ? 'true' : 'false' ) .'; // No, hacking this var won\'t work, it\'s re-checked on the server
  1146       var prot = ' . ( ($protected) ? 'true' : 'false' ) .'; // No, hacking this var won\'t work, it\'s re-checked on the server
  1147       var ENANO_SPECIAL_CREATEPAGE = \''. makeUrl($paths->nslist['Special'].'CreatePage') .'\';
  1147       var ENANO_SPECIAL_CREATEPAGE = \''. makeUrl($paths->nslist['Special'].'CreatePage') .'\';
  1148       var ENANO_CREATEPAGE_PARAMS = \'_do=&pagename='. $urlname_clean .'&namespace=' . $local_namespace . '\';
  1148       var ENANO_CREATEPAGE_PARAMS = \'_do=&pagename='. $urlname_clean .'&namespace=' . $local_namespace . '\';