errori scripts index.php

avatar

Utente Attivo
3 Gen 2017
97
0
6
54
se gentilmente li aiutate per alcuni errori su index php vi dico grazie
primo errore e questo :
[Tue Jan 03 07:43:42 2017] [error] [client 188.143.232.41] PHP Notice: Undefined index: search_user_nick in /var/www/index.php on line 3020
linea 3020 e questa : <input placeholder=\"Nick\" type=\"text\" name=\"search_user_nick\" maxlength=\"255\" size=\"25\" value=\"" . ((te_empty ($_POST ["search_user_nick"]) === false) ? te_html_encode ($_POST ["search_user_nick"]) : "") . "\" />
mi aiutate per favore ? perché lo scripts index.php e tutta un errore
 

borgo italia

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
4 Feb 2008
16.046
150
63
PR
www.borgo-italia.it
ciao
cosa sono quelle funzioni te_empty e te_html_encode? non mi sembrano funzioni native di php (sul manuale non esistono), le hai costruite tu?
 

avatar

Utente Attivo
3 Gen 2017
97
0
6
54
ciao e una hublist costruita da un programmatore che mi ha dato gli script , il sito funziona ma da tanti errori
 

borgo italia

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
4 Feb 2008
16.046
150
63
PR
www.borgo-italia.it
ciao
non so se costruisci l'imput con un echo, se è così prova
PHP:
echo " <input placeholder=\"Nick\" type=\"text\" name=\"search_user_nick\" maxlength=\"255\" size=\"25\" value=\"" .
    ((!empty ($_POST['search_user_nick'])) ? html_entity_decode ($_POST['search_user_nick']) : "")
    . "\" />";
 

avatar

Utente Attivo
3 Gen 2017
97
0
6
54
niente da fare , mi sa che il problema e molto complicato , mettendo la stringa il sito non funziona , secondo me prima che mi aiutate dovete vedere il sito e lo script php
 

avatar

Utente Attivo
3 Gen 2017
97
0
6
54
Attenzione, ho riscontrato un errore:
Il file che hai caricato non ha un'estensione consentita.
 

borgo italia

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
4 Feb 2008
16.046
150
63
PR
www.borgo-italia.it
ciao
facciamo un passo alla volta, da quello che ho capito dallo spezzone di codice che hai postato fa parte di un form.
prova a postare solo quella parte cioe da <form action=........> a </form>
 

avatar

Utente Attivo
3 Gen 2017
97
0
6
54
non e un forum . e una hublist , se cerchi su Google dchublist capisci come e un sito hublist
 

avatar

