a.binder пре 8 година
родитељ
комит
4df57d7c45
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

+ 5 - 5
SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

@@ -121,7 +121,7 @@ function start_dig($tables) {
 		 while($h=$db->fetch($res)) {
 			 $hist_loop[$Y][]=$h;
 			 $hist_time[][$Y]=$h;
-			 dig_next($hist_loop,$t,$h,1,$hist_time);
+			 dig_next($hist_loop,$t,$h,1,$hist_time,$Y);
 			 unset($hist_time);
 		 }
 	}
@@ -131,7 +131,7 @@ function start_dig($tables) {
 
 
 
-function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop,$hist_time) {
+function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop,$hist_time,$last_tbl='n/s') {
 	 global $db,$tables;
 	 $loop++;
 	 echo "\n<hr>###LOOP ".$loop;
@@ -359,7 +359,7 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop,$hist_time) {
 			  */
 			  if( isset($sql_t)) {
 				  foreach($sql_t as $T => $sql_ext)  { 
-					  dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop);
+					  dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl);
 				  }
 			  }
 			  //todo look in Y and die()
@@ -369,10 +369,10 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop,$hist_time) {
 }
 
 
-function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop) {
+function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl) {
 	global $db,$tables;
 	
-	  echo "\n<br>216: Querying :T ".$T." ext: ".$sql_ext ;//$sql_ext
+	  echo "\n<br>216: from:".$last_tbl." Querying  :T ".$T." ext: ".$sql_ext ;//$sql_ext
 //	  echo "\n<br> las fou"
 	  flush();
 			  $res=$db->query($sql_ext) or die('211 blad '.$sql_ext);