[Xerte] Re: Deleting (+ the Nottingham email disclaimer) - Found word(s) list error in the Text body

Tom Reijnders reijnders at tor.nl
Tue Jun 7 20:52:27 BST 2011


Fixed it....

In media_and_quota_template.php, move lines 90 and 91, inside the  if 
statement , i.e. below line 87

So resuming... your fix works on Linux, but there was another issue, 
that not all files were listed. That's fixed (at least on Linux) by 
putting the lines
                        array_push($result_string,$result);
                        $result="";

Inside the if(!is_dir($full)){}.

Tom


Op 7-6-2011 21:11, Tom Reijnders schreef:
> Hmmm... it is not that the files are not found, because the total byte 
> count is correct... the files are just not listed correctly...
>
> I'll try to debug.
>
>
> Op 7-6-2011 20:47, Tom Reijnders schreef:
>> Pat,
>>
>> As far as I can tell, it doesn't break Unix. However, and I know you 
>> do NOT want to here this.... I tested this before I changed anything 
>> and on Linux, when I can select the file for deletion it works. After 
>> the fix, that is still the case.
>>
>> Why do I say 'when'? Because not all the files of the media folder 
>> are listed. So.... sometimes I know there is a file there, not in 
>> use, and it is simply not listed....
>>
>> What can/should I do about that....
>>
>> Tom
>>
>> Op 7-6-2011 11:33, Pat Lockley schreef:
>>> Tom, Dave - anyone with a Unix / Linix box want to confirm if these
>>> changes don't mangle a non-windows box?
>>>
>>> On Tue, Jun 7, 2011 at 9:42 AM, Nathan Cobb
>>> <Nathan.Cobb at eastridingcollege.ac.uk>  wrote:
>>>> Hi Pat
>>>>
>>>> Just to confirm that the fix has worked for me as well.  We did it 
>>>> yesterday (finally).
>>>>
>>>> Many thanks
>>>>
>>>> Nathan
>>>>
>>>> -----Original Message-----
>>>> From: xerte-bounces at lists.nottingham.ac.uk 
>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Nigel Irwin
>>>> Sent: 02 June 2011 16:49
>>>> To: Xerte discussion list
>>>> Subject: [Xerte] Re: Deleting (+ the Nottingham email disclaimer) - 
>>>> Found word(s) list error in the Text body
>>>>
>>>> Well done Pat that works for me :)
>>>>
>>>>
>>>> Regards, Nigel
>>>> IT Training and Support Co-ordinator
>>>>
>>>> 01444 884906
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: xerte-bounces at lists.nottingham.ac.uk
>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>>>> Sent: 02 June 2011 16:21
>>>> To: Xerte discussion list
>>>> Subject: [Xerte] Deleting (+ the Nottingham email disclaimer) - Found
>>>> word(s) list error in the Text body
>>>>
>>>> Ok
>>>>
>>>> Open up website_code/php/properties/delete_file.php
>>>>
>>>> add
>>>>
>>>> include "../../../config.php";
>>>>
>>>> before the error_library.php include
>>>>
>>>> Then open up media_and_quota_template.php
>>>>
>>>> replace line 115 to this
>>>>
>>>> $dir_path =
>>>> str_replace("\\","/",$xerte_toolkits_site->users_file_area_full)
>>>> . $end_of_path .  "/media";
>>>>
>>>> Can someone see if this fix screws un *nix boxes.
>>>>
>>>> (Also - any chance of removing the Nottingham disclaimer from these
>>>> emails - it makes an email thread absolutely massive after 2-3
>>>> messages)
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>
>>>> 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.
>>>>
>>>> This message has been checked for viruses but the contents of an
>>>> attachment may still contain software viruses which could damage your
>>>> computer system:
>>>> you are advised to perform your own checks. Email communications with
>>>> the University of Nottingham may be monitored as permitted by UK
>>>> legislation.
>>>>
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>
>>> _______________________________________________
>>> Xerte mailing list
>>> Xerte at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>> 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.
>>>
>>> This message has been checked for viruses but the contents of an 
>>> attachment
>>> may still contain software viruses which could damage your computer 
>>> system:
>>> you are advised to perform your own checks. Email communications 
>>> with the
>>> University of Nottingham may be monitored as permitted by UK 
>>> legislation.
>>>
>>
>

-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196





More information about the Xerte mailing list