diff --git a/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/hasPublicResources.php b/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/hasPublicResources.php deleted file mode 100755 index 95b8377669ab3551e27b2e0f473d93bff0ee203c..0000000000000000000000000000000000000000 --- a/info.textgrid.middleware.tgauth.rbac/rbacSoap/examples/hasPublicResources.php +++ /dev/null @@ -1,73 +0,0 @@ -<?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>"; - -?>