SiteMonitor
#41
Posted 15 August 2006 - 12:37 AM
Im not getting any errors from the cron job. When it sends me the email it says everything is fine. Even though I have been working on it and adding a bunch of new files. Howerver when I run it automatically. It tells me all the necessarry stuff. No biggie to me I was just wondering if it was something that I was supposed to set with it the sitemonitor.php
Thanks,
Eric
Keep up on osCommerce changes and updates at Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.
#42
Posted 15 August 2006 - 02:24 AM
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#43
Posted 24 August 2006 - 03:48 AM
I modified the script to do the following:
1: Keep a detailed log
2: Update the reference file every time there are changes.
3: Added a timer
4: Will now check all file changes including deleted files
5: List sub directories to exclude
6: Removed the call to "require('includes/application_top.php')" and updated the mail function
7: Updated message and email reporting
Besides being a script to keep an eye out for hackers....especially any 777 folders - it now is a
great way to journal any modifications automatically.
If you are interested I will post the script
#44
Posted 24 August 2006 - 03:55 AM
Quote
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#45
Posted 24 August 2006 - 04:07 AM
#46
Posted 24 August 2006 - 07:20 PM
pyramids, on Aug 24 2006, 12:07 AM, said:
Jack,
After thinking about it you have a good point...In regard to the ref file and when it is written:
I added the ability for the user to choose between a journal that writes a new ref file every time there are changes or the original way of writing the file one time only that can only be overwritten when the user deletes the ref file.
Have a nice day!
#47
Posted 27 August 2006 - 02:35 PM
pyramids, on Aug 24 2006, 03:48 AM, said:
6: Removed the call to "require('includes/application_top.php')" and updated the mail function
Im interested in those two changes. Can we just remove the 'require('includes/application_top.php')' part without anything else being effected? Some of my cron job errors refer to application_top.php.
Edited by Sid04, 27 August 2006 - 02:38 PM.
#48
Posted 27 August 2006 - 03:06 PM
Sid04, on Aug 27 2006, 10:35 AM, said:
It is more involved than just a few simple changes.
PM me with your email address and I will email you the updated script.
#49
Posted 27 August 2006 - 07:02 PM
Sid04, on Aug 27 2006, 10:35 AM, said:
cd /home/user/public_html/admin/;
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#50
Posted 12 September 2006 - 10:46 AM
Is it possible to get this great contribution to check changes in directory permissions also?
Get Tattoo'd and feel the power of the needle's...
#51
Posted 12 September 2006 - 01:21 PM
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#52
Posted 22 September 2006 - 04:32 PM
1 In sitemonitor.php find line 29 ish and make sure:
define('VERBOSE', 1);
2 Edit admin/includes/boxes/tools.php
Add the following line to the end of ' $contents[] = array( ' after last '<a href'
'<a href="' . tep_href_link(sitemonitor.php) . '" class="menuBoxContentLink">' . BOX_TOOLS_SITEMONITOR . '</a>');
Remember to replace '</a>'); on previous line with '</a><br>' . or you will get an error
3 Edit admin/includes/languages/english.php
Add the following:
define('BOX_TOOLS_SITEMONITOR', 'Site Monitor');
Under tools section in admin should be site monitor. This will manually run the check and display the results.
Once finished click back button.
Chris
#53
Posted 02 October 2006 - 01:16 PM
Quote
Is this safe? Without doing this I get an openbase dir error, but I'm a bit concerned about 777ing the admin directory.
Thanks... very nice and simple contrib.
#54
Posted 02 October 2006 - 02:11 PM
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#55
Posted 16 October 2006 - 11:53 AM
Status: 404
X-Powered-By: PHP/4.4.2
Content-type: text/html
No input file specified.
This is the command I used
php /home/xxxx/public_html/catalog/xxxx/sitemonitor.php
Since I am unfamiliar with cronjobs I am not sure this error No input file specified is on my side in the cron job or I need to set something in the php files.
Thank you
Wendy
#56
Posted 16 October 2006 - 01:26 PM
cd /home/xxxx/public_html/catalog/xxxx/; php sitemonitor.php
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#57
Posted 28 October 2006 - 08:11 AM
hankster6911, on Oct 16 2006, 12:53 PM, said:
Status: 404
X-Powered-By: PHP/4.4.2
Content-type: text/html
No input file specified.
This is the command I used
php /home/xxxx/public_html/catalog/xxxx/sitemonitor.php
Since I am unfamiliar with cronjobs I am not sure this error No input file specified is on my side in the cron job or I need to set something in the php files.
Thank you
Wendy
Cheers Jack, great contribution!
----------
Dave
Dave's info
#58
Posted 30 October 2006 - 02:32 PM
What am I doing wrong ?
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/18/d174507728/htdocs/rivercityweb/admin/sitemonitor.php:1) in /homepages/18/d174507728/htdocs/rivercityweb/admin/includes/functions/sessions.php on line 67
No new files found...
No deleted files found...
No size differences found...
No time mismatches found...
No permissions mismatches found...
Email sent to shop owner.
#59
Posted 30 October 2006 - 04:10 PM
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#60
Posted 30 October 2006 - 07:31 PM
- Added error_log to the excluded files code (works now).
- Added admin control section.
- Added code to allow sub-directories to be excluded.
- Added log function (creates a log of all changes if option is set).
- Fixed bug in functions file.
I didn't provide any update instructions since all of the files were changed. Just follow the install instructions in the readme. You can delete the sitemonitor_functions.php file from the admin directory since that has been moved to the functions directory.
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking









