Beispiel #1
0
<?php

set_include_path(dirname(_FILE_) . '/../');
echo '<h1>Test FADMIN</h1>';
require_once 'SADMIN.class.php';
require_once 'BADMIN.class.php';
require_once 'FADMIN.class.php';
$FADMIN = new FADMIN();
echo $FADMIN->login('bernardx', 1, '5546', 'ttt');
//$BADMIN = new BADMIN();
//echo $BADMIN->login('bernardx', 1, '5546', 'ttt');
//echo '<pre>';
//print_r($BADMIN->getUserDroits());
//echo '</pre>';
//echo $BADMIN->addFundation('toto');
//echo '<h2>client</h2>';
//$client = new SoapClient("http://buckutt.dyndns.org/server/SADMIN.class.php?wsdl");
//echo $client->login('bernardx', 1, '5546', 'ttt');
//echo $client->getEpargne();
//echo $client->hasDroitsInFundations();
//echo '<h2>Un mec se logue avec mdp</h2>';
//echo $SADMIN->login('bernardx', 1, '5546', 'ttt');
//echo '<pre>';
//print_r($SADMIN->getUserDroits());
//echo '</pre>';
//echo $SADMIN->hasDroitsInFundations();
//echo $SADMIN->resetKey('bernardx', '*****@*****.**');
//echo $BADMIN->getAllFundations();
//echo $BADMIN->getAllRightsAdminLight();
//echo $BADMIN->getAllUsersFromRight(7);
//echo $SADMIN->changeKeySecure('5546', '5547', '5547');
Beispiel #2
0
<?php

set_include_path(dirname(_FILE_) . '/../');
echo '<h1>Test FADMIN</h1>';
require_once 'FADMIN.class.php';
$FADMIN = new FADMIN();
echo $FADMIN->login('bernardx', 1, '5546', 'ttt');
echo $FADMIN->setIdFundation(2);
//echo $FADMIN->getPurchasedObjects(time() - 24*3600*10, time(), 3);
//echo '<h2>Total</h2>';
//echo $FADMIN->getTotal(time() - 24*3600*10, time(), 3);
echo '<h2>Groupe</h2>';
echo $FADMIN->getAllGroups();
echo $FADMIN->editGroupName(2, 'tioototot');
echo $FADMIN->getAllGroups();
//$BADMIN = new BADMIN();
//echo $BADMIN->login('bernardx', 1, '5546', 'ttt');
//echo '<pre>';
//print_r($BADMIN->getUserDroits());
//echo '</pre>';
//echo $BADMIN->addFundation('toto');
echo '<h2>client</h2>';
$client = new SoapClient("http://buckutt.dyndns.org/server/FADMIN.class.php?wsdl");
echo $client->login('bernardx', 1, '5546', 'ttt');
echo $client->getPurchasedObjects(time() - 24 * 3600 * 10, time(), 3);
echo '<h2>Total</h2>';
echo $client->getTotal(time() - 24 * 3600 * 10, time(), 3);
//echo '<h2>Un mec se logue avec mdp</h2>';
//echo $SADMIN->login('bernardx', 1, '5546', 'ttt');
//echo '<pre>';
//print_r($SADMIN->getUserDroits());