This commit has been accessed 625 times via Git panel.
commit 0bd33390ff341b2f7f53d63b29162c013af9efe9
tree c6ff319c78806a400d7a12a72d0f5ab9bb0f29a8
parent 5cafce26d583593a5ef3f47a94d8682eb78437cc
author Engels Antonio <engels@majcms.org> 1362789290 +0800
committer Engels Antonio <engels@majcms.org> 1362789290 +0800
Change inbox refresh: fadeIn() fadeOut() to load()
diff --git a/index.php b/index.php
index c39fc07..57fa924 100644
--- a/index.php
+++ b/index.php
@@ -1681,13 +1681,15 @@ echo "</tr>";
}
else {
// imap_ping() should be doing this, but it's not working:
- $mbox = @imap_open("{$imap_host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
+ //$mbox = @imap_open("{$imap_host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
include("inbox.php");
-
-//echo "<script type=\"text/javascript\" src=\"jquery-1.3.2.min.js\"></script>";
-
-//echo "<script type=\"text/javascript\"> $(document).ready(function() { setInterval(function() { $('#main').fadeOut(\"fast\").load('inbox.php').fadeIn(\"slow\"); }, 5000); }); </script>";
+/*
+ if ((count($_POST) == 0) or ((count($_POST) == 3) and array_key_exists('x',$_POST) and array_key_exists('y',$_POST) and ($_POST['box'] == "INBOX"))) {
+ echo "<script type=\"text/javascript\" src=\"jquery-1.9.1.min.js\" async></script>";
+ echo "<script type=\"text/javascript\">setInterval(\"$('#main').load('inbox.php');\", 60000);</script>";
+ }
+*/
}
echo "</div></td>";
tree c6ff319c78806a400d7a12a72d0f5ab9bb0f29a8
parent 5cafce26d583593a5ef3f47a94d8682eb78437cc
author Engels Antonio <engels@majcms.org> 1362789290 +0800
committer Engels Antonio <engels@majcms.org> 1362789290 +0800
Change inbox refresh: fadeIn() fadeOut() to load()
diff --git a/index.php b/index.php
index c39fc07..57fa924 100644
--- a/index.php
+++ b/index.php
@@ -1681,13 +1681,15 @@ echo "</tr>";
}
else {
// imap_ping() should be doing this, but it's not working:
- $mbox = @imap_open("{$imap_host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
+ //$mbox = @imap_open("{$imap_host}$folder", $_SESSION['logged_uid'], $_SESSION['logged_key'], CL_EXPUNGE) or die(imap_last_error());
include("inbox.php");
-
-//echo "<script type=\"text/javascript\" src=\"jquery-1.3.2.min.js\"></script>";
-
-//echo "<script type=\"text/javascript\"> $(document).ready(function() { setInterval(function() { $('#main').fadeOut(\"fast\").load('inbox.php').fadeIn(\"slow\"); }, 5000); }); </script>";
+/*
+ if ((count($_POST) == 0) or ((count($_POST) == 3) and array_key_exists('x',$_POST) and array_key_exists('y',$_POST) and ($_POST['box'] == "INBOX"))) {
+ echo "<script type=\"text/javascript\" src=\"jquery-1.9.1.min.js\" async></script>";
+ echo "<script type=\"text/javascript\">setInterval(\"$('#main').load('inbox.php');\", 60000);</script>";
+ }
+*/
}
echo "</div></td>";