Author Topic: Once again -> The Interest  (Read 2866 times)

Offline SmooFX

Once again -> The Interest
« on: November 07, 2007, 03:59:15 am »
It doesn't work!
My dointerest.php:
Code: [Select]
<?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 "Zinsen ausgeschüttet am ".date("d/m/Y h:i:s A");
}
?>


My Cronjob is only for URL
http://www.gut-gepflanzt.de/spiele/Sources/shop/dointerest.php

Or must the Cronjob look like this?:
/usr/bin/php -q/home/blabla/public_html/spiele/sources/shop/dointerest.php > /home/blabla/public_html/spiele/interest_log.htm

I can't do that in my adminpanel of the Webspace. Only http://www.gut-gepflanzt.de/ .................

Any Ideas?

Greetings SmooFX