mirror of
https://github.com/gryf/tagbar.git
synced 2026-02-08 17:35:48 +01:00
Add tests to repository
This commit is contained in:
23
tests/php/gda-clean.php
Normal file
23
tests/php/gda-clean.php
Normal file
@@ -0,0 +1,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 ();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user