Current time: 01-26-2021, 10:42 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete Archived Test Result
01-25-2013, 04:34 AM (This post was last modified: 01-25-2013 04:37 AM by timmckenzie.)
Post: #3
RE: Delete Archived Test Result
Thanks for the reply,

I have added a DeleteArchive function in archive.ini, which is working well.

One thing that I am confused about is in delete.php. The if statement which decides whether or not to delete, what does the line
PHP Code:
strpos($testPath'relay') !== false 
do. When I call that on my box the test is never deleted because the 'relay' check always fails. I removed that line and code path goes into the IF statement.

PHP Code:
if( strpos($testPath'results') !== false
    
&& strpos($testPath'relay') !== false
    
&& strpos($testPath'..') === false
    
&& is_dir($testPath) ) 

Thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Delete Archived Test Result - timmckenzie - 01-22-2013, 10:26 AM
RE: Delete Archived Test Result - pmeenan - 01-23-2013, 02:29 AM
RE: Delete Archived Test Result - timmckenzie - 01-25-2013 04:34 AM
RE: Delete Archived Test Result - pmeenan - 01-29-2013, 01:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)