3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php include "includes/configuracao.php"; validaUsuario(); $dadosEmail = dadosEmail($id_email); $id_cliente = $dadosEmail['id_cliente']; $data_cadastro = formataDataHora($dadosEmail['data_cadastro']); $id_produto = $dadosEmail['id_produto']; $dadosCliente = dadosCliente($id_cliente); if ( $id_produto == 0 ) { $id_produto = $dadosCliente['id_produto']; } $dadosProduto = dadosProduto($id_produto); if ( $botao == "GRAVAR" ) { if ( $id_usuario == "" ) { echo "Seleciona um corretor/usuário"; exit(); } $sql = "UPDATE email SET status = 'CANCELADO PELO SIS' WHERE id_cliente = '".$dadosEmail['id_cliente']."' AND status = 'PENDENTE' AND id_email != '". $id_email ."'"; executaMySQL($sql); $sql = "UPDATE compromisso SET status = 'CANCELADO PELO SIS' WHERE id_cliente = '".$dadosCliente['id_cliente']."' AND status = 'PENDENTE'"; executaMySQL($sql); $sql = "UPDATE email SET excluido_sn = 'S' WHERE id_cliente = '".$dadosEmail['id_cliente']."' AND excluido_sn = 'N' AND id_email != '". $id_email ."'"; executaMySQL($sql); $sql = "UPDATE compromisso SET excluido_sn = 'S' WHERE id_cliente = '".$dadosCliente['id_cliente']."' AND excluido_sn = 'N'"; executaMySQL($sql); $sqltemp = "insert into compromisso ( id_cliente, id_usuario, data_cadastro, id_usuario_cadastro, data_evento, titulo, descricao, tipo, id_produto ) values ( '" . $id_cliente . "', '" . $id_usuario_responsavel . "', now(), '" . $id_usuario_responsavel . "', now(), 'CLIENTE TRANSFERIDO', '" . $comentario . "', 'AVALIAR CLIENTE', '" . $dadosCliente['id_produto'] . "' )"; executaMySQL($sqltemp); exit(); }
Output for 7.0.0 - 7.1.0
Warning: include(includes/configuracao.php): failed to open stream: No such file or directory in /in/f0FMW on line 3 Warning: include(): Failed opening 'includes/configuracao.php' for inclusion (include_path='.:') in /in/f0FMW on line 3 Fatal error: Uncaught Error: Call to undefined function validaUsuario() in /in/f0FMW:5 Stack trace: #0 {main} thrown in /in/f0FMW on line 5
Process exited with code 255.
Output for 5.1.0 - 5.6.28
Warning: include(includes/configuracao.php): failed to open stream: No such file or directory in /in/f0FMW on line 3 Warning: include(): Failed opening 'includes/configuracao.php' for inclusion (include_path='.:') in /in/f0FMW on line 3 Fatal error: Call to undefined function validaUsuario() in /in/f0FMW on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: main(includes/configuracao.php): failed to open stream: No such file or directory in /in/f0FMW on line 3 Warning: main(): Failed opening 'includes/configuracao.php' for inclusion (include_path='.:') in /in/f0FMW on line 3 Fatal error: Call to undefined function validaUsuario() in /in/f0FMW on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: main(includes/configuracao.php): failed to open stream: No such file or directory in /in/f0FMW on line 3 Warning: main(): Failed opening 'includes/configuracao.php' for inclusion (include_path='.:') in /in/f0FMW on line 3 Fatal error: Call to undefined function: validausuario() in /in/f0FMW on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: main(includes/configuracao.php): failed to open stream: No such file or directory in /in/f0FMW on line 3 Warning: main(): Failed opening 'includes/configuracao.php' for inclusion (include_path='.:') in /in/f0FMW on line 3 Fatal error: Call to undefined function: validausuario() in /in/f0FMW on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(includes/configuracao.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/f0FMW on line 3 Warning: main() [http://www.php.net/function.main]: Failed opening 'includes/configuracao.php' for inclusion (include_path='.:') in /in/f0FMW on line 3 Fatal error: Call to undefined function: validausuario() in /in/f0FMW on line 5