From fbf7b9b6ce63bdedd4d15adb615af0291c684bbf Mon Sep 17 00:00:00 2001 From: grum Date: Wed, 22 Oct 2008 21:08:44 +0000 Subject: "remove grum_plugins_classes-2 and AMM plugin asked in topic #p98003" git-svn-id: http://piwigo.org/svn/branches/2.0@2791 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/grum_plugins_classes-2/ajax.class.inc.php | 56 ----------------------- 1 file changed, 56 deletions(-) delete mode 100755 plugins/grum_plugins_classes-2/ajax.class.inc.php (limited to 'plugins/grum_plugins_classes-2/ajax.class.inc.php') diff --git a/plugins/grum_plugins_classes-2/ajax.class.inc.php b/plugins/grum_plugins_classes-2/ajax.class.inc.php deleted file mode 100755 index c1b8ccfa3..000000000 --- a/plugins/grum_plugins_classes-2/ajax.class.inc.php +++ /dev/null @@ -1,56 +0,0 @@ -> - ------------------------------------------------------------------------------ - - this classes provides base functions to add ajax.js file into html page ; - just instanciate an ajax object, and call return_result - $ajax_content_to_be_returned = "..............."; - $ajax = new ajax(); - $ajax->return_result($ajax_content_to_be_returned); - - - constructor ajax() - - function return_result($str) - ---------------------------------------------------------------------- */ - - - -class ajax -{ - function ajax() - { - add_event_handler('loc_end_page_header', array(&$this, 'load_JS')); - } - - function load_JS() - { - global $template; - - $name='plugins/'.basename(dirname(__FILE__)).'/ajax.js'; - - $template->append('head_elements', ''); - } - - function return_result($str) - { - //$chars=get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES); - $chars['<']='<'; - $chars['>']='>'; - $chars['&']='&'; - exit(strtr($str, $chars)); - } -} //class - -/* - it's better to make $ajax instance into the plugin object, otherwise an object - made here cannot be acceeded.. -*/ -//$ajax=new ajax(); - -?> \ No newline at end of file -- cgit v1.2.3