$nl['principal']['templates']['link'] = "<a href=\"{link:href}\" target=\"{link:target}\">{link:text}</a><br />"; $nl['principal']['templates']['mailnews'] = "<html>\n\t<head>\n<style type=\"text/css\">\n<!--\na {color:#000080; text-decoration:none; }\na:hover {color:#0000FF; text-decoration:none; }\n\nbody {color:#000000; background-color:#FFFFFF; }\nbody, table {font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; }\n-->\n</style>\n\t</head>\n\t<body>\n\t\t\n\t\t<span style=\"font-size:14pt; \">Olá <b>{mail:to_name}</b>!</span><br />\n\t\t<br />\n\t\tSeu amigo(a) <a href=\"mailto:{mail:from_mail}\">{mail:from_name}</a> pensou que v"; $nl['principal']['templates']['mailnews'] .= "ocê estivesse interessado em ler a seguinte notícia:<br />\n\t\t<br />\n\t\t<br />\n\t\t<div align=\"center\"><div style=\"font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:8pt; width:450px; \">\n\t\t\t<div style=\"text-align:left; margin-bottom:2px; padding:2px; padding-left:4px; color:#FFFFFF; background-color:#808080; \"><b>Notícia de {date:%l}, {date:%j} de {date:%F} de {date:%Y}</b></div>\n\t\t</div></div>\n\t\t<div align=\"center\"><div style=\"font-family:Tahoma, Verdana, Arial, Helvetica, s"; $nl['principal']['templates']['mailnews'] .= "ans-serif; font-size:10pt; width:450px; \">\n\t\t\t<div style=\"text-align:left; padding:2px; padding-left:4px; background-color:#EEEEEE; border:1px solid #808080; \" title=\"{news:title:nocut}\"><b>{news:title}</b></div>\n\t\t\t<div style=\"text-align:left; padding:4px; border-left:1px solid #808080; border-right:1px solid #808080; \">{news:contents}</div>\n\t\t\t<div style=\"text-align:left; padding:2px 4px 2px 4px; font-size:7pt; border:1px solid #808080; border-top:0px; \">Por <a href=\"mailto:{user:mail}\">{us"; $nl['principal']['templates']['mailnews'] .= "er:name}</a> às {date:%G}h{date:%i}</div>\n\t\t</div></div>\n\t\t<br />\n\t\t<br />\n\t\tA resposta deste e-mail será enviada para o seu amigo(a).<br />\n\t\t<br />\n\t\t<br />\n\t\t<a href=\"http://www.mznews.kit.net\">Este e-mail foi gerado pelo MZn²</a><br />\n\t\t\n\t\t\n\t</body>\n</html>"; if ($s->req['c']['tpl'] == 2) { $nl['principal']['templates']['news'] = "<a name=\"Noticia_{news:id}\"></a>\n<div align=\"center\"><div style=\"font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; width:450px; \">\n\t<div style=\"text-align:left; padding:2px; padding-left:4px; background-color:#EEEEEE; border:1px solid #808080; \" title=\"{news:title:nocut}\"><b>{news:title}</b></div>\n\t<div style=\"text-align:left; padding:4px; border-left:1px solid #808080; border-right:1px solid #808080; \">{news:contents}</div>\n\t<div style=\"text-align:left; padding:2px "; $nl['principal']['templates']['news'] .= "4px 2px 4px; font-size:7pt; border:1px solid #808080; border-top:0px; \"><div style=\"float:right; \"><a href=\"#\" onclick=\"window.open('{system:mzn2dir}/classic/print.php?id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \">Imprimir</a> · <a href=\"#\" onclick=\"window.open('{system:mzn2dir}/classic/sendmail.php?id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \">Enviar por e-mail</a> · <a hr"; $nl['principal']['templates']['news'] .= "ef=\"#\" title=\"{news:title:nocut}\" onclick=\"window.open('{system:mzn2dir}/classic/comments.php?id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \"><b>Comentários:</b> [{news:comments}]</a></div>Por <a href=\"mailto:{user:mail}\">{user:name}</a> em {news:date}</div>\n</div></div>\n<br />\n"; $nl['principal']['templates']['fnews'] = "<a name=\"Noticia_{news:id}\"></a>\n<div align=\"center\"><div style=\"font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; width:450px; \">\n\t<div style=\"text-align:left; padding:2px; padding-left:4px; background-color:#EEEEEE; border:1px solid #808080; \" title=\"{news:title:nocut}\"><b>{news:title}</b></div>\n\t<div style=\"text-align:left; padding:4px; border-left:1px solid #808080; border-right:1px solid #808080; \">{news:full}</div>\n\t<div style=\"text-align:left; padding:2px 4px "; $nl['principal']['templates']['fnews'] .= "2px 4px; font-size:7pt; border:1px solid #808080; border-top:0px; \"><div style=\"float:right; \"><a href=\"#\" onclick=\"window.open('{system:mzn2dir}/classic/print.php?id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \">Imprimir</a> · <a href=\"#\" onclick=\"window.open('{system:mzn2dir}/classic/sendmail.php?id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \">Enviar por e-mail</a> · <a href=\""; $nl['principal']['templates']['fnews'] .= "#\" title=\"{news:title:nocut}\" onclick=\"window.open('{system:mzn2dir}/classic/comments.php?id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \"><b>Comentários:</b> [{news:comments}]</a></div>Por <a href=\"mailto:{user:mail}\">{user:name}</a> em {news:date}</div>\n</div></div>\n<br />\n"; $nl['principal']['templates']['fnews_link'] = "<div> </div><div><a href=\"#\" onclick=\"window.open('{system:mzn2dir}/classic/view.php?type=fnews&id={news:id}', '_blank', 'width=491,height=380,resizable=1,scrollbars=1'); return false; \">» Ler notícia completa</a></div>"; $nl['principal']['templates']['daygroup'] = "{news}"; } $s->db_vars_save($s->cfg['file']['categories'], $nl); // Define as configurações $nl = array(); $nl['site']['name'] = $s->req['c']['site']['name']; $nl['site']['url'] = $s->req['c']['site']['url']; $nl['skin'] = "blackfog"; $nl['queue']['popup'] = "1"; $nl['edv'] = "1"; $nl['lostpwd'] = "1"; $nl['time']['adjust'] = "0"; $nl['edit']['perpage'] = "30"; $nl['upload']['maxsize'] = "40960"; $nl['upload']['extensions'] = "gif,jpg,jpeg,png,htm,html,txt,ini"; $nl['cfield']['field1'] = "MSN"; $nl['cfield']['field2'] = ""; $nl['cfield']['field3'] = "";