X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Ffolders_rename_getname.php;h=f6e4225026ab298e94d4ee7b8a6bf11e254504fc;hp=c5a85c99e71a941bcb3790c835e17b6db85efe98;hb=eb47b7175cea87747bbd30379904ac5f40db7706;hpb=bd9bbfefba8fa274260a37c965f7510bb6670599
diff --git a/src/folders_rename_getname.php b/src/folders_rename_getname.php
index c5a85c99..f6e42250 100644
--- a/src/folders_rename_getname.php
+++ b/src/folders_rename_getname.php
@@ -12,58 +12,46 @@
* $Id$
*/
-/*****************************************************************/
-/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
-/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
-/*** + Base level indent should begin at left margin, as ***/
-/*** the require_once below looks. ***/
-/*** + All identation should consist of four space blocks ***/
-/*** + Tab characters are evil. ***/
-/*** + all comments should use "slash-star ... star-slash" ***/
-/*** style -- no pound characters, no slash-slash style ***/
-/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
-/*** ALWAYS USE { AND } CHARACTERS!!! ***/
-/*** + Please use ' instead of ", when possible. Note " ***/
-/*** should always be used in _( ) function calls. ***/
-/*** Thank you for your help making the SM code more readable. ***/
-/*****************************************************************/
+global $delimiter;
require_once('../src/validate.php');
require_once('../functions/imap.php');
- $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
- global $delimiter;
- if (substr($old, strlen($old) - strlen($delimiter)) == $delimiter) {
- $isfolder = true;
- $old = substr($old, 0, strlen($old) - 1);
- }
-
- if (strpos($old, $delimiter)) {
- $old_name = substr($old, strrpos($old, $delimiter)+1, strlen($old));
- $old_parent = substr($old, 0, strrpos($old, $delimiter));
- } else {
- $old_name = $old;
- $old_parent = "";
- }
+if (substr($old, strlen($old) - strlen($delimiter)) == $delimiter) {
+ $isfolder = TRUE;
+ $old = substr($old, 0, strlen($old) - 1);
+} else {
+ $isfolder = FALSE;
+}
- displayPageHeader($color, 'None');
- echo "
";
- echo "";
- echo _("Rename a folder");
- echo " |
";
- echo "";
- echo "
|
";
- echo "
";
+if (strpos($old, $delimiter)) {
+ $old_name = substr($old, strrpos($old, $delimiter)+1, strlen($old));
+ $old_parent = substr($old, 0, strrpos($old, $delimiter));
+} else {
+ $old_name = $old;
+ $old_parent = '';
+}
- /** Log out this session **/
- sqimap_logout($imapConnection);
-?>
+displayPageHeader($color, 'None');
+echo "
".
+ "".
+ _("Rename a folder").
+ " |
".
+ "".
+ "
|
".
+ "
";
+
+/** Log out this session **/
+sqimap_logout($imapConnection);
+?>
\ No newline at end of file