Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
rah_test_php
Rah_test_php-plugin allows you to run and test lines of PHP code, in a test interface, via Textpattern backend, nothing more or less. Just simple textarea and button, error reporting and returned value outputting.
Offline
Re: rah_test_php
Hi Jukka ;)
Very usefull plugin. Thanks lot.
I made a little change within your plugin to keep code rows visible after submitting the form (cause I’d need it to make my change and re-test it if php results were not what I’m looking for)
YTo5OntzOjQ6Im5hbWUiO3M6MTI6InJhaF90ZXN0X3BocCI7czo2OiJhdXRob3IiO3M6MTE6Ikp1a2thIFN2YWhuIjtzOjEwOiJhdXRob3JfdXJpIjtzOjE5OiJodHRwOi8vcmFoZm9ydW0uYml6IjtzOjc6InZlcnNpb24iO3M6MzoiMC4xIjtzOjExOiJkZXNjcmlwdGlvbiI7czoyODoiVGVzdCBQSFAgc2NyaXB0cyB2aWEgYmFja2VuZCI7czo0OiJoZWxwIjtzOjExNjU6Igk8aDE+cmFoX3Rlc3RfcGhwPC9oMT4KCgk8cD5SYWhfdGVzdF9waHAtcGx1Z2luIGFsbG93cyB5b3UgdG8gcnVuIGFuZCB0ZXN0IGxpbmVzIG9mIDxzcGFuIGNsYXNzPSJjYXBzIj5QSFA8L3NwYW4+IGNvZGUsIGluIGEgdGVzdCBpbnRlcmZhY2UsIHZpYSBUZXh0cGF0dGVybiBiYWNrZW5kLCBub3RoaW5nIG1vcmUgb3IgbGVzcy4gSnVzdCBzaW1wbGUgdGV4dGFyZWEgYW5kIGJ1dHRvbiwgZXJyb3IgcmVwb3J0aW5nIGFuZCByZXR1cm5lZCB2YWx1ZSBvdXRwdXR0aW5nLjwvcD4KCgk8dWw+CgkJPGxpPlZlcnNpb246IDAuMTwvbGk+CgkJPGxpPlVwZGF0ZWQ6IDIwMDgvMDcvMjcgMTU6MDAgPHNwYW4gY2xhc3M9ImNhcHMiPkdNVDwvc3Bhbj4rMjwvbGk+Cgk8L3VsPgoKCTxoMz5UYWJsZSBvZiBDb250ZW50cz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HM9IjMwIiBzdHlsZT0id2lkdGg6NzkwcHg7Ij4gJyAuIHBzKCdwaHAnKSAuICc8L3RleHRhcmVhPicubi4NCgkJCScJPGJ1dHRvbiB0eXBlPSJzdWJtaXQiIHN0eWxlPSJtYXJnaW46IDEwcHg7Ij5SdW4gUEhQIGNvZGU8L2J1dHRvbj4nLm4uDQoJCQkoKHBzKCdwaHAnKSAmJiBwcygndGVzdF9kbycpKSA/ICc8aHIgLz48cD5QSFAgcmV0dXJuZWQ6PC9wPjxwcmU+Jy5wYXJzZSgnPHR4cDpwaHA+ICcucHMoJ3BocCcpLiAnIDwvdHhwOnBocD4nKS4nPC9wcmU+Jy5uIDogJycpLg0KCQkJJzwvZm9ybT4nOw0KCX0iO3M6NDoidHlwZSI7czoxOiIxIjtzOjM6Im1kNSI7czozMjoiOWJhM2E4YWJjOGMxNWRlMTQ5NGFmNzdhOWYyZDE5OTgiO30=
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: rah_test_php
Version 0.2 is out. Changelog:
- Added: confirmation dialog before executing the provided script.
- Added: language string support. Now TextPacks can be used to translate the admin-side interface.
- Added: options link to the admin-side interface.
- Added: Markup changes, added rah_ui class selectors to the elements for easier theming.
- Changed: no longer uses TXP’s php() function nor includes publish.php.
- Now requires Textpattern version 4.0.7 or newer.
Offline
Pages: 1