--- parser3/src/www/htdocs/Attic/auto.p 2001/05/23 08:57:39 1.23 +++ parser3/src/www/htdocs/Attic/auto.p 2001/10/26 15:55:20 1.44 @@ -1,92 +1,2 @@ -@main[] -^header[] -^print_path[] -^print_menu[] -^body[] -^hr[] -^footer[] - - -@header[] - - - -#^macro[load_config] -^print_header[] - -
- -@body[] - -@footer[] -
The matrix has you ...
- - - - -@i[] -$result[$config.images.value] - -@hr[] -


- @auto[] -$DEFAULTS[ - $content-type[ - $value[text/html] - $charset[koi8-r] - ] -] - -#$config_table[^table:load[/layout.cfg]] -#$config[^config_table.hash[name][value]] - -@print_path[][p;path;links;prefix;location] Печатает строку навигации "Корень / раздел / раздел" -$p[$request:uri] -$path[^p.lsplit[/]] -^path.flip[] -^path.menu{ - ^if("$prefix" eq ""){ - ^if($p eq "/"){Elik.Ru}{Elik.Ru} - }{ - ^if(-f "${prefix}links.cfg"){ - - $links[^table:load[${prefix}links.cfg]] - $links[^links.hash[location;description]] - - $location[$path.0] - ^if($p eq "${prefix}$location/"){$links.$location.description}{$links.$location.description} - } - } - $prefix[${prefix}$location/] -}[ ^;/ ^;]
^hr[] - -@print_header[][p;path;links;prefix;location] Печатает строку заголовка "Корень | раздел | раздел" -$p[$request:uri] -$path[^p.lsplit[/]] -^path.flip[] -^path.menu{ - ^if("$prefix" eq ""){ - Elik.Ru - }{ - ^if(-f "${prefix}links.cfg"){ - - $links[^table:load[${prefix}links.cfg]] - $links[^links.hash[location;description]] - - $location[$path.0] - $links.$location.description - } - } - $prefix[${prefix}$location/] -}[ ^;| ^;] - -@print_menu[][links] -^if(-f links.cfg){ - $links[^table:load[links.cfg]] - $links{^menu{ - $description^if($:menu_separator ne ""){$:menu_separator}{
} - }} - ^hr[] -} - +#$ORIGINS(1)