function ummoay_build($p, $o) { req('art,tri,pop,spe'); reqp('msqarts'); $tmp = ummoay_template(); $r = req_arts_y($p); $rtg = list_tags(); if ($r) { foreach ($r as $k => $v) { list($id, $day, $msg, $cat, $tag, $lk) = $v; $day = clean_day_tw($day); $msg = format_txt($msg, '', ''); $lnk = lka(urlread($id)); $pop = lj('', 'popup_trckpop___' . $id, picto('forum', 16)); $rb[$day] = array('suj' => $cat, 'day' => mkday($day, 'Y/m/d'), 'msg' => $msg, 'url' => $lk, 'open' => popart($id, 'articles') . ' ' . $pop, 'tag' => $rc = $rtg[$id]); } } krsort($rb); foreach ($rb as $k => $v) { $rd[nms(100)] .= template_build($tmp, $v); $rc = $v['tag']; if ($rc) { foreach ($rc as $kb => $vb) { $rd[$kb] .= template_build($tmp, $v); } } } return make_tabs($rd); }
function pane_base($url, $suj, $frm, $day, $img, $msg, $alx) { static $id; $id++; //$msg=ereg_replace('width='."^[_a-zA-Z0-9.]+$","",$msg);//([[:digit:]]*) $ara = array("<![CDATA[", "]]>"); $suj = str_replace($ara, " ", $suj); $url = str_replace($ara, " ", $url); $msg = str_replace($ara, " ", $msg); if ($img != "") { $gmi = '<img src="' . $img . '" class="imgl" border="0" height="72">'; } $id_art = recognize_article($url, clean_title($suj), $alx); //already_exists if ($id_art) { $opt .= popart($id_art); } elseif ($_SESSION["USE"] == $_SESSION["qb"] or $_SESSION["auth"] > 3) { $purl = ajx($url, ''); $opt .= ljb('txtx', 'SaveJ', 'popup_addArt___' . $purl . '_1', "save") . ' '; //$opt.=ljb('txtbox','SaveIf',$purl,'save').' '; $opt .= btd('btc' . $id, lj('txtx', 'btc' . $id . '_batch__xd_' . $purl . '_p', '+')) . ' '; $opt .= ljb('txtx', 'Close', 'art' . $id, 'x'); } $panout = array('sty' => 'tab', 'id' => $id, 'suj' => $suj, 'date' => $day, 'tag' => " ", 'opt' => $opt, 'thumb' => $gmi, 'msg' => $msg, 'url' => $url); $ret = template_build(template_rss(), $panout); return divd('article', $ret); }
function template($p, $tpl) { if (!$tpl) { $tpl = @$_SESSION['opts']['template']; } //article if (!$tpl) { $tpl = $_SESSION['prma']['template']; } //module if ($tpl) { $tmp = msql_read('users', $_SESSION['qb'] . '_template', $tpl); if (!$tmp) { $tmp = msql_read('', 'public_template', $tpl); } } if ($tpl == "pubart") { $tmp = rstr(55) && $tmp ? $tmp : template_pubart(); } elseif ($tpl == "titles") { $tmp = rstr(65) && $tmp ? $tmp : template_titles(); } elseif ($tpl == "tracks") { $tmp = rstr(66) && $tmp ? $tmp : template_tracks(); } elseif ($tpl == "book") { $tmp = rstr(67) && $tmp ? $tmp : template_book(); } elseif ($tpl == "products") { $tmp = $tmp ? $tmp : template_product(); } elseif ($tpl == "fastart") { $tmp = $tmp ? $tmp : template_fastart(); } elseif ($tpl == "weblink") { $tmp = $tmp ? $tmp : template_weblink(); } elseif ($tpl == "read" && rstr(88)) { $tmp = $tmp ? $tmp : template_read(); } //if($_SESSION['read'])$tmp=template_read(); if (!$tmp) { $tmp = template_art(); } return template_build($tmp, $p); }
function template($p, $tpl) { if (!$tpl) { $tpl = @$_SESSION['opts']['template']; } //article if (!$tpl) { $tpl = $_SESSION['prma']['template']; } //module if (!$tpl) { $tmp = template_art(); } if ($tpl == "pubart") { $tmp = rstr(55) ? template_u($tpl) : template_pubart(); } elseif ($tpl == "pubart_j") { $tmp = rstr(55) ? template_u($tpl) : template_pubart_j(); } elseif ($tpl == "pubart_b") { $tmp = rstr(55) ? template_u($tpl) : template_pubart_b(); } elseif ($tpl == "titles") { $tmp = rstr(65) ? template_u($tpl) : template_titles(); } elseif ($tpl == "tracks") { $tmp = rstr(66) ? template_u($tpl) : template_tracks(); } elseif ($tpl == "book") { $tmp = rstr(67) ? template_u($tpl) : template_book(); } elseif ($tpl == "products") { $tmp = template_product(); } elseif ($tpl == "fastart") { $tmp = template_fastart(); } elseif ($tpl == "weblink") { $tmp = template_weblink(); } elseif ($tpl == "panart") { $tmp = template_panart(); } elseif ($tpl == "read" && rstr(88)) { $tmp = template_u($tpl); if (!$tmp) { $tmp = template_read(); } } if (!$tmp) { $tmp = template_art(); } return template_build($tmp, $p); }