Skip to content

Commit 92ba12e

Browse files
Dmitriy V. ZiminDmitriy V. Zimin
authored andcommitted
Fixed some errors and misprints
1 parent e859dfd commit 92ba12e

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# LDAP phonebook
1+
# NO WAR - LDAP phonebook
22
[:ru:](#корпоративный-телефонный-справочник-с-отображением-контактов-на-карте-офиса) [:us:](#corporate-phone-directory-with-contacts-displayed-on-the-office-map)
33
[Development ветка](https://github.com/pfzim/ldap-phonebook/tree/dev)
44
Вопросы предпочтительнее [задавать в Issues](https://github.com/pfzim/ldap-phonebook/issues?q=), а не по почте

install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ function f_remove_self(id)
14461446
<div class="form-group">
14471447
<label for="db_name" class="control-label col-sm-2">DB name:</label>
14481448
<div class="col-sm-5">
1449-
<input id="db_name" name="db_name" class="form-control" type="text" value="websco" />
1449+
<input id="db_name" name="db_name" class="form-control" type="text" value="pb" />
14501450
</div>
14511451
</div>
14521452
<div class="form-group">
@@ -1660,7 +1660,7 @@ function f_remove_self(id)
16601660
</div>
16611661
</div>
16621662
<div class="form-group">
1663-
<label for="web_url" class="control-label col-sm-2">WebSCO URL (with trailing slash):</label>
1663+
<label for="web_url" class="control-label col-sm-2">URL (with trailing slash):</label>
16641664
<div class="col-sm-5">
16651665
<input id="web_url" name="web_url" class="form-control" type="text" value="<?php eh($web_url) ?>" />
16661666
</div>

routes/contacts_sync.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ function contacts_sync(&$core, $params, $post_data)
3939
throw new Exception('ldap_search return error: '.ldap_error($core->LDAP->get_link()));
4040
}
4141

42+
$matcheddn = NULL;
43+
$referrals = NULL;
44+
$errcode = NULL;
45+
$errmsg = NULL;
46+
4247
if(!ldap_parse_result($core->LDAP->get_link(), $result, $errcode , $matcheddn , $errmsg , $referrals, $controls))
4348
{
44-
throw new Exception('ldap_parse_result return error: '.ldap_error($core->LDAP->get_link()));
49+
throw new Exception('ldap_parse_result return error code: '.$errcode.', message: '.$errmsg.', ldap_error: '.ldap_error($core->LDAP->get_link()));
4550
}
4651

4752
$entries = ldap_get_entries($core->LDAP->get_link(), $result);

routes/register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function register(&$core, $params, $post_data)
6868

6969
$plain = 'To approve new registered user follow this link: '.WEB_LINK_EXTERNAL.'register_approve_form/'.$user_id;
7070

71-
$core->Mailer->send_mail(array(MAIL_TO_ADMIN), LL('ApproveRequestSubject'), $html, $plain);
71+
$core->Mailer->send_mail(array(MAIL_ADMIN), LL('ApproveRequestSubject'), $html, $plain);
7272

7373
log_db('Registered new user', '{id='.$user_id.',login="'.$login.'"}', 0);
7474
$result_json['message'] = LL('UserRegistered');

templates/tpl.users.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php include(TEMPLATES_DIR.'tpl.header.php'); ?>
2-
<?php include(TEMPLATES_DIR.'tpl.tree-list.php'); ?>
32

43
<div>
54
<div class="content-box">

0 commit comments

Comments
 (0)