<?php
/* Ulyxex version 1.6.7.8 ***************/
/* code http://ulyxex.logz.org **********/
/* Andre Lozano http://andre-lozano.org */
if (!isset($admin)) exit("not in admin !");
require_once("core/admin_article_add.php");
require_once("admin_editor.php");
/****************************************/
/* page elements */
$o_art = new ArticleAdd();
$o_art->level(4);
$o_edt = new Editor();
$userInfos = $o_art->user_params($_SESSION['userid']);
$css = $o_edt->editor_head($home['CSS']);
$css .= $h->css("css/".ADMINCSS,"external");
$css .= $h->css($home['CSS'],"external");
$ico = $h->ico("favicon.png");
$meta = "";
$meta .= $h->meta("Content-Type","text/html; charset=UTF-8");
$meta .= $h->meta("viewport","width=device-width, initial-scale=".SCALE,"name");
$title = $h->title($t->wr("add article of").$userInfos['USERNAME']);
$scripts = $h->js("js/ulyxex.js","external");
$head = $h->head($meta.$ico.$css.$scripts.$title);
$topPage = $h->h2($t->wr("add article of").$h->span($userInfos['USERNAME'],$h->v("class","username")));
$topPage .= $h->h2($adminNavigation->links,$h->v("class","navbtns"));
/****************************************/
/* page data */
if (isset($_POST['add'])) {
$data = $o_art->add_article();
} else {
$data = $o_art->add_article_form();
}
/****************************************/
$bottomPage = (isset($_POST['add']))?"":$o_edt->editor_bottom($home['CSS']);
$bottomPage .= $h->ulyxCredits(1,$firstLine=False);
$bottomPage .= $h->countQ();
/****************************************/
/* show */
$body = $h->bodyadmin($topPage.$data.$bottomPage);
$page = $h->html($head.$body,$h->v("lang",$t->getLang(LANG)));
echo $page;
?>
page url