Jump to content
MakeWebGames

CRON issue


seduction city

Recommended Posts

I have a serious issue that I am not sure what the solution is.

When the first of my night reset crons run something happens and my server sessions get "mixed" up I believe. Simply put players move into some other player account

the code in the job is

 

<?php
include "config.php";
global $_CONFIG;
if($_GET['code'] != $_CONFIG['code']) { die(""); }
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
mysql_query("UPDATE users SET daysold=daysold+1");
mysql_query("UPDATE users SET daysingang=daysingang+1 WHERE gang >= 1");
mysql_query("UPDATE users SET cdays=cdays-1 WHERE cdays >= 1");
mysql_query("UPDATE users SET boxes_opened=0");
mysql_query("UPDATE users SET mailban=mailban-1 WHERE mailban >= 1");
mysql_query("UPDATE users SET cloak=cloak-1 WHERE cloak >= 1");
mysql_query("UPDATE users SET protime=0 WHERE protime > 0");
mysql_query("UPDATE users SET msex=0");
mysql_query("UPDATE users SET lsex=0");
?>

 

I do not know what i can do to help debug. We have a good dedicated server so the problem shouldn't be there. If there is anyone who can help, give ideas or advise it would be appreciated, and if this is complicated and going to be time consuming we can discuss fees for this assistance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...