|
|||
Projects by Evolution Flooring Specialists cc$dir_path = 'images/projects/'; if (isset($_GET['dir'])) { $dir_path = $dir_path . $_GET['dir'] .'/'; $back = 1; } //$url = 'http://' . $_SERVER['SERVER_NAME'] . (clsGlobals::IsWebsiteLive() ? '' : ':8080') .'/'. $dir_path; $url = 'http://' . $_SERVER['SERVER_NAME'] .'/'. $dir_path; $path = $_SERVER['DOCUMENT_ROOT'] .'/'. $dir_path; $exclude_list = array(".", ".."); $files = array_diff(scandir($dir_path), $exclude_list); if (isset($back)) { ?> Marble Restoration Projects} ?>
'; //echo $path .' '; foreach ($files as $file){ $folder_img = '_folder.jpg'; if ($file <> $folder_img && is_file($path . $file)) { $title_sidx = stripos($file, ' - ') + 3; $title_len = stripos($file, clsGlobals::GetFileExtension($file)) - $title_sidx - 1; $title = substr($file, $title_sidx, $title_len); ?>
|