X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=187b1ef19f99068178205018a071b80e21f9c67f;hb=95dcee50e4d7ffe1d0b686377042ff3b735bc81c;hp=5f2217959bb55645dd3bf933ba67621d72dd9900;hpb=08185f2a7631c3a12cb1ac085fec3be471b56b00;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index 5f221795..187b1ef1 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -185,7 +185,7 @@ function create_unseen_string($boxName, $boxArray, $imapConnection) { global $boxes, $unseen_type, $color; /* Initialize the return value. */ - $result = array(); + $result = array(0,0); /* Initialize the counts for this folder. */ $boxUnseenCount = 0; @@ -489,7 +489,17 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { /* -------------------- MAIN ------------------------ */ -global $delimiter, $default_folder_prefix, $left_size; +$key = $_COOKIE['key']; +$onetimepad = $_SESSION['onetimepad']; +$username = $_SESSION['username']; +$delimiter = $_SESSION['delimiter']; + +if (isset($_GET['fold'])) { + $fold = $_GET['fold']; +} +if (isset($_GET['unfold'])) { + $unfold = $_GET['unfold']; +} // open a connection on the imap port (143) $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output @@ -784,7 +794,7 @@ if ($auto_create_special && !isset($auto_create_done)) { /* Let the world know that autocreation is complete! Hurrah! */ $auto_create_done = TRUE; - session_register('auto_create_done'); + sqsession_register($auto_create_done, 'auto_create_done'); } echo "\n\n";