From fab2d4e0e286aa9b87baeff10b0a8c1c83a55604 Mon Sep 17 00:00:00 2001 From: JoungKyun Kim Date: Mon, 6 Jun 2016 17:51:22 +0000 Subject: [PATCH] cleanup after svn migration --- COPYING | 7 +- COPYING.ko | 12 +- INSTALLER/SQL/board-freebsd.sql | 35 + INSTALLER/SQL/board-linux.sql | 35 + INSTALLER/SQL/comment.sql | 16 + INSTALLER/SQL/userdb-freebsd.sql | 23 + INSTALLER/SQL/userdb-linux.sql | 25 + INSTALLER/act.php | 184 +++ INSTALLER/auth.php | 230 +++ INSTALLER/include/check.php | 58 + INSTALLER/include/passwd.php | 53 + INSTALLER/index.php | 1 + INSTALLER/install.php | 118 ++ INSTALLER/sample/admin/external.php.orig | 39 + .../sample/admin/global.php.orig | 86 +- INSTALLER/sample/admin/spam_list.txt.orig | 12 + INSTALLER/sample/data/config.php | 180 +++ INSTALLER/sample/data/html_head.php | 3 + INSTALLER/sample/data/html_tail.php | 7 + INSTALLER/sample/data/stylesheet.php | 3 + INSTALLER/script/LANG/en.conf | 22 + INSTALLER/script/LANG/ko.conf | 22 + INSTALLER/script/account | 51 + INSTALLER/script/account_p | 39 + INSTALLER/script/conv_udate | 508 +++++++ INSTALLER/script/dbconv_to_20 | 38 + INSTALLER/script/preinstall | 156 +++ INSTALLER/script/root | 152 ++ INSTALLER/script/root_p | 143 ++ INSTALLER/session.php | 29 + README | 6 +- SQL/mysql/board.sql | 37 - SQL/mysql/comment.sql | 18 - SQL/mysql/userdb.sql | 20 - SQL/mysql3/board.sql | 37 - SQL/mysql3/comment.sql | 18 - SQL/mysql3/userdb.sql | 20 - SQL/mysql4/board.sql | 37 - SQL/mysql4/comment.sql | 18 - SQL/mysql4/userdb.sql | 20 - SQL/mysql41/board.sql | 37 - SQL/mysql41/comment.sql | 18 - SQL/mysql41/userdb.sql | 20 - SQL/pgsql/board.sql | 38 - SQL/pgsql/comment.sql | 19 - SQL/pgsql/userdb.sql | 21 - SQL/sqlite/board.sql | 30 - SQL/sqlite/comment.sql | 11 - SQL/sqlite/userdb.sql | 13 - act.php | 303 ++-- admin/act.php | 227 +-- admin/admin.php | 395 +++--- admin/admin_info.php | 124 +- admin/include/admin_head.php | 95 +- admin/include/check.php | 211 +++ admin/include/first_reg.php | 17 +- admin/include/html_ahead.php | 68 +- admin/include/html_atail.php | 4 +- admin/include/lib.php | 139 -- admin/include/print.php | 109 +- admin/language/conv.txt | 1 - admin/language/en.lang | 230 --- admin/language/ja.lang | 228 --- admin/language/ko.lang | 230 --- admin/language/lang.php | 34 - admin/skin/admin.js | 30 - admin/skin/en-admin.css | 234 ---- admin/skin/footer.template | 5 - admin/skin/header.template | 14 - admin/skin/ja-admin.css | 230 --- admin/skin/ko-admin.css | 234 ---- admin/stat.php | 280 ++-- admin/user_admin/act.php | 195 ++- admin/user_admin/uadmin.php | 1242 +++++++++-------- admin/userlist.php | 306 ++-- captcha/captcha.php | 169 --- captcha/captchacommon.php | 48 - captcha/captchaimg.php | 21 - captcha/font/AcidDreamer.ttf | Bin 203688 -> 0 bytes captcha/font/font-url.txt | 2 - captcha/make_key.php | 33 - database/charset.php | 16 - database/db.php | 35 - database/mysql.php | 288 ---- database/mysqli.php | 307 ---- database/pgsql.php | 282 ---- database/regist.php | 8 - database/sqlite.php | 231 --- delete.php | 69 +- doc/en/CREDIT | 134 ++ doc/en/Changelog | 896 +++++++++--- doc/en/INSTALL.MANUALY | 429 ++++++ doc/en/KnownBug | 11 + doc/en/README | 70 + doc/en/README.CAPTCHA | 22 - doc/en/README.LANG | 17 + doc/en/README.OTHERS.OS | 7 + doc/en/SQL | 62 + doc/ko/CREDIT | 131 ++ doc/ko/Changelog | 945 ++++++++++--- doc/ko/INSTALL | 727 ++++++++++ doc/ko/INSTALL.MANUALY | 696 +++++++++ doc/ko/KnownBug | 12 + doc/ko/MySQL | 80 ++ doc/ko/README | 63 + doc/ko/README.CAPTCHA | 22 - doc/ko/README.CONFIG | 669 +++++++++ doc/ko/README.LANG | 19 + doc/ko/README.OPERATE | 417 ++++++ doc/ko/README.OTHERS.OS | 7 + doc/ko/README.REPLICATE | 58 + doc/ko/README.THEME | 134 ++ doc/ko/SQL | 61 + doc/ko/UPGRADE | 151 ++ doc/ko/todo | 8 - edit.php | 56 +- error.php | 64 +- form.php | 42 +- html/head.php | 4 +- html/nofile.php | 2 +- html/tail.php | 4 +- image.php | 76 +- images/interwiki/acronym-16.png | Bin 1087 -> 0 bytes images/interwiki/aladdin-16.png | Bin 268 -> 0 bytes images/interwiki/amazon-16.png | Bin 451 -> 0 bytes images/interwiki/andstuff-16.png | Bin 1090 -> 0 bytes images/interwiki/br-16.png | Bin 541 -> 0 bytes images/interwiki/brights-16.png | Bin 271 -> 0 bytes images/interwiki/bsdkorea-16.png | Bin 1201 -> 0 bytes images/interwiki/bugzilla-16.png | Bin 1125 -> 0 bytes images/interwiki/da-16.png | Bin 440 -> 0 bytes images/interwiki/de-16.png | Bin 419 -> 0 bytes images/interwiki/delicious-16.png | Bin 115 -> 0 bytes images/interwiki/empas-16.png | Bin 217 -> 0 bytes images/interwiki/en-16.png | Bin 565 -> 0 bytes images/interwiki/es-16.png | Bin 412 -> 0 bytes images/interwiki/fi-16.png | Bin 399 -> 0 bytes images/interwiki/flickr-16.png | Bin 249 -> 0 bytes images/interwiki/foaf-16.png | Bin 903 -> 0 bytes images/interwiki/foldoc-16.png | Bin 900 -> 0 bytes images/interwiki/foxwiki-16.png | Bin 1084 -> 0 bytes images/interwiki/fr-16.png | Bin 400 -> 0 bytes images/interwiki/freefeel-16.png | Bin 1105 -> 0 bytes images/interwiki/freshmeat-16.png | Bin 1046 -> 0 bytes images/interwiki/gentookorea-16.png | Bin 1217 -> 0 bytes images/interwiki/gnome-16.png | Bin 650 -> 0 bytes images/interwiki/gnome2-16.png | Bin 867 -> 0 bytes images/interwiki/gnomekorea-16.png | Bin 1097 -> 0 bytes images/interwiki/gnu-16.png | Bin 1070 -> 0 bytes images/interwiki/google-16.png | Bin 736 -> 0 bytes images/interwiki/gr-16.png | Bin 429 -> 0 bytes images/interwiki/gtkref-16.png | Bin 1277 -> 0 bytes images/interwiki/il-16.png | Bin 437 -> 0 bytes images/interwiki/imdb-16.png | Bin 964 -> 0 bytes images/interwiki/inter.png | Bin 214 -> 0 bytes images/interwiki/isbn-16.png | Bin 451 -> 0 bytes images/interwiki/it-16.png | Bin 430 -> 0 bytes images/interwiki/ja-16.png | Bin 366 -> 0 bytes images/interwiki/jangnan-16.png | Bin 243 -> 0 bytes images/interwiki/jargonfile-16.png | Bin 305 -> 0 bytes images/interwiki/joiwiki-16.png | Bin 1108 -> 0 bytes images/interwiki/kde-16.png | Bin 843 -> 0 bytes images/interwiki/kdekorea-16.png | Bin 1134 -> 0 bytes images/interwiki/kldpwiki-16.png | Bin 1058 -> 0 bytes images/interwiki/kle-16.png | Bin 1153 -> 0 bytes images/interwiki/ko-16.png | Bin 559 -> 0 bytes images/interwiki/ktug-16.png | Bin 1132 -> 0 bytes images/interwiki/lovolnet-16.png | Bin 1129 -> 0 bytes images/interwiki/mailing-16.png | Bin 1154 -> 0 bytes images/interwiki/mathworld-16.png | Bin 551 -> 0 bytes images/interwiki/meatball-16.png | Bin 1067 -> 0 bytes images/interwiki/moinmoin-16.png | Bin 155 -> 0 bytes images/interwiki/moniwiki-16.png | Bin 1026 -> 0 bytes images/interwiki/mozilla-16.png | Bin 580 -> 0 bytes images/interwiki/nl-16.png | Bin 405 -> 0 bytes images/interwiki/nosmoke-16.png | Bin 241 -> 0 bytes images/interwiki/nsmk-16.png | Bin 468 -> 0 bytes images/interwiki/openwiki-16.png | Bin 1102 -> 0 bytes images/interwiki/php-16.png | Bin 177 -> 0 bytes images/interwiki/pt-16.png | Bin 477 -> 0 bytes images/interwiki/python-16.png | Bin 1239 -> 0 bytes images/interwiki/rdfweb-16.png | Bin 522 -> 0 bytes images/interwiki/ru-16.png | Bin 384 -> 0 bytes images/interwiki/self-16.png | Bin 1026 -> 0 bytes images/interwiki/sfreaders-16.png | Bin 569 -> 0 bytes images/interwiki/sourceforge-16.png | Bin 329 -> 0 bytes images/interwiki/sv-16.png | Bin 508 -> 0 bytes images/interwiki/technorati-16.png | Bin 504 -> 0 bytes images/interwiki/twiki-16.png | Bin 1279 -> 0 bytes images/interwiki/twinpages-16.png | Bin 208 -> 0 bytes images/interwiki/uploads-16.png | Bin 967 -> 0 bytes images/interwiki/us-16.png | Bin 389 -> 0 bytes images/interwiki/usemod-16.png | Bin 1051 -> 0 bytes images/interwiki/user-16.png | Bin 975 -> 0 bytes images/interwiki/wiki-16.png | Bin 1222 -> 0 bytes images/interwiki/wikipedia-16.png | Bin 528 -> 0 bytes images/interwiki/xper-16.png | Bin 1110 -> 0 bytes images/interwiki/xxx-16.png | Bin 1058 -> 0 bytes images/interwiki/yahoo-16.png | Bin 138 -> 0 bytes images/interwiki/zh-16.png | Bin 506 -> 0 bytes images/interwiki/zwiki-16.png | Bin 1047 -> 0 bytes images/quote.gif | Bin 153 -> 0 bytes include/LANG/en.php | 386 +++++ include/LANG/jp.php | 391 ++++++ include/LANG/ko.php | 391 ++++++ include/check.php | 244 +--- include/error.php | 59 +- include/exec.php | 31 - include/get.php | 481 +++---- include/header.php | 155 +- include/lang.php | 17 + include/list.php | 157 +-- include/ostype.php | 2 - include/parse.php | 409 ++---- include/prelist.php | 62 +- include/print.php | 971 ++++++++----- include/replicate.php | 18 +- include/sURI.php | 84 -- include/sendmail.php | 60 +- include/spam_check.php | 21 +- include/sql.php | 105 ++ include/variable.php | 87 -- include/version.php | 6 +- include/wikify.php | 234 ---- index.php | 1 - language/en.lang | 176 --- language/ja.lang | 179 --- language/ko.lang | 180 --- language/lang.php | 36 - list.php | 69 +- locate.php | 4 +- login.php | 49 +- read.php | 74 +- regist.php | 241 ++-- reply.php | 91 +- rss.php | 127 +- session.php | 135 +- theme/Changelog.theme | 17 - theme/EN-default/config.php | 93 +- theme/EN-default/default.css | 491 ------- theme/EN-default/delete.template | 223 +-- theme/EN-default/edit.template | 349 +++-- theme/EN-default/ext.template | 38 + theme/EN-default/img/at.gif | Bin 850 -> 0 bytes theme/EN-default/img/bnw-shape.gif | Bin 44 -> 0 bytes theme/EN-default/img/bnw.gif | Bin 810 -> 0 bytes theme/EN-default/img/board_no.gif | Bin 1496 -> 393 bytes theme/EN-default/img/delete_title.gif | Bin 0 -> 497 bytes theme/EN-default/img/dot.gif | Bin 48 -> 0 bytes theme/EN-default/img/dotted_gray.gif | Bin 44 -> 0 bytes theme/EN-default/img/edit_title.gif | Bin 0 -> 406 bytes theme/EN-default/img/grippie.png | Bin 151 -> 0 bytes theme/EN-default/img/icon_over.gif | Bin 1086 -> 446 bytes theme/EN-default/img/login.gif | Bin 95 -> 0 bytes theme/EN-default/img/reply_title.gif | Bin 0 -> 511 bytes theme/EN-default/img/write_title.gif | Bin 0 -> 333 bytes theme/EN-default/index.template | 90 -- theme/EN-default/list.template | 337 +++-- theme/EN-default/login.template | 132 +- theme/EN-default/mail.template | 157 +-- theme/EN-default/read.template | 423 +++--- theme/EN-default/reply.template | 332 +++-- theme/EN-default/write.template | 356 +++-- theme/JP-default/config.php | 113 +- theme/JP-default/default.css | 491 ------- theme/JP-default/delete.template | 225 +-- theme/JP-default/edit.template | 373 ++--- theme/JP-default/ext.template | 38 + theme/JP-default/img/at.gif | Bin 850 -> 0 bytes theme/JP-default/img/bnw-shape.gif | Bin 44 -> 0 bytes theme/JP-default/img/bnw.gif | Bin 810 -> 0 bytes theme/JP-default/img/board_no.gif | Bin 1496 -> 393 bytes theme/JP-default/img/delete_title.gif | Bin 0 -> 497 bytes theme/JP-default/img/dot.gif | Bin 48 -> 0 bytes theme/JP-default/img/dotted_gray.gif | Bin 44 -> 0 bytes theme/JP-default/img/edit_title.gif | Bin 0 -> 406 bytes theme/JP-default/img/grippie.png | Bin 151 -> 0 bytes theme/JP-default/img/icon_over.gif | Bin 1086 -> 446 bytes theme/JP-default/img/login.gif | Bin 95 -> 0 bytes theme/JP-default/img/reply_title.gif | Bin 0 -> 511 bytes theme/JP-default/img/write_title.gif | Bin 0 -> 333 bytes theme/JP-default/index.template | 91 -- theme/JP-default/list.template | 340 +++-- theme/JP-default/login.template | 132 +- theme/JP-default/mail.template | 155 +- theme/JP-default/read.template | 421 +++--- theme/JP-default/reply.template | 351 +++-- theme/JP-default/write.template | 363 +++-- theme/KO-default/config.php | 100 +- theme/KO-default/default.css | 491 ------- theme/KO-default/delete.template | 220 +-- theme/KO-default/edit.template | 355 +++-- theme/KO-default/ext.template | 38 + theme/KO-default/img/at.gif | Bin 850 -> 0 bytes theme/KO-default/img/bnw-shape.gif | Bin 44 -> 0 bytes theme/KO-default/img/bnw.gif | Bin 810 -> 0 bytes theme/KO-default/img/board_no.gif | Bin 1496 -> 393 bytes theme/KO-default/img/delete_title.gif | Bin 0 -> 497 bytes theme/KO-default/img/dot.gif | Bin 48 -> 0 bytes theme/KO-default/img/dotted_gray.gif | Bin 44 -> 0 bytes theme/KO-default/img/edit_title.gif | Bin 0 -> 406 bytes theme/KO-default/img/grippie.png | Bin 151 -> 0 bytes theme/KO-default/img/icon_over.gif | Bin 1086 -> 446 bytes theme/KO-default/img/login.gif | Bin 95 -> 0 bytes theme/KO-default/img/reply_title.gif | Bin 0 -> 511 bytes theme/KO-default/img/write_title.gif | Bin 0 -> 333 bytes theme/KO-default/index.template | 91 -- theme/KO-default/list.template | 338 +++-- theme/KO-default/login.template | 206 +-- theme/KO-default/mail.template | 157 +-- theme/KO-default/read.template | 392 +++--- theme/KO-default/reply.template | 348 +++-- theme/KO-default/write.template | 345 +++-- theme/common/lib.js | 203 --- theme/common/preview.js | 123 -- theme/common/textarea.js | 271 ---- theme/player/LICENSE | 7 - theme/player/dewplayer-vol.swf | Bin 5214 -> 0 bytes user.php | 163 ++- utils/installation | 749 ---------- utils/lib/commonlib | 84 -- utils/lib/install-config | 18 - utils/lib/lang/installation-en.conf | 83 -- utils/lib/lang/installation-ko.conf | 83 -- utils/permission | 255 ---- utils/sample/admin/external.php.orig | 39 - utils/sample/admin/intermap.txt | 43 - utils/sample/admin/spam_list.txt.orig | 6 - utils/sample/data/config.php | 188 --- utils/sample/data/html_head.php | 3 - utils/sample/data/html_tail.php | 7 - utils/sample/data/stylesheet.php | 3 - whois.php | 70 +- write.php | 67 +- 334 files changed, 16958 insertions(+), 15967 deletions(-) create mode 100644 INSTALLER/SQL/board-freebsd.sql create mode 100644 INSTALLER/SQL/board-linux.sql create mode 100644 INSTALLER/SQL/comment.sql create mode 100644 INSTALLER/SQL/userdb-freebsd.sql create mode 100644 INSTALLER/SQL/userdb-linux.sql create mode 100644 INSTALLER/act.php create mode 100644 INSTALLER/auth.php create mode 100644 INSTALLER/include/check.php create mode 100644 INSTALLER/include/passwd.php create mode 100644 INSTALLER/index.php create mode 100644 INSTALLER/install.php create mode 100644 INSTALLER/sample/admin/external.php.orig rename {utils => INSTALLER}/sample/admin/global.php.orig (59%) create mode 100644 INSTALLER/sample/admin/spam_list.txt.orig create mode 100644 INSTALLER/sample/data/config.php create mode 100644 INSTALLER/sample/data/html_head.php create mode 100644 INSTALLER/sample/data/html_tail.php create mode 100644 INSTALLER/sample/data/stylesheet.php create mode 100644 INSTALLER/script/LANG/en.conf create mode 100644 INSTALLER/script/LANG/ko.conf create mode 100755 INSTALLER/script/account create mode 100755 INSTALLER/script/account_p create mode 100755 INSTALLER/script/conv_udate create mode 100755 INSTALLER/script/dbconv_to_20 create mode 100755 INSTALLER/script/preinstall create mode 100755 INSTALLER/script/root create mode 100755 INSTALLER/script/root_p create mode 100644 INSTALLER/session.php delete mode 100644 SQL/mysql/board.sql delete mode 100644 SQL/mysql/comment.sql delete mode 100644 SQL/mysql/userdb.sql delete mode 100644 SQL/mysql3/board.sql delete mode 100644 SQL/mysql3/comment.sql delete mode 100644 SQL/mysql3/userdb.sql delete mode 100644 SQL/mysql4/board.sql delete mode 100644 SQL/mysql4/comment.sql delete mode 100644 SQL/mysql4/userdb.sql delete mode 100644 SQL/mysql41/board.sql delete mode 100644 SQL/mysql41/comment.sql delete mode 100644 SQL/mysql41/userdb.sql delete mode 100644 SQL/pgsql/board.sql delete mode 100644 SQL/pgsql/comment.sql delete mode 100644 SQL/pgsql/userdb.sql delete mode 100644 SQL/sqlite/board.sql delete mode 100644 SQL/sqlite/comment.sql delete mode 100644 SQL/sqlite/userdb.sql create mode 100644 admin/include/check.php delete mode 100644 admin/include/lib.php delete mode 100644 admin/language/conv.txt delete mode 100644 admin/language/en.lang delete mode 100644 admin/language/ja.lang delete mode 100644 admin/language/ko.lang delete mode 100644 admin/language/lang.php delete mode 100644 admin/skin/admin.js delete mode 100644 admin/skin/en-admin.css delete mode 100644 admin/skin/footer.template delete mode 100644 admin/skin/header.template delete mode 100644 admin/skin/ja-admin.css delete mode 100644 admin/skin/ko-admin.css delete mode 100644 captcha/captcha.php delete mode 100644 captcha/captchacommon.php delete mode 100644 captcha/captchaimg.php delete mode 100644 captcha/font/AcidDreamer.ttf delete mode 100644 captcha/font/font-url.txt delete mode 100644 captcha/make_key.php delete mode 100644 database/charset.php delete mode 100644 database/db.php delete mode 100644 database/mysql.php delete mode 100644 database/mysqli.php delete mode 100644 database/pgsql.php delete mode 100644 database/regist.php delete mode 100644 database/sqlite.php create mode 100644 doc/en/CREDIT create mode 100644 doc/en/INSTALL.MANUALY create mode 100644 doc/en/KnownBug create mode 100644 doc/en/README delete mode 100644 doc/en/README.CAPTCHA create mode 100644 doc/en/README.LANG create mode 100644 doc/en/README.OTHERS.OS create mode 100644 doc/en/SQL create mode 100644 doc/ko/CREDIT create mode 100644 doc/ko/INSTALL create mode 100644 doc/ko/INSTALL.MANUALY create mode 100644 doc/ko/KnownBug create mode 100644 doc/ko/MySQL create mode 100644 doc/ko/README delete mode 100644 doc/ko/README.CAPTCHA create mode 100644 doc/ko/README.CONFIG create mode 100644 doc/ko/README.LANG create mode 100644 doc/ko/README.OPERATE create mode 100644 doc/ko/README.OTHERS.OS create mode 100644 doc/ko/README.REPLICATE create mode 100644 doc/ko/README.THEME create mode 100644 doc/ko/SQL create mode 100644 doc/ko/UPGRADE delete mode 100644 doc/ko/todo delete mode 100644 images/interwiki/acronym-16.png delete mode 100644 images/interwiki/aladdin-16.png delete mode 100644 images/interwiki/amazon-16.png delete mode 100644 images/interwiki/andstuff-16.png delete mode 100644 images/interwiki/br-16.png delete mode 100644 images/interwiki/brights-16.png delete mode 100644 images/interwiki/bsdkorea-16.png delete mode 100644 images/interwiki/bugzilla-16.png delete mode 100644 images/interwiki/da-16.png delete mode 100644 images/interwiki/de-16.png delete mode 100644 images/interwiki/delicious-16.png delete mode 100644 images/interwiki/empas-16.png delete mode 100644 images/interwiki/en-16.png delete mode 100644 images/interwiki/es-16.png delete mode 100644 images/interwiki/fi-16.png delete mode 100644 images/interwiki/flickr-16.png delete mode 100644 images/interwiki/foaf-16.png delete mode 100644 images/interwiki/foldoc-16.png delete mode 100644 images/interwiki/foxwiki-16.png delete mode 100644 images/interwiki/fr-16.png delete mode 100644 images/interwiki/freefeel-16.png delete mode 100644 images/interwiki/freshmeat-16.png delete mode 100644 images/interwiki/gentookorea-16.png delete mode 100644 images/interwiki/gnome-16.png delete mode 100644 images/interwiki/gnome2-16.png delete mode 100644 images/interwiki/gnomekorea-16.png delete mode 100644 images/interwiki/gnu-16.png delete mode 100644 images/interwiki/google-16.png delete mode 100644 images/interwiki/gr-16.png delete mode 100644 images/interwiki/gtkref-16.png delete mode 100644 images/interwiki/il-16.png delete mode 100644 images/interwiki/imdb-16.png delete mode 100644 images/interwiki/inter.png delete mode 100644 images/interwiki/isbn-16.png delete mode 100644 images/interwiki/it-16.png delete mode 100644 images/interwiki/ja-16.png delete mode 100644 images/interwiki/jangnan-16.png delete mode 100644 images/interwiki/jargonfile-16.png delete mode 100644 images/interwiki/joiwiki-16.png delete mode 100644 images/interwiki/kde-16.png delete mode 100644 images/interwiki/kdekorea-16.png delete mode 100644 images/interwiki/kldpwiki-16.png delete mode 100644 images/interwiki/kle-16.png delete mode 100644 images/interwiki/ko-16.png delete mode 100644 images/interwiki/ktug-16.png delete mode 100644 images/interwiki/lovolnet-16.png delete mode 100644 images/interwiki/mailing-16.png delete mode 100644 images/interwiki/mathworld-16.png delete mode 100644 images/interwiki/meatball-16.png delete mode 100644 images/interwiki/moinmoin-16.png delete mode 100644 images/interwiki/moniwiki-16.png delete mode 100644 images/interwiki/mozilla-16.png delete mode 100644 images/interwiki/nl-16.png delete mode 100644 images/interwiki/nosmoke-16.png delete mode 100644 images/interwiki/nsmk-16.png delete mode 100644 images/interwiki/openwiki-16.png delete mode 100644 images/interwiki/php-16.png delete mode 100644 images/interwiki/pt-16.png delete mode 100644 images/interwiki/python-16.png delete mode 100644 images/interwiki/rdfweb-16.png delete mode 100644 images/interwiki/ru-16.png delete mode 100644 images/interwiki/self-16.png delete mode 100644 images/interwiki/sfreaders-16.png delete mode 100644 images/interwiki/sourceforge-16.png delete mode 100644 images/interwiki/sv-16.png delete mode 100644 images/interwiki/technorati-16.png delete mode 100644 images/interwiki/twiki-16.png delete mode 100644 images/interwiki/twinpages-16.png delete mode 100644 images/interwiki/uploads-16.png delete mode 100644 images/interwiki/us-16.png delete mode 100644 images/interwiki/usemod-16.png delete mode 100644 images/interwiki/user-16.png delete mode 100644 images/interwiki/wiki-16.png delete mode 100644 images/interwiki/wikipedia-16.png delete mode 100644 images/interwiki/xper-16.png delete mode 100644 images/interwiki/xxx-16.png delete mode 100644 images/interwiki/yahoo-16.png delete mode 100644 images/interwiki/zh-16.png delete mode 100644 images/interwiki/zwiki-16.png delete mode 100644 images/quote.gif create mode 100644 include/LANG/en.php create mode 100644 include/LANG/jp.php create mode 100644 include/LANG/ko.php create mode 100644 include/lang.php delete mode 100644 include/sURI.php create mode 100644 include/sql.php delete mode 100644 include/variable.php delete mode 100644 include/wikify.php delete mode 100644 language/en.lang delete mode 100644 language/ja.lang delete mode 100644 language/ko.lang delete mode 100644 language/lang.php delete mode 100644 theme/EN-default/default.css create mode 100644 theme/EN-default/ext.template delete mode 100644 theme/EN-default/img/at.gif delete mode 100644 theme/EN-default/img/bnw-shape.gif delete mode 100644 theme/EN-default/img/bnw.gif create mode 100644 theme/EN-default/img/delete_title.gif delete mode 100644 theme/EN-default/img/dot.gif delete mode 100644 theme/EN-default/img/dotted_gray.gif create mode 100644 theme/EN-default/img/edit_title.gif delete mode 100644 theme/EN-default/img/grippie.png delete mode 100644 theme/EN-default/img/login.gif create mode 100644 theme/EN-default/img/reply_title.gif create mode 100644 theme/EN-default/img/write_title.gif delete mode 100644 theme/EN-default/index.template delete mode 100644 theme/JP-default/default.css create mode 100644 theme/JP-default/ext.template delete mode 100644 theme/JP-default/img/at.gif delete mode 100644 theme/JP-default/img/bnw-shape.gif delete mode 100644 theme/JP-default/img/bnw.gif create mode 100644 theme/JP-default/img/delete_title.gif delete mode 100644 theme/JP-default/img/dot.gif delete mode 100644 theme/JP-default/img/dotted_gray.gif create mode 100644 theme/JP-default/img/edit_title.gif delete mode 100644 theme/JP-default/img/grippie.png delete mode 100644 theme/JP-default/img/login.gif create mode 100644 theme/JP-default/img/reply_title.gif create mode 100644 theme/JP-default/img/write_title.gif delete mode 100644 theme/JP-default/index.template delete mode 100644 theme/KO-default/default.css create mode 100644 theme/KO-default/ext.template delete mode 100644 theme/KO-default/img/at.gif delete mode 100644 theme/KO-default/img/bnw-shape.gif delete mode 100644 theme/KO-default/img/bnw.gif create mode 100644 theme/KO-default/img/delete_title.gif delete mode 100644 theme/KO-default/img/dot.gif delete mode 100644 theme/KO-default/img/dotted_gray.gif create mode 100644 theme/KO-default/img/edit_title.gif delete mode 100644 theme/KO-default/img/grippie.png delete mode 100644 theme/KO-default/img/login.gif create mode 100644 theme/KO-default/img/reply_title.gif create mode 100644 theme/KO-default/img/write_title.gif delete mode 100644 theme/KO-default/index.template delete mode 100644 theme/common/lib.js delete mode 100644 theme/common/preview.js delete mode 100644 theme/common/textarea.js delete mode 100644 theme/player/LICENSE delete mode 100644 theme/player/dewplayer-vol.swf delete mode 100644 utils/installation delete mode 100644 utils/lib/commonlib delete mode 100644 utils/lib/install-config delete mode 100644 utils/lib/lang/installation-en.conf delete mode 100644 utils/lib/lang/installation-ko.conf delete mode 100644 utils/permission delete mode 100644 utils/sample/admin/external.php.orig delete mode 100644 utils/sample/admin/intermap.txt delete mode 100644 utils/sample/admin/spam_list.txt.orig delete mode 100644 utils/sample/data/config.php delete mode 100644 utils/sample/data/html_head.php delete mode 100644 utils/sample/data/html_tail.php delete mode 100644 utils/sample/data/stylesheet.php diff --git a/COPYING b/COPYING index 3a807a52..a43ea212 100644 --- a/COPYING +++ b/COPYING @@ -1,11 +1,8 @@ -$Id: COPYING,v 1.3 2009-11-16 21:52:45 oops Exp $ - GNU GENERAL PUBLIC LICENSE Version 2, June 1991 - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301 USA + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. diff --git a/COPYING.ko b/COPYING.ko index 1a7056ae..97d387ac 100644 --- a/COPYING.ko +++ b/COPYING.ko @@ -1,16 +1,16 @@ -$Id: COPYING.ko,v 1.3 2009-11-16 21:52:45 oops Exp $ +GPL ѱ ˾ƵѰ. -GPL ȿ 켱 ˴ϴ. ѱ -ϱ Ǹ 켱 մϴ. +1. ѱ ش ϴ ȿ ٴ + ѰͿ Ѵ. . +2. Ǵ http://jsboard.kldp.org ϱ⸦ ٶ. ------------------------------------------------------------------------------- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 -Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301 USA +Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA ۱ǰ 㰡 Ǵ ,  ü 糪 鵵 ȴ. , ÷ ʴ´. diff --git a/INSTALLER/SQL/board-freebsd.sql b/INSTALLER/SQL/board-freebsd.sql new file mode 100644 index 00000000..ca0943bc --- /dev/null +++ b/INSTALLER/SQL/board-freebsd.sql @@ -0,0 +1,35 @@ +# +# Table structure for table 'test' +# +CREATE TABLE test ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + rname tinytext, + passwd varchar(56), + email tinytext, + url tinytext, + title tinytext, + text mediumtext, + refer int(6) DEFAULT '0' NOT NULL, + reyn int(1) DEFAULT '0' NOT NULL, + reno int(6) DEFAULT '0' NOT NULL, + rede int(6) DEFAULT '0' NOT NULL, + reto int(6) DEFAULT '0' NOT NULL, + html int(1) DEFAULT '1' NOT NULL, + comm int(6) DEFAULT '0' NOT NULL, + bofile varchar(100), + bcfile varchar(100), + bfsize int(4), + KEY no (no), + KEY num (num), + KEY idx (idx), + KEY reno (reno), + KEY date (date), + KEY reto (reto), + KEY comm (comm), + PRIMARY KEY (no) +); diff --git a/INSTALLER/SQL/board-linux.sql b/INSTALLER/SQL/board-linux.sql new file mode 100644 index 00000000..ca0943bc --- /dev/null +++ b/INSTALLER/SQL/board-linux.sql @@ -0,0 +1,35 @@ +# +# Table structure for table 'test' +# +CREATE TABLE test ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + rname tinytext, + passwd varchar(56), + email tinytext, + url tinytext, + title tinytext, + text mediumtext, + refer int(6) DEFAULT '0' NOT NULL, + reyn int(1) DEFAULT '0' NOT NULL, + reno int(6) DEFAULT '0' NOT NULL, + rede int(6) DEFAULT '0' NOT NULL, + reto int(6) DEFAULT '0' NOT NULL, + html int(1) DEFAULT '1' NOT NULL, + comm int(6) DEFAULT '0' NOT NULL, + bofile varchar(100), + bcfile varchar(100), + bfsize int(4), + KEY no (no), + KEY num (num), + KEY idx (idx), + KEY reno (reno), + KEY date (date), + KEY reto (reto), + KEY comm (comm), + PRIMARY KEY (no) +); diff --git a/INSTALLER/SQL/comment.sql b/INSTALLER/SQL/comment.sql new file mode 100644 index 00000000..109310e8 --- /dev/null +++ b/INSTALLER/SQL/comment.sql @@ -0,0 +1,16 @@ +# +# Table structure for table 'test_comm' +# +CREATE TABLE test_comm ( + no int(6) NOT NULL auto_increment, + reno int(20) NOT NULL default '0', + rname tinytext, + name tinytext, + passwd varchar(56) default NULL, + text mediumtext, + host tinytext, + date int(11) NOT NULL default '0', + PRIMARY KEY (no), + KEY parent (reno) +); + diff --git a/INSTALLER/SQL/userdb-freebsd.sql b/INSTALLER/SQL/userdb-freebsd.sql new file mode 100644 index 00000000..cf51491f --- /dev/null +++ b/INSTALLER/SQL/userdb-freebsd.sql @@ -0,0 +1,23 @@ +# +# Table structure for table 'userdb' +# +CREATE TABLE userdb ( + no int(6) NOT NULL auto_increment, + nid varchar(30) NOT NULL default '', + name varchar(30) NOT NULL default '', + email tinytext NOT NULL, + url tinytext NOT NULL, + passwd varchar(100) NOT NULL default '', + position int(1) NOT NULL default '0', + PRIMARY KEY (no), + KEY no (no), + UNIQUE KEY nid (nid), + KEY name (name), + KEY position (position) +) TYPE=MyISAM; + +# +# Dumping data for table 'userdb' +# + +INSERT INTO userdb VALUES ('','admin','','','','\$1\$Cx\$.2OyfWZCiPTc4sSw0vswc/',1); diff --git a/INSTALLER/SQL/userdb-linux.sql b/INSTALLER/SQL/userdb-linux.sql new file mode 100644 index 00000000..2b820298 --- /dev/null +++ b/INSTALLER/SQL/userdb-linux.sql @@ -0,0 +1,25 @@ +# +# Table structure for table 'userdb' +# + +CREATE TABLE userdb ( + no int(6) NOT NULL auto_increment, + nid varchar(30) NOT NULL default '', + name varchar(30) NOT NULL default '', + email tinytext NOT NULL, + url tinytext NOT NULL, + passwd varchar(100) NOT NULL default '', + position int(1) NOT NULL default '0', + PRIMARY KEY (no), + KEY no (no), + UNIQUE KEY nid (nid), + KEY name (name), + KEY position (position) +) TYPE=MyISAM; + +# +# Dumping data for table 'userdb' +# + +INSERT INTO userdb VALUES ('','admin','','','','lHJTjGW8VhHc.',1); + diff --git a/INSTALLER/act.php b/INSTALLER/act.php new file mode 100644 index 00000000..22759155 --- /dev/null +++ b/INSTALLER/act.php @@ -0,0 +1,184 @@ + + + diff --git a/INSTALLER/auth.php b/INSTALLER/auth.php new file mode 100644 index 00000000..dbcbb59f --- /dev/null +++ b/INSTALLER/auth.php @@ -0,0 +1,230 @@ +\n"; + + +if($langs['code'] == "ko") { + $charset = "EUC-KR"; + $charfont = "ü"; +} else { + $charset = "iso-8859-1"; + $charfont = "tahoma,arial"; +} + +echo "\n". + "\n". + "\n". + "\n". + "\n". + "Jsboard {$board['ver']} Installation\n". + "\n\n\n". + "\n". + "\n" . + "\n
\n\n"; + +if (!$mode) { + echo "
\n\n" . + "\n" . + "\n\n" . + "\n
\n" . + "JSBoard Installer\n" . + "
\n" . + " 
\n" . + " Korean\n" . + " English
\n" . + "
 \n\n
