Bevor diese verfallen, werden diese aber oft von Suchmaschinen indiziert und es kann auch nach dem Verfallsdatum noch die Detail-Seite aufgerufen werden, auch wenn das Archiv gar nicht aktiviert ist. Die typische Deep-Link Problematik.
Das lässt sich durch ein kleine Modifikation in
_includesite/i_detail.php ändern.REPLACE // ERSETZE
Code: Alles auswählen
$query = 'SELECT rubric_id, commentary, verfallsdatum, templates_id, nr, idx, email, autor, pub_datum, titel, initial, freigabe, changer, last_modify '
.'FROM '.CPO_NEWS.' '
.'WHERE nr='.(int)$_REQUEST['nr'].' '
.'AND ('.$auth_string.') '
.'AND rubric_id='.(int)$cpoRubric['id'].' '
.'AND '.($articlestates = $cpoSystem['release']
? 'artikel_archiv<2 AND freigabe='.STATE_RELEASED.' '
: 'artikel_archiv<1 AND freigabe!='.STATE_BLOCKED.' '
);
$now = time();
Code: Alles auswählen
$now = time();
$pub_string = (!$cpoRubricSettings['showArchive']) ?
"AND pub_datum<='".date('Y-m-d H:i:s', $now)."' AND verfallsdatum>='".date('Y-m-d H:i:s', $now)."' " :
"AND pub_datum<='".date('Y-m-d H:i:s', $now)."' ";
$query = 'SELECT rubric_id, commentary, verfallsdatum, templates_id, nr, idx, email, autor, pub_datum, titel, initial, freigabe, changer, last_modify '
.'FROM '.CPO_NEWS.' '
.'WHERE nr='.(int)$_REQUEST['nr'].' '
.$pub_string
.'AND ('.$auth_string.') '
.'AND rubric_id='.(int)$cpoRubric['id'].' '
.'AND '.($articlestates = $cpoSystem['release']
? 'artikel_archiv<2 AND freigabe='.STATE_RELEASED.' '
: 'artikel_archiv<1 AND freigabe!='.STATE_BLOCKED.' '
);
detail.php?nr= abklappern.