static function slide($r, $p, $rid) { $j = $rid . '_class___toposlides_j_'; $v = $r[$p]; if ($v[0]) { $bt1 = lj('', $j . $v[0] . '_' . $rid . '_inp', pictxt('left', $v[0])) . ' '; } //parent if ($v[2]) { $bt3 = lj('', $j . $v[2] . '_' . $rid . '_inp', pictxt('down', $v[2])) . ' '; } //end foreach ($r as $ka => $va) { if ($va[2] == $p) { $bt2 = lj('', $j . $ka . '_' . $rid . '_inp', pictxt('up', $ka)) . ' '; } //begin if ($va[0] == $p) { $bt4 .= lj('', $j . $ka . '_' . $rid . '_inp', pictxt('right', $ka)) . ' '; } } $bt = divc('', $bt1 . $bt2 . $bt3 . $bt4 . $bt0); //$cell=div(atc('imgl').ats('width:36px'),$bt1.$bt2.$bt3.$bt4); $ret = nl2br(stripslashes_b($v[1])); $cell = div(ats('margin:auto;'), $ret); $ret = $bt . div(atc('book') . ats('display:flex; min-height:300px; width:94%;'), $cell); return $ret; }
function fav_render_cols($r) { req('spe'); if ($r) { foreach ($r as $id => $v) { $ret .= fav_art($id); } } return div(atc('cols') . ats('width:640px;'), $ret); }
function plug_msqadd($p, $o) { $p = $p ? $p : '1'; $bt .= balise('input', atd('type', 'text') . atd('nod') . atv($p) . ats('padding:4px;'), '', 1) . ' '; $bt .= lj('txtbox', 'cbk_plug___msqadd_msqadd*j_' . ajx($p) . '__nod|txt', 'save') . ' '; $bt .= btd('cbk', '') . br(); //callback $bt .= txarea('txt', '', 60, 10, ats('font-size:medium; padding:4px; width:340px; height:300px;')) . br(); $ret = msqadd_read('msqadd_' . $p); return $bt . divd('plugmsqadd', $ret); }
function umtoa_build() { $r = ummo_toa(); $ratio = 10; foreach ($r as $k => $v) { list($aeon, $xee, $txt, $pos, $height, $year) = $v; $date = 'Ere ' . $aeon . ' / Xee ' . $xee . ' (' . $year . ') '; //$top='top:'.($pos/$ratio+40).'px; '; $sty = 'height:' . $height / $ratio . 'px;'; $css = 'hline ' . ($txt == 'Nuit Noire' ? 'aeonblack' : 'aeon' . $aeon); $ret .= div(atc($css) . ats($sty), $date . $txt); } return div(atc('vline') . ats('height:' . (($pos + $height) / $ratio + 40) . 'px;'), $ret); }
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 popup($t, $d, $w = '', $p = '') { if ($w) { $s = 'max-width:' . ($w + 16) . 'px;'; } if ($p == 1) { $p = lj('', 'page_deskbkg', picto('desktop')) . ' '; } if ($p == 2) { $p = ljb('', 'pagrepos()', '', picto('expand')) . ' '; } $popa = popa($t, $p, $s); $_SESSION['popm'] = ''; // onresize="poprepos()" return div(atc('popup') . ats($s) . atb('onmouseup', 'stop_drag(event)'), $popa . div(atd('popu') . atc('popu'), $d)); }
static function slide($r, $p, $rid) { $j = $rid . '_class___slides_j_'; $v = $r[$p]; if ($r[$p - 1]) { $bt1 = lj('', $j . ($p - 1) . '_' . $rid . '_inp', pictxt('left', $p - 1)) . ' '; } if ($r[$p + 1]) { $bt2 = lj('', $j . ($p + 1) . '_' . $rid . '_inp', pictxt('right', $p + 1)) . ' '; } $bt = divc('', $bt1 . $bt2); $ret = nl2br(stripslashes_b($v[0])); $cell = div(ats('margin:auto;'), $ret); $ret = $bt . div(atc('book') . ats('display:flex; min-height:300px; width:94%;'), $cell); return $ret; }
function plug_gallery($q) { if ($q == "gl") { $q = ""; } $img_d = sql('img', 'qda', 'v', 'id="' . $_SESSION['read'] . '"'); $img_d = substr($img_d, 0, 1) == '/' ? substr($img_d, 1) : $img_d; $img_d = str_replace("/", ",", $img_d); if ($q == "auto") { $s = ""; } elseif ($q == "manual") { $s = $q; $imgs = str_replace(",", ",\n", $img_d); } elseif ($q == "dir") { $s = $q; $dirs = br() . plugin('dsnav', 'gl', 'users/' . $_SESSION['qb']); } else { $s = $q; } $ret .= bal("b", "source:") . ' '; if (!$q) { //gallerygl if ($img_d) { $ret .= lj('popbt', 'popup_gallery__x_auto', "auto") . ' '; $ret .= lj('popbt', 'popup_gallery__x_manual', "manual") . ' '; } $ret .= lj('popbt', 'popup_gallery__x_dir', "user/directory"); } else { $ret .= lj("popbt", 'popup_gallery', $q == "dir" ? "user_directory" : $q); } if ($imgs) { $ret .= br() . txarea('dpl', $imgs, 40, 10, atd('source') . atc('popw') . ats('border:1px solid black')); } //pb name=src if ($dirs) { $ret .= $dirs; } if ($q != "dir" && $q) { $ret .= br() . bal("b", "type:") . ' '; $ret .= ljb("popbt", "insert_photo", $s . '\',\'', "Thumbnails") . ' '; $ret .= ljb("popbt", "insert_photo", $s . '\',\'2', "Ajax") . ' '; $ret .= ljb("popbt", "insert_photo", $s . '\',\'1', "Flash") . ' '; $ret .= lj("popbt", 'popup_slider_' . ($s == 'manual' ? 'source' : '') . '_3x_' . $s . '_' . $_SESSION['read'], "Slider") . ' '; } return $ret; }
function clpreview($v) { $r = decompact_conn_b($v); if ($r[0]) { $ret .= divc('txtx', btn('txtblc', 'value') . ' ' . $r[0]); } if ($r[1]) { $ret .= divc('txtx', btn('txtblc', 'option') . ' ' . $r[1]); } $ret .= divc('txtx', btn('txtblc', 'connector') . ' ' . $r[2]); return div(atc('txtbox') . ats('margin:4px;'), $ret); }
function window($d) { return div(atb('contenteditable', 'true') . atc($c) . ats('overflow:auto; height:300px;'), $d); }
function make_ban($p, $t, $o) { $h = is_numeric($o) ? $o : '120'; $im = 'img/' . ($p ? $p : 'ban_' . ses('qb') . '.jpg'); return div(ats('background:url(' . $im . '); center; background-repeat:no-repeat; background-position:center center; background-size:cover; width:100%; height:' . $h . 'px;'), $t); }
function pagup($t, $d, $p = '') { $popa = div(atd('popa') . atc('popa') . ats('margin:auto; display:inline-block;'), ljb('', 'Close', 'popup', picto('close')) . $p . bal('small', $t)); return div(ats(''), $popa . div(atd('popu') . atc('') . ats('margin:auto;'), $d)); }
$pdf->nadpis = $G["nadpis"]; $pdf->garant = $G["garant"]; if ($behy[count($behy) - 1] == "T") { echo "huh"; $G["teamy"] = true; unset($behy[count($behy) - 1]); } if ($argv[1] == "ASKA") { exportaska(); } elseif ($argv[1] == "ATS") { $G["robATS"] = true; foreach ($G["behy"] as $v) { zrobpdf($v[0]); } #statistika(); ats(); $pdf->Output($G["dir"] . "/print/ATS.pdf", "F"); } elseif ($argv[1] == "ALL") { foreach ($G["behy"] as $v) { zrobpdf($v[0]); } #statistika(); $pdf->Output($G["dir"] . "/print/vysledky.pdf", "F"); system("evince \"" . $G["dir"] . "/print/vysledky.pdf\""); } elseif ($argv[1] == "ALLMSR") { $b = array("SOJS", "SOJM", "SOJL", array("SOAS", "T"), array("SOAM", "T"), array("SOAL", "T"), array("NOJS", "T"), array("NOJM", "T"), array("NOJL", "T"), "NOAS", "NOAM", "NOAL", "Družstvá SMALL" => array("SOAS", "NOJS", "T"), "Družstvá MEDIUM" => array("SOAM", "NOJM", "T"), "Družstvá LARGE" => array("SOAL", "NOJL", "T"), "Jednotlivci SMALL" => array("SOJS", "NOAS"), "Jednotlivci MEDIUM" => array("SOJM", "NOAM"), "Jednotlivci LARGE" => array("SOJL", "NOAL")); foreach ($b as $k => $v) { if (is_array($v) && count($v) > 1) { if ($v[count($v) - 1] == "T") { if (count($v) == 2) { zrobpdfteamy($v[0]);
function search_btn($va, $o, $id = '', $d = '') { if ($id) { $di = 'ada'; } else { $id = 'srch'; } $t = $va != 1 ? $va : nms(24); if ($o > 1) { $s = $o; } else { $s = 10; if ($o) { if (strpos($o, ';') === false) { $c = atc($o); } else { $c = ats($o); } } } $j = 'SearchT(\'' . $id . '\')'; $js = 'onClick="' . $j . '" onkeyup="' . $j . '" onContextMenu="' . $j . ''; $ret = autoclic($id . '" ' . $js, $t, $s, '100', ''); if (!$d) { $ret = div('id="' . $di . '"' . $c . '', $ret); } return $ret; }
function plug_chatxml($p, $msg = '', $res = '') { if (!$p) { return chatxcanal('public'); } $p = normalize($p); ses('muse', $res ? ajxg($res) : ses('USE')); chtses($p, '0'); list($r, $r1) = chatxdata($p); $form = chatxform($p); $head = chathead($p, $r1); $sty = atd('chtx' . $p) . ats('width:344px;'); return $head . $form . scroll_b($r, div($sty, chatxread($p, $r)), 5, 344); }
function fi_design($fi, $rb) { $id = randid(); if ($rb[4] != 'conn') { $ret = divc('fimnu imgr', $fi['menu'] . hlpbt('finder')); } $ret .= $fi['url'] . $fi['flap'] . $fi['reg'] . $fi['act']; $ret .= ($ret ? br() . br() : '') . $fi['win']; return div(atd('finder') . ats('width:550px;"'), $ret); }
function plug_txt($d, $tx) { $nd = txt_log(); if ($d) { $ra = msql_read('', $nd . '_txt_' . $d, ''); } $msg = stripslashes($ra[1][1]); $msg = html_entity_decode_b($msg); if ($d && !$ra && $nd) { msql_modif('users', $nd . '_txt_' . $d, array('title', ''), '', 'one', 1); } $ret .= st_paste($d) . ' '; if ($d) { $ret .= input('text', 'tit', stripslashes($ra[1][0])) . ' '; } $ret .= stx_btn($d, $nd, $tx) . br(); if (!$tx) { $ret .= txarea('txtarea', $msg, 44, 4, ats('min-width:640px; min-height:400px; font-size:large; padding:16px;')); } return btd('plgtxt', $ret); }
function batch_preview($f, $sug = '') { req('pop,spe,tri'); $f = http($f); $_GET['urlsrc'] = $f; $w = prma('content'); list($suj, $msg) = vacuum($f); $msg = embed_links($msg); $msg = clean_br_lite($msg); $msg = clean_punct($msg); $msg = format_txt($msg, '', 'test'); $sty = atc('justy') . ats('width:' . $w . 'px;'); if (strlen($msg) > 400) { $sty .= atd('scroll'); } $titl = bal('h2', $suj); $_SESSION['sugm'] = $sug; $rid = randid('btch'); $rel = lj('', 'popup_call__x_ajxf_batch*preview_' . ajx($f) . '_', pictit('reload', nms(101))) . ' '; $rel .= lj('', 'popup_addArt__x_' . ajx($f) . '_1', picto('edit')) . ' '; if (auth(6)) { $titl .= $rel . urledt($f) . ' '; } $titl .= lkt('', $f, picto('url')); if (auth(6)) { $titl .= newartcat($f); } $ret .= bal('section', bal('header', $titl) . balb('article', $sty, $msg)); //$_SESSION['vacuum'][$f]=''; return popup(preplink($f), $ret, $w); }
function popup_stick($d) { return div(atd('popu') . ats('width:320px; background-color:#ffd500; color:#000; padding:4px;'), $d); }
function colonize($re, $prm, $id, $cls, $w = '', $b = '') { $b = $b ? 'div' : 'ul'; $w = $w ? $w : currentwidth() - 10; $ret = onxcols($re, $prm, $w); $wb = atd($id) . atc($cls) . ats('width:100%;'); //-($prm*5) return balb($b, $wb, $ret) . divc("clear", ""); }
function make_table_clr($r, $rb) { if (is_array($r)) { foreach ($r as $k => $v) { $td = ''; if (is_array($v)) { foreach ($v as $ka => $va) { $td .= balb('td', ats(ub_sty($rb[$k][$ka])), $va); } } if ($td) { $tr .= balb('tr', ats($rb[$k][$ka]), $td); } } } return balb('table', '', $tr); }
function f_inp_facilities($defs, $k) { if (!$defs[$k]) { return; } $val = stripslashes($defs[$k][6]); //freecss $nc = name_classe($defs[$k]); $url = '/?admin=css&edit_css=' . $k; $end = divc('clear', ''); $ret .= btn("txtcadr", trim($nc)) . ' ' . btn('txtsmall2', '#' . $k . '') . ' '; $rt['classe'] = facil_css($k, $url, $val) . $end; //css_free $rt['colors'] = facil_colors($defs, $k, $url) . $end; //colors $rt['default'] = facil_reset($k, $nc) . $end; //reset $rt['global'] = facil_globalc($k, $nc) . $end; //global if ($nc == "@font-face ") { $ret .= facil_fonts($defs, $k, $url) . $end; } //fonts $rt['images'] = facil_images($k, $url, $val) . $end; //images $rt['name'] = facil_names($defs, $k); //classname $rt['tools'] = facil_pos($defs, $k) . $end; //pos //$ret.=divc('imgr',facil_pos($defs,$k)); $ret .= make_tabs($rt, 'csf' . $k); return div(atc('clear') . ats('padding:10px; width:550px;'), $ret); }
function columns($re, $o, $id = '', $b = '') { $ret = is_array($re) ? implode('', $re) : $re; if ($o > 10) { $s = 'auto ' . $o . 'px;'; } else { $s = (is_numeric($o) ? $o : 3) . ' auto;'; } $sty = 'columns:' . $s . ' -moz-columns:' . $s; return div(atd($id) . atc('cols' . $b) . ats($sty), $ret); }
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 plug_editor($reset = '') { secure_inputs(); if ($_SESSION["dev"] == "dev" or $_SESSION["dev"] == "lab") { $g = "b"; } req('pop,spe,art,tri'); Head::add('csscode', '.tabc{border:1px dotted grey;padding:10px;min-height:25px;width:550px;}'); Head::add('jscode', ' function SaveIcpb(){//convert var opt=document.getElementById("txtareb").innerHTML; document.getElementById("txt").value=opt; SaveJ("txtarea_convhtml_txtareb_4"); toggle_tab(\'tab-1\',2);} function editab(p){ var act=document.getElementById("edt").className; if(act=="txtx" || p==1){var arr=[true,"on","txtred",""];} else{var arr=[false,"off","txtx","none"];} document.getElementById("txtareb").contentEditable=arr[0]; document.getElementById("txtareb").designMode="arr[1]"; void 0; document.getElementById("txtareb").focus; document.getElementById("edt").className=arr[2]; document.getElementById("edtc").style.display=arr[3];} '); //Head::add('rel',array('shortcut icon',uicon('copy_16','edit2','/'))); $out["head"] .= div(atd('popup') . ats('position:fixed;'), ''); $out["head"] .= hidden('', 'socket', ''); if ($_GET['switch_defcon']) { $_SESSION['rstr'][18] = $_SESSION['rstr'][18] == 0 ? 1 : 0; } $basedefs = $_SESSION['rstr'][18] == 0 ? 'public' : $_SESSION['qb']; if ($reset == 'reset_cache') { $_SESSION['vacuum'] = ''; } #### if ($_GET["urlsrc"]) { $urlsrc = $_GET["urlsrc"]; $_GET["urlsrc"] = $urlsrc = strdeb($urlsrc, '?utm_source'); $urlsrc = str_replace("\$", "?", $urlsrc); foreach ($_GET as $k => $v) { if ($k == "rssurl") { $urlsrc = $v; } elseif ($k != 'urlsrc') { $urlsrc .= '&' . $k . '=' . $v; } } } if ($_POST["urlsrc"]) { $urlsrc = $_POST["urlsrc"]; // && $_POST["txt"]=="" $_POST["urlsrc"] = $urlsrc = strdeb($urlsrc, '?utm_source'); } if ($_POST["suj"]) { $title = $_POST["suj"]; } if (strpos($urlsrc, "http") === false && $urlsrc) { $urlsrc = 'http://' . $urlsrc; } if ($urlsrc && $_POST["txt"] == "") { list($title, $reb, $ret, $defid, $defs) = vacuum($urlsrc, ""); } //echo txarea('',$ret,20,4); #### //see h-number in html(mnu) $tabnam = 'tbmdtab-1'; if ($_POST["urlsrc"] or $_POST["txt"] or $_POST["txb"]) { $_SESSION[$tabnam] = '2'; $npb = $_SESSION['npnb']; } elseif ($_POST["urlsrc"] && !$_POST["txt"]) { $_SESSION[$tabnam] = '1'; } //else $_SESSION[$tabnam]='0';//current_tab if ($_POST["txt"]) { $ret = stripslashes($_POST['txt']); } //html if ($_POST["txb"]) { $reb = stripslashes($_POST['txb']); } //conn if ($_POST["title"]) { $title = stripslashes($_POST['title']); } if ($_POST["convent"]) { $ret = html_entity_decode($ret); } if ($_POST["convutf"]) { $ret = utf8_decode($ret); } if ($_POST["convurl"]) { $ret = urldecode($ret); } if ($_POST["urlencode"]) { $ret = urlencode($ret); } if ($_POST["table2array"]) { $reb = plugin_func('table2array', 'table2array_build', $reb); } if ($ret && !$reb) { //if(!strpos($ret,'<br />') && strpos($ret,"\r"))$ret=nl2br($ret); $reb = converthtml($ret); //htmlentities //htmlspecialchars $reb = html_entity_decode_b($reb); $reb = html_entity_decode($reb); $reb = convertmail($reb); $reb = embed_links($reb); } elseif (!$ret) { $ret = format_txt(stripslashes($reb), 0, ""); } //if(!$ret) $ree = clean_br($ret); #edit //transformers if ($_POST['repla']) { if ($_POST['rec_prg']) { $reb = ereg_replace(stripslashes($_POST['repla']), stripslashes($_POST['replb']), $reb); } else { $reb = str_replace(stripslashes($_POST['repla']), stripslashes($_POST['replb']), $reb); } } if ($_POST['del_tab']) { $reb = del_tables($reb); } //if($_POST['conn_to_del']){$reb=correct_txt($reb,$_POST['conn_to_del'],'correct'); // $reb=str_replace(array("¬","|"),"",$reb); $reb=clean_br($reb);} if ($_POST['del_n'] == "ok") { $reb = del_n($reb); } if ($_POST['clean_mail']) { $reb = convertmail($reb); } if ($_POST["clean_punct"]) { $reb = clean_punct($reb); } if ($_POST["add_punct"] == "ok") { $reb = add_lines($reb); } if ($_POST['clean_br'] or $urlsrc) { $reb = clean_br($reb); } /*----------------------*/ //import if ($_SESSION["dev"]) { $dv = ' ' . btn('txtsmall', $_SESSION["dev"]); } $out['head'] .= lkc("txtx", "/plug/editor", picto('editxt', 16) . $dv) . ' '; //'₪' //defcons if (!$defid) { $defid = str_replace(array('http://', 'www.'), '', $urlsrc); $defid = substr($defid, 0, strpos($defid, '/')); } $defcon .= msqlink('users', $basedefs . '_defcons'); if ($_SESSION['rstr'][18] == 1 && $_SESSION['auth'] > 4) { $defcon .= lkc("txtblc", '?switch_defcon==', "switch") . ' '; $defcon .= lkt("txtblc", '/msql/users/' . $basedefs . '_defcons&append=users/public_defcons', "herit_from_public") . ' '; $defcon .= lkt("txtblc", '/msql/users/public_defcons&append=users/' . $_SESSION["qb"] . '_defcons', "inform_public") . ' '; } else { $defcon .= btn('txtsmall', 'public_defcons') . ' '; } if ($defid) { $defcon .= lj("txtred", 'popup_editmsql___users/' . $basedefs . '*defcons_' . $defid, "edit"); } $otab['html'] .= '<form id="form1" name="coded" method="post" action="/plug/editor">'; $otab['html'] .= ljb('txtbox', 'document.coded.txt.select()', '', '::'); $otab['html'] .= submitj('txtbox', 'codeb', 'convert') . ' '; $otab['html'] .= input2("text", "urlsrc", $urlsrc, '" size="36') . ' '; if ($urlsrc) { $otab['html'] .= lkt('txtx', $urlsrc, 'go') . ' '; } $otab['html'] .= br(); $otab['html'] .= '<textarea name="txt" id="txt" class="console" rows="21" cols="61">' . $ret . '</textarea>' . br(); //htmlentities $otab['html'] .= $defcon . ' '; $otab['html'] .= checkbox("objects", "ok", "objects", 0) . ' '; //$otab['html'].=checkbox("jump","ok","not_convert",0).br(); $otab['html'] .= checkbox("nobr", "ok", "br", 0); $otab['html'] .= checkbox("convent", "ok", "entities", 0) . ' '; $otab['html'] .= checkbox("convutf", "ok", "utf8", 0) . ' '; $otab['html'] .= checkbox("convurl", "ok", "url", 0) . ' '; $otab['html'] .= checkbox("see", "ok", "show_work", 0) . br(); $otab['html'] .= lkt("txtblc", "/plug/converts", "conversions") . ' '; $otab['html'] .= lkt("txtblc", "/plug/pad", "notepad") . ' '; $otab['html'] .= lkt("txtblc", "/plug/ifram", "iframe") . ' '; $otab['html'] .= lkc('txtblc', '/plug/editor/reset_cache', 'reset_cache') . ' '; $otab['html'] .= '</form>'; //notepad if ($_SESSION['USE']) { $otab['connectors'] .= divs('position:absolute; right:0; top:0;', plugin('txt', $npb, 1)); } $otab['connectors'] .= btn('txtit', $title); $otab['connectors'] .= '<form name="converted" method="post" action="">'; $otab['connectors'] .= ljb('txtbox', 'document.converted.txb.select()', '', '::'); $otab['connectors'] .= submitj('txtbox', 'converted', 'modif') . ' '; $otab["connectors"] .= div('', conn_correct($reb)); //local_reparation $otab['connectors'] .= div(ats('width:630px;'), conn_edit("")); $otab['connectors'] .= input(0, 'title', $title, ''); $otab['connectors'] .= '<textarea name="txb" id="txtarea" class="tab" rows="16" cols="68" wrap="VIRTUAL" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" ondblclick="storeCaret(this);" onChange="clip.setText(this.value)">' . $reb . '</textarea><br>'; $otab['connectors'] .= '<div class="txtsmall2">'; $otab['connectors'] .= $defcon . ' '; $otab['connectors'] .= checkbox("clean_mail", "ok", "clean_mail", 0) . ' '; $otab['connectors'] .= checkbox("clean_br", "ok", "clean_br", 0) . ' '; $otab['connectors'] .= checkbox("del_n", "ok", "del_nl", 0) . ' '; $otab['connectors'] .= checkbox("add_punct", "ok", "add_nl", 0) . ' '; $otab['connectors'] .= checkbox("clean_punct", "ok", "typo_rules", 0) . ' '; $otab['connectors'] .= checkbox("del_tab", "ok", "del_tables", 0) . ' '; $otab['connectors'] .= checkbox("table2array", "ok", "table2array", 0) . ' '; //$otab['connectors'].='<label>delete:</label>'.balise("select",array(2=>"conn_to_del",5=>"txtblc"),batch_defil_kv(connectors_reference_lite(),"","vv")).' '; $otab['connectors'] .= '</div>'; $otab['connectors'] .= divc('txtsmall2', 'replace by:') . '' . txarea("repla", $_POST['repla'], 15, 1) . ' ' . txarea("replb", $_POST['replb'], 15, 1) . ' ' . checkbox("rec_prg", "ok", "preg", 0); $otab['connectors'] .= '</form>'; $otab['connectors'] .= lkt("txtblc", "/plug/converts", "converts") . ' '; $otab['connectors'] .= lkt("txtblc", "/plug/pad", "notepad") . ' '; $otab['connectors'] .= lkt("txtblc", "/plug/buildtable", "buildtable") . ' '; //wysiwyg //if($title)$otab["render"].=btn("txtit",$title).br(); $otab['render'] .= btd('bts', ljb('txtbox', 'SaveIcpb()', '', 'convert')) . ' '; $otab['render'] .= ljb('txtx" id="edt', 'editab(0)', '', 'editable') . ' '; $otab['render'] .= txareacb($ree, 'tabc panel justy'); $otab['render'] .= btd('bts', ljb('txtbox', 'SaveIcpb()', '', 'convert')) . ' '; $otab['render'] .= ljb('txtx" id="edt', 'editab(0)', '', 'editable') . ' '; $otab['render'] .= divd('popup', '') . "\n"; $otab['render'] .= divd('popw', '') . "\n"; $otab['render'] .= hidden('', 'socket', ''); $out["end"] .= '</body>' . "\n" . '</html>'; return implode("", $out) . make_tabs($otab); }