rendered paste body<? //$dir = $_GET['dir']; require 'photo_folder.php'; if (ISSET($_GET['dir'])) { //$myoutput = json_encode(PhotoFolder::getFileList('./'.$_GET['dir']));$inner=''foreach(PhotoFolder::getFileList($dir) as $base_name => $sizes){ $inner = $inner . '{name:"' . $base_name . '",'; $inner = $inner . 'medium_height:' . $sizes["original"]["height"] .','; .... $inner = $inner . '}' } header('X-JSON: (['.$inner.'])'); } else {?><html> <head> <title>Ryan Johnson : Photography</title> <link rel="stylesheet" media="screen" href="/css/screen.css"/> <!--[if IE]><link rel="stylesheet" href="styles/ie.css"/><![endif]--> <script src="/javascript/prototype.js"></script> <script src="/javascript/scriptaculous.js?load=effects,slider,builder"></script> <script src="/javascript/photos.js"></script> <script> Config.thumb_dimension = 75; Config.large_dimension = 900; </script> </head> <body> <img src="./test/Alcatraz.jpg"> <div id="outer_container"> <div id="container"> <div id="header"> <h1><span>Ryan Johnson</span></h1> <select id="folder_select"><option id="start_option">Select a Category</option><option value="/abstract">Abstract</option><option value="./photos/America">America</option><option value="./photos/America/California">- California</option><option value="./photos/America/Idaho">- Idaho</option><option value="./photos/America/NorthEast">- NorthEast</option><option value="./photos/America/NorthWest">- NorthWest</option><option value="./photos/America/SouthWest">- SouthWest</option><option value="./photos/Europe">Europe</option><option value="./photos/Humans">Humans</option><option value="./photos/Humans/Bungee">- Bungee</option><option value="./photos/Humans/Parts">- Parts</option><option value="./photos/Humans/Snapshots">- Snapshots</option><option value="./photos/Humans/Snapshots/Ashley">-- Ashley</option><option value="./photos/Humans/Snapshots/Jessa">-- Jessa</option><option value="./photos/Humans/Snapshots/Me">-- Me</option><option value="./photos/Humans/Snapshots/Tiger">-- Tiger</option><option value="./photos/India">India</option><option value="./photos/New Zealand">New Zealand</option><option value="./photos/Plants">Plants</option><option value="./photos/Signapore">Signapore</option><option value="./photos/Sky">Sky</option><option value="./photos/Water">Water</option></select> <a href="#" id="play" style="display:none;"><span>Play / Stop</span></a> </div> <div id="main"> <table cellspacing="0" cellpadding="0"><tr><td id="main_inner"> <img id="photo" style="display:none;"/> </td></tr></table> </div> <div id="footer"> <div id="track"><div id="handle"></div></div> <div id="thumbs"></div> </div> <h2 id="message">Select a Category from the list above.</h2> <h2 id="one_time_message" style="display:none;">Use the scroll wheel on your mouse, or the handle on your left to scroll.</h2> </div> </div> </body></html><?}?>