| 1158 |
|
|
| 1159 |
// fail if checked out not by 'me' |
// fail if checked out not by 'me' |
| 1160 |
if ( $row->checked_out && $row->checked_out <> $my->id ) { |
if ( $row->checked_out && $row->checked_out <> $my->id ) { |
| 1161 |
echo"<script>alert('The module [ ".$row->title." ] is currently being edited by another person.'); window.history.go(-1); </script>"; |
echo"<script>alert('".sprintf(T_('The module [ %s ] is currently being edited by another person.'), $row->title)."'); window.history.go(-1); </script>"; |
| 1162 |
exit; |
exit; |
| 1163 |
} |
} |
| 1164 |
|
|
| 1432 |
$email = trim( mosGetParam( $_POST, 'email', '' ) ); |
$email = trim( mosGetParam( $_POST, 'email', '' ) ); |
| 1433 |
$yourname = trim( mosGetParam( $_POST, 'yourname', '' ) ); |
$yourname = trim( mosGetParam( $_POST, 'yourname', '' ) ); |
| 1434 |
$youremail = trim( mosGetParam( $_POST, 'youremail', '' ) ); |
$youremail = trim( mosGetParam( $_POST, 'youremail', '' ) ); |
| 1435 |
$subject_default = _EMAIL_INFO ." $yourname"; |
$subject_default = sprintf(T_('Item sent by %s'), $yourname); |
| 1436 |
$subject = trim( mosGetParam( $_POST, 'subject', $subject_default ) ); |
$subject = trim( mosGetParam( $_POST, 'subject', $subject_default ) ); |
| 1437 |
|
|
| 1438 |
$form_check = mosGetParam( $_POST, 'form_check', '' ); |
$form_check = mosGetParam( $_POST, 'form_check', '' ); |
| 1452 |
// link sent in email |
// link sent in email |
| 1453 |
$link = sefRelToAbs( $mosConfig_live_site .'/index.php?option=com_content&task=view&id='. $uid .'&Itemid='. $_Itemid ); |
$link = sefRelToAbs( $mosConfig_live_site .'/index.php?option=com_content&task=view&id='. $uid .'&Itemid='. $_Itemid ); |
| 1454 |
// message text |
// message text |
| 1455 |
$msg = sprintf( _EMAIL_MSG, $mosConfig_sitename, $yourname, $youremail, $link ); |
$msg = sprintf( T_(' The following page from the "%s" website has been sent to you by %s ( %s ). |
| 1456 |
|
|
| 1457 |
|
You can access it at the following url: |
| 1458 |
|
%s'), $mosConfig_sitename, $yourname, $youremail, $link ); |
| 1459 |
|
|
| 1460 |
// mail function |
// mail function |
| 1461 |
mosMail( $mosConfig_mailfrom, $mosConfig_fromname, $email, $subject, $msg ); |
mosMail( $mosConfig_mailfrom, $mosConfig_fromname, $email, $subject, $msg ); |