summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a875637)
raw | patch | inline | side by side (parent: a875637)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 5 Nov 2010 15:17:53 +0000 (15:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 5 Nov 2010 15:17:53 +0000 (15:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20194 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc | patch | blob | history | |
gosa-core/plugins/generic/dashBoard/Register/register.tpl | patch | blob | history |
diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc
index 86da0d32be02368343e8310da4ca015e42f49ad9..66fbc8ecfe7f8ad3b8bd36c4a2e779b7944f8676 100644 (file)
class GOsaRegistration extends plugin
{
- protected $defaultRegistrationType = "registered";
+ protected $selectedRegistrationType = "registered";
protected $isRegistered = FALSE;
protected $step = 0;
$this->isRegistered = GOsaRegistration::isRegistered($this->config);
foreach($this->attrs as $attr) $this->values[$attr] = "";
+
+ // Try to establish a rpc connection.
+ $this->rpcConfigured = FALSE;
+ if ($this->config->get_cfg_value("core","gosaRpcServer") != ""){
+ $this->rpcConfigured = TRUE;
+ $this->rpcHandle = $this->config->getRpcHandle(
+ "http://10.3.64.59:4000",
+ "65717fe6-9e3e-11df-b010-5452005f1250",
+ "WyukwauWoid2",
+ TRUE);
+ }
}
function registerNow()
{
+ if($this->selectedRegistrationType == "registered"){
+ print_a($this->rpcHandle->registerUser('cajus', $this->values));
+ }
+
$this->step = 200; // Awaiting verification
}
$smarty = get_smarty();
- $smarty->assign("default", $this->defaultRegistrationType);
+ $smarty->assign("default", $this->selectedRegistrationType);
$smarty->assign("step", $this->step);
foreach($this->attrs as $attr) $smarty->assign($attr, set_post($this->values[$attr]));
function save_object()
{
- if(isset($_POST['registrationType'])) $this->defaultRegistrationType = get_post('registrationType');
+ if(isset($_POST['registrationType'])) $this->selectedRegistrationType = get_post('registrationType');
if(isset($_POST['startRegistration'])) $this->step = 1;
if(isset($_POST['stepBack'])) $this->step -= 1;
diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl
index 1027cdbfcd104418bff1a3da169b20b5255f3a32..42eb5e1ecf0e6ada48614cc6887fafefdc31596f 100644 (file)
<ul>
<li>{t}Access to 'Premium-Channels'.{/t}</li>
<li>{t}Watch the status of current plugin updates/patches and the availability of new plugins.{/t}</li>
- <li>{t}Receive newsletter, if wanted.{/t}</li>
+ <li>{t}Recieve newsletter, if wanted.{/t}</li>
<li>{t}View several usefull statistics about your GOsa installation{/t}.</li>
</ul>
</p>
{/if}
{if $step == 200}
- <h3>VERIFY TEXTS!!!</h3> You have receifed a mail, bafasel, please click link and so on.
+ <h3>VERIFY TEXTS!!!</h3> You have reciefed a mail, bafasel, please click link and so on.
{/if}