1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<?php
// File jsrs/sql_buffer_request.php / ibWebAdmin
// Purpose deliver the content of the specified sql buffer for the textarea
// on the sql panel
// Author Lutz Brueckner <irie@gmx.de>
// Copyright (c) 2000, 2001, 2002, 2003 by Lutz Brueckner,
// published under the terms of the GNU General Public Licence v.2,
// see file LICENCE for details
// Created <03/08/10 19:27:03 lb>
//
// $IdK$: fk_request.php,v 1.3 2003/02/02 20:16:41 lbrueckner Exp $
require('../inc/configuration.inc.php');
require('./jsrsServer.php.inc');
session_start();
// define the valid function for the request
jsrsDispatch('sql_buffer');
// build the answer for the jsrs request
function sql_buffer($idx) {
global $HTTP_SESSION_VARS;
$HTTP_SESSION_VARS['s_sql_pointer'] = $idx;
$val = isset($HTTP_SESSION_VARS['s_sql_buffer'][$HTTP_SESSION_VARS['s_sql_pointer']]) ? $HTTP_SESSION_VARS['s_sql_buffer'][$HTTP_SESSION_VARS['s_sql_pointer']] : '';
return jsrsArrayToString(array($val, $idx), $delim='~');
}
?>
|