+
+/**
+ * This function prints out an option page row.
+ */
+function print_optionpages_row($leftopt, $rightopt = false) {
+ global $color;
+
+ if ($rightopt) {
+ $rightopt_name = html_tag( 'td', '<a href="' . $rightopt['url'] . '">' . $rightopt['name'] . '</a>', 'left', $color[9], 'valign="top" width="49%"' );
+ $rightopt_desc = html_tag( 'td', $rightopt['desc'], 'left', $color[0], 'valign="top" width="49%"' );
+ } else {
+ $rightopt_name = html_tag( 'td', ' ', 'left', $color[4], 'valign="top" width="49%"' );
+ $rightopt_desc = html_tag( 'td', ' ', 'left', $color[4], 'valign="top" width="49%"' );
+ }
+
+ echo
+ html_tag( 'table', "\n" .
+ html_tag( 'tr', "\n" .
+ html_tag( 'td', "\n" .
+ html_tag( 'table', "\n" .
+ html_tag( 'tr', "\n" .
+ html_tag( 'td',
+ '<a href="' . $leftopt['url'] . '">' . $leftopt['name'] . '</a>' ,
+ 'left', $color[9], 'valign="top" width="49%"' ) .
+ html_tag( 'td',
+ ' ' ,
+ 'left', $color[4], 'valign="top" width="2%"' ) . "\n" .
+ $rightopt_name
+ ) . "\n" .
+ html_tag( 'tr', "\n" .
+ html_tag( 'td',
+ $leftopt['desc'] ,
+ 'left', $color[0], 'valign="top" width="49%"' ) .
+ html_tag( 'td',
+ ' ' ,
+ 'left', $color[4], 'valign="top" width="2%"' ) . "\n" .
+ $rightopt_desc
+ ) ,
+ '', '', 'width="100%" cellpadding="2" cellspacing="0" border="0"' ) ,
+ 'left', '', 'valign="top"' )
+ ) ,
+ '', $color[4], 'width="100%" cellpadding="0" cellspacing="5" border="0"' );
+}
+
+/* ---------------------------- main ---------------------------- */
+
+/* get the globals that we may need */
+sqgetGlobalVar('key', $key, SQ_COOKIE);
+sqgetGlobalVar('username', $username, SQ_SESSION);
+sqgetGlobalVar('onetimepad',$onetimepad, SQ_SESSION);
+sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
+
+sqgetGlobalVar('optpage', $optpage);
+sqgetGlobalVar('optmode', $optmode, SQ_POST);
+sqgetGlobalVar('optpage_data',$optpage_data, SQ_POST);
+/* end of getting globals */
+