plugin:format
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:format [2010-08-25 18:25] – [Discussion] 66.236.69.66 | plugin:format [2023-12-21 19:04] (current) – new download url Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : jason-doku@creativetrax.com | email : jason-doku@creativetrax.com | ||
Line 12: | Line 12: | ||
similar | similar | ||
tags : media, embed, program | tags : media, embed, program | ||
- | ---- | ||
- | ^ Authors | [[jason-doku@creativetrax.com| Jason Grout]] | | + | downloadurl: |
- | ^ Version | 2007-02-22 | + | bugtracker : |
- | ^ Required DokuWiki version | 2006-11-06 | | + | sourcerepo |
- | ^ Download | [[http:// | + | donationurl: |
- | ^ Main page | | | + | |
+ | screenshot_img: | ||
+ | ---- | ||
===== Description ===== | ===== Description ===== | ||
Line 25: | Line 26: | ||
==== DISCLAIMER ==== | ==== DISCLAIMER ==== | ||
+ | |||
This plugin can be **very** dangerous, as it allows anyone who can edit a page on your wiki to potentially execute arbitrary code on your web server. | This plugin can be **very** dangerous, as it allows anyone who can edit a page on your wiki to potentially execute arbitrary code on your web server. | ||
Personally, I am not using the gnuplot configuration noted below, since gnuplot gives the wiki user the ability to execute arbitrary code on the server. | Personally, I am not using the gnuplot configuration noted below, since gnuplot gives the wiki user the ability to execute arbitrary code on the server. | ||
- | The plugin takes precautions in that it does not put any user input on the command line. Instead, all user input is loaded in a file, wrapped in the ' | + | The plugin takes precautions in that it does not put any user input on the command line. Instead, all user input is loaded in a file, wrapped in the ' |
==== Syntax ==== | ==== Syntax ==== | ||
- | After setting up the external programs in the conf/ | + | After setting up the external programs in the '' |
< | < | ||
<format program-name> | <format program-name> | ||
Line 43: | Line 45: | ||
==== Configuration settings ==== | ==== Configuration settings ==== | ||
- | All of the interesting setup happens in the conf/ | + | All of the interesting setup happens in the '' |
- | < | + | < |
$conf['< | $conf['< | ||
'< | '< | ||
Line 56: | Line 58: | ||
The various fields are: | The various fields are: | ||
- | ^ %%< | + | ^ %%< |
^ %%<user name>%% | The user-friendly name of the program | | ^ %%<user name>%% | The user-friendly name of the program | | ||
- | ^ %%< | + | ^ %%< |
- | ^ %%< | + | ^ %%< |
- | ^ %%< | + | ^ %%< |
- | ^ %%< | + | ^ %%< |
- | ^ %%< | + | ^ %%< |
- | Here is an example conf/ | + | Here is an example |
- | < | + | < |
<? | <? | ||
$conf[' | $conf[' | ||
Line 103: | Line 105: | ||
With this setup (assuming that you have all of the right programs in place), you could use gnuplot in a wiki page like this: | With this setup (assuming that you have all of the right programs in place), you could use gnuplot in a wiki page like this: | ||
+ | |||
< | < | ||
<format gnuplot> | <format gnuplot> | ||
Line 110: | Line 113: | ||
and the block of code is replaced by the graph generated by gnuplot. | and the block of code is replaced by the graph generated by gnuplot. | ||
- | You could also use the GNU PIC implementation [[http:// | + | You could also use the GNU PIC implementation [[http:// |
< | < | ||
<format dpic> | <format dpic> | ||
Line 124: | Line 128: | ||
The generated media files are stored in the %%data/ | The generated media files are stored in the %%data/ | ||
+ | ===== Thanks ===== | ||
- | ===== Thanks ===== | ||
This plugin is a modification and generalization of the existing graphviz and gnuplot plugins. | This plugin is a modification and generalization of the existing graphviz and gnuplot plugins. | ||
- | |||
===== Demo ===== | ===== Demo ===== | ||
Line 133: | Line 136: | ||
I've put a short page up demonstrating this plugin at [[http:// | I've put a short page up demonstrating this plugin at [[http:// | ||
- | I've put an other short page up demonstrating this plugin generating sequence diagrams. Look at [[http:// | + | I've put an other short page up demonstrating this plugin generating sequence diagrams. Look at [[http:// |
This demonstrates how to use it with Trace2UML [[http:// | This demonstrates how to use it with Trace2UML [[http:// | ||
+ | |||
<code php> | <code php> | ||
- | | + | ' |
</ | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 155: | Line 151: | ||
On my machine, compiling dpic in safe mode and renaming it to dpic-safe had the consequence that it would not | On my machine, compiling dpic in safe mode and renaming it to dpic-safe had the consequence that it would not | ||
produce output when called by PHP. Therefore, the command had to be | produce output when called by PHP. Therefore, the command had to be | ||
+ | |||
<code php> | <code php> | ||
' | ' |
plugin/format.1282753501.txt.gz · Last modified: 2010-08-25 18:25 by 66.236.69.66