$GET[$k] = $v; } if ($uid) { $_uid = hasPermissions('articles') ? null : $uid; $articles_unpub = hasPermissions('articles') ? articles::ArticlesCount(false, $_uid) : null; } $query = array(); if ($ord != 'date') { $query['ord'] = $ord; } if ($year) { $query['yr'] = $year; } $tab = $_page; $task = __paramInit('string', 'task', 'task'); $pop_tags = articles::getPopularTags(); $page_title = 'Статьи - фриланс, удаленная работа на FL.ru'; $page_descr = 'Статьи - фриланс, удаленная работа на FL.ru'; if (get_uid()) { $is_approved = articles::isApprovedArticles(get_uid()); } //var_dump($task, $_page); die(); switch ($task) { /* Добавление статьи */ case 'add-article': if (!$uid) { exit; } $_POST['title'] = iconv('UTF-8', 'CP1251', $_POST['title']); $_POST['short'] = iconv('UTF-8', 'CP1251', $_POST['short']); $title = __paramInit('htmltext', null, 'title', null, articles::ARTICLE_MAX_TITLELENGTH);