From fe70ca714bf21efceb33bd0cf75f5bfd3c9a44ca Mon Sep 17 00:00:00 2001 From: Quitta Date: Thu, 27 Jun 2013 20:18:36 +0200 Subject: [PATCH] small test to check if ajax works on the pages, it still seems to work :) --HG-- branch : quitta-gsoc-2013 --- .../ryzom_ams/ams_lib/autoload/users.php | 21 +----------------- .../ryzom_ams/ams_lib/translations/en.ini | 2 ++ .../ryzom_ams/www/html/templates/layout.tpl | 3 ++- .../www/html/templates/layout_user.tpl | 3 ++- .../ryzom_ams/www/html/templates/userlist.tpl | 22 +++++++++++++++++++ 5 files changed, 29 insertions(+), 22 deletions(-) create mode 100644 code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/users.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/users.php index fab797681..f1b0c877b 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/users.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/users.php @@ -236,26 +236,7 @@ class Users{ return $salt; } - /*function create_Server_User($params) - { - try { - $hostname = 'localhost'; - $port = '3306'; - $dbname = 'nel'; - $username = 'shard'; - $password = ''; - $dbh = new PDO("mysql:host=$hostname;port=$port;dbname=$dbname", $username, $password); - $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - $statement = $dbh->prepare("INSERT INTO user (Login, Password, Email) VALUES (?, ?, ?)"); - $statement->execute($params); - return "success"; - } - catch (PDOException $e) { - return "fail"; - } - // createPermissions(array($login)); - }*/ - + function createUser($values){ $libdb = $values['db']['lib']; diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini index e9923a45f..eafb7df63 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini @@ -3,6 +3,8 @@ [home] +[userlist] + [login] login_info = "Please login with your Username and Password." login_error_message = "The filled in username/password were not correct!" diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl index 16d032be1..075190b64 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout.tpl @@ -118,7 +118,8 @@ - + + diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_user.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_user.tpl index 24ba25093..7809f829a 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_user.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/layout_user.tpl @@ -1,7 +1,8 @@ {extends file="layout.tpl"} {block name=menu} -
  • Dashboard
  • +
  • Dashboard
  • +
  • Userlist
  • Login Page
  • Logout
  • diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl new file mode 100644 index 000000000..53d46ddd6 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/userlist.tpl @@ -0,0 +1,22 @@ +{block name=content} + +
    +
    +
    +

    User List

    +
    + + + + +
    +
    +
    +

    The shard/lib/web db user list You are about to see it here!

    + +
    +
    +
    +
    +{/block} +