gaim/www
Clone
Summary
Browse
Changes
Graph
Add Sametime to the list of supported protocols, add 'Novell' in front of GroupWise to match the About box, remove 'MSN window closing notification' from the feature list.
2006-03-20, Richard Laager
bb70bdbaeb5e
Add Sametime to the list of supported protocols, add 'Novell' in front of GroupWise to match the About box, remove 'MSN window closing notification' from the feature list.
<?
$page
->
title
=
'FAQ - SSL'
;
require
(
'template.inc.php'
);
require_once
(
'faq-functions.inc.php'
);
?>
<h1>
Frequently
Asked
Questions
-
SSL
</h1>
<?
/* The Q&A begins here */
$faq
=
file
(
"./faq-ssl.txt"
);
$faq_lines
=
count
(
$faq
);
$sections
=
array
();
$qa
=
1
;
$in_section
=
0
;
$in_question
=
0
;
/* Loop through once to get all the questions. */
for
(
$i
=
0
;
$i
<
$faq_lines
;
$i
++
)
{
$line
=
$faq
[
$i
];
if
(
$line
==
""
||
$line
==
"
\n
"
||
substr
(
$line
,
0
,
3
)
==
"A:
\t
"
)
{
if
(
$in_question
)
{
print
"</a></li>
\n
"
;
$in_question
=
0
;
}
continue
;
}
elseif
(
substr
(
$line
,
0
,
3
)
==
"Q:
\t
"
)
{
if
(
$in_question
)
{
print
"</a></li>
\n
"
;
$in_question
=
0
;
}
$question
=
substr
(
$line
,
3
);
$question
=
preg_replace
(
"/(<\/?(br|code|pre|div)( ?\/)?>|[
\r\n\t
])/"
,
" "
,
$question
);
print
" <li><a href=
\"
#q"
.
$qa
.
"
\"
>"
;
print
$question
;
$in_question
=
1
;
$qa
++
;
}
elseif
(
substr
(
$line
,
0
,
9
)
==
"!SECTION
\t
"
)
{
if
(
$in_question
)
{
print
"</a></li>
\n
"
;
$in_question
=
0
;
}
if
(
$in_section
)
print
"</ul>
\n
"
;
print
"<b>"
.
trim
(
substr
(
$line
,
9
))
.
"</b>
\n
"
;
print
"<ul>
\n
"
;
$in_section
=
1
;
}
elseif
(
substr
(
$line
,
0
,
9
)
==
"!COMMENT
\t
"
)
{
}
elseif
(
$in_question
)
{
print
preg_replace
(
"/(<\/?(br|code|pre|div)( ?\/)?>|[
\r\n\t
])/"
,
" "
,
$line
);
}
}
if
(
$in_question
==
1
)
{
print
"</a></li>
\n
"
;
}
if
(
$in_section
==
1
)
{
print
"</ul>
\n
"
;
}
/* Now we'll loop through again to print out the questions and answers. */
$qa
=
1
;
$in_section
=
0
;
$in_question
=
0
;
$in_answer
=
0
;
$anchor
=
""
;
for
(
$i
=
0
;
$i
<
$faq_lines
;
$i
++
)
{
$line
=
$faq
[
$i
];
if
(
substr
(
$line
,
0
,
3
)
==
"Q:
\t
"
)
{
check_in_qa
();
start_q
();
print
substr
(
$line
,
3
);
$qa
++
;
$in_question
=
1
;
}
elseif
(
substr
(
$line
,
0
,
3
)
==
"A:
\t
"
)
{
check_in_qa
();
start_a
();
print
substr
(
$line
,
3
);
$in_answer
=
1
;
}
elseif
(
substr
(
$line
,
0
,
9
)
==
"!SECTION
\t
"
)
{
check_in_qa
();
if
(
$in_section
==
1
)
{
print
"</dl>
\n
"
;
}
$name
=
trim
(
substr
(
$line
,
9
));
print
"<h2 id=
\"
"
.
build_section_name
(
$name
)
.
"
\"
>
$name
</h2>"
;
print
"<dl>
\n
"
;
$in_section
=
1
;
}
elseif
(
substr
(
$line
,
0
,
8
)
==
"!ANCHOR
\t
"
)
{
$anchor
=
trim
(
substr
(
$line
,
8
));
}
elseif
(
substr
(
$line
,
0
,
9
)
==
"!COMMENT
\t
"
)
{
}
elseif
(
$in_question
||
$in_answer
)
{
print
$line
;
}
}
check_in_qa
();
if
(
$in_section
==
1
)
{
print
"</dl>
\n
"
;
}
?>