function ummoay_msg($msg) { $msg = correct_br($msg); $msg = miniconn($msg); $msg = correct_txt($msg, '', 'sconn'); $msg = embed_p($msg); $msg = nl2br($msg); return $msg; }
function msqlxread() { $page = $_GET['page'] ? $_GET['page'] : 1; $npg = 10; require 'plug/microxml.php'; $min = ($page - 1) * $npg; $max = $page * $npg; $i = 0; $site = 'http://philum.net'; //$site=philum();//father_server $r = clkt($site . '/msql/clients/philum_tickets'); unset($r['_menus_']); if ($r) { foreach ($r as $k => $v) { //array('host','hub','msg','day','ip') if ($v[0] == $_SERVER['HTTP_HOST'] && $v[1] == ses('qb')) { $del = lj('txtyl', 'tickets_plug___tickets_tickets*j_' . $k . '_x', 'x'); } else { $del = ''; } $answ = ljb('popbt', 'jumpMenu_text', 'tckansw_' . ($v[5] ? $v[5] : $k), nms(91)); $rb[$k] .= btn('txtsmall2', $v[3]) . ' '; $rb[$k] .= lkc('txtsmall', 'http://' . $v[0] . '/' . $v[1], $v[1]) . ' '; if (!$v[5]) { $rb[$k] .= $answ . ' '; } $rb[$k] .= $del . br(); $msg = $v[2]; if (!function_exists('correct_txt')) { req('tri,pop,spe'); } //$msg=correct_txt($msg,'','sconn'); if ($i >= $min && $i < $max) { $msg = miniconn($msg); } $i++; $rb[$k] .= divc('" style="width:400px;', nl2br(stripslashes($msg))) . br(); if ($v[5]) { $rb[$v[5]] .= div(ats('margin-left:40px;'), $rb[$k]); unset($rb[$k]); } } } if ($rb) { rsort($rb); } return by_pages($rb, $page); }
function chatread($p) { $nm = ses('muse'); $c = 'txtsmall'; $r = chatdata($p); if ($r) { $r = array_reverse_b($r, 50); foreach ($r as $k => $v) { $erz = ''; $msg = $v[2]; if ($nm == $v[1] or auth(6)) { $erz = lj($c, 'cht' . $p . '_chat___chaterz_' . $p . '_' . $k, '(x)'); } $bt = btn('popbt', $v[1]) . ' ' . btn($c . '2', mkday($v[0], 'dhi')) . $erz . br(); if (!function_exists('miniconn')) { req('tri,pop,spe'); } $msg = miniconn($msg); $ret .= divc('track', $bt . $msg); } } return scroll($r, $ret, 7); }
} else { $t = $id > 0 ? nms(21) : nms(34) . ' ' . nms(36) . ' ' . $id; } break; case "tracks": req('pop,spe,art,tri'); $id = convhtml_b(nl2br($id), 1); //ajx() reqp('tracks'); $ret = save_track($id, $va, $opt, $optb); break; case "trkpreview": req('pop,spe,art,tri'); $t = nms(65); $s = 550; $msg = miniconn(del_n($id), 2, 'test'); $ret = divc('track', correct_txt($msg, '', 'sconn')); break; case "trckpop": req('pop,spe,art,tri'); $_SESSION['read'] = $id; $t = 'Tracks'; $ret = divs('width:550px;', output_trk(read_idy($id, "DESC"))); break; case "trkedit": req('pop,spe,art,tri'); if ($va) { $ret = plugin_func('tracks', 'trk_redit_sav', $id, $va); } else { $ret = plugin_func('tracks', 'trk_redit', $id, $va); $t = 'reedit';
function tracks_read($id, $page = '', $n = '') { $USE = $_SESSION['USE']; $qb = $_SESSION['qb']; $read = $_SESSION['read']; $ip = hostname(); $panout['css'] = 'track'; $panout['sty'] = 'margin:8px 0;'; if ($id) { $panout['id'] = $id; list($ib, $name, $mail, $day, $nod, $frm, $suj, $msg, $re, $lu, $img, $thm, $host) = sql('ib,name,mail,day,nod,frm,suj,msg,re,lu,img,thm,host', 'qdi', 'r', 'id=' . $id); } $panout['date'] = mkday($day, 'y/m/d H:i'); //time_ago($day); $panout['edit'] .= lj('', 'popup_track___' . $read . '_[' . $id . ':track]', picto('get')) . ' '; if ($re == "0" && $host == $ip) { $panout['sty'] .= 'opacity:0.5;'; $panout['edit'] .= btn('txtsmall', helps('trackbacks')) . ' '; } if ($_GET['admin']) { $purl = '/?admin=' . $_GET['admin']; } if ($_GET['read']) { $purl = '/?read=' . $_GET['read']; } if ($host == $ip && $_SESSION['dayx'] - $day < 600 or auth(6)) { //redit $panout['edit'] .= lj('', 'popup_trkedit___' . $id, picto('edit')) . ' '; } $sender = rse("id", $_SESSION['qdu'] . ' WHERE name="' . $name . '"'); if ($sender) { $panout['author'] = lj('', 'popup_track___' . $name, $name); } elseif ($mail != 'mail') { $panout['author'] = lj('', 'popup_plupin___mail_' . $mail, $name); } else { $panout['author'] = $name; } if (substr($suj, 0, 4) != "hide" or $_GET['idy_show'] == $id) { $state = "hide"; $f = 'imgb/avatar_' . $name . '.gif'; //avat if (is_file($f)) { $panout['avatar'] .= image($f, 48, 48, ats('vertical-align:bottom;')); } if ($re != "0" or auth(3) or $host == $ip) { //$msg=format_txt($msg,'',''); $msg = correct_br($msg); $msg = miniconn($msg); $msg = correct_txt($msg, '', 'sconn'); $msg = embed_p($msg); $msg = nl2br($msg); } else { $msg = divc('txtalert', helps('trackbacks')); } } else { $state = 'show'; $msg = ''; } if (auth(4) && $frm != $qb) { $j = 'trk' . $id . '_plug___tracks_trk*publish_' . $id; if ($re != 1) { $panout['edit'] .= lj('txtyl', $j . '_on', nms(29)) . ' '; } else { $panout['edit'] .= lj('', $j . '_off', offon(0)) . ' '; } } if ((auth(4) or $USE == $name) && ($re == 0 or auth(6))) { $panout['edit'] .= lj('" title="' . nms(43), 'trk' . $id . '_call___sav_edit*tracks__' . $id . '', picto('trash')) . ' '; } $panout['msg'] = stripslashes($msg); if (substr($n, 0, 2) == "nl") { $http = host() . '/'; } $panout['url'] = $http . htacc('read'); return template($panout, 'tracks'); }
function chatxread($p, $r) { $c = 'txtsmall'; $nm = ses('muse'); $use = ses('USE'); if ($r) { foreach ($r as $k => $v) { $erz = ''; $ml = ''; $msg = $v[2]; if ($use && ($v[1] == $nm or $p == $use)) { $erz = lj($c, 'chtx' . $p . '_plug___chatxml_chatxsav_' . $p . '_' . $k, picto('sclose')); } if (strchr_b($v[3], '/') == $use) { $ml = lj('popbt', 'popup_plug___chatxml_chatxinvitx_' . $p . '_' . ajx($v[3]), '@') . ''; } $bt = lkt('popbt', 'http://' . $v[3], $v[1]) . ' ' . btn($c . '2', mkday($v[0], 'ymd:hi')); $msg = correct_txt(html_entity_decode($msg), '', 'sconn'); $msg = miniconn($msg, strdeb($v[3], '/')); $ret .= divc('track', $ml . $bt . $erz . br() . nl2br(stripslashes($msg))); } } return $ret; }