Removed multiple require()
[mirrors/Kyberia-bloodline.git] / cron / k.php
CommitLineData
b42b2bf9 1#!/usr/bin/php
e586807d 2<?php
21cabe9d 3/*
4 * Script that restores number of K for all users.
5 * Called once a day.
6 */
7
8
9// Use relative address of config file
10// Change this, if you move you cron directory.
11$dir=substr(__FILE__, 0, strrpos(__FILE__, '/'));
ccb9c667 12require_once($dir.'/../wwwroot/config/config.inc');
21cabe9d 13
ccb9c667 14require_once(INCLUDE_DIR.'/database.inc');
15require_once(INCLUDE_DIR.'/log.inc');
e586807d 16
b42b2bf9
H
17$db = new CLASS_DATABASE();
18$db->query('update users set user_k = '. DAILY_K);
19?>
This page took 0.254683 seconds and 4 git commands to generate.