Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [EF]Błąd bez opisu
Forum PHP.pl > Forum > Gotowe rozwiązania
daniel1302
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
nevt
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...
daniel1302
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. ?>
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.