Changeset 424
- Timestamp:
- Sep 27, 2013 1:13:02 AM (11 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r422 r424 308 308 $final_headers = array(); 309 309 foreach ($headers as $key => $val) { 310 if (empty($key) || empty($val) || !is_string($key) || !is_string($val)) { 311 $app->logMsg(sprintf('Broken headers provided: %s=%s', $key, $val), LOG_WARNING, __FILE__, __LINE__); 312 } 310 313 $final_headers[] = sprintf('%s: %s', $key, $val); 311 314 } -
trunk/lib/Lock.inc.php
r396 r424 387 387 ?> 388 388 <form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>"> 389 <?php $app->printHiddenSession() ?> 390 <input type="hidden" name="lock_id" value="<?php echo $this->getID(); ?>" /> 391 392 <p><?php 393 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."), 394 $this->getTitle(), 395 $this->getEditor(), 396 date('i', $this->getSecondsElapsed() + 60) 397 ); 398 ?></p> 399 400 <?php if ($this->getSecondsElapsed() >= $this->getParam('timeout')) { ?> 401 <p><?php printf(_("You can forcibly unlock the record if you believe the editing session has expired. You might want to confirm with %s before doing this."), $this->getEditor()) ?></p> 402 <input type="submit" name="unlock" value="<?php echo _("Unlock"); ?>" /> 403 <?php } ?> 404 405 <input type="submit" name="cancel" value="<?php echo _("Cancel"); ?>" /> 389 <?php $app->printHiddenSession() ?> 390 <input type="hidden" name="lock_id" value="<?php echo $this->getID(); ?>" /> 391 <div id="sc-msg" class="sc-msg"> 392 <div class="sc-msg-notice"> 393 <?php 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."), 394 $this->getTitle(), 395 $this->getEditor(), 396 date('i', $this->getSecondsElapsed() + 60) 397 ); ?> 398 </div> 399 <?php if ($this->getSecondsElapsed() >= $this->getParam('timeout')) { ?> 400 <div class="sc-msg-notice"><?php printf(_("You can forcibly unlock the record if you believe the editing session has expired. You might want to confirm with %s before doing this."), $this->getEditor()) ?></div> 401 <div class="sc-msg-notice"> 402 <input type="submit" name="unlock" value="<?php echo _("Unlock"); ?>" /> 403 <input type="submit" name="cancel" value="<?php echo _("Cancel"); ?>" /> 404 </div> 405 <?php } else { ?> 406 <div class="sc-msg-notice"> 407 <input type="submit" name="cancel" value="<?php echo _("Cancel"); ?>" /> 408 </div> 409 <?php } ?> 410 </div> 406 411 </form> 407 412 <?php
Note: See TracChangeset
for help on using the changeset viewer.