Okay before I offend anyone - I love the look of this theme, I like the way it makes it look not like moodle, but still like moodle.
I installed it at the weekend - no problems...
Last night I got around to changing the banner image, adding the W3C validation buttons and changing the favicon.
All was working fine. I then logged into another machine, and to my surprise when I went to my site every time it asked me to login or generate a new page - up popped the dialogue box asking me to login to my cpanel.
This appears to be machine and browser independent.
I fixed it by going back to an old theme. I have spoken to my webhost. They have not been doing anything strange. I have had a look at the heading.html and can see some code that I can't see in any other heading.
<?php include("$CFG->javascript"); ?>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-563843-7";
urchinTracker();
</script>
Which I have commented out.
There is also this on line 80...
<?php
function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; }
function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); }
I have no idea what this does at all, but it looks like it makes a call to https...
I have attached the header.html file.
There is also some other official looking code later on that I think I have seen before on line 116..
$_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ?
$_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);
// Append the query string if it exists and isn't null
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
Any ideas anyone. Is this theme doing something it shouldn't?
I will take a look at the footer later...