Thread: Changed Files

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 39
  1. #21
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Changed Files

    Nope. Trust me, you'd *want* to know if someone uploaded bmz_cache/badguy_backdoor.php.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #22
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Changed Files

    That's true, but right now the list of files is so long, it is impracticable to use.
    Quote Originally Posted by swguy View Post
    Nope. Trust me, you'd *want* to know if someone uploaded bmz_cache/badguy_backdoor.php.

  3. #23
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Changed Files

    Quote Originally Posted by Design75 View Post
    That's true, but right now the list of files is so long, it is impracticable to use.
    Some ideas...
    I like your change to table, my brain seams to like line numbers... I know I have around 4082 files in there somewhere...

    I know date when I uploaded the files which sets the date of change I would want to flag from or I can set a date which would drop the 4082 list down to maybe 561 lines... Could add an input filed for the date and a refresh button maybe!

    Code:
    <!-- body //-->
    <div class="container">
      <h1><?php echo HEADING_TITLE ?></h1>
    <?php
      $maxdate = strtotime('2018-01-01');  //date changes after would be flagged  Y-m-d
      echo '<div>Files changed after: ' . date('Y-m-d H:i:s', $maxdate) . ' (or) ' . (string)$maxdate . '</div>'; 
    ?> 
    <br />
      <table class="table">
    <?php 
    $i = 0;
    foreach ($files as $file) {
       $i = $i + 1;
       if ($file['mtime'] > $maxdate) {
       $name = str_replace(DIR_FS_CATALOG, "", $file['name']); 
       echo '<tr>';
       echo '<td>' . (string)$i . '</td><td>'.$name . '</td><td>' . date('Y-m-d H:i:s', $file['mtime']) . "</td>";
       echo '</tr>';
       }
    }
    ?>
    </table>
    </div>
    <!-- body_eof //-->
    Dave
    Always forward thinking... Lost my mind!

  4. #24
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Changed Files

    Changed Files Report was just updated to prevent error-log-files being generated when files are unreadable because of permission issues.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #25
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: Changed Files

    SWGUY - I just installed this on 1.5.5f, but it's getting the following error log:

    PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4304 bytes) in /home/servername/public_html/store/admin/changed_files.php on line 14

    Any suggestions?
    - Jeff

  6. #26
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: Changed Files

    Quote Originally Posted by Jeff_Mash View Post
    SWGUY - I just installed this on 1.5.5f, but it's getting the following error log:

    PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4304 bytes) in /home/servername/public_html/store/admin/changed_files.php on line 14

    Any suggestions?

    Nevermind. I fixed it by adding the following line on the top of the changed_files.php:

    ini_set('memory_limit', '2048M');

    As a request, it would be great if we could IGNORE files which don't exist in the default installation. For example, your script is returning everything in the CACHE folders......which we really don't care about. We are mainly looking to see which ZenCart files were changed/modified in order to help with upgrades.
    - Jeff

  7. #27
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,473
    Plugin Contributions
    88

    Default Re: Changed Files

    FWIW, there's an admin setting for the Max Execution Time: My Store->Admin Set max_execution_time for processes

  8. #28
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Changed Files

    Feel free to update it to your own tastes. By default I want people warned about files in cache because one of them might be cache/attack_file.php.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #29
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: Changed Files

    Quote Originally Posted by lat9 View Post
    FWIW, there's an admin setting for the Max Execution Time: My Store->Admin Set max_execution_time for processes
    I totally forgot about that! Thanks for the helpful reminder of this setting!
    - Jeff

  10. #30
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Changed Files

    In version 1.2 of the mod, there is a variable in admin/changed_files.php called $filetype_exclusions, which is a list of filetypes which should be skipped. By default it skips over .txt, .log and .sql files. Customize to taste.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Changed files from 1.3.8a to 1.3.9c?
    By Marg in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 21 May 2010, 11:18 PM
  2. list of files changed frm 1.3.0.1
    By chac416 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 11 Jan 2007, 06:25 PM
  3. List of changed files?
    By Jan51 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 1 Jan 2007, 01:20 AM
  4. 1.3.5 Changed Files Only...
    By Alex Clarke in forum General Questions
    Replies: 2
    Last Post: 5 Sep 2006, 04:40 PM
  5. [done 1.3.5] changed files
    By swguy in forum Bug Reports
    Replies: 2
    Last Post: 4 Sep 2006, 03:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR