File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php 
2+ // Generate index.xml for Breakdown 
3+ 
4+ $ folder'/storage/ssd5/003/10550003/public_html/reports ' ;
5+ $ input'<?xml version="1.0" standalone="yes"?><reports></reports> ' ;
6+ $ output$ folder'/index.xml ' ;
7+ 
8+ $ xmlnew  SimpleXMLElement ($ input
9+ $ filesglob ($ folder'/*.dmp ' , GLOB_BRACE );
10+ foreach ($ filesas  $ file
11+  $ infopathinfo ($ file
12+  $ uuidbasename ($ file'. '  . $ info'extension ' ]);
13+  $ report$ xmladdChild ('report ' );
14+  $ reportaddChild ('uuid ' , $ uuid
15+  $ reportaddChild ('dmp ' , sha1_file ($ folder'/ '  . $ uuid'.dmp ' ));
16+  $ reportaddChild ('txt ' , sha1_file ($ folder'/ '  . $ uuid'.txt ' ));
17+ }
18+ 
19+ $ result$ xmlasXML ();
20+ 
21+ $ result_checksumsha1 ($ result
22+ $ old_checksum'' ;
23+ if  (file_exists ($ output
24+  $ old_checksumsha1 (file_get_contents ($ output
25+ }
26+ if  ($ result_checksum$ old_checksum
27+  file_put_contents ($ output$ xmlasXML ());
28+ }
29+ ?> 
                         You can’t perform that action at this time. 
           
                  
0 commit comments