2) { switch($Pages[1]) { //Whats this PSFetch thing all about anyhow? case "about": { $smarty->assign('Title',"About PSFetch"); $smarty->assign('PageContent',$smarty->fetch('about.tpl')); } break; //Let me add to the repository! $smarty->fetch('List.tpl') case "add": { if(!empty($Pages[2])) { $Repository->AddPackage($Pages[2],$_POST); $smarty->assign('Title',"Add to the Repository"); $smarty->assign('PageContent',"Thank you for adding to the Repository!"); } else { $smarty->assign('Title',"Add to the Repository"); $smarty->assign('PageContent',$smarty->fetch('add.tpl')); } } break; //Let me download it already! case "download": { $smarty->assign('Title',"Download PSFetch"); $smarty->assign('PageContent',$smarty->fetch('download.tpl')); } break; //Let me browse whats available case "browse": { $smarty->assign('Title',"Browse the PSFetch Repository"); $smarty->assign('CategoriesList',$Repository->GetCategories()); $smarty->assign('PageContent',$smarty->fetch('browse.tpl')); } break; case "search": { $smarty->assign('Title',"Search Results"); $smarty->assign('SearchList',$Search->SearchRepoName($_POST['search'])); $smarty->assign('PageContent',$smarty->fetch('search.tpl')); } break; case "how-to": { $smarty->assign('Title',"How To / Help / FAQ"); $smarty->assign('PageContent',$smarty->fetch('how-to.tpl')); } break; default: { header("HTTP/1.0 404 Not Found"); $smarty->assign('Title',"An Error you say?"); $smarty->assign('PageContent',"

I'm going to blame the LHC, micro black holes and what not!

In all seriousness an error has occured, try clicking your back button and try again

Sorry!

"); } break; } } else { $smarty->assign('Title',"Powershell Addon Fetcher"); $smarty->assign('PageContent',"

PSFetch is a Powershell take on the popular Linux tools yum & apt-get but for Powershell scripts and addons.

If you are looking for a cmdlet to do a particular task or you know the name and would like to easily get and install it then PSFetch is the tool for you!

psFetch also provides shortcuts and 'friendly names' for the servermanagercmd tool to allow you to add Roles and Features to server 2008 quicker and easier than before!

The cmdlet it is in its final stages of internal Beta testing and I hope to release a public Beta soon!

"); } //This always gets called no matter what page the user is on $smarty->assign('PackageHighlight',$Repository->GetHighlight()); //Show the Repo Side Bar $smarty->assign('RepoSideBarList',$Repository->GetCategories(true)); //Display the 'text shell' template. $smarty->display('Default.tpl'); ?>