", $variavel); return $variavel; } // Conexao com o Banco de Dados function conecta() { $con = mysql_connect("localhost", "gimagem_prod", "abc123") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("gimagem_producao"); if(!$con) { echo "

Atencao:

Ocorreu um erro ao tentar conectar, por favor repita a operação.

"; exit; } return $con; } // Fecha Conexao com o Banco de Dados function desconecta($con) { return mysql_close($con); } // Valida Variável function validaCod($cod) { if ($cod == '') die(); if ( !(is_numeric($cod)) ) die(); } // Função $_POST[] com substituição para BD function post($post) { $var = htmlspecialchars(trim($_POST["$post"])); $var = str_replace("'", "`", $var); return $var; } // Função $_GET[] com substituição para BD function get($get) { $var = htmlspecialchars(trim($_GET["$get"])); $var = str_replace("'", "`", $var); return $var; } // Verifica se a SESSÃO DE NÍVEL de acesso está correta function ver_Sessao() { session_start(); $sessao = $_SESSION["sessaoCODIGO"]; if ( ($sessao == "") || (!(is_numeric($sessao))) ) { header("Location: identificacao.php") ; die(); } } function ver_SessaoGra($sessao) { session_start(); if ($sessao == "") { header("Location: identificacao.php") ; die(); } } function ver_SessaoGraAdmin($nsessao) { session_start(); if ($nsessao != 10) { header("Location: usuarios_listar.php?err=per") ; die(); } } ################################################################################################################################ ## INICIO - PERSONALIZACAO SISTEMA - INTERFACE INTERNET ################################################################################################################################ // imprime a data atual function imp_data() { echo 'Presidente Prudente, '; echo $today = date("d") .' '; $mes = date('M'); $mess = array("Jan" => "Janeiro", "Feb" => "Fevereiro", "Mar" => "Março", "Apr" => "Abril", "May" => "Maio", "Jun" => "Junho", "Jul" => "Julho", "Aug" => "Agosto", "Sep" => "Setembro", "Oct" => "Outubro", "Nov" => "Novembro", "Dec" => "Dezembro"); echo $mess["$mes"]; echo ' de '; echo $today = date("Y"); } // imprime o nome do sistema function imp_nomesis() { echo 'Acompanhamento de Estoque e Produção'; } // imprime os desenvolvedores function imp_desensis() { echo 'Desenvolvido por Matheus Poletto'; } ################################################################################################################################ ## FIM - PERSONALIZACAO SISTEMA - INTERFACE INTERNET ################################################################################################################################ ?>
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /whm/gimagem/public_html/producao/funcoes.php:1) in /whm/gimagem/public_html/producao/identificacao.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /whm/gimagem/public_html/producao/funcoes.php:1) in /whm/gimagem/public_html/producao/identificacao.php on line 3

Fatal error: Call to undefined function get() in /whm/gimagem/public_html/producao/identificacao.php on line 4