otwiera plik patch.php wczytuje z niego folder thema standardowa default
następnie jest to dodawane do ścieżki i includowane...
a wiec co robie źle?
CODE
<?php
$plik = fopen("admin/patch.php","r");
$czytaj = fread($plik,100);
$them = "themes/$czytaj/index.php";
include($them);
fclose($plik);
?>
błedy na localhost wyskakują takie:
CODE
Warning: include(themes/default /index.php) [function.include]: failed to open stream: No such file or directory in /var/www/public_html/mzCMS/index.php on line 8
Warning: include() [function.include]: Failed opening 'themes/default /index.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/public_html/mzCMS/index.php on line 8
Warning: include() [function.include]: Failed opening 'themes/default /index.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/public_html/mzCMS/index.php on line 8
To tak jak by po default dodawało spacje.
Pozdro