------------------------------------------------------------------------------------------ ort_plugindecode.php Textpattern plugin decoder ------------------------------------------------------------------------------------------ PLUGIN DECODER Original idea (command line & web form, no plugin) version 1.0 development: Martín Laudati Plugin (version 2.0) development: Walter Mir – Martín Zeni – Iván de Miguel Tutoring: Mariano Absatz Instituto de Tecnología ORT – Seminario de Tecnología y Aplicaciones --------- Basic Use --------- Paste the text within the ort_plugindecode.txt file into the “plugins” tab of Textpattern, and enable the plugin. You will find a new tab under Extensions called Plugin Decode. Decode installed plugin ----------------------- On the left part of the screen you’ll have a list of your installed plugins (including ort_plugindecode). Select the plugin you want to decode and press the Decode butto bellow the list. Your browser will offer to save the decoded plugin in your local disk. Even when you can decode ort_plugindecode within itself, the resulting source, when re-compiled, will only be able to work in this basic mode. It will not work in command linemode (see below). Paste & decode -------------- On the upper right part of the screen there is a text area with the heading Paste plugin:. You can paste a plugin text here and press the Decode button besides. Your browser will offer to save the decoded plugin in your local disk. Uploade & decode ---------------- On the lower right part of the screen you’ll find an upload field with a Browse button. Use it to select a plugin from your local hard disk and, when done, press the Decode button below it. Your browser will offer to save the decoded plugin in your local disk. ------------ Advanced Use ------------ The source script ort_plugindecode.php used to produce the ort_plugindecode.txt plugin is a script that, besides being compiled as a textpattern plugin, allows you to decode a Textpattern plugin in order to get a source .php file you can edit and modify and then compile using the standard zem_tpl. It has two different modes: command line mode works from the command line (just like zem_tpl does). Web mode works in a php enabled web server and you can invoke it from a standard browser. Command line usage ------------------ php ort_plugindecode.php compiled_plugin.txt decoded_plugin.php This way, the decoder takes the ‘compiled_plugin.txt’ input file and outputs the decoded php source a file named ‘decoded_plugin.php’ php ort_plugindecode.php compiled_plugin.txt If you omit the output file name, the file will be created based in the plugin name contained within the plugin itself ($plugin['name']). php ort_plugindecode.php