\n" . + "\n" . + "\n" . + "
\n
\n"; +} elseif ($mode == "license") { + if ($langs['code'] == "ko") $agreefile = "../COPYING.ko"; + else $agreefile = "../COPYING"; + + $agree_ment = preg_replace("/(http:\/\/jsboard.kldp.org)/i","\\1",$agree_ment); + + echo "
\n" . + "\n" . + "\n\n" . + "\n
\n" . + "JSBoard License\n" . + "
\n"; + + if ($agent['br'] == "MSIE" || $agent['br'] == "MOZL" || ($agent['br'] == "NS" && $agent['vr'] == 6)) { + echo "\n"; + } else { + $agree_ment = file_operate($agreefile,"r"); + + if ($langs['code'] == "en") $colsize = form_size(40); + else $colsize = form_size(35); + + echo "\n"; + } + + echo "
\n" . + "\n" . + "\n" . + "\n" . + "
\n" . + "
\n"; +} elseif ($mode == "check_exec") { + echo "\n" . + "\n\n" . + "\n
\n" . + "JSBoard Environment Check\n" . + "
\n"; + + if($mysqlroot) $mcon = @mysql_connect($mysql_sock,"root","$passwd"); + else $mcon = @mysql_connect($mysql_sock,"$mysqlusername","$passwd"); + + # mysql login + if ($mcon) $mcheck = 1; + else $mcheck = 0; + + # httpd.conf DirectoryIndex index.php ϵǾ ִ + $array = file ($apache_config_file); + + $cindex = 0; + for($i=0;$i{$langs['waitm']}\n" . + "" . + "
\n" . + "{$langs['wait']}\n" . + "
\n"; + +} elseif ($mode == "check_conform") { + + if ($mcheck) $m = "OK"; + else $m = "Failed"; + + if ($cindex) $ci = "OK"; + else $ci = "Failed"; + + if ($pcheck) $p = "OK"; + else $p = "Error"; + + if (!$mcheck || !$cindex || !$pcheck) $actlink = ""; + else $actlink = "first"; + + $os_type = php_uname(); + if (preg_match("/freebsd/i",$os_type)) $os_type = "FreeBSD"; + elseif (preg_match("/openbsd/i",$os_type)) $os_type = "OpenBSD"; + elseif (preg_match("/netbsd/i",$os_type)) $os_type = "NetBSD"; + elseif (preg_match("/windows/i",$os_type)) $os_type = "Windows"; + elseif (preg_match("/linux/i",$os_type)) { + if ( file_exists ("/etc/annyung-release") ) $os_type = "AnNyung"; + elseif (file_exists("/etc/redhat-release")) $os_type = "Redhat"; + elseif (file_exists("/etc/debian_version")) $os_type = "Debian"; + else $os_type = "Linux"; + } elseif (preg_match("/solaris/i",$os_type)) $os_type = "Solaris"; + else $os_type = "Unknowns"; + + echo "
\n\n" . + "\n" . + "\n\n" . + "\n
\n" . + "JSBoard Enviornment Check Reuslt\n" . + "
\n" . + "\n 
\n\n" . + "\n\n\n". + "\n\n\n\n"; + + echo "\n\n". + "\n\n\n\n"; + + if (!$mcheck) + echo "\n\n\n\n"; + + echo "\n\n". + "\n\n\n\n"; + if ($ci == "Failed") echo "\n\n\n\n"; + + echo "\n\n". + "\n\n\n\n"; + + if ($p == "Error") { + echo "\n\n\n\n"; + } + + echo "
OS Type:$os_type
MySQL check:$m
\n{$langs['mcheck']}\n
index file check:$ci
\n{$langs['icheck']}\n
Permission check:$p
\n{$langs['pcheck']}\n
" . + "
 \n
\n
\n" . + "\n" . + "\n" . + "\n" . + "
\n
\n"; +} elseif ($mode == "first") { + if ($agent['co'] == "mozilla") $fsize = form_size(7); + else $fsize = form_size(9); + + echo "
\n" . + "\n" . + "\n\n" . + "\n
\n" . + "JSBoard Installer\n" . + "
\n" . + "\nMySQL password
\n" . + "\n" . + "\n" . + "\n" . + $submitButton. + "\n\n" . + "
\n" . + "\n" . + "\n" . + "Password {$langs['inst_r']} \n" . + "\n
\n" . + "{$langs['auser']}\n" . + "
\n" . + "\n"; +} else echo " ^0^ \n\n"; + +echo "\n

\nCopyleft 1999-$copydate by " . + "JSBoard Open Project\n" . + "\n

\n\n". + "\n"; +?> diff --git a/INSTALLER/include/check.php b/INSTALLER/include/check.php new file mode 100644 index 00000000..79127775 --- /dev/null +++ b/INSTALLER/include/check.php @@ -0,0 +1,58 @@ +\n" . + "alert('$msg')\n" . + "document.location='./session.php?mode=logout&langss={$langs['code']}'\n" . + "". + "\n"; + exit; + } +} + +# DB üũ +function inst_chk_var($db,$msg) { + if (!$db) print_error($msg,250,150,1); +} + +function inst_chk_numberic($name,$msg) { + if (preg_match("/^[0-9]/",$name)) print_error($msg,250,150,1); +} + +function inst_chk_dbname($name,$msg) { + global $indb; + for ($i=0; $i<$indb['num']; $i++) { + $dbname = mysql_dbname($indb['lists'],$i); + if ($name == $dbname) print_error($msg,250,150,1); + } +} + +function inst_chk_dbuser($name,$msg) { + global $connect, $langs; + $check = "select user from user where user = '$name'"; + $result = mysql_db_query("mysql",$check, $connect ); + $row = mysql_fetch_array($result); + if ($row) print_error($msg,250,150,1); +} + +function inst_check($chk='') { + global $dbinst, $langs; + inst_chk_var($dbinst['name'],$langs['inst_chk_varn']); + inst_chk_var($dbinst['user'],$langs['inst_chk_varu']); + inst_chk_var($dbinst['pass'],$langs['inst_chk_varp']); + + if($chk) { + inst_chk_numberic($dbinst['name'],$langs['inst_ndb']); + inst_chk_numberic($dbinst['user'],$langs['inst_udb']); + inst_chk_dbname($dbinst['name'],$langs['inst_adb']); + inst_chk_dbuser($dbinst['user'],$langs['inst_cudb']); + } + + return 1; +} +?> diff --git a/INSTALLER/include/passwd.php b/INSTALLER/include/passwd.php new file mode 100644 index 00000000..94234825 --- /dev/null +++ b/INSTALLER/include/passwd.php @@ -0,0 +1,53 @@ + diff --git a/INSTALLER/index.php b/INSTALLER/index.php new file mode 100644 index 00000000..b037b8e9 --- /dev/null +++ b/INSTALLER/index.php @@ -0,0 +1 @@ + diff --git a/INSTALLER/install.php b/INSTALLER/install.php new file mode 100644 index 00000000..b0167c5a --- /dev/null +++ b/INSTALLER/install.php @@ -0,0 +1,118 @@ +\n". + "\n". + "\n"; +} +?> + + + + +Jsboard <?=$board['ver']?> Installation + + + + + + + +
+ +
+JSBoard Mysql User Registration Page +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +> + +
DB valueADMIN value
  DB name  >  ID  
  DB user  >  NAME  
  DB pass  >  Email  
 
+ +
+ +
+ +

+

