-
Notifications
You must be signed in to change notification settings - Fork 0
/
php_execution.php
61 lines (44 loc) · 1.88 KB
/
php_execution.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
Plugin Name: PHP Execution
Plugin URI: http://www.zehnet.de/
Description: The PHP Execution Plugin allows users to write php code inside their posts and pages. Embedded php code will be executed when the post is shown. In doing so, the plugin offers the possibility to utilize dynamic content inside of posts. <strong>This plugin does not require to turn off the visual editor</strong>.
Version: 1.0.0
Author: Nicolas Zeh
Author URI: http://www.zehnet.de/
*/
/**
** LICENSE **
Copyright © 2009 Nicolas Zeh <http://www.zehnet.de/>
This plugin is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation (version 2.0).
For more information see: http://creativecommons.org/licenses/GPL/2.0/
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
** ACKNOWLEDGEMENTS **
This plugin makes use of the Silk Icon Set 1.3 by
Mark James <http://www.famfamfam.com/lab/icons/silk/>
licensed under Creative Commons Attribution 2.5 License.
*/
/*
* the name of the capability PHP execution uses to check wether permission is granted or denied
*/
define('PHP_EXECUTION_CAPABILITY', 'execute_php');
/*
* the name of the option PHP execution uses to store its settings
*/
define('PHP_EXECUTION_OPTION', 'php_execution');
/*
* root directory of the plugin
*/
define('PHP_EXECUTION_ROOT', dirname(__FILE__));
/*
* base url of the plugin
*/
define('PHP_EXECUTION_BASE_URL', WP_PLUGIN_URL . '/' . basename(PHP_EXECUTION_ROOT) );
require(PHP_EXECUTION_ROOT.'/includes/class.php_execution.php');
$php_execution = new php_execution();
?>