Changeset 141 for trunk/services
- Timestamp:
- Jun 3, 2006 11:09:51 PM (18 years ago)
- Location:
- trunk/services
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/admins.php
r137 r141 198 198 || 'insert' == getFormData('op')) { 199 199 if ($auth->usernameExists(getFormData('username'))) { 200 $fv->addError('username', sprintf(_("The username <strong>%s</strong>already exists. Please choose another."), getFormData('username')));200 $fv->addError('username', sprintf(_("The username %s already exists. Please choose another."), getFormData('username'))); 201 201 } 202 202 } … … 355 355 // Delete the record. 356 356 $db->query("DELETE FROM admin_tbl WHERE admin_id = '" . $db->escapeString($id) . "'"); 357 $app->raiseMsg(sprintf(_("The admin < strong>%s</strong> has been deleted."), $name), MSG_SUCCESS, __FILE__, __LINE__);357 $app->raiseMsg(sprintf(_("The admin <em>%s</em> has been deleted."), $name), MSG_SUCCESS, __FILE__, __LINE__); 358 358 } 359 359 … … 401 401 $version->create('admin_tbl', 'admin_id', $last_insert_id, $frm['username']); 402 402 403 $app->raiseMsg(sprintf(_("The Admin < strong>%s</strong> has been added."), $frm['username']), MSG_SUCCESS, __FILE__, __LINE__);403 $app->raiseMsg(sprintf(_("The Admin <em>%s</em> has been added."), $frm['username']), MSG_SUCCESS, __FILE__, __LINE__); 404 404 405 405 return $last_insert_id; … … 444 444 $version->create('admin_tbl', 'admin_id', $frm['admin_id'], $frm['username']); 445 445 446 $app->raiseMsg(sprintf(_("The Admin < strong>%s</strong> has been updated."), $frm['username']), MSG_SUCCESS, __FILE__, __LINE__);446 $app->raiseMsg(sprintf(_("The Admin <em>%s</em> has been updated."), $frm['username']), MSG_SUCCESS, __FILE__, __LINE__); 447 447 448 448 // Unlock record. -
trunk/services/lock.php
r137 r141 33 33 if (getFormData('unlock', false)) { 34 34 $lock->remove(); 35 $app->raiseMsg(sprintf(_("The record < strong>%s</strong> has been unlocked, and can now be modified."), $lock->getTitle('title')), MSG_NOTICE, __FILE__, __LINE__);35 $app->raiseMsg(sprintf(_("The record <em>%s</em> has been unlocked, and can now be modified."), $lock->getTitle('title')), MSG_NOTICE, __FILE__, __LINE__); 36 36 $app->dieBoomerangURL('lock'); 37 37 } else if (getFormData('cancel', false)) { -
trunk/services/password.php
r136 r141 50 50 if (!$fv->anyErrors() && false === $auth->authenticate($auth->getVal('username'), $frm['oldpassword'])) { 51 51 $fv->addError('oldpassword', _("Your <strong>Old password</strong> failed authentication.")); 52 $app->logMsg(sprintf( _("Password change failed for %s, using (md5ed) password: %s"), $auth->getVal('username'), md5($frm['oldpassword'])), LOG_NOTICE, __FILE__, __LINE__);52 $app->logMsg(sprintf('Password change failed for %s, using (md5ed) password: %s', $auth->getVal('username'), md5($frm['oldpassword'])), LOG_NOTICE, __FILE__, __LINE__); 53 53 } 54 54 55 55 if (!$fv->anyErrors()) { 56 56 $auth->setPassword(null, $frm['newpassword']); 57 $app->logMsg(sprintf( _("Password change successful for %s"), $auth->getVal('username')), LOG_INFO, __FILE__, __LINE__);57 $app->logMsg(sprintf('Password change successful for %s', $auth->getVal('username')), LOG_INFO, __FILE__, __LINE__); 58 58 $app->raiseMsg(sprintf(_("Password change successful for %s"), $auth->getVal('username')), MSG_SUCCESS, __FILE__, __LINE__); 59 59 $app->dieBoomerangURL('admin_password'); -
trunk/services/templates/lock.ihtml
r137 r141 9 9 10 10 <p><?php 11 printf(_("The record <strong>%s</strong> is currently being edited by <strong>%s</strong>(%d minutes elapsed). You cannot modify the record while it is locked by another user."),11 printf(_("The record %s is currently being edited by %s (%d minutes elapsed). You cannot modify the record while it is locked by another user."), 12 12 $lock->getTitle(), 13 13 $lock->getEditor(), -
trunk/services/versions.php
r137 r141 68 68 $current = $version->getCurrent($record_table, $record_key, $record_val); 69 69 if (serialize($data) == serialize($current)) { 70 $app->raiseMsg(sprintf(_("Version < strong>%s</strong> is identical to the current record"), $version_id), MSG_NOTICE, __FILE__, __LINE__);70 $app->raiseMsg(sprintf(_("Version <em>%s</em> is identical to the current record"), $version_id), MSG_NOTICE, __FILE__, __LINE__); 71 71 } 72 72 $nav->addPage(sprintf(_("Difference between version %s (%s) and current record."), $version_id, $versionrecord['version_datetime'])); … … 86 86 // Create version of this restored record as the "current" version. 87 87 $version->create($record_table, $record_key, $record_val, $v['version_title']); 88 $app->raiseMsg(sprintf(_("The record < strong>%s</strong> has been replaced with <strong>%s</strong> version <strong>%s</strong> from <strong>%s</strong>."), getFormData('version_title'), $v['version_title'], $version_id, $v['version_datetime']), MSG_SUCCESS, __FILE__, __LINE__);88 $app->raiseMsg(sprintf(_("The record <em>%s</em> has been replaced with <em>%s</em> version <em>%s</em> from <em>%s</em>."), getFormData('version_title'), $v['version_title'], $version_id, $v['version_datetime']), MSG_SUCCESS, __FILE__, __LINE__); 89 89 $app->dieBoomerangURL('versions', array('break_list_cache'=>'true', false)); 90 90 } else {
Note: See TracChangeset
for help on using the changeset viewer.