mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r513
Дополнение к R513, пропустил случайно один файл. Дефолтный шаб теперь действует для новых юзеров git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@513 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
77e6278fc0
commit
08838cd1e1
2 changed files with 5 additions and 3 deletions
|
@ -722,7 +722,7 @@ foreach ($profile_fields as $field => $can_edit)
|
|||
break;
|
||||
|
||||
/**
|
||||
* Выбор шаблона (edit, reg)
|
||||
* Выбор шаблона (edit)
|
||||
*/
|
||||
case 'tpl_name':
|
||||
$templates = isset($_POST['tpl_name']) ? (string) $_POST['tpl_name'] : $pr_data['tpl_name'];
|
||||
|
@ -801,6 +801,8 @@ if ($submit && !$errors)
|
|||
|
||||
if(!IS_ADMIN) $db_data['user_reg_ip'] = USER_IP;
|
||||
|
||||
if(!isset($db_data['tpl_name'])) $db_data['tpl_name'] = (string) $bb_cfg['tpl_name'];
|
||||
|
||||
$sql_args = DB()->build_array('INSERT', $db_data);
|
||||
|
||||
DB()->query("INSERT INTO ". BB_USERS . $sql_args);
|
||||
|
|
|
@ -193,8 +193,8 @@ ajax.callback.posts = function(data){
|
|||
<tr>
|
||||
<td>{L_DENY_VISITORS}:</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_dls" value="1" <!-- IF ALLOW_DLS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_dls" value="0" <!-- IF not ALLOW_DLS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
<label><input type="radio" name="allow_dls" value="0" <!-- IF not ALLOW_DLS -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_dls" value="1" <!-- IF ALLOW_DLS -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue