json_encode( $flags ) ) ); } function save_flags() { if ( v::vtuser('id') >= 100 && v::vtuser('accountType') != 2 ) { v::vtdo( array ( '-act' => 'update', '-obj' => v::vtuser('id'), 'Flags' => v::vtget('Flags') ) ); } else { v::vtdo( array ( '-act' => 'setCookie', '-expires' => v::vtget('LightboxLifetime'), 'pxtc_flags' => v::vtget('Flags') ) ); } } ?> {{vtScript}} {{vtInclude: includes/initialize.html}} {{vtIf: {vtPageType} .eq. image }} {{vtCalc: set_flags( {vtId} ) }} {{vtCalc: save_flags() }} {{vtEndIf}} {{vtEndScript}}{{vtGet:Flags}}