mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
2e951dd633
overall administration area improvements; iconpicker shortcode, iconpicker e_form method; new Ajax#toggleUpdate, Ajax#scUpdate methods; old icons removal
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
/*
|
|
+ ----------------------------------------------------------------------------+
|
|
|| e107 website system
|
|
|
|
|
| ©Steve Dunstan 2001-2002
|
|
| http://e107.org
|
|
| jalist@e107.org
|
|
|
|
|
| Released under the terms and conditions of the
|
|
| GNU General Public License (http://gnu.org).
|
|
|
|
|
| $Source: /cvs_backup/e107_0.8/e107_files/e_ajax.php,v $
|
|
| $Revision: 1.6 $
|
|
| $Date: 2009-01-16 17:57:57 $
|
|
| $Author: secretr $
|
|
+----------------------------------------------------------------------------+
|
|
*/
|
|
$_E107['minimal'] = TRUE;
|
|
require_once("../class2.php");
|
|
//ob_start();
|
|
ob_implicit_flush(0);
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Ajax Short-code-Replacer Routine.
|
|
|
|
$shortcodes = "";
|
|
|
|
if($_POST['ajax_sc'] && $_POST['ajax_scfile'])
|
|
{
|
|
include_once(e_HANDLER.'shortcode_handler.php');
|
|
$file = $tp->replaceConstants($_POST['ajax_scfile']);
|
|
$shortcodes = $tp -> e_sc -> parse_scbatch($file);
|
|
}
|
|
|
|
if($_POST['ajax_sc'] && $_POST['ajax_used'])
|
|
{
|
|
list($fld,$parm) = explode("=",$_POST['ajax_sc']);
|
|
$prm = ($parm) ? "=".urldecode($parm) : "";
|
|
echo $tp->parseTemplate("{".strtoupper($fld).$prm."}",TRUE,$shortcodes);
|
|
exit;
|
|
}
|
|
?>
|