*/ // customize this to your needs $default_container = "ou=Addresses"; // Common to all templates $container = $_POST['container']; $server_id = $_POST['server_id']; // Unique to this template $step = isset( $_POST['step'] ) ? $_POST['step'] : 1; check_server_id( $server_id ) or pla_error( "Bad server_id: " . htmlspecialchars( $server_id ) ); have_auth_info( $server_id ) or pla_error( "Not enough information to login to server. Please check your configuration." ); /** * Data definition incl. group names */ $arDataDef = array( 'name' => array( 'givenName' => 'Given name', 'sn' => 'Last name', 'cn' => 'Common name', 'mozillanickname' => 'mozillaNickname' ), 'internet' => array( 'mail' => 'Email', 'mozillaSecondEmail' => 'Second email', // 'mozilla_AimScreenName' => 'Screen name', // 'mozillausehtmlmail' => 'Use HTML mail' ), 'Phones' => array( 'telephoneNumber' => 'Work', 'homePhone' => 'Home', 'facsimileTelephoneNumber' => 'Fax', 'pager' => 'Pager', 'mobile' => 'Mobile' ), 'Home address' => array( 'homePostalAddress' => 'Address', 'mozillaHomePostalAddress2' => 'Address 2', 'mozillaHomeLocalityName' => 'City', 'mozillaHomeState' => 'State', 'mozillaHomePostalCode' => 'ZIP', // 'mozillaHomeFriendlyCountryName' => 'friendly Country', 'mozillaHomeCountryName' => 'Country', 'mozillaHomeUrl' => 'Web page' ), 'Work address' => array( 'title' => 'Title', 'ou' => 'Department', 'o' => 'Organization', 'postalAddress' => 'Address', 'mozillaPostalAddress2' => 'Address 2', 'l' => 'City', 'st' => 'State/Province', 'postalCode' => 'ZIP', 'c' => 'Country', 'mozillaWorkUrl' => 'Web page' ), 'Other' => array( // 'custom1' => 'Custom 1', // 'custom2' => 'Custom 2', // 'custom3' => 'Custom 3', // 'custom4' => 'Custom 4', // 'description' => 'Notes' ) /**/ ); ?>

New Address Book Entry
(MozillaOrgPerson)

$arGroup) { echo '' . "\r\n"; foreach( $arGroup as $strId => $strName) { if( $strId == 'sn' || $strId == 'givenName') { $strAutoChange = ' onChange="autoFillCommonName(this.form)"'; } else { $strAutoChange = ''; } echo '' . "\r\n"; echo '' . "\r\n"; echo '' . "\r\n"; echo '' . "\r\n"; echo '' . "\r\n"; } } ?>
' . htmlspecialchars( $strGroupName) . '
' . htmlspecialchars( $strName) . '
Container:

$strName) { $arData[$strId] = trim( $_POST[$strId]); } } $container = $_POST['container']; /* Critical assertions */ 0 != strlen( $arData['cn']) or pla_error( "You cannot leave the Common Name blank. Please go back and try again." ); ?>

Confirm entry creation:

$strName) { echo '' . "\r\n"; echo '' . "\r\n"; } } ?>
$arGroup) { echo ''; foreach( $arGroup as $strId => $strName) { echo '' . "\r\n"; echo ' ' . "\r\n"; echo ' ' . "\r\n"; echo '' . "\r\n"; $strEven = $strEven == 'even' ? 'odd' : 'even'; } } ?>
' . $strGroupName . '
' . $strName . ':' . htmlspecialchars( $arData[$strId] ) . '
Container: