+/* get globals we may need */
+
+sqgetGlobalVar('username', $username, SQ_SESSION);
+sqgetGlobalVar('key', $key, SQ_COOKIE);
+sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
+sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION);
+
+sqgetGlobalVar('success', $success, SQ_GET);
+
+/* end of get globals */
+
+echo '<br>' .
+ html_tag( 'table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'center' ) . '<b>' . _("Folders") . '</b>' .
+ html_tag( 'table', '', 'center', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'center', $color[4] );
+
+if ( isset($success) && $success ) {
+
+ $td_str = '<b>';
+
+ switch ($success)
+ {
+ case 'subscribe':
+ $td_str .= _("Subscribed successfully!");
+ break;
+ case 'unsubscribe':
+ $td_str .= _("Unsubscribed successfully!");
+ break;
+ case 'delete':
+ $td_str .= _("Deleted folder successfully!");
+ break;
+ case 'create':
+ $td_str .= _("Created folder successfully!");
+ break;
+ case 'rename':
+ $td_str .= _("Renamed successfully!");
+ break;
+ case 'subscribe-doesnotexist':
+ $td_str .= _("Subscription Unsuccessful - Folder does not exist.");
+ break;
+ }