<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Hi David<o:p></o:p></p><p class=MsoPlainText>thanks for your help with the new method of moodle integration. I've tested this further and all seems fine. I've made a couple of additions but not sure if these should be functions inside Moodle.php and just called from config.php or where/how to make the displayed message part of the language functionality. So rather than commit the changes I've attached the files here. Can these be included?<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>lines 144 to 164 of config.php two separate bits of code to detect and restrict moodle user access. !st is to restrict Moodle guest access and is enabled, the 2nd is where a custom profile field can be used to limit access and is commented out. Not sure if these should be functions in library\xerte\Authentication\Moodle.php? Also not sure how to make the restriction messages part of language settings?<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Also not moodle specific but I've always thought useful: line 434 of index.php display Logged in as firstname + lastname. Can we include this? Not sure how to make the "Logged in as " bit part of language string. (Screenshot below)<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><img width=258 height=227 id="Picture_x0020_1" src="cid:image001.jpg@01CD26B2.27FF9D70"><o:p></o:p></p><p class=MsoPlainText>Cheers<o:p></o:p></p><p class=MsoPlainText>Ron<o:p></o:p></p><p class=MsoPlainText><a name="_MailEndCompose"><o:p> </o:p></a></p><p class=MsoPlainText><span lang=EN-US>-----Original Message-----<br>From: xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] On Behalf Of David Goodwin<br>Sent: 29 April 2012 22:56<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: moodle integration</span><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>On 29 Apr 2012, at 22:22, Pat Lockley wrote:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>> It's usually e.g c:\\xampp\\htodcs\\<o:p></o:p></p><p class=MsoPlainText>> <o:p></o:p></p><p class=MsoPlainText>> As in double slash, but php seems to handle c:/xampp/htdocs ok<o:p></o:p></p><p class=MsoPlainText>> <o:p></o:p></p><p class=MsoPlainText>> The \ is escape the next character by default<o:p></o:p></p><p class=MsoPlainText>> <o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Yes, but a \ doesn't have any (well not much) effect in a single quoted string. <o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>They only really come into effect in a double quoted string.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Although as with most things in PHP, nothing is quite what it seems :<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>var_dump('foo\foo' === 'foo\\foo') => true var_dump('foo\foo' === "foo\\foo") => true<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>thanks,<o:p></o:p></p><p class=MsoPlainText>David.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Pale Purple Ltd.  (Company No: 5580814)<o:p></o:p></p><p class=MsoPlainText>'Business Web Application Development and Training in PHP'<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><a href="http://www.palepurple.co.uk"><span style='color:windowtext;text-decoration:none'>http://www.palepurple.co.uk</span></a>   <o:p></o:p></p><p class=MsoPlainText>Office: 0845 0046746     Mobile: 07792380669 <o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Follow us on Twitter: @PalePurpleLtd<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>_______________________________________________<o:p></o:p></p><p class=MsoPlainText>Xerte-dev mailing list<o:p></o:p></p><p class=MsoPlainText><a href="mailto:Xerte-dev@lists.nottingham.ac.uk"><span style='color:windowtext;text-decoration:none'>Xerte-dev@lists.nottingham.ac.uk</span></a><o:p></o:p></p><p class=MsoPlainText><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev"><span style='color:windowtext;text-decoration:none'>http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</span></a><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:<o:p></o:p></p><p class=MsoPlainText>you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p></div></body></html>