Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] bTemplate, cos zmienilem i nie dziala :/
M45t3r
post 10.07.2006, 18:24:24
Post #1





Grupa: Zarejestrowani
Postów: 133
Pomógł: 0
Dołączył: 16.05.2005
Skąd: Lubaczów

Ostrzeżenie: (0%)
-----


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 ..


--------------------
Nie chce pieniedzy, diamentow, tulipanow i fasoli!
Go to the top of the page
+Quote Post
piwoszeq
post 11.07.2006, 21:33:11
Post #2





Grupa: Zarejestrowani
Postów: 57
Pomógł: 0
Dołączył: 13.01.2005
Skąd: warszawa

Ostrzeżenie: (0%)
-----


wgraj te pliki jeszcze raz ? smile.gif
Go to the top of the page
+Quote Post
M45t3r
post 11.07.2006, 21:53:11
Post #3





Grupa: Zarejestrowani
Postów: 133
Pomógł: 0
Dołączył: 16.05.2005
Skąd: Lubaczów

Ostrzeżenie: (0%)
-----


ale ile moge je wgrywac ?! robilem to ze 100 razy


--------------------
Nie chce pieniedzy, diamentow, tulipanow i fasoli!
Go to the top of the page
+Quote Post
kwiateusz
post 11.07.2006, 22:17:01
Post #4


Admin Techniczny


Grupa: Administratorzy
Postów: 2 071
Pomógł: 93
Dołączył: 5.07.2005
Skąd: Olsztyn




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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 03:30