function admin_art_edit($id) { $msg = sql('msg', 'qdm', 'v', 'id=' . $id); $ath = data_val('msg', $id, 'authlevel'); if ($ath > $_SESSION['auth']) { return popup('article ' . $id, nms(55)); } //$msg=str_replace('['.ses('qb').'/','['.host().'/users/'.ses('qb').'/',$msg); //$msg=str_replace('['.ses('qb'),'['.host().'/img/'.ses('qb'),$msg); $j = 'popup_editbrut_edit' . $id . '_x_' . $id; if (auth(5)) { $ret = btn('', btd('bts', lj('popsav', $j, 'save'))) . ' '; } $ret .= lj('txtbox', 'pop_editbrut___' . $id, 'connectors') . ' '; $ret .= lj('txtbox', 'edit' . $id . '_delconn__4_' . $id, 'text') . ' '; $ret .= lj('txtbox', 'edit' . $id . '_conn2__4_' . $id, 'html') . ' '; $ret .= hlpbt('conn_pub') . br(); $ret .= txarea('edit' . $id, $msg, 64, 20, 'console'); return popup('article ' . $id, $ret); }
function table2array_menu($p, $o, $rid) { //$ret.=input(1,'inp',$p,'').' '; $ret .= lj('', $rid . '_plug__2_table2array_table2array*j___inp', picto('reload')) . br(); $ret .= txarea('inp', $p, 64, 24); return $ret; }
function cnvs_edit($d, $id) { $d = str_replace(' ', "\n", $d); //$d=utf8_decode($d); $ret .= lj('popbt', 'graph' . $id . '_plug___canvas_cnvs*iframe_' . $id . '__graphjs', 'see') . br(); $ret .= txarea('" id="graphjs', $d, 50, 16); return $ret; }
function html_menu($p, $o, $rid) { $j = $rid . '_plug__2_html_html*j___inp'; $sj = 'SaveJ(\'' . $j . '\')'; $ret = divc('" onkeyup="' . $sj . '" onclick="' . $sj, txarea('inp', $p, 60, 10, atc('console'))) . ' '; //$ret.=lj('',$j,picto('reload')); return $ret; }
function connectors_menu($p, $o, $rid) { $j = $rid . '_plug__2_connectors_connectors*j___inpconn1'; $js = 'onkeyup="' . sj($j) . '" onclick="' . sj($j) . '"'; $ret = txarea('inpconn1', $p, 54, 8, '' . $js) . ' '; //$ret.=lj('',$j,picto('reload')).' '; return $ret; }
function plug_imtx($p, $o) { $rid = 'plg' . randid(); ses('out', '/plug/_data/imtx.png'); $j = $rid . '_plug__2_imtx_imt*j_' . $w . '_' . $h . '_txtarec'; $sj = 'SaveJ(\'' . $j . '\')'; $ret .= txarea('txtarec', $p, 44, 14, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj)); $ret .= lj('', $j, picto('reload')) . ' '; return $ret . divd($rid, image(root() . ses('out'))); }
function comp_menu($p, $o, $rid) { $ret .= lj('txtx', $rid . '_plug__2_comparetxt_comptxt*j_sentences__inp1', 'sentences') . ' '; $ret .= lj('txtx', $rid . '_plug__2_comparetxt_comptxt*j_lines__inp1', 'lines') . ' '; $ret .= lj('txtx', $rid . '_plug__2_comparetxt_comptxt*j_words__inp1', 'words') . br(); $ex1 = "version.\nversion\nversion v f d"; $ex2 = "version.\nversion\nversion v f b"; $ret .= txarea('inp1', $ex1, 54, 8) . ' '; $ret .= txarea('inp2', $ex2, 54, 8) . ' '; return $ret; }
function plug_ifrm($d, $o = '') { $rid = randid(); if ($o) { echo ifrgz('users/public/ifrm/'); } $ret = txarea('ifru' . $rid, '', 60, 10); $ret .= lj('txtbox', $rid . '_plug___ifrm_ifrget___ifru' . $rid, "►") . br(); $ret .= divd($rid, ''); return $ret; }
function plug_deploy($deploy) { $qb = $_SESSION['qb']; $USE = $_SESSION['USE']; $raed = suj_of_id($deploy); $nl = $_GET['nl'] ? $_GET['nl'] : "nl"; if ($deploy && $USE) { //prep list($qauth, $subj) = sql('name,suj', 'qda', 'r', 'id="' . $deploy . '"'); $msg = sql('msg', 'qdm', 'v', 'id="' . $deploy . '"'); if ($USE == $qauth or auth(5)) { $http = host(); if (!$_POST['dpl']) { reqp('mail'); $qmail = mail_list_tosend(); $ret .= form("/?read={$deploy}&deploy={$deploy}&nl=nlb", txarea('dpl" maxlength="1000', $qmail, 40, 10) . br() . checkbox("dpf", "ok", "html", 1) . checkbox("multiple", "ok", "each_one", 1) . input2('submit', "send", nms(50), 'popbt')); } else { $htacc = urlread($deploy); $_SESSION['nl'] = $nl; //deploy if ($_POST['dpf'] == "ok") { $mail_format = "html"; $txt = format_txt($msg, $nl, $deploy); $txt = html_entity_decode($txt); $txt = str_replace('href="/', 'href="' . $http . '/', $txt); $msg = lkc("", $http . $htacc, bal("h2", $subj)); $msg .= divc("panel justy", $txt); } else { $mail_format = "txt"; $msg = clean_internaltag($msg); $msg = html_entity_decode($msg); } $_SESSION['nl'] = ""; //send $sender = sql('mail', 'qdu', 'v', 'name="' . $USE . '"'); $lstm = str_replace("\n", ",", $_POST['dpl']); $lstm = str_replace("\r", ",", $lstm); $listmail = explode(",", trim($lstm)); if ($_POST['multiple'] == "ok" && is_array($listmail)) { $sentto = send_mail_r($listmail, $mail_format, $qb . ' :: ' . $raed, $msg, $sender, $htacc); } else { $sentto = $_POST['dpl']; $vm = str_replace(array(",", ";", "\n", " "), ",", $sentto); send_mail($mail_format, $vm, $qb . ' :: ' . $raed, $msg, $sender, $htacc); } $ret .= lkc("popbt", '/?read=' . $deploy, 'article ' . $deploy . ' sent to: ' . $sentto); } } else { $ret .= btn("popdel", "forbidden"); } } //if($_POST['dpl'])return $ret; return $ret; }
function plug_social($p, $o) { $rid = 'plg' . randid(); $j = $rid . '_plug__2_social_social*j___txtareb'; $sj = 'SaveJ(\'' . $j . '\')'; $ret .= input(1, 'search', $p, '') . ' '; $ret .= txarea('txtareb', $p, 61, 18, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj)); $ret .= lj('', $j, picto('reload')) . ' '; //$ret.=msqlink('clients',ses('qb').'_social').' '; return $ret . divd($rid, social_j($p, $o)); }
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 plug_msqads($p, $o) { $rid = 'plg' . randid(); $p = $p ? $p : 'msqads'; reqp('msql'); $msq = new msql('', $p); //table $rb = array('day', 'quest', 'resp'); $msq->create($rb); $ret .= input(1, $rb[0], $rb[0], '', 1) . br() . txarea($rb[1], '', 40, 4) . txarea($rb[2], '', 40, 4); $ret .= lj('txtbox', $rid . '_plug___msqads_msqads*j_' . $p . '__' . implode('|', $rb), 'save') . ' '; $ret .= msqlink('users', ses('qb') . '_' . $p); $msq->read('i'); return $ret . divd($rid, make_table($msq->ret, 'txtblc', 'txtx')); }
function plug_ftext($d, $tx) { $nd = stext_log(); $ra = msql_read('', $nd . '_txt_ftxt', '1'); $msg = stripslashes($ra[1]); $msg = html_entity_decode_b($msg); if (!$ra && $nd) { msql_modif('users', $nd . '_txt_ftxt', array('day', 'text'), '', 'one', 1); } $ret .= btd('bts', lj('', 'bck_plug__xd_ftext_ftext*j_ftxt__ftxt', picto(save))) . ' '; $ret .= btd('bck', '') . hlpbt('ftext') . br(); if (!$tx) { $ret .= txarea('ftxt', $msg, 54, 12); } return btd('plgtxt', $ret); }
function plug_model($p, $o) { $rid = 'plg' . randid(); $p = $p ? $p : 'model'; reqp('msql'); $msq = new msql('', $p); //table $rb = array('title', 'text'); $msq->create($rb); //cols $ret .= input(1, $rb[0], '', '', 20); $ret .= lj('txtbox', $rid . '_plug___model_model*j_' . $p . '__' . implode('|', $rb), 'save') . br(); $ret .= txarea($rb[1], '', 40, 4); $ret .= msqlink('users', ses('qb') . '_' . $p); $msq->read('i'); return $ret . divd($rid, make_table($msq->ret, 'txtblc', 'txtx')); }
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 plug_htaccess($d) { $here = 'htaccess'; $default = msql_read('system', 'default_htaccess', 1); $actual = read_file('.' . $here); if (!$actual or $d) { $actual = $default; $ret .= btn('txtyl', 'default_loaded') . br(); } $ret .= picto('alert�24') . ' ' . btn('txtcadr', 'critical_operations') . ' '; $ret .= lj('txtbox', 'txt_plug__4_' . $here . '_' . $here . '*default', 'default') . ' '; $ret .= lj('txtbox', 'cbk_plug__xd_' . $here . '_' . $here . '*mkdefault___txt', 'backup') . ' '; $ret .= msqlink('system', 'default_htaccess') . ' '; $ret .= lkc('txtx', '.htaccess', 'link') . ' '; $ret .= hlpbt('htaccess') . ' ' . btd('cbk', '') . ' '; $ret .= btd('bts', lj('txtbox', 'cbk_plug__xd_' . $here . '_' . $here . '*j___txt', 'save')) . br() . br(); $ret .= txarea('txt', $actual, 120, 26) . br(); $ret .= lkt('txtblc', 'http://htaccess.madewithlove.be/', 'tests'); return $ret; }
function plug_stext($d, $tx) { $nd = stext_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, 64, 20); } return btd('plgtxt', $ret); }
function slider_edit($nod, $n) { //name,mini,img,width,height,mini_w,mini_h,text,size,color,align,position,alpha $r = msql_read('gallery', $nod, $n); $get = $n . 'nam|' . $n . 'txt'; $sets = slider_params(); $sty = ' style="border:1px solid grey;"'; $sets['size'][] = $r['size']; $sets['color'][] = $r['color']; $sets['alpha'][] = $r['alpha']; foreach ($sets as $k => $v) { $entry = $r[$k]; $get .= '|' . $n . $k; //echo $r[$k]; //$rb=batch_defil_kv($sets[$k],$entry,"vv"); //$set.=balise("select",array(3=>$n.$k,"selected"=>$entry),$rb).' '.$k.br(); $set .= select(array('id' => $n . $k), $sets[$k], 'vv', $entry) . ' ' . $k . br(); } $ret = input2('text', '"' . $sty . ' size="17" id="' . $n . 'nam', $r['name'], '') . ' name' . br(); $ret .= txarea('"' . $sty . ' id="' . $n . 'txt', $r['text'], 20, 3) . ' text' . br(); $ret .= $set . br(); $nodb = str_replace('_', '*', $nod); $rj = array('edit' . $n, 'plug', '', '', 'slider', 'slider*sav', $nodb, $n, $get); $ret .= call_func('popbt', $rj, 'Save') . ' '; $rj[7] = 'mdf-' . $n; $ret .= call_func('popbt', $rj, 'Apply to All') . ' '; $rj[7] = 'del-' . $n; $ret .= call_func('popbt', $rj, 'Delete') . ' '; $ret .= lj('popbt', 'edit' . $n . '_msqlcall___gallery_' . $nodb . '_' . $n . '_text', 'X'); return $ret; }
function spp_add($rid) { $ret .= txarea('p1', '', 40, 1); $ret .= ljb('txtbox', 'SaveJb', 'add_plug__xd_superpoll_spp*sav_' . $rid . '__p1\',\'res_plug___superpoll_spp*table', 'save') . ' '; $ret .= ljb('txtyl', 'SaveJ', 'add_plug', 'x') . br() . br(); //icon('close') return $ret; }
function fav_com_form($p, $o) { return txarea('comv', $p, 44, 4, atb('placeholder', 'Api Command') . atz('44')) . br() . inp('comn', $o, atb('placeholder', 'name')); }
function conv_menu($p, $o, $rid) { $r = array("utf8", "htmlentities", "url", "unescape", "base64", "ascii", "binary", "bin/dec", "timestamp"); foreach ($r as $v) { $ret .= $v . ':'; $ret .= lj('txtx', $rid . '_plug__2_converts_conv*j_' . $v . '_1_inp1', 'encode') . ' '; $ret .= lj('txtblc', $rid . '_plug__2_converts_conv*j_' . $v . '__inp1', 'decode') . ' '; } $r = array("php"); foreach ($r as $v) { $ret .= lj('txtx', $rid . '_plug__2_converts_conv*j_' . $v . '_1_inp1', $v) . ' '; } $ret .= br() . txarea('inp1', $p, 81, 8, atc('console')); return $ret; }
function book_ifr($d) { //frameborder="0" $d = '<iframe src="' . host() . '/plug/book/' . $d . '"></iframe>'; return txarea('', htmlentities($d), 44, 4); }
function msql_adm($msql = '') { //echo br(); $root = sesm('root', 'msql/'); $auth = $_SESSION['auth']; $ath = 6; //auth_level_mini $wsz = define_s('wsz', 700); $msql = $msql ? $msql : $_GET['msql']; $_SESSION['page'] = $_GET['page'] ? $_GET['page'] : 1; #boot if ($msql && $msql != '=') { $url = sesm('url', '/msql/'); $ra = msql_boot($msql); $_SESSION['msql_boot'] = $ra; list($bases, $base, $dirs, $dir, $prefixes, $prefix, $files, $table, $version, $folder, $node) = $ra; //build url $murl = sesm('murl', murl($base, $dir, $prefix, $table, $version)); //b/d/p_t_v $basename = $root . $folder . $node; $is_file = is_file($basename . '.php'); $lk = sesm('lk', $url . $folder . $node . gpage()); $folder = $root . $folder; //conformity msql_adm_head($lk, $base, $prefix, $table, $version); } $def = ajx($_POST['def'] ? $_POST['def'] : $_GET['def'], 1); if ($_GET['see']) { $ret[] = verbose($ra, 'dirs'); } //auth if ($base == 'users' && $prefix == $_SESSION['USE']) { $_SESSION['ex_atz'] = 1; } if ($auth >= $ath && $_SESSION['ex_atz'] or $auth >= 6) { $authorized = true; } $lkb = $lk . '&'; #load //reqp('msql'); $msq=new msql($base,$node); if($is_file)$defs=$msq->load(); if (get('repair')) { msql_repair($folder, $node); } //old if ($is_file) { $defs = read_vars($folder, $node, $defsb); } //if(!$defs)$ret[]=verbose($ra,''); if ($defs['_menus_']) { $defsb['_menus_'] = $defs['_menus_']; } //save if ($def && !$defs[$def]) { $_POST['add'] = $def; } if (($_POST['def'] or $_POST['add']) && $authorized) { list($defs, $def) = save_defs($folder, $node, $defs, $def, $base); } //savb if ($_GET['sav']) { save_vars($folder, $node . '_sav', $defs, 1); } //create if ($_GET['create'] && $authorized) { $prefix = normaliz_c($_POST['prfx']); $table = normaliz_c($_POST['hbname']); if ($_POST['hbnb'] && $_POST['hbnb'] != 'version') { $version = $_POST['hbnb']; } if (!$_POST['hbnb']) { $version = ''; } if (is_numeric($_POST['nbc'])) { $defsb['_menus_'] = ''; $nbc = $_POST['nbc']; $nbc = $nbc > 1 ? $nbc : 1; for ($i = 1; $i <= $nbc; $i++) { $defsb['_menus_'][] = 'col_' . $i; } } elseif ($defs['_menus_']) { $defsb['_menus_'] = $defs['_menus_']; } else { $defsb['_menus_'] = array(''); } $node = mnod($prefix, $table, $version); if ($folder && $prefix) { read_vars($folder, $node, $defsb); } relod(sesm('url') . murl_build('', '', $prefix, $table, $version)); } #modifs //save_modif $do = find_command(); if ($do && $auth >= $ath) { $defs = msql_modifs($defs, $defsb, $folder, $prefix . '_' . $table, $node, $basename, $do); } #render $lh = sesmk('msqlang'); #-menus if (!$_GET['def']) { $ret['menus'] = msql_menus($ra); } //auth(3) && if (!$_GET['def']) { //called #-files //add if (auth(4)) { $ret['fls'] = lkc('txtblc', $lkb . 'new==', pictxt('add', $lh[9][0])) . ' '; } if ($table && $authorized && $prefix && $is_file) { //$defs && $ret['fls'] .= lkc('txtx', $lkb . 'sav==', $lh[2][0]) . ' '; if (is_file($basename . '_sav.php')) { $ret['fls'] .= lkc('txtx', $lkb . 'restore==', $lh[3][0]) . ' '; } $ret['fls'] .= lj_goto('import_defs', 5); //$ret['fls'].=lj_goto('import_old',''); $ret['fls'] .= lj_goto('import_keys', 17); $ret['fls'] .= lj_goto('merge_defs', 6); $ret['fls'] .= lj_goto('append_update', 7); $ret['fls'] .= lj_goto('append_values', 8); } else { $ret['fls'] .= $bckp; } if ($files[$prefix] && ($auth > $ath or $prefix == $_SESSION['USE'])) { if ($auth >= $ath && $table && $prefix && $is_file) { $ret['fls'] .= lkc('txtx', $lkb . 'del_table==', $lh[10][0]) . ' '; $ret['fls'] .= ljb('txtblc', 'delfile', $lkb . 'del_file==', $lh[11][0]) . ' '; //$ret['fls'].=lkc('txtyl',$lkb.'del_file==',$lh[11][0]).' '; if (!$defs or isset($defs[0])) { $ret['fls'] .= lkc('txtyl', $lkb . 'repair==', $lh[12][0]) . ' '; } } } if ($ret['fls']) { $ret['fls'] .= br(); } //$ret['fls']=divc('menu',$ret['fls']); //new if ($_GET['new']) { $ret['fls'] .= newbase($base, $prefix, $table, $version); } #-util if ($table && $authorized && $prefix && $is_file) { $ret['utl'] .= lkc('txtblc', $lkb . 'def=_menus_', $lh[1][0]) . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'reset_menus==', $lh[22][0]) . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'del_menus==', $lh[23][0]) . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'add_keys==', $lh[24][0]) . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'del_keys==', $lh[25][0]) . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'def=_menus_&add_col==', $lh[14][0]) . ' '; $ret['utl'] .= lj_goto('del_col', 15); if ($is_file) { $ret['utl'] .= lkc('txtx" title="' . $lh[13][1], $lkb . 'repair_cols==', $lh[13][0]) . br(); } if ($base != 'system' && is_file(sesm('root') . 'system/' . $node . '.php')) { $ret['utl'] .= lkc('txtblc', $lkb . 'update==', $lh[26][0]) . ' '; } $ret['utl'] .= lj_goto('sort_table', 19); if ($table != 'restrictions' && $table != 'params') { $ret['utl'] .= lkc('txtx', $lkb . 'reorder==', $lh[20][0]) . ' '; } $ret['utl'] .= lj_goto('permut', 21); $ret['utl'] .= lkc('txtx', $lkb . 'edit_conn==', $lh[16][0]) . ' '; $ret['utl'] .= lkc('txtx" title="' . $lh[6][1], $lkb . 'inject_defs==', $lh[18][0]) . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'edit_csv==', 'csv') . ' '; $ret['utl'] .= lkc('txtx', $lkb . 'json==', 'json') . ' '; if (auth(6)) { $ret['utl'] .= lkc('txtx', $lkb . 'export_mysql==', 'sql') . ' '; } if (auth(6)) { $ret['utl'] .= lkc('txtx', $lkb . 'create_mysql==', 'create mysql') . ' '; } $ret['utl'] .= lj('txtx', 'popup_msql___lang_helps_msql', '?'); } #-fieldset if ($ret['fls'] . $ret['utl']) { $ret['utils'] = divc('menu', $ret['fls'] . $ret['utl']); } $ret['fls'] = $ret['utl'] = ''; //if($ret['nfo'])$ret['nfo'].=br(); } //called #-infos if ($table && $is_file) { $ret['nfo'] = lkc('popsav', $lk, $murl) . ' '; $wurl = $_SERVER['HTTP_HOST'] . '/msql/' . $murl; $ret['nfo'] .= lj('popbt', 'popup_text___' . ajx($wurl) . '_weburl_console', pictit('link', 'web url')); $wcon = '[' . $murl . $kdef . ($def ? ':' . $def : '') . ':microsql]'; $ret['nfo'] .= lj('popbt', 'popup_text___' . ajx($wcon) . '_connector_console', pictit('conn', 'connector')); $ret['nfo'] .= lkt('popbt', '/plug/microxml.php?table=' . $murl, pictit('rss', 'xml')) . ' - '; $ret['nfo'] .= btn('txtsmall2', count($defs) . ' ' . plurial(count($defs), 116)) . ' - '; if ($is_file) { $ret['nfo'] .= btn('txtsmall2', fsize($basename . '.php')) . ' - '; } $ret['nfo'] .= btn('txtsmall2', ftime($basename . '.php')) . ' '; $ret['nfo'] .= msq_search($murl); } if ($ret['nfo']) { $ret['nfo'] = divc('menu', $ret['nfo']); } //entries //if($defs)$ret['edt'].=slctmenuder($defs,$def?$def:'_menus_'); //add if ($is_file && $authorized && !$_GET['called'] && $defs && !$_GET['def']) { $ret['edt'] .= divc('menu', f_inp_add($defs, $defsb, $def)) . br(); } //edit //echo verbose($ra,''); if ($def && $defs[$def]) { $ret['edt'] .= f_inp_m($defs, $defsb['_menus_'], $def); } //edit_conn if ($_GET['edit_conn'] == '=') { if ($defs) { foreach ($defs as $k => $v) { $v = str_replace(array('|', '¬'), array(':BAR:', ':LINE:'), $v); $edittable .= implode('|', $v) . '¬' . "\n"; } } //(!is_numeric($k)?$k.'|':'') $ret[] = divc('', 'paste a table as created by transductor from html table :: use "|" for cells and "¬" for lines of cells') . form($lkb . 'def=' . $def, txarea('import_conn', $edittable, 60, 14) . br() . checkbox('aid', 'ok', 'auto_increment', '1') . input2('submit', 'save', 'import', 'txtbox')) . hr() . br(); } //array if ($_GET['inject_defs'] == '=') { $datas = str_replace(array('<' . '?php', '?' . '>'), '', read_file($basename . '.php')); $ret[] = divc('', 'paste $r[1]=array(1,2,3)') . form($lkb, txarea('inject_defs', $datas, 60, 14) . br() . input2('submit', 'replace', 'replace', 'txtbox') . input2('submit', 'inject', 'inject', 'txtbox') . checkbox('mono', '1', 'key=>value', '') . checkbox('sql', '1', 'mysql', '')) . hr() . br(); } //export_mysql if ($_GET['create_mysql'] == '=' && auth(6)) { $ok = plugin_func('mysql', 'import_msql', $defs, $node); $ret[] = divc('txtalert', 'create table ' . $node . ': ' . $ok); } if ($_GET['export_mysql'] == '=' && auth(6)) { $ret[] = txarea('', mysqlrb($defs), 60, 40); } //csv if ($_GET['edit_csv'] == '=') { foreach ($defs as $k => $v) { if ($v) { $edittable .= $k . ':' . (is_array($v) ? implode(',', $v) : htmlentities($v)) . "\n"; } } $ret[] = divc('', 'paste csv using "," for cells and lines for rows') . form($lkb . 'def=' . $def, txarea('edit_csv', $edittable, 60, 14) . br() . checkbox('aid', 'ok', 'auto_increment', '1') . input2('submit', 'save', 'import', 'txtbox')) . hr() . br(); } //csv if ($_GET['json'] == '=') { foreach ($defs as $k => $v) { if ($v) { $edittable .= '"' . $k . '":' . (is_array($v) ? '["' . implode('","', $v) . '"]' : '"' . htmlentities($v[0])) . '",'; } } $ret[] = txarea('edit_csv', '{' . $edittable, 60, 14) . '}' . br(); } //see_table if ($defs && !$_GET['def']) { // && (!$def or $_POST['save'])//called $out = divd('editmsql', draw_table($defs, $murl, '')); $ret[] = $out . br(); } else { $ret[] = divd('editmsql', ''); } if ($auth > 6) { $ret[] = lkc('txtx', $lkb . 'backup_msql==', 'backup') . ' '; } if ($_GET['backup_msql']) { $ret[] = backup_msql(); } return divd('content', implode('', $ret)); }
function baz_m($p, $o, $rid) { $ret .= txarea('tx', $p, 44, 11, atc('console')) . ' '; $ret .= lj('', $rid . '_plug__2_bazx_baz*j___tx', picto('reload')) . ' '; return $ret; }
function baz_m($p, $o, $rid) { $ret .= txarea('', 'tx', $p, 60, 20) . ' '; $ret .= lj('', $rid . '_plug__2_bazic_baz*j___tx', picto('reload')) . ' '; return $ret; }
function make_form($d, $div, $jx) { $prod = explode(",", $d); $n = count($prod); for ($i = 0; $i < $n; $i++) { list($val, $type) = explode("=", $prod[$i]); $vb = normalize($val); if ($type == 'check') { $chk = 'chk' . $ia++; $hn[] = $chk; } elseif ($type != 'button') { $hn[] = $vb; } switch ($type) { case 'text': $ret .= txarea('" id="' . $vb, '', 44, 8); break; case 'check': $ret .= checkbox($chk, 'no', '', ''); break; case 'hidden': $ret .= hidden('', $vb, $val); break; case 'uniqid': $ret .= hidden('', $vb, ses('iq')); break; case 'hidden': $ret .= balise("input", array(1 => $type, 3 => $vb, 4 => $val), ''); break; case 'list': //$ret.=balise("select",array(3=>$vb),batch_defil(array_flip(explode("/",$val)))); $ret .= select(atd($vb), explode('/', $val), 'vv'); break; case 'radio': $rb = explode("/", $val); $ret .= radiobtn($rb, $vb, $val) . br(); break; case 'date': $ret .= hidden('', $vb, mkday('', 'ymd.his')); break; case 'upload': $ret .= balise('input', array(1 => 'text', 3 => $vb, 4 => 'url'), ''); break; case 'button': $btn = $val; break; case 'mail': $ret .= balise('input', array(1 => 'text', 3 => $vb, 6 => 20, 23 => $val, 21 => 'num_mail(\'' . $vb . '\');'), ''); break; default: $ret .= autoclic($val . '" id="' . $vb, '', 20, 255, ''); break; } if ($type != 'button' && $type != 'date' && $type != 'hidden' && $type != 'uniqid' && $type != 'radio') { $ret .= ' ' . label($vb, 'txtsmall2', '', $val) . br(); } } $ret .= lj("popsav", $div . $jx . implode('|', $hn), $btn ? $btn : picto('right')); return divd($div, $ret); }
function config_mod($mnb, $option) { $rm = msql_read('users', $_SESSION['modsnod'], $mnb); //module $mod = $rm['module']; $bloc = $rm['block']; $param = $rm['param']; if (strpos($param, ',')) { $param = str_replace(', ', ",\n", $param); $param = ereg_replace("[\n]{2,}", "\n", $param); } $arb = msql_read('system', 'admin_modules', $mod); //props $type = $arb['category']; $prm = $arb['param']; $opt = $arb['option']; $com = $arb['command']; $com = str_replace('scroll', 'scroll scrold', $com); $arc = msql_read('lang', 'admin_modules', $mod); $fhlp = $arc['description']; if (strpos(prma('blocks'), $mod) !== false && $mod) { $type = "div"; $fhlp = $fhlp ? $fhlp : nms(90); $prm = 3; $arb["title"] = 1; } elseif (!$type && $mod != 'system') { $type = 'user_mod'; $fhlp = 'obsolete'; } elseif ($mod == 'Page_titles') { $fhlp .= ' ' . hlpbt('breadcrumb'); } if ($bloc == 'menus') { $type = 'menu_link'; $fhlp = 'menu link'; } if ($arc['help']) { $phlp = admhlp('grey', ajx($mod), 'help') . ' '; } if ($arc['option']) { $ohlp = admhlp('grey', ajx($mod), 'option') . ' '; } if ($arc['command']) { $dhlp = admhlp('grey', ajx($mod), 'command') . ' '; } //usage $rc = array('module' => bal('strong', $mod) . ' (' . $type . ') ' . $mnb, 'usage' => divc('small', $fhlp)); if ($_SESSION['line'][$param]) { $rc["article"] = lkt('', htac('section') . $param, $param); } elseif ($prm == 2) { //wait_ID if (!is_numeric($param)) { $id = find_id($param); } else { $id = $param; } if (is_numeric($id) && $param > 3) { list($dy, $frm, $suj, $amg) = pecho_arts($id); //art $rc["article"] = lkt('', '/?read=' . $id, $suj); } } $l = 'modules_' . $bloc . '_' . $mnb; $rid = randid(); $rds = array('mb', 'mm', 'mp', 'mt', 'mc', 'md', 'mo', 'mh', 'mv', 'me', 'mr', 'mi', 'mj'); foreach ($rds as $k => $v) { $rvs[$v] = $v . $rid; $dvs .= $v . $rid . '|'; } //$dvs.=; $sty = '" onkeypress="checkEnter(event,\'savmod\')'; $form .= hidden('', $rvs['mm'], $mod); //edit if ($mod == "submenus") { require_once 'spe.php'; $rc["edit"] = menus_h($mnb); if ($option) { $param = menu_h_g($option); } } if ($mod == "Banner") { $rc["edit"] = lkc("popbt", '/admin/banner', 'edit_banner'); } elseif ($mod == "user_menu") { $rc["edit"] = jump_btns($rvs['mp'], spelinks(), ' '); } elseif ($mod == "app_menu") { $rc["edit"] = btn('console', 'button/type/process/param/option/condition/root/icon/hide/private§display[,]'); } elseif ($mod == 'link' or $mod == "url") { $arr = explode('|', spelinks()); if ($_SESSION['line']) { $arr += array_flip($_SESSION['line']); } $rc["edit"] = select(array('id' => 'mps', 'onchange' => 'jumpslct(\'' . $rvs['mp'] . '\',this)', 'style' => "width:90px;"), $arr, 'vv'); } elseif ($mod == 'template') { $ra = msql_read('', ses('qb') . '_template', '', 1); if ($ra) { $rb = array_keys_r($ra, 1, 'k'); $rc["edit"] = jump_btns($rvs['mp'], $rb, ''); } } elseif ($mod == 'msql_links') { $rc["edit"] = jump_btns($rvs['mp'], 'links|rssurl|deploy', ''); } elseif ($mod == 'connector') { req('art'); $rc["edit"] = conn_edit(); $rc["edit"] .= txarea('txtarea', $param, 50, 5, 'txtnoir" onkeyup="transvalue(\'' . $rvs['mp'] . '\')" onclick="transvalue(\'' . $rvs['mp'] . '\')"; onblur="transvalue(\'' . $rvs['mp'] . '\');'); } elseif ($mod == 'desktop') { $rc["edit"] = hlpbt('desklr'); } elseif ($mod == 'cssfonts') { $rc["edit"] = jump_btns($rvs['mp'], 'fontphilum|fontmicrosys|', ' '); } elseif ($mod == 'columns') { $rc["edit"] = mod_edit('', 1, $rvs['mp']); } elseif ($mod == 'articles') { $rc["edit"] = divd('amc', artmod_edit_l($rvs['mp'], '', '')); } elseif ($mod == "design" && prmb(5)) { $rc["edit"] = picto(alert) . helps('prmb5'); } //param if ($mod == 'tab_mods' or $mod == 'MenusJ' or $mod == 'art_mod') { $rc["param"] = comline($param, $rvs['mp']); } elseif ($mod == 'app_menu') { $rc["param"] = appmenu($param, $rvs['mp']); } elseif ($mod == "submenus") { $rc["param"] = txarea($rvs['mp'], $param, 42, 4); } elseif ($prm != '0') { $rc["param"] = goodarea($param, $rvs['mp'], '', $j, 42); } else { $form .= hidden('', $rvs['mp'], ''); } if ($mod == 'desktop') { $rc["edit"] = $phlp; $rc["param"] .= ' ' . hlpbt('desklr'); } elseif ($rc["param"] && $mod != 'apps' && $phlp) { $rc["param"] .= ' ' . $phlp; } //title if ($prm != '1' && !$arb["title"]) { $rc["title"] = input(1, $rvs['mt'] . '" size="42' . $sty, $rm['title'], ""); } else { $form .= hidden('', $rvs['mt'], ''); } //bloc if ($bloc != 'system' && $bloc != 'newsletter' && $bloc != 'gsm') { $rc["bloc"] = select_j($rvs['mb'], 'system ' . prma('blocks'), $bloc, 1, $bloc, 0); } else { $form .= hidden('', $rvs['mb'], $bloc); } //condition if ($bloc != 'newsletter') { $rc["condition"] = select_j($rvs['mc'], '- home cat art', $rm['condition'], 3, $rm['condition'], 0) . ' ' . hlpbt('mod_cond'); } else { $form .= hidden('', $rvs['mc'], ''); } //command if ($com) { $rc["command"] = select_j($rvs['md'], '- ' . ajx($com), $rm['command'], 1, $rm['command'], 0) . ' ' . $dhlp; } else { $form .= hidden('', $rvs['md'], ''); } //option if ($opt != '0') { $rc["option"] = select_j($rvs['mo'], '-|' . $opt, $rm['option'], 3, $rm['option'], 0) . ' '; if ($mod == 'LOAD') { $rc["option"] .= hlpbt('art_render'); } else { $rc['option'] .= $ohlp; } } else { $form .= hidden('', $rvs['mo'], ''); } //template if ($arb["template"]) { $ara = msql_read('', ses('qb') . '_template', '', 1); if ($ara) { $tmp = implode(' ', array_keys($ara)); } $rc["template"] = select_j($rvs['me'], '- ' . ajx($tmp), $rm['template'], 1, $rm['template'], 0); } else { $form .= hidden('', $rvs['me'], ''); } //cache if ($arb["cacheable"]) { $rc["cache"] = checkbox_j($rvs['mh'], $rm['cache'], ''); } else { $form .= hidden('', $rvs['mh'], ''); } $rc["hide"] = checkbox_j($rvs['mv'], $rm['hide'], ''); //hide if ($arb["nobr"] != '0') { $rc["nobr"] = checkbox_j($rvs['mr'], $rm['nobr'], ''); } else { $form .= hidden('', $rvs['mr'], ''); } if ($arb["div"] != '0') { $rc["div"] = checkbox_j($rvs['mi'], $rm['div'], ''); } else { $form .= hidden('', $rvs['mi'], ''); } if ($arb["ajax button"] != '0') { $rc["ajax button"] = checkbox_j($rvs['mj'], $rm['js'], ''); } else { $form .= hidden('', $rvs['mj'], ''); } //script if ($type != 'system') { $oks = lj('popbt', 'popup_modsee__3_' . $mnb . '_1', 'script') . hlpbt('comline') . ' '; $oks .= lj('popbt', 'popup_modsee__3_' . $mnb, nms(65)) . ' '; } //if($mod=='LOAD')$rc["edit"]=fast_sets('load'); //render $bt .= ljb("popdel", "SaveR", $l . '_del\',\'' . $dvs, nms(43)) . ' '; $bt .= ljb('popbt', "SaveR", $l . '_new\',\'' . $dvs, nms(44)) . ' '; $bt .= ljb('popbt', "SaveR", $l . '_savb\',\'' . $dvs, nms(66)) . ' '; $bt .= ljb('popsav', "SaveR", $l . '_sav\',\'' . $dvs, nms(57)) . ' '; //master_config $ret .= '<form id="savmod" action="javascript:SaveR(\'' . $l . '_sav\',\'' . $dvs . '\')">' . $form; $ret .= on2cols($rc, 470, 5); $ret .= '</form>'; $ret .= divs('', $bt . $oks); return $ret; }
function facil_css($k, $url, $v) { //save_css_j//stylsav $v = str_replace("} ", "}\n", $v); //smart_css//{{ $v = str_replace("; ", ";\n", $v); $t = f_inp_edit_css($k); $t .= txarea('cssarea' . $k, $v, 60, 10, atc('console')) . ' '; return form($url . '#' . $k, $t); }
function plug_addfonts($d) { $here = 'addfonts'; //Head::add('css','../css/_admin.css')); Head::add('js','../progb/ajx.js')); $r = msql_read('', 'public_addfonts', ''); $ret .= divc('txtalert', 'coller la classe @face-font (avec url absolue)') . br(); $ret .= txarea('txt', '', 60, 10); $ret .= lj('txtbox', 'cbk_plug___' . $here . '_addfonts*j_1_2_txt', 'save') . br() . br(); //xd if ($_SESSION['auth'] > 4) { $ret .= divd('cbk', addf_read($r)); } $ret .= msqlink('', 'public_addfonts'); $ret = divd('page', divd('content', $ret)); return $ret; }
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); }