Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [EF]Błąd bez opisu
daniel1302
post 14.10.2008, 06:29:05
Post #1





Grupa: Zarejestrowani
Postów: 602
Pomógł: 30
Dołączył: 1.08.2007
Skąd: Nowy Sącz

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


Witam w EF 4 pojawił mi się dziwny problem niewiem skąd ale wygląda on następująco
Kod
Something is wrong in your syntax obok '' w linii 3
Brak postów.

Normalnie nie pisałbym tutaj ale niemoge znaleźć pliku w jakim jest błąd może ktoś ma podobny problem
błąd jest na stronie: http://helgrind.zagrosze.net.pl/team
Go to the top of the page
+Quote Post
nevt
post 14.10.2008, 08:52:31
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


ten napis jest bezpośrednio w kodzie strony. prawdopodobnie to błąd zapytania SQL. pokaż kod skryptu który generuje panel "Shoutbox" - tam jest błąd...


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
Go to the top of the page
+Quote Post
daniel1302
post 14.10.2008, 19:14:36
Post #3





Grupa: Zarejestrowani
Postów: 602
Pomógł: 30
Dołączył: 1.08.2007
Skąd: Nowy Sącz

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


To są pierwsze linie
  1. <?php
  2. /*---------------------------------------------------+
  3. | eXtreme-Fusion  Content Management System          |
  4. +----------------------------------------------------+
  5. | Copyright (c) 2005 eXtreme Crew                    |
  6. | <a href=\"http://www.extreme-fusion.pl\" target=\"_blank\">http://www.extreme-fusion.pl</a>                       |
  7. +----------------------------------------------------+
  8. | Engine Php-fusion by Nick Jones                    |
  9. | <a href=\"http://www.php-fusion.co.uk/\" target=\"_blank\">http://www.php-fusion.co.uk/</a>                       |
  10. +----------------------------------------------------+
  11. | Released under the terms & conditions of v2 of the |
  12. | GNU General Public License. For details refer to   |
  13. | the included gpl.txt file or visit <a href=\"http://gnu.org\" target=\"_blank\">http://gnu.org</a>  |
  14. +----------------------------------------------------*/
  15. if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
  16. if (isset($_GET['id']) && !isNum($_GET['id'])) fallback(FUSION_SELF);
  17. if (isset($_GET['shout']) && !preg_match("#(add|edit|delete)#iu", $_GET[shout])) fallback(FUSION_SELF);
  18. define("SBX_EDIT_USER", $settings['sbx_edit_user']);
  19. $shout = $_GET[shout]; $id = $_GET[id];
  20. openside($locale['120']);
  21. if (iMEMBER || $settings['guestposts'] == "1") {
  22.    $result = dbquery("SELECT * FROM ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
  23.    if (dbrows($result)) {
  24.        $sdata = dbarray($result);
  25.    }
  26.    if (isset($_POST['post_shout']) && isset($shout)) {
  27.        $flood = false;
  28.        if (iMEMBER) {
  29.            $shout_name = $userdata['user_id'];
  30.        } else {
  31.            $shout_name = trim(stripinput($_POST['shout_name']));
  32.            $shout_name = preg_replace("(^[0-9]*)", "", $shout_name);
  33.            if (isNum($shout_name)) {
  34.                  $shout_name = "";
  35.              }
  36.        }
  37.        $shout_message = str_replace("\n", " ", $_POST['shout_message']);
  38.        $shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
  39.        $shout_message = str_replace("[", " [", $shout_message);
  40.        $shout_message = preg_replace("/([^s]{21})/", "$1\n", $shout_message);
  41.        $shout_message = trim(stripinput(censorwords($shout_message)));
  42.        $shout_message = str_replace("\n", "<br>", $shout_message);
  43.        if ($shout_name != "" && $shout_message != "") {
  44.            $result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
  45.            if (!iSUPERADMIN && dbrows($result) > 0) {
  46.                $data = dbarray($result);
  47.                if ((time() - $data['last_shout']) < $settings['flood_interval']) {
  48.                    $flood = true;
  49.                    $result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
  50. ?>
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: 28.06.2025 - 08:11