Ignore:
Timestamp:
May 11, 2022, 12:14:42 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Removed commended out print_r and echo commands used only for debugging.
Location:
trunk/Modules/NetworkShare
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/SharePage.php

    r912 r929  
    8888    if (array_key_exists('order', $_GET) and ($_SESSION['order'] == $_GET['order'])) $_GET['order'] .= ' DESC';
    8989
    90     //print_r($_POST);
    9190    foreach ($this->Promene as $Index => $Prvek)
    9291    {
  • trunk/Modules/NetworkShare/browse.php

    r899 r929  
    2222exec($SambaBinDir.'smbclient -d0 -N -L='.$Host,$Output);
    2323echo("OK\n");
    24 //print_r($Output);
     24
    2525if ($Output[0]=='Connection to '.$Host.' failed') die('Pocitac '.$Host." nenalezen!\n");
    2626$Output = array_slice($Output,3);
  • trunk/Modules/NetworkShare/online.php

    r873 r929  
    77  echo('Nacitam strom sdileni...');
    88  $Output = array();
    9   exec('smbtree -N -S',$Output,$Return);
    10   //print_r($Output);
     9  exec('smbtree -N -S',$Output,$Return); 
    1110  //echo($Return."\n");
    1211  echo("OK\n\nSeznam online pocitacu:\n");
     
    5958          } else $Section = 2;
    6059        } else $Section = 1;
    61       } else $Section = 0;
    62       //print_r($Output);
     60      } else $Section = 0;     
    6361      $Output = explode(' ',$Output[1]);
    6462      $MAC = substr($Output[4],1,-1);
     
    7169  // Deaktivuj predchozi online pocitace
    7270  $Database->update('hosts', 1, array('online' => 0));
    73 
    74   //print_r($Online);
     71 
    7572  // Aktivuj online pocitace
    7673  foreach ($Online as $Item)
     
    8885  {
    8986    echo($Row['name'].", ");
    90   }
    91   //print_r($Output);
     87  } 
    9288//  sleep(1000);
    9389  //echo("\nCekam minutu...");
Note: See TracChangeset for help on using the changeset viewer.