From a2d1703dea6fd017bf19b4e43aa1594538ec6b60 Mon Sep 17 00:00:00 2001
From: ivan
Date: Mon, 17 Mar 2008 02:48:15 +0000
Subject: first bits of working FRI! woop!
---
fs_selfservice/fri/modules/myaccount.module | 81 +++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 fs_selfservice/fri/modules/myaccount.module
(limited to 'fs_selfservice/fri/modules/myaccount.module')
diff --git a/fs_selfservice/fri/modules/myaccount.module b/fs_selfservice/fri/modules/myaccount.module
new file mode 100644
index 000000000..d8af40073
--- /dev/null
+++ b/fs_selfservice/fri/modules/myaccount.module
@@ -0,0 +1,81 @@
+" . _("My Account") . "
";
+
+ return $ret;
+ }
+
+ /*
+ * Displays stats page
+ *
+ * @param $args
+ * Common arguments
+ */
+ function display($args) {
+
+ global $ARI_HELP_FEATURE_CODES;
+
+ $display = new Display();
+
+ // args
+ $m = getArgument($args,'m');
+ $q = getArgument($args,'q');
+
+ $displayname = $_SESSION['ari_user']['displayname'];
+ $extension = $_SESSION['ari_user']['extension'];
+
+ // build page content
+ $ret .= checkErrorMessage();
+
+ $header_text = _("My Account");
+ if (!$_SESSION['ari_user']['admin_help']) {
+ $header_text .= sprintf(_(" for %s (%s)"), $displayname, $extension);
+ }
+
+ // build page content
+ $ret .= checkErrorMessage();
+
+ $ret .= $display->displayHeaderText($header_text);
+ $ret .= $display->displayLine();
+
+ $ret .= 'My Account goes here';
+
+ return $ret;
+ }
+
+}
+
+?>
--
cgit v1.2.1