DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:new_page_dialog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:new_page_dialog [2016-01-26 17:27] Aleksandrplugin:new_page_dialog [2023-09-01 16:23] (current) Klap-in
Line 11: Line 11:
 conflicts  conflicts 
 similar    : addnewpage, npd similar    : addnewpage, npd
-tags       : button, form, create+tags       : button, form, create, !obsolete
  
 downloadurl: https://github.com/caillou/dokuwiki-plugin-npd/tarball/master downloadurl: https://github.com/caillou/dokuwiki-plugin-npd/tarball/master
 sourcerepo : https://github.com/caillou/dokuwiki-plugin-npd sourcerepo : https://github.com/caillou/dokuwiki-plugin-npd
 bugtracker : https://github.com/caillou/dokuwiki-plugin-npd/issues bugtracker : https://github.com/caillou/dokuwiki-plugin-npd/issues
 +
 +securityissue: XSS vulnerability, not escaped properly.
 ---- ----
  
Line 36: Line 38:
 Decide where you want to insert the "Create New Page" button in your template and insert the following code: Decide where you want to insert the "Create New Page" button in your template and insert the following code:
 <code php> <code php>
-if (!plugin_isdisabled('npd') && ($npd =plugin_load('helper', 'npd'))) { +if (!plugin_isdisabled('npd') && ($npd = plugin_load('helper', 'npd'))) { 
     $npd->html_new_page_button();     $npd->html_new_page_button();
 } }
Line 45: Line 47:
 <code html> <code html>
 <div class="bar-right" id="bar__bottomright"> <div class="bar-right" id="bar__bottomright">
-  <?php if (!plugin_isdisabled('npd') && ($npd =plugin_load('helper', 'npd'))) $npd->html_new_page_button(); ?>+  <?php if (!plugin_isdisabled('npd') && ($npd = plugin_load('helper', 'npd'))) $npd->html_new_page_button(); ?>
   <?php tpl_button('subscription')?>   <?php tpl_button('subscription')?>
   <?php tpl_button('admin')?>   <?php tpl_button('admin')?>
Line 187: Line 189:
         if( $INFO['exists'] === true ) tpl_button('edit') ;         if( $INFO['exists'] === true ) tpl_button('edit') ;
                 
-        if (!plugin_isdisabled('npd') && ($npd =plugin_load('helper', 'npd'))) { +        if (!plugin_isdisabled('npd') && ($npd = plugin_load('helper', 'npd'))) { 
     $npd->html_new_page_button();     $npd->html_new_page_button();
  }  }
plugin/new_page_dialog.1453825648.txt.gz · Last modified: 2016-01-26 17:27 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki