$bri = FALSE;
$user = FALSE;
$curtime = time();
-
- if (($proxy_step = Bin5_user::load_step($sess)) == FALSE) {
+
+ if (($proxy_step = Bin5_user::load_step($table_idx, $sess)) == FALSE) {
log_only2("R");
return (FALSE);
}
Bin5_user::save_data($user, $table_idx, $user->idx);
- if (Bin5::garbage_time_is_expired($curtime)) {
+ if (Bin5::garbage_time_is_expired($table_idx, $curtime)) {
log_only("F");
$S_load_stat['R_garbage']++;
$tmp_sess = $user->sess;
$user->sess = "";
- step_unproxy($tmp_sess);
+ Bin5_user::unproxy_step($tmp_sess);
$user->name = "";
$user->the_end = FALSE;
$myfrom = "";
if (!isset($subst))
$subst = "";
-log_rd2("FROM OUTSIDE - STAT: ".$stat." SUBST: ".$subst." STEP: ".$step." MYFROM: ".$myfrom. "IS_PAGE:" . $is_page_streaming."USER_AGENT:".$HTTP_USER_AGENT);
+log_rd2("FROM OUTSIDE - STAT: ".$stat." SUBST: ".$subst." STEP: ".$step." MYFROM: ".$myfrom. "IS_PAGE:" . $is_page_streaming."USER_AGENT:".$HTTP_USER_AGENT." TABLE:".$table_idx);
$endtime = time() + STREAM_TIMEOUT;
$pre_main = gettimeofday(TRUE);
if (($ret = maincheck($sess, $old_stat, $old_subst, $old_step, &$stat, &$subst, &$step, $table_idx, $table_token)) != FALSE) {
echo '@BEGIN@';
- // log_rd2(sprintf("\nSESS: [%s]\nOLD_STAT: [%s] OLD_SUBST: [%s] OLD_STEP: [%s] \nSTAT: [%s] SUBST: [%s] STEP: [%s] \nCOMM: [%s]\n", $sess, $old_stat, $old_subst, $old_step, $stat, $subst, $step, $ret));
+ log_rd2(sprintf("\nSESS: [%s]\nOLD_STAT: [%s] OLD_SUBST: [%s] OLD_STEP: [%s] \nSTAT: [%s] SUBST: [%s] STEP: [%s] \nCOMM: [%s]\n", $sess, $old_stat, $old_subst, $old_step, $stat, $subst, $step, $ret));
echo "$ret";
echo ' @END@';
log_send("EXT_STEP: ".$ext_step." ENDTIME: [".$endtime."] ".$ret);