Ir para conteúdo
Fórum Script Brasil
  • 0

Notice: Undefined variable: name in O link aqui on line 193


PiruYasha

Pergunta

<?

    /******************************************************************/

    if ($name == "" || $email == "" || $company == "" || $message == "")

       {

                 echo "Veja as assinaturas";

                for ($i=0; $i<3; $i++)

                {

                echo ".";

                sleep(1);

                flush();

                }

        $filesize = filesize("entry.dat"); 

        $file = fopen("entry.dat","r");

        $buffer = fread($file,$filesize);

        /********************** SMILE PARSING **(beta)********************/
        $smile_parse1 = str_replace(":-)","<IMG SRC=smile.gif border=\"0\">",$buffer);
        $smile_parse2 = str_replace(":-P","<IMG SRC=tongue.gif border=\"0\">",$smile_parse1);
        $smile_parse3 = str_replace(":-p","<IMG SRC=tongue.gif border=\"0\">",$smile_parse2);
        $smile_parse4 = str_replace(":P","<IMG SRC=tongue.gif border=\"0\">",$smile_parse3);
        $smile_parse5 = str_replace(":)","<IMG SRC=smile.gif border=\"0\">",$smile_parse4);
        $smile_parse6 = str_replace(":-(","<IMG SRC=notsmile.gif border=\"0\">",$smile_parse5);
        $smile_parse7 = str_replace(":(","<IMG SRC=notsmile.gif border=\"0\">",$smile_parse6);
        $smile_parse8 = str_replace(":-o","<IMG SRC=osmile.gif border=\"0\">",$smile_parse7);
        $smile_parse9 = str_replace(";-)","<IMG SRC=zwinker.gif border=\"0\">",$smile_parse8);
        $smile_parse10 = str_replace(";)","<IMG SRC=zwinker.gif border=\"0\">",$smile_parse9);

        /********************** CENSURES **************************/
        $smile_parse11 = str_replace("******","<IMG SRC=censured.gif border=\"0\">",$smile_parse10);
        $smile_parse12 = str_replace("merda","<IMG SRC=censured.gif border=\"0\">",$smile_parse11);
        $smile_parse13 = str_replace("c******","<IMG SRC=censured.gif border=\"0\">",$smile_parse12);
        $smile_parse14 = str_replace("p****","<IMG SRC=censured.gif border=\"0\">",$smile_parse13);
        $smile_parse15 = str_replace("p***","<IMG SRC=censured.gif border=\"0\">",$smile_parse14);
        $smile_parse16 = str_replace("bicha","<IMG SRC=censured.gif border=\"0\">",$smile_parse15);

        $buffer_parsed = str_replace(":-x","<IMG SRC=xsmile.gif border=\"0\">",$smile_parse16);
        echo "$buffer_parsed";

        fclose($file);

       }

    else if ($send_status == "ok")

               {



            /********* GET VARIABLE **********/

             $filesize = filesize("entry.dat"); 

             $file = fopen("entry.dat","r");

             $buffer = fread($file,$filesize);

             $buffer_parsed = str_replace(":-)","<IMG SRC=smile.gif border=0",$buffer);

             fclose($file);

$today = getdate(); 
$month = $today[month]; 
$mday = $today[mday]; 
$year = $today[year]; 
$zeituhr = "$month $mday, $year";







            /******* WRITING MESSAGE TO FILE ****/

             $file = fopen("entry.dat","w");

             $parsed_message = strip_tags($message,"<a>,<i>");
             $parsed_message_br = str_replace("\n","<br>",$parsed_message); 
             $today = date( "Ymd", time() );
             $message_table ="<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"0\" bgcolor=EEEEEE width=\"500\"><TD bg=\"top.gif\" colspan=\"2\"><IMG SRC=\"top.gif\" width=\"100%\" height=\"5\" border=\"0\"></TD></TR><TR><TD align=\"right\" colspan=\"2\"><i>$zeituhr</i></TD></TR><TR><TR><TD width=\"30%\"><B>Nome:</B></TD><TD>$name</TD></TR><TR><TD><B>E-Mail:</B></TD><TD><A HREF=\"mailto:$email\">$email</A></TD></TR><TR><TD><B>Homepage:</B></TD><TD><A HREF=\"$url\" target=\"_blank\">$url</A></TD></TR><TR><TD><B>Compania:</B></TD><TD>$company</TD></TR><TR><TD valign=\"top\" colspan=\"1\"><B>Mensagem:</B></TD><TD>$parsed_message_br</TD></TR><TR><TD bg=\"bottom.gif\" colspan=\"2\"><IMG SRC=\"bottom.gif\" width=\"100%\" height=\"13\" border=\"0\"></TD></TR></TABLE>";

              fputs($file,"$message_table \n $buffer");

             fclose($file);

        

            }

    else if ($view_guestbook == "View Guestbook"){

            /************ READING OUT **************/

             $filesize = filesize("entry.dat"); 

             $file = fopen("entry.dat","r");

             $buffer = fread($file,$filesize);

             $buffer_parsed = str_replace(":-)","<IMG SRC=smile.gif border=0",$buffer);

             echo "$buffer_parsed";

             fclose($file);

            /************************************/

        }

    $copyright = "   <!-- PLEASE DO NOT REMOVE THIS TAG AND SUPPORT MY WORK ----------------------------------------->
    
   <span class=\"link\">TR DESIGN, Copyright by <A HREF=\"http://www.tr-designer.com\" target=\"_blank\">tr-designer.com</A> &copy;
    
   <!-- PLEASE DO NOT REMOVE THIS TAG AND SUPPORT MY WORK ----------------------------------------->";


    ?>

:blush: :huh:

Editado por Jonathan Queiroz
Adcionar tag's (Jonathan)
Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...