1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-18 03:31:54 +02:00

Added e_ajax.php which will do content replacement and load prototype code. Deprecating e107.js and e_ajax.js

This commit is contained in:
CaMer0n 2008-01-16 10:47:06 +00:00
parent 41dc31777f
commit 8e8e68ce67
4 changed files with 4255 additions and 16 deletions

View File

@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/header.php,v $
| $Revision: 1.12 $
| $Date: 2008-01-16 10:13:45 $
| $Revision: 1.13 $
| $Date: 2008-01-16 10:46:59 $
| $Author: e107coders $
+---------------------------------------------------------------+
*/
@ -142,7 +142,7 @@ if (varset($pref['wysiwyg'],FALSE) && check_class($pref['post_html']) && varset(
if (strpos(e_SELF.'?'.e_QUERY, 'menus.php?configure') === FALSE) {
echo "<script type='text/javascript' src='".e_FILE_ABS."e_js.php'></script>\n";
echo "<script type='text/javascript' src='".e_FILE_ABS."e_ajax.js'></script>\n";
echo "<script type='text/javascript' src='".e_FILE_ABS."e_ajax.php'></script>\n";
}
if (file_exists(THEME.'theme.js')) { echo "<script type='text/javascript' src='".THEME_ABS."theme.js'></script>\n"; }
if (filesize(e_FILE.'user.js')) { echo "<script type='text/javascript' src='".e_FILE_ABS."user.js'></script>\n"; }

4247
e107_files/e_ajax.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,8 @@
| e107 website system - Javascript File.
|
| $Source: /cvs_backup/e107_0.8/e107_files/e_js.php,v $
| $Revision: 1.1 $
| $Date: 2008-01-16 10:13:45 $
| $Revision: 1.2 $
| $Date: 2008-01-16 10:46:59 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@ -390,15 +390,6 @@ function preview_image(src_val,img_path, not_found)
return;
}
function replace_sc(sc,obj,id,scfile)
{
if(!id){ var id = sc; }
var handler = '".SITEURL.$FILES_DIRECTORY."/sc_replace.php';
var parm = ($(obj).serialize() + '&ajax_sc=' + sc + '&ajax_scfile=' + scfile + '&ajax_used=1');
new Ajax.Updater(id, handler, { parameters: parm } );
}
//-->";

View File

@ -6,8 +6,8 @@
| Released under the terms and conditions of the GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $
| $Revision: 1.17 $
| $Date: 2008-01-16 10:13:49 $
| $Revision: 1.18 $
| $Date: 2008-01-16 10:47:06 $
| $Author: e107coders $
+-----------------------------------------------------------------------------------------------+
*/
@ -104,6 +104,7 @@ if (isset($theme_js_php) && $theme_js_php) {
} else {
if (!isset($no_core_js) || !$no_core_js) {
echo "<script type='text/javascript' src='".e_FILE_ABS."e_js.php'></script>\n";
echo "<script type='text/javascript' src='".e_FILE_ABS."e_ajax.php'></script>\n";
}
if (file_exists(THEME.'theme.js')) { echo "<script type='text/javascript' src='".THEME_ABS."theme.js'></script>\n"; }
if (is_readable(e_FILE.'user.js') && filesize(e_FILE.'user.js')) { echo "<script type='text/javascript' src='".e_FILE_ABS."user.js'></script>\n"; }