$nl['principal']['comments']['active'] = $o_cfg['comments']['active']; $nl['principal']['comments']['mzncode'] = $o_cfg['comments']['hcode']; $nl['principal']['comments']['smilies'] = $o_cfg['comments']['smilies']; $nl['principal']['comments']['queue'] = $o_cfg['comments']['queue']; $nl['principal']['comments']['field1'] = $o_cfg['comments']['field1']; $nl['principal']['comments']['field2'] = $o_cfg['comments']['field2']; $nl['principal']['comments']['limit_title'] = "30"; $nl['principal']['comments']['limit_comment'] = "300"; $nl['principal']['comments']['req_mail'] = "1"; $nl['principal']['comments']['req_title'] = "1"; $nl['principal']['templates']['headlines'] = tpl_change($o_cfg['templates']['headlines'], "headlines", $o_cfg['templates']['avatar']); $nl['principal']['templates']['news'] = tpl_change($o_cfg['templates']['news'], "news", $o_cfg['templates']['avatar']); $nl['principal']['templates']['fnews'] = tpl_change($o_cfg['templates']['news'], "news", $o_cfg['templates']['avatar']); $nl['principal']['templates']['fnews_link'] = tpl_change($o_cfg['templates']['full'], "fnews_link"); $nl['principal']['templates']['daygroup'] = "{news}"; $nl['principal']['templates']['comment'] = tpl_change($o_cfg['templates']['comments'], "comment"); $nl['principal']['templates']['date'] = $o_cfg['templates']['date']; $nl['principal']['templates']['print'] = "<div style=\"font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; \">\n\t<b>{news:title}</b>\n\t<hr size=\"1\" noshade color=\"#000000\" />\n\t{news:contents}\n\t<hr size=\"1\" noshade color=\"#000000\" />\n\tPor {user:name} ({user:mail}) em {news:date}<br />\n</div>\n"; $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>"; $s->db_vars_save($s->cfg['file']['categories'], $nl); // Define as configurações $nl = array(); $nl['site']['name'] = $o_cfg['site']['name']; $nl['site']['url'] = $o_cfg['site']['url']; $nl['skin'] = "blackfog"; $nl['queue']['popup'] = $o_cfg['queue']['popup']; $nl['edv'] = "1";
$perm->check(3, 'area_tpl', 0); } switch ($action) { case 'save': // Template bearbeiten $errno = tpl_save($idtpl, $idlay, $tplname, $description, $tpl_overwrite_all); tpl_autoset_starttpl((int) $client, (int) $idtpl); if (!$errno && !isset($_REQUEST['sf_apply'])) { header('HTTP/1.1 302 Moved Temporarily'); header("Location:" . $sess->urlRaw("main.php?area=tpl")); exit; break; } case 'change': // Layout oder Modul wechseln $cconfig = tpl_change($idlay); remove_magic_quotes_gpc($tplname); remove_magic_quotes_gpc($description); $tplname = htmlentities($tplname, ENT_COMPAT, 'UTF-8'); $description = htmlentities($description, ENT_COMPAT, 'UTF-8'); break; } /** * 3. Eventuelle Dateien zur Darstellung includieren */ include 'inc/inc.header.php'; /** * 4. Bildschirmausgabe aufbereiten und ausgeben */ $tpl->loadTemplatefile('tpl_edit.tpl', false); $tpl->setVariable('SKIN', $cfg_cms['skin']);
if (rcms_delete_files(SENDMAIL_PATH . $id)) { $result .= __('File removed') . ': ' . $id . '<br />'; } else { $result .= __('Error occurred') . ': ' . $id . '<br />'; } } } unset($_REQUEST['edit']); } elseif (!empty($_POST['newsave'])) { if (tpl_create($_POST['id'])) { $result .= __('Module created'); } else { $result .= __('Error occurred'); } } elseif (!empty($_REQUEST['edit']) && !empty($_POST['save'])) { if (tpl_change($_REQUEST['edit'], $_POST['id'], $_POST['title'], $_POST['comment'], $_POST['sender_name'], $_POST['sender_email'], $_POST['subject'], $_POST['letter'], $_POST['important'], $_POST['important_text'])) { $result .= __('File updated'); $_REQUEST['edit'] = $_POST['id']; } else { $result .= __('Error occurred'); } } rcms_showAdminMessage($result); // Interface generation if (!empty($_POST['new'])) { $frm = new InputForm('', 'post', __('Submit'), '', '', '', 'add'); $frm->addmessage('<a href=""><<< ' . __('Back') . '</a>'); $frm->addbreak(__('Create sendmail template')); $frm->hidden('newsave', '1'); $frm->addrow('<abbr title="' . __('Use only small Latin letters and digits') . '">' . __('MenuID') . '</abbr>', $frm->text_box('id', '')); $frm->addrow(__('Title'), $frm->text_box('title', __('The letter to admin'), 45));