MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
cpaint.inc.php
Ir para a documentação deste ficheiro.
1<?php
2// CPAINT (Cross-Platform Asynchronous INterface Toolkit) - Version 1.2
3// Copyright (c) 2005 Boolean Systems, Inc. - http://cpaint.sourceforge.net
4
5/*
6error_reporting (E_ALL ^ E_NOTICE);
7global $cpaint_xml_result;
8header ("Expires: Fri, 14 Mar 1980 20:53:00 GMT");
9header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
10header ("Cache-Control: no-cache, must-revalidate");
11header ("Pragma: no-cache");
12if ($_GET['cpaint_returnxml'] == "true") header("Content-Type: text/xml");
13if ($_POST['cpaint_returnxml'] == "true") header("Content-Type: text/xml");
14if ($_GET['cpaint_function'] != "") {
15 print(call_user_func_array($_GET['cpaint_function'], $_GET['cpaint_argument']));
16 exit();
17} elseif ($_POST['cpaint_function']) {
18 print(call_user_func_array($_POST['cpaint_function'], $_POST['cpaint_argument']));
19 exit();
20}
21*/
22
23class cpaint
24{
25
27 global $cpaint_xml_result;
28 return "<?xml version=\"1.0\" standalone=\"yes\"?><AJAX-RESPONSE>" . $cpaint_xml_result . "</AJAX-RESPONSE>";
29}
30function cpaint_xml_add_data($dataname, $uniqueid, $datavalue) {
31 global $cpaint_xml_result;
32 $cpaint_xml_result = $cpaint_xml_result . "<" . strtoupper($dataname) . " ID=\"" . $uniqueid . "\">" . $datavalue . "</" . strtoupper($dataname) . ">";
33}
34function cpaint_xml_open_result($uniqueid) {
35 global $cpaint_xml_result;
36 $cpaint_xml_result = $cpaint_xml_result . "<AJAX-RESULT ID=\"" . $uniqueid . "\">";
37}
39 global $cpaint_xml_result;
40 $cpaint_xml_result = $cpaint_xml_result . "</AJAX-RESULT>";
41}
42
43}
44?>
cpaint_xml_close_result()
Definição cpaint.inc.php:38
cpaint_xml_add_data($dataname, $uniqueid, $datavalue)
Definição cpaint.inc.php:30
cpaint_xml_open_result($uniqueid)
Definição cpaint.inc.php:34
cpaint_xml_return_data()
Definição cpaint.inc.php:26