內容簡介
這個外掛可以在文章和博客數據中添加原生的 PHP 代碼。對於已登錄的用戶,會顯示 PHP 錯誤信息,以便調試 PHP 代碼。每個代碼塊都會像 PHP 函數一樣運行。可以將自己的功能添加到該插件中,並可以在其他調用中使用。對於文章作者,可以禁用 PHP 代碼的執行,因此管理員可以創建不同的功能,供作者使用。PHP 代碼的輸出包含在文章內。
特點
文章/頁面內的行內代碼
功能定義和包含
僅執行已定義的功能
將任何 PHP 錯誤消息傳遞給作者
禁用 PHP 錯誤消息
可以通過關鍵詞列表拒絕執行
需求
PHP 5.3.0 或更高版本
短代碼
對於行內代碼,您可以使用:
[evalphp] your code [/evalphp]
對於包含的代碼:
[evalphp include="your includes"]
include 參數是可選的,並且可以在兩個短代碼中使用。
外掛標籤
開發者團隊
原文外掛簡介
With this plugin can added native PHP code within article and blog data. For logged-in user PHP error messages are shown for debugging the PHP code. Each
code block is run like a PHP function. Own functions can be added to the plugin and can be included on other calls. For article writers the execution of
PHP code can be disabled, so the administrator can create different function, that can be used by the writers. Output of the PHP code are included
within the article.
Features
inline code on articles / pages
function define and include
only execution of defined functions
any PHP error message is passed to the author
disabling PHP error messages
execution can be denied by a keyword list
Requirements
PHP 5.3.0 or newer
Shortcode
For inline code you can use:
[evalphp] your code [/evalphp]
For included code:
[evalphp include="your includes"]
The include parameter is optional and can be used on both shortcodes.
