File: ajax-xml.php

package info (click to toggle)
knowledgeroot 0.9.7.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,368 kB
  • ctags: 23,662
  • sloc: php: 6,113; sql: 171; perl: 133; xml: 132; makefile: 40
file content (27 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
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
<?php
/*
 * Knowledgeroot
 * return XML for ajax
 * Frank Habermann
 */
 

// load requiered files
require_once("/etc/knowledgeroot/config.inc.php");
require_once("include/init.php");
require_once("include/class-ajax-xml.php");

// init ajax class
$CLASS['ajax'] = new ajax_xml();
$CLASS['ajax']->start($CLASS);

// check what to do
$CLASS['ajax']->check_vars();

// set xml header
header("Content-Type: text/xml");

// return xmlcode
echo $CLASS['ajax']->get_xml();
 
?>