NAME

Presentation.pm - ïîäïðîãðàììû îòðèñîâêè ýëåìåíòîâ ÃÈÏ.

create_url

Ïðîöåäóðà ãåíåðàöèè url ñ ñîõðàíåíèåì ñåññèè è âñåõ CGI-ïàðàìåòðîâ, êðîìå ÿâíî ïåðåîïðåäåëÿåìûõ è òåõ, èìåíà êîòîðûõ íà÷èíàþòñÿ ñ '_'.

Èñïîëüçîâàíèå

# Òåêóùèé url: /?sid=666&type=foo&_x=1&id=1

my $url = create_url (id => 2, n => 5);

# Òåïåðü $url eq '/?sid=666&type=foo&id=2&n=5'

check_href

Ïðîöåäóðà êîððåêöèè êîìïîíåíòà href çàäàííîãî õýøà, ïåðåäàííîãî ïî ññûëêå, íà ïðåäìåò ðàññòàíîâêè ïàðàìåòðîâ sid è _salt. Äëÿ javascript-ññûëîê îñòàâëÿåò àðãóìåíò áåç èçìåíåíèÿ.

Èñïîëüçîâàíèå

# Òåêóùèé $options: {href => '/?type=foo&_x=1&id=1'}, sid = 666

check_href ($options);

# Òåïåðü $options: {href => '/?type=foo&_x=1&id=1&sid=666&_salt=0.357357387387'}

1 POD Error

The following errors were encountered while parsing the POD:

Around line 12:

Non-ASCII character seen before =encoding in 'ïîäïðîãðàììû'. Assuming CP1252