예제 #1
0
<?php

if (!empty($editresult)) {
    include 'includes/form-xmlresult.inc.php';
    $this->sendContentTypeHeader('xml');
    echo formResult2Xml($editresult, $formmessages, $tplHelper);
}
# if
if (empty($editresult)) {
    include "includes/form-messages.inc.php";
    ?>
<form class="edituserform" name="edituserform" action="<?php 
    echo $tplHelper->makeEditUserAction();
    ?>
" method="post">
	<input type="hidden" name="edituserform[xsrfid]" value="<?php 
    echo $tplHelper->generateXsrfCookie('edituserform');
    ?>
">
	<input type="hidden" name="edituserform[buttonpressed]" value="">
	<input type="hidden" name="userid" value="<?php 
    echo htmlspecialchars($edituserform['userid']);
    ?>
">
	<fieldset>
		<dl>
			<dt><label for="edituserform[username]"><?php 
    echo _('Username');
    ?>
</label></dt>
			<dd><input type="text" disabled="disabled" value="<?php 
예제 #2
0
    /* Redirect to the callingpage */
    if (!empty($edituserprefsresult)) {
        if ($edituserprefsresult['result'] == 'success') {
            $tplHelper->redirect($http_referer);
            return;
        }
        # if
    }
    # if
    require "includes/header.inc.php";
    echo '</div>';
} else {
    /* Return the XML result */
    if (!empty($edituserprefsresult)) {
        include 'includes/form-xmlresult.inc.php';
        echo formResult2Xml($edituserprefsresult, $formmessages, $tplHelper);
        return;
    }
    # if
}
# if
include "includes/form-messages.inc.php";
if (!$dialogembedded) {
    ?>
	<div id='toolbar'>
		<div class="closeuserpreferences"><p><a class='toggle' href='<?php 
    echo $tplHelper->makeBaseUrl('path');
    ?>
'><?php 
    echo _('Back to mainview');
    ?>
예제 #3
0
<?php 

if (!empty($createresult)) {
	include 'includes/form-xmlresult.inc.php';
	
	echo formResult2Xml($createresult, $formmessages, $tplHelper);
} # if

if (empty($createresult)) {
	include "includes/form-messages.inc.php";

?>
<form class="createuserform" name="createuserform" action="<?php echo $tplHelper->makeCreateUserAction(); ?>" method="post">
	<input type="hidden" name="createuserform[xsrfid]" value="<?php echo $tplHelper->generateXsrfCookie('createuserform'); ?>">
	<fieldset>
		<dl>
			<dt><label for="createuserform[username]">Gebruikersnaam</label></dt>
			<dd><input type="text" name="createuserform[username]" value="<?php echo htmlspecialchars($createuserform['username']); ?>"></dd>

			<dt><label for="createuserform[firstname]">Voornaam</label></dt>
			<dd><input type="text" name="createuserform[firstname]" value="<?php echo htmlspecialchars($createuserform['firstname']); ?>"></dd>

			<dt><label for="createuserform[lastname]">Achternaam</label></dt>
			<dd><input type="text" name="createuserform[lastname]"  value="<?php echo htmlspecialchars($createuserform['lastname']); ?>"></dd>
			
			<dt><label for="createuserform[mail]">Mailadres</label></dt>
			<dd><input type="text" name="createuserform[mail]"  value="<?php echo htmlspecialchars($createuserform['mail']); ?>"></dd>

			<dd><input class="greyButton" type="submit" name="createuserform[submit]" value="Toevoegen"></dd>
		</dl>
	</fieldset>
예제 #4
0
<?php
if (!empty($loginresult)) {
	if ((!isset($data['performredirect'])) || ($loginresult['result'] != 'success')) {
		include 'includes/form-xmlresult.inc.php';
		
		echo formResult2Xml($loginresult, $formmessages, $tplHelper);
	} else {
		$tplHelper->redirect($loginform['http_referer']);
	} # if
} # if

if (($currentSession['user']['userid'] == SPOTWEB_ANONYMOUS_USERID) && (empty($loginresult))) {
	include "includes/form-messages.inc.php"; 

?>
<form class="loginform" name="loginform" action="<?php echo $tplHelper->makeLoginAction(); ?>" method="post">
	<input type="hidden" name="loginform[xsrfid]" value="<?php echo $tplHelper->generateXsrfCookie('loginform'); ?>">
	<?php if (isset($data['performredirect'])) {?>
		<input type="hidden" name="data[performredirect]" value="<?php echo $data['performredirect']; ?>">
	<?php } ?>
	<fieldset>
		<dl>
			<dt><label for="loginform[username]">Gebruikersnaam</label></dt>
			<dd><input type="text" name="loginform[username]" value="<?php echo htmlspecialchars($loginform['username']); ?>"></dd>

			<dt><label for="loginform[password]">Wachtwoord</label></dt>
			<dd><input type="password" name="loginform[password]" value=""></dd>

			<dd><input class="greyButton" type="submit" name="loginform[submit]" value="Inloggen"></dd>
		</dl>
	</fieldset>