<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><br><style>ass .ecxshape
{;}
</style>
<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle18
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle181
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxEmailStyle28
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>
<div class="ecxSection1">
<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">>But the directory is left empty for the post ( </span><b><span style="font-size: 10pt; font-family: 'System','sans-serif';">action="" )</span></b></p><p class="ecxMsoNormal"><br></p><p class="ecxMsoNormal">Yes, but I think the referrer includes the complete URL.</p><p class="ecxMsoNormal"><br></p><p class="ecxMsoNormal">Once index.php is set as the default page, index.php becomes implicit, so the passed POST URL drops index.php and ends in the directory nomen: "/", which IIS 4 and 5 don't accept as a valid POST target.</p><b><br></b><p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'System','sans-serif';"> </span></b></p>
<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'System','sans-serif';">It
will set a session ID, definitely, but it does nothing with Cookies. <br></span></b></p><p class="ecxMsoNormal"><br><b><span style="font-size: 10pt; font-family: 'System','sans-serif';"></span></b></p><p class="ecxMsoNormal">I guess that sessionID is being set and used off the local machine somehow, at least in FF.</p>
<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'System','sans-serif';"> </span></b></p>
<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'System','sans-serif';">Neil
W, if you read this, does this solve your problem?</span></b></p>
<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'System','sans-serif';"> </span></b></p>
<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'System','sans-serif';">I
would add a print_r($_SERVER) into that file and track it in fiddler</span></b><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"></span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="ecxMsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 30 November 2009 11:52<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] XOT install - down the rabbit hole</span></p>
</div>
</div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"> </p>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<div>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif'; color: rgb(31, 73, 125);">></span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Solution:<br>
<span style="color: rgb(31, 73, 125);">></span>In login_top, change the
action="" to action="index.php"</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">I would assume IIS would should handle posting back to self?</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">It
does, but it doesn't accept a directory ( "/" ) as a valid URL for a
POST operation.</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">When
index.php is set as the default dir page, the URL is reported as the directory
itself. </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">>For some reason, the XOT setup did not
pop that request when it wanted to set the session cookie. So, no cookie, no session
info, </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">>edit.php
returns "". Set the domain to accept cookies, all good.</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Toolkits
doesn’t use any cookies, the session info should be stored on the server?</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">In
FF, I've got a PHPSESSIONID showing in the cookies directory.</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">All
I know is when I set "Accept cookies" on that domain, it started
working.</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Pure
deduction, I admit. ;-)</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">>I've
cruised the php and database, but can't make out where the upload mechanism is
pulling that path from. I'd imagine the tail end </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">>of
it (specific template_id) is being passed in the session variables?</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Flash_upload_path
is set in the site variables and is usually “upload.php?path=”</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">This
upload file usually lives in </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Modules/Xerte/engine
and constructs the upload address from the root path, then the page sought,
which is constructed from the $_server variable, so I would guess your $_server
variable isn’t right.</span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">I'll take a peek. </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"><br>
<br>
</span></p>
</div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>
<div class="ecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr size="2" width="100%" align="center">
</span></div>
<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Hotmail: Trusted email with powerful SPAM
protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">Sign up now.</a></span></p>
</div>                                            <br /><hr />Windows 7: It works the way you want. <a href='http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2' target='_new'>Learn more.</a></body>
</html>