Utente Attivo
3 Gen 2017
97
0
6
54
PHP:
<form method=\"post\" action=\"/?do=hubs&amp;id=" . $row [0] . "&amp;action=ban\">
      <table class=\"nospacing multicol\">
       <tr>
        <td>ID:</td>
        <td>
         <a href=\"/?do=hubs&amp;id=" . $row [0] . "\" target=\"_blank\">" . $row [0] . "</a>
        </td>
       </tr>
       <tr>
        <td>Ban reason</td>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>
         <select name=\"ban_reason\">
          <option value=\"\">- Select ban reason -</option>
          <option value=\"Duplicate\">Duplicate</option>
          <option value=\"Fake users\">Fake users</option>
          <option value=\"Other\">Other</option>
         </select>
        </td>
        <td>&nbsp;</td>
       </tr>
      </table>
      <input style=\"margin-top: 5px;\" class=\"button\" type=\"submit\" name=\"ban_send\" value=\"Submit\" />
     </form>
    ";

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "unban") and ($class > 0)) { // action=unban
    mysql_query ("update `hubs` set `status` = 20, `banreason` = null where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "enable") and ($class > 0)) { // action=enable
    mysql_query ("update `hubs` set `status` = 20 where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "disable") and ($class > 0)) { // action=disable
    mysql_query ("delete from `users` where `hub` = " . $row [0]); // delete old users
    mysql_query ("update `hubs` set `status` = 8, `onlineusers` = 0, `totalshare` = 0 where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "restore") and ($class > 0)) { // action=restore
    mysql_query ("update `hubs` set `status` = 0 where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "delete") and ($class > 0)) { // action=delete
    mysql_query ("delete from `users` where `hub` = " . $row [0]); // delete old users
    mysql_query ("delete from `news` where `hub` = " . $row [0]); // delete news
    mysql_query ("update `hubs` set `status` = 19, `onlineusers` = 0, `totalshare` = 0 where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "debug") and ($class > 0)) { // action=debug
    mysql_query ("update `hubs` set `debug` = 1 where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else if ((isset ($_GET ["action"]) === true) and ($_GET ["action"] === "undebug") and ($class > 0)) { // action=undebug
    mysql_query ("update `hubs` set `debug` = 0 where `id` = " . $row [0] . " limit 1");
    header ("Location: /?do=hubs&id=" . $row [0]);

   } else { // action=show
    if (te_empty ($row [4]) === false) { // hub information
     $hub_name = explode (" - ", $row [4], 2);
     $hub_name = te_html_encode ($hub_name [0]);
    } else {
     $hub_name = "<span style=\"color: #808080;\">Not available</span>";
    }

    $content = "
 
Ultima modifica di un moderatore:
Discussioni simili
Autore Titolo Forum Risposte Data
A [Cerco][Retribuito] Correzioni errori sito web Offerte e Richieste di Lavoro e/o Collaborazione 3
W [PHP] Visualizzare errori su Statements in MySQLi PHP 3
D Errori dopo installazione certificato SSL in Wordpress WordPress 0
I [HTML] HTML validator, chi mi spiega questi errori? HTML e CSS 1
A [Javascript] intercettare errori JS Javascript 1
P Reindirizzamento errori url Web Server 0
F PHP, PDO e visualizzazioni errori e/o eccezioni PHP 3
F Errori console jQuery 0
maicol07 [PHP][MySQL] Risoluzione errori PHP 1
G [PHP] Socket server in loop infinito errori PHP 2
E [PHP] GUMP: mostrare gli errori tramite array PHP 1
F [Javascript] Errori Console JS Javascript 1
S [PHP] Errori in lato server ma non in lato client PHP 5
felino [WordPress] File di log degli errori WordPress 6
L [WordPress] Errori - Lato client dalla console del browser WordPress 1
booklisa [WordPress] Errori vari console chrome, redirect file .htaccess + internalizza risorse WordPress 1
booklisa Errori wordpress personalizzazione tema post aggiornamento 4.7 CMS (Content Management System) 0
V [PHP] [OOP]Gestione errori connessione db PHP 5
M Problema errori su mysqli PHP 4
G Errori PHP è possibile fare un redirect ad una pagina d'errore? PHP 3
O Form dopo errori PHP 9
filomeni Restyling sito ed errori 404 SEO e Posizionamento 2
MarcoGrazia [PHP][PDO][MySQL] Non registra ma non da nemmeno errori. PHP 0
F controllo form php con restituzione errori nella form PHP 10
D Problema errori di scansione 404 SEO e Posizionamento 1
enzonero Sito personale su wordpress con errori W3C WordPress 2
P Problema con file di registrazione in php, non funziona e dà continui errori PHP 0
MarcoGrazia [PDO] insert che non inserisce e non da errori PHP 1
T Errori di sintassi nel seguente codice Javascript 1
il_bauscia errori di file system: programma free per correggere? Hardware 1
Z sitemap con Yoast: molti errori in Google webmaster tools Google Search Console 10
il_bauscia Errori 404 e strumenti per webmaster di Google Google Search Console 1
M Errori nella connessione e in AspSmartUpload Classic ASP 4
G [risolto] Errori php/javascript Javascript 2
pup3770 Errori iniziali codice app android Sviluppo app per Android 3
H Errori mysqli_query() PHP 9
MarcoGrazia Strumenti di Webmaster: errori di scansione! Google Search Console 1
H Script per visualizzare ip mi dà errori! PHP 0
Marcolotto lettere accentate HTML: strani errori HTML e CSS 1
A gestire errori 400-401-403-404-500 con file htaccess PHP 0
Emix Scarico Quantita e correzzione errori PHP 41
P accesso al database ed errori Database 5
A Errori wordpress WordPress 3
M errori pagina httpd.conf in APACHE per installare wp WordPress 0
F errori sul recupero dati mysql e php PHP 3
P Errori su variabili dell'insert PHP 28
S Mi aiutate a capire questi errori? Wordpress WP 3.3.1 error_log CMS (Content Management System) 3
I Form... giudizio, consigli, errori, possibili miglioramenti.... PHP 5
borgo italia Errori nella visualizzazione della pagina HTML e CSS 5
P Errori al validatore html HTML e CSS 10

Discussioni simili