Minor cosmetic changes

skala
Julio Montoya 14 years ago
parent 90a9ddcc9e
commit f3f549cc2f
  1. 2
      main/auth/sso/sso_server_test.php
  2. 2
      main/gradebook/index.php
  3. 14
      main/webservices/registration.soap.php

@ -42,7 +42,7 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
/* 2.Get the chamilo username and password from your system or from webservices */
$account['username'] = 'jbrion525'; //username in Chamilo
$account['username'] = 'jbrion525'; //username in Chamilo
$account['password'] = sha1(sha1('jbrion525')); //encrypted password with assuming that the first encrypted method is sha1 in chamilo
$master_auth_uri = $my_chamilo_server.'/?q=user';

@ -909,7 +909,7 @@ if (isset($first_time) && $first_time==1 && api_is_allowed_to_edit(null,true)) {
$alleval = $cat->get_evaluations($stud_id);
$alllink = $cat->get_links($stud_id);
if ($cat->get_parent_id() != 0 ) {
if ($cat->get_parent_id() != 0 ) {
$i++;
} else {
//This is the father

@ -54,11 +54,9 @@ $server = new soap_server();
// Initialize WSDL support
$server->configureWSDL('WSRegistration', 'urn:WSRegistration');
/* Register WSCreateUsers function */
// Register the data structures used by the service
// Prepare input params
$server->wsdl->addComplexType(
'extras',
@ -67,7 +65,7 @@ $server->wsdl->addComplexType(
'all',
'',
array(
'field_name' => array('name' => 'field_name', 'type' => 'xsd:string'),
'field_name' => array('name' => 'field_name', 'type' => 'xsd:string'),
'field_value' => array('name' => 'field_value', 'type' => 'xsd:string')
)
);
@ -599,14 +597,14 @@ array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:result_creat
);
// Register the method to expose
$server->register('WSCreateUsersPasswordCrypted', // method name
$server->register('WSCreateUsersPasswordCrypted', // method name
array('createUsersPasswordCrypted' => 'tns:createUsersPasswordCrypted'), // input parameters
array('return' => 'tns:results_createUsersPassEncrypt'), // output parameters
array('return' => 'tns:results_createUsersPassEncrypt'), // output parameters
'urn:WSRegistration', // namespace
'urn:WSRegistration#WSCreateUsersPasswordCrypted', // soapaction
'urn:WSRegistration#WSCreateUsersPasswordCrypted', // soapaction
'rpc', // style
'encoded', // use
'This service adds users to the system' // documentation
'This service adds users to the system' // documentation
);
// Define the method WSCreateUsersPasswordCrypted
@ -837,7 +835,7 @@ $server->wsdl->addComplexType(
'expiration_date' => array('name' => 'expiration_date', 'type' => 'xsd:string'),
'original_user_id_name' => array('name' => 'original_user_id_name', 'type' => 'xsd:string'),
'original_user_id_value' => array('name' => 'original_user_id_value', 'type' => 'xsd:string'),
'extra' => array('name' => 'extra', 'type' => 'tns:extrasList'),
'extra' => array('name' => 'extra', 'type' => 'tns:extrasList'),
'secret_key' => array('name' => 'secret_key', 'type' => 'xsd:string')
)
);

Loading…
Cancel
Save