<?php
chdir($_GET['home']);
include $_GET['functions'];
$links = getFolders($_GET['path'], $_GET['home']);
$files = getFiles($_GET['path'], $_GET['home']);
$path['unregister'] = $_GET['path'] . '/_unregistercodecs/unregistercodecs.htm';

//If the showfolders is set then there will be links of the available folders to click on.
//this is based off the array $links which is a listing of subfolders from $_get['path']
if ($_GET['showfolders'] == 1) {
  if (count($links) > 0) { 
		buildfolderlinks($links);
  }
}

//make a table for any files inside the current path.  as long as files is > 0
  if (count($files) > 0) {
		buildfilelinks($files, $_GET['path']);
  }
?>
<?php hideshow('About Tools'); ?>
<div class='container_files'>
The files in this section are useful utilities for finding out information about videos. <br>
<br>
<b>GSpot</b>: is a utility that has many features.  Some of the things we use it for is determining the rendering graph directshow uses to playback video.  It also allows you to view all of the CODECs on your system and adjust the merit of the CODECs.<br>
<br>
<b>Mediainfo</b>: is a program that provides information about video files.  It will tell you information about the CODECs used to encode both the audio and the video as well as the bitrate and other tidbits.<br>
<br>
<b>Zoom Player</b>: is a media player program similar to windows media player.  One of this programs features is that it allows the user to unregister all CODECs on their system and then reregister just the system filters.<br>
</div>
<br>

<?php hideshow('Unregister CODECs'); ?>
<div class='container_files'>
	<div class='jar'>
		If videos are playing back poorly and nothing you try helps then you can try unregistering all of the CODECs and starting fresh.  Here is a link to a demo that shows instructions for how to install zoom player and use it to unregister the codecs on your system.   - <i>This method should only be used as a last resort.</i> -
		<a href="<?php echo $path['unregister'] ?>" target='_blank'><div> Unregister CODECs</div></a>
	</div>
</div>