+Copyleft 1999- by +JSBoard Open Project +
+
+ + + diff --git a/INSTALLER/sample/admin/external.php.orig b/INSTALLER/sample/admin/external.php.orig new file mode 100644 index 00000000..f17be9a4 --- /dev/null +++ b/INSTALLER/sample/admin/external.php.orig @@ -0,0 +1,39 @@ + diff --git a/utils/sample/admin/global.php.orig b/INSTALLER/sample/admin/global.php.orig similarity index 59% rename from utils/sample/admin/global.php.orig rename to INSTALLER/sample/admin/global.php.orig index 4e948551..406a5a6a 100644 --- a/utils/sample/admin/global.php.orig +++ b/INSTALLER/sample/admin/global.php.orig @@ -1,83 +1,86 @@ STR"; # Table Align of board -$board['align'] = 'center'; +$board['align'] = "center"; # board web path -$board['path'] = '@WEBPATH@/'; +$board['path'] = "http://localhost/jsboard/"; + -# board Session Temp dir -$board['sessTmp'] = 'config/jsSessTMP'; +############################################################################## +# Anti Spam Configuration +############################################################################## +$board['antispam'] = "@SPAM1@:@SPAM2@:@SPAM3@"; ############################################################################## # login mode Configuration ############################################################################## # login variation name (This value must be modified as security problem) -$jsboard = '@LOGINNAME@'; +$jsboard = "login"; # Don't touch this line. -$jsboard = 'jsboard' . $jsboard; +$jsboard = "jsboard".$jsboard; # location of default page after login -$print['dpage'] = '@WEBPATH@/list.php?table=test'; +$print['dpage'] = "http://localhost/jsboard/list.php?table=test"; # location of default page after logout -$print['dopage'] = '@WEBPATH@/login.php?type=admin'; +$print['dopage'] = "http://localhost/jsboard/login.php?table=test"; # permition of user registration # 1 -> everyone # 0 -> admin only -$board['regist'] = 0; +$board['regist'] = 0; ############################################################################## # Theme Configuration ############################################################################## # Theme Name -$print['theme'] = '@THEME@'; +$print['theme'] = "@THEME@"; ############################################################################## # UPLOAD Configuration # if value of $upload['yesno'] is 0, then all board disable upload ############################################################################## -$upload['yesno'] = 1; # enable upload -$upload['dir'] = 'files'; # directory name of upload file -$upload['maxsize'] = '2000000'; # upload max size -$upload['maxtime'] = '60'; # max execution time of php script +$upload['yesno'] = 1; # enable upload +$upload['dir'] = "files"; # directory name of upload file +$upload['maxsize'] = "2000000"; # upload max size +$upload['maxtime'] = "60"; # max excutiom time of php script ############################################################################## # Config of IP Blocking # if value of $board['useipbl'] is 0, then all board disable check ip blocking. ############################################################################## -$board['useipbl'] = 0; +$board['useipbl'] = 0; ############################################################################## @@ -87,35 +90,28 @@ $board['useipbl'] = 0; $board['usedhyper'] = 0; -############################################################################## -# Captcha configuration -# if value of $board['captcha'] is 0, don't use captcha -# value is captcha db path -############################################################################## -$board['captcha'] = ''; - - ############################################################################## # Mail Configuration ############################################################################## -$rmail['uses'] = 1; +$rmail['uses'] = 1; # MTA configuration # no value -> send mail with self method of JSBoard # mail server address -> send mail with selected mail server # WARN : windows version can't select self method of JSBoard -$rmail['mta'] = '127.0.0.1'; +$rmail['mta'] = "127.0.0.1"; +$rmail['chars'] = "__at__"; ############################################################################## # Preview article contents ############################################################################## -$list['pre'] = 1; # enable preview -$list['preren'] = 100; # if enable preview, lenth of contents +$list['pre'] = 1; # enable preview +$list['preren'] = 100; # if enable preview, lenth of contents ############################################################################## # If registed article as follow information, requried passwd of super user ############################################################################## -$compare['name'] = 'admin'; -$compare['email'] = 'user@localhost.com'; +$compare['name'] = ""; +$compare['email'] = "user@localhost.com"; ?> diff --git a/INSTALLER/sample/admin/spam_list.txt.orig b/INSTALLER/sample/admin/spam_list.txt.orig new file mode 100644 index 00000000..2eabca05 --- /dev/null +++ b/INSTALLER/sample/admin/spam_list.txt.orig @@ -0,0 +1,12 @@ +# ͸ +# ù "#" ϸ ּ մϴ. +# ǥ Ͻ ֽϴ. +# +# doc/ko/README.CONFIG "3. admin mode GLOBAL " Ͽ +# Ͻʽÿ. +# +# Filtering Configuration of Article registration +# enabled to use regular expression +# disregarded keyword is start hash charactor +# use over 3 byte +# diff --git a/INSTALLER/sample/data/config.php b/INSTALLER/sample/data/config.php new file mode 100644 index 00000000..2d535d36 --- /dev/null +++ b/INSTALLER/sample/data/config.php @@ -0,0 +1,180 @@ + Խ id +# mode -> Խ +# 0 -> Խ +# 1 -> Խ (admin only write) +# 2 -> ȸ Խ +# 3 -> ȸ Խ (admin only write) +# 4 -> Խ (read, reply only) +# 5 -> ȸ Խ (read, reply only) +# 6 -> Խ (reply only admin) +# 7 -> ȸ Խ (reply only admin) +############################################################################### +# +$board['ad'] = '@ADMIN@'; +$board['mode'] = 0; + +# α ÿ ̸ Ǹ Nickname +# ȵǾ Nickname +$board['rnname'] = 0; + +# α׾ƿ Ŀ ̵ +$print['dopage'] = 'http://domain.com/jsboard/login.php?table=test'; + +############################################################################### +# Խ 㰡 +############################################################################### +# +# ̸ +# +$enable['pre'] = 0; # ̸ 㰡 +$enable['preren'] = 200; # ̸ 㰡 + +# û +# +$enable['ore'] = 0; # 0 - 1 - û + +# б⿡ ñ ñ Ʈ +# +$enable['re_list'] = 1; # 0 - 1 - + +# ĿƮ 뿩 +# +$enable['comment'] = 0; # 0 - 1 - + + +############################################################################### +# Խ ¸ +############################################################################### +# +$board['align'] = 'center'; #
+ + +############################################################################### +# Խ ⺻ +############################################################################### +# +$board['title'] = 'Test BOARD'; # Խ +$board['wrap'] = 1; # þ° +$board['wwrap'] = 120; # $board['wrap'] ȵɽ +$board['width'] = '550'; # Խ ʺ +$board['tit_l'] = 42; # ʵ ִ +$board['nam_l'] = 8; # ۾ ʵ ִ +$board['perno'] = 10; # Խù +$board['plist'] = 2; # (x2+1) + +# Ű Ⱓ () +$board['cookie'] = 30; + + +############################################################################### +# FORM SIZE +############################################################################### +# +$size['name'] = 14; # ̸ +$size['pass'] = 4; # submit button +$size['titl'] = 25; # +$size['text'] = 32; # TEXTAREA +$size['uplo'] = 19; # UPLOAD + + +############################################################################### +# ȣƮ 0 - Failed, 1 - True +############################################################################### +# +$enable['dhost'] = 0; # IP address ( ޴ ҽ) +$enable['dlook'] = 0; # DNS lookup +$enable['dwho'] = 0; # WHOIS ˻ + + +############################################################################### +# Theme Configuration +############################################################################### +# +$print['theme'] = 'EN-default'; # Theme ̸ + + +############################################################################### +# file upload +# ü ڰ ⼭ yes ؼ ̱ɵ Ҽ +############################################################################### +# +$cupload['yesno'] = 0; # upload +$cupload['dnlink'] = 0; # 0: 1: ̷Ʈ ũ + + +############################################################################### +# url,email +############################################################################### +# +$view['url'] = 1; +$view['email'] = 1; + + +############################################################################### +# mail ߼ +# ü on Ҽ ִ +############################################################################### +# +$rmail['admin'] = 0; +$rmail['user'] = 0; +$rmail['toadmin'] = 'user@localhost'; # Խ ּ + + +############################################################################### +# Ʒ Ͽ Ͻ password 䱸 +############################################################################### +# +$ccompare['name'] = ''; +$ccompare['email'] = 'username@domain.com'; + + +############################################################################### +# IP Blocking +# ڴ ';' Ѵ. +# ) 1.1.1.1;2.2.2.2;3.3.3.3 +############################################################################### +$enable['ipbl'] = ''; + + +############################################################################### +# dhyper : 0 -> ϵ +# 1 -> ϵ +# plink 쿡 ۵ +# plink : dhyper ۵ ip ּ. ';' ڷ +# ) 1.1.1.1;2.2.2.2;3.3.3.3 +############################################################################### +# +$enable['dhyper'] = 0; +$enable['plink'] = ''; + +############################################################################### +# Խ +# +# 迭 Ͽ +# $notice['subject'] -> +# $notice['body'] -> +# 쿡 ũ ȵǰ +############################################################################### +# +$notice['subject'] = ''; +$notice['contents'] = ""; + +############################################################################### +# Խ RSS +# +# $rss['use'] -> rss 뿩 +# $rss['channel'] -> rss äθ ̸ +# $rss['is_des'] -> +# $rss['align'] -> rss link ġ ( left/right ) +# $rss['color'] -> rss link color +############################################################################### +# +$rss['use'] = 0; +$rss['is_des'] = 0; +$rss['channel'] = 'JSBoard Խ'; +$rss['align'] = 1; +$rss['color'] = '#999999'; +?> diff --git a/INSTALLER/sample/data/html_head.php b/INSTALLER/sample/data/html_head.php new file mode 100644 index 00000000..ce8678e4 --- /dev/null +++ b/INSTALLER/sample/data/html_head.php @@ -0,0 +1,3 @@ + + + diff --git a/INSTALLER/sample/data/html_tail.php b/INSTALLER/sample/data/html_tail.php new file mode 100644 index 00000000..7f664ebc --- /dev/null +++ b/INSTALLER/sample/data/html_tail.php @@ -0,0 +1,7 @@ + +{$langs['u_print']}
"; +} +?> + diff --git a/INSTALLER/sample/data/stylesheet.php b/INSTALLER/sample/data/stylesheet.php new file mode 100644 index 00000000..7163338a --- /dev/null +++ b/INSTALLER/sample/data/stylesheet.php @@ -0,0 +1,3 @@ + diff --git a/INSTALLER/script/LANG/en.conf b/INSTALLER/script/LANG/en.conf new file mode 100644 index 00000000..13fb1ec8 --- /dev/null +++ b/INSTALLER/script/LANG/en.conf @@ -0,0 +1,22 @@ +################################################################# +# English Language File +################################################################# +SYSTEM_IN="# System INFORMATION" +SYSTEM_LN="# System Language : English" +SYSTEM_OS="# System OS : ${DIST}" +SYSTEM_HU="# Apache User : ${Auser}" +SYSTEM_HG="# Apache Group : ${Agroup}" +SYSTEM_MN="If isn't right upper informations, you types N and appoint new value." +SYSTEM_AL="Is right upper information? [Y/N](default Y) :" +RECONF_HU="Input value of User directive in httpd.conf : " +RECONF_HG="Input value of Group directive in httpd.conf : " +ENDMSG="DONE !!!" + +SYSTEM_GE="#-1 is not system group.\n\ +Excute again this script, after changed GROUP\n\ +directive in httpd.conf that existed group on system" + +ACC_END_MSG="Group Owner of \"config/global.ph\n\ +config/allow_browser.txt\" must set GROUP value in httpd.conf\n\ +that is operation group of Web Server. If can't set as value of\n\ +GROUP directive in httpd.conf, you will set the permission 606." diff --git a/INSTALLER/script/LANG/ko.conf b/INSTALLER/script/LANG/ko.conf new file mode 100644 index 00000000..571a8088 --- /dev/null +++ b/INSTALLER/script/LANG/ko.conf @@ -0,0 +1,22 @@ +################################################################# +# ѱ +################################################################# +SYSTEM_IN="## ý " +SYSTEM_LN="# ý : ѱ" +SYSTEM_OS="# ý Ÿ : ${DIST}" +SYSTEM_HU="# ġ : ${Auser}" +SYSTEM_HG="# ġ ׷ : ${Agroup}" +SYSTEM_MN=" Ʋ N ؼ ֽʽÿ." +SYSTEM_AL=" ½ϱ? [Y/N](default Y) : " +RECONF_HU="httpd.conf User ֽʽÿ : " +RECONF_HG="httpd.conf Group ֽʽÿ : " +ENDMSG=" Ϸ!!!" + +SYSTEM_GE="#-1 ýۿ ʴ ׷Դϴ. httpd.conf GROUP\n\ + ýۿ ϴ ׷ ϰ ũƮ\n\ + ٽ Ͻʽÿ." + +ACC_END_MSG="config/global.ph config/spam_list.txt\n\ +file group nobody ־ մϴ. \n\ +ϵ ׷ ٸ permission 606 \n\ + ֽʽÿ" diff --git a/INSTALLER/script/account b/INSTALLER/script/account new file mode 100755 index 00000000..6b4e5787 --- /dev/null +++ b/INSTALLER/script/account @@ -0,0 +1,51 @@ +#!/bin/sh +clear +echo "########################################################" +echo "# JSBoard Config File Installer v2.0 #" +echo "# Scripted By JoungKyun Kim < http://www.oops.org > #" +echo "########################################################" +echo + +echo "STEP 1 Language Check" +echo "---------------------" +echo -n "Do you want to use Koean during the installation? [Y/N](default Y) : " +read langs + +case "${langs}" in + N*|n*) + langs=en ;; + *) + langs=ko ;; +esac + +if [ "${langs}" = "ko" ]; then + . ./LANG/ko.conf +else + . ./LANG/en.conf +fi + +cp -Rp ../sample/admin/global.php.orig ../../config/global.php +cp -Rp ../sample/admin/spam_list.txt.orig ../../config/spam_list.txt +if [ -d "../../data/test" ]; then + cp -Rp ../sample/data/* ../../data/test/ +else + cp -Rp ../sample/data/ ../../data/test +fi + +# permission configuration +chmod 707 ../../config +chmod 707 ../../data +chmod 707 ../../data/test +chmod 707 ../../data/test/files +chmod 660 ../../config/global.php +chmod 660 ../../config/spam_list.txt +chmod 606 ../../data/test/config.php +chmod 606 ../../data/test/html_head.php +chmod 606 ../../data/test/html_tail.php +chmod 606 ../../data/test/stylesheet.php + +echo +echo -e ${ACC_END_MSG} +echo + +exit 0 diff --git a/INSTALLER/script/account_p b/INSTALLER/script/account_p new file mode 100755 index 00000000..d8f4b59b --- /dev/null +++ b/INSTALLER/script/account_p @@ -0,0 +1,39 @@ +#!/bin/sh +clear +echo "########################################################" +echo "# JSBoard Config File Installer v2.0 #" +echo "# Scripted By JoungKyun Kim < http://www.oops.org > #" +echo "########################################################" +echo + +echo "STEP 1 Language Check" +echo "---------------------" +echo -n "Do you want to use Korean during the installation? [Y/N](default Y) : " +read langs + +case "${langs}" in + N*|n*) + langs=en ;; + *) + langs=ko ;; +esac + +if [ "${langs}" = "ko" ]; then + . ./LANG/ko.conf +else + . ./LANG/en.conf +fi + +# permission configuration +chmod 707 ../../config +chmod 707 -R ../../data +chmod 606 ../../data/*/files/*/* +chmod 606 ../../data/*/*.* +chmod 660 ../../config/global.php +chmod 660 ../../config/spam_list.txt + +echo +echo -e ${ACC_END_MSG} +echo + +exit 0 diff --git a/INSTALLER/script/conv_udate b/INSTALLER/script/conv_udate new file mode 100755 index 00000000..ddafec38 --- /dev/null +++ b/INSTALLER/script/conv_udate @@ -0,0 +1,508 @@ +#!/bin/sh +PERL_PATH="/usr/bin/perl" +DEFAULTPATH="../.." + +echo "global.php ȯ.." +echo +ACONFFILE="${DEFAULTPATH}/config/global.php" + +rm -rf ${DEFAULTPATH}/config/themes +rm -f ${DEFAULTPATH}/config/README.THEME +rm -f ${DEFAULTPATH}/config/default.themes +rm -f ${DEFAULTPATH}/config/allow_browser.txt + +ASERVER=$(sed -n -e '/db\[server\]/ s/.*db\[server\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ASERVER}" = "" ] && ASERVER="" + +AUSER=$(sed -n -e '/db\[user\]/ s/.*db\[user\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${AUSER}" = "" ] && AUSER="" + +APASS=$(sed -n -e '/db\[pass\]/ s/.*db\[pass\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${APASS}" = "" ] && APASS="" + +ANAME=$(sed -n -e '/db\[name\]/ s/.*db\[name\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ANAME}" = "" ] && ANAME="" + +ATITLE=$(sed -n -e '/board\[title\]/ s/.*board\[title\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ATITLE}" = "" ] && ATITLE="WebBoard" + +AWIDTH=$(sed -n -e '/board\[width\]/ s/.*board\[width\][^=]*=[^\"0-9%]*[\"]*\([0-9%]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${AWIDTH}" = "" ] && AWIDTH="550" + +ATIT_L=$(sed -n -e '/board\[tit_l\]/ s/.*board\[tit_l\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${ATIT_L}" = "" ] && ATIT_L=42 + +ANAM_L=$(sed -n -e '/board\[nam_l\]/ s/.*board\[nam_l\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${ANAM_L}" = "" ] && ANAM_L=8 + +APERNO=$(sed -n -e '/board\[perno\]/ s/.*board\[perno\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${APERNO}" = "" ] && APERNO=10 + +APLIST=$(sed -n -e '/board\[plist\]/ s/.*board\[plist\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${APLIST}" = "" ] && APLIST=3 + +ALANG=$(sed -n -e '/langs\[code\]/ s/.*langs\[code\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +case ${ALANG} in + ko|KO|Ko|kO) ATHEME="KO-default" ;; + en|EN|En|eN) ATHEME="EN-default" ;; + *) ATHEME="EN-default" +esac + +ADATEF=$(sed -n -e '/board\[date_fmt\]/ s/.*board\[date_fmt\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ADATEF}" = "" ] && ADATEF="Y.m.d" + +AHL=$(sed -n -e '/board\[hl\]/ s/.*board\[hl\][^=]*=[^\"0-9a-zA-Z<>]*[\"]*\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +if [ "${AHL}" = "" ]; then + AHL="#000000" +else + AHL=${AHL##*=} + AHL=${AHL%%>*} +fi + +AALIGN=$(sed -n -e '/board\[align\]/ s/.*board\[align\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${AALIGN}" = "" ] && AALIGN="center" + +AYESNO=$(sed -n -e '/upload\[yesno\]/ s/.*upload\[yesno\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +case ${AYESNO} in + y*|Y*) AYESNO=1;; + *) AYESNO=0;; +esac + +ADIR=$(sed -n -e '/upload\[dir\]/ s/.*upload\[dir\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ADIR}" = "" ] && ADIR="files" + +AMAX=$(sed -n -e '/upload\[maxsize\]/ s/.*upload\[maxsize\][^=]*=[^\"0-9%]*[\"]*\([0-9%]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${AMAX}" = "" ] && AMAX="2000000" + +AUSES=$(sed -n -e '/rmail\[uses\]/ s/.*rmail\[uses\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +case ${AUSES} in + y*|Y*) AUSES=1;; + *) AUSES=0;; +esac + +ASMTP=$(sed -n -e '/rmail\[smtp\]/ s/.*rmail\[smtp\][^=]*=[^\"0-9a-zA-Z\xA1-\xFE\.]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ASMTP}" = "" ] && ASMTP="127.0.0.1" + +ABBS=$(sed -n -e '/rmail\[bbshome\]/ s/.*rmail\[bbshome\][^=]*=[^\"0-9a-zA-Z\xA1-\xFE\.]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ABBS}" = "" ] && ABBS="http://127.0.0.1/jsboard/" + +APRE=$(sed -n -e '/list\[pre\]/ s/.*list\[pre\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${APRE}" = "" ] && APRE=0 + +APREN=$(sed -n -e '/list\[preren\]/ s/.*list\[preren\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${ACONFFILE}) +[ "${APREN}" = "" ] && APREN=100 + +ACNAME=$(sed -n -e '/compare\[name\]/ s/.*compare\[name\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ACNAME}" = "" ] && ACNAME="" + +ACMAIL=$(sed -n -e '/compare\[email\]/ s/.*compare\[email\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${ACONFFILE}) +[ "${ACMAIL}" = "" ] && ACMAIL="" + +ASPAM1=$(${PERL_PATH} -e "print int(rand(89999)) + 10001") +ASPAM2=$(${PERL_PATH} -e "print int(rand(89)) + 11") +ASPAM3=$(${PERL_PATH} -e "print int(rand(89)) + 11") + +cp -af ${DEFAULTPATH}/config/global.php ${DEFAULTPATH}/config/global.php.orig + +echo "STR\"; + +# Table Align of board +\$board[align] = \"${AALIGN}\"; + +# web path of installed jsboard +\$board[path] = \"${ABBS}\"; + + +############################################################################## +# Anti Spam Configuration +############################################################################## +\$board[antispam] = \"${ASPAM1}:${ASPAM2}:${ASPAM3}\"; + + +############################################################################## +# login mode Configuration +############################################################################## +# login variation name (This value must be modified as security problem) +\$jsboard = \"login\"; + +# Don't touch this line. +\$jsboard = \"jsboard\".\$jsboard; + +# location of default page after login +\$print[dpage] = \"${ABBS}list.php?table=test\"; + +# location of default page after logout +\$print[dopage] = \"${ABBS}list.php?table=test\"; + +# permition of user registration +# 1 -> everyone +# 0 -> admin only +\$board[regist] = 0; + + +############################################################################## +# Theme Configuration +############################################################################## +# Theme Name +\$print[theme] = \"${ATHEME}\"; + + +############################################################################## +# UPLOAD Configuration +# if value of \$upload[yesno] is 0, then all board disable upload +############################################################################## +\$upload[yesno] = ${AYESNO}; # enable upload +\$upload[dir] = \"${ADIR}\"; # directory name of upload file +\$upload[maxsize] = \"${AMAX}\"; # upload max size + + +############################################################################## +# Config of IP Blocking +# if value of \$board[useipbl] is 0, then all board disable check ip blocking. +############################################################################## +\$board[useipbl] = 0; + + +############################################################################## +# Control Access From Remote Hyper Link +# if value of \$board[usedhyper] is 0, then all board disable check dhyper. +############################################################################## +\$board[usedhyper] = 0; + + +############################################################################## +# Mail Configuration +############################################################################## +\$rmail[uses] = ${AUSES}; +# MTA configuration +# no value -> send mail with self method of JSBoard +# mail server address -> send mail with selected mail server +# WARN : windows version can't select self method of JSBoard +\$rmail[mta] = \"${ASMTP}\"; +# charactor of converted mail address +\$rmail[chars] = \"__at__\"; + + +############################################################################## +# Preview article contents +############################################################################## +\$list[pre] = ${APRE}; # enable preview +\$list[preren] = ${APREN}; # if enable preview, lenth of contents + + +############################################################################## +# If registed article as follow information, requried passwd of super user +############################################################################## +\$compare[name] = \"${ACNAME}\"; +\$compare[email] = \"${ACMAIL}\"; +?>" > ${DEFAULTPATH}/config/global.php + + +# Խ +TARGET=$(ls -l ${DEFAULTPATH}/data | grep -e "^d" | awk '{print $9}' | sed -e 's/\///') + +for i in ${TARGET} +do + + echo "${i} Խ ۾" + + # ʿ ׸ + rm -f "${DEFAULTPATH}/data/${i}/default.themes" + CONFFILE="${DEFAULTPATH}/data/${i}/config.php" + + # ̸ 㰡 + PRE=$(sed -n -e '/enable\[pre\]/ s/.*enable\[pre\][^=]*=[^\"0-9]*[\"]*\([0-9 ]*\)[\"]*;.*/\1/p;' ${CONFFILE}) + [ "${PRE}" = "" ] && PRE=0 + + # ̸ 㰡 ۱ + PREREN=$(sed -n -e '/enable\[preren\]/ s/.*enable\[preren\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${PREREN}" = "" ] && PREREN=100 + + # + ORE=$(sed -n -e '/enable\[ore\]/ s/.*enable\[ore\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${ORE}" = "" ] && ORE=0 + + # ñ Ʈ + RE_LIST=$(sed -n -e '/enable\[re_list\]/ s/.*enable\[re_list\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${RE_LIST}" = "" ] && RE_LIST=0 + + # align + ALIGN=$(sed -n -e '/board\[align\]/ s/.*board\[align\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${ALIGN}" = "" ] && ALIGN="center" + + # Խ + TITLE=$(sed -n -e '/board\[title\]/ s/.*board\[title\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${TITLE}" = "" ] && TITLE="" + + # þ° + WRAP=$(sed -n -e '/board\[wrap\]/ s/.*board\[wrap\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${WRAP}" = "" ] && WRAP=0 + + WWRAP=$(sed -n -e '/board\[wwrap\]/ s/.*board\[wwrap\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${WWRAP}" = "" ] && WWRAP=120 + + # Խ ʺ + WIDTH=$(sed -n -e '/board\[width\]/ s/.*board\[width\][^=]*=[^\"0-9%]*[\"]*\([0-9%]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${WIDTH}" = "" ] && WIDTH=550 + + # ʵ ִ + TIT_L=$(sed -n -e '/board\[tit_l\]/ s/.*board\[tit_l\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${TIT_L}" = "" ] && TIT_L=38 + + # ۾ ʵ ִ + NAM_L=$(sed -n -e '/board\[nam_l\]/ s/.*board\[nam_l\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${NAM_L}" = "" ] && NAM_L=8 + + # Խù + PERNO=$(sed -n -e '/board\[perno\]/ s/.*board\[perno\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${PERNO}" = "" ] && PERNO=10 + + # + PLIST=$(sed -n -e '/board\[plist\]/ s/.*board\[plist\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${PLIST}" = "" ] && PLIST=3 + + # Ű + COOKIE=$(sed -n -e '/board\[cookie\]/ s/.*board\[cookie\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${COOKIE}" = "" ] && COOKIE=30 + + # IP address ( ޴ ҽ) + DHOST=$(sed -n -e '/enable\[dhost\]/ s/.*enable\[dhost\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${DHOST}" = "" ] && DHOST=0 + + # DNS lookup + DLOOK=$(sed -n -e '/enable\[dlook\]/ s/.*enable\[dlook\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${DLOOK}" = "" ] && DLOOK=0 + + # WHOIS ˻ + DWHO=$(sed -n -e '/enable\[dwho\]/ s/.*enable\[dwho\][^=]*=[^\"0-9]*[\"]*\([0-9]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${DWHO}" = "" ] && DWHO=0 + + # upload + YESNO=$(sed -n -e '/cupload\[yesno\]/ s/.*cupload\[yesno\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + + case ${YESNO} in + y*|Y*) YESNO=1;; + *) YESNO=0;; + esac + + # URL + VURL=$(sed -n -e '/view\[url\]/ s/.*view\[url\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + + case ${VURL} in + y*|Y*) VURL=1;; + *) VURL=0;; + esac + + # EMAIL + VEMAIL=$(sed -n -e '/view\[email\]/ s/.*view\[email\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + + case ${VEMAIL} in + y*|Y*) VEMAIL=1;; + *) VEMAIL=0;; + esac + + # ߼ () + RADMIN=$(sed -n -e '/rmail\[admin\]/ s/.*rmail\[admin\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + + case ${RADMIN} in + y*|Y*) RADMIN=1;; + *) RADMIN=0;; + esac + + # ߼ () + RUSER=$(sed -n -e '/rmail\[user\]/ s/.*rmail\[user\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + + case ${RUSER} in + y*|Y*) RUSER=1;; + *) RUSER=0;; + esac + + # ߼ ּ() + TOADMIN=$(sed -n -e '/rmail\[toadmin\]/ s/.*rmail\[toadmin\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${TOADMIN}" = "" ] && TOADMIN="" + + + # н 䱸 (̸) + CNAME=$(sed -n -e '/ccompare\[name\]/ s/.*ccompare\[name\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${CNAME}" = "" ] && CNAME="" + + # н 䱸 () + CEMAIL=$(sed -n -e '/ccompare\[email\]/ s/.*ccompare\[email\][^=]*=[^\"a-zA-Z\xA1-\xFE]*[\"]\([^\"]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + [ "${CEMAIL}" = "" ] && CEMAIL="" + + # LANGUAGE üũ + CLANG=$(sed -n -e '/langs\[code\]/ s/.*langs\[code\][^=]*=[^\"a-zA-Z]*[\"]*\([a-zA-Z]*\)[\" ]*;.*/\1/p;' ${CONFFILE}) + case ${CLANG} in + ko|KO|Ko|kO) CTHEME="KO-default" ;; + en|EN|En|eN) CTHEME="EN-default" ;; + *) CTHEME="EN-default" + esac + + cp -af ${DEFAULTPATH}/data/${i}/config.php ${DEFAULTPATH}/data/${i}/config.php.old + + echo " Խ id +# mode -> Խ +# 0 -> Խ +# 1 -> Խ (admin only write) +# 2 -> ȸ Խ +# 3 -> ȸ Խ (admin only write) +# 4 -> Խ (read, reply only) +# 5 -> ȸ Խ (read, reply only) +# 6 -> Խ (reply only admin) +# 7 -> ȸ Խ (reply only admin) +############################################################################### +# +\$board[ad] = \"admin\"; +\$board[mode] = 0; + +# α ÿ ̸ Ǹ Nickname +# ȵǾ Nickname +\$board[rnname] = 0; + +# α׾ƿ Ŀ ̵ +\$print[dopage] = \"${ABBS}list.php?table=${i}\"; + + +############################################################################### +# Խ 㰡 +############################################################################### +# +\$enable[pre] = ${PRE}; # ̸ 㰡 +\$enable[preren] = ${PREREN}; # ̸ 㰡 + +# û +# +\$enable[ore] = ${ORE}; # 0 - 1 - û + +# б⿡ ñ ñ Ʈ +# +\$enable[re_list] = ${RE_LIST}; # 0 - 1 - + + +############################################################################### +# Խ ¸ +############################################################################### +# +\$board[align] = \"${ALIGN}\"; #
+ + +############################################################################### +# Խ ⺻ +############################################################################### +# +\$board[title] = \"${TITLE}\"; # Խ +\$board[wrap] = ${WRAP}; # þ° +\$board[wwrap] = ${WWRAP}; # \$board[wrap] ȵɽ +\$board[width] = \"${WIDTH}\"; # Խ ʺ +\$board[tit_l] = ${TIT_L}; # ʵ ִ +\$board[nam_l] = ${NAM_L}; # ۾ ʵ ִ +\$board[perno] = ${PERNO}; # Խù +\$board[plist] = ${PLIST}; # (x2) + +# Ű Ⱓ () +\$board[cookie] = ${COOKIE}; + + +############################################################################### +# ȣƮ 0 - Failed, 1 - True +############################################################################### +# +\$enable[dhost] = ${DHOST}; # IP address ( ޴ ҽ) +\$enable[dlook] = ${DLOOK}; # DNS lookup +\$enable[dwho] = ${DWHO}; # WHOIS ˻ + + +############################################################################### +# Theme Configuration +############################################################################### +# +\$print[theme] = \"${CTHEME}\"; # Theme ̸ + + +############################################################################### +# file upload +# ü ڰ ⼭ yes ص ̱ Ҽ +############################################################################### +# +\$cupload[yesno] = ${YESNO}; # upload + + +############################################################################### +# url,email +############################################################################### +# +\$view[url] = ${VURL}; +\$view[email] = ${VEMAIL}; + + +############################################################################### +# mail ߼ +# ü on Ҽ ִ +############################################################################### +# +\$rmail[admin] = ${RADMIN}; +\$rmail[user] = ${RUSER}; +\$rmail[toadmin] = \"${TOADMIN}\"; # Խ ּ + + +############################################################################### +# Ʒ Ͽ Ͻ password 䱸 +############################################################################### +# +\$ccompare[name] = \"${CNAME}\"; +\$ccompare[email] = \"${CEMAIL}\"; + + +############################################################################### +# IP Blocking +# ڴ ';' Ѵ. +# ) 1.1.1.1;2.2.2.2;3.3.3.3 +############################################################################### +\$enable[ipbl] = \"\"; + + +############################################################################### +# ۸ũ +# dhyper : 0 -> ϵ +# 1 -> ϵ +# plink 쿡 ۵ +# plink : dhyper ۵ ip ּ. ';' ڷ +# ) 1.1.1.1;2.2.2.2;3.3.3.3 +############################################################################### +# +\$enable[dhyper] = 0; +\$enable[plink] = \"\"; +?>" > ${DEFAULTPATH}/data/${i}/config.php + +done + +exit 0 diff --git a/INSTALLER/script/dbconv_to_20 b/INSTALLER/script/dbconv_to_20 new file mode 100755 index 00000000..6e858f99 --- /dev/null +++ b/INSTALLER/script/dbconv_to_20 @@ -0,0 +1,38 @@ +#!/bin/sh + +# Ʒ global.php DB ϰ Է. +# jsboard ̸ +DB_USER= + +# jsboard н +DB_PASS= + +# jsboard database ̸ +DB_NAME= + +# ϴ database JSBoard ϴ table ٸ +# ̺ 쿡 JSBoard table +# Ѵ. +# ex> TARGET="qna faq freeboard" +# +TARGET="" + +# mysql client path +# find /usr -name mysql ã Ѵ. +MPATH=/usr/bin/mysql + +if [ "${TARGET}" = "" ]; then + TARGET=$(mysql -u${DB_USER} -p${DB_PASS} ${DB_NAME} -e "show tables" | grep -v "Tables_in_\|userdb") +fi + +for i in ${TARGET} +do + if [ "${TARGET}" != "userdb" ]; then + echo "Converting ${i} table ......." + ${MPATH} -u${DB_USER} -p${DB_PASS} ${DB_NAME} -e "ALTER TABLE ${i} ADD rname tinytext" + ${MPATH} -u${DB_USER} -p${DB_PASS} ${DB_NAME} -e "ALTER TABLE ${i} DROP moder" + ${MPATH} -u${DB_USER} -p${DB_PASS} ${DB_NAME} -e "ALTER TABLE ${i} MODIFY passwd varchar(56)" + fi +done + +exit 0 diff --git a/INSTALLER/script/preinstall b/INSTALLER/script/preinstall new file mode 100755 index 00000000..916b5def --- /dev/null +++ b/INSTALLER/script/preinstall @@ -0,0 +1,156 @@ +#!/bin/sh +clear +echo "########################################################" +echo "# JSBoard Pre Installer v2.0 #" +echo "# Scripted By JoungKyun Kim < http://www.oops.org > #" +echo "########################################################" +echo + +EXE= + +echo "STEP 1 Language Check" +echo "---------------------" +echo -n "Can you enable to use KOREAN in this console? [Y/N](default Y) : " +read langs + +case "${langs}" in + N*|n*) + langs=en ;; + *) + langs=ko ;; +esac + +me=$(whoami) + +if [ "${me}" != "root" ]; then + if [ "${langs}" = "ko" ]; then + echo + echo " !!!" + echo " ${me} ϰ ֽϴ." + echo " Ʈ Ʈ Ͻʽÿ" + echo + else + echo + echo "Attention !!!" + echo "Now, U are running this file as ${me} user." + echo "If u have root privilege, U must excute this file as root user." + echo + fi + + if [ "${langs}" = "ko" ]; then + echo "Root ٽ ۾ Ͻðڽϱ?" + echo -n "Root ٸ N Ͻʽÿ. [Y/N](default N) : " + else + echo "Do you continue as root user?" + echo -n "If you can't login as root, type N. [Y/N](default N) : " + fi + read priv + + case "${priv}" in + Y*|y*) + priv=y ;; + *) + priv=n ;; + esac + + if [ "${priv}" = "y" ]; then + if [ "${langs}" = "ko" ]; then + echo + echo "root α Ͻ Ŀ ٽ ֽʽÿ" + else + echo + echo "Excute this file after login as root user" + fi + exit 0 + fi +fi + +if [ ! -d "../../data" ]; then + mkdir ../../data +fi + +if [ ! -d "../../config" ]; then + mkdir ../../config +fi + +if [ "${me}" = "root" ]; then + #AUSER=$(ps aux | grep -E "apache|httpd" | grep -v ^root | grep -v grep | awk '{print $1}' | uniq) + AUSER=$(ps aux|awk '{print $1,$2}'|grep "$(ps ax|grep -E 'apache|httpd'|grep -v grep|awk '{print $1}')"|grep -v ^root|awk '{print $1}'|uniq) + + if [ "${langs}" = "ko" ]; then + echo + echo "ġ ${AUSER} ۵ϰ ִµ ͽϴ." + echo "½ϱ? ( httpd.conf Group ڿ Ǿ" + echo -n "ִ ġؾ մϴ. [Y/N](default Y) : " + else + echo + echo "Maybe apache is running as ${AUSER} privilege. is Right? This value" + echo -n "is confirmed value of Group directive in httpd.conf [Y/N](default Y) : " + fi + + read achk + + case "${achk}" in + N*|n*) + achk=n ;; + *) + achk=y ;; + esac + + if [ "${achk}" = "n" ]; then + AUSER= + while [ true ] + do + if [ "${AUSER}" != "" ]; then + break + else + if [ "${langs}" = "ko" ]; then + echo + echo -n "httpd.conf Group ־ ֽʽÿ : " + else + echo + echo -n "Input value of Group directive in httpd.conf : " + fi + read AUSER + fi + done + fi + + chgrp ${AUSER} ../../config > /dev/null 2>&1 + [ "$?" != "0" ] && EXE=1 + chgrp ${AUSER} ../../data > /dev/null 2>&1 + [ "$?" != "0" ] && EXE=1 + chmod 731 ../../config > /dev/null 2>&1 + [ "$?" != "0" ] && EXE=1 + chmod 775 ../../data > /dev/null 2>&1 + [ "$?" != "0" ] && EXE=1 + + if [ "${EXE}" = "1" ]; then + if [ "${langs}" = "ko" ]; then + echo + echo "${AUSER} ߸ Դϴ. httpd.conf Group " + echo " ȮϽð ٽ õϽʽÿ" + else + echo + echo "Value ${AUSER} is incollect. Retry after confirms value of" + echo "Group directive in httpd.conf" + fi + exit 1 + fi + +else + chmod 707 ../../config + chmod 707 ../../data +fi + +if [ "${langs}" = "ko" ]; then + echo + echo "۾ Ϸ Ǿϴ. jsboard/INSTALLER/include/passwd.ph " + echo " Ŀ, jsboard/INSTALLER/ Ͽ echo " + echo "ġ Ͻñ ٶϴ." +else + echo + echo "Complete this working. After Edit jsboard/INSTALLER/include/passwd.ph and" + echo " access jsboard/INSTALLER with web browser, continue install jop" +fi +exit 0 diff --git a/INSTALLER/script/root b/INSTALLER/script/root new file mode 100755 index 00000000..febad6cf --- /dev/null +++ b/INSTALLER/script/root @@ -0,0 +1,152 @@ +#!/bin/sh +clear +echo "########################################################" +echo "# JSBoard Config File Installer v2.0 #" +echo "# Scripted By JoungKyun Kim < http://www.oops.org > #" +echo "########################################################" +echo + +echo "STEP 1 Language Check" +echo "---------------------" +echo -n "Do you want to use Korean during the installation? [Y/N](default Y) : " +read langs + +case "${langs}" in + N*|n*) + langs=en ;; + *) + langs=ko ;; +esac + +# location of apache configuration file +if [ -f "/etc/httpd/conf/httpd.conf" ] ;then + CONF="/etc/httpd/conf/httpd.conf" +elif [ -f "/etc/www/conf/httpd.conf" ]; then + CONF="/etc/www/conf/httpd.conf" +elif [ -f "/etc/www/httpd.conf" ]; then + CONF="/etc/www/httpd.conf" +elif [ -f "/usr/local/apache/conf/httpd.conf" ]; then + CONF="/usr/local/apache/conf/httpd.conf" +elif [ -f "/usr/local/etc/apache/httpd.conf" ]; then + CONF="/usr/local/etc/apache/httpd.conf" +elif [ -f "/etc/apache/conf/commonapache.conf" ]; then + CONF="/etc/apache/conf/commonapache.conf" +else + while [ true ]; + do + if [ "${langs}" = "ko" ]; then + echo + echo "ERROR : httpd.conf ã ϴ." + echo -n "httpd.conf θ ֽʽÿ : " + else + echo + echo "ERROR : Can't find httpd.conf" + echo -n "Please specify the location of httpd.conf : " + + fi + read CONF + + [ -f "${CONF}" ] && break + done +fi + +DIST=`uname -s` +Auser=$(ps uax | grep -E "apache|httpd" | grep -v ^root | grep -v grep | awk '{print $1}' | uniq) +Agroup=$(cat ${CONF} | grep -E "^(`echo -ne "\t"`|[ ])*Group " | awk '{print $2}') + +if [ "${langs}" = "ko" ]; then + . ./LANG/ko.conf +else + . ./LANG/en.conf +fi + +echo +echo "########################################################" +echo "${SYSTEM_IN}" +echo "########################################################" +echo "#" +echo "${SYSTEM_LN}" +echo "${SYSTEM_OS}" +echo "${SYSTEM_HU}" +echo "${SYSTEM_HG}" +echo "#" +echo "########################################################" +echo +echo + +if [ "${Agroup}" = "#-1" ]; then + echo -e "${SYSTEM_GE}" + exit 1 +else + echo "${SYSTEM_MN}" + echo -n "${SYSTEM_AL}" + read INFO +fi + +case "${INFO}" in + N*|n*) + INFO=N ;; + *) + INFO=Y ;; +esac + +if [ "$INFO" = "N" ] ; then + echo + echo "1. Webserver user configuration" + echo -n "${RECONF_HU}" + read Auser + + while [ true ]; do + if [ ${Auser} ]; then + break; + else + echo -n "${RECONF_HU}" + read Auser + fi + done + + echo + echo "2. Webserver group configuration" + echo -n "${RECONF_HG}" + read Agroup + + while [ true ]; do + if [ ${Agroup} ]; then + break; + else + echo -n "${RECONF_HG}" + read Agroup + fi + done +fi + +cp -Rp ../sample/admin/global.php.orig ../../config/global.php +cp -Rp ../sample/admin/spam_list.txt.orig ../../config/spam_list.txt +if [ -d "../../data/test" ]; then + cp -Rp ../sample/data/* ../../data/test/ +else + cp -Rp ../sample/data ../../data/test +fi + +# owner configuration +chgrp ${Agroup} ../../config +chgrp -R ${Agroup} ../../data/ +chgrp ${Agroup} ../../config/global.php +chgrp ${Agroup} ../../config/spam_list.txt + +# permission configuration +chmod 731 ../../config +chmod 775 ../../data +chmod 775 ../../data/test +chmod 775 ../../data/test/files +chmod 664 ../../config/spam_list.txt +chmod 660 ../../config/global.php +chmod 664 ../../data/test/config.php +chmod 664 ../../data/test/html_head.php +chmod 664 ../../data/test/html_tail.php +chmod 664 ../../data/test/stylesheet.php + +echo +echo "${ENDMSG}" +echo +exit 0 diff --git a/INSTALLER/script/root_p b/INSTALLER/script/root_p new file mode 100755 index 00000000..fe2aa36c --- /dev/null +++ b/INSTALLER/script/root_p @@ -0,0 +1,143 @@ +#!/bin/sh +clear +echo "########################################################" +echo "# JSBoard Config File Permissioner v2.0 #" +echo "# Scripted By JoungKyun Kim < http://www.oops.org > #" +echo "########################################################" +echo + +echo "STEP 1 Language Check" +echo "---------------------" +echo -n "Do you want to use Korean during the installation? [Y/N](default Y) : " +read langs + +case "${langs}" in + N*|n*) + langs=en ;; + *) + langs=ko ;; +esac + +# location of apache configuration file +if [ -f "/etc/httpd/conf/httpd.conf" ] ;then + CONF="/etc/httpd/conf/httpd.conf" +elif [ -f "/etc/www/conf/httpd.conf" ]; then + CONF="/etc/www/conf/httpd.conf" +elif [ -f "/etc/www/httpd.conf" ]; then + CONF="/etc/www/httpd.conf" +elif [ -f "/usr/local/apache/conf/httpd.conf" ]; then + CONF="/usr/local/apache/conf/httpd.conf" +elif [ -f "/usr/local/etc/apache/httpd.conf" ]; then + CONF="/usr/local/etc/apache/httpd.conf" +elif [ -f "/etc/apache/conf/commonapache.conf" ]; then + CONF="/etc/apache/conf/commonapache.conf" +else + while [ true ]; + do + if [ "${langs}" = "ko" ]; then + echo + echo "^[[1;31mERROR^[[7;0m : httpd.conf ã ϴ." + echo -n "httpd.conf θ ֽʽÿ : " + else + echo + echo "^[[1;31mERROR^[[7;0m : Can't find httpd.conf" + echo -n "Please specify the location of httpd.conf : " + fi + read CONF + + [ -f "${CONF}" ] && break + done +fi + +DIST=`uname -s` +Auser=$(ps uax | grep -E "apache|httpd" | grep -v ^root | grep -v grep | awk '{print $1}' | uniq) +Agroup=$(cat ${CONF} | grep -E "^(`echo -ne "\t"`|[ ])*Group " | awk '{print $2}') + +if [ "${langs}" = "ko" ]; then + . ./LANG/ko.conf +else + . ./LANG/en.conf +fi + +echo +echo "########################################################" +echo "${SYSTEM_IN}" +echo "########################################################" +echo "#" +echo "${SYSTEM_LN}" +echo "${SYSTEM_OS}" +echo "${SYSTEM_HU}" +echo "${SYSTEM_HG}" +echo "#" +echo "########################################################" +echo +echo + +if [ "${Agroup}" = "#-1" ]; then + echo -e "${SYSTEM_GE}" + exit 1 +else + echo "${SYSTEM_MN}" + echo -n "${SYSTEM_AL}" + read INFO +fi + +case "${INFO}" in + N*|n*) + INFO=N ;; + *) + INFO=Y ;; +esac + +if [ "$INFO" = "N" ] ; then + echo + echo "1. Webserver user configuration" + echo -n "${RECONF_HU}" + read Auser + + while [ true ]; do + if [ ${Auser} ]; then + break; + else + echo -n "${RECONF_HU}" + read Auser + fi + done + + echo + echo "2. Webserver group configuration" + echo -n "${RECONF_HG}" + read Agroup + + while [ true ]; do + if [ ${Agroup} ]; then + break; + else + echo -n "${RECONF_HG}" + read Agroup + fi + done +fi + +# owner configuration +chgrp ${Agroup} ../../config +chgrp -R ${Agroup} ../../data/ +chgrp ${Agroup} ../../config/global.php +chgrp ${Agroup} ../../config/spam_list.txt + +# permission configuration +chmod 731 ../../config +chmod 775 ../../data +chmod 775 ../../data/* +chmod 775 ../../data/*/files +chmod 775 ../../data/*/files/* +chmod 664 ../../data/*/files/*/* +chmod 664 ../../data/*/*.* +chmod 664 ../../config/spam_list.txt +chmod 660 ../../config/global.php + +echo +echo "${ENDMSG}" +echo + +exit 0 diff --git a/INSTALLER/session.php b/INSTALLER/session.php new file mode 100644 index 00000000..6e7e9903 --- /dev/null +++ b/INSTALLER/session.php @@ -0,0 +1,29 @@ +\n",$str); + echo "\n". + "\n"; + exit; +} +?> diff --git a/README b/README index 28f61e9f..bc4dd6bf 100644 --- a/README +++ b/README @@ -1,7 +1,5 @@ -$Id: README,v 1.3 2009-11-16 21:52:45 oops Exp $ - ENGLISH message -goto doc/en +goto jsboard/doc/en KOREAN message -goto doc/ko +goto jsboard/doc/ko diff --git a/SQL/mysql/board.sql b/SQL/mysql/board.sql deleted file mode 100644 index 883abf74..00000000 --- a/SQL/mysql/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ) TYPE=MyISAM; diff --git a/SQL/mysql/comment.sql b/SQL/mysql/comment.sql deleted file mode 100644 index c0bcad85..00000000 --- a/SQL/mysql/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ) TYPE=MyISAM; - diff --git a/SQL/mysql/userdb.sql b/SQL/mysql/userdb.sql deleted file mode 100644 index 14e2edbf..00000000 --- a/SQL/mysql/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ) TYPE=MyISAM; - diff --git a/SQL/mysql3/board.sql b/SQL/mysql3/board.sql deleted file mode 100644 index bc4b057c..00000000 --- a/SQL/mysql3/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ); diff --git a/SQL/mysql3/comment.sql b/SQL/mysql3/comment.sql deleted file mode 100644 index 5a652e38..00000000 --- a/SQL/mysql3/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ); - diff --git a/SQL/mysql3/userdb.sql b/SQL/mysql3/userdb.sql deleted file mode 100644 index e23889d4..00000000 --- a/SQL/mysql3/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ); - diff --git a/SQL/mysql4/board.sql b/SQL/mysql4/board.sql deleted file mode 100644 index 6bc2a35f..00000000 --- a/SQL/mysql4/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ) diff --git a/SQL/mysql4/comment.sql b/SQL/mysql4/comment.sql deleted file mode 100644 index e84024a8..00000000 --- a/SQL/mysql4/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ) - diff --git a/SQL/mysql4/userdb.sql b/SQL/mysql4/userdb.sql deleted file mode 100644 index 65a6de4d..00000000 --- a/SQL/mysql4/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ) - diff --git a/SQL/mysql41/board.sql b/SQL/mysql41/board.sql deleted file mode 100644 index bf492fd9..00000000 --- a/SQL/mysql41/board.sql +++ /dev/null @@ -1,37 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@ ( - no int(6) NOT NULL auto_increment, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4), - KEY no (no), - KEY num (num), - KEY idx (idx), - KEY reno (reno), - KEY date (date), - KEY reto (reto), - KEY comm (comm), - PRIMARY KEY (no) - ) CHARSET=euckr diff --git a/SQL/mysql41/comment.sql b/SQL/mysql41/comment.sql deleted file mode 100644 index 84d8bd3e..00000000 --- a/SQL/mysql41/comment.sql +++ /dev/null @@ -1,18 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE @table@_comm ( - no int(6) NOT NULL auto_increment, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0', - PRIMARY KEY (no), - KEY parent (reno) - ) CHARSET=euckr - diff --git a/SQL/mysql41/userdb.sql b/SQL/mysql41/userdb.sql deleted file mode 100644 index c8a3e4cf..00000000 --- a/SQL/mysql41/userdb.sql +++ /dev/null @@ -1,20 +0,0 @@ -# sql -# # ڴ ּ ó -# sql ̾ tab ؾ . -# õ - -CREATE TABLE userdb ( - no int(6) NOT NULL auto_increment, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0', - PRIMARY KEY (no), - KEY no (no), - UNIQUE KEY nid (nid), - KEY name (name), - KEY position (position) - ) CHARSET=euckr - diff --git a/SQL/pgsql/board.sql b/SQL/pgsql/board.sql deleted file mode 100644 index 16d77b29..00000000 --- a/SQL/pgsql/board.sql +++ /dev/null @@ -1,38 +0,0 @@ --- --- sql --- ù -- ϸ ش ּ ó --- sql ̾ tab ؾ . --- õ --- - -CREATE TABLE @table@ ( - no serial NOT NULL, - num int DEFAULT '0' NOT NULL, - idx int DEFAULT '0' NOT NULL, - date int DEFAULT '0' NOT NULL, - host text, - name text, - rname text, - passwd varchar(56), - email text, - url text, - title text, - text text, - refer int DEFAULT '0' NOT NULL, - reyn int DEFAULT '0' NOT NULL, - reno int DEFAULT '0' NOT NULL, - rede int DEFAULT '0' NOT NULL, - reto int DEFAULT '0' NOT NULL, - html int DEFAULT '1' NOT NULL, - comm int DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int, - PRIMARY KEY (no) - ) without oids; -CREATE INDEX @table@_num_i on @table@ (num); -CREATE INDEX @table@_idx_i on @table@ (idx); -CREATE INDEX @table@_reno_i on @table@ (reno); -CREATE INDEX @table@_date_i on @table@ (date); -CREATE INDEX @table@_reto_i on @table@ (reto); -CREATE INDEX @table@_comm_i on @table@ (comm); diff --git a/SQL/pgsql/comment.sql b/SQL/pgsql/comment.sql deleted file mode 100644 index 91dca8ce..00000000 --- a/SQL/pgsql/comment.sql +++ /dev/null @@ -1,19 +0,0 @@ --- --- sql --- ù -- ϸ ش ּ ó --- sql ̾ tab ؾ . --- õ --- - -CREATE TABLE @table@_comm ( - no serial NOT NULL, - reno int NOT NULL default '0', - rname text, - name text, - passwd varchar(56) default NULL, - text text, - host text, - date int NOT NULL default '0', - PRIMARY KEY (no) - ) without oids; -CREATE INDEX @table@_comm_reno_i on @table@_comm (reno); diff --git a/SQL/pgsql/userdb.sql b/SQL/pgsql/userdb.sql deleted file mode 100644 index e6a612a1..00000000 --- a/SQL/pgsql/userdb.sql +++ /dev/null @@ -1,21 +0,0 @@ --- --- sql --- ù -- ϸ ش ּ ó --- sql ̾ tab ؾ . --- õ --- - -CREATE TABLE userdb ( - no serial NOT NULL, - nid varchar(30) NOT NULL default '', - name varchar(30) NOT NULL default '', - email text NOT NULL, - url text NOT NULL, - passwd varchar(100) NOT NULL default '', - position int NOT NULL default '0', - PRIMARY KEY (no) - ) without oids; -CREATE UNIQUE INDEX userdb_nid_i on userdb (nid); -CREATE INDEX userdb_name_i on userdb (name); -CREATE INDEX userdb_position_i on userdb (position); - diff --git a/SQL/sqlite/board.sql b/SQL/sqlite/board.sql deleted file mode 100644 index 356a89c0..00000000 --- a/SQL/sqlite/board.sql +++ /dev/null @@ -1,30 +0,0 @@ -CREATE TABLE @table@ ( - no integer NOT NULL PRIMARY KEY, - num int(6) DEFAULT '0' NOT NULL, - idx int(6) DEFAULT '0' NOT NULL, - date int(11) DEFAULT '0' NOT NULL, - host tinytext, - name tinytext, - rname tinytext, - passwd varchar(56), - email tinytext, - url tinytext, - title tinytext, - text mediumtext, - refer int(6) DEFAULT '0' NOT NULL, - reyn int(1) DEFAULT '0' NOT NULL, - reno int(6) DEFAULT '0' NOT NULL, - rede int(6) DEFAULT '0' NOT NULL, - reto int(6) DEFAULT '0' NOT NULL, - html int(1) DEFAULT '1' NOT NULL, - comm int(6) DEFAULT '0' NOT NULL, - bofile varchar(100), - bcfile varchar(100), - bfsize int(4) - ); -CREATE INDEX @table@_num_i on @table@(num); -CREATE INDEX @table@_idx_i on @table@(idx); -CREATE INDEX @table@_date_i on @table@(date); -CREATE INDEX @table@_reno_i on @table@(reno); -CREATE INDEX @table@_reto_i on @table@(reto); -CREATE INDEX @table@_comm_i on @table@(comm); diff --git a/SQL/sqlite/comment.sql b/SQL/sqlite/comment.sql deleted file mode 100644 index 562decef..00000000 --- a/SQL/sqlite/comment.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE TABLE @table@_comm ( - no integer NOT NULL PRIMARY KEY, - reno int(20) NOT NULL default '0', - rname tinytext, - name tinytext, - passwd varchar(56) default NULL, - text mediumtext, - host tinytext, - date int(11) NOT NULL default '0' - ); -CREATE INDEX @table@_comm_reno_i on @table@_comm(reno); diff --git a/SQL/sqlite/userdb.sql b/SQL/sqlite/userdb.sql deleted file mode 100644 index 98d2c4cf..00000000 --- a/SQL/sqlite/userdb.sql +++ /dev/null @@ -1,13 +0,0 @@ -CREATE TABLE userdb ( - no integer NOT NULL PRIMARY KEY, - nid varchar(30) UNIQUE NOT NULL, - name varchar(30) NOT NULL, - email tinytext NOT NULL, - url tinytext NOT NULL, - passwd varchar(100) NOT NULL default '', - position int(1) NOT NULL default '0' - ); -CREATE INDEX userdb_nid_i on userdb(nid); -CREATE INDEX userdb_name_i on userdb(name); -CREATE INDEX userdb_pos_i on userdb(position); - diff --git a/act.php b/act.php index 4ae20259..39d91073 100644 --- a/act.php +++ b/act.php @@ -1,6 +1,4 @@ disable === true ) - return; - - if ( ! $atc['ckey'] || ! $atc['ckeyv'] ) - print_error ($_('captnokey'),250,150,1); - - if ( $capt->check ($atc['ckey'], $atc['ckeyv']) === false ) - print_error ($_('captinvalid'),250,150,1); - } + if(!$board['adm'] && $board['super'] != 1) print_error($langs['login_err']); # Խù ۼ Լ function article_post($table, $atc) { - global $jsboard, $board, $upload, $cupload, $rmail, $_, $agent; - global $print, $max_file_size, $c, $db, $o; + global $jsboard, $board, $upload, $cupload, $rmail, $langs, $agent; + global $print, $max_file_size; - if($board['mode'] == 4 && $board['super'] != 1 && !$board['adm']) print_error($_('login_err')); + if($board['mode'] == 4 && $board['super'] != 1 && !$board['adm']) print_error($langs['login_err']); $atc['date'] = time(); # ð $atc['host'] = get_hostname(0); # ۾ ּ - # Injection html Ѵ. - # phpbb bb tag ó - $atc['html'] = 2; - - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); + # Ͻÿ html header tag ϴ Ѵ. + if($atc['html']) $atc['text'] = delete_tag($atc['text']); $atc = article_check($table, $atc); if(preg_match("/^0|4|6$/",$board['mode'])) $atc['passwd'] = crypt($atc['passwd']); # ü ڰ Ͽÿ upload Ҽ - if ($upload['yesno'] && $cupload['yesno'] && !$agent['tx']) { + if ($upload['yesno'] && $cupload['yesno'] && $agent['br'] != "LYNX") { $bfilename = date("YmdHis",$atc['date']); $upfile = file_upload("userfile",$bfilename); @@ -88,24 +53,18 @@ function article_post($table, $atc) { $upfile['name'] = ""; } - sql_escape ($c, $table); - sql_escape ($c, $atc); - - $result = sql_query("SELECT MAX(num) AS num, MAX(idx) AS idx FROM $table", $c); - $_rr = sql_fetch_array ($result); - - $atc['mxnum'] = $_rr['num'] + 1; # ְ ȣ - $atc['mxidx'] = $_rr['idx'] + 1; # ְ ε ȣ - + $result = sql_query("SELECT MAX(num) AS num, MAX(idx) AS idx FROM $table"); + $atc['mxnum'] = sql_result($result, 0, "num") + 1; # ְ ȣ + $atc['mxidx'] = sql_result($result, 0, "idx") + 1; # ְ ε ȣ sql_free_result($result); - sql_query("INSERT INTO $table (num,idx,date,host,name,rname,passwd,email,url, + sql_query("INSERT INTO $table (no,num,idx,date,host,name,rname,passwd,email,url, title,text,refer,reyn,reno,rede,reto,html,comm,bofile, bcfile,bfsize) - VALUES ('{$atc['mxnum']}','{$atc['mxidx']}',{$atc['date']},'{$atc['host']}', + VALUES ('','{$atc['mxnum']}','{$atc['mxidx']}',{$atc['date']},'{$atc['host']}', '{$atc['name']}','{$atc['rname']}','{$atc['passwd']}','{$atc['email']}', '{$atc['url']}','{$atc['title']}','{$atc['text']}',0,0,0,0,0,'{$atc['html']}', 0, - '{$upfile['name']}','{$bfilename}','{$upfile['size']}')", $c); + '{$upfile['name']}','{$bfilename}','{$upfile['size']}')"); # mail κ if ($rmail['uses']) { @@ -118,7 +77,7 @@ function article_post($table, $atc) { $rmail['version'] = $board['ver']; $rmail['path'] = $board['path']; $rmail['table'] = $table; - $rmail['noquery'] = sql_query("SELECT MAX(no) AS no FROM $table", $c); + $rmail['noquery'] = sql_query("SELECT MAX(no) AS no FROM $table"); $rmail['no'] = sql_result($rmail['noquery'], 0, "no"); # ְ ȣ $rmail['reply_orig_email'] = $rmail['origmail']; $rmail['theme'] = $print['theme']; @@ -135,27 +94,23 @@ function article_post($table, $atc) { # Խù Լ function article_reply($table, $atc) { - global $board,$upload,$cupload,$rmail,$_,$agent,$jsboard,$page; - global $print, $max_file_size, $c, $db, $referer; + global $board,$upload,$cupload,$rmail,$langs,$agent,$jsboard,$page; + global $print, $max_file_size; $atc['date'] = time(); # ð $atc['host'] = get_hostname(0); # ۾ ּ - # Injection html Ѵ. - # phpbb bb tag ó - $atc['html'] = 2; - - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); + # Ͻÿ html header tag ϴ Ѵ. + if($atc['html']) $atc['text'] = delete_tag($atc['text']); # ۿ : и Ѵ. $atc['text'] = preg_replace("/(^[:]+ [^\r\n]+)\r?\n([^:\r\n]+\r?\n)/mi","\\1 \\2",$atc['text']); $atc = article_check($table, $atc); - if(preg_match("/^(0|4)$/",$board['mode']) || !session_is_registered($jsboard)) $atc['passwd'] = crypt($atc['passwd']); + if(preg_match("/^(0|4)$/",$board['mode']) || !session_is_registered("$jsboard")) $atc['passwd'] = crypt($atc['passwd']); # 亯 file upload κ, ü ڰ ÿ - if ($upload['yesno'] && $cupload['yesno'] && !$agent['tx']) { + if ($upload['yesno'] && $cupload['yesno'] && $agent['br'] != "LYNX") { $bfilename = date("YmdHis",$atc['date']); $upfile = file_upload("userfile",$bfilename); if(!trim($upfile['name'])) { @@ -170,12 +125,8 @@ function article_reply($table, $atc) { $upfile['name'] = ""; } - # referer ȣ θ ȣ ٸ ó - if ( $atc['reno'] != $referer['no'] ) - print_error($_('act_s'),250,150,1); - # ۿ - table_lock ($c, $table, 1); + sql_query("LOCK TABLES $table WRITE"); $reply = get_article($table, $atc['reno']); $atc['rede'] = $reply['rede'] + 1; # $atc['idx'] = $reply['idx']; # θ ε ȣ @@ -183,25 +134,22 @@ function article_reply($table, $atc) { if($reply['reto']) $atc['reto'] = $reply['reto']; # ֻ θ ȣ else $atc['reto'] = $reply['no']; # θ ȣ - sql_escape ($c, $table); - sql_escape ($c, $atc); - # θ ̻ ε ȣ ۵ ε 1 - sql_query("UPDATE $table SET idx = idx + 1 WHERE (idx + 0) >= '{$atc['idx']}'", $c); - sql_query("UPDATE $table SET reyn = 1 WHERE no = '{$atc['reno']}'", $c, $db['name']); - sql_query("INSERT INTO $table (num,idx,date,host,name,rname,passwd,email,url, + sql_query("UPDATE $table SET idx = idx + 1 WHERE (idx + 0) >= '{$atc['idx']}'"); + sql_query("UPDATE $table SET reyn = 1 WHERE no = '{$atc['reno']}'"); + sql_query("INSERT INTO $table (no,num,idx,date,host,name,rname,passwd,email,url, title,text,refer,reyn,reno,rede,reto,html,comm,bofile, bcfile,bfsize) - VALUES (0,'{$atc['idx']}','{$atc['date']}','{$atc['host']}','{$atc['name']}','{$atc['rname']}', + VALUES ('',0,'{$atc['idx']}','{$atc['date']}','{$atc['host']}','{$atc['name']}','{$atc['rname']}', '{$atc['passwd']}','{$atc['email']}','{$atc['url']}','{$atc['title']}','{$atc['text']}', 0,0,'{$atc['reno']}','{$atc['rede']}','{$atc['reto']}','{$atc['html']}',0,'{$upfile['name']}', - '{$bfilename}','{$upfile['size']}')", $c); - table_lock ($c, $table, 0); + '{$bfilename}','{$upfile['size']}')"); + sql_query("UNLOCK TABLES"); # mail κ if ($rmail['uses']) { if ($rmail['admin'] || $rmail['user']) { - $result = sql_query("SELECT MAX(no) AS no FROM $table", $c); + $result = sql_query("SELECT MAX(no) AS no FROM $table"); $rmail['no'] = sql_result($result, 0, "no"); # ְ ȣ $rmail['name'] = $atc['rtname']; $rmail['text'] = $atc['text']; @@ -227,34 +175,32 @@ function article_reply($table, $atc) { # Խù Լ function article_edit($table, $atc, $passwd) { - global $max_file_size, $jsboard, $board, $_, $agent, $rmail; - global $upload, $cupload, $c, $db; + global $max_file_size, $jsboard, $board, $langs, $agent, $rmail; + global $upload, $cupload; # 尡 ƴ н if($board['super'] != 1 && !$board['adm']) { - if(!check_passwd($table,$atc['no'],trim($passwd))) print_error($_('act_pw'), 250, 150, 1); + if(!check_passwd($table,$atc['no'],trim($passwd))) print_error($langs['act_pw'],250,150,1); } $atc['date'] = time(); # ð $atc['host'] = get_hostname(0); # ۾ ּ + if(eregi($rmail['chars'],$atc['email'])) $atc['email'] = str_replace($rmail['chars'],"@",$atc['email']); $atc = article_check($table, $atc); - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); + # Ͻÿ html header tag ϴ Ѵ. + if($atc['html']) $atc['text'] = delete_tag($atc['text']); # ۿ : и Ѵ. $atc['text'] = preg_replace("/(^[:]+ [^\r\n]+)\r?\n([^:\r\n]+\r?\n)/mi","\\1 \\2",$atc['text']); - sql_escape ($c, $table); - sql_escape ($c, $atc); - # file ƾ if($atc['fdel']) { - $fdelqy = sql_query("SELECT bcfile, bofile FROM {$table} WHERE no = '{$atc['no']}'", $c); + $fdelqy = sql_query("SELECT bcfile, bofile FROM {$table} WHERE no = '{$atc['no']}'"); $fdelinfo = sql_fetch_array($fdelqy); sql_free_result($fdelqy); - sql_query("UPDATE $table SET bcfile='', bofile='', bfsize='' WHERE no = '{$atc['no']}'", $c); + sql_query("UPDATE $table SET bcfile='', bofile='', bfsize='' WHERE no = '{$atc['no']}'"); if(file_exists("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}")) { unlink("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}"); rmdir("data/$table/files/{$fdelinfo['bcfile']}"); @@ -262,13 +208,13 @@ function article_edit($table, $atc, $passwd) { } # file ƾ - if($upload['yesno'] && $cupload['yesno'] && !$agent['tx']) { + if($upload['yesno'] && $cupload['yesno'] && $agent['br'] != "LYNX") { # file ƾ $bfilename = date("YmdHis",$atc['date']); $upfile = file_upload("userfile",$bfilename); if (trim($upfile['name'])) { - $fdelqy = sql_query("SELECT bcfile, bofile FROM {$table} WHERE no = '{$atc['no']}'", $c); + $fdelqy = sql_query("SELECT bcfile, bofile FROM {$table} WHERE no = '{$atc['no']}'"); $fdelinfo = sql_fetch_array($fdelqy); sql_free_result($fdelqy); if(file_exists("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}") && trim($fdelinfo['bofile'])) { @@ -284,7 +230,7 @@ function article_edit($table, $atc, $passwd) { UPDATE $table SET date = '{$atc['date']}', host = '{$atc['host']}', name = '{$atc['name']}', email = '{$atc['email']}', url = '{$atc['url']}', title = '{$atc['title']}', text = '{$atc['text']}', html = '{$atc['html']}'$upquery - WHERE no = '{$atc['no']}'", $c); + WHERE no = '{$atc['no']}'"); set_cookie($atc); @@ -293,35 +239,32 @@ function article_edit($table, $atc, $passwd) { # Խù Լ function article_delete($table, $no, $passwd) { - global $jsboard, $o, $_, $board, $page, $c, $db; + global $jsboard, $o, $langs, $board, $page; global $delete_filename, $delete_dir, $upload, $agent; $atc = get_article($table, $no); # 尡 ƴ н if($board['super'] != 1 && !$board['adm']) { $admchk = check_passwd($table,$atc['no'],trim($passwd)); - if(!$admchk) print_error($_('act_pwm'),250,150,1); + if(!$admchk) print_error($langs['act_pwm'],250,150,1); } # 尡 ƴ ϸ ޼ if($atc['reyn'] && ($board['super'] != 1 && !$board['adm'] && $admchk != 2)) - print_error($_('act_c'),250,150,1); - - sql_escape ($c, $table); - sql_escape ($c, $atc); + print_error($langs['act_c'],250,150,1); # θ ڽ ۿ θ reyn ʱȭ ( ) if($atc['reno']) { - $result = sql_query("SELECT COUNT(*) AS cnt FROM $table WHERE reno = '{$atc['reno']}'", $c); - if( sql_result ($result, 0, 'cnt') == 1 ) - sql_query("UPDATE $table SET reyn = 0 WHERE no = '{$atc['reno']}'", $c); + $result = sql_query("SELECT COUNT(*) FROM $table WHERE reno = '{$atc['reno']}'"); + if(sql_result($result, 0, "COUNT(*)") == 1) + sql_query("UPDATE $table SET reyn = 0 WHERE no = '{$atc['reno']}'"); sql_free_result($result); } - sql_query("DELETE FROM {$table}_comm WHERE reno = '{$atc['no']}'", $c, 1); - table_lock ($c, $table, 1); - sql_query("DELETE FROM $table WHERE no = '{$atc['no']}'", $c); - sql_query("UPDATE $table SET idx = idx - 1 WHERE (idx + 0) > '{$atc['idx']}'", $c); + sql_query("DELETE FROM {$table}_comm WHERE reno = '{$atc['no']}'","",1); + sql_query("LOCK TABLES $table WRITE"); + sql_query("DELETE FROM $table WHERE no = '{$atc['no']}'"); + sql_query("UPDATE $table SET idx = idx - 1 WHERE (idx + 0) > '{$atc['idx']}'"); if(!$atc['reyn']) { # upload file @@ -333,9 +276,9 @@ function article_delete($table, $no, $passwd) { # ñ ñ ( ) if($atc['reyn'] && ($board['super'] == 1 || $board['adm'] || $admchk == 2)) { - $result = sql_query("SELECT no,bofile,bcfile FROM $table WHERE reno = '{$atc['no']}'", $c); + $result = sql_query("SELECT no,bofile,bcfile FROM $table WHERE reno = '{$atc['no']}'"); while($list = sql_fetch_array($result)) { - table_lock ($c, $table, 0); + sql_query("UNLOCK TABLES"); article_delete($table, $list['no'], $passwd); # upload file if ($list['bofile'] && file_exists("./data/$table/{$upload['dir']}/{$list['bcfile']}/{$list['bofile']}")) { @@ -346,14 +289,13 @@ function article_delete($table, $no, $passwd) { } $page = !$page ? get_current_page($table, $atc['idx']) : $page; - table_lock ($c, $table, 0); + sql_query("UNLOCK TABLES"); return $page; } function comment_post($table,$atc) { - global $jsboard, $board, $_, $ccompare, $compare; - global $c, $db; + global $jsboard, $board, $langs, $ccompare, $compare; $host = get_hostname(0); $dates = time(); @@ -363,8 +305,8 @@ function comment_post($table,$atc) { $nameChk = array("name","text"); for($bc=0;$bc<2;$bc++) { if(!$atc[$nameChk[$bc]] || preg_match("/^$blankChk$/i",trim($atc[$nameChk[$bc]]))) { - $_lang['act_in'] = preg_replace("/,/i","",$_('act_in')); - print_error($_lang['act_in'],250,150,1); + $langs['act_in'] = preg_replace("/,/i","",$langs['act_in']); + print_error($langs['act_in'],250,150,1); } } @@ -375,14 +317,14 @@ function comment_post($table,$atc) { if((!$board['mode'] || $board['mode'] == 4) && $board['super'] != 1 && !$board['adm']) { # ü н - $result = sql_query("SELECT passwd FROM userdb WHERE position = 1", $c); + $result = sql_query("SELECT passwd FROM userdb WHERE position = 1"); $r['su'] = sql_result($result,0,"passwd"); sql_free_result($result); if($r['su'] != crypt($atc['passwd'],$r['su'])) $notsuper = 1; if ($cmp['name']) { - if($notsuper) print_error($_('act_ad'),250,150,1); + if($notsuper) print_error($langs['act_ad'],250,150,1); } if($ccmp['name'] && $notsuper) { @@ -390,7 +332,7 @@ function comment_post($table,$atc) { for($k=0;$k]*)>!i","!<(/(iframe|script|img))>!i"); - $editsrc = array("<\\1>","<\\1>"); - $atc['text'] = preg_replace($denysrc,$editsrc,$atc['text']); + $denyiframe = array("!<(iframe[^>]*)>!i","!<(/iframe)>!i"); + $editiframe = array("<\\1>","<\\1>"); + $atc['text'] = preg_replace($denyiframe,$editiframe,$atc['text']); } $compare['email'] = trim($compare['email']) ? $compare['email'] : "mail check"; @@ -504,21 +431,21 @@ function article_check($table, $atc) { if($o['at'] == "edit") $atc['passwd'] = $passwd; # ü н - $result = sql_query("SELECT passwd FROM userdb WHERE position = 1", $c); + $result = sql_query("SELECT passwd FROM userdb WHERE position = 1"); $r['su'] = sql_result($result,0,"passwd"); sql_free_result($result); if ($r['su'] != crypt($atc['passwd'],$r['su'])) $notsuper = 1; if ($cmp['name'] || $cmp['email']) { - if($notsuper) print_error($_('act_ad'),250,150,1); + if($notsuper) print_error($langs['act_ad'],250,150,1); } if (($ccmp['name'] || $ccmp['email']) && $notsuper) { $arrayadm = explode(";",$board['ad']); for($k=0;$khistory.back()"; + exit; } else { - echo ""; + echo ""; exit; } ?> diff --git a/admin/act.php b/admin/act.php index f6ccc7d4..1703f945 100644 --- a/admin/act.php +++ b/admin/act.php @@ -1,165 +1,194 @@ A-Za-z0-9_ - if ( preg_match ('/[^a-z0-9_]/i', $new_table) ) - print_error ($_('tb_rule'), 250, 150, 1); +else if($mode == 'db_create') { + $tbl_list = mysql_list_tables($db['name']); # θ ̸ üũ - table_name_check ($new_table); - + table_name_check($new_table); + # table list üũ + table_list_check($db['name']); # ̸ Խ ִ Ȯ - if ( $new_table == 'userdb' || db_table_list ($c, $db['name'], '', $new_table) ) - print_error ($_('a_acc'), 250, 150, 1); - - $_sql['r'] = array ('b', 'c'); - $_sql['b'] = sql_parser ($db['type'], 'board', $new_table, 1); - $_sql['c'] = sql_parser ($db['type'], 'comment', $new_table, 1); - - # create table - foreach ( $_sql['r'] as $_o ) { - if ( is_array ($_sql[$_o]) ) { - foreach ( $_sql[$_o] as $_s ) { - sql_query ($_s, $c); - } - } - } - - /* - require_once "include/first_reg.php"; - $_dr['p'] = crypt($passwd_ext); - $_cr['b'] = "INSERT INTO test (num, idx, date, host, name, passwd, email, url, title," . - " text, refer, reyn, reno, rede, reto, html, comm, bofile," . - " bcfile, bfsize)" . - "VALUES (1, 1, '{$_dr['d']}', '127.0.0.1', '{$_dr['n']}', '{$_dr['p']}'," . - " '{$_dr['e']}', '{$_dr['u']}', '{$_dr['s']}', '{$_dr['b']}', 0, 0," . - " 0, 0, 0, 0, 0, '', '', '')"; - - sql_query ($_cr['b'], $c); - */ - sql_close ($c); + same_db_check($tbl_list,$new_table); + + #include "include/first_reg.php"; + $create_table = "CREATE TABLE $new_table ( + no int(6) DEFAULT '0' NOT NULL auto_increment, + num int(6) DEFAULT '0' NOT NULL, + idx int(6) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + rname tinytext, + passwd varchar(56), + email tinytext, + url tinytext, + title tinytext, + text mediumtext, + refer int(6) DEFAULT '0' NOT NULL, + reyn int(1) DEFAULT '0' NOT NULL, + reno int(6) DEFAULT '0' NOT NULL, + rede int(6) DEFAULT '0' NOT NULL, + reto int(6) DEFAULT '0' NOT NULL, + html int(1) DEFAULT '1' NOT NULL, + comm int(6) DEFAULT '0' NOT NULL, + bofile varchar(100), + bcfile varchar(100), + bfsize int(4), + KEY no (no), + KEY num (num), + KEY idx (idx), + KEY reno (reno), + KEY date (date), + KEY reto (reto), + KEY comm (comm), + PRIMARY KEY (no))"; + + $create_comm = "CREATE TABLE {$new_table}_comm ( + no int(6) NOT NULL auto_increment, + reno int(20) NOT NULL default '0', + rname tinytext, + name tinytext, + passwd varchar(56) default NULL, + text mediumtext, + host tinytext, + date int(11) NOT NULL default '0', + PRIMARY KEY (no), + KEY parent (reno))"; + + $passwd_ext = crypt($passwd_ext); + + $insert_data = "INSERT INTO $new_table (no,num,idx,date,host,name,passwd,email,url,title, + text,refer,reyn,reno,rede,reto,html,comm,bofile,bcfile,bfsize) + VALUES ('',1,1,$date,'$host_ext','$name_ext','$passwd_ext','$email_ext', + '$url_ext','$subj_msg','$text_msg',0,0,0,0,0,0,0,'','','')"; + + mysql_query($create_table, $connect); + sql_error(mysql_errno(),mysql_error()); + #$result_insert = mysql_query($insert_data, $connect); + + mysql_query($create_comm, $connect); + sql_error(mysql_errno(),mysql_error()); # ο Խǿ ʿ Ϲ 丮 - mkdir("../data/{$new_table}",0770); - mkdir("../data/{$new_table}/{$upload['dir']}",0770); - chmod("../data/{$new_table}",0775); - chmod("../data/{$new_table}/{$upload['dir']}",0775); - - $_co = readfile_r ("../utils/sample/data/config.php"); - $_sr = array ('/@theme@/', '/@table@/', '/@wpath@/'); - $_dr = array ($print['theme'], $new_table, $board['path']); - $_co = preg_replace ($_sr, $_dr, $_co); - - writefile_r ("../data/{$new_table}/config.php", $_co); - chmod("../data/{$new_table}/config.php",0644); - - copy("../utils/sample/data/html_head.php","../data/$new_table/html_head.php"); - chmod("../data/{$new_table}/html_head.php",0644); - copy("../utils/sample/data/html_tail.php","../data/$new_table/html_tail.php"); - chmod("../data/{$new_table}/html_tail.php",0644); - copy("../utils/sample/data/stylesheet.php","../data/$new_table/stylesheet.php"); - chmod("../data/{$new_table}/stylesheet.php",0644); + mkdir("../data/$new_table",0700); + mkdir("../data/$new_table/{$upload['dir']}",0700); + chmod("../data/$new_table",0755); + chmod("../data/$new_table/{$upload['dir']}",0755); + copy("../INSTALLER/sample/data/config.php","../data/$new_table/config.php"); + chmod("../data/$new_table/config.php",0644); + copy("../INSTALLER/sample/data/html_head.php","../data/$new_table/html_head.php"); + chmod("../data/$new_table/html_head.php",0644); + copy("../INSTALLER/sample/data/html_tail.php","../data/$new_table/html_tail.php"); + chmod("../data/$new_table/html_tail.php",0644); + copy("../INSTALLER/sample/data/stylesheet.php","../data/$new_table/stylesheet.php"); + chmod("../data/$new_table/stylesheet.php",0644); + + mysql_close(); } -else if( $mode == 'global_chg' ) { - sql_close ($c); +else if($mode == "global_chg") { + mysql_close(); # quot ȯ ڸ un quot Ѵ - $vars = ""; - $spam = stripslashes ($glob['spam']); - - writefile_r ('../config/global.php', $vars); - writefile_r ('../config/spam_list.txt', $spam); + $vars = ""; + $spam = stripslashes($glob['spam']); - $_lang['act_complete'] = str_replace ("\n", "\\n", $_('act_complete')); - $_lang['act_complete'] = str_replace ("'", "\'", $_lang['act_complete']); + file_operate("../config/global.php","w",0,$vars); + file_operate("../config/spam_list.txt","w",0,$spam); - echo "\n". ""; exit; diff --git a/admin/admin.php b/admin/admin.php index 1e11316c..d7942d1e 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -1,190 +1,176 @@ \n". "Administration Center\n"; } else { - echo "\n". - "\n" . + "\n" . + "
\n\n". - "\n\n
\n". + echo "\n". + "\n" . + "\n
\n\n". + "\n\n
\n". "\n\n". - "\n". - "\n". + "\n". + "\n". "\n\n\n". - "\n". + "\n". "\n
\n". - "J SBoard\n". + "J SBoard
Administration CenterAdministration Center
\n". "
\n\n"; } # db_name Ʒ մϴ. -exsit_dbname_check ($db['name']); +exsit_dbname_check($db['name']); -if( $db['name'] && ! $table ) { - echo "\n". - "\n"; +if($db['name'] && !$table) { + echo "
\n". + "\n"; - if ( $agent['tx'] ) { - echo '\n". - '\n". - '\n". - '\n"; + if($textBrowser) { + echo "\n". + "\n". + "\n". + "\n"; } else { - echo "\n". - "\n". - "\n". + echo "\n". + "\n". + "\n". "\n\n". - "\n". - "\n". - "\n"; + "\n". + "\n". + "\n"; } echo ""; - $table_name = db_table_list ($c, $db['name'], $ts); - $tbl_num = sizeof ($table_name); + $table_name = get_tblist($db['name'],$ts); + $tbl_num = sizeof($table_name); - if ( ! $start && ! $page ) { $start = 0; $page = 1; } - else if ( $page == 1 ) $start = 0; - else if ( $page > 1 ) $start = $page * $sadmin['pern'] - $sadmin['pern']; + if(!$start && !$page) { $start = 0; $page = 1; } + else if($page == 1) $start = 0; + else if($page > 1) $start = $page*$sadmin['pern']-$sadmin['pern']; $nowpage = $page; - $until = $start + $sadmin['pern']; - $priv = $page - 1; - $next = $page + 1; + $until = $start+$sadmin['pern']; + $priv = $page-1; + $next = $page+1; # ¥ data ¥ ϵ մϴ. - $current_time = curdate (); + $current = "SELECT UNIX_TIMESTAMP(CURDATE()) as curdate"; + $result = mysql_query($current,$connect); + $current_time = mysql_result($result,0,"curdate"); # scale - if ( $tbl_num > 1 ) { - for ( $i=$start; $i<$until; $i++ ) { - if ( $i < $tbl_num && $table_name[$i] != "userdb" ) { - # jsboard ϴ Խ Ǵ - $chk = "SELECT idx FROM {$table_name[$i]} WHERE idx = 1;"; - $chk_result = sql_query ($chk, $c, 1); + if($tbl_num > 0) { + for($i=$start; $i<$until; $i++) { + if($i < $tbl_num && $table_name[$i] != "userdb") { + # jsboard ϴ Խ Ǵ + $chk = "select idx from $table_name[$i] where idx = 1;"; + $chk_result = mysql_query($chk,$connect); # table ϵ check մϴ. - $total = "SELECT COUNT(*) AS cnt FROM {$table_name[$i]}"; - $result = sql_query ($total, $c); + $total = "select count(*) from $table_name[$i]"; + $result = mysql_query($total,$connect); - $total_count = sql_result ($result, 0, 'cnt'); + $total_count = mysql_result($result,0,"COUNT(*)"); # table ϵ ۵ մϴ. - if ($chk_result) - $to = $to + $total_count; - $total = "SELECT COUNT(*) AS cnt FROM {$table_name[$i]} WHERE date > '$current_time'"; + $to = $to + $total_count; + $total = "select count(*) from $table_name[$i] where date > '$current_time'"; - $result = sql_query ($total, $c, 1); - $total_today = sql_result ($result, 0, 'cnt'); - $total_today = ! $total_today ? 0 : $total_today; + $result = mysql_query($total,$connect ); + $total_today = @mysql_result($result,0,"COUNT(*)"); + $total_today = !$total_today ? 0 : $total_today; # ϵ ۵ մϴ. - if ($chk_result) - $to_today = $to_today + $total_today; - - echo "\n". - "\n". - "\n". - "\n"; - - if ( $chk_result && $table_name[$i] != "userdb" ) { - if ( $agent['tx'] ) { - echo "\n". + "\n". + "\n". + "\n"; + + if($chk_result && $table_name[$i] != "userdb") { + if($textBrowser) { + echo "\n"; } else { - echo "\n"; + echo "\n"; } } else { - if( preg_match ('/_comm/', $table_name[$i]) ) { - $table_explain = str_replace ('_comm', '', $table_name[$i]); - $table_explain = "{$table_explain} Comment"; - } else - $table_explain = 'Not JSBoard table'; - - echo "\n"; + if(preg_match("/_comm/",$table_name[$i])) { + $table_explain = preg_replace("/_comm/","",$table_name[$i]); + $table_explain = "$table_explain Comment"; + } else $table_explain = "Not JSBoard table"; + echo "\n"; } } } } else { - echo "\n". - "\n". + echo "\n". + "\n". ""; } # ü ϵ Ȯ - for ( $t = 0; $t < $tbl_num; $t++ ) { - # jsboard ϴ Խ Ǵ - $chk = "select idx from $table_name[$t] where idx = 1;"; - if (($chk_result = sql_query($chk,$c,true)) === false) { - if (!preg_match('/_comm/', $table_name[$t])) - continue; - } - + for($t = 0; $t < $tbl_num; $t++) { # table ϵ check մϴ. - $total_t = "SELECT COUNT(*) AS cnt FROM {$table_name[$t]}"; - $result_t = sql_query ($total_t, $c); - $total_count_t = sql_result ($result_t, 0, 'cnt'); + $total_t = "select count(*) from $table_name[$t]"; + $result_t = mysql_query($total_t,$connect ); + $total_count_t = mysql_result($result_t, 0, "COUNT(*)"); # table ϵ ۵ մϴ. $to_t = $to_t + $total_count_t; - $total_t = "SELECT COUNT(*) AS cnt FROM {$table_name[$t]} WHERE date > '$current_time'"; - $result_t = sql_query ($total_t, $c, 1); - $total_today_t = sql_result ($result_t, 0, 'cnt'); + $total_t = "select count(*) from $table_name[$t] where date > '$current_time'"; + $result_t = mysql_query($total_t,$connect ); + $total_today_t = @mysql_result($result_t, 0, "COUNT(*)"); # ϵ ۵ մϴ. $to_today_t = $to_today_t + $total_today_t; } - - sql_close ($c); - $to = !$to ? "0" : $to; $to_t = !$to_t ? "0" : $to_t; $to_today = !$to_today ? "0" : $to_today; @@ -194,64 +180,61 @@ $userclick = $_SESSION[$jsboard]['external'] ? "window.alert('External user table Can\'t be Use')" : "document.location='./userlist.php?t=a'"; - echo "\n\n". - "\n". - "\n". - "\n". - "\n". + "\n". + "\n". + "\n". + "\n\n\n"; - - if ( $agent['tx'] ) { - echo "\n\n\n". + "\n". + "\n". + "\n". + "\n". "\n\n". - "\n". + "\n\n\n". - "\n". + "\n\n\n". + "\n". "\n\n\n". + "\n". + "\n\n". - "\n\n". + "\n\n\n". - "\n". + "\n\n\n". - "\n". - "\n\n\n". + "\n". + "\n". - "\n". "\n\n" . - "\n" . - "\n
' . $_('a_t1') . "' . $_('a_t3') . "' . $_('a_t4') . "' . $_('a_t5') . "{$langs['a_t1']}{$langs['a_t3']}{$langs['a_t4']}{$langs['a_t5']}" . $_('a_t1') . "" . $_('a_t2') . "" . $_('a_t5') . "{$langs['a_t1']}{$langs['a_t2']}{$langs['a_t5']}
" . $_('a_t3') . "" . $_('a_t4') . "
{$langs['a_t3']}{$langs['a_t4']}
   {$table_name[$i]}{$total_today}   {$total_count}   \n". - "" . $_('a_t7') . "\n". - "" . $_('a_t8') . "\n". - "" . $_('a_t17') . "\n". - "" . $_('a_t9') . "\n". + $to_today = $to_today + $total_today; + + echo "
   {$table_name[$i]}$total_today   $total_count   \n". + "{$langs['a_t7']}\n". + "{$langs['a_t8']}\n". + "{$langs['a_t17']}\n". + "{$langs['a_t9']}\n". "
\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "
\n". + "\n". + "\n". + "\n". + "\n". + "\n". + "\n". + "\n". + "
\n". - "{$table_explain}\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "
\n". + "$table_explain\n". + "\n". + "\n". + "\n". + "\n". + "\n". + "

" . - $_('n_acc') . "
 

{$langs['n_acc']}
 
{$_lang['a_t41']} [ " . $_('a_t16') . " ]{$to_today} [{$to_today_t}]{$to} [{$to_t}]\n"; - if($agent['tx']) { - $userclick = $_SESSION[$jsboard]['external'] ? "[ " . $_('a_t20') . " ]" : "[ " . $_('a_t20') . " ]"; + echo "\n
{$langs['a_t41']} [ {$langs['a_t16']} ]$to_today [$to_today_t]$to [$to_t]\n"; + if($textBrowser) { + $userclick = $_SESSION[$jsboard]['external'] ? "[ {$langs['a_t20']} ]" : "[ {$langs['a_t20']} ]"; echo "$userclick\n". - "[ " . $_('a_t11') . " ]\n"; + "[ {$langs['a_t11']} ]\n"; } else { - echo "\n". - "\n"; + echo "\n". + "\n"; } - echo "
\n" . - "
\n". - "  " . $_('a_t12') . " :\n". - "\n". - "\n". + + if($textBrowser) { + echo "
  {$langs['a_t12']} :\n". + "\n". + "\n". "\n". - "\n". - "
\n" . - "
\n" . - "  " . $_('a_t14') . " :\n". - "\n". - "\n". + "
  {$langs['a_t14']} :\n". + "\n". + "\n". "\n". "\n". - "
\n"; } else { - echo "
\n" . - "
\n". - "  " . $_('a_t12') . " :\n". - "\n". - "\n". + echo "
  {$langs['a_t12']} :\n". + "\n". + "\n". "\n". "\n". - "\n". - "". - "Powered By
JSBoard OPEN PROJECT
\n". + "
\n". + "". + "Powered By
JSBoard OPEN PROJECT
\n". "
\n". - "
\n". - "  " . $_('a_t14') . " :\n". - "\n". - "\n". + "
  {$langs['a_t14']} :\n". + "\n". + "\n". "\n". "\n". - "
\n"; + "
\n"; } $total = $tbl_num; @@ -292,8 +275,8 @@ if(!$page || $page == 1) { $page_num = 1; $scale_lastpage = $page_num+5; } - $foo = $page / 5; - $foo = explode (".", $foo); + $foo = $page/5; + $foo = explode(".",$foo); $pfoo = $foo[1]; $nfoo = $foo[0]; @@ -302,20 +285,16 @@ if($total == 0) echo " "; else { if($page < 2) echo " "; - else echo "\"""; + else echo "\"{$langs['a_act_fm']}\""; if($page >= $lastpage) echo " "; - else - echo "" . - "\"" "; + else echo "\"{$langs['a_act_lm']}\" "; for($i=$page_num; $i<$scale_lastpage; $i++) { if($i <= $lastpage) { - $page_view = $i; - if ($i == $nowpage) echo "$page_view "; - else - echo "" . - "$page_view "; + $page_view = $i; + if($i == $nowpage) echo "$page_view "; + else echo "$page_view "; } } @@ -327,50 +306,70 @@ if($page < 2) echo " "; else { if($page > 5 && $pfoo == 2) - echo ""; + echo ""; else - echo ""; + echo ""; } if($lastpage-$page <= 0) echo " "; else { if($page >= 5 && $pfoo == 0) - echo ""; + echo ""; else - echo ""; + echo ""; } } - if ( $ts ) - $_lang['ts'] = "" . $_('a_t18') . ""; - else - $_lang['ts'] = $_('a_t19'); + if($ts) { + $langs['ts'] = "{$langs['a_t18']}"; + $tsname = $ts."bold"; + ${$tsname} = " font-weight:bold;"; + } else $langs['ts'] = "{$langs['a_t19']}"; echo "\n"; + "\n"; - if ( $agent['tx'] ) echo "[ " . $_('a_t15') . " ]\n"; - else echo "
\n"; + if($textBrowser) echo "[ {$langs['a_t15']} ]\n"; + else echo "
\n"; echo "
{$_lang['ts']}\n"; - - for ( $i = '97'; $i <= '122'; $i++ ) { - $_i = chr ($i); - $I = strtoupper ($_i); - $_class = ( $ts == $_i ) ? 'classlink_b' : 'classlink'; - echo "{$I}\n"; - } - echo "
\n\n"; + "
{$langs['ts']}\n" . + "A\n" . + "B\n" . + "C\n" . + "D\n" . + "E\n" . + "F\n" . + "G\n" . + "H\n" . + "I\n" . + "J\n" . + "K\n" . + "L\n" . + "M\n" . + "N\n" . + "O\n" . + "P\n" . + "Q\n" . + "R\n" . + "S\n" . + "T\n" . + "U\n" . + "V\n" . + "W\n" . + "X\n" . + "Y\n" . + "Z\n" . + "
\n\n"; } +mysql_close(); + echo "
"; echo "\n
\n"; - -if ( $agent['tx'] ) - echo "Powered By JSBoard Open Project\n"; +if($textBrowser) echo "Powered By JSBoard Open Project\n"; htmltail(); ?> diff --git a/admin/admin_info.php b/admin/admin_info.php index 06b88600..668d61b7 100644 --- a/admin/admin_info.php +++ b/admin/admin_info.php @@ -1,58 +1,88 @@ \n". + "\n". + "\n
\n". -# global -$global_con = readfile_r ($configfile); -$global_con = preg_replace ("/<\?|\?>/i","",$global_con); + "Admin Center Password Change\n". + "\n". + "\n". + "\n". + "\n". + "\n\n". -# spam list -if ( file_exists ($spamlistfile) ) $spamlist = readfile_r ($spamlistfile); -else $spamlist = "spam_list.txt is not found into jsboard/config"; + "\n". + "\n". + "\n". + "\n\n". -$global_con = trim ($global_con); -$spamlist = trim ($spamlist); -?> + "\n\n\n\n". + + "\n". + "\n\n
Passwd
Re Passwd
\n". + "\n". + "\n". + "
\n\n". + + "
\n\n"; + + copyright($copy); + + echo "\n\n
\n". + "\n"; +} elseif($mode == "global") { + + $configfile = "../config/global.php"; + $spamlistfile = "../config/spam_list.txt"; -
-
- - -
- - - - - - - - - -
Global Configuration
- -
SPAMER LIST
  -
-
-
- - - -
- -
-
- - + # global + $global_con = file_operate($configfile,"r","Don't open $configfile"); + $global_con = preg_replace("/<\?|\?>/i","",$global_con); + + # spam list + if(file_exists($spamlistfile)) $spamlist = file_operate($spamlistfile,"r"); + else $spamlist = "jsboard/config spam_list.txt ʽϴ"; + + $global_con = trim($global_con); + $spamlist = trim($spamlist); + + echo "
\n". + "
\n". + "\n". + "\n
\n\n". + "\n". + "\n". + "\n\n". + "\n". + "\n\n". + "\n
\n". + "Global Configuration\n". + "
\n". + "\n". + "
\n". + "SPAMER LIST\n". + "
 \n". + "
{$langs['spamer_m']}

". + "

\n
\n". + "\n". + "\n". + "\n". + "
\n\n". + "
\n
\n"; +} + +htmltail(); + +?> diff --git a/admin/include/admin_head.php b/admin/include/admin_head.php index 8710bfc5..af8212a8 100644 --- a/admin/include/admin_head.php +++ b/admin/include/admin_head.php @@ -1,6 +1,4 @@ alert('Don\'t exist Global configuration file')\n" . - "history.back()<\/script>"; - die; -} else { include_once "{$ipath}/config/global.php"; } - -if ( $db['type'] == 'sqlite' ) { - $db['server'] = '.' . $db['server']; - if ( $path['type'] == 'user_admin' ) - $db['server'] = '../' . $db['server']; -} +# table ̸ üũѴ. +if($path['type'] == "user_admin") table_name_check($table); -require_once "{$ipath}/theme/{$print['theme']}/config.php"; -putenv ("JSLANG={$_code}"); -require_once ("{$dpath}/language/lang.php"); -require_once ("{$ipath}/database/db.php"); -require_once "$dpath/include/lib.php"; -table_name_check ($print['theme']); +if(!@file_exists("$ipath/config/global.php")) { + echo""; + die; +} else { include_once "$ipath/config/global.php"; } # session -sessionInit($ipath . '/' . $board['sessTmp']); -session_start (); -if( ! session_is_registered ($jsboard) ) - session_destroy(); +session_start(); +if(!session_is_registered("$jsboard")) session_destroy(); -# table ̸ üũѴ. -if ( $path['type'] == "user_admin" || $table ) - table_name_check ($table); - -if ( $path['type'] == "user_admin" && $table ) { - if ( file_exists ("{$ipath}/data/{$table}/config.php") ) { - require_once "{$ipath}/data/{$table}/config.php"; - require_once "{$ipath}/theme/{$print['theme']}/config.php"; - putenv ("JSLANG={$_code}"); - require_once "{$ipath}/language/{$_code}.lang"; - } +if($path['type'] == "user_admin" && $table) { + if(file_exists("$ipath/data/$table/config.php")) + { include_once "$ipath/data/$table/config.php"; } } # ܺ ȸ DB include -if ( file_exists ("{$ipath}/config/external.php") ) { - require_once "$ipath/config/external.php"; -} +if(file_exists("$ipath/config/external.php")) { include_once "$ipath/config/external.php"; } -table_name_check ($print['theme']); -require_once "{$ipath}/include/replicate.php"; -require_once "{$dpath}/include/print.php"; -require_once "$dpath/include/first_reg.php"; +# ̸ ּ üũ +$rmail['chars'] = !$rmail['chars'] ? "__at__" : $rmail['chars']; -# -if ( session_is_registered ($jsboard) ) { - if( $_SESSION[$jsboard]['pos'] == 1 ) - $board['super'] = 1; +table_name_check($print['theme']); +include_once "$ipath/theme/{$print['theme']}/config.php"; +include_once "$ipath/include/lang.php"; +include_once "$ipath/include/replicate.php"; +include_once "$dpath/include/print.php"; - if ( strstr ($board['ad'],";") ) { - if ( preg_match ("/{$_SESSION[$jsboard]['id']};|;{$_SESSION[$jsboard]['id']}/",$board['ad']) ) - $board['adm'] = 1; +# +if (session_is_registered("$jsboard")) { + if($_SESSION[$jsboard]['pos'] == 1) $board['super'] = 1; + if(strstr($board['ad'],";")) { + if(preg_match("/{$_SESSION[$jsboard]['id']};|;{$_SESSION[$jsboard]['id']}/",$board['ad'])) $board['adm'] = 1; } else { - if ( preg_match ("/^{$_SESSION[$jsboard]['id']}$/",$board['ad']) ) - $board['adm'] = 1; + if(preg_match("/^{$_SESSION[$jsboard]['id']}$/",$board['ad'])) $board['adm'] = 1; } } -$db = replication_mode ($db); +$db = replication_mode($db); ?> diff --git a/admin/include/check.php b/admin/include/check.php new file mode 100644 index 00000000..1a301013 --- /dev/null +++ b/admin/include/check.php @@ -0,0 +1,211 @@ +\n


{$langs['nodb']}


"; + exit; + } +} + +# Խ ̸ ˻ ƾ +# +function table_name_check($table,$ck=0) { + global $langs; + $table = trim($table); + + if(!$langs['n_t_n']) { + $langs['n_t_n'] = "Table Name Missing! You must select a table"; + $langs['n_db'] = "Board name must start with an alphabet"; + $langs['n_meta'] = "Can't use special characters except alphabat, numberlic, _, - charcters"; + $langs['n_promise'] = "Cat't use table name as "as""; + } + + if (!$ck && !$table) print_error($langs['n_t_n'],250,150,1); + if (!preg_match("/^[a-z]/i",$table)) print_error($langs['n_db'],250,150,1); + if (preg_match("/[^a-z0-9_\-]/i",$table)) print_error($langs['n_meta'],250,150,1); + if (preg_match("/^as$/i",$table)) print_error($langs['n_promise'],250,150,1); +} + +# table list üũ +# +function table_list_check($db) { + global $langs; + if(!mysql_list_tables($db)) { + echo "\n\n" . + "\n" . + "\n


{$langs['n_acc']}


"; + exit; + } else return $tbl_list; +} + +# Խ ̸ Խ ̹ ϴ +# +function same_db_check($list, $table, $yn = 0) { + global $langs; + $tbl_num=mysql_num_rows($list); + for($k=0;$k<$tbl_num;$k++) { + # table list ҷ ɴϴ. + $table_name = mysql_tablename($list,$k); + + if ($yn) { + if ($table == $table_name) return 1; + } else { + if ($table == $table_name || $table == "userdb") print_error($langs['a_acc'],250,150,1); + } + } + + if ($yn) return 0; +} + +# table list Ѵ. +function get_tblist($db,$t="",$chk='') { + $list = mysql_list_tables($db); + + # table list üũ + table_list_check($db); + + # table + $list_num = mysql_num_rows($list); + if(!$j) $j = 0; + + for ($i=0;$i<$list_num;$i++) { + if(!$chk) { + # table ̸ Ͽ 迭 + $l[$i] = mysql_tablename($list,$i); + + # 迭 ̸ ĺ Ʈ + # ̸ ٽ 迭 + if($t) { + if(preg_match("/^$t/i",$l[$i])) { + $ll[$j] = $l[$i]; + $j++; + } + } + } else { + if($chk == mysql_tablename($list,$i)) { + $l = 1; + break; + } else $l = 0; + } + } + + if($t) return $ll; + else return $l; +} + +function check_userlist_type($t) { + if(is_hangul($t)) { + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = "ī"; + if($t == "ī") $r['like'] = "Ÿ"; + if($t == "Ÿ") $r['like'] = ""; + if($t == "") $r['like'] = ""; + if($t == "") $r['like'] = chr(0xfe); + $r['like'] = "WHERE binary nid BETWEEN binary '$t' AND binary '{$r['like']}'"; + } else { + $r['like'] = "WHERE nid LIKE '$t%'"; + } + $r['links'] = "t=$t&"; + return $r; +} + +function check_admin($user) { + $p = opendir("./data"); + while($i = readdir($p)) { + if($i != "." && $i != ".." && is_dir("./data/$i")) { + $c = fopen("./data/$i/config.php","rb"); + $chk = fread($c,500); + $chk = preg_replace("/.+board\[ad\][ ]*=[ ]*\"([^\"]*)\".+/i","\\1",$chk); + if(trim($chk) == trim($user)) { + closedir($p); + return 1; + break; + } + } + } + closedir($p); +} + +function check_invalid($str) { + $perment = "
[ SECURITY WARNING!! ] - jsboard don't permit"; + $target = array("/<(\?|%)/i","/(\?|%)>/i","/<(\/?embed[^>]*)>/i","/<(IMG[^>]*SRC=[^\.]+\.(ph|asp|htm|jsp|cgi|pl|sh)[^>]*)>/i"); + $remove = array("","","$perment <\\1>
","$perment <\\1>
"); + + if(preg_match("/ diff --git a/admin/include/first_reg.php b/admin/include/first_reg.php index 89949d8f..a794f3b2 100644 --- a/admin/include/first_reg.php +++ b/admin/include/first_reg.php @@ -1,12 +1,11 @@ diff --git a/admin/include/html_ahead.php b/admin/include/html_ahead.php index c18d86ea..015e3735 100644 --- a/admin/include/html_ahead.php +++ b/admin/include/html_ahead.php @@ -1,48 +1,44 @@ - - - - + + + +JSBoard Administration Center [ <? -switch ($path['type']) { - case 'user_admin' : - $csspath = '../..'; - break; - case 'admin' : - $csspath = '..'; - break; - default : - $csspath = '.'; -} - - if ( ! preg_match ('/admin/i', $file_lo) ) $_title = get_title(); - else $_title = $sub_title; -?> -<title>JSBoard Administration Center [ <?=$_title?> ] - + if (!preg_match("/admin/i",$file_lo)) echo get_title(); + else echo "$sub_title"; +?> ] - - + +\n". + "\n". + ""; +} +?> + - +"; +?> diff --git a/admin/include/html_atail.php b/admin/include/html_atail.php index d682e486..e1de4d37 100644 --- a/admin/include/html_atail.php +++ b/admin/include/html_atail.php @@ -2,5 +2,5 @@ - - + + diff --git a/admin/include/lib.php b/admin/include/lib.php deleted file mode 100644 index 2b6d9012..00000000 --- a/admin/include/lib.php +++ /dev/null @@ -1,139 +0,0 @@ -\n\n" . - "

" . $_('nodb') . "


\n" . - ""; - } -} - -# Խ ̸ ˻ ƾ -# -function table_name_check($table,$ck=0) { - global $_; - $table = trim ($table); - - if ( ! $_('n_t_n') ) { - $_lang['n_t_n'] = 'Table Name Missing! You must select a table'; - $_lang['n_db'] = 'Board name must start with an alphabet'; - $_lang['n_meta'] = 'Can\'t use special characters except alphabat, numberlic, _, - charcters'; - $_lang['n_promise'] = 'Cat\'t use table name as "as"'; - } else { - $_lang['n_t_n'] = $_('n_t_n'); - $_lang['n_db'] = $_('n_db'); - $_lang['n_meta'] = $_('n_meta'); - $_lang['n_promise'] = $_('n_promise'); - } - - if ( ! $ck && ! $table ) print_error ($_lang['n_t_n'], 250, 150, 1); - if ( ! preg_match ('/^[a-z]/i', $table) ) print_error ($_lang['n_db'], 250, 150, 1); - if ( preg_match ('/[^a-z0-9_\-]/i', $table) ) print_error ($_lang['n_meta'], 250, 150, 1); - if ( preg_match ('/^as$/i', $table) ) print_error ($_lang['n_promise'], 250, 150, 1); - - if ( preg_match ('!/.+|%00!', $table) ) - print_error ("Ugly access with table variable \"{$table}\"", 250, 150, 1); -} - -function check_userlist_type ($t) { - if ( is_hangul ($t) ) - $r['like'] = korean_area ($t); - else - $r['like'] = "WHERE nid LIKE '$t%'"; - - $r['links'] = "t=$t&"; - return $r; -} - -function check_admin($user) { - $p = opendir("./data"); - while($i = readdir($p)) { - if($i != "." && $i != ".." && is_dir("./data/$i")) { - $c = fopen("./data/$i/config.php","rb"); - $chk = fread($c,500); - $chk = preg_replace("/.+board\[ad\][ ]*=[ ]*\"([^\"]*)\".+/i","\\1",$chk); - if(trim($chk) == trim($user)) { - closedir($p); - return 1; - break; - } - } - } - closedir($p); -} - -function check_invalid($str) { - $perment = "
[ SECURITY WARNING!! ] - jsboard don't permit"; - $target = array("/<(\?|%)/i","/(\?|%)>/i","/<(\/?embed[^>]*)>/i","/<(IMG[^>]*SRC=[^\.]+\.(ph|asp|htm|jsp|cgi|pl|sh)[^>]*)>/i"); - $remove = array("","","$perment <\\1>
","$perment <\\1>
"); - - if(preg_match("/ diff --git a/admin/include/print.php b/admin/include/print.php index 0b98f067..c249d3a1 100644 --- a/admin/include/print.php +++ b/admin/include/print.php @@ -1,51 +1,53 @@ \n" . + "\n"; } # Admin Center Ϸ ޼ # function complete_adminpass() { - global $_; - $str = str_replace("\n", "\\n", $_('p_cp')); - echo ""; exit; } @@ -76,8 +78,9 @@ function get_theme_list($pt,$current="") { $num = sizeof($theme); for($i=0;$i<$num;$i++) { - $select = ($current == $theme[$i]) ? ' selected=selected' : ''; - echo "{$theme[$i]}\n"; + if($current == $theme[$i]) $select = " SELECTED"; + else $select = ""; + echo "
+ + + + + + diff --git a/theme/JP-default/ext.template b/theme/JP-default/ext.template new file mode 100644 index 00000000..efb891b2 --- /dev/null +++ b/theme/JP-default/ext.template @@ -0,0 +1,38 @@ + + + + + + +Jsboard <?=$board['ver']?> - <?=$print['head']?> + + + + + + + + + diff --git a/theme/JP-default/img/at.gif b/theme/JP-default/img/at.gif deleted file mode 100644 index 538f817fa32dadeba74d3af8706c3dc371bd984e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmc(eEpC-z5QWc8Ah|aL9HL201Ez$8(u05?2~b=G0$VddAS!DMs!N!pdmt5Tp=uU@ zK(Gsf8lHJK!Rsb7bN=T0-hX)a^3~Z+5A;XsdDWfW(d}+cRn?VU(d8~pGpjQ@qtl(5 z*{F`}hz@sXR$c9EN84?I)T&mtqU9C^*g%8DGSeEKd07=zuF}v_WmZO|D>W);Mpi_H zD>R~*b(W*-ve3wCDN9ju3071ChG`(7Zo%e zX{UvIL@}F+lvCIv4`i}U9Qa2B4p9vlqEX2xIv@rcXs|TNO`DqM2u+aqgOoVOy7x5K2`A=tm6=^ZPwFeXSzU3=5thS2TB7GBOUD2&Xg&w7M0j{wRG|NdckuVl zM*69z!#)3mw$F64+dnz|{o~u+@Ap4`K015zWxMy}dV6#5_Uhqb{QC6#(e2lJyW6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= o{r&#_{{R2~EC2ui00;mA000ON009Vm0PmkcfdB{^{1*@aJA5aF+W-In diff --git a/theme/JP-default/img/board_no.gif b/theme/JP-default/img/board_no.gif index 9ee4f10567a38575ef04a896489795b9cd0b11e7..9734f5a38322de6679f0cd3f6b6839e8d3610f5c 100644 GIT binary patch literal 393 zcmZ?wbhEHbRAP{1xXQrraVe9lnMk;!kcP5&nzx|2j@Z;J?upr4D3R1%(bb8 zUT4EUS#-xDMV6I^8Y#pS^&kLEMQ}GKqSad3~b8|Of2w_adqjLP;@dz zjO%DdpyDf&^@*M;tkeY3uItc;*;y2)yJV!I@y(5iD~vM2`1*41+GF$>`VK^=dBJZ7s{_nsjBX=$}A$7A^mYge9&-B)|;N~XJ#(9Je3rhAVbKY9A>`HPpY KUcYu^um%8p>TQew literal 1496 zcmcJO`8yPN9DqNA7-1UYXk@G*GS-+GjB7~R=$;LQBBg{HtT~iX(#=1i4yW1bJ?;r5~^u9+}P8OCyR8WHt2>t^hR5XcSN0W@h zkR^o7E=ccylvYT72<&F~sR3fR5d9l`UkFjRAu<=jvmiJfPNzWN&){|uSZBcg6qq;z z)dqA-Ktmr?H6gnnlh!VAb3ih0Xji^Sx?mVvIJ&!dO0j5Cv1FQ1JV_`OtCYP^<<6+w zn^vuuBl2FU-J2qo&8nBqsMjoN)V|fMdq*yx(JY@KKln$td`6r9R=0VLQZb|RaO3OR zc}nY+;p30=wjD<8JhkBstpk}#d?1UqImVn*$paTl^|UNY-OHa+NY85O*H&rq;Qy(f!#EyqOK2c;o)dP5v9yJh#!jxYPPK z5-g#j`0zVW()Gaud4-q*K#(|(z z2uy;2MDR}lzw6-pBY4MwXDpnIf#c`FH40oJ!8sI;gn(lZIGhGMKd|+MLq1^R4F^5p zn-gGp9L!z8%mqx3f{7CtJA#n|(CvU~4F*=AZwVB0&@+Prrl8A&{S45igBA_QRM0d4 zbzLB8!Co>b?E}0j>`?)%9Q19R8rVGB^ZxAUTITp#zIe0Z<#y!~dh%|&X9bBi(fmiW ztYZW!Bp?t$RvuI}KtU1qD1jUfKBH}{EXZI%QW7wjFMWQ=^#6hSMf>FiTP%WISP}*A zbQgnF(tadi&o=NA{&!$A!GL0!@w~3^lEJ1QAPCmmC z?$KTKQ?E=~E<2bI?t1YB1;t)9@>0RQg`N$O?oqQ;u1|ME4#L zna~a?sV`mxIivYQ>8NvsJw6 z?`lbxFekVA^#YEaSuf2$=S`I()UjQqIlcBS=D#!8LOf4_n@MnU4oZ@hVGj1{t1Y{8 z7#*8z7wKBz3Wt_Q)N)Fq?Cun5_FC{IRj+X^vT#?q=56vSj|4}l?NX9#t<+@OyVMIt zZBl{0d3Y={@ZhRYOTQq;jxpZpod|Y8Hp=BO$$zCN^N2i}D9Xczy zx1xe=iyI)br$Iy#u^9FEgbZnd4yMb~BeO0%dVgsBQQG*0l2RA?kC*J|%pn1Wq5+AX z3X#?&=~7nm#;(CB8sQ;d)y|3ZFfEe=JDk4(56cBJB^>Zj}vdQaMyb%gL1(>Zc-Zd zon(PTezKsCCQ#nLV%p^cX?qF&59}2f75HRw)LNUpjGVP7Q8}zE^M#T%lZXea)u!Xi Mb*lpo(o$gcFX*&ubN~PV diff --git a/theme/JP-default/img/delete_title.gif b/theme/JP-default/img/delete_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..b4eb974bd5d22440d3983f4cd215cfca3754dca8 GIT binary patch literal 497 zcmVAL^*-v95;A^8LW00062EC2ui09ODH06+x)P{>KEy*TU5JDSZ=I8s4S zN@FzukaWV4EX*k-wgCvuDR9En64-lo|J>TeANQ#TAH?-C752JssW!7&X4fClOooOs2c z*S$@`aBW&=L_k3dRcfU&BjG>*K*=gxLXZH+5)8m*7y!tmNy35!4*~$NgR6iHF-S%V z1hG#~g#ive_9&O)N&zwx1{fGnz-9(?6E0CGNZ`W`n=>A$C^z9jFC`lke6V5Rz()!{ zjc(wG=K?1rT)}p-FaRbuEejmX>oE7N-Me@*L;wIgSm4DHqeCF*s5b&aGc79?yf9({ n!AlZPt*&5+=maY)Y~i*tK>#Q_H4GjMY%%z+;lqeiga80L#!kG} literal 0 HcmV?d00001 diff --git a/theme/JP-default/img/dot.gif b/theme/JP-default/img/dot.gif deleted file mode 100644 index 34b97d93dcdb55a97b2d13f8cc6da79611fa9704..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 48 zcmZ?wbhEHblwe?FXkcJSOH2Fz|G(l-7Dfi3fDQu?fMgh$*m;sFPQDIgV6X-N9)t@8 diff --git a/theme/JP-default/img/dotted_gray.gif b/theme/JP-default/img/dotted_gray.gif deleted file mode 100644 index 8342733e74a31860c1843a42de74f2253527137c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 44 ucmZ?wbhEHbWMg1tXkcLY|NsB<=g$>?vM@3LfewfO$uKZ6_cXFHSOWkZ1qy}$ diff --git a/theme/JP-default/img/edit_title.gif b/theme/JP-default/img/edit_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..5bbaa70e04af99a14edaa3fd7d3c45b9b52ad23f GIT binary patch literal 406 zcmV;H0crk6Nk%w1VOIbT0JHx9|NsC0`tHEM!2h!l|F|Iky)gg8ME}WE|ITIq({=ya ziT~f3|KzIw>AL^*-v95;A^8LW00062EC2ui09ODH06+x)P{>KEy*TU5yLg0@7(*i= zrceyWaw!JaJaeNY#Z=@|5{ilkLz0>_5EGE4kVqg6E&%0_kPxJll%d*LxG2noBQX#x zxD!`dDHt@HlCx({Of(#H4T_xa=SczvJbo7lXcA?FMs{NYLlOo7i3LR`1_lS0i5LqE z0|pI)5)2OyRSHM~1cIpo08N{6jxicI8U{ZUt2Z7E2O10q47nBx87zv)%FE2n&V2+` zSQZ4vSqlveUmbipO|ozlj{-0mBNm1XCWaqbTm%ml4cMmK0SlrM1@Q_E4O|8u1ONcQ z7=TR)4j_#3oCO|{#S9GG!XV7ZFl&wkP|(xU z#WAGfR&vG9KU#(_J~m(G2?^eneEN}Ww3yJ^lGlg+|Nk%iwBdh(!^Y@`@08z!?fBhM tqQLjINRLZ{K}Op&CSiF zCB;jYEct({#9T*g)4C;_Hf{R<|9@#|>7z%FCQqK++|*PW%D-mKnv#-|+jIHD!^8it zW0*2&qNJo`T3XuwOCdnT473D_KUo+V7!(+EK$d{~#K3mjVM2k2j+7!B@1YYpeCo{2 z>=##tsr#jeEaZ%^X5?o-@X}$^nSR5i658 zqX<*Y<)u9RHIq_y%HLj^_2fiGsYJl4<~}uvQ$D^>hl}}RYRN;dK INdgSk0M7@E^Z)<= delta 752 zcmV$ox#q|5Cc>OUn3L!t7kp{$#-D zU(NVt!RTVm_G{1faMt~K*#CRT>vGHOc-8oS%k6s1?R?brgwF1R-v5u_|CHnZpV;x8 z=KibS^{eTB|Fi1yXL-daD3=ssMMV0Cb`NbD;oopa5{40A-B; zU4j5veE?T^09AJYRCWMRZvahf08DBCOKAW`VgN*607G5?L0SMnSpYp%06I_rI8FdJ zO#n7a05wVgGe!V0L;x;804+ZNEIa@zIshp-04O&o046m6BQOAPodH;T0h7%Gd8h=` z@r>a7oA3X}^ZwTL|J?Zh=J@{Tk#Ss+fK8ErO_6|2k$@$CA^8LW00000EC2ui04x9v z06+-;009UbNU)$m86k@J>4SoZ!G{nZ9x6n!qQ#3;W|V=$01lf3T`a^v60u|qLsSe^ zF*F5=kQE^`3_zep0hkDYfC%Jp!9dA@L#SM|xP-(PH*x4Rpuoa`ojH3JJaF=}Du69x z&>&D?20@sA4jV31fMLX{SssRl4sGe;03JJb)`THLU_}ZSJE|rTs@9^C0AbR=x#OUY z9XMW2m@Qd?gb5EAL}Y+KAjJn7Iu1uV@R0-Oje-F)Rsyj25yr1Ok!WNu6Gi|cQ^fPKp7#OSpVbCJx diff --git a/theme/JP-default/img/reply_title.gif b/theme/JP-default/img/reply_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..49118cf3af60793edf69761a153831e818d09a54 GIT binary patch literal 511 zcmVAL^*-v95;A^8LW00062EC2ui09ODH06+x)P{>KEy*SgMJMR}VHAmq{ z1wko|)c`;ON{LKbLsNWK!Z?Q2X8;IRe2r6LK>$!33W*_52{amys0L7&_y8>dVDT~( z7&1vCEtoa}gTbN(P_1WpO3jQXsPab%Mt~J(L_8D*VG|BmRvH9X4>ATP6Auy$K@5wW z4Ga=>84Ds72oD1U3JE3>0|5&G4+jXAZ7?vh3G@t?n`f5Q8@XHX* z0EYv}x`;{DfJ_5D8OBhZxw7C806V@b B!@d9j literal 0 HcmV?d00001 diff --git a/theme/JP-default/img/write_title.gif b/theme/JP-default/img/write_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..40208df494a11f71429b5a6eca0b3cd8f8d56f8a GIT binary patch literal 333 zcmV-T0kZx_Nk%w1VNC!J0JHx9|N8F0z`*~r5dXL!|GhB(#6B<+KK<) zng8Uf|LMB__1^#Q&j0`aA^8LW00031EC2ui08Ic706+x#Fvv-(y*TU5<)BYsFx5vn z1x7ed*iBE&I1GbWLMjRFP6zDIc9u|m#sY~W$ z3na_+kggoUg>adW;%c&#K|>%38I}`ZRSp4o6*UYC4G0GZd>sY@2x(9kHWOB5T~i4M znxCMdqMsj<8v|n$N{E%C8b1?NF)0iMXchzyl?V$LN&y85tx>fF0FM+34-E}zU=>*j z3=IJUfF1w{CJEOPbhb*oQ3Zqz(%lork0{9om?CY!)H?wT?iT_F4#-^ssA8$S&FjMt f+KU1ODa47_At8qxt~4O{!yrM#ix@LnhyVaP?uCW) literal 0 HcmV?d00001 diff --git a/theme/JP-default/index.template b/theme/JP-default/index.template deleted file mode 100644 index 0057f548..00000000 --- a/theme/JP-default/index.template +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - -<?=get_title()?> - JSBoard <?=$board['ver']?> - - - - - - - -> -
- - - - - - - - - - - - - -
- - - - - - - - - - -
-Copyleft -1999- by - -JSBoard Open Project
-Theme Designed by -IDOO -All right reserved -
- - - -
- - - - - - - diff --git a/theme/JP-default/list.template b/theme/JP-default/list.template index 48178c3a..024af336 100644 --- a/theme/JP-default/list.template +++ b/theme/JP-default/list.template @@ -1,150 +1,214 @@ + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + +
> - - - - - - - - + +
>>  
- - - - - - - - - - - - - - - +
No.O
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + -
+ + >>
+ + + + + + + + + + + + + + + +t@C\n -EOF; + echo "\n"; ?> - - - + + + - - - + + + -
ALIGN=left BGCOLOR=#FFAE00>No. ALIGN=center BGCOLOR=#FFAE00>Subject ALIGN=center BGCOLOR=#FFAE00>Name Filetǂ
ALIGN=center BGCOLOR=#FFAE00>Date ALIGN=center BGCOLOR=#FFAE00>Read
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
>> Fast Page Link : -
- -
- - - - - - -
- - - -
- -> -K\ -
- - - - -
- -
-
- -
- - -
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + + + - -
>> Fast Page Link : +
+ + +> + + + + + + + + + + +
+ + MAXLENGTH=255 style="border:1x solid #555555;background-Color:#ffffff;font:12px;color:#555555;" VALUE=""> + +
+ + style="border:1x solid #555555;background-Color:#ffffff"> +REGEX +
+ +
+
+ + +> + + - -
+ - -'> - -
- -
+ + MAXLENGTH=6 style="border:1x solid #555555;background-Color:#ffffff;font:12px;color:#555555" VALUE=''> + + +
+ + + + + + + + + +
+ + + + + diff --git a/theme/JP-default/login.template b/theme/JP-default/login.template index 795ad465..13d77282 100644 --- a/theme/JP-default/login.template +++ b/theme/JP-default/login.template @@ -1,12 +1,28 @@ - - - - - -JSBoard <?=$board['ver']?> Login page - - - + + + + +JSBoard <?=$board['ver']?> Login page + + + + onLoad=InputFocus()> - - - + +
+ + - -
-
- - - - +> +
+ + + - - +
ALIGN=CENTER>
-
+
ALIGN=CENTER> +
- +
- - + - +> + + +
+ + - - - - + + + + - - - - + + + + - - - + + + -
+
Password - - -
-
User
User>
Password
Password>
-Session Reset - -
-
+Session Reset + +
+
+
-
- +
+ - - - - - +> +> +> + +> -
+
- - + + - + diff --git a/theme/JP-default/mail.template b/theme/JP-default/mail.template index 077adc66..842b70a9 100644 --- a/theme/JP-default/mail.template +++ b/theme/JP-default/mail.template @@ -1,102 +1,83 @@ - - - - -JSBoard Reply Notice - - + - - 
-
- - +
+ + 
+
+ + +
- - -
-JSBoard Reply Notice -
+ + +
+ +JSBoard Reply Notice +
- - +
-
+
+
-
+

 
-$_('html_msg')
+{$langs['html_msg']}
 
 Server Name       : $servername$nofm
-
-
+
+
- - -
+ + +
- - -
-
+
+
-
+

 
-$_('u_name')              : {$rmail['name']}
+{$langs['u_name']}              : {$rmail['name']}
 $addressinfo
-$_('reg')              : $year $day $ampm $hms
-
-
- - - -
- - - +
-
-
+{$langs['a_t13']}              : $year $day $ampm $hms
+
+
+ + + +
+ + + -
+

 {$rmail['text']}
-
-
-
- - - -
- -Scripted by JSBoard Open Project - -
- -
- - -
-
-
- - + +
+ + + +
+ +Scripted by JSBoard Open Project + +
+ +
+
+ +
+
+
+ + diff --git a/theme/JP-default/read.template b/theme/JP-default/read.template index 7eb4a863..527d97d7 100644 --- a/theme/JP-default/read.template +++ b/theme/JP-default/read.template @@ -1,190 +1,271 @@ + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + +
> - - - - - - - - - - -\n/i", "\\0\"\"", $list['title']); ?> - - - - - - - -
>> Read article
-TITLE: - -
- - - - - - - - - - - - - - - - - -
-
-o^     -ǂ
-O     -t@C {$list['attach']}" : "" ?>
-
-
- - - -
- - - - - - - - - +
-
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + +\n/i","\\0",$list['title']); ?> + + + + + + + +
+ +>> Read article +
+TITLE: + +
+ + + + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + +
+
+Date     +Read
+Name     +File {$list['attach']}" ?>
+
+
+ + BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
+ + + + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
> + - + - + - + - + - -
+ +
-
- - - - + +
-
->> - +

+ BORDER=0 CELLPADDING=1 CELLSPACING=0> + + + - -
>
+
+>> + - -
+ +

>
- - - - - - - - - - -
-
- - - - - - - - - - + +
- -
- - - - - - -
- - - -
- -> -K\ -
- - - - + + + + + + + + + + + + + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + +
+
+ + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + +
+ + +> + + + + + + + + + - - -
+ + MAXLENGTH=255 style="border:1x solid #555555;background-Color:#ffffff;font:12px;color:#555555;" VALUE=""> + +
+ + style="border:1x solid #555555;background-Color:#ffffff"> +REGEX +
- +
+ +
+ Page Loading [ Sec ] -SQL Time [ Sec ]
- - -
- - - - -
+SQL Time [ Sec ]
+ + + +> + + - -
+ - - - -
- -
+ + MAXLENGTH=6 style="border:1x solid #555555;background-Color:#ffffff;font:12px;color:#555555" VALUE=''> + +
+
+ +
+ + + + + +
+ + + + + diff --git a/theme/JP-default/reply.template b/theme/JP-default/reply.template index 3b6e0c83..bbbb5118 100644 --- a/theme/JP-default/reply.template +++ b/theme/JP-default/reply.template @@ -1,175 +1,234 @@ - - - - - - - -
onsubmit="return registCheck();"> - - - - - - - - - - - - - -
>> Write reply article
- -fbO -
- - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> + + + + + + + + + + + + + + +
> +> +


O tabindex="1">
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + +
+ +>> Write reply article +
+ + +
+ + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + + + + + + + + + + + - - - - -EOF; + echo " + + + +\n"; } ?> - - - - + + + + - - - - -EOF; + echo " + + + +\n"; } ?> - - - + + + + + + + + + + + + - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } ?> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +pX[h - -EOF; +if(eregi("^(0|4)$",$board['mode']) && !$board['super']) { + echo "\n". + "\n"; +} else { + echo "\n"; } ?> - + - - - -


Name MAXLENGTH=50 VALUE="">
[
Email
z[y[W
Homepage
HTML +> Use +> Don't Use +
t@C - - -
File\n". + "\n". + "\n". + "
t@C" . $_('upload') . "
File{$langs['upload']}
" tabindex="5">
Subject MAXLENGTH=100 VALUE="">
- -{$pcaptcha} -Password\n". + "\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "

+ +
+ + - - -
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
- - +
+ BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
ALIGN=CENTER> - - - - - + + + + - + -
+
- - - - - - - - +
+ + + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + + -
- - - - -
- - - + +> + + +
+ + + + + + + +
+ + + + + + diff --git a/theme/JP-default/write.template b/theme/JP-default/write.template index ff04860c..075c7bfe 100644 --- a/theme/JP-default/write.template +++ b/theme/JP-default/write.template @@ -1,171 +1,228 @@ - - - - - - - - - - - - -
onsubmit="return registCheck();"> - - - - - - - - - - - - - -
>> Write new article
- - -
- - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> + + + + + + - - - -END; +if(!$np) { + # Design per user + include "{$board['headpath']}"; + # Input by whole admin + include "html/head.php"; +} +?> + + + + + + + + +
> +> +


O tabindex="1">
[
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + +
+ +>> Write new article +
+ + +
+ + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + + + + + + + + + + + + + + +\n"; } ?> - - - - + + + + - - - -END; +if($view['url']) { + echo " + + + +\n"; } ?> - - - + + + + + + + + - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } ?> - - - - - - - - - - - - - + + + + + + + + + + + + +pX[h - -END; +if((!$board['mode'] || $board['mode'] == 6) && $board['super'] != 1) { + echo "\n". + "\n"; +} else { + echo "\n"; } ?> - - - - - -


Name MAXLENGTH=50 VALUE="">
Email
z[y[W
Homepage
HTML + Use + Don't Use +
t@C - - -
File\n". + "\n". + "\n". + "
t@C" . $_('upload') . "
File{$langs['upload']}
Subject MAXLENGTH=100>
- -{$pcaptcha} -Password\n". + "\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "

- - - -
- - - -
- - - - - - - - - -
- - - - - - - - - + + + + +
+

+ + BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
+ + BORDER=0 CELLPADDING=5 CELLSPACING=0> + +
ALIGN=CENTER> + + + + + + + + + +
+ + + + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + + -
- - - - -
-
- + +> + + + + + + + + + + + + + + + + + + diff --git a/theme/KO-default/config.php b/theme/KO-default/config.php index 56ccb834..ac1e1683 100644 --- a/theme/KO-default/config.php +++ b/theme/KO-default/config.php @@ -1,52 +1,94 @@ STR
"; + +$color['ms_ov'] = "#E3F9AB"; # 콺 +$color['td_co'] = "#d2691e"; # ö ǥ +$color['cp_co'] = "#ffd700"; # ǥ + +# ̸ +$color['p_gu'] = "#FFAE00"; # ̸ ̵ +$color['p_bg'] = "#FFFFFF"; # ̸ +$color['p_fg'] = "#555555"; # ̸ + +# admin page +$color['b_bg'] = "#FFFFFF"; # +$color['t_bg'] = "#FFAE00"; # +$color['t_fg'] = "#FFFFFF"; # +$color['m_bg'] = "#D3DAC3"; # ޴ĭ +$color['m_fg'] = "#555555"; # ޴ĭ +$color['d_bg'] = "#F5FBE6"; # ĭ +$color['d_fg'] = "#555555"; # ĭ + # Ʈ tr # list table image height . -# -$lines['height'] = '25'; - -# Ʈ ̿ ֱ ڵ -# $lines['design'] ̷ . -# COLSPAN=AA  . ̼ Ʈ colspan -# ߱ list.php ȯ ϰ Ǿ -# ̿Ͽ ׽Ʈ ٶ -# $lines['comment'] comment rows Ǹ -# . COLSPAN=AA ʿ . -#$lines['design'] = '
'; -$lines['design'] = ''; -$lines['comment_design'] = '' . - '' . - '' . - ''; +# +$lines[height] = "25"; + +# Ʈ ̿ ֱ ڵ ̼ +# ̷ . COLSPAN=AA  . +# ̼ Ʈ colspan ߱ list.php ȯ +# ϰ Ǿ ̿Ͽ ׽Ʈ ٶ +#$line_design = "
"; +$lines['design'] = ""; +$lines['comment_design'] = "". + "". + ""; ############################################################## # Width Configuration ############################################################## # list paget table ratio =================================== -$td_width['no'] = '5%'; # ȣ ʵ ʺ +$td_width['no'] = "5%"; # ȣ ʵ ʺ # ʵ ʺ -if ($upload['yesno'] && $cupload['yesno']) $td_width['title'] = '54%'; -else $td_width['title'] = '63%'; +if ($upload['yesno']) $td_width['title'] = "54%"; +else $td_width['title'] = "65%"; -$td_width['name'] = '14%'; # ۾ ʵ ʺ -$td_width['upload'] = '9%'; # ʵ ʺ -$td_width['dates'] = '13%'; # ¥ ʵ ʺ -$td_width['refer'] = '5%'; # ʵ ʺ +$td_width['name'] = "14%"; # ۾ ʵ ʺ +$td_width['upload'] = "9%"; # ʵ ʺ +$td_width['dates'] = "13%"; # ¥ ʵ ʺ +$td_width['refer'] = "5%"; # ʵ ʺ ############################################################## # Field Array Configuration @@ -59,5 +101,5 @@ # D -> ۵ ¥ # R -> # -$td_array = 'nTNFDR'; +$td_array = "nTNFDR"; ?> diff --git a/theme/KO-default/default.css b/theme/KO-default/default.css deleted file mode 100644 index 3c33ae9e..00000000 --- a/theme/KO-default/default.css +++ /dev/null @@ -1,491 +0,0 @@ -/* - * User Define CSS - * $Id: default.css,v 1.6 2009-11-16 21:52:47 oops Exp $ - */ - -body { - font-size: 12px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #555555; - line-height: 120%; - background-color: #ffffff; - margin: 0px 0px; -} - -td { - font-size: 12px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #555555; - line-height: 120%; -} - -a:link, a:visited, a:active { - text-decoration: none; - color: #555555; -} - -a:hover { - text-decoration: underline; - color: #555555; -} - -img { - border: 0; - padding: 0px; - margin: 0px; -} - -input { - font-size: 11px; - font-family: tahoma, sans-serif; - color: #555555; - border-width: 1px; - border-style: solid; - border-color: #555555; - padding-left: 1px; - padding-right: 1px; - background-color: #ffffff; -} - -select { - font-size: 11px; - font-family: tahoma, sans-serif; - color: #555555; - border-width: 1px; - border-style: solid; - border-color: #555555; - background-Color: #ffffff; -} - -textarea { - font-size: 11px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #555555; - border-width: 1px; - border-style: solid; - border-color: #555555; - padding-left: 1px; - background-color: #ffffff; - width: 100%; - height: 150px; -} - -.cmtarea { height: 100px; } - -.resizable-textarea .grippie { - height: 14px; - background: #ECE9D6 url(img/grippie.png) no-repeat 100% 100%; - border: 1px solid #DFDBCA; - border-top-width: 0; - cursor: se-resize; -} - -.resizable-textarea { - width: 100% !important; - width: 98%; /* for IE */ -} - -form { display: inline; } - -/* admin td */ -.admin { - font-size: 11px; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #555555; - text-align: right; - vertical-align: bottom; -} - -/* copyright */ -.copy { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; - overflow: hidden; - white-space: nowrap; - text-align: right; -} - -.copylnk { - color: #555555; - font-weight: bold; -} - -/* list table counter / read article number */ -.counter { - font-size: 11px; - font-family: tahoma, sans-serif; - color: #555555; -} - -/* list ȭ title row */ -.ltitle { - color: #ffffff; - font-weight: bold; - text-align: center; - background-color: #a0dc10; -} - -/* read page article title */ -.rtitle { - color: #ffffff; - font-weight: bold; -} - -/* read item */ -.ritem { font-weight: bold; } - -.rbodybg { - background-color: #f5fbe6; - text-align: center; -} - -/* read article body text */ -.rbody { - color: #000000; - font-family: ü, GulimChe, "Lucida Console"; - text-align: left; -} - -/* password td in delete page */ -.delpassfd { - color: #ffffff; - font-weight: bold; -} - -/* Login page */ -/* login title */ -.logtitle { - font-size: 14px; - font-family: tahoma, sans-serif; - color: #ffffff; - font-weight: bold; - background-color: #a0dc10; - text-align: center; -} - -/* login table background */ -.log_bg { - text-align: center; - background-color: #d3dac3; -} - -/* login td */ -.log_td { - overflow: hidden; - white-space: nowrap; - text-align: center; -} - -/* - * JSBoard Internal CSS - */ - -.versionprint { - font-size: 21px; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #a0dc10; - text-align: center; - vertical-align: middle; - font-variant: small-caps; -} - -/* rss link */ -.rss { - color: #999999; - font-weight: bold; -} - -/* Notice on list page */ -/* notice text */ -.notice { - color: #000000; - font-weight: bold; -} - -.noticebg { - background-color: #d3dac3; -} - -/* listkey number */ -.listkey { - color: red; - font-weight: bold; -} - -/* list row */ -.row0 { background-color: #f5fbe6; } -.rowbg0 { color: #f5fbe6; } -.row1 { background-color: #d3dac3; } -.rowbg1 { color: #d3dac3; } -.rowOn { background-color: #e3f9ab; } - -.rownum { - color: #000000; - text-align: right; - overflow: hidden; - white-space: nowrap; -} -.rowtitle { color: #000000; } -.rowcomment { - color: #000000; - font-size: 9px; - font-family: tahoma, sans-serif; -} -.rowcommentbold { - color: #000000; - font-size: 9px; - font-family: tahoma, sans-serif; - font-weight: bold; -} -.rowname { color: #000000; text-align: right; } -.rowdate { - color: #000000; - text-align: right; - overflow: hidden; - white-space: nowrap; -} -.rownewdate { color: #d2691e; } -.rowrefer { color: #000000; text-align: right; } -.rowupload { text-align: center; } - -/* article preview box sytle */ -div.preview { - position: absolute; - z-index: 50; - width: 260px; - visibility: hidden; -} -div.previewload { - padding: 5px 5px 5px 5px; - border: 1px #a0dc10 solid; - background-color: #ffffff; - color: #555555; - width: 360px; -} - -/* list ϴ page link */ -.fast { - font-size: 10px; - font-family: tahoma, sans-serif; - color: #555555; -} - -/* list ϴ sql time */ -.sqltime { - font-size: 11px; - font-family: tahoma, sans-serif; - color:#555555; -} - -.fastem { - color: #ffd700; - font-weight: bold; -} - -/* list / read menu */ -.menus { - color: #555555; -} -.menusdisable { - color: #999999; -} - -/* if admin / logout link is text */ -.admintext { color: #555555; } - -/* no search message */ -.narticle { - font-size: 22px; - font-family: ü, GulimChe, "Lucida Console", monospace; - font-weight: bold; - color: #000000; -} -.narticlebg { - background-color: #f5fbe6; - text-align: center; -} - -/* comment table */ -/* comment header message */ -.c_header { - font-size: 10px; - font-family: tahoma, sans-serif; - font-weight: bold; -} - -/* comment td */ -.c_td { - overflow: hidden; - white-space: nowrap; -} - -/* comment context */ -.c_text { - white-space: pre; -} - -/* comment user name */ -.c_user { - font-weight: bold; -} - -/* comment date */ -.c_date { - font-size: 11px; - font-family: tahoma, sans-serif; -} - -/* Comment input table */ -/* comment whole guide */ -.ci_table { - background-color: #d3dac3; -} - -/* Detail Search div */ -/* guide table */ -.ds_table { - background-color: #f5fbe6; - text-align: center; -} - -/* each td */ -.ds_td { - overflow: hidden; - white-space: nowrap; - text-align: left; -} - -/* search feild */ -.ds_field { - font-family: tahoma, sans-serif; -} - -/* Conjunction article list in read page */ -.cn_seperate { - background-image: url(../../images/dotline.gif); - text-align: center; -} - -/* attach file name */ -.attachfn { - color: #000000; -} -/* missing attach file name */ -.attachfn_m { - color: red; - font-weight: bold; -} - -/* password input box */ -.passbox { - font-size: 10px; - font-family: tahoma, sans-serif; -} - -/* register ip */ -.regip { - color: #000000; -} - -/* Whois CSS */ -.whois_tel { - color: #a0dc10; - font-weight: bold; -} - -.whois_addr { - color: #d3dac3; - font-weight: bold; -} - -.whois_net { - color: red; - font-weight: bold; -} - -/* Error popup window */ -.err_bg { - background-color: #d3dac3; -} -.err_fg { - background-color: #ffffff; - color: #555555; -} - -/* User Registration */ -.exttitle { - font-size: 15pt; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #a0dc10; -} - -.ext_comment { - background-color: #d3dac3; - color: #555555; -} - -.ext_field_nb { - background-color: #d3dac3; - color: #555555; - font-weight: bold; -} -.ext_field_ib { background-color: #f5fbe6; } - -/* Search word hilighting */ -.hilight { - color: #6d7bc9; - font-weight: bold; - text-decoration: underline; -} - -/* code block */ -.jsCodeBlock { - border: 1px dotted #a0dc10; - background-color: #dedede; - margin: 10px 10px; - padding: 10px 10px; -} - -/* Quote block */ -blockquote { - background: #ebebeb none 6px 8px no-repeat; - background-image: url("../../images/quote.gif"); - border: 1px solid #dbdbdb; - font-size: 1em; - margin: 0.5em 1px 0 25px; - overflow: hidden; - padding: 5px; -} - -blockquote blockquote { - /* Nested quotes */ - background-color: #bababa; - font-size: 1em; - margin: 0.5em 1px 0 15px; -} - -blockquote blockquote blockquote { - /* Nested quotes */ - background-color: #e4e4e4; -} - -blockquote cite { - /* Username/source of quoter */ - font-style: normal; - font-weight: bold; - margin-left: 20px; - display: block; - font-size: 0.95em; -} - -blockquote cite cite { - font-size: 1em; -} - -blockquote.uncited { - padding-top: 25px; -} diff --git a/theme/KO-default/delete.template b/theme/KO-default/delete.template index d0e4f771..f818cec7 100644 --- a/theme/KO-default/delete.template +++ b/theme/KO-default/delete.template @@ -1,95 +1,159 @@ + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> -
- - - - - + - - - -
>> Delete article
+ + + + + + + + + + + + + + + + + +
> + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + +\n/i","\\0",$list['title']); ?> + + + + + + + +
+ +>> Delete article +
+No. + +
- - - - - - - - + + + + + + + + - - - - - - - - -
-
-     -ȸ
-̸     - {$list['attach']} -EOF; -?>
-
-
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + +
+
+     +ȸ
+̸     + {$list['attach']}" ?>
+
+
- - -
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
- - - - - - - +
-
+ + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
> + - -
+ +
- - - - - - - +
+ + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + - + -
-[ | ] -
+[ > | ] +
+ -  - -
- +  + + +
+ + + + + + +
+ + + + + + diff --git a/theme/KO-default/edit.template b/theme/KO-default/edit.template index d79b5378..d00cb47f 100644 --- a/theme/KO-default/edit.template +++ b/theme/KO-default/edit.template @@ -1,178 +1,239 @@ - - - - - - - -
onsubmit="return registCheck();"> - - - - - - - - - - - - - -
>> Edit article
- - -
- - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> + + + + + + + + + + + + + + + +
> +> +


̸ tabindex="1">
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + +
+ +>> Edit article +
+ + +
+ + BORDER=0 CELLPADDING=1 CELLSPACING=0> + + + + + + + + + + + + + + + + + + + + + - - - - -EOF; + echo " + + + +\n"; } ?> - - - - + + + + - - - - -EOF; + echo " + + + +\n"; } ?> - - - + + + + + + + + + + + + - - - - -EOF; + echo "\n". + "\n". + " - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } ?> - - - - - - - - - - - - - - + + + + + + + + + + + + + +н - -EOF; +if(eregi("^(0|4|6)$",$board['mode']) && !$board['super']) { + echo "\n". + "\n"; +} else { + echo "\n"; } ?> - + - - - -


̸ MAXLENGTH=50 VALUE="">
Ȩ
Ȩ
HTML +> +> +
- -{$list['bofile']} -{$list['bofile']} - $hfsize     - ϻ -
\n". + "\n". + "{$list['bofile']}\n". + "{$list['bofile']} - $hfsize    \n". + " ϻ\n"; } if ($upload['yesno'] && $cupload['yesno'] && $noup != 1) { - echo << -ϼ - - -
ϼ\n". + "\n". + "\n". + "
MAXLENGTH=100 VALUE="">
-$passment - -н\n". + "$passment\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "

+ +
+ + - - -
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
- - +
+ BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
ALIGN=CENTER> - - - - + + + + + - - + -
+
- - - - - - - +
+ + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + + -
- - - - -
- + +> + + +
+ + + + + + + + + + + + + + diff --git a/theme/KO-default/ext.template b/theme/KO-default/ext.template new file mode 100644 index 00000000..efb891b2 --- /dev/null +++ b/theme/KO-default/ext.template @@ -0,0 +1,38 @@ + + + + + + +Jsboard <?=$board['ver']?> - <?=$print['head']?> + + + + + + + + + diff --git a/theme/KO-default/img/at.gif b/theme/KO-default/img/at.gif deleted file mode 100644 index 538f817fa32dadeba74d3af8706c3dc371bd984e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 850 zcmc(eEpC-z5QWc8Ah|aL9HL201Ez$8(u05?2~b=G0$VddAS!DMs!N!pdmt5Tp=uU@ zK(Gsf8lHJK!Rsb7bN=T0-hX)a^3~Z+5A;XsdDWfW(d}+cRn?VU(d8~pGpjQ@qtl(5 z*{F`}hz@sXR$c9EN84?I)T&mtqU9C^*g%8DGSeEKd07=zuF}v_WmZO|D>W);Mpi_H zD>R~*b(W*-ve3wCDN9ju3071ChG`(7Zo%e zX{UvIL@}F+lvCIv4`i}U9Qa2B4p9vlqEX2xIv@rcXs|TNO`DqM2u+aqgOoVOy7x5K2`A=tm6=^ZPwFeXSzU3=5thS2TB7GBOUD2&Xg&w7M0j{wRG|NdckuVl zM*69z!#)3mw$F64+dnz|{o~u+@Ap4`K015zWxMy}dV6#5_Uhqb{QC6#(e2lJyW6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ecARr(iAt53nA|oRsBqSsyB_$>%CMPE+C@3f?DJd!{Dl021EG#T7 zEiEoCE-x=HFfcGNF)=bSGBYzXG&D3dH8nOiHa9mnI5;>tIXOByIy*Z%JUl!-Jv}}? zK0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)WtPESuy zP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5dU|?Wj zVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&OadC2T za&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8f`fyD zgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@l$4Z} zm6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!rKP5( zrl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dkwzs#p zxVX5vxw*Q!y1To(yu7@dCU$jHda z$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1lt)=I7_<=;-L_>FMg~>g((4 z?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF){QUg= o{r&#_{{R2~EC2ui00;mA000ON009Vm0PmkcfdB{^{1*@aJA5aF+W-In diff --git a/theme/KO-default/img/board_no.gif b/theme/KO-default/img/board_no.gif index 9ee4f10567a38575ef04a896489795b9cd0b11e7..9734f5a38322de6679f0cd3f6b6839e8d3610f5c 100644 GIT binary patch literal 393 zcmZ?wbhEHbRAP{1xXQrraVe9lnMk;!kcP5&nzx|2j@Z;J?upr4D3R1%(bb8 zUT4EUS#-xDMV6I^8Y#pS^&kLEMQ}GKqSad3~b8|Of2w_adqjLP;@dz zjO%DdpyDf&^@*M;tkeY3uItc;*;y2)yJV!I@y(5iD~vM2`1*41+GF$>`VK^=dBJZ7s{_nsjBX=$}A$7A^mYge9&-B)|;N~XJ#(9Je3rhAVbKY9A>`HPpY KUcYu^um%8p>TQew literal 1496 zcmcJO`8yPN9DqNA7-1UYXk@G*GS-+GjB7~R=$;LQBBg{HtT~iX(#=1i4yW1bJ?;r5~^u9+}P8OCyR8WHt2>t^hR5XcSN0W@h zkR^o7E=ccylvYT72<&F~sR3fR5d9l`UkFjRAu<=jvmiJfPNzWN&){|uSZBcg6qq;z z)dqA-Ktmr?H6gnnlh!VAb3ih0Xji^Sx?mVvIJ&!dO0j5Cv1FQ1JV_`OtCYP^<<6+w zn^vuuBl2FU-J2qo&8nBqsMjoN)V|fMdq*yx(JY@KKln$td`6r9R=0VLQZb|RaO3OR zc}nY+;p30=wjD<8JhkBstpk}#d?1UqImVn*$paTl^|UNY-OHa+NY85O*H&rq;Qy(f!#EyqOK2c;o)dP5v9yJh#!jxYPPK z5-g#j`0zVW()Gaud4-q*K#(|(z z2uy;2MDR}lzw6-pBY4MwXDpnIf#c`FH40oJ!8sI;gn(lZIGhGMKd|+MLq1^R4F^5p zn-gGp9L!z8%mqx3f{7CtJA#n|(CvU~4F*=AZwVB0&@+Prrl8A&{S45igBA_QRM0d4 zbzLB8!Co>b?E}0j>`?)%9Q19R8rVGB^ZxAUTITp#zIe0Z<#y!~dh%|&X9bBi(fmiW ztYZW!Bp?t$RvuI}KtU1qD1jUfKBH}{EXZI%QW7wjFMWQ=^#6hSMf>FiTP%WISP}*A zbQgnF(tadi&o=NA{&!$A!GL0!@w~3^lEJ1QAPCmmC z?$KTKQ?E=~E<2bI?t1YB1;t)9@>0RQg`N$O?oqQ;u1|ME4#L zna~a?sV`mxIivYQ>8NvsJw6 z?`lbxFekVA^#YEaSuf2$=S`I()UjQqIlcBS=D#!8LOf4_n@MnU4oZ@hVGj1{t1Y{8 z7#*8z7wKBz3Wt_Q)N)Fq?Cun5_FC{IRj+X^vT#?q=56vSj|4}l?NX9#t<+@OyVMIt zZBl{0d3Y={@ZhRYOTQq;jxpZpod|Y8Hp=BO$$zCN^N2i}D9Xczy zx1xe=iyI)br$Iy#u^9FEgbZnd4yMb~BeO0%dVgsBQQG*0l2RA?kC*J|%pn1Wq5+AX z3X#?&=~7nm#;(CB8sQ;d)y|3ZFfEe=JDk4(56cBJB^>Zj}vdQaMyb%gL1(>Zc-Zd zon(PTezKsCCQ#nLV%p^cX?qF&59}2f75HRw)LNUpjGVP7Q8}zE^M#T%lZXea)u!Xi Mb*lpo(o$gcFX*&ubN~PV diff --git a/theme/KO-default/img/delete_title.gif b/theme/KO-default/img/delete_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..b4eb974bd5d22440d3983f4cd215cfca3754dca8 GIT binary patch literal 497 zcmVAL^*-v95;A^8LW00062EC2ui09ODH06+x)P{>KEy*TU5JDSZ=I8s4S zN@FzukaWV4EX*k-wgCvuDR9En64-lo|J>TeANQ#TAH?-C752JssW!7&X4fClOooOs2c z*S$@`aBW&=L_k3dRcfU&BjG>*K*=gxLXZH+5)8m*7y!tmNy35!4*~$NgR6iHF-S%V z1hG#~g#ive_9&O)N&zwx1{fGnz-9(?6E0CGNZ`W`n=>A$C^z9jFC`lke6V5Rz()!{ zjc(wG=K?1rT)}p-FaRbuEejmX>oE7N-Me@*L;wIgSm4DHqeCF*s5b&aGc79?yf9({ n!AlZPt*&5+=maY)Y~i*tK>#Q_H4GjMY%%z+;lqeiga80L#!kG} literal 0 HcmV?d00001 diff --git a/theme/KO-default/img/dot.gif b/theme/KO-default/img/dot.gif deleted file mode 100644 index 34b97d93dcdb55a97b2d13f8cc6da79611fa9704..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 48 zcmZ?wbhEHblwe?FXkcJSOH2Fz|G(l-7Dfi3fDQu?fMgh$*m;sFPQDIgV6X-N9)t@8 diff --git a/theme/KO-default/img/dotted_gray.gif b/theme/KO-default/img/dotted_gray.gif deleted file mode 100644 index 8342733e74a31860c1843a42de74f2253527137c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 44 ucmZ?wbhEHbWMg1tXkcLY|NsB<=g$>?vM@3LfewfO$uKZ6_cXFHSOWkZ1qy}$ diff --git a/theme/KO-default/img/edit_title.gif b/theme/KO-default/img/edit_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..5bbaa70e04af99a14edaa3fd7d3c45b9b52ad23f GIT binary patch literal 406 zcmV;H0crk6Nk%w1VOIbT0JHx9|NsC0`tHEM!2h!l|F|Iky)gg8ME}WE|ITIq({=ya ziT~f3|KzIw>AL^*-v95;A^8LW00062EC2ui09ODH06+x)P{>KEy*TU5yLg0@7(*i= zrceyWaw!JaJaeNY#Z=@|5{ilkLz0>_5EGE4kVqg6E&%0_kPxJll%d*LxG2noBQX#x zxD!`dDHt@HlCx({Of(#H4T_xa=SczvJbo7lXcA?FMs{NYLlOo7i3LR`1_lS0i5LqE z0|pI)5)2OyRSHM~1cIpo08N{6jxicI8U{ZUt2Z7E2O10q47nBx87zv)%FE2n&V2+` zSQZ4vSqlveUmbipO|ozlj{-0mBNm1XCWaqbTm%ml4cMmK0SlrM1@Q_E4O|8u1ONcQ z7=TR)4j_#3oCO|{#S9GG!XV7ZFl&wkP|(xU z#WAGfR&vG9KU#(_J~m(G2?^eneEN}Ww3yJ^lGlg+|Nk%iwBdh(!^Y@`@08z!?fBhM tqQLjINRLZ{K}Op&CSiF zCB;jYEct({#9T*g)4C;_Hf{R<|9@#|>7z%FCQqK++|*PW%D-mKnv#-|+jIHD!^8it zW0*2&qNJo`T3XuwOCdnT473D_KUo+V7!(+EK$d{~#K3mjVM2k2j+7!B@1YYpeCo{2 z>=##tsr#jeEaZ%^X5?o-@X}$^nSR5i658 zqX<*Y<)u9RHIq_y%HLj^_2fiGsYJl4<~}uvQ$D^>hl}}RYRN;dK INdgSk0M7@E^Z)<= delta 752 zcmV$ox#q|5Cc>OUn3L!t7kp{$#-D zU(NVt!RTVm_G{1faMt~K*#CRT>vGHOc-8oS%k6s1?R?brgwF1R-v5u_|CHnZpV;x8 z=KibS^{eTB|Fi1yXL-daD3=ssMMV0Cb`NbD;oopa5{40A-B; zU4j5veE?T^09AJYRCWMRZvahf08DBCOKAW`VgN*607G5?L0SMnSpYp%06I_rI8FdJ zO#n7a05wVgGe!V0L;x;804+ZNEIa@zIshp-04O&o046m6BQOAPodH;T0h7%Gd8h=` z@r>a7oA3X}^ZwTL|J?Zh=J@{Tk#Ss+fK8ErO_6|2k$@$CA^8LW00000EC2ui04x9v z06+-;009UbNU)$m86k@J>4SoZ!G{nZ9x6n!qQ#3;W|V=$01lf3T`a^v60u|qLsSe^ zF*F5=kQE^`3_zep0hkDYfC%Jp!9dA@L#SM|xP-(PH*x4Rpuoa`ojH3JJaF=}Du69x z&>&D?20@sA4jV31fMLX{SssRl4sGe;03JJb)`THLU_}ZSJE|rTs@9^C0AbR=x#OUY z9XMW2m@Qd?gb5EAL}Y+KAjJn7Iu1uV@R0-Oje-F)Rsyj25yr1Ok!WNu6Gi|cQ^fPKp7#OSpVbCJx diff --git a/theme/KO-default/img/reply_title.gif b/theme/KO-default/img/reply_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..49118cf3af60793edf69761a153831e818d09a54 GIT binary patch literal 511 zcmVAL^*-v95;A^8LW00062EC2ui09ODH06+x)P{>KEy*SgMJMR}VHAmq{ z1wko|)c`;ON{LKbLsNWK!Z?Q2X8;IRe2r6LK>$!33W*_52{amys0L7&_y8>dVDT~( z7&1vCEtoa}gTbN(P_1WpO3jQXsPab%Mt~J(L_8D*VG|BmRvH9X4>ATP6Auy$K@5wW z4Ga=>84Ds72oD1U3JE3>0|5&G4+jXAZ7?vh3G@t?n`f5Q8@XHX* z0EYv}x`;{DfJ_5D8OBhZxw7C806V@b B!@d9j literal 0 HcmV?d00001 diff --git a/theme/KO-default/img/write_title.gif b/theme/KO-default/img/write_title.gif new file mode 100644 index 0000000000000000000000000000000000000000..40208df494a11f71429b5a6eca0b3cd8f8d56f8a GIT binary patch literal 333 zcmV-T0kZx_Nk%w1VNC!J0JHx9|N8F0z`*~r5dXL!|GhB(#6B<+KK<) zng8Uf|LMB__1^#Q&j0`aA^8LW00031EC2ui08Ic706+x#Fvv-(y*TU5<)BYsFx5vn z1x7ed*iBE&I1GbWLMjRFP6zDIc9u|m#sY~W$ z3na_+kggoUg>adW;%c&#K|>%38I}`ZRSp4o6*UYC4G0GZd>sY@2x(9kHWOB5T~i4M znxCMdqMsj<8v|n$N{E%C8b1?NF)0iMXchzyl?V$LN&y85tx>fF0FM+34-E}zU=>*j z3=IJUfF1w{CJEOPbhb*oQ3Zqz(%lork0{9om?CY!)H?wT?iT_F4#-^ssA8$S&FjMt f+KU1ODa47_At8qxt~4O{!yrM#ix@LnhyVaP?uCW) literal 0 HcmV?d00001 diff --git a/theme/KO-default/index.template b/theme/KO-default/index.template deleted file mode 100644 index 58b2b57e..00000000 --- a/theme/KO-default/index.template +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - -<?=get_title()?> - JSBoard <?=$board['ver']?> - - - - - - - -> -
- - - - - - - - - - - - - -
- - - - - - - - - - -
-Copyleft -1999- by - -JSBoard Open Project
-Theme Designed by -IDOO -All right reserved -
- - - -
- - - - - - - diff --git a/theme/KO-default/list.template b/theme/KO-default/list.template index 128fe2aa..10ddb2a2 100644 --- a/theme/KO-default/list.template +++ b/theme/KO-default/list.template @@ -1,149 +1,219 @@ + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + +
> - - - - - - - - +
>>  
- - - - - - - - - - - - - - - +
No.̸
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + -
+ + >>
+ + + + + + + + + + + + + + + +\n -EOF; + echo "\n"; ?> - - - + + + - - - + + + -
ALIGN=left BGCOLOR=#FFAE00>No. ALIGN=center BGCOLOR=#FFAE00> ALIGN=center BGCOLOR=#FFAE00≯ ¥ȸ
ALIGN=center BGCOLOR=#FFAE00>¥ ALIGN=center BGCOLOR=#FFAE00>ȸ
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> Fast Page Link : -
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + + - + - -
>> Fast Page Link : +
-
- - - - - - -
- - - -
- -> -ǥ -
- - - - -
+ +> + + + + + + + + + + +
+ + MAXLENGTH=255 style="border:1x solid ;background-Color:;font:12px;color:;" VALUE="" +> + +
+ + style="border:1x solid ;background-Color:"> +ǥ +
-
-
+
+
-
- - - + +
+ +> + + - -
+ - -'> - -
+ + MAXLENGTH=6 style="border:1x solid ;background-Color:;font:12px;color:" VALUE='' +> + + +
-
+ + + + + + + + +
+ + + + + + diff --git a/theme/KO-default/login.template b/theme/KO-default/login.template index da9c07da..13d77282 100644 --- a/theme/KO-default/login.template +++ b/theme/KO-default/login.template @@ -1,96 +1,110 @@ - - - - - -JSBoard <?=$board['ver']?> Login page - - - - - - - - - -
- -
- - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - -
-Password - - -
-
User
Password
-Session Reset - -
-
- -
- - - - - - - - - -
- - -
- -
- - - - + + + + +JSBoard <?=$board['ver']?> Login page + + + + onLoad=InputFocus()> + + + + + +
+ +
> + + + + + + + + +
ALIGN=CENTER>
ALIGN=CENTER> +
+ + + + + + + + + + + + + + + + + + + + + +
+Password +> + + +
+
User>
Password>
+Session Reset + +
+
+ +
+ + +> +> +> + +> + + +
+ + +
+ +
+ + + + diff --git a/theme/KO-default/mail.template b/theme/KO-default/mail.template index e7c0b16b..09559517 100644 --- a/theme/KO-default/mail.template +++ b/theme/KO-default/mail.template @@ -1,102 +1,83 @@ - - - - -JSBoard Reply Notice - + - + - - 
-
- - +
+ + 
+
+ + +
- - -
-JSBoard Reply Notice -
+ + +
+ +JSBoard Reply Notice +
- - +
-
+
+
-
+

 
-$_('html_msg')
+{$langs['html_msg']}
 
 Server Name       : $servername$nofm
-
-
+
+
- - -
+ + +
- - -
-
+
+
-
+

 
-$_('u_name')              : {$rmail['name']}
+{$langs['u_name']}              : {$rmail['name']}
 $addressinfo
-$_('reg')              : $year $day $ampm $hms
-
-
- - - -
- - - +
-
-
+{$langs['a_t13']}              : $year $day $ampm $hms
+
+
+ + + +
+ + + -
+

 {$rmail['text']}
-
-
-
- - - -
- -Scripted by JSBoard Open Project - -
- -
- - -
-
-
- - + +
+ + + +
+ +Scripted by JSBoard Open Project + +
+ +
+
+ +
+
+
+ + diff --git a/theme/KO-default/read.template b/theme/KO-default/read.template index 5aaeaae9..372854b0 100644 --- a/theme/KO-default/read.template +++ b/theme/KO-default/read.template @@ -1,189 +1,261 @@ + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + +
> - - - - - - - - - - -\n/i", "\\0\"\"", $list['title']); ?> - - - - - - - -
>> Read article
-TITLE: - -
- - - - - - - - - - - - - - - - - -
-
-     -ȸ
-̸     - {$list['attach']}" : "" ?>
-
-
- - - -
- - - - - - - - - +
-
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + +\n/i","\\0",$list['title']); ?> + + + + + + + +
+ +>> Read article +
+TITLE: + +
+ + + + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + +
+
+     +ȸ
+̸     + {$list['attach']}" ?>
+
+
+ + BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
+ + + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
> + - + -
+
-
- - - - + +
-
->> +

+ BORDER=0 CELLPADDING=1 CELLSPACING=0> + + + - -
>
+
+>> -
+

>
- - - - - - - - - - -
-
- - - - - - - - - - + +
+ + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + +
+
+ + + + + + + + BORDER=0 CELLPADDING=0 CELLSPACING=0> + + - + - -
-
- - - - - - -
- - - -
- -> -ǥ -
- - - - + +> + + + + + + + + + +
+ + MAXLENGTH=255 style="border:1x solid ;background-Color:;font:12px;color:;" VALUE="" +> + +
+ + style="border:1x solid ;background-Color:"> +ǥ +
-
- + + Page Loading [ Sec ] -SQL Time [ Sec ]
- +SQL Time [ Sec ]
+
-
- - - + +
+ +> + + - -
+ - - - -
+ + MAXLENGTH=6 style="border:1x solid ;background-Color:;font:12px;color:" VALUE=''> + + +
-
+
+ + + + + + +
+ + + + + diff --git a/theme/KO-default/reply.template b/theme/KO-default/reply.template index 593e0801..eb48b522 100644 --- a/theme/KO-default/reply.template +++ b/theme/KO-default/reply.template @@ -1,175 +1,235 @@ - - - - - - - -
onsubmit="return registCheck();"> - - - - - - - - - - - - - -
>> Write reply article
- - -
- - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> + + + + + + + + + + + + + + + +
> +> +


̸ tabindex="1">
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + +
+ +>> Write reply article +
+ + +
+ + BORDER=0 CELLPADDING=1 CELLSPACING=0> + + + + + + + + + + + + + + + + + + + + + - - - - -EOF; + echo " + + + +\n"; } ?> - - - - + + + + - - - - -EOF; + echo " + + + +\n"; } ?> - - - + + + + + + + + + + + + - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } ?> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +н - -EOF; +if(eregi("^(0|4)$",$board['mode']) && !$board['super']) { + echo "\n". + "\n"; +} else { + echo "\n"; } ?> - + - - - -


̸ MAXLENGTH=50 VALUE="">
Ȩ
Ȩ
HTML +> +> +
- - -
\n". + "\n". + "\n". + "
" . $_('upload') . "
{$langs['upload']}
" tabindex="5">
MAXLENGTH=100 VALUE="">
- -{$pcaptcha} -н\n". + "\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "

+ +
+ + - - -
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
- - +
+ BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
ALIGN=CENTER> - - - + + + - -
+
- - - - - - - - +
+ + + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + + -
- - - - -
- - - + +> + + +
+ + + + + + + + + + + + + + diff --git a/theme/KO-default/write.template b/theme/KO-default/write.template index bd2d704b..9e0e3beb 100644 --- a/theme/KO-default/write.template +++ b/theme/KO-default/write.template @@ -1,171 +1,228 @@ - - - - - - - - - - - - -
onsubmit="return registCheck();"> - - - - - - - - - - - - - -
>> Write new article
- - -
- - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +Jsboard <?=$board['ver']?> - <?=get_title()?> + + + + + + + + + + + + + + + +
> +> +


̸ tabindex="1">
BORDER=0 CELLPADDING=0 CELLSPACING=0> + + + + + + + + + + + +
+ +>> Write new article +
+ + +
+ + BORDER=0 CELLPADDING=1 CELLSPACING=0> + + + + + + + + + + + + + + + + + + + + + - - - -END; +if($view['email']) { + echo " + + + +\n"; } ?> - - - - + + + + - - - -END; +if($view['url']) { + echo " + + + +\n"; } ?> - - - + + + + + + + + - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; + echo "\n". + "\n". + "\n". + "\n"; } ?> - - - - - - - - - - - - - + + + + + + + + + + + + +н - -END; +if((!$board['mode'] || $board['mode'] == 6) && $board['super'] != 1) { + echo "\n". + "\n"; +} else { + echo "\n"; } ?> - + - - - -


̸ MAXLENGTH=50 VALUE="">
Ȩ
Ȩ
HTML + + +
- - -
\n". + "\n". + "\n". + "
" . $_('upload') . "
{$langs['upload']}
MAXLENGTH=100>
- -{$pcaptcha} -н\n". + "\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "\n". + "TextSize Operation {$print['operate']}\n". + "

+ +
+ + - - -
+ BORDER=0 CELLPADDING=0 CELLSPACING=0> + +
- - +
+ BORDER=0 CELLPADDING=5 CELLSPACING=0> + -
ALIGN=CENTER> - - - + + + + - - + -
+
- - - - - - - +
+ + + + + + + BORDER=0 CELLPADDING=5 CELLSPACING=0> + + -
- - - - -
- - + +> + + +
+ + + + + + + + + + + + + + diff --git a/theme/common/lib.js b/theme/common/lib.js deleted file mode 100644 index bf92aa8e..00000000 --- a/theme/common/lib.js +++ /dev/null @@ -1,203 +0,0 @@ -/* - * $Id: lib.js,v 1.6 2009-11-16 21:52:47 oops Exp $ - */ - -function navInit () { - this.name = ''; - this.version = ''; - this.core = 'Mozilla'; -} - -function browserType() { - var navs = navigator.userAgent; - var navsver_t = ''; - var navsver = ''; - nav = new navInit; - - if ( navs.indexOf('MSIE') != -1 ) { - nav.name = 'MSIE'; - navsver_t = navs.search(/MSIE ([^;]+)/); - navsver = RegExp.$1; - nav.core = 'MSIE'; - } else if ( navs.indexOf('Firefox') != -1 ) { - nav.name = 'Firefox'; - navsver_t = navs.search(/([^\/]+)$/); - navsver = RegExp.$1; - nav.core = 'Mozilla'; - } else if ( navs.indexOf('Thunderbird') != -1 ) { - nav.name = 'Thunderbird'; - navsver_t = navs.search(/([^\/]+)$/); - navsver = RegExp.$1; - nav.core = 'Mozilla'; - } else if ( navs.indexOf('Safari') != -1 ) { - nav.name = 'Safari'; - navsver_t = navs.search(/([^\/]+)$/); - navsver = RegExp.$1; - } else if ( navs.indexOf('Opera') != -1 ) { - nav.name = 'Opera'; - navsver_t = navs.search(/Opera\/([0-9.]+)/); - navsver = RegExp.$1; - } else if ( navs.indexOf('Konqueror') != -1 ) { - nav.name = 'Konqueror'; - navsver_t = navs.search(/Konqueror\/([0-9.]+)/); - navsver = RegExp.$1; - } else if ( navs.indexOf('Mozilla') != -1 ) { - /* over Netscape 6 */ - if ( navs.indexOf('Netscape') != -1 ) { - nav.name = 'Netscape'; - navsver_t = navs.search(/([^\/]+)$/); - navsver = RegExp.$1; - /* Mozilla comportable browser */ - } else if ( navs.indexOf('Gecko') != -1 ) { - nav.name = 'Mozilla'; - if ( navs.match(/rv:/) ) { - navsver_t = navs.search(/rv:*([^)]+)\)/); - } else { - navsver_t = navs.search(/ (m[0-9]+)/); - } - navsver = RegExp.$1; - /* Nescape Browser */ - } else { - nav.name = 'Netscape'; - navsver_t = navs.search(/Mozilla\/([0-9.]+)/); - navsver = RegExp.$1; - nav.core = 'Netscape'; - } - } else { - nav.name = 'Netscape'; - nav.core = 'Netscape'; - } - - nav.version = navsver.replace(/[ ]+\([^)]+\)$/g,""); - return nav; -} -var nav = browserType(); - -function newwinInit() { - this.child = null; - this.count = 0; -} - -ns = new newwinInit; - -function new_windows(addr,tag,scroll,resize,wid,hei) { - if (self.screen) { - width = screen.width - height = screen.height - } else if (self.java) { - var def = java.awt.Toolkit.getDefaultToolkit(); - var scrsize = def.getScreenSize(); - width = scrsize.width; - height = scrsize.width; - } - - var chkwid = width - 10 - var chkhei = height - 20 - - if (chkwid < wid) { - wid = width - 5 - if(chkhei < hei) { hei = height - 60 } - scroll = 'yes' - } - - if (chkhei < hei) { - if(chkwid < wid) { wid = width - 5 } - hei = height - 60 - scroll = 'yes' - } - - var childname = 'JSBoard' + ns.count++; - // if child window is opend, close child window. - if(ns.child != null) { - if(!ns.child.closed) { ns.child.close(); } - } - ns.child = window.open(addr,tag,'left=0, top=0, toolbar=0,scrollbars=' + scroll + ',status=0,menubar=0,resizable=' + resize + ',width=' + wid + ',height=' + hei +''); - // if child window load, change window focus topest - ns.child.focus(); - return; -} - -function sendform (user, addr, name) { - var _nf; - var _nb; - - _nf = name ? name + " <" : ''; - _nb = name ? ">" : ''; - - location.href="mailto:" + _nf + user + "@" + addr + _nb; -} - -function onMouseColor(id,classname) { - document.getElementById(id).className = classname; -} - -function InputFocus(id) { - document.getElementById(id).focus(); -} - -function trim(_str) { - var result; - - if ( ! _str ) { - return(""); - } - - result = _str.replace(/^\s+/g, ''); - result = _str.replace(/\s+$/g, ''); - - return(result); -} - -function registCheck() { - doc = document; - - id = trim(doc.getElementById('name').value); - - if ( id.length < 1 ) { - alert('Please writer\'s name is required'); - return false; - } - - title = trim(doc.getElementById('title').value); - if ( title.length < 1 ) { - alert('Please subject of article is required'); - return false; - } - passwd = trim(doc.getElementById('passwd').value); - if ( passwd.length < 1 ) { - alert('Please password of article is required'); - return false - } - - return true; -} - -function location_ref(url) { - var fakeLink = document.createElement ("a"); - if (typeof(fakeLink.click) == 'undefined') { - location.href = url; // sends referrer in FF, not in IE - } else { - fakeLink.href = url; - document.body.appendChild(fakeLink); - fakeLink.click(); // click() method defined in IE only - } -} - -function browserSize (type) { - if (typeof(window.innerWidth) == 'number') { - //Non-IE - width = window.innerWidth; - height = window.innerHeight; - } else if (document.documentElement && - (document.documentElement.clientWidth || document.documentElement.clientHeight)) { - //IE 6+ in 'standards compliant mode' - width = document.documentElement.clientWidth; - height = document.documentElement.clientHeight; - } else if( document.body && (document.body.clientWidth || document.body.clientHeight)) { - //IE 4 compatible - width = document.body.clientWidth; - height = document.body.clientHeight; - } - - return (type == 'width') ? width : height; -} diff --git a/theme/common/preview.js b/theme/common/preview.js deleted file mode 100644 index 4ccaf053..00000000 --- a/theme/common/preview.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - * $Id: preview.js,v 1.5 2009-11-16 21:52:47 oops Exp $ - */ - -function previewInit() { - this.x = 0; - this.y = 0; - this.snow = 0; - this.sw = 0; - this.cnt = 0; - this.dir = 1; - this.offsetx = 3; - this.offsety = 3; - this.width = 260; - this.height = 50; - - try { - if ( ! nav ) { nav = browserType (); } - } catch (e) { - nav = browserType (); - } -} - -pv = new previewInit; -if ( nav.core == 'Netscape' ) { - over = document.overDiv; -} else { - over = document.getElementById('overDiv'); -} -document.onmousemove = mouseMove; -if ( nav.core != 'MSIE' ) { - if (document.addEventListener) { - document.addEventListener("move", mouseMove, false); - } else { - document.captureEvents(Event.MOUSEMOVE); - } -} - -function drs(text, title) { dts(1,text); } - -function nd() { - if ( pv.cnt >= 1 ) { pv.sw = 0 }; - if ( pv.sw == 0 ) { - pv.snow = 0; - hideObject(over); - } else { pv.cnt++; } -} - -function dts(d,text) { - txt = "
" + - text + "<\/div>"; - layerWrite(txt); - pv.dir = d; - disp(); -} - -function disp() { - if (pv.snow == 0) { - if (pv.dir == 2) { moveTo(over,pv.x+pv.offsetx-(pv.width/2),pv.y+pv.offsety); } // Center - if (pv.dir == 1) { moveTo(over,pv.x+pv.offsetx,pv.y+pv.offsety); } // Right - if (pv.dir == 0) { moveTo(over,pv.x-pv.offsetx-pv.width,pv.y+pv.offsety); } // Left - showObject(over); - pv.snow = 1; - } -} - -function mouseMove(e) { - if ( nav.core == 'MSIE' ) { - pv.x = event.x + document.body.scrollLeft + 10 - pv.y = event.y + document.body.scrollTop - if ( pv.x + pv.width - document.body.scrollLeft > document.body.clientWidth ) pv.x = pv.x - pv.width - 25; - if ( pv.y + pv.height - document.body.scrollTop > document.body.clientHeight ) pv.y = pv.y - pv.height; - } else if ( nav.core == 'Mozilla' ) { - pv.x = ( (e.pageX)+pv.width-window.pageXOffset > window.innerWidth ) ? (e.pageX+10)-pv.width-10 : e.pageX+10; - pv.y = ( (e.pageY)+pv.height-self.pageYOffset > window.innerHeight ) ? (e.pageY)-pv.height+5 : e.pageY; - } else { - pv.x=e.pageX+10; - pv.y=e.pageY; - if (pv.x+pv.width-self.pageXOffset > window.innerWidth) pv.x=pv.x-pv.width-5; - if (pv.y+pv.height-self.pageYOffset > window.innerHeight) pv.y=pv.y-pv.height; - } - - if (pv.snow) { - if (pv.dir == 2) { moveTo(over,pv.x+pv.offsetx-(pv.width/2),pv.y+pv.offsety); } // Center - if (pv.dir == 1) { moveTo(over,pv.x+pv.offsetx,pv.y+pv.offsety); } // Right - if (pv.dir == 0) { moveTo(over,pv.x-pv.offsetx-pv.width,pv.y+pv.offsety); } // Left - } -} - -function cClick() { hideObject(over); pv.sw=0; } -function layerWrite(txt) { - if ( nav.core == 'Netscape' ) { - var lyr = document.overDiv.document; - lyr.write(txt); - lyr.close(); - } else { - over.innerHTML = txt; - } -} -function showObject(obj) { - if ( nav.core == 'Netscape' ) { - obj.visibility = "show" - } else { - obj.style.visibility = "visible"; - } -} -function hideObject(obj) { - if ( nav.core == 'Netscape' ) { - obj.visibility = "hide" - } else { - obj.style.visibility = "hidden"; - } -} -function moveTo(obj,xL,yL) { - if ( nav.core == 'Netscape' ) { - obj.left = xL; - obj.top = yL; - } else { - obj.style.left = xL; - obj.style.top = yL; - } -} - diff --git a/theme/common/textarea.js b/theme/common/textarea.js deleted file mode 100644 index 95861f65..00000000 --- a/theme/common/textarea.js +++ /dev/null @@ -1,271 +0,0 @@ -// $Id: textarea.js,v 1.2 2008-12-12 19:40:14 oops Exp $ -// $origId: textarea.js,v 1.9 2006/04/14 13:48:56 killes Exp $ -// from drupal -// many functions are imported from drupal.js to eliminate dependency - -if (document.jsEnabled == undefined) { - // Note: ! casts to boolean implicitly. - document.jsEnabled = !( - !document.getElementsByTagName || - !document.createElement || - !document.createTextNode || - !document.getElementById); -} - -function textarea_cols(obj) { - if ( /%/.test(obj.style.width) ) { - if ( /%/.test(tarea_width) ) { width = browserSize('width'); } - else { width = tarea_width; } - } else { - width = obj.style.width; - } - - wtype = typeof width; - if ( wtype == 'string' ) - width = width.replace(/[ ]*px/g, ""); - - if ( ! width || obj.cols == -1 || obj.cols == 20 ) { - obj.cols = tarea_cols; - //document.getElementById('vcols').value = obj.cols; - return true; - } - - obj.cols = Math.round(width / 7) + 7; - //document.getElementById('vcols').value = obj.cols; - - return true; -} - -/** - * Retrieves the absolute position of an element on the screen - */ -function absolutePosition(el) { - var sLeft = 0, sTop = 0; - var isDiv = /^div$/i.test(el.tagName); - if (isDiv && el.scrollLeft) { - sLeft = el.scrollLeft; - } - if (isDiv && el.scrollTop) { - sTop = el.scrollTop; - } - var r = { x: el.offsetLeft - sLeft, y: el.offsetTop - sTop }; - if (el.offsetParent) { - var tmp = absolutePosition(el.offsetParent); - r.x += tmp.x; - r.y += tmp.y; - } - return r; -}; - -function dimensions(el) { - return { width: el.offsetWidth, height: el.offsetHeight }; -} - -/** - * Returns true if an element has a specified class name - */ -function hasClass(node, className) { - if (node.className == className) { - return true; - } - var reg = new RegExp('(^| )'+ className +'($| )') - if (reg.test(node.className)) { - return true; - } - return false; -} - -/** - * Prevents an event from propagating. - */ -function stopEvent(event) { - if (event.preventDefault) { - event.preventDefault(); - event.stopPropagation(); - } - else { - event.returnValue = false; - event.cancelBubble = true; - } -} - -/** - * Removes a class name from an element - */ -function removeNode(node) { - if (typeof node == 'string') { - node = document.getElementById(node); - } - if (node && node.parentNode) { - return node.parentNode.removeChild(node); - } - else { - return false; - } -} - -/** - * main textarea resizer function from drupal - * - * you have to define css as following - .resizable-textarea .grippie { - height: 14px; - background: #ECE9D6 url(../to_dir/grippie.png) no-repeat 100% 100%; - border: 1px solid #DFDBCA; - border-top-width: 0; - border-right-width: 0; - cursor: s-resize; - } - */ -function textAreaAutoAttach(event, parent) { - if (typeof parent == 'undefined') { - // Attach to all visible textareas. - textareas = document.getElementsByTagName('textarea'); - } - else { - // Attach to all visible textareas inside parent. - textareas = parent.getElementsByTagName('textarea'); - } - var textarea; - for (var i = 0; textarea = textareas[i]; ++i) { - if (hasClass(textarea, 'resizable') && (textarea.nextSibling == null|| !hasClass(textarea.nextSibling, 'grippie'))) { - if (typeof dimensions(textarea).width != 'undefined' && dimensions(textarea).width != 0) { - new textArea(textarea); - } - } - } -} - -function textArea(element,wrapper) { - var ta = this; - this.element = element; - this.parent = this.element.parentNode; - this.dimensions = dimensions(element); - - // Prepare wrapper - if (typeof wrapper=='undefined') { - this.wrapper = document.createElement('div'); - this.wrapper.className = 'resizable-textarea'; - this.parent.insertBefore(this.wrapper, this.element); - } else { - this.wrapper=wrapper; - this.wrapper.className = 'resizable-textarea'; - } - - // Add grippie and measure it - this.grippie = document.createElement('div'); - this.grippie.className = 'grippie'; - this.wrapper.appendChild(this.grippie); - this.grippie.dimensions = dimensions(this.grippie); - this.grippie.onmousedown = function (e) { ta.beginDrag(e); }; - - // Set wrapper and textarea dimensions - this.wrapper.style.height = this.dimensions.height + this.grippie.dimensions.height + 1 +'px'; - this.element.style.marginBottom = '0px'; - this.element.style.width = '100%'; - this.element.style.height = this.dimensions.height +'px'; - - /** - * textarea_width is defined on (write|edit|reply).php - */ - textarea_cols(this.element); - - // Wrap textarea - if (typeof wrapper=='undefined') { - removeNode(this.element); - this.wrapper.insertBefore(this.element, this.grippie); - } - - // Measure difference between desired and actual textarea dimensions to account for padding/borders - this.widthOffset = dimensions(this.wrapper).width - this.dimensions.width; - - // Make the grippie line up in various browsers - if (window.opera) { - // Opera - this.grippie.style.marginRight = '4px'; - } - if (document.all && !window.opera) { - // IE - this.grippie.style.width = '100%'; - this.grippie.style.paddingLeft = '2px'; - } - // Mozilla - this.element.style.MozBoxSizing = 'border-box'; - - this.heightOffset = absolutePosition(this.grippie).y - absolutePosition(this.element).y - this.dimensions.height; -} - -textArea.prototype.beginDrag = function (event) { - if (document.isDragging) { - return; - } - document.isDragging = true; - - event = event || window.event; - // Capture mouse - var cp = this; - this.oldMoveHandler = document.onmousemove; - document.onmousemove = function(e) { cp.handleDrag(e); }; - this.oldUpHandler = document.onmouseup; - document.onmouseup = function(e) { cp.endDrag(e); }; - - // Store drag offset from grippie top - var pos = absolutePosition(this.grippie); - this.dragOffset = event.clientY - pos.y; - - // Make transparent - this.element.style.opacity = 0.4; - if (window.event) this.element.style.filter = "alpha(opacity=40)"; - - // Process - this.handleDrag(event); -} - -textArea.prototype.handleDrag = function (event) { - event = event || window.event; - // Get coordinates relative to text area - var pos = absolutePosition(this.element); - var y = event.clientY - pos.y; - var x = event.clientX - pos.x; - - // Set new width - //var width = Math.max(32, x - this.dragOffset - this.widthOffset) + 3; - var width = x + 4; - this.wrapper.style.width = width + 1 + 'px'; - this.element.style.width = width + 'px'; - - // Set new height - var height = Math.max(32, y - this.dragOffset - this.heightOffset); - this.wrapper.style.height = height + this.grippie.dimensions.height + 1 + 'px'; - this.element.style.height = height + 'px'; - - // Avoid text selection - stopEvent(event); -} - -textArea.prototype.endDrag = function (event) { - // Uncapture mouse - document.onmousemove = this.oldMoveHandler; - document.onmouseup = this.oldUpHandler; - - textarea_cols(this.element); - - // Restore opacity - this.element.style.opacity = 1.0; - if (window.event) this.element.style.filter = ''; - document.isDragging = false; -} - -if (document.jsEnabled) { - var oldOnload = window.onload; - if (typeof window.onload != 'function') { - window.onload = textAreaAutoAttach; - } else { - window.onload = function() { - oldOnload(); - textAreaAutoAttach(); - } - } - /* addLoadEvent(textAreaAutoAttach); */ -} - diff --git a/theme/player/LICENSE b/theme/player/LICENSE deleted file mode 100644 index 5c8f08b3..00000000 --- a/theme/player/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -This archive is follow license: - -French : http://creativecommons.org/licenses/by-nd/2.0/fr/ -English : http://creativecommons.org/licenses/by-nd/2.0/fr/deed.en_US -Korean : http://creativecommons.org/licenses/by-nd/2.0/fr/deed.ko - -Origianl Distribution: http://www.alsacreations.fr/dewplayer-en diff --git a/theme/player/dewplayer-vol.swf b/theme/player/dewplayer-vol.swf deleted file mode 100644 index df966d9da2a79be60e8f2e6204beb1c3bef8eea9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5214 zcmV-k6rt-wS5pUlI{*N9oV=TPU{l4~#wTf;rh6K?LJO5$WJdv^rA5|aX;~B%fi^U0 z8w^cM(gF$+7D1#G3RtXw6p=*)QSn0sKHBSo2v}TjK~Yh>B0F4JE+Y1unRDhm$vNQi z&*vZQbKd7S^S-m3Ij0G_NLT?OkvR8PwNI$WzUNY{Wyll0L*^vpr&S zlYEQARbn9?m(yeS+MT839$Sf}-0pOH$Y^I-sg+pVMMN>JWo`=>!!6zt;^siH)9dVC zY8~x$x`?O5ImK(AY$GmWC03iK&`mtuc_3|i8Y!~S5Ko(LFZJ5oMyA<3EIkj<-=(&xUiRC==91MUErG{taeMhSO)U*bJ&pcRGSORF zVsp4ie!1OapGZeU13U%$ZDBJ@1<%2MU|Gm$uceq)>97}@VZIK-Ahnpmdz^i;-*-Krz{4n$`qPEs98f_0(k zgpgwMYCU<7REH6x2xX>L>*-ZWbqEO!r`JOn5=p8JG-%XOV@N8+gLMLrU?5Xbtet*{ z)OyH#9nmFH9jxnD85g*egal2}9nn<>Q_~of%NhjdvRsmdo1T%n8qp5}6|NSRjNCG=yE#X$jR)VT?#&PUI*$P99M5M~zC9 z3X9HVWv=D35_78(XurP%v3XJVo64G*Zc*Q#H>0^@jWH>TXUa>V~J|D!-#>%|M5N8?oU^oEl&g+keRSx90nSn zkw|wq4n)4UzUAwZKs!mymAXyhoh9c+_+K{VKb!gOh*WAD6O0Kdx0?GD>g7p&r1CA$ zmKQ`Dh^=z7>1sYIQK6J!4>jko4q}P$PV}Du*^9gBW6LWo(r)f}aYl_-wT1d02x8 zzIHLBI)Zx2$WrO0a$#&E`s9bEf1e{op8>P7ny)fP{1R#Utc+2faddXUWP;LX8D5>EoiyEthI4ED@OWZNo4XKc$y ztiRQWd(ja`q2W!L-jp%0W9aS>U7n;;nNrm&-9G#cfghRS^5gjKTz>qhDx~)tTfZQtWh1Yhrz27PAeGKY*4rIKS@STA@MeAVmQKpR1D-|t1V-qs-iMuc)amPg%*lDv zS&_yJws7(i>iAacm!ib!Ri=C;d0EO;r3o*8d~$rmzp*Z$F;O-Ci`NqI*vt!9$eY3a zrG=FCpR`>3&6Zd6%-^nv{Jl)tDc0w{EV{Ux zi2obLbDEc#rhzXr%4Vsoc zhCegJt- z#Y0k*weX9M^^10-T?9lq78vy(_ruc3MqgNTB#1w8viW8i$Hx%O-+|iEt5o{L=)#@x z0nT{t#B*l?cfw?6LJE6bq9R{fNa>xZU{q@0dm6v3TFb5_Hyw{JR`1Xp{&!!Z92GUD z5Zn;r*2)RE@`Dosjw$I3i8W5-d#~`O&*VbwGr3THCg7;Wwxh(VMozAQ>YFh!!I14m*LZK z#}wb|V6R6{@4S5U$#d`2*BKLu{NffGOp9pZ-ARItA*`HWT1*m+cMhU{({uG!VkcQ9 zz4D1l9U016kr8wP!imnbHLJb;6JM>KeE#|8jhi=brt^{QYPIzGi6Hl*t&feXSn*;| z-z^J>EzX+VHtVQ$=sx4OEgzWG@63-`?RFlMOEuCy_Yo^Cm3>fWijS;Vy}e@B_8D6$ ze55g~DJ8Y3O7kKFvYt4QQ}Ea` zO_yI7e4)c9o9inN?k-rgMXo18T~9bMRa8jzG-34^DH3-fMESglRm7ggk@CdpSw(#E zCbA1Ld1ufRZC)bDx0yMNc$~Hlp87bo0%0EL5+l?x-9v#u6m5=WmFqKU>-%U&&&J~?AEEUPP17A+mEAkBRhyHf;dINa?OUD&E56A zhCXvFZ&&XnVdr+>x<>}nWXx{S$!21!FrRbK9i|(~hZe_&W|oH5gbi)WmSDYEH8itkX#9?fr_KE~2R(Xjr{Q?w{Cvsf8@}yCI(%ws zYWxl#4PiPWMgGWKe2hi{VmC7L zK32zm&y1;8$FBD~^r|}cTffD%>e#h@c}vu>|MrXV1xBuB9CE3tD;bLm)UnGMc_Y-Z zOBpd)>e#R8hq|g`|4Cn*rjA`q&oc!^E~Lj0HFdsk!v%HhT;EE~+@0;4tC_nqeWNvV zce+o5X6{b)sbq7fr_amGAU!|o*@>~hU`VE`nY7 z6C`a~J1~f4*3*mRu|EvVBJ&L)dXoI`EJcp%4+&sAfC&I50LTYW0H6SX1;9iA69E*i zRiqVw6@U#u5r859#Q;hGlmM^;m;_)FfJXp005||l22cvXse=UI0`Mq+M*+A2cmQ|+ zcmb3FC<9OqU$h!da zLbMNL27pXN?|~cyUAb*BD z4S5mr3gmS~nstx{$Oy<-$OK622lH)^Z6UEA%-tY+LSjFd`$GB=&=OI^--!><4oNWECX#gLxI?T1e~%^A^b0Am4=C4f!v~4BZfoEmX+Am=HkM%)6(g#aoMt%6(zpc>H{$dv$|M|3UZIsh9G zeF^eq0IwkW8sv5WI}m*vau_x0GA-I0Jw(e?~s2eK!Q(sl}MPaykI2EQC?9J<^q@pU_OAS06Yy~ zA%F@1l>in4SfaecBrFB648U>#)c{ricox8O09FE61>kuAYXH;&cmcpV051aA0AM44 zO#n6nco~D=0^k(@+W@=@;B^4o0lWcV2Y@#Lyaiw;teLzySaU0W<(O1mI%;p91&{z+nJi0QeHXR{*{S@C|^Y0KNn8J%ArD_#Xir z2k>tIKLa=c;3R-k08Rrq3*a1p^8hXa_z!?z0bB-f1;AB|?HYjJ09*%f1Hc~u8WkYP zr+nO$H0w4<<&&JG*#PDMm;+!gfF}Vw31A+8`2gkvcnZLR{*VBk2CxvoLI4#276DiU zpc24h0E+=E0Z;{?3cykT%K$6`upGcM0G$Yyhwkz$O5j7(m1~G0jL4|87$L zcbaviFO4RX2g$?7@KtE!d174^QML4vuehu#E%Jqm1+Dj`EO>r!*5H%o-C%*d~I%5>=peg@`B3b_8k#wV1%}D;4yqT}g^~rt4+rR(KQ?+v2xZldBHCuY{ z#Ks;!*Sz1mGXL!jPb99cYgp&2BN?<=3dz4RKJ%;fgy`Z}LtUFm6=Yh+gUe>QyH8jW zdG7Vry5%FQTGs?s_1NeCHPy*3dt9V3>~uIGsl=*$=3Qqm9@}UXO*l5z1o^JQ??ETsjb9(aSCJa4u|TrEj#66->SXJi zXtnk9OxZdbqqY`i%GS50dbK5TeHW{?DnzdD&1!3r$aSoV+Nu<}eu&dpBG-@cYHP8` zbv#kM0hWkdKP9QHDlv!uPS#jry?$=0ww8+ZI?+sREfeeYON!cBE^?hrRd0ahBG;+r zYU>%1>vRjXRV{LzNmE-ZM6R>9X)KZJTuZg}tjKk~m3jlzh+G$1tF7lmu8VE_t)K#O z;5m`&*S2bFrO0)uo!VL@a$Rn(wpNQ=S8lIYTO!xh4r=Rpk?X&AsI4_3*R_snt5)Rt zt&_$QxvqCsTWdwG-@6i(^@7NCqnp}VCvyGKUA=AAeJ@*$J=E5VBG(O#wO-`9uCX?V zT-UUgGKU&#qsVnxV{H<-e$`knDSJa}iCpJ3)@G6Gtj2m-EmTyJTtI+1IK))Kki2(akOQuwSHKFNAbW6i!H zTiZ0&T+wQ)#(Gk;dRb%57p-2>SWk&o8#UI`qSbnhwNSKLr?D1^R%window.close()"; + if(!$chg['check']) move_page($print['dpage'],0); + if($_SESSION[$jsboard]['pos'] == 1 && $chg['check']) { + echo ""; exit; } } -$board['headpath'] = @file_exists ("data/$table/html_head.php") ? "data/$table/html_head.php" : "html/nofile.php"; -$board['tailpath'] = @file_exists ("data/$table/html_tail.php") ? "data/$table/html_tail.php" : "html/nofile.php"; +$board['headpath'] = @file_exists("data/$table/html_head.php") ? "data/$table/html_head.php" : "html/nofile.php"; +$board['tailpath'] = @file_exists("data/$table/html_tail.php") ? "data/$table/html_tail.php" : "html/nofile.php"; $chjsboard = $_SESSION[$jsboard]['id']; $where = ($_SESSION[$jsboard]['pos'] == 1 && $check) ? "no = '$no'" : "nid = '$chjsboard'"; -$result = sql_query ("SELECT * FROM userdb WHERE $where", $c); +$result = sql_query("SELECT * FROM userdb WHERE $where"); $row = sql_fetch_array($result); sql_free_result($result); -sql_close($c); +mysql_close(); $a_time[] = microtime(); $sqltime = get_microtime($a_time[0], $a_time[1]); $print['id'] = strtoupper($row['nid']); -if ( $board['width'] == '100%' ) { $board['width'] = '90%'; } +if($board['width'] == "100%") { $board['width'] = "90%"; } -if ( $row['position'] == 1 ) $row['status'] = $_('u_le1') . " " . $_('u_le2'); -elseif ( check_admin ($row['nid']) ) $row['status'] = $_('u_le2'); -else $row['status'] = $_('u_le3'); +if($row['position'] == 1) $row['status'] = "{$langs['u_le1']} {$langs['u_le2']}"; +elseif(check_admin($row['nid'])) $row['status'] = $langs['u_le2']; +else $row['status'] = $langs['u_le3']; -$sform = form_size (10); -$lform = form_size (25); +$sform = form_size(10); +$lform = form_size(25); -if ( ! $check ) $backbutton = ""; -if ( $agent['tx'] ) $backbutton = ""; +if(!$check) $backbutton = ""; +if($textBrowser) $backbutton = ""; $print['head'] = get_title(); $print['body'] = " -
-

-{$print['id']} User Administartion - -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - + +
" . $_('u_nid') . "{$row['nid']}" . $_('u_stat') . "{$row['status']}
" . $_('u_name') . "" . $_('u_pass') . "
" . $_('u_email') . "
" . $_('u_url') . "
+
+


+{$print['id']} User Administartion + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
{$langs['u_nid']}{$row['nid']}{$langs['u_stat']}{$row['status']}
{$langs['u_name']}{$langs['u_pass']}
{$langs['u_email']}
{$langs['u_url']}
$backbutton - - - - - -
- + + + + + +

+ "; $p_time[] = microtime(); $print['pagetime'] = get_microtime($p_time[0],$b_time[1]); -meta_char_check($print['theme'], 1, 1); -$bodyType = 'ext'; -include "theme/{$print['theme']}/index.template"; +include "theme/{$print['theme']}/ext.template"; ?> diff --git a/utils/installation b/utils/installation deleted file mode 100644 index f22bd208..00000000 --- a/utils/installation +++ /dev/null @@ -1,749 +0,0 @@ -#!/bin/sh -# $Id: installation,v 1.10 2009-11-18 14:45:48 oops Exp $ - -source ./lib/install-config -source ./lib/commonlib -queryReturn="./queryRet.$$" -sedTemp="./sedTmp.$$" -t= - -clear -echo -n $yellow -echo "###############################################################################" -echo "# JSBoard Installer v2.1 #" -echo "# Scripted By JSBoard Open Project #" -echo "###############################################################################" -echo -n $end -echo - -en="usascii" -ko="euc-kr" - -printStep "STEP 1. Language Check" -echo "----------------------" -echo -echo "Select your installation language : " -echo " 1. English" -echo " 2. Korean" -echo -n "Choise (Default : 1) : " -read language - -[ -z "${language}" ] && language=1 - -_lang= -while [ -z "${_lang}" ] -do - case "${language}" in - 1) _lang="en" ;; - 2) _lang="ko" ;; - esac - - if [ -z "${_lang}" ]; then - echo -n "Choise (Default : 1) : " - read language - fi -done - -# include language pack -echo $LANG | grep -i "utf[-]\?8" >& /dev/null -if [ $? -eq 0 ]; then - eval "c_lang=\$${_lang}" - if [ ! -f "./lib/lang/installation-${_lang}.conf.utf8" ]; then - cat ./lib/lang/installation-${_lang}.conf | iconv -f ${c_lang} -t utf-8 > \ - ./lib/lang/installation-${_lang}.conf.utf8 - fi - source ./lib/lang/installation-${_lang}.conf.utf8 -else - source ./lib/lang/installation-${_lang}.conf -fi - -me=$(whoami) - -if [ "${me}" != "root" ]; then - echo - printf "${S1_MSG_1}" $me - read priv - - case "${priv}" in - Y|y) priv=y;; - N|n) priv=n;; - *) priv=y - esac - - if [ "${priv}" = "y" ]; then - echo - echo "${S1_MSG_2}" - exit 0 - fi -fi -echo - - -# -# STEP 2. Directory Creating -# - - -printStep "${S2_MSG_1}" -printColor_n "${S2_LIN_1}" "white" -echo - -res=0 -echo -n "${S2_MSG_2}${mvcol}" -printDot 3 -[ -z "${t}" ] && createDir "../data" -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure - -res=0 -echo -n "${S2_MSG_3}${mvcol}" -printDot 3 -[ -z "${t}" ] && createDir "../config" -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure - -res=0 -echo -n "${S2_MSG_4}${mvcol}" -printDot 3 -[ -z "${t}" ] && createDir "../config/jsSessTMP" -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure -echo - - -# -# STEP 3. Database Configuration -# -printStep "${S3_MSG_1}" -printColor_n "${S3_LIN_1}" "white" -echo - -echo "${S3_MSG_2}" -echo " 1. MySQL 3.2" -echo " 2. MySQL 4.0" -echo " 3. Over MySQL 4.1" -echo " 4. PostgreSQL 7/8" -echo " 5. SQLIte" -printf "${MSG_CHOISE}" "3" -read sdb - -[ -z "${sdb}" ] && sdb=3 - -while [ -z "${database_type}" ] -do - case "${sdb}" in - 1) - database_type="mysql3" - database_tname="MySQL" - database_troot="root" - database_client=${mysql_client} - ;; - 2) - database_type="mysql4" - database_tname="MySQL" - database_troot="root" - database_client=${mysql_client} - ;; - 3) - database_type="mysql41" - database_tname="MySQL" - database_troot="root" - database_client=${mysql_client} - ;; - 4) - database_type="pgsql" - database_tname="PostgreSQL" - database_troot="pgsql" - database_client=${pgsql_client} - ;; - 5) - database_type="sqlite" - database_tname="SQLite" - database_client=${sqlite_client} - ;; - esac - - if [ -z "${database_type}" ]; then - printf "${MSG_CHOISE}" "2" - read sdb - fi -done -echo - -if [ "${database_type}" = "pgsql" ]; then - for i in /tmp /var/lib/pgsql/data - do - if [ -S "${i}/.s.PGSQL.5432" ]; then - database_host=${i} - break - fi - done -elif [ "${database_type}" = "sqlite" ]; then - database_host="../config/jsboard.db" -else - [ -f "${mysql_config}" ] && __database_host=$(${mysql_config} --socket 2> /dev/null) - for i in ${__database_host} /tmp/mysql.sock /var/lib/mysql/mysql.sock - do - if [ -S "${i}" ]; then - database_host=":${i}" - break - fi - done -fi - -[ -z "${database_host}" ] && database_host="127.0.0.1" - -if [ "${database_type}" != "sqlite" ]; then - echo -n "${S3_MSG_12} " - printf "${MSG_CHOISE}" "${database_host}" - read _database_host - - if [ -n "${_database_host}" ] ;then - database_host=${_database_host} - fi - - _ss=$(echo ${database_host} | sed 's!^\(localhost\|127\.0\.0\.1\|:.*\|/.*\)!!g') - if [ -n "${_ss}" ]; then - database_opthost=" -h${_ss}" - fi - - echo -n "${S3_MSG_3} " - printf "${MSG_CHOISE}" "N" - read _dbroot - - [ -z "${_dbroot}" ] && _dbroot="n" - - while [ -z "${dbroot}" ] - do - case "${_dbroot}" in - Y|y) dbroot="y" ;; - N|n) dbroot="n" ;; - esac - - if [ -z "${dbroot}" ]; then - printf "${MSG_CHOISE}" "N" - read _dbroot - fi - done - - if [ "${dbroot}" = "y" ]; then - # - # database root name - # - echo -n "${database_tname} ${S3_MSG_4} " - printf "${MSG_CHOISE}" "${database_troot}" - read database_root - [ -z "${database_root}" ] && database_root="${database_troot}" - - if [ "${database_type}" != "pgsql" ]; then - # - # database root password - # - echo -n "${database_tname} ${S3_MSG_5} : " - read database_pass - fi - - echo -n "${S3_MSG_13} " - printf "${MSG_CHOISE}" "N" - read _already_database - [ -z "${_already_database}" ] && _already_database="N" - - while [ -z "${already_database}" ] - do - case "${_already_database}" in - Y|y) already_database="y" ;; - N|n) already_database="n" ;; - esac - - if [ -z "${already_database}" ]; then - printf "${MSG_CHOISE}" "N" - read _already_database - fi - done - else - already_database="n" - fi - - # database root user - echo -n "${S3_MSG_6} " - printf "${MSG_CHOISE}" "jsboard" - read jsboard_dbuser - [ -z "${jsboard_dbuser}" ] && jsboard_dbuser="jsboard" - - # database password - echo -n "${S3_MSG_7} : " - read jsboard_dbpass - - # database name - echo -n "${S3_MSG_8} " - printf "${MSG_CHOISE}" "jsboard" - read jsboard_dbname - [ -z "${jsboard_dbname}" ] && jsboard_dbname="jsboard" - - if [ "${dbroot}" = "y" -a ${already_database} = "n" ]; then - if [ "$database_type" = "pgsql" ]; then - _database_client="${database_client} -U ${database_root}${database_opthost} template1" - else - _database_client="${database_client} -u ${database_root} -p${database_pass}${database_opthost} mysql" - fi - - create_db="CREATE DATABASE ${jsboard_dbname};" - - # - # create database - # - echo - echo -n "${jsboard_dbname} ${S3_MSG_9}${mvcol}" - printDot 3 - - res=0 - if [ "${database_type}" = "pgsql" ]; then - [ -z "${t}" ] && ${_database_client} -c "${create_db}" 2> ${queryReturn} 1> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - ress= - [ -z "${t}" ] && ress=$(cat ${queryReturn}) - - [ -n "${ress}" ] && res=1 - fi - else - [ -z "${t}" ] && ${_database_client} -e "${create_db}" &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ -f "${queryReturn}" ] && rm -f ${queryReturn} - - [ $res -eq 0 ] && onsuccess || onfailure - - # - # create user - # - if [ "${database_type}" = "pgsql" ]; then - create_user="CREATE USER ${jsboard_dbuser} PASSWORD '${jsboard_dbpass}';" - else - create_user="GRANT all privileges ON ${jsboard_dbname}.* TO ${jsboard_dbuser}@localhost IDENTIFIED by '${jsboard_dbpass}';" - #[ "${database_type}" = "mysql41" ] && \ - #create_user="${create_user}UPDATE user SET password = old_password('${jsboard_dbpass}') WHERE user = '${jsboard_dbuser}'; flush privileges;" - fi - - echo -n "${S3_MSG_10}${mvcol}" - printDot 3 - - res=0 - if [ "${database_type}" = "pgsql" ]; then - [ -z "${t}" ] && ${_database_client} -c "${create_user}" 2> ${queryReturn} 1> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - ress= - [ -z "${t}" ] && ress=$(cat ${queryReturn}) - - [ -n "${ress}" ] && ress=1 - fi - else - [ -z "${t}" ] && ${_database_client} -e "${create_user}" &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - - [ -f "${queryReturn}" ] && rm -f ${queryReturn} - - [ $res -eq 0 ] && onsuccess || onfailure - fi - - # - # When dbuser is not root - # - if [ "$database_type" = "pgsql" ]; then - _database_client="${database_client} -U ${jsboard_dbuser}${database_opthost} ${jsboard_dbname}" - else - _database_client="${database_client} -u ${jsboard_dbuser}${database_opthost} -p${jsboard_dbpass} ${jsboard_dbname}" - fi - - echo -n "${S3_MSG_11}${mvcol}" - printDot 3 - - res=0 - if [ "${database_type}" = "pgsql" ]; then - [ -z "${t}" ] && ${_database_client} < ../SQL/pgsql/userdb.sql 2> ${queryReturn} 1> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - ress= - [ -z "${t}" ] && ress=$(cat ${queryReturn}) - [ -n "${ress}" ] && ress=1 - fi - else - [ -z "${t}" ] && ${_database_client} < ../SQL/${database_type}/userdb.sql &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ -f "${queryReturn}" ] && rm -f ${queryReturn} - - # regist jsboard admin user - if [ $res -eq 0 ]; then - create_admin="INSERT INTO userdb (nid, name, email, url, passwd, position) VALUES ('admin', 'admin', '', '', '\$1\$1LrF.u6w\$FeGXSj2cPGiyPl5MbB74r.', 1)"; - - res=0 - if [ "${database_type}" = "pgsql" ]; then - [ -z "${t}" ] && ${_database_client} -c "${create_admin}" 2> ${queryReturn} 1> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - ress= - [ -z "${t}" ] && ress=$(cat ${queryReturn}) - [ -n "${ress}" ] && ress=1 - fi - else - [ -z "${t}" ] && ${_database_client} -e "${create_admin}" &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - fi - - [ -f "${queryReturn}" ] && rm -f ${queryReturn} - [ $res -eq 0 ] && onsuccess || onfailure - -else - res=0 - echo -n "${S3_MSG_11}${mvcol}" - printDot 3 - [ -z "${t}" ] && ${sqlite_client} ${database_host} < ../SQL/${database_type}/userdb.sql &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - create_admin="INSERT INTO userdb (nid, name, email, url, passwd, position) VALUES ('admin', 'admin', '', '', '\$1\$1LrF.u6w\$FeGXSj2cPGiyPl5MbB74r.', 1);"; - - [ -z "${t}" ] && ${sqlite_client} ${database_host} < ${queryReturn} &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - [ -f "${queryReturn}" ] && rm -f ${queryReturn} - fi - - [ $res -eq 0 ] && onsuccess || onfailure -fi - - -# -# STEP 4. Install configuration file -# -printStep "${S4_MSG_1}" -printColor_n "${S4_LIN_1}" "white" -echo - -res=0 -echo -n "${S4_MSG_2}${mvcol}" -printDot 3 -[ -z "${t}" ] && cp ./sample/admin/global.php.orig ../config/global.php -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure - -res=0 -echo -n "${S4_MSG_3}${mvcol}" -printDot 3 -[ -z "${t}" ] && cp ./sample/admin/spam_list.txt.orig ../config/spam_list.txt -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure - - -# -# STEP 5. Permission setting -# -printStep "${S5_MSG_1}" -printColor_n "${S5_LIN_1}" "white" -echo - -apache_user=$(ps aux | grep -E "apache|httpd" | grep -v "\(^root\|grep\)" | awk '{print $1}'| uniq) -echo -n "${S5_MSG_2} " -printf "${MSG_CHOISE}" "${apache_user}" -read _auser - -[ -n "${_auser}" ] && apache_user="${_auser}" - -pwds=$(pwd | sed 's!/utils.*!!g') - -echo -if [ "${me}" = "root" ]; then - echo -n "${S5_MSG_3}${mvcol}" - printDot 3 - - [ -z "${t}" ] && chown ${apache_user} ../config &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 370 ../config &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_4}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../data &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 370 ../data &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_5}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../config/jsSessTMP &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 370 ../config/jsSessTMP &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_6}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../config/global.php &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 660 ../config/global.php &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_7}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../config/spam_list.txt &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 660 ../config/spam_list.txt &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - if [ "${database_type}" = "sqlite" ]; then - [ -z "${t}" ] && chown ${apache_user} ${database_host} &> /dev/null - [ -z "${t}" ] && chmod 660 ${database_host} &> /dev/null - fi -else - echo -n "${S5_MSG_3}${mvcol}" - printDot 3 - - [ -z "${t}" ] && chmod 707 ../config &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_4}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 707 ../data &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_5}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 707 ../config/jsSessTMP &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_6}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 606 ../config/global.php &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_7}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 606 ../config/spam_list.txt &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - if [ "${database_type}" = "sqlite" ]; then - [ -z "${t}" ] && chmod 606 ${database_host} &> /dev/null - fi -fi - - -# -# STEP 6. Basic setup of global configuration file -# -printStep "${S6_MSG_1}" -printColor_n "${S6_LIN_1}" "white" -echo - -echo -n "${S6_MSG_2} : " -read jvar_httpd - -while [ -z "${jvar_httpd}" ] -do - echo -n "${S6_MSG_2} : " - read jvar_httpd -done - -jvar_webpath="${jvar_httpd}" -jvar_webpath=$(echo "${jvar_httpd}" | sed 's!/[ ]*$!!g') - -echo -n "${S6_MSG_3} " -printf "${MSG_CHOISE}" "login" -read jvar_login - -[ -z "${jvar_login}" ] && jvar_login="login" - -echo "${S6_MSG_4}" -echo " 1. ${S6_MSG_5}" -echo " 2. ${S6_MSG_6}" -echo " 3. ${S6_MSG_7}" -printf "${MSG_CHOISE}" "${language}" -read jvar_tname - -[ -z "${jvar_tname}" ] && jvar_tname=2 - -while [ -z "${jvar_theme}" ] -do - case "${jvar_tname}" in - 1) jvar_theme="EN-default" ;; - 2) jvar_theme="KO-default" ;; - 3) jvar_theme="JP-default" ;; - esac - - if [ -z "${_lang}" ]; then - printf "${MSG_CHOISE}" "${language}" - read jvar_tname - fi -done - -_config="../config/global.php" - -echo -n "${S6_MSG_8}${mvcol}" -printDot 3 - -if [ -z "${t}" -a ! -f "${_config}" ]; then - onfailure -fi - -if [ -z "${t}" ]; then - cat ${_config} | sed "s!@DBTYPE@!${database_type}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} - - cat ${_config} | sed "s!@DBSERVER@!${database_host}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} - - cat ${_config} | sed "s!@DBUSER@!${jsboard_dbuser}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} - - cat ${_config} | sed "s!@DBPASS@!${jsboard_dbpass}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} - - cat ${_config} | sed "s!@DBNAME@!${jsboard_dbname}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} - - jsboard_dbcahr=0 - if [ "${database_type}" = 'pgsql' ]; then - database_dbchar=1 - ${database_client} -c "set client_encoding to uhc" 2> ${queryReturn} 1> /dev/null - ress= - ress=$(cat ${queryReturn}) - [ -n "${ress}" ] && database_dbchar=0 - [ -f "${queryReturn}" ] && rm -f ${queryReturn} - elif [ "${database_type}" = "mysql41" ]; then - jsboard_dbchar=1 - fi - - cat ${_config} | sed "s!@DBCHAR@!${jsboard_dbchar}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} -fi - -onsuccess - - -echo -n "${S6_MSG_9}${mvcol}" -printDot 3 - -if [ -z "${t}" ]; then - cat ${_config} | sed "s!@LOGINNAME@!${jvar_login}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} -fi - -onsuccess - - -echo -n "${S6_MSG_10}${mvcol}" -printDot 3 - -if [ -z "${t}" ]; then - cat ${_config} | sed "s!@WEBPATH@!${jvar_webpath}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} -fi - -onsuccess - - -echo -n "${S6_MSG_12}${mvcol}" -printDot 3 - -if [ -z "${t}" ]; then - cat ${_config} | sed "s!@THEME@!${jvar_theme}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} -fi - -onsuccess - -echo -n "${S6_MSG_13}${mvcol}" -printDot 3 - -if [ -z "${t}" ]; then - cat ${_config} | sed "s!@APATH@!${pwds}!g" > ${sedTemp} - [ -f "${_config}" ] && rm -f ${_config} - [ -f "${sedTemp}" ] && mv ${sedTemp} ${_config} -fi - -onsuccess - -if [ "${me}" = "root" ]; then - [ -z "${t}" ] && chown ${apache_user} ${_config} &> /dev/null - [ -z "${t}" ] && chmod 660 ${_config} &> /dev/null -else - [ -z "${t}" ] && chmod 606 ${_config} &> /dev/null -fi - -echo -printStep "Congratulations !!!" -echo -printf "${COMPLETE_MSG}" "${jvar_webpath}" -echo - -exit 0 diff --git a/utils/lib/commonlib b/utils/lib/commonlib deleted file mode 100644 index deddde4c..00000000 --- a/utils/lib/commonlib +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# $Id: commonlib,v 1.2 2009-11-16 21:52:48 oops Exp $ - -gray=""; -red=""; -green=""; -yellow=""; -blue=""; -magenta=""; -cyan=""; -white=""; -end=""; -mvcol=""; - - -printDot() { - _max=${1} - [ -z "${_max}" ] && _max=0 - - i=0 - while [ ${i} -lt ${_max} ] - do - echo -n "." - i=$[${i} + 1] - sleep 0.1 - done; -} - -printColor() { - str=$1 - _color=$2 - - _printColor 0 "$str" "$_color" -} - -printColor_n() { - str=$1 - _color=$2 - - _printColor 1 "$str" "$_color" -} - -_printColor() { - _type=$1 - _str=$2 - _color=$3 - - if [ -z "$_color" ]; then - _color=$blue - else - eval "_color=\${$_color}" - fi - - if [ $_type -eq 0 ]; then - printf "%s%s%s" "${_color}" "${_str}" "${end}" - else - printf "%s%s%s\n" "${_color}" "${_str}" "${end}" - fi -} - -printStep() { - echo - printColor_n "$1" "blue" -} - -onsuccess() { - printColor_n " [ O K ]" "green" -} - -onfailure() { - printColor_n " [ FAIL ]" "red" - echo - exit 1 -} - -createDir() { - dir=$1 - ret=0 - - mkdir -p "$dir" &> /dev/null - ret=$? - - return $ret -} diff --git a/utils/lib/install-config b/utils/lib/install-config deleted file mode 100644 index 9b8858ef..00000000 --- a/utils/lib/install-config +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -# $Id: install-config,v 1.2 2009-11-16 21:52:48 oops Exp $ - -# -# database client configuration -# set the your database only. -# - -# PostgreSQL config -pgsql_client="/usr/bin/psql" - -# MySQL config -mysql_client="/usr/bin/mysql" -mysql_config="/usr/bin/mysql_config" - -# SQLIte config -sqlite_client="/usr/bin/sqlite" - diff --git a/utils/lib/lang/installation-en.conf b/utils/lib/lang/installation-en.conf deleted file mode 100644 index ff8c5750..00000000 --- a/utils/lib/lang/installation-en.conf +++ /dev/null @@ -1,83 +0,0 @@ -################################################################################ -# English installation pack -# $Id: installation-en.conf,v 1.6 2009-11-20 13:11:38 oops Exp $ -################################################################################ - -# Common -MSG_CHOISE="Chiose (Default: %s) : " - -# STEP 1 -S1_MSG_1="Attention !!!\n\ -Now, you are excuting this file as %s user privilege\n\ -If you have root privilege, shall execute this file as root privilege.\n\n\ -Do you want to continue with root user privilege?\n\ -If you can't login as root user, type N. [Y/N] (Defalut Y) :" - -S1_MSG_2="Please, reexecute this file after login as root." - -# STEP 2 -S2_MSG_1="STEP 2. Directory Creating" -S2_LIN_1="--------------------------" - -S2_MSG_2="Create data directory" -S2_MSG_3="Create global config directory" -S2_MSG_4="Create session temp directory" - -# STEP 3 -S3_MSG_1="STEP 3. Database Configuration" -S3_LIN_1="------------------------------" - -S3_MSG_2="Select database type" -S3_MSG_3="Do you have a database root privilege?" -S3_MSG_4="root name" -S3_MSG_5="root password" -S3_MSG_6="JSBoard database admin user" -S3_MSG_7="JSBoard database password" -S3_MSG_8="JSBoard database name" -S3_MSG_9="database created" -S3_MSG_10="Config database user and pivileges" -S3_MSG_11="Create JSBoard user table" -S3_MSG_12="Database Address" -S3_MSG_13="Is database setting already completely?" - -# STEP 4 -S4_MSG_1="STEP 4. Install configuration file" -S4_LIN_1="----------------------------------" - -S4_MSG_2="Install global configuration file" -S4_MSG_3="Install spam filter file" - -# STEP 5 -S5_MSG_1="STEP 5. Configuration permission" -S5_LIN_1="--------------------------------" - -S5_MSG_2="Web server operate user" -S5_MSG_3="Set global configuration directory permission" -S5_MSG_4="Set data directory permission" -S5_MSG_5="Set session temp directory permission" -S5_MSG_6="Set global configuration file permission" -S5_MSG_7="Set spam filter file permission" - -# STEP 6 -S6_MSG_1="STEP 6. Basic setup of global configuration file" -S6_LIN_1="--------------------------------------------------------" - -S6_MSG_2="JSBoard whole Web path (ex: http://domain.com/jsboard)" -S6_MSG_3="JSBoard login variable name" -S6_MSG_4="Select JSBoard administrator language" -S6_MSG_5="English" -S6_MSG_6="Korean" -S6_MSG_7="Japanese" - -S6_MSG_8="Setup database" -S6_MSG_9="Setup login variable name" -S6_MSG_10="Setup web path" -S6_MSG_12="Setup theme" -S6_MSG_13="Setup absolute path" - -# COMPLETE -COMPLETE_MSG="Complete jsboard setup\n\ -Access %s/login.php?type=admin, and setup detail configurations.\n\n\ -Default login information is follows\n\n\ - Admin ID : admin\n\ - Password : 0000\n\n" diff --git a/utils/lib/lang/installation-ko.conf b/utils/lib/lang/installation-ko.conf deleted file mode 100644 index 9c58d07f..00000000 --- a/utils/lib/lang/installation-ko.conf +++ /dev/null @@ -1,83 +0,0 @@ -################################################################################ -# ѱ -# $Id: installation-ko.conf,v 1.6 2009-11-20 13:11:38 oops Exp $ -################################################################################ - -# Common -MSG_CHOISE=" (⺻: %s) : " - -# STEP 1 -S1_MSG_1=" !!!\n\ - %s ġ Դϴ.\n\ - Ʈ ִٸ Ʈ Ͻʽÿ.\n\n\ -Ʈ ٽ ۾ ϰڽϱ?\n\ -Ʈ N Ͻʽÿ. [Y/N] (⺻ Y) :" - -S1_MSG_2="root α Ͻ Ŀ ٽ ּ" - -# STEP 2 -S2_MSG_1="2 ܰ. 丮 " -S2_LIN_1="---------------------" - -S2_MSG_2=" 丮 " -S2_MSG_3="ü 丮 " -S2_MSG_4=" 丮 " - -# STEP 3 -S3_MSG_1="3 ܰ. ͺ̽ " -S3_LIN_1="------------------------------" - -S3_MSG_2="ͺ̽ " -S3_MSG_3="ͺ̽ Ʈ ֽϱ?" -S3_MSG_4="Ʈ " -S3_MSG_5="Ʈ ȣ" -S3_MSG_6="JSBoard ͺ̽ " -S3_MSG_7="JSBoard ͺ̽ ȣ" -S3_MSG_8="JSBoard ͺ̽ ̸" -S3_MSG_9="ͺ̽ " -S3_MSG_10="̽ " -S3_MSG_11="JSBoard ̺ " -S3_MSG_12="ͺ̽ ּ" -S3_MSG_13="ͺ̽/ ̹ Ǿ ֽϱ?" - -# STEP 4 -S4_MSG_1="4 ܰ. ġ" -S4_LIN_1="----------------------" - -S4_MSG_2="ü ġ" -S4_MSG_3="spam ġ" - -# STEP 5 -S5_MSG_1="5 ܰ. " -S5_LIN_1="-----------------" - -S5_MSG_2=" " -S5_MSG_3="ü 丮 " -S5_MSG_4=" 丮 " -S5_MSG_5=" 丮 " -S5_MSG_6="ü " -S5_MSG_7="spam " - -# STEP 6 -S6_MSG_1="6 ܰ. ü ⺻ " -S6_LIN_1="--------------------------------" - -S6_MSG_2="JSBoard (: http://domain.com/jsboard)" -S6_MSG_3="JSBoard α ̸" -S6_MSG_4="JSBoard " -S6_MSG_5="" -S6_MSG_6="ѱ" -S6_MSG_7="Ϻ" - -S6_MSG_8="ͺ̽ " -S6_MSG_9="α ̸ " -S6_MSG_10=" " -S6_MSG_12="׸ " -S6_MSG_13=" " - -# COMPLETE -COMPLETE_MSG="ġ Ϸ Ǿϴ.\n\ -%s/login.php?type=admin α Ͽ ⺻ Ͻñ ٶϴ.\n\n\ -⺻ longin δ ϴ.\n\n\ - ID : admin\n\ - н : 0000\n\n" diff --git a/utils/permission b/utils/permission deleted file mode 100644 index 1d74a279..00000000 --- a/utils/permission +++ /dev/null @@ -1,255 +0,0 @@ -#!/bin/sh -# $Id: permission,v 1.5 2009-11-17 14:45:06 oops Exp $ - -source ./lib/install-config -source ./lib/commonlib -queryReturn="./queryRet.$$" -sedTemp="./sedTmp.$$" -t= - -en="usascii" -ko="euc-kr" - -clear -echo -n $yellow -echo "###############################################################################" -echo "# JSBoard Installer v2.1 #" -echo "# Scripted By JSBoard Open Project #" -echo "###############################################################################" -echo -n $end -echo - -printStep "STEP 1. Language Check" -echo "----------------------" -echo -echo "Select your installation language : " -echo " 1. English" -echo " 2. Korean" -echo -n "Choise (Default : 1) : " -read language - -[ -z "${language}" ] && language=1 - -_lang= -while [ -z "${_lang}" ] -do - case "${language}" in - 1) _lang="en" ;; - 2) _lang="ko" ;; - esac - - if [ -z "${_lang}" ]; then - echo -n "Choise (Default : 1) : " - read language - fi -done - -# include language pack -echo $LANG | grep -i "utf[-]\?8"; -if [ $? -eq 0 ]; then - eval "c_lang=\$${_lang}" - if [ ! -f "./lib/lang/installation-${_lang}.conf.utf8" ]; then - cat ./lib/lang/installation-${_lang}.conf | iconv -f ${c_lang} -t utf-8 > \ - ./lib/lang/installation-${_lang}.conf.utf8 - fi - source ./lib/lang/installation-${_lang}.conf.utf8 -else - source ./lib/lang/installation-${_lang}.conf -fi - -source ./lib/lang/installation-${_lang}.conf - -me=$(whoami) - -if [ "${me}" != "root" ]; then - echo - printf "${S1_MSG_1}" $me - read priv - - case "${priv}" in - Y|y) priv=y;; - N|n) priv=n;; - *) priv=y - esac - - if [ "${priv}" = "y" ]; then - echo - echo "${S1_MSG_2}" - exit 0 - fi -fi -echo - - -# -# STEP 2. Directory Creating -# - - -printStep "${S2_MSG_1}" -printColor_n "${S2_LIN_1}" "white" -echo - -res=0 -echo -n "${S2_MSG_2}${mvcol}" -printDot 3 -[ -z "${t}" ] && createDir "../data" -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure - -res=0 -echo -n "${S2_MSG_3}${mvcol}" -printDot 3 -[ -z "${t}" ] && createDir "../config" -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure - -res=0 -echo -n "${S2_MSG_4}${mvcol}" -printDot 3 -[ -z "${t}" ] && createDir "../config/jsSessTMP" -res=$? -[ -n "${t}" ] && res=0 -[ $res -eq 0 ] && onsuccess || onfailure -echo - - -# -# STEP 5. Permission setting -# -printStep "${S5_MSG_1}" -printColor_n "${S5_LIN_1}" "white" -echo - -apache_user=$(ps aux | grep -E "apache|httpd" | grep -v "\(^root\|grep\)" | awk '{print $1}'| uniq) -echo -n "${S5_MSG_2} " -printf "${MSG_CHOISE}" "${apache_user}" -read _auser - -[ -n "${_auser}" ] && apache_user="${_auser}" - -pwds=$(pwd | sed 's!/utils.*!!g') - -echo -if [ "${me}" = "root" ]; then - echo -n "${S5_MSG_3}${mvcol}" - printDot 3 - - [ -z "${t}" ] && chown ${apache_user} ../config &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 370 ../config &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_4}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../data &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 370 ../data &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_5}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../config/jsSessTMP &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 370 ../config/jsSessTMP &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_6}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../config/global.php &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 660 ../config/global.php &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_7}${mvcol}" - printDot 3 - [ -z "${t}" ] && chown ${apache_user} ../config/spam_list.txt &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - - if [ $res -eq 0 ]; then - [ -z "${t}" ] && chmod 660 ../config/spam_list.txt &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - fi - [ $res -eq 0 ] && onsuccess || onfailure - - if [ -f "../config/jsboard.db" ]; then - [ -z "${t}" ] && chown ${apache_user} ../config/jsboard.db &> /dev/null - [ -z "${t}" ] && chmod 660 ../config/jsboard.db &> /dev/null - fi -else - echo -n "${S5_MSG_3}${mvcol}" - printDot 3 - - [ -z "${t}" ] && chmod 707 ../config &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_4}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 707 ../data &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_5}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 707 ../config/jsSessTMP &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_6}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 606 ../config/global.php &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - echo -n "${S5_MSG_7}${mvcol}" - printDot 3 - [ -z "${t}" ] && chmod 606 ../config/spam_list.txt &> /dev/null - res=$? - [ -n "${t}" ] && res=0 - [ $res -eq 0 ] && onsuccess || onfailure - - if [ -f "../config/jsboard.db" ]; then - [ -z "${t}" ] && chmod 606 ../config/jsboard.db &> /dev/null - fi -fi - - -echo -printStep "Setup completly" -echo -echo - -exit 0 diff --git a/utils/sample/admin/external.php.orig b/utils/sample/admin/external.php.orig deleted file mode 100644 index 20a641c2..00000000 --- a/utils/sample/admin/external.php.orig +++ /dev/null @@ -1,39 +0,0 @@ - diff --git a/utils/sample/admin/intermap.txt b/utils/sample/admin/intermap.txt deleted file mode 100644 index 4964b6b8..00000000 --- a/utils/sample/admin/intermap.txt +++ /dev/null @@ -1,43 +0,0 @@ -# $Id: intermap.txt,v 1.1 2008-12-22 17:20:34 oops Exp $ -# see http://usemod.com/intermap.txt -ISBN http://www.amazon.com/exec/obidos/ISBN= -Wiki http://c2.com/cgi/wiki? -MeatBall http://www.usemod.com/cgi-bin/mb.pl? -MoinMoin http://purl.net/wiki/moin/ -UseMod http://www.usemod.com/cgi-bin/wiki.pl? -TWiki http://twiki.org/cgi-bin/view/ -WikiPedia http://www.wikipedia.org/wiki/ -ZWiki http://www.zwiki.org/ -FoxWiki http://fox.wikis.com/wc.dll?Wiki~ -AndStuff http://andstuff.org/wiki.php? -Unreal http://wiki.beyondunreal.com/wiki/ - -# MetaWikis -Google http://www.google.com/search?q= -GoogleGroups http://groups.google.com/groups?q= -KnowHow http://www2.iro.umontreal.ca/~paquetse/cgi-bin/wiki.cgi? -Bzla http://bugzilla.gnome.org/show_bug.cgi?id= -BugZilla http://bugzilla.gnome.org/show_bug.cgi?id= -Foldoc http://www.foldoc.org/foldoc/foldoc.cgi? -JargonFile http://sunir.org/apps/meta.pl?wiki=JargonFile&redirect= -Acronym http://www.acronymfinder.com/af-query.asp?String=exact&Acronym= -Advogato http://www.advogato.org/ -SourceForge http://www.sourceforge.net/ - -# Korean Wikis -NoSmoke http://no-smok.net/nsmk/ -GnomeKorea http://www.gnome.or.kr/wiki/ -KLE http://kle.kldp.org/main/ -GentooKorea http://gentoo.or.kr/wiki/moin.cgi/ -DebianKorea http://debianusers.org/DebianWiki/ -BSDKorea http://wiki.bsdforum.or.kr/wiki.php/ -KDEKorea http://wiki.kde.or.kr/wiki/ -Freefeel http://freefeel.org/wiki/ -SFReaders http://www.sfreaders.org/moin.cgi/ -Jangnan http://jangnan.st/wiki/ -Xper http://xper.org/wiki/xp/ -PyKug http://www.python.or.kr/pykug/ -KTUG http://faq.ktug.or.kr/mywiki/ -MoniWiki http://moniwiki.sf.net/wiki.php/ -KLDPWiki http://wiki.kldp.org/wiki/ http://www.ktug.or.kr/jsboard/images/interwiki/kldpwiki-16.png 16x16 -KLDP http://wiki.kldp.org/wiki/ diff --git a/utils/sample/admin/spam_list.txt.orig b/utils/sample/admin/spam_list.txt.orig deleted file mode 100644 index de6a7307..00000000 --- a/utils/sample/admin/spam_list.txt.orig +++ /dev/null @@ -1,6 +0,0 @@ -# Filtering Configuration of Article registration -# enabled to use regular expression -# disregarded keyword is start hash charactor -# use over 3 byte -# $Id: spam_list.txt.orig,v 1.2 2009-11-16 21:52:48 oops Exp $ -# diff --git a/utils/sample/data/config.php b/utils/sample/data/config.php deleted file mode 100644 index 8c58e295..00000000 --- a/utils/sample/data/config.php +++ /dev/null @@ -1,188 +0,0 @@ - admin id -# mode -> board administration mode -# 0 -> no restriction -# 1 -> admin only write -# 2 -> only for members -# 3 -> only for members (admin only write) -# 4 -> open board (read, reply only) -# 5 -> only for members (read, reply only) -# 6 -> open board (reply only admin) -# 7 -> only for members (reply only admin) -############################################################################### -# -$board['ad'] = '@ADMIN@'; -$board['mode'] = 0; - -# When member only mode, whether print real name or nickname -# if this is not set, print nickname by default -$board['rnname'] = 0; - -# Go to this page after logout -$print['dopage'] = '@wpath@login.php?table=@table@'; - -############################################################################### -# Board function Configuration -############################################################################### -# -# Preview config -# -# Whether preview enable or disable -$enable['pre'] = 0; -# text length for preview -$enable['preren'] = 200; - -# Original article include when reply -# 0 - always include 1 - user choice -# -$enable['ore'] = 0; - -# Show related article list when read article -# 0 - disable 1 - enable -# -$enable['re_list'] = 1; - -# Whether using comment or not -# 0 - disable 1 - enable -$enable['comment'] = 0; - - -############################################################################### -# Board alignment -#
-############################################################################### -# -$board['align'] = 'center'; - - -############################################################################### -# Board general configuration -############################################################################### -# -$board['title'] = '@table@ BOARD'; # board title -$board['wrap'] = 1; # body wrapping -$board['wwrap'] = 120; # if above wrap doesn't work, force by this -$board['width'] = '550'; # width for board -$board['tit_l'] = 42; # max length for title -$board['nam_l'] = 8; # max length for writer -$board['perno'] = 10; # number of article per page -$board['plist'] = 2; # number of page link (x2+1) - -# cookie life time (day) -$board['cookie'] = 30; - - -############################################################################### -# FORM SIZE -############################################################################### -# -$size['name'] = 14; # size for name -$size['pass'] = 4; # size for submit button -$size['titl'] = 25; # size for title -$size['text'] = 32; # column for TEXTAREA -$size['uplo'] = 19; # size for UPLOAD - - -############################################################################### -# Show host information 0 - Failed, 1 - True -############################################################################### -# -$enable['dhost'] = 0; # Whether print IP address or not -$enable['dlook'] = 0; # Whether using DNS lookup or not -$enable['dwho'] = 0; # Whether using WHOIS or not - - -############################################################################### -# Theme Configuration -############################################################################### -# -$print['theme'] = '@theme@'; # Theme name - - -############################################################################### -# Configuration for file upload -# This will unavailable even if set these options, if super admin not allow -############################################################################### -# -$cupload['yesno'] = 0; # Whether using upload or not -$cupload['dnlink'] = 0; # Download link 0: by header 1: direct link - - -############################################################################### -# Configuration for url,email -############################################################################### -# -# Whether accept url, email or noot -$view['url'] = 1; -$view['email'] = 1; - - -############################################################################### -# Configuration for mail -# Need super admin's permission -############################################################################### -# -$rmail['admin'] = 0; -$rmail['user'] = 0; -# mail address for board admin -$rmail['toadmin'] = 'user@localhost'; - - -############################################################################### -# Require admin password when writing with below information -############################################################################### -# -$ccompare['name'] = 'admin'; -$ccompare['email'] = 'username@domain.com'; - - -############################################################################### -# Configuration IP Blocking -# use ';' for delimiter -# ex) 1.1.1.1;2.2.2.2;3.3.3.3 -############################################################################### -$enable['ipbl'] = ''; - - -############################################################################### -# dhyper : 0 -> Allow from ip -# 1 -> Deny from ip -# It won't work when plink contains nothing -# plink : ip address for dhyper work. use ';' for delimiter -# ex) 1.1.1.1;2.2.2.2;3.3.3.3 -############################################################################### -# -$enable['dhyper'] = 0; -$enable['plink'] = ''; - -############################################################################### -# Notice configuration -# -# use array for more than 1 -# $notice['subject'] -> Title for notice -# $notice['contents'] -> Content for notice -# If content is empty, print notice without link -############################################################################### -# -$notice['subject'] = ''; -$notice['contents'] = ''; - -############################################################################### -# Configuration for RSS -# -# $rss['use'] -> Whether using rss or not -# $rss['channel'] -> Channel name for rss reader -# $rss['is_des'] -> Whether print explain of artile or not -# $rss['align'] -> Alignment of rss link ( left/right ) -# $rss['color'] -> Color for rss link -############################################################################### -# -$rss['use'] = 0; -$rss['is_des'] = 0; -$rss['channel'] = 'JSBoard'; -$rss['align'] = 1; -$rss['color'] = '#999999'; -?> diff --git a/utils/sample/data/html_head.php b/utils/sample/data/html_head.php deleted file mode 100644 index d1395fa9..00000000 --- a/utils/sample/data/html_head.php +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/utils/sample/data/html_tail.php b/utils/sample/data/html_tail.php deleted file mode 100644 index 62b9a2e6..00000000 --- a/utils/sample/data/html_tail.php +++ /dev/null @@ -1,7 +0,0 @@ - -" . $_('u_print') . "
"; -} -?> - diff --git a/utils/sample/data/stylesheet.php b/utils/sample/data/stylesheet.php deleted file mode 100644 index 135de3f6..00000000 --- a/utils/sample/data/stylesheet.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/whois.php b/whois.php index 1f8d520d..4285514b 100644 --- a/whois.php +++ b/whois.php @@ -1,18 +1,10 @@ \n" . + echo "\n"; + "\n"; exit; } if (!trim($table) || !trim($host)) { - echo "\n"; exit; } -if ( ! @file_exists("config/global.php") ) { - echo "\n"; -} else { include_once "config/global.php"; } - +include "config/global.php"; if(file_exists("data/$table/config.php")) { include "data/$table/config.php"; } if(file_exists("theme/{$print['theme']}/config.php")) { include "theme/{$print['theme']}/config.php"; } else { include "theme/KO-default/config.php"; } +include "include/lang.php"; -putenv ("JSLANG={$_code}"); -include "language/lang.php"; - -$ohost= $host; -$host = gethostbyname ($host); ?> - - - -<? echo $host ?> WHOIS Information - - + + + + +<? echo $host ?> WHOIS + + - -
 \n
";
+
 $server = "whois.krnic.net";
 $port   = "43";
 
@@ -72,13 +63,12 @@
   fputs($fp,"$host\n");
 
   while(!feof($fp)) {
-      $list = fgets ($fp, 1024);
-      //if($count > 11) {
-      if ( $count > 0 ) {
-        $list = preg_replace("/^((Phone|ȭ[ ]*ȣ)[\s]*:[ ]*)(.*)/mi", "\\1\\3", $list);
-        $list = preg_replace("/((Service Name|Name|񽺸|̸).*:)(.*)/mi", "\\1\\3", $list);
-        $list = preg_replace("/((Org Name|[ ]*[ ]*).*:)(.*)/mi", "\\1\\3", $list);
-        echo $list;
+      $list = fgets($fp, 1024);
+      if($count > 11) {
+        $list = preg_replace("/((Phone|ȭ ȣ).*:)(.*)/i", "\\1\\3", $list);
+        $list = preg_replace("/((IP Address|IP ּ).*:)(.*)/i", "\\1\\3", $list);
+        $list = preg_replace("/((Network Name|Ʈũ ̸).*:)(.*)/i", "\\1\\3", $list);
+        echo "$list";
       }
       $count++;
   }
@@ -86,7 +76,7 @@
 } else echo "$errno $errstr whois.krnic.net ῡ  ߽ϴ.";
 ?>
 
-
+
- - + + diff --git a/write.php b/write.php index 4a85211a..c4488171 100644 --- a/write.php +++ b/write.php @@ -1,76 +1,67 @@ \n". - "\n"; +# TEXTAREA wrap option check +$wrap = form_wrap(); -$pre_regist['rname'] = !$pre_regist['rname'] ? "" : "\n"; +# Form size +if ($agent['br'] == "MSIE" || $agent['br'] == "MOZL" || ($agent['br'] == "NS" && $agent['vr'] == 6)) { + $orig_option = " onClick=fresize(0)"; + $print['operate'] = form_operate("writep","wpost",$size['text']); +} else $print['operate'] = "No support this browser"; + +$wkey = get_spam_value($board['antispam']); +$print['passform'] = "\n". + "\n". + "\n"; + +$pre_regist['rname'] = !$pre_regist['rname'] ? "" : "\n"; if(!$nodisable) { - $print['passform'] .= "". + $print['passform'] .= "". "{$pre_regist['rname']}". - "\n". - "\n\n"; + "\n". + "\n\n"; } elseif($_SESSION[$jsboard]['pos'] == 1) { $print['passform'] .= "{$pre_regist['rname']}\n"; } -$pages = $page ? "&page=$page" : ""; +$pages = $page ? "&page=$page" : ""; if($board['rnname'] && preg_match("/^(2|3|5|7)/",$board['mode']) && $_SESSION[$jsboard]['pos'] != 1) $pre_regist['name'] = $_SESSION[$jsboard]['name'] ? $_SESSION[$jsboard]['name'] : $pre_regist['name']; -$print['preview_script'] = << - var tarea_width = '{$board['width']}'; - var tarea_cols = '{$size['text']}'; - -EOF; - -meta_char_check($print['theme'], 1, 1); -$bodyType = 'write'; -require_once 'captcha/captchacommon.php'; -require_once "theme/{$print['theme']}/index.template"; +include "theme/{$print['theme']}/write.template"; ?>