Skip to content

Instantly share code, notes, and snippets.

@aceat64
aceat64 / gist:4677089
Last active December 11, 2015 23:29
snippet from phpBB's auth_ldap.php file
<?php
// generate user account data
$ldap_user_row = array(
'username' => $username,
'user_password' => phpbb_hash($password),
'user_email' => (!empty($config['ldap_email'])) ? utf8_htmlspecialchars($ldap_result[0][htmlspecialchars_decode($config['ldap_email'])][0]) : '',
'group_id' => (int) $row['group_id'],
'user_type' => USER_NORMAL,
'user_ip' => $user->ip,
'user_new' => ($config['new_member_post_limit']) ? 1 : 0,
*Add pagination of items to categories/view
*Add pagination of items to rooms/view
*Room printouts with QR codes
*Tooltips or help page to explain fields
*Advanced search
**Search through attributes, files, comments and verifications
*Grid view for categories
*CSV export system
*Thumbnails for uploaded files
*AJAXify things like adding comments, files, verifications, etc