30 if( file_exists(
DIRECTORY_BASE .
$ct[
'page'][
'template'][
'path'] .
'etc/template.conf' ) ) {
31 $ct[
'page'] = array_merge_recursive(
33 parse_ini_file(
DIRECTORY_BASE . $ct[
'page'][
'template'][
'path'] .
'etc/template.conf',
true, INI_SCANNER_RAW )
36 logWrite(
'il file ' .
DIRECTORY_BASE . $ct[
'page'][
'template'][
'path'] .
'etc/template.conf non esiste',
'template', LOG_CRIT );
40 if( isset( $ct[
'page'][
'auth'][
'groups'] ) && is_array( $ct[
'page'][
'auth'][
'groups'] ) ) {
41 if( ! isset(
$_SESSION[
'account'][
'gruppi'] ) || ! is_array(
$_SESSION[
'account'][
'gruppi'] ) || count( array_intersect( $ct[
'page'][
'auth'][
'groups'],
$_SESSION[
'account'][
'gruppi'] ) ) == 0 ) {
42 logWrite(
'accesso non consentito alla pagina ' . $ct[
'page'][
'id'] .
', sessione ' . session_id() .
43 ' (gruppi utente ' . ( ( isset(
$_SESSION[
'account'][
'gruppi']) ) ? implode(
',',
$_SESSION[
'account'][
'gruppi']) :
'nessuno' ) .
' / ' .
44 'gruppi richiesti ' . ( ( isset($ct[
'page'][
'auth'][
'groups']) ) ? implode(
',',$ct[
'page'][
'auth'][
'groups']) :
'nessuno' ) .
')',
'auth', LOG_NOTICE );
45 $ct[
'page'][
'template'][
'schema'] =
'login.html';
46 # $h = fopen( DIRECTORY_BASE . 'var/log/sessions.debug', 'a+' ); 47 # fwrite( $h, date('Y-m-d H:i:s') . ' ' . session_id() . ' -> logout' . PHP_EOL ); 50 logWrite(
'accesso consentito alla pagina ' . $ct[
'page'][
'id'] .
', sessione ' . session_id(),
'auth', LOG_DEBUG );
51 # $h = fopen( DIRECTORY_BASE . 'var/log/sessions.debug', 'a+' ); 52 # fwrite( $h, date('Y-m-d H:i:s') . ' ' . session_id() . ' -> continue' . PHP_EOL ); if(isset( $cx['contatti'])) if(isset( $cf['site']['contatti'])) $ct['contatti']
logWrite( $m, $f='site', $l=LOG_NOTICE, $d=DIRECTORY_LOG, $t=CURRENT_LOG_LEVEL, $s=SITE_STATUS)
scrive un messaggio nei log del sito
if(isset( $_REQUEST['amazonCheckoutSessionId'])) $_SESSION['carrello']