This commit has been accessed 674 times via Git panel.
commit db309c89db6f5408a565dc236a612141c9b741f5
tree 4357b59ad6bf71cfa80eed869e8dd524b473f2b9
parent 0bd33390ff341b2f7f53d63b29162c013af9efe9
author Engels Antonio <engels@kartero.org> 1362790060 +0800
committer Engels Antonio <engels@kartero.org> 1362790060 +0800
Remove type attribute from script tags
diff --git a/index.php b/index.php
index 57fa924..8dcf80d 100644
--- a/index.php
+++ b/index.php
@@ -1316,7 +1316,7 @@ if (isset($_SESSION['logged_uid'])) {
}
elseif (isset($_POST['set']) and !empty($_POST['set'])) {
- echo "<script type=\"text/javascript\" src=\"core.js\" async></script>";
+ echo "<script src=\"core.js\" async></script>";
echo "<title>Kartero - Settings</title>";
@@ -1681,13 +1681,13 @@ 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");
/*
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 "<script src=\"jquery-1.9.1.min.js\" async></script>";
+ echo "<script">setInterval(\"$('#main').load('inbox.php');\", 60000);</script>";
}
*/
}
tree 4357b59ad6bf71cfa80eed869e8dd524b473f2b9
parent 0bd33390ff341b2f7f53d63b29162c013af9efe9
author Engels Antonio <engels@kartero.org> 1362790060 +0800
committer Engels Antonio <engels@kartero.org> 1362790060 +0800
Remove type attribute from script tags
diff --git a/index.php b/index.php
index 57fa924..8dcf80d 100644
--- a/index.php
+++ b/index.php
@@ -1316,7 +1316,7 @@ if (isset($_SESSION['logged_uid'])) {
}
elseif (isset($_POST['set']) and !empty($_POST['set'])) {
- echo "<script type=\"text/javascript\" src=\"core.js\" async></script>";
+ echo "<script src=\"core.js\" async></script>";
echo "<title>Kartero - Settings</title>";
@@ -1681,13 +1681,13 @@ 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");
/*
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 "<script src=\"jquery-1.9.1.min.js\" async></script>";
+ echo "<script">setInterval(\"$('#main').load('inbox.php');\", 60000);</script>";
}
*/
}