<?php
require_once('portalinterface.functions.php');
echo "<br><b>" . date('r') . "</b><br>\n";
$action = $_REQUEST['action'];
if ($action == 'create'){
echo "<br><b>CreateParent</b><br>\n";
$result = CreateParent( 'mathitis', 'ÊáëåõñÜò',
'Êþóôáò', 'hide@address.com',
'+30 210 7223333', 'testparent002',
'test1234');
print_r($result);
}
else if ($action == 'password'){
echo "<br><b>GetPasswordParent</b><br>\n";
$result = GetPasswordParent( 'testparent002');
print_r($result);
}
else if ($action == 'update'){
echo "<br><b>UpdateObject</b><br>\n";
$result = UpdateObject( 'parent', 'testparent002',
'ÊáëåõñÜò', 'Êþóôáò',
'hide@address.com', '+30 210 7224444');
print_r($result);
}
else if ($action == 'delete'){
echo "<br><b>DeleteObject</b><br>\n";
$result = DeleteObject( 'parent', 'testparent002');
print_r($result);
}
else{
echo "<br><b>Unknown Request</b><br>\n";
}
?>