You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
752 B

require 'config.php';
include 'sanitychecks.php';
include 'class.db.php';
// Initialize the session
include 'session.php';
// Check if the user is logged in
include 'check_user.php';
if (!pwsdbh($dbDSN)->passwordgroupAccessible($_POST['name'], $_SESSION['loginuser']))
$groupData = pwsdbh($dbDSN)->getPasswordgroupData($_POST['name']);
if ($groupData === null)
header('Content-Type: text/xml; charset=utf-8');
echo '<?xml version="1.0" encoding="utf-8"?>', "\n";
<id><![CDATA[<?php echo $groupData['id'] ?>]]></id>
<name><![CDATA[<?php echo $groupData['groupname'] ?>]]></name>
<description><![CDATA[<?php echo $groupData['description'] ?>]]></description>