Opera operą, tym zajmiemy się później

Stworzyłem dokładną kopię wszystkich plików z roota www.pikwadrat.pl i umieściłem w www.pikwadrat.pl/pw/.
Index znajduje się tu:
http://pikwadrat.pl/pw/index.php5.
Babka z nazwa.pl mówi, że serwer wyświetla pliki, ale występują błędy w kodzie. Możecie rzucić okiem, co jest nie tak?
Zawartość indexu:
<?php
require_once('libs/smarty/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'templates/';
$smarty->compile_dir = 'var/templates/';
$smarty->config_dir = 'core/';
$smarty->cache_dir = 'var/cache/';
$smarty->debugging = false;
$params = $_REQUEST;
$content = $params['content'];
$boolGallery = false;
// sprawdza, czy to IE 6.0
$strBrowser = $_SERVER['HTTP_USER_AGENT'];
$boolIE6 = strpos($strBrowser, 'MSIE 6.0'); $boolIE6 = $boolIE6 ? true : false;
//wysokosc strony
$smarty->config_load( 'config.conf' );
$intPageHeight = $smarty->_config[0]['vars']['pageHeight'];
//$intWidthBonus = 36;
$intHeightBonus = 23;
$intIEHeightBonus = 4;
$intPageHeight = $boolIE6 ? ( $intPageHeight + $intIEHeightBonus ) : ( $intPageHeight + $intHeightBonus );
$smarty->assign( 'MaxHeight', $intPageHeight );
// konfiguracja glownego menu
$smarty->config_load( 'config.conf', 'TopMenu' );
$smarty->config_load( 'config.conf', 'TopMenuHref' );
$smarty->config_load( 'config.conf', 'TopMenuGalleries' );
$arrConfig = &$smarty->_config[0]['vars'];
$intCounter = 0;
foreach ($arrConfig as $strKey => $strItem) {
$intEnd = strpos($strKey, '_href' ); if ( $intEnd !== false ) {
$strName = substr( $strKey, 0
, $intEnd); if ( substr($strItem, 0, 4) == 'http' ) { $strHref = $strItem;
$arrTopMenu[ $intCounter ]['name'] = $arrConfig[ $strName ];
$arrTopMenu[ $intCounter ]['href'] = $strHref;
$arrTopMenu[ $intCounter ]['outerLink'] = true;
$intCounter++;
} else {
if (!file_exists( "$smarty->template_dir/topmenu/$strItem" ) ) { unset($arrConfig[ $strName ] ); } else {
$strHref = 'topmenu/'.$strItem;
$arrTopMenu[ $intCounter ]['name'] = $arrConfig[ $strName ];
$arrTopMenu[ $intCounter ]['href'] = $strHref;
$arrTopMenu[ $intCounter ]['gallery'] = $arrConfig[ $strName.'_gallery' ] ? $arrConfig[ $strName.'_gallery' ] : false;
$arrTopMenu[ $intCounter ]['selected'] = ( $params['content'] === $strHref) ? true : false;
$intCounter++;
}
}
}
}
//konfiguracja submenu
$strNavigationDisplay = 'none';
foreach ($arrTopMenu as $intKey=>$arrTopMenuItem) {
if ($arrTopMenuItem['gallery'] === true) { //&& $arrTopMenuItem['selected'] === true
if ($arrTopMenuItem['selected'] === true) $strNavigationDisplay = 'block';
$boolGallery = true;
$strSubMenu = $arrTopMenuItem['name'];
$smarty->config_load( 'config.conf', $strSubMenu.'Items' );
$arrConfig = &$smarty->_config[0]['vars'];
$intCounter = 1;
foreach ($arrConfig as $strKey => $strSubMenuItem) {
if ( strpos( $strKey, $strSubMenu.$intCounter ) !== false ) { $strSubMenuName = $arrConfig[ $strSubMenu.$intCounter ];
$arrSubMenu[ $intCounter ]['name'] = $strSubMenuName;
$arrSubMenu[ $intCounter ]['href'] = $arrTopMenuItem['href'].'&gallery='.$strSubMenuName;
$intCounter++;
}
}
}
}
if ( isset( $params['gallery'] ) ) { require_once( 'core/gallery.class.php5' );
$strGalleryDir = './galleries/'.$params['gallery'];
$gallery = new Gallery($strGalleryDir);
$arrImages = $gallery->getShuffledImages();
//zmienne Smarty'ow
if ( $gallery->getWidth() > 0 ) $smarty->assign( 'MaxWidth', $gallery->getWidth() );
$smarty->assign( 'images', $arrImages);
$content = 'gallery.html';
}
}
$content = $smarty->fetch( $content );
} elseif ( empty($content) ) { $content = $smarty->fetch( 'start.html' );
} else {
$content = '<p>Strona nie istnieje.</p>';
}
$smarty->assign( 'boolIE6', $boolIE6 );
$smarty->assign( 'boolGallery', $boolGallery );
$smarty->assign( 'topMenu', $arrTopMenu );
$smarty->assign( 'subMenu', $arrSubMenu );
$smarty->assign( 'NavigationDisplay', $strNavigationDisplay );
$smarty->assign( 'CONTENT', $content );
$smarty->display( 'index.html' );
?>
Widzicie, co tutaj nie gra?
Ok, doszedłem do tego:
Warning: require_once(libs/smarty/Smarty.class.php) [function.require-once]: failed to open stream: Nie ma takiego pliku ani katalogu in /home/pikwadrat/ftp/pw/index.php5 on line 4
Fatal error: require_once() [function.require]: Failed opening required 'libs/smarty/Smarty.class.php' (include_path='.:/usr/share/pear/') in /home/pikwadrat/ftp/pw/index.php5 on line 4
A plik jest gdzie miał być. Co zrobić?