diff -r 000000000000 -r 03b0d1493584 web/wp-content/plugins/php-code-widget/execphp.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/plugins/php-code-widget/execphp.php Wed Dec 23 17:55:33 2009 +0000 @@ -0,0 +1,78 @@ + 'widget_execphp', 'description' => __('Arbitrary text, HTML, or PHP Code')); + $control_ops = array('width' => 400, 'height' => 350); + $this->WP_Widget('execphp', __('PHP Code'), $widget_ops, $control_ops); + } + + function widget( $args, $instance ) { + extract($args); + $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance ); + $text = apply_filters( 'widget_execphp', $instance['text'], $instance ); + echo $before_widget; + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } + ob_start(); + eval('?>'.$text); + $text = ob_get_contents(); + ob_end_clean(); + ?> +
+ '', 'text' => '' ) ); + $title = strip_tags($instance['title']); + $text = format_to_edit($instance['text']); +?> +

+

+ + + +

/> 

+