Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [php] bTemplate
Forum PHP.pl > Forum > Przedszkole
M45t3r
No nawet nie wiem co zmienilem ;| wiec, dwa potrzeben pliki:

header.php

  1. <?php
  2. include "config.php";
  3. include "includes/function/session.php";
  4. $row = mysql_fetch_assoc(mysql_query('select * from `pixarcell_ustawienia` where id ="1"'));
  5. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2" />
  9. <title>'.$row['title'].'</title>
  10. <meta name="Keywiords" content="'.$row['keywords'].'" />
  11. <meta name="Description" content="'.$row['description'].'" />
  12. <meta name="authot" content="Master" />
  13. <meta name="generator" content="MasterPL CMS" />
  14. <link rel="stylesheet" href="style.css" type="text/css" />
  15. <style type="text/css">@import url("style.css");</style>
  16. <script src="javascript/overlib.js" type="text/javascript"></script>
  17. </head>
  18. <body>';
  19. session();
  20. ?>


i index.php

  1. <?php
  2. include 'header.php';
  3. include 'includes/bTemplate.php';
  4. $tpl = new bTemplate();
  5. include 'includes/template.php';
  6.  if(!isset($_GET['p']))
  7. {
  8.  include './includes/news.php';
  9. }
  10. else
  11. {
  12.  if(file_exists('./includes/'.$_GET['p'].'.php'))
  13.  {
  14.  include './includes/'.$_GET['p'].'.php';
  15.  }
  16.  else
  17.  {
  18.  header ("Location: ?p=404");
  19.  }
  20. }
  21. $content = ob_get_contents();
  22. $tpl->set('content', $content);
  23. $tpl ->fetch('theme/deafult/theme.php');
  24. include 'footer.php';
  25. ?>


nie wiem co jest nie tak;| tzn, nie wyświetla mi sie strona.. a w źródle mam tylko tyle:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
  3. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2" />
  4. <title>PixarCell</title>
  5. <meta name="Keywiords" content="slowa kluczowe" />
  6. <meta name="Description" content="opis" />
  7. <meta name="authot" content="Master" />
  8. <meta name="generator" content="MasterPL CMS" />
  9. <link rel="stylesheet" href="style.css" type="text/css" />
  10. <style type="text/css">@import url("style.css");</style>
  11. <script src="javascript/overlib.js" type="text/javascript"></script>
  12. </head>
  13. </body>
  14. </html>


footer.php zawiera czysty tekst, bTemplate.php to wiadome, template.php to plik z instrukcjami dla systemu ... do dzisiaj działało, coś zmieniłem, pojecia juz nie mam co, nie pamietam i klapa... biala strona ;]

adres jakby ktos chcial http://www.masterpl.int.pl/pixarcell

a do theme

http://www.masterpl.int.pl/pixarcell/theme/deafult ..
piwoszeq
wgraj te pliki jeszcze raz ? smile.gif
M45t3r
ale ile moge je wgrywac ?! robilem to ze 100 razy
kwiateusz
a mógłbyś dać kod theme.php bo jak widze to header jest, footer zbedny skoro to txt więc środka brak biggrin.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.