The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ
A PHP based password store
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
752 B

<?php
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']))
{
exit;
}
$groupData = pwsdbh($dbDSN)->getPasswordgroupData($_POST['name']);
if ($groupData === null)
{
exit;
}
header('Content-Type: text/xml; charset=utf-8');
echo '<?xml version="1.0" encoding="utf-8"?>', "\n";
?>
<pws-results>
<result>
<id><![CDATA[<?php echo $groupData['id'] ?>]]></id>
<name><![CDATA[<?php echo $groupData['groupname'] ?>]]></name>
<description><![CDATA[<?php echo $groupData['description'] ?>]]></description>
</result>
</pws-results>