$ver = str_replace(".", "", phpversion()); if ($ver < 420) { ?> <!-- MZn2 - Versão incompatível --><div style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; color:#CC0000; background-color:#FFFFFF; padding:8px; padding-left:10px; margin:5px; margin-top:10px; "><h4 style="margin:0px; ">MZn² - Versão incompatível</h4>O MZn² detectou que o host para o qual que você enviou o sistema está usando uma versão não suportada da tecnologia PHP.<br />O MZn² só funciona em hosts com suporte à PHP 4.2 no mínimo.</div><?php exit; } error_reporting(7); set_magic_quotes_runtime(0); define("WsSys_Token", 1); unset($s); unset($m); unset($p); $AbsPath = dirname(__FILE__); require_once $AbsPath . "/inc/g_global.php"; require_once $AbsPath . "/inc/g_config.php"; $s = new WsSys(); $s->cfg = $c; $s->debug = 1; $old = 0; if (@file_exists($s->cfg['file']['mzn2_safe'])) { header("Location: index.php"); exit; } if (@file_exists($s->cfg['path']['data'] . "/config.php")) { $old = 1; } require_once $AbsPath . "/inc/g_mzn2.php"; $m = new MZn2(); require_once $AbsPath . "/inc/g_layout.php"; $l = new Layout(); // Funções
$ver = str_replace(".", "", phpversion()); if ($ver < 420) { ?> <!-- MZn2 - Versão incompatível --><div style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; color:#CC0000; background-color:#FFFFFF; padding:8px; padding-left:10px; margin:5px; margin-top:10px; "><h4 style="margin:0px; ">MZn² - Versão incompatível</h4>O MZn² detectou que o host para o qual que você enviou o sistema está usando uma versão não suportada da tecnologia PHP.<br />O MZn² só funciona em hosts com suporte à PHP 4.2 no mínimo.</div><?php exit; } error_reporting(7); set_magic_quotes_runtime(0); define("WsSys_Token", 1); unset($s); unset($m); unset($p); $AbsPath = dirname(__FILE__); require_once $AbsPath . "/inc/g_global.php"; require_once $AbsPath . "/inc/g_config.php"; $s = new WsSys(); $s->cfg = $c; $s->debug = 1; require_once $AbsPath . "/inc/g_mzn2.php"; $m = new MZn2(); require_once $AbsPath . "/inc/g_layout.php"; $l = new Layout(); if (!@file_exists($s->cfg['file']['mzn2_safe'])) { header("Location: sys_install.php"); exit; } if (!@is_writable($s->cfg['file']['config'])) { $m->error(__FILE__, __LINE__, "Não é possível alterar o arquivo de configurações. É provável que o seu host tenha 'zerado' as permissões dos arquivos.<br /><br />Por favor altere as permissões de todos os arquivos da pasta <b>data</b> para Leitura e Escrita (CHMOD 666).", 1); } $m->globalStart(); if (!$s->usr['unique']) {
$ver = str_replace(".", "", phpversion()); if ($ver < 420) { ?> <!-- MZn2 - Versão incompatível --><div style="font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; color:#CC0000; background-color:#FFFFFF; padding:8px; padding-left:10px; margin:5px; margin-top:10px; "><h4 style="margin:0px; ">MZn² - Versão incompatível</h4>O MZn² detectou que o host para o qual que você enviou o sistema está usando uma versão não suportada da tecnologia PHP.<br />O MZn² só funciona em hosts com suporte à PHP 4.2 no mínimo.</div><?php exit; } error_reporting(7); set_magic_quotes_runtime(0); define("WsSys_Token", 1); unset($s); unset($m); unset($p); $AbsPath = dirname(__FILE__); require_once $AbsPath . "/inc/g_global.php"; require_once $AbsPath . "/inc/g_config.php"; $s = new WsSys(); $s->cfg = $c; $s->debug = 1; if (@file_exists($s->cfg['file']['mzn2_safe'])) { header("Location: index.php"); exit; } if (!@file_exists($s->cfg['path']['data'] . "/config.php")) { header("Location: sys_install.php"); exit; } require_once $AbsPath . "/inc/g_mzn2.php"; $m = new MZn2(); require_once $AbsPath . "/inc/g_layout.php"; $l = new Layout(); // Funções