/**
     * CONVERT VIDEOS TO FLV FORMAT
     * @param database A database connector object
     */
	function autoApprove($row, $filename_noext, $override=0)
	{

		$c = hwd_vs_Config::get_instance();
		if ($c->aav == 1 || $override==1) {
			$sql = "UPDATE ".$row->dbprefix."hwdvidsvideos SET approved='yes' WHERE video_id = '$filename_noext'";
			$db = @mysql_query($sqlpending);

			if (!$db) {
				@mysql_close($dbconnect);
				$connectServer = hwd_vs_ConverterTools::connectServer($row);
				$connectDatabase = hwd_vs_ConverterTools::connectDatabase($row, $connectServer);
				@mysql_query($sql) or die('error: ' . mysql_error());
			}
		}

		return true;
	}
Beispiel #2
0
				  $output.= "<div><b>DYNAMIC FFMPEG OUTPUT</b></div>";
				  $output.= "<div><textarea rows=\"3\" cols=\"50\" style=\"width:90%\">".hwd_vs_ConverterTools::processOutput($GenerateThumbnail[5])."</textarea></div>";
				}
				if ($GenerateThumbnail[6] == 0) {
				  $output.= "<div><b>LARGE FFMPEG INPUT</b></div>";
				  $output.= "<div><textarea rows=\"3\" cols=\"50\" style=\"width:90%\">".$GenerateThumbnail[7]."</textarea></div>";
				  $output.= "<div><b>LARGE FFMPEG OUTPUT</b></div>";
				  $output.= "<div><textarea rows=\"3\" cols=\"50\" style=\"width:90%\">".hwd_vs_ConverterTools::processOutput($GenerateThumbnail[8])."</textarea></div>";
				}

				$output.= "<div><b>RE-APPROVING</b></div>";
				$sql = "UPDATE ".$row->dbprefix."hwdvidsvideos SET approved='yes' WHERE id = ".$result['id'];
				$db = @mysql_query($sqlpending);
				if (!$db) {
					@mysql_close($dbconnect);
					$connectServer = hwd_vs_ConverterTools::connectServer($row);
					$connectDatabase = hwd_vs_ConverterTools::connectDatabase($row, $connectServer);
					@mysql_query($sql) or die('error: ' . mysql_error());
				}

			$output.= "</div>";
		   /**
			* Finish
			**/
			$n = $n + 1;
			$output.= "</div>";
		}
	}
	/**
	* END WHILE
	**/