Exemplo n.º 1
0
 public function handleAction($request)
 {
     // The 'action' requested is named for the folder this server lives in
     $username = $request['name'];
     $passwd = $request['passwd'];
     // Authenticate with username and password
     $data['pass_hash'] = password_hash($passwd, PASSWORD_DEFAULT);
     $data['id'] = -1;
     $data['lastname'] = "";
     $data['firstname'] = "";
     $data['phone'] = "5555555555";
     $data['email'] = $username;
     $data['office'] = "unknown";
     $data['title'] = "";
     $dbTable = UsersTable();
     if ($dbTable . create($data)) {
         // true result means creation was OK.
         $response["id"] = $data['pass_hash'];
         $response["error"] = 0;
     }
     return $response;
 }
Exemplo n.º 2
0
    exit;
}
if (isset($_GET["tab"])) {
    tabs();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["EnableWebDavPerUser"])) {
    SaveMainParams();
    exit;
}
if (isset($_GET["users"])) {
    UsersTable();
    exit;
}
if (isset($_GET["users-search"])) {
    UsersSearch();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{WebDavPerUser}");
    $html = "YahooWin3('650','{$page}?tab=yes','{$title}');";
    echo $html;
}