"header" Snippets


Basket #33539

Describe your snippet...
Created: 1488000271
View "Basket #33539"
<mvt:assign name="l.formatted_daysofweek[1]" value="'Sun'" /> <mvt:assign name="l.formatted_daysofweek[2]" value="'Mon'" /> <mvt:assign name="l.formatted_daysofweek[3]" value="'Tue'" /> <mvt:assign name="l.formatted_daysofweek[4]" value="'Wed'" /> <mvt:assign name="l.formatted_daysofweek[5]" value="'Thu'" /> <mvt:assign name="l.formatted_daysofweek[6]" value="'Fri'" /> <mvt:assign name="l.formatted_daysofweek[7]" value="'Sat'" /> <mvt:assign name="l.formatted_months[1]" value="'Jan'" /> <mvt:assign name="l.formatted_months[2]" value="'Feb'" /> <mvt:assign name="l.formatted_months[3]" value="'Mar'" /> <mvt:assign name="l.formatted_months[4]" value="'Apr'" /> <mvt:assign name="l.formatted_months[5]" value="'May'" /> <mvt:assign name="l.formatted_months[6]" value="'Jun'" /> <mvt:assign name="l.formatted_months[7]" value="'Jul'" /> <mvt:assign name="l.formatted_months[8]" value="'Aug'" /> <mvt:assign name="l.formatted_months[9]" value="'Sep'" /> <mvt:assign name="l.formatted_months[10]" value="'Oct'" /> <mvt:assign name="l.formatted_months[11]" value="'Nov'" /> <mvt:assign name="l.formatted_months[12]" value="'Dec'" /> <mvt:assign name="g.current_time" value="s.dyn_time_t" /> <mvt:assign name="g.timezone_offset" value="'-4'" /> <mvt:assign name="g.duration" value="60 * 60 * 24 * 1" /> <mvt:assign name="g.future_time" value="g.current_time + g.duration"/> <mvt:assign name="g.year" value="time_t_year( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.month" value="padl(time_t_month( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.formatted_month" value="l.formatted_months[g.month]" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.dayofweek" value="time_t_dayofweek( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.formatted_dayofweek" value="l.formatted_daysofweek[g.dayofweek]" /> <mvt:assign name="g.24hour" value="padl(time_t_hour( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.min" value="padl(time_t_min( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.sec" value="padl(time_t_sec( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.cookie['name']" value="'mm5-test-cookie'" /> <mvt:assign name="g.cookie['value']" value="'Eat more cookies!'" /> <mvt:assign name="g.cookie['header']" value="g.cookie['name'] $ '=' $ g.cookie['value'] $ '; expires=' $ g.cookie['expiration'] $ '; path=/;'"/> Result: &mvte:global:output_header;<br> Debug:<br> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.cookie), ',', '<br>'))" />
 

Basket #33533

Describe your snippet...
Created: 1488000053
View "Basket #33533"
<mvt:assign name="l.formatted_daysofweek[1]" value="'Sun'" /> <mvt:assign name="l.formatted_daysofweek[2]" value="'Mon'" /> <mvt:assign name="l.formatted_daysofweek[3]" value="'Tue'" /> <mvt:assign name="l.formatted_daysofweek[4]" value="'Wed'" /> <mvt:assign name="l.formatted_daysofweek[5]" value="'Thu'" /> <mvt:assign name="l.formatted_daysofweek[6]" value="'Fri'" /> <mvt:assign name="l.formatted_daysofweek[7]" value="'Sat'" /> <mvt:assign name="l.formatted_months[1]" value="'Jan'" /> <mvt:assign name="l.formatted_months[2]" value="'Feb'" /> <mvt:assign name="l.formatted_months[3]" value="'Mar'" /> <mvt:assign name="l.formatted_months[4]" value="'Apr'" /> <mvt:assign name="l.formatted_months[5]" value="'May'" /> <mvt:assign name="l.formatted_months[6]" value="'Jun'" /> <mvt:assign name="l.formatted_months[7]" value="'Jul'" /> <mvt:assign name="l.formatted_months[8]" value="'Aug'" /> <mvt:assign name="l.formatted_months[9]" value="'Sep'" /> <mvt:assign name="l.formatted_months[10]" value="'Oct'" /> <mvt:assign name="l.formatted_months[11]" value="'Nov'" /> <mvt:assign name="l.formatted_months[12]" value="'Dec'" /> <mvt:assign name="g.current_time" value="s.dyn_time_t" /> <mvt:assign name="g.timezone_offset" value="'-4'" /> <mvt:assign name="g.duration" value="60 * 60 * 24 * 1" /> <mvt:assign name="g.future_time" value="g.current_time + g.duration"/> <mvt:assign name="g.year" value="time_t_year( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.month" value="padl(time_t_month( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.formatted_month" value="l.formatted_months[g.month]" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.dayofweek" value="time_t_dayofweek( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.formatted_dayofweek" value="l.formatted_daysofweek[g.dayofweek]" /> <mvt:assign name="g.24hour" value="padl(time_t_hour( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.min" value="padl(time_t_min( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.sec" value="padl(time_t_sec( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.cookie:expiration" value="g.formatted_dayofweek $ ', ' $ g.formatted_month $ ' ' $ g.year $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec $ ' GMT'" /> <mvt:assign name="g.cookie:name" value="'mm5-test-cookie'" /> <mvt:assign name="g.cookie:value" value="'Eat more cookies!'" /> <mvt:assign name="g.cookie:header" value="g.cookie:name $ '=' $ g.cookie:value $ '; expires=' $ g.cookie:expiration $ '; path=/;'"/> Result: &mvte:global:output_header;<br> Debug:<br> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.cookie), ',', '<br>'))" />
 
View "Set Cookie with miva_output_header"
<mvt:assign name="l.formatted_daysofweek[1]" value="'Sun'" /> <mvt:assign name="l.formatted_daysofweek[2]" value="'Mon'" /> <mvt:assign name="l.formatted_daysofweek[3]" value="'Tue'" /> <mvt:assign name="l.formatted_daysofweek[4]" value="'Wed'" /> <mvt:assign name="l.formatted_daysofweek[5]" value="'Thu'" /> <mvt:assign name="l.formatted_daysofweek[6]" value="'Fri'" /> <mvt:assign name="l.formatted_daysofweek[7]" value="'Sat'" /> <mvt:assign name="l.formatted_months[1]" value="'Jan'" /> <mvt:assign name="l.formatted_months[2]" value="'Feb'" /> <mvt:assign name="l.formatted_months[3]" value="'Mar'" /> <mvt:assign name="l.formatted_months[4]" value="'Apr'" /> <mvt:assign name="l.formatted_months[5]" value="'May'" /> <mvt:assign name="l.formatted_months[6]" value="'Jun'" /> <mvt:assign name="l.formatted_months[7]" value="'Jul'" /> <mvt:assign name="l.formatted_months[8]" value="'Aug'" /> <mvt:assign name="l.formatted_months[9]" value="'Sep'" /> <mvt:assign name="l.formatted_months[10]" value="'Oct'" /> <mvt:assign name="l.formatted_months[11]" value="'Nov'" /> <mvt:assign name="l.formatted_months[12]" value="'Dec'" /> <mvt:assign name="g.current_time" value="s.dyn_time_t" /> <mvt:assign name="g.timezone_offset" value="'-4'" /> <mvt:assign name="g.duration" value="60 * 60 * 24 * 1" /> <mvt:assign name="g.future_time" value="g.current_time + g.duration"/> <mvt:assign name="g.year" value="time_t_year( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.month" value="padl(time_t_month( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.formatted_month" value="l.formatted_months[g.month]" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.dayofweek" value="time_t_dayofweek( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.formatted_dayofweek" value="l.formatted_daysofweek[g.dayofweek]" /> <mvt:assign name="g.24hour" value="padl(time_t_hour( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.min" value="padl(time_t_min( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.sec" value="padl(time_t_sec( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.cookie:expiration" value="g.formatted_dayofweek $ ', ' $ g.formatted_month $ ' ' $ g.year $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec $ ' GMT'" /> <mvt:assign name="g.cookie:name" value="'mm5-test-cookie'" /> <mvt:assign name="g.cookie:value" value="'Eat more cookies!'" /> <mvt:assign name="g.cookie:header" value="g.cookie:name $ '=' $ g.cookie:value $ '; expires=' $ g.cookie:expiration $ '; path=/;'"/> Result: &mvte:global:output_header;<br> Debug:<br> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.cookie), ',', '<br>'))" />
 
View "Set Cookie with miva_output_header"
<mvt:assign name="l.formatted_daysofweek[1]" value="'Sun'" /> <mvt:assign name="l.formatted_daysofweek[2]" value="'Mon'" /> <mvt:assign name="l.formatted_daysofweek[3]" value="'Tue'" /> <mvt:assign name="l.formatted_daysofweek[4]" value="'Wed'" /> <mvt:assign name="l.formatted_daysofweek[5]" value="'Thu'" /> <mvt:assign name="l.formatted_daysofweek[6]" value="'Fri'" /> <mvt:assign name="l.formatted_daysofweek[7]" value="'Sat'" /> <mvt:assign name="l.formatted_months[1]" value="'Jan'" /> <mvt:assign name="l.formatted_months[2]" value="'Feb'" /> <mvt:assign name="l.formatted_months[3]" value="'Mar'" /> <mvt:assign name="l.formatted_months[4]" value="'Apr'" /> <mvt:assign name="l.formatted_months[5]" value="'May'" /> <mvt:assign name="l.formatted_months[6]" value="'Jun'" /> <mvt:assign name="l.formatted_months[7]" value="'Jul'" /> <mvt:assign name="l.formatted_months[8]" value="'Aug'" /> <mvt:assign name="l.formatted_months[9]" value="'Sep'" /> <mvt:assign name="l.formatted_months[10]" value="'Oct'" /> <mvt:assign name="l.formatted_months[11]" value="'Nov'" /> <mvt:assign name="l.formatted_months[12]" value="'Dec'" /> <mvt:assign name="g.current_time" value="s.dyn_time_t" /> <mvt:assign name="g.timezone_offset" value="'-4'" /> <mvt:assign name="g.duration" value="60 * 60 * 24 * 1" /> <mvt:assign name="g.future_time" value="g.current_time + g.duration"/> <mvt:assign name="g.year" value="time_t_year( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.month" value="padl(time_t_month( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.formatted_month" value="l.formatted_months[g.month]" /> <mvt:assign name="g.day" value="padl(time_t_dayofmonth( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.dayofweek" value="time_t_dayofweek( g.future_time, g.timezone_offset )" /> <mvt:assign name="g.formatted_dayofweek" value="l.formatted_daysofweek[g.dayofweek]" /> <mvt:assign name="g.24hour" value="padl(time_t_hour( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.min" value="padl(time_t_min( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.sec" value="padl(time_t_sec( g.future_time, g.timezone_offset ), 2, 0)" /> <mvt:assign name="g.cookie['expiration']" value="g.formatted_dayofweek $ ', ' $ g.formatted_month $ ' ' $ g.year $ ' ' $ g.24hour $ ':' $ g.min $ ':' $ g.sec $ ' GMT'" /> <mvt:assign name="g.cookie['name']" value="'mm5-test-cookie'" /> <mvt:assign name="g.cookie['value']" value="'Eat more cookies!'" /> <mvt:assign name="g.cookie['header']" value="g.cookie['name'] $ '=' $ g.cookie['value'] $ '; expires=' $ g.cookie['expiration'] $ '; path=/;'"/> Result: &mvte:global:output_header;<br> Debug:<br> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.cookie), ',', '<br>'))" />