Hello,
We're using Dokuwiki in our company for displaying a lot of changing information.
In 2012 I've developed some php-scripts which use the <php></php> tag from dokuwiki to display the results of the php-scripts.
This is completely homegrown and gotten bigger over the last years.
Recently we added user authentication via SSO and authAD to this Dokuwiki.
Currently I'm reworking the php-scripts. In the longterm I wanted to reduce the information seen by users based on ther ad group membership.
So I can implement the adLDAP.php library into these php scripts or I can rewrite my code into a plugin.
The plugin approach suites actually pretty well, but my PHP knowledge isn't very good with OOP in general. Most knowledge resides from creating those scripts and maintaining it.
With this knowledge base, is creating a plugin a really good idea? On security aspects, this is only intranet.
I'm using following functions in this scripts, which I would need in the plugin too.
- Oracle DB Connection and Queries
- jQuery
- Own JS functions to read data from drop-down menus and sending results to remote webservices
- read AD user data (planned)
What plugin-option suites me? I was thinking of syntax, is this correct?
How can I manage following use case in a plugin?
<php>
include "z:\Wiki\dokuwiki\data\pages\projects\path\to\file\draw-ext.php";
$IMPORT["value1"]["FQDN"]="contoso.local";
$IMPORT["value1"]["PROTOCOL"]="http";
$IMPORT["value1"]["PORT"]="20019";
$IMPORT["value1"]["APACHE"]=true;
$IMPORT["value1"]["HTTPD_FQDN"]="contoso.local";
$IMPORT["value1"]["HTTPD_PROTOCOL"]="http";
$IMPORT["value1"]["HTTPD_PORT"]="20023";
$IMPORT["value1"]["JAVAMELODY"]="http://contoso.local:20020/javamelody";
draw(array(value1),$IMPORT);
</php>
The $IMPORT variable is basically inserting variable information.
Can this be managed via a syntax plugin?
We're using this solution already for over 100 pages.
Any help on my regards are welcome.
Thank you,
regards
feuerjinn