diff -r fb7cd02b9848 -r 561aa6d282f6 web/wp-content/plugins/exec-php/includes/script.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/script.php Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,106 @@
+m_id =& $id;
+ $this->m_tab_name = $tab_name;
+ $this->m_l10n_tab = $l10n_tab;
+ $this->m_path = $path;
+ $this->m_dependency = $dependency;
+
+ if (function_exists('wp_enqueue_script'))
+ wp_enqueue_script($this->m_id, ExecPhp_HOME_URL. $this->m_path, $this->m_dependency);
+ else
+ // WP < 2.1
+ add_action('admin_head', array(&$this, 'action_admin_head_script'));
+
+ if (!$this->m_l10n_tab)
+ return;
+
+ global $wp_version;
+
+ if (version_compare($wp_version, '2.1.dev') >= 0)
+ add_action('wp_print_scripts', array(&$this, 'action_wp_print_scripts'));
+ else
+ add_action('admin_head', array(&$this, 'action_admin_head_tab'));
+ }
+
+ // ---------------------------------------------------------------------------
+ // hooks
+ // ---------------------------------------------------------------------------
+
+ function action_wp_print_scripts()
+ {
+ if (function_exists('wp_localize_script'))
+ {
+ $this->m_l10n_tab['l10n_print_after'] = 'try{convertEntities('. $this->m_tab_name. ');}catch(e){};';
+ wp_localize_script($this->m_id, $this->m_tab_name, $this->m_l10n_tab);
+ }
+ else
+ // WP < 2.2
+ add_action('admin_head', array(&$this, 'action_admin_head_tab'));
+ }
+
+ function action_admin_head_script()
+ {
+?>
+
+
+
+
+
+
\ No newline at end of file