From 71edaaf46e2e1c9131128a1bdd148d97eddeb38c Mon Sep 17 00:00:00 2001 From: cigamit Date: Mon, 1 Dec 2003 20:54:52 +0000 Subject: [PATCH] Seems I forgot to add a file..... Since people seem to be having an uproar over this, I will be removing it, and adding a seperate branch.... git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6227 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/noframes.php | 105 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 functions/noframes.php diff --git a/functions/noframes.php b/functions/noframes.php new file mode 100644 index 00000000..6c98bb8f --- /dev/null +++ b/functions/noframes.php @@ -0,0 +1,105 @@ +\n"; + echo ""; + echo ""; + echo ""; + echo "\n"; + do_hook('left_main_before'); + echo "
"; + echo "
\n"; + echo "
\n"; + echo "" . _("Folders") . "
\n"; + require_once(SM_PATH . 'src/left_main.php'); + echo "
\n

\n"; + do_hook('left_main_after'); + echo "\n\n"; + } else { + echo "\n"; + echo ""; + echo ""; + echo "
\n\n"; + } +} + +/** + * Displays the bottom html header or the right folder list + * if not using frames + * + * @return void + */ + +function noframes_bottom() { + global $onetimepad, $password, $username, $domain, $trash_folder, $imapConnection, + $sent_folder, $draft_folder, $imapServerAddress, $imapPort, $left_size, + $key, $delimiter, $color, $use_frames, $location_of_bar, + $auto_create_special, $date_format, $hour_format, $collapse_folders, $boxes; + if ($use_frames) return; + if ($location_of_bar == 'left' || $location_of_bar != 'right') { + echo "
\n"; + echo ""; + } else { + $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output + echo "\n\n"; + do_hook('left_main_before'); + echo "
"; + echo "
\n"; + echo "
\n"; + echo "" . _("Folders") . "
\n"; + require_once(SM_PATH . 'src/left_main.php'); + echo "
\n

\n"; + do_hook('left_main_after'); + echo "\n"; + echo "\n"; + } +} + +?> \ No newline at end of file -- 2.25.1