| 167 |
. "\n AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' )" |
. "\n AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' )" |
| 168 |
. "\n ORDER BY ". $order_pri . $order_sec |
. "\n ORDER BY ". $order_pri . $order_sec |
| 169 |
; |
; |
| 170 |
$database->setQuery( $query ); |
// $database->setQuery( $query ); |
| 171 |
$rows = $database->loadObjectList(); |
// $rows = $database->loadObjectList(); |
| 172 |
|
$rows = $database->doSQLget($query, 'mosExtendedContent'); |
| 173 |
|
|
| 174 |
// Dynamic Page Title |
// Dynamic Page Title |
| 175 |
$mainframe->SetPageTitle( $menu->name ); |
$mainframe->SetPageTitle( $menu->name ); |
| 507 |
. "\n AND s.access<=$gid" |
. "\n AND s.access<=$gid" |
| 508 |
. "\n ORDER BY ". $order_pri . $order_sec |
. "\n ORDER BY ". $order_pri . $order_sec |
| 509 |
; |
; |
| 510 |
$database->setQuery( $query ); |
// $database->setQuery( $query ); |
| 511 |
$rows = $database->loadObjectList(); |
// $rows = $database->loadObjectList(); |
| 512 |
|
$rows = $database->doSQLget($query, 'mosExtendedContent'); |
| 513 |
|
|
| 514 |
// Dynamic Page Title |
// Dynamic Page Title |
| 515 |
if ($menu) { |
if ($menu) { |
| 560 |
. "\n AND s.access <= ". $gid |
. "\n AND s.access <= ". $gid |
| 561 |
. "\n ORDER BY ". $order_pri . $order_sec; |
. "\n ORDER BY ". $order_pri . $order_sec; |
| 562 |
; |
; |
| 563 |
$database->setQuery( $query ); |
// $database->setQuery( $query ); |
| 564 |
$rows = $database->loadObjectList(); |
// $rows = $database->loadObjectList(); |
| 565 |
|
$rows = $database->doSQLget($query, 'mosExtendedContent'); |
| 566 |
|
|
| 567 |
// Dynamic Page Title |
// Dynamic Page Title |
| 568 |
$mainframe->SetPageTitle( $menu->name ); |
$mainframe->SetPageTitle( $menu->name ); |
| 631 |
. "\n AND s.access <= ". $gid |
. "\n AND s.access <= ". $gid |
| 632 |
. "\n ORDER BY ". $order_pri . $order_sec |
. "\n ORDER BY ". $order_pri . $order_sec |
| 633 |
; |
; |
| 634 |
$database->setQuery( $query ); |
// $database->setQuery( $query ); |
| 635 |
$rows = $database->loadObjectList(); |
// $rows = $database->loadObjectList(); |
| 636 |
|
$rows = $database->doSQLget($query, 'mosExtendedContent'); |
| 637 |
|
|
| 638 |
// initiate form |
// initiate form |
| 639 |
echo '<form action="'.sefRelToAbs( 'index.php').'" method="post">'; |
echo '<form action="'.sefRelToAbs( 'index.php').'" method="post">'; |
| 712 |
. "\n AND s.access <= ". $gid |
. "\n AND s.access <= ". $gid |
| 713 |
. "\n ORDER BY ". $order_sec |
. "\n ORDER BY ". $order_sec |
| 714 |
; |
; |
| 715 |
$database->setQuery( $query ); |
// $database->setQuery( $query ); |
| 716 |
$rows = $database->loadObjectList(); |
// $rows = $database->loadObjectList(); |
| 717 |
|
$rows = $database->doSQLget($query, 'mosExtendedContent'); |
| 718 |
|
|
| 719 |
// initiate form |
// initiate form |
| 720 |
echo '<form action="'.sefRelToAbs( 'index.php').'" method="post">'; |
echo '<form action="'.sefRelToAbs( 'index.php').'" method="post">'; |
| 993 |
. "\n AND a.access <= ". $gid |
. "\n AND a.access <= ". $gid |
| 994 |
; |
; |
| 995 |
$database->setQuery( $query ); |
$database->setQuery( $query ); |
| 996 |
$row = NULL; |
// $row = NULL; |
| 997 |
|
$row = new mosExtendedContent(); |
| 998 |
|
|
| 999 |
if ( $database->loadObject( $row ) ) { |
if ( $database->loadObject( $row ) ) { |
| 1000 |
$pathway = mosPathway::getInstance(); |
$pathway = mosPathway::getInstance(); |
| 1164 |
|
|
| 1165 |
// fail if checked out not by 'me' |
// fail if checked out not by 'me' |
| 1166 |
if ( $row->checked_out && $row->checked_out <> $my->id ) { |
if ( $row->checked_out && $row->checked_out <> $my->id ) { |
| 1167 |
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>"; |
| 1168 |
exit; |
exit; |
| 1169 |
} |
} |
| 1170 |
|
|
| 1438 |
$email = trim( mosGetParam( $_POST, 'email', '' ) ); |
$email = trim( mosGetParam( $_POST, 'email', '' ) ); |
| 1439 |
$yourname = trim( mosGetParam( $_POST, 'yourname', '' ) ); |
$yourname = trim( mosGetParam( $_POST, 'yourname', '' ) ); |
| 1440 |
$youremail = trim( mosGetParam( $_POST, 'youremail', '' ) ); |
$youremail = trim( mosGetParam( $_POST, 'youremail', '' ) ); |
| 1441 |
$subject_default = _EMAIL_INFO ." $yourname"; |
$subject_default = sprintf(T_('Item sent by %s'), $yourname); |
| 1442 |
$subject = trim( mosGetParam( $_POST, 'subject', $subject_default ) ); |
$subject = trim( mosGetParam( $_POST, 'subject', $subject_default ) ); |
| 1443 |
|
|
| 1444 |
$form_check = mosGetParam( $_POST, 'form_check', '' ); |
$form_check = mosGetParam( $_POST, 'form_check', '' ); |
| 1458 |
// link sent in email |
// link sent in email |
| 1459 |
$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 ); |
| 1460 |
// message text |
// message text |
| 1461 |
$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 ). |
| 1462 |
|
|
| 1463 |
|
You can access it at the following url: |
| 1464 |
|
%s'), $mosConfig_sitename, $yourname, $youremail, $link ); |
| 1465 |
|
|
| 1466 |
// mail function |
// mail function |
| 1467 |
mosMail( $mosConfig_mailfrom, $mosConfig_fromname, $email, $subject, $msg ); |
mosMail( $mosConfig_mailfrom, $mosConfig_fromname, $email, $subject, $msg ); |