Mini modif
This commit is contained in:
		
							parent
							
								
									9a50431ad2
								
							
						
					
					
						commit
						cde8eb71e8
					
				| 
						 | 
					@ -328,7 +328,7 @@ class DB_Sql {
 | 
				
			||||||
                 $this->Seq_Table,
 | 
					                 $this->Seq_Table,
 | 
				
			||||||
                 $seq_name,
 | 
					                 $seq_name,
 | 
				
			||||||
                 $currentid);
 | 
					                 $currentid);
 | 
				
			||||||
        $id = @mysql_query($q, $this->Link_ID);
 | 
					        @mysql_query($q, $this->Link_ID);
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        $currentid = $res["nextid"];
 | 
					        $currentid = $res["nextid"];
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					@ -337,7 +337,7 @@ class DB_Sql {
 | 
				
			||||||
               $this->Seq_Table,
 | 
					               $this->Seq_Table,
 | 
				
			||||||
               $nextid,
 | 
					               $nextid,
 | 
				
			||||||
               $seq_name);
 | 
					               $seq_name);
 | 
				
			||||||
      $id = @mysql_query($q, $this->Link_ID);
 | 
					      @mysql_query($q, $this->Link_ID);
 | 
				
			||||||
      $this->unlock();
 | 
					      $this->unlock();
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      $this->halt("cannot lock ".$this->Seq_Table." - has it been created?");
 | 
					      $this->halt("cannot lock ".$this->Seq_Table." - has it been created?");
 | 
				
			||||||
| 
						 | 
					@ -348,8 +348,6 @@ class DB_Sql {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* public: return table metadata */
 | 
					  /* public: return table metadata */
 | 
				
			||||||
  function metadata($table='',$full=false) {
 | 
					  function metadata($table='',$full=false) {
 | 
				
			||||||
    $count = 0;
 | 
					 | 
				
			||||||
    $id    = 0;
 | 
					 | 
				
			||||||
    $res   = array();
 | 
					    $res   = array();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -168,6 +168,7 @@ class m_upnp {
 | 
				
			||||||
    $status=array(); $statusout=array(); $bad=false;
 | 
					    $status=array(); $statusout=array(); $bad=false;
 | 
				
			||||||
    unset($out);
 | 
					    unset($out);
 | 
				
			||||||
    exec("upnpc -l 2>&1",$res,$out);
 | 
					    exec("upnpc -l 2>&1",$res,$out);
 | 
				
			||||||
 | 
					    if ( is_array($out) && !empty($out)) {
 | 
				
			||||||
      foreach($out as $line) {
 | 
					      foreach($out as $line) {
 | 
				
			||||||
        // example line:  1 TCP   222->192.168.0.5:22   'libminiupnpc' ''
 | 
					        // example line:  1 TCP   222->192.168.0.5:22   'libminiupnpc' ''
 | 
				
			||||||
        if (preg_match("#^ *([0-9]+) (TCP|UDP) *([0-9]+)\-\>([0-9\.]+):([0-9]+) *#",$line,$mat)) {
 | 
					        if (preg_match("#^ *([0-9]+) (TCP|UDP) *([0-9]+)\-\>([0-9\.]+):([0-9]+) *#",$line,$mat)) {
 | 
				
			||||||
| 
						 | 
					@ -181,6 +182,7 @@ class m_upnp {
 | 
				
			||||||
  	$bad=true;
 | 
					  	$bad=true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      } // For each line in upnpc -l (check list)
 | 
					      } // For each line in upnpc -l (check list)
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // No UPnP peripheral !! maybe you should not have installed AlternC-upnp altogether ? 
 | 
					    // No UPnP peripheral !! maybe you should not have installed AlternC-upnp altogether ? 
 | 
				
			||||||
    if ($bad) {
 | 
					    if ($bad) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue