irgendwie mach ich was falsch

This commit is contained in:
Nael 2013-06-26 23:01:06 +02:00
parent d94cd213b9
commit e05ee3f4b7
2 changed files with 17 additions and 6 deletions

View File

@ -26,10 +26,18 @@ class default_page extends SYSTEM\PAGE\Page {
public function exchange_registerform(){
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/register_form.tpl'),array());}
public function create_account(){
$result = "";
$accdata = data::getuserpersonaldata(1);
$vars = array('input')
return SYSTEM\SECURITY\Security::create($dbinfo, $username, $password, $email, $locale);}
public function html(){
public function html(){
//\SYSTEM\SECURITY\Security::available($dbinfo, $username) //account available
//\SYSTEM\SECURITY\Security::check($dbinfo, $rightid) //recht prüfen
//\SYSTEM\SECURITY\Security::create($dbinfo, $username, $password, $email, $locale) //account erstellen

View File

@ -19,10 +19,13 @@ $(document).ready(function() {
vote_click($(this).attr('inputEmail', 'inputPassword', 'inputPassword2'), array());
});
});
function getuserpersonaldata(){
$.get('./api.php?call=account&action=create&username=0&password_sha=' + inputPassword + '&email=' + inputEmail'&locale=' + deDE' {
});
function getuserpersonaldata(inputEmail, inputPassword){
$.get('.api.php?call=account&action=create&username=' + NULL + '&password_sha=' + inputPassword + '&email=' + inputEmail + '&locale=deDE', function (data) {
dataTmp = data;
}).complete(function() {
});
}
function vote_click (poll_ID, vote) {