/[pub]/suikawiki/script/misc/plugins/view/Downgrade.wp2
Suika

Contents of /suikawiki/script/misc/plugins/view/Downgrade.wp2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Dec 26 07:01:21 2003 UTC (20 years, 10 months ago) by wakaba
Branch: MAIN
New

1 wakaba 1.1 #?SuikaWikiConfig/2.0
2    
3     Plugin:
4     @Name: Downgrade
5     @Description:
6     @@@: WikiView output partial downgrade for old clients
7     @@lang:en
8     @License: %%GPL%%
9     @Author:
10     @@Name:
11     @@@@: Wakaba
12     @@@lang:ja
13     @@@script:Latn
14     @@Mail[list]: w@suika.fam.cx
15     @Date.RCS: $Date: 2003/11/25 12:38:22 $
16     @RequiredModule[list]:
17     @RequiredPlugin[list]:
18     WikiView
19     WikiStruct
20     WikiLinking
21     HTML
22    
23     PluginConst:
24     @NS_XHTML1:
25     http://www.w3.org/1999/xhtml
26    
27     Function:
28     @Name: set_downgrade_flags
29     @Description:
30     @@@: Setting value to downgrade flags ($wiki->{var}->{client}->{downgrade})
31     @@lang:en
32     @Main:
33     my (undef, $wiki) = @_;
34     my $flag = $wiki->{var}->{client}->{downgrade} ||= {};
35     my $ua_name = $wiki->{var}->{client}->{user_agent_name};
36    
37     ## Classic Mozilla
38     if ($ua_name =~ m#^Mozilla/[0-4]\.#) {
39     $flag->{html_no_id} = 1;
40     }

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24