From: sparky4 Date: Mon, 7 Mar 2011 03:56:02 +0000 (-0600) Subject: modified: config.php X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=de507cb17808d9528c942e5a207e95e3e35b93eb;p=test.git modified: config.php modified: data/css/main/style.css modified: data/js/script.js modified: data/stylesheets.daty modified: lib/lib_common.php --- diff --git a/config.php b/config.php index f89e39b..1e6acbd 100755 --- a/config.php +++ b/config.php @@ -47,6 +47,9 @@ TODO: ChangeLog: ---------------------- +2011/3/6 +-[system wide] hide_btn is a bitch (the back ground is variablish now) + 2011/3/4 -[config.php] multiBBS conversion has started with $config['KB'] diff --git a/data/css/main/style.css b/data/css/main/style.css index d436f0c..cef0c78 100755 --- a/data/css/main/style.css +++ b/data/css/main/style.css @@ -6,7 +6,7 @@ .logo { font-size: 20pt; font-weight: bold; margin: 1.2ex 0ex; margin-top: 16px; float: none; } /* 文章張貼者名稱樣式 */ .sublogo { font-size: 10pt; font-weight: none; } hr.top { width: 90%; height: 0px; border-top: 1; border-bottom: 0px; border-left: 0px; border-right: 0px; } /* 主標題下分隔線樣式 */ - .hide_btn { float: right; width: 4em; height: 1.25em; overflow: hidden; text-align: center; background: #FF0; } /* 表單收縮按鈕樣式 */ + .hide_btn { float: right; width: 4em; height: 1.25em; overflow: hidden; text-align: center; /*background: #FF0;*/ } /* 表單收縮按鈕樣式 */ .show { color: #00E; padding: 1px; } .hide { display: none; } #postinfo { font-size: 0.8em; } /* 上傳說明樣式 */ diff --git a/data/js/script.js b/data/js/script.js index e2a1a3a..73fa837 100755 --- a/data/js/script.js +++ b/data/js/script.js @@ -1,292 +1,304 @@ eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8 V=14;8 K=0;8 G=[];8 15=[[2h,24,20],[1R,1I,1F],[1A,2t,4]];8 11=[[29,23,22,1Z,1X,1Q],[1L,1H,1G,1E,1C,1z]];h $g(i){t o.2g(i)}h 2c(){8 N=I(\'1q\'),E=I(\'21\'),x;5((x=$g(\'H\'))){x.k=N}5((x=$g(\'1T\'))){x.k=E}}h 1P(){8 P=I(\'1K\'),d=o,1g=d.A.u;v(8 i=0;i<1g;i++){5(d.A[i].1a){d.A[i].1a.k=P}}}h I(a){8 b,z,w=0,y=0,F;b=\' \'+o.17+\';\';8 c=b.u;2q(w>1x.\'+a+"\\r\\n"}h S(a,b){8 c=$g(\'r\'+a);5(c){5(b){c.m=c.m.16(\' 1o\',\'\')}2s{5(K){S(K,R)}K=a;c.m+=\' 1o\'}}}h D(a){8 b=$g(a);8 c=1w(b.k).2r();8 d=/%2p(6[2n]|7[0-1v-f]|2l)[0-1v-f]/;5(c.13(d)!==2j){X(W[2]);1r(b)}}h 1r(a){8 b=a.k,i=0,p=0;8 c=15.u,s;v(i=0;i 1) - { - var show = rel[1]; - var hide = rel[2]; - } - - tag.onclick = function () { toggle (button, area); } - - var tog = document.getElementById (area); - - if (get_cookie ('toggle_' + area) == 1) - { - tog.style.display = ''; - if (relc > 1) { tag.innerHTML = hide; } - } - else - { - tog.style.display = 'none'; - if (relc > 1) { tag.innerHTML = show; } - } -// } - - return; -} - - -function replace_all (str, from, to) -{ - var idx = str.indexOf (from); - - while (idx > -1 ) - { - str = str.replace (from, to); - idx = str.indexOf (from); - } - return str; -} - -function highlight (post) -{ - var cello = document.getElementsByTagName ('blockquote'); - var cells = document.getElementsByTagName ('td'); - var reply = document.getElementById ('post' + post); - - for (var i = 0; i < cello.length; i ++) - { - if (cello[i].className == 'replyhl') - { cello[i].className = 'threadpost'; } - } - - for (var i = 0; i < cells.length; i ++) - { - if (cells[i].className == 'replyhl') - { cells[i].className = 'reply'; } - } - - if (reply) - { - reply.className = 'replyhl'; - var match = /^([^#r]*)/.exec (document.location.toString () ); - document.location = match[1] + '#r' + post; - } -} - -function size_textarea (id, rows) { document.getElementById(id).com.setAttribute('rows', rows); } - -function get_password (name) -{ - var pass = get_cookie (name); - if (pass) { return pass; } - - var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; - var pass = ''; - - for (var i = 0; i < 8; i ++) - { - var rnd = Math.floor (Math.random () * chars.length); - pass += chars.substring (rnd, rnd + 1); - } - - return (pass); -} - -function get_cookie (name) -{ - with (document.cookie) - { - var reg = new RegExp ('(^|;\\s+)' + name + '=(.*?)(;|$)'); - var hit = reg.exec (document.cookie); - - if (hit && hit.length > 2) - { return unescape (replace_all (hit[2], '+', '%20') ); } - else return ''; - } -} - -function set_cookie (name, value, days) -{ - if (days) - { - var date = new Date (); - date.setTime (date.getTime () + (days * 24 * 60 * 60 * 1000) ); - var expires = '; expires=' + date.toGMTString (); - } - else expires = ''; - - document.cookie = name + '=' + value + expires + '; path=/'; -} - -function set_stylesheet (styletitle, norefresh) -{ - set_cookie ('yo_style', styletitle, 365); - - var links = document.getElementsByTagName ('link'); - var found = false; - - for (var i = 0; i < links.length; i ++) - { - var rel = links[i].getAttribute ('rel'); - var ttl = links[i].getAttribute ('title'); - - if (rel.indexOf ('style') != -1 && ttl) - { - links[i].disabled = true; // IE needs this to work. IE needs to die. - - if (styletitle == ttl) - { - links[i].disabled = false; - found = true; - } - } - } - - if (!found) set_preferred_stylesheet (); -} - -function set_preferred_stylesheet () -{ - var links = document.getElementsByTagName ('link'); - - for (var i = 0; i < links.length; i ++) - { - var rel = links[i].getAttribute ('rel'); - var ttl = links[i].getAttribute ('title'); - - if (rel.indexOf ('style') != -1 && ttl) - { links[i].disabled = (rel.indexOf ('alt') != -1); } - } -} - -function get_active_stylesheet () -{ - var links = document.getElementsByTagName ('link'); - - for (var i = 0; i < links.length; i ++) - { - var rel = links[i].getAttribute ('rel'); - var ttl = links[i].getAttribute ('title'); - - if (rel.indexOf ('style') != -1 && ttl && !links[i].disabled) - { return ttl; } - } - return null; -} - -function get_preferred_stylesheet () -{ - var links = document.getElementsByTagName ('link'); - - for (var i=0;i 1) + { + var show = rel[1]; + var hide = rel[2]; + } + + tag.onclick = function () { toggle (button, area); } + + var tog = document.getElementById (area); + + if (get_cookie ('toggle_' + area) == 1) + { + tog.style.display = ''; + if (relc > 1) { tag.innerHTML = hide; } + } + else + { + tog.style.display = 'none'; + if (relc > 1) { tag.innerHTML = show; } + } +// } + + return; +} + + +function replace_all (str, from, to) +{ + var idx = str.indexOf (from); + + while (idx > -1 ) + { + str = str.replace (from, to); + idx = str.indexOf (from); + } + return str; +} + +function highlight (post) +{ + var cello = document.getElementsByTagName ('blockquote'); + var cells = document.getElementsByTagName ('td'); + var reply = document.getElementById ('post' + post); + + for (var i = 0; i < cello.length; i ++) + { + if (cello[i].className == 'replyhl') + { cello[i].className = 'threadpost'; } + } + + for (var i = 0; i < cells.length; i ++) + { + if (cells[i].className == 'replyhl') + { cells[i].className = 'reply'; } + } + + if (reply) + { + reply.className = 'replyhl'; + var match = /^([^#r]*)/.exec (document.location.toString () ); + document.location = match[1] + '#r' + post; + } +} + +function size_textarea (id, rows) { document.getElementById(id).com.setAttribute('rows', rows); } + +function get_password (name) +{ + var pass = get_cookie (name); + if (pass) { return pass; } + + var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; + var pass = ''; + + for (var i = 0; i < 8; i ++) + { + var rnd = Math.floor (Math.random () * chars.length); + pass += chars.substring (rnd, rnd + 1); + } + + return (pass); +} + +function get_cookie (name) +{ + with (document.cookie) + { + var reg = new RegExp ('(^|;\\s+)' + name + '=(.*?)(;|$)'); + var hit = reg.exec (document.cookie); + + if (hit && hit.length > 2) + { return unescape (replace_all (hit[2], '+', '%20') ); } + else return ''; + } +} + +function set_cookie (name, value, days) +{ + if (days) + { + var date = new Date (); + date.setTime (date.getTime () + (days * 24 * 60 * 60 * 1000) ); + var expires = '; expires=' + date.toGMTString (); + } + else expires = ''; + + document.cookie = name + '=' + value + expires + '; path=/'; +} + +function set_stylesheet (styletitle, norefresh) +{ + set_cookie ('yo_style', styletitle, 365); + + var links = document.getElementsByTagName ('link'); + var found = false; + + for (var i = 0; i < links.length; i ++) + { + var rel = links[i].getAttribute ('rel'); + var ttl = links[i].getAttribute ('title'); + + if (rel.indexOf ('style') != -1 && ttl) + { + links[i].disabled = true; // IE needs this to work. IE needs to die. + + if (styletitle == ttl) + { + links[i].disabled = false; + found = true; + } + } + } + + if (!found) set_preferred_stylesheet (); +} + +function set_preferred_stylesheet () +{ + var links = document.getElementsByTagName ('link'); + + for (var i = 0; i < links.length; i ++) + { + var rel = links[i].getAttribute ('rel'); + var ttl = links[i].getAttribute ('title'); + + if (rel.indexOf ('style') != -1 && ttl) + { links[i].disabled = (rel.indexOf ('alt') != -1); } + } +} + +function get_active_stylesheet () +{ + var links = document.getElementsByTagName ('link'); + + for (var i = 0; i < links.length; i ++) + { + var rel = links[i].getAttribute ('rel'); + var ttl = links[i].getAttribute ('title'); + + if (rel.indexOf ('style') != -1 && ttl && !links[i].disabled) + { return ttl; } + } + return null; +} + +function get_preferred_stylesheet () +{ + var links = document.getElementsByTagName ('link'); + + for (var i=0;i'._T('return').']'; $PMS->useModuleMethods('LinksAboveBar', array(&$links,'reply',$resno)); // "LinksAboveBar" Hook Point $pte_vals['{$FORMTOP}'] = ''; - } //----class="bar_reply" + }//----class="bar_reply" if(!$resno) $ntno = _T('form_newt'); - else $ntno = _T('reply_btn').':'.$resno; // new thread & reply:$resno + else $ntno = _T('reply_btn').':'.$resno; // new thread & reply:$resno (A KusabaX function that was reverse Engineered by sparky4 (I never looked at the code for that function w)) if(USE_FLOATFORM && !$resno && $iscollapse) $pte_vals['{$FORMTOP}'] .= "\n".'['._T('form_showpostform').''._T('form_hidepostform').']'; $pte_vals += array('{$MAX_FILE_SIZE}' => MAX_KB * 1024, '{$RESTO}' => $resno ? '' : '',