Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Brak polskich znaków na stronie, Proszę o pomoc w naprawie
papisp
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 22.07.2011

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


Jestem pierwszy raz na tej stronie i po raz pierwszy mam do czynienia z PHP.
Osoba co robiła stronę wyjechała i nie ma z nią kontaktu.
Problem jest w tym, że strona była przenoszona też nie przeze mnie.
Na stronie tej brakuje polskich znaków. W HTML-u dałbym radę.
Co zrobić aby to naprawić.
Mam dostęp do strony i hasła. Bardzo proszę o pomoc poniżej link do strony.
http://stronyweb.com.pl/smp/news.php
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
papisp
post
Post #2





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 22.07.2011

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


readarticle.php

  1. <?php
  2. /*---------------------------------------------------+
  3. | PHP-Fusion 6 Content Management System
  4. +----------------------------------------------------+
  5. | Copyright Š 2002 - 2006 Nick Jones
  6. | <a href="http://www.php-fusion.co.uk/" target="_blank">http://www.php-fusion.co.uk/</a>
  7. +----------------------------------------------------+
  8. | Released under the terms & conditions of v2 of the
  9. | GNU General Public License. For details refer to
  10. | the included gpl.txt file or visit <a href="http://gnu.org" target="_blank">http://gnu.org</a>
  11. +----------------------------------------------------*/
  12. require_once "maincore.php";
  13. require_once "subheader.php";
  14. require_once "side_left.php";
  15. require_once INCLUDES."comments_include.php";
  16. require_once INCLUDES."ratings_include.php";
  17.  
  18. if (!isset($article_id) || !isNum($article_id)) fallback("index.php");
  19. if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
  20.  
  21. $result = dbquery(
  22. "SELECT ta.*,tac.*, tu.user_id,user_name FROM ".$db_prefix."articles ta
  23. INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
  24. LEFT JOIN ".$db_prefix."users tu ON ta.article_name=tu.user_id
  25. WHERE article_id='$article_id'"
  26. );
  27. $res = 0;
  28. if (dbrows($result) != 0) {
  29. $data = dbarray($result);
  30. if (checkgroup($data['article_cat_access'])) {
  31. $res = 1;
  32. if ($rowstart == 0) $result = dbquery("UPDATE ".$db_prefix."articles SET article_reads=article_reads+1 WHERE article_id='$article_id'");
  33. $article = stripslashes($data['article_article']);
  34. $article = explode("<--PAGEBREAK-->", $article);
  35. $pagecount = count($article);
  36. $article_subject = stripslashes($data['article_subject']);
  37. $article_info = array(
  38. "article_id" => $data['article_id'],
  39. "user_id" => $data['user_id'],
  40. "user_name" => $data['user_name'],
  41. "article_date" => $data['article_datestamp'],
  42. "article_breaks" => $data['article_breaks'],
  43. "article_comments" => dbcount("(comment_id)", "comments", "comment_type='A' AND comment_item_id='".$data['article_id']."'"),
  44. "article_reads" => $data['article_reads'],
  45. "article_allow_comments" => $data['article_allow_comments']
  46. );
  47. render_article($article_subject, $article[$rowstart], $article_info);
  48. if (count($article) > 1) {
  49. $rows = $pagecount;
  50. echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,1,$rows,3,FUSION_SELF."?article_id=$article_id&amp;")."\n</div>\n";
  51. }
  52. if ($data['article_allow_comments']) showcomments("A","articles","article_id",$article_id,FUSION_SELF."?article_id=$article_id");
  53. if ($data['article_allow_ratings']) showratings("A",$article_id,FUSION_SELF."?article_id=$article_id");
  54. }
  55. }
  56. if ($res == 0) redirect("articles.php");
  57.  
  58. require_once "side_right.php";
  59. require_once "footer.php";
  60. ?>




Index.php

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. </head>
  7.  
  8. <body>
  9. <?php
  10. /*---------------------------------------------------+
  11. | PHP-Fusion 6 Content Management System
  12. +----------------------------------------------------+
  13. | Copyright ? 2002 - 2006 Nick Jones
  14. | <a href="http://www.php-fusion.co.uk/" target="_blank">http://www.php-fusion.co.uk/</a>
  15. +----------------------------------------------------+
  16. | Released under the terms & conditions of v2 of the
  17. | GNU General Public License. For details refer to
  18. | the included gpl.txt file or visit <a href="http://gnu.org" target="_blank">http://gnu.org</a>
  19. +----------------------------------------------------*/
  20. require_once "maincore.php";
  21.  
  22. redirect($settings['opening_page']);
  23. ?>
  24.  
  25. </body>
  26. </html>




Takie są foldery

administration
cgi-bin
forum
images
includes
infusions
locale
themes

Go to the top of the page
+Quote Post

Posty w temacie
- papisp   [PHP]Brak polskich znaków na stronie   22.07.2011, 11:52:58
- - hyhyhy   Newsy są wyciągane z bazy danych, prawda? Zakłada...   22.07.2011, 12:12:02
- - kudlatypawelek   Może należy ustawić SET NAMES na określone kodowan...   22.07.2011, 12:25:15
- - papisp   Jak napisałem pierwszy raz mam do czynienia z PHP ...   22.07.2011, 12:45:04
- - hyhyhy   Na początek otwórz sobie czymkolwiek index.php i z...   22.07.2011, 12:49:03
- - emajl22   Otwórz plik index.php i w edytorze KED naciśnij F4...   22.07.2011, 12:52:22
- - papisp   Cytat(emajl22 @ 22.07.2011, 13:52:22 ...   22.07.2011, 14:28:08
- - Polonistyk   Cytat(papisp @ 22.07.2011, 15:28:08 )...   22.07.2011, 16:21:34
- - papisp   Podpowiesz, który to będzie plik? W głównym mam ta...   23.07.2011, 08:52:02
- - IceManSpy   Zacznij od index.php   23.07.2011, 09:20:30
- - Polonistyk   Plik może być w folderze, najlepiej daj kod pliku ...   23.07.2011, 09:24:43
- - papisp   readarticle.php [PHP] pobierz, plaintext <?php...   23.07.2011, 11:46:34
- - Rid   Jako język strony ma Pan zadeklarowany angielski-t...   23.07.2011, 12:02:01
- - papisp   Cytat(Rid @ 23.07.2011, 13:02:01 ) A ...   23.07.2011, 12:29:44
- - Polonistyk   No więc tak, prawdopodobnie w pliku maincore.php j...   23.07.2011, 12:35:11
- - potreb   Panowie to nie jest zgadul zgadula. System phpfusi...   23.07.2011, 12:44:32
- - papisp   Cytat(Polonistyk @ 23.07.2011, 13:35...   23.07.2011, 16:49:18
- - Damonsson   1. Przeczytałeś podwieszony temat i sprawdziłeś ws...   23.07.2011, 17:17:46
- - Polonistyk   Poradzisz sobie... Krzaczki większe, hmm... zmień ...   23.07.2011, 18:01:13


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

 



RSS Aktualny czas: 14.10.2025 - 10:36