require_once('./global.php');
require_once('./includes/api_user.php');
-APIError(array(new API_Error_Handler($message), 'user_cumulative'));
-
// ###################################################################
if ($_POST['do'] == 'insert')
$message->error(T('Sorry, we don\'t allow new registrations.'));
}
- foreach (bugdar::$datastore['language'] AS $value => $temp)
+ foreach (bugdar::$datastore['language'] as $value => $temp)
{
- $label = $temp['title'];
- $selected = ($value == $input->in['languageid']);
- eval('$opts .= "' . $template->fetch('selectoption') . '";');
+ $tpl = new BSTemplate('selectoption');
+ $tpl->vars = array(
+ 'value' => $value,
+ 'label' => $temp['title'],
+ 'selected' => ($value == $input->in['languageid'])
+ );
+ $opts .= $tpl->evaluate()->getTemplate();
}
- eval('$template->flush("' . $template->fetch('register') . '");');
+ $tpl = new BSTemplate('register');
+ $tpl->vars = array(
+ 'opts' => $opts
+ );
+ $tpl->evaluate()->flush();
}
// ###################################################################
if ($_REQUEST['do'] == 'activate')
{
$input->inputClean('userid', TYPE_UINT);
- if ($useractivation = $db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "useractivation WHERE userid = " . $input->in['userid'] . " AND activator = '" . $bugsys->input_escape('activator') . "'"))
+ if ($useractivation = $db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "useractivation WHERE userid = " . $input->in['userid'] . " AND activator = '" . $input->inputEscape('activator') . "'"))
{
$user = $db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid = " . $input->in['userid']);
$db->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid = $useractivation[usergroupid] WHERE userid = " . $input->in['userid']);
<body>
-$header
+<%- $header %>
<% if ($show['errors']): %>
<div class="error" style="text-align: <%- $stylevar['left'] %>">
<div><strong><%-T("Display Name")%>:</strong> <input type="text" name="displayname" size="30" value="<%- $input->in['displayname'] %>" /></div>
<div><strong><%-T("Password")%>:</strong> <input type="password" name="password" size="30" /></div>
<div><strong><%-T("Confirm Password")%>:</strong> <input type="password" name="confirmpassword" size="30" /></div>
- <div><strong><%-T("Show My Email Publicly")%>:</strong> <input type="checkbox" value="1" name="showemail"<if condition="$input->in['showemail']"> checked="checked"<% endif %> /> <%-T("Yes")%></div>
+ <div><strong><%-T("Show My Email Publicly")%>:</strong> <input type="checkbox" value="1" name="showemail"<% if ($input->in['showemail']): %> checked="checked"<% endif %> /> <%-T("Yes")%></div>
<div><strong><%-T("Language")%>:</strong> <select name="languageid"><%- $opts %></select></div>
</div>