File: gda-clean.php

package info (click to toggle)
libgda5 5.2.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,168 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (23 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/* Configure session cache */
session_cache_limiter('nocache');
session_start();

include_once "gda-utils.php";
include_once "gda-config.php";

header('Content-type: text/plain; charset=UTF-8');

$cmdfile = get_command_filename (session_id ());
$replyfile = get_reply_filename (session_id ());

@unlink ($cmdfile);
@unlink ($replyfile);

/* all cleaned */
$reply = new SimpleXMLElement("<reply></reply>");
$reply->addChild ("status", "OK");
echo gda_add_hash ($init_shared, $reply->asXml());
session_destroy ();

?>