// and now you see some corrupted characters. See http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html
-// MULTITEAM_MODE option defines whether users can create their own teams.
+// MULTITEAM_MODE option defines whether users can create their own top groups (organizations).
+// When false, a Time Tracker server is managed by admin, who creates top groups (one or many).
//
// Available values are true or false.
-// If true users can create their own teams.
-// If false only admin can create teams.
//
define('MULTITEAM_MODE', true);
// Height in pixels for the note input field in time.php. Defaults to 40.
// define('NOTE_INPUT_HEIGHT', 100);
-
-// define('MANAGER_ONLY_TEAM_SETTINGS', true); // Note: temporary define, to be removed after introduction of role edits.
- // Currently checked for "defined" only in profile_edit.tpl, meaning that false
- // value here means the same thing.
\ No newline at end of file
// If we mark all of them deleted here, we can't recover nicely
// as we'll lose track of what was deleted by user.
//
- // 2) DB maintenance script (Clean up DB from inactive teams) should
+ // 2) DB maintenance script (Clean up DB from inactive groups) should
// get rid of these items permanently eventually.
// Mark group deleted.
return false;
}
- // getClients - returns an array of active and inactive clients in a team.
+ // getClients - returns an array of active and inactive clients in a group.
static function getClients()
{
global $user;
return (!is_a($affected, 'PEAR_Error'));
}
- // The setMappedClient function is used during team import to change client_id value for tt_users to a mapped value.
+ // The setMappedClient function is used during group import to change client_id value for tt_users to a mapped value.
static function setMappedClient($group_id, $imported_id, $mapped_id)
{
$mdb2 = getConnection();
import('ttTeamHelper');
import('ttTimeHelper');
-// ttExportHelper - this class is used to export team data to a file.
+// ttExportHelper - this class is used to export group data to a file.
class ttExportHelper {
var $fileName = null; // Name of the file with data.
var $customFieldOptionMap = array(); // Custop field option ids.
var $logMap = array(); // Time log ids.
- // createDataFile creates a file with all data for a given team.
+ // createDataFile creates a file with all data for a given group.
function createDataFile($compress = false) {
global $user;
fwrite($file, "<?xml version=\"1.0\"?>\n");
fwrite($file, "<pack>\n");
- // Write team info.
+ // Write group info.
fwrite($file, "<group currency=\"".$user->currency."\" decimal_mark=\"".$user->decimal_mark."\" lang=\"".$user->lang.
"\" date_format=\"".$user->date_format."\" time_format=\"".$user->time_format."\" week_start=\"".$user->week_start.
"\" tracking_mode=\"".$user->tracking_mode."\" project_required=\"".$user->project_required."\" task_required=\"".$user->task_required.
"\" plugins=\"".$user->plugins."\" lock_spec=\"".$user->lock_spec."\" workday_minutes=\"".$user->workday_minutes.
"\" config=\"".$user->config.
"\">\n");
- fwrite($file, " <name><![CDATA[".$user->team."]]></name>\n");
+ fwrite($file, " <name><![CDATA[".$user->group."]]></name>\n");
fwrite($file, "</group>\n");
// Prepare role map.
$plugins = implode(',', $plugin_array);
if ($plugins != $user->plugins) {
- if (!ttTeamHelper::update($user->group_id, array('name' => $user->team,'plugins' => $plugins)))
+ if (!ttTeamHelper::update($user->group_id, array('name' => $user->group,'plugins' => $plugins)))
return false;
$user->plugins = $plugins;
}
var $currency = null; // Currency.
var $plugins = null; // Comma-separated list of enabled plugins.
var $config = null; // Comma-separated list of miscellaneous config options.
- var $team = null; // Team name.
+ var $group = null; // Group name.
var $custom_logo = 0; // Whether to use a custom logo for team.
var $lock_spec = null; // Cron specification for record locking.
var $workday_minutes = 480; // Number of work minutes in a regular day.
$this->record_type = $val['record_type'];
$this->bcc_email = $val['bcc_email'];
$this->allow_ip = $val['allow_ip'];
- $this->team = $val['group_name'];
+ $this->group = $val['group_name'];
$this->currency = $val['currency'];
$this->plugins = $val['plugins'];
$this->lock_spec = $val['lock_spec'];
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.87.4236 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.87.4237 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
<table cellspacing="0" cellpadding="5" width="{$tab_width+20}" border="0">
<tr><td class="sectionHeader"><div class="pageTitle">{$title}{if $timestring}: {$timestring}{/if}</div></td></tr>
{if $user->name}
- <tr><td>{$user->name|escape} - {$user->role_name|escape}{if $user->behalf_id > 0} <b>{$i18n.label.on_behalf} {$user->behalf_name|escape}</b>{/if}{if $user->team}, {$user->team|escape}{/if}</td></tr>
+ <tr><td>{$user->name|escape} - {$user->role_name|escape}{if $user->behalf_id > 0} <b>{$i18n.label.on_behalf} {$user->behalf_name|escape}</b>{/if}{if $user->group}, {$user->group|escape}{/if}</td></tr>
{else}
<tr><td> </td></tr>
{/if}
$cl_quotas = $request->getParameter('quotas');
$cl_week_view = $request->getParameter('week_view');
} else {
- $cl_team = $user->team;
+ $cl_team = $user->group;
$cl_currency = ($user->currency == ''? CURRENCY_DEFAULT : $user->currency);
$cl_lang = $user->lang;
$cl_decimal_mark = $user->decimal_mark;
} else {
$cl_receiver = $sc->getValue(SYSC_LAST_INVOICE_EMAIL);
$cl_cc = $sc->getValue(SYSC_LAST_INVOICE_CC);
- $cl_subject = $i18n->get('title.invoice').' '.$invoice['name'].', '.$user->team;
+ $cl_subject = $i18n->get('title.invoice').' '.$invoice['name'].', '.$user->group;
}
$form = new Form('mailForm');
if ($err->no()) {
if (ttTeamHelper::update($user->group_id, array(
- 'name' => $user->team,
+ 'name' => $user->group,
'lock_spec' => $cl_lock_spec))) {
header('Location: profile_edit.php');
exit();
// Handle workday hours.
$workday_minutes = ttTimeHelper::postedDurationToMinutes($request->getParameter('workdayHours'));
if ($workday_minutes != $user->workday_minutes) {
- if (!ttTeamHelper::update($user->group_id, array('name'=>$user->team,'workday_minutes'=>$workday_minutes)))
+ if (!ttTeamHelper::update($user->group_id, array('name'=>$user->group,'workday_minutes'=>$workday_minutes)))
$err->add($i18n->get('error.db'));
}