зеркало из https://github.com/mozilla/phonebook.git
69 строки
1.4 KiB
PHP
69 строки
1.4 KiB
PHP
<?php
|
|
$orgs = array (
|
|
'C' => "Mozilla Corporation",
|
|
'F' => "Mozilla Foundation",
|
|
'J' => "Mozilla Japan",
|
|
'M' => "Mozilla Messaging",
|
|
'O' => "Mozilla Online",
|
|
'D' => "DISABLED"
|
|
);
|
|
|
|
$emp_type = array (
|
|
'E' => "Employee",
|
|
'C' => "Contractor",
|
|
'I' => "Intern",
|
|
'D' => "DISABLED"
|
|
);
|
|
|
|
$editable_fields = array(
|
|
'cn', 'title', 'telephoneNumber', 'mobile', 'description', 'manager',
|
|
'other', 'im', 'mail', 'emailAlias', 'physicalDeliveryOfficeName',
|
|
'employeeType', 'isManager', 'bugzillaEmail', 'shirtsize'
|
|
);
|
|
|
|
$office_cities = array(
|
|
'Mountain View' => 'US',
|
|
'San Francisco' => 'US',
|
|
'Auckland' => 'NZ',
|
|
'Beijing' => 'CN',
|
|
'Copenhagen' => 'DK',
|
|
'London' => 'GB',
|
|
'Paris' => 'FR',
|
|
'Tokyo' => 'JP',
|
|
'Toronto' => 'CA',
|
|
'Vancouver' => 'CA',
|
|
'Taipei' => 'TW',
|
|
'Portland' => 'US',
|
|
'Other' => 'Other'
|
|
);
|
|
|
|
$protocol = isset($_SERVER["HTTPS"]) ? "https://" : "http://";
|
|
define("BASEPATH", $protocol . $_SERVER["HTTP_HOST"] . dirname($_SERVER["REQUEST_URI"]) .'/');
|
|
|
|
$shirt_sizes = array(
|
|
'XS (M)',
|
|
'S (M)',
|
|
'M (M)',
|
|
'L (M)',
|
|
'XL (M)',
|
|
'XXL (M)',
|
|
'XXXL (M)',
|
|
'XS (F)',
|
|
'S (MF)',
|
|
'M (F)',
|
|
'L (F)',
|
|
'XL (F)',
|
|
'XXL (F)',
|
|
'XXXL (F)'
|
|
);
|
|
|
|
// Valid output formats. Must correspond to an output-{something}.inc file.
|
|
$output_formats = array(
|
|
'autocomplete',
|
|
'csv',
|
|
'fligtar',
|
|
'html',
|
|
'json',
|
|
'vcard',
|
|
);
|