Skip to content
Snippets Groups Projects
Commit 0696bb7b authored by Martin Haase's avatar Martin Haase
Browse files

minor mods

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@7124 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent ede3c400
No related branches found
No related tags found
No related merge requests found
<?php
// #######################################################
// Author: Markus Widmer
// Creation date: 14.04.2008
// Modification date: 14.04.2008
// Version: 0.1.0
// #######################################################
require_once( "../soapTypes.inc.php" );
// -----------------------------------------------------
// You'll need these services
// -----------------------------------------------------
$soapSystem = new SoapClient( "../wsdl/tgextra.wsdl" );
echo "<BODY><HTML>";
if( isset( $_POST['project'] ) ) {
// -----------------------------------------------------
// If this was successfull you can add a the user you
// wish to create
// -----------------------------------------------------
$regReq = new hasPublicResourcesRequest();
$regReq->auth = "";
$reqReq->log = "";
$regReq->project = $_POST['project'];
echo "<HR/>";
echo "Checking if project has public resources...<BR/>";
try {
$checkResponse = $soapSystem->hasPublicResources( $regReq );
if( $checkResponse->result ) {
echo "YES.<BR>";
}
else {
echo "NO<BR>";
}
}
catch( SoapFault $f ) {
echo "SOAP FAULT!: " . $f->faultcode . " / " . $f->faultstring . " / " . $f->detail;
}
}
echo "<FORM action=\"hasPublicResources.php\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "Auth: <INPUT type=\"text\" name=\"auth\" value=\"\"><BR>\n";
echo "Project: <INPUT type=\"text\" name=\"project\" value=\"\"><BR>\n";
echo "<INPUT type=\"submit\" value=\"Commit...\">\n";
echo "</FORM>\n";
echo "</BODY></HTML>";
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment