(Email from Cron) (No errors in the server error log)
Warning: main(../../SSI.php): failed to open stream: No such file or directory in /home/tryfree/public_html/smf1/Sources/shop/dointerest.php on line 17
Warning: main(../../SSI.php): failed to open stream: No such file or directory in /home/tryfree/public_html/smf1/Sources/shop/dointerest.php on line 17
Warning: main(): Failed opening '../../SSI.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tryfree/public_html/smf1/Sources/shop/dointerest.php on line 17
Fatal error: Call to undefined function: db_query() in /home/tryfree/public_html/smf1/Sources/shop/dointerest.php on line 20
This is the error message i get from the crontab, no errors in the server log. ^^^^^<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
| (c) 2005 DanSoft Australia |
|
http://www.dansoftaustralia.com/ |
\**********************************************/
//File: dointerest.php
// The file to add interest to member's bank
//VERSION: 1.31 (Build 7)
//DATE: 10th December 2005
// $Id: dointerest.php 4 2006-07-08 10:09:08Z daniel15 $
if(!isset($_SERVER["HTTP_HOST"])) {
include("../../SSI.php");
$interest_rate = $modSettings['shopInterest'] / 100;
db_query("UPDATE {$db_prefix}members
SET moneyBank = moneyBank + (moneyBank*{$interest_rate})", __FILE__, __LINE__);
echo "Interest added at ".date("d/m/Y h:i:s A");
}
?>
This is dointerest.php ^^^^^
Any idea on how to fix the ssi problem? And the db query problem?From,
Ouch