{
GLOBAL $sess;
do {
- if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) {
+ if (($tok = @ftok(FTOK_PATH."/challenges", "C")) == -1) {
log_main("ftok failed");
break;
}
$shm = FALSE;
$oldmod = $chals->mod;
- if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1)
+ if (($tok = @ftok(FTOK_PATH."/challenges", "C")) == -1)
return (FALSE);
while ($chals->shm_sz < CHAL_SHM_DIMS_MAX) {
}
} // End CLASS Challenges
-?>
\ No newline at end of file
+?>
GLOBAL $sess;
do {
- if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) {
+ if (($tok = @ftok(FTOK_PATH."/main", "C")) == -1) {
log_main("ftok failed");
break;
}
// var_dump($room);
- if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1)
+ if (($tok = @ftok(FTOK_PATH."/main", "C")) == -1)
return (FALSE);
while ($room->shm_sz < SHM_DIMS_MAX) {
$ret = FALSE;
$shm = FALSE;
- if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1)
+ if (($tok = @ftok(FTOK_PATH."/main", "C")) == -1)
return (FALSE);
// SHSPLIT: before save the $room you must save users,
GLOBAL $sess;
do {
- if (($tok = @ftok(FTOK_PATH."/hardbans", "B")) == -1) {
+ if (($tok = @ftok(FTOK_PATH."/hardbans", "C")) == -1) {
log_main("ftok failed");
break;
}
$shm = FALSE;
$oldmod = $hban->mod;
- if (($tok = @ftok(FTOK_PATH."/hardbans", "B")) == -1)
+ if (($tok = @ftok(FTOK_PATH."/hardbans", "C")) == -1)
return (FALSE);
while ($hban->shm_sz < HBAN_SHM_DIMS_MAX) {
} // End CLASS Hardbans
-?>
\ No newline at end of file
+?>
log_main("load_data: id [".$id."] sess [".($sess == FALSE ? "FALSE" : $sess)."] ");
do {
- if (($tok = @ftok(FTOK_PATH."/user".$id, "B")) == -1) {
+ if (($tok = @ftok(FTOK_PATH."/user".$id, "C")) == -1) {
log_main("ftok failed");
break;
}
$shm = FALSE;
- if (($tok = @ftok(FTOK_PATH."/user".$id, "B")) == -1) {
+ if (($tok = @ftok(FTOK_PATH."/user".$id, "C")) == -1) {
return (FALSE);
}
while ($user->shm_sz < SHM_DIMS_U_MAX) {
} // end class User
-?>
\ No newline at end of file
+?>