fork(4) download
  1. <?
  2. $base_path="../";
  3. $w=intval($_GET['w'])+1;
  4. $id_region=intval($_GET['id_reg']);
  5. $glob=intval($_GET['glob']);
  6. $m=intval($_GET['m']);
  7. $magaz=intval($_GET['magaz'] ?? '');
  8.  
  9. include_once($base_path.'cashe_region/_svod_region_0.php');
  10. if(file_exists($base_path.'cashe_region/_svod_region_'.$glob.'.php'))
  11. include_once($base_path.'cashe_region/_svod_region_'.$glob.'.php');
  12.  
  13. if($id_region)
  14. {
  15. $u=$arr_regions_url[$m][$id_region];
  16.  
  17. if($u)
  18. {
  19. ?>
  20. <script language="javascript">
  21. document.getElementById('name_reg_<?=($w-1)?>').value = '<?=$u?>';
  22. </script>
  23. <?
  24. }
  25. }
  26. else
  27. {
  28. ?>
  29. <script language="javascript">
  30. document.getElementById('name_reg_<?=($w-1)?>').value = '';
  31. </script>
  32. <?
  33. }
  34.  
  35.  
  36. if($id_region && !$magaz && count($arr_regions[$id_region]?? ''))
  37. {
  38. ?>
  39. <select style="width: 210px; height:25px;" name="region_<?=$w?>" onChange="search_reg(<?=$w?>, this.value, <?=$glob?>, <?=$id_region?>); return false">
  40. <option value="0">ВЫБРАТЬ</option>
  41. <?
  42. foreach($arr_regions[$id_region] as $index=>$reg)
  43. {
  44. ?>
  45. <option value="<?=$index?>"><?=$reg?></option>
  46. <?
  47. }
  48. ?>
  49. </select>
  50. <input type="hidden" name="name_reg_<?=$w?>" id="name_reg_<?=$w?>" value="">
  51. <?
  52. }
  53. ?>
  54.  
  55.  
Success #stdin #stdout #stderr 0.03s 26008KB
stdin
Standard input is empty
stdout
<?
$base_path="../";
$w=intval($_GET['w'])+1;
$id_region=intval($_GET['id_reg']);
$glob=intval($_GET['glob']);
$m=intval($_GET['m']);
$magaz=intval($_GET['magaz'] ?? '');

include_once($base_path.'cashe_region/_svod_region_0.php');
if(file_exists($base_path.'cashe_region/_svod_region_'.$glob.'.php'))
include_once($base_path.'cashe_region/_svod_region_'.$glob.'.php');

	if($id_region)
		{
		$u=$arr_regions_url[$m][$id_region];
	
		if($u)
			{
			?>
			<script language="javascript">
			document.getElementById('name_reg_-1').value = ''; 
			</script>				
			<?
			}
		}
	else
		{
		?>
		<script language="javascript">
		document.getElementById('name_reg_-1').value = ''; 
		</script>				
		<?
		}


	if($id_region && !$magaz && count($arr_regions[$id_region]?? ''))
		{
		?>
		<select style="width: 210px; height:25px;" name="region_" onChange="search_reg(, this.value, , ); return false">
		<option value="0">ВЫБРАТЬ</option>
		<?
		foreach($arr_regions[$id_region] as $index=>$reg)
			{
			?>
			<option value=""></option>
			<?
			}
		?>
		</select>
		<input type="hidden" name="name_reg_" id="name_reg_" value="">
		<?
		} 
	?>

stderr
PHP Notice:  Undefined variable: w in /home/vIZORp/prog.php on line 21
PHP Notice:  Undefined variable: u in /home/vIZORp/prog.php on line 21
PHP Notice:  Undefined variable: w in /home/vIZORp/prog.php on line 30
PHP Notice:  Undefined variable: w in /home/vIZORp/prog.php on line 39
PHP Notice:  Undefined variable: w in /home/vIZORp/prog.php on line 39
PHP Notice:  Undefined variable: glob in /home/vIZORp/prog.php on line 39
PHP Notice:  Undefined variable: id_region in /home/vIZORp/prog.php on line 39
PHP Notice:  Undefined variable: index in /home/vIZORp/prog.php on line 45
PHP Notice:  Undefined variable: reg in /home/vIZORp/prog.php on line 45
PHP Notice:  Undefined variable: w in /home/vIZORp/prog.php on line 50
PHP Notice:  Undefined variable: w in /home/vIZORp/prog.php on line 50