diff --git a/COPYING b/COPYING deleted file mode 100644 index 3a807a52..00000000 --- a/COPYING +++ /dev/null @@ -1,342 +0,0 @@ -$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 - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - Appendix: How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/COPYING.ko b/COPYING.ko deleted file mode 100644 index 1a7056ae..00000000 --- a/COPYING.ko +++ /dev/null @@ -1,317 +0,0 @@ -$Id: COPYING.ko,v 1.3 2009-11-16 21:52:45 oops Exp $ - -GPL ȿ 켱 ˴ϴ. ѱ -ϱ Ǹ 켱 մϴ. - -------------------------------------------------------------------------------- - - 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 - -۱ǰ 㰡 Ǵ ,  ü -糪 鵵 ȴ. , ÷ ʴ´. - - ( ) - -Ʈ κ ̼ ش Ʈ - Ϸ Ѵ. ׷ GNU General Public License (, "G -PL"̶ Ѵ) Ʈ ȣ ϱ -ؼ Ǿ. Ʈ ϴ κ Ʈ GPL - ؼ ǰ ȿ̶ ǴܵǴ -귯 ƾ 쿡 GNU Library General Public License - ϰ ִ. Ʈ ̸ Ϸ ؼ - Ǹ Բ 絵Ǵ Ʈ ǹϸ α׷ -  α׷ ִ. - - Ʈ Ǵ '' ܾ () ǹϴ - ƴ϶ ӵ ʴ´ٴ ǹϸ, GPL - Ʈ ̿ , ͻ - Ѵ. ⿡ ҽ ڵ Ǵ Ϻθ ؼ -α׷ Űų ο α׷ â ִ Ǹ ڽ - 絵 ̷ Ǹ Ȯϰ ν ֵ ϱ - ԵǾ ִ. - -GPL GPL ȿ Ʈ 絵 Ǿ絵 Ǹ ϴ װ ܼ - ߰ Ű ϰ ν ڵ Ǹ ϰ -. Ʈ ۰ ϰ ִ ̷ - 絵 ؼؾ߸ Ѵ. - -Ư α׷ 츦 ε, 絵ڴ ڽ 絵޾Ҵ Ǹ - ο Ǵٸ Ǿ絵ڿ ״ ؾ߸ Ѵ. ҽڵ - Ǹ ⿡ ԵǾ ϸ ̿ ׵ ν Ǿ絵 -ڿ ׵ 絵 Ǹ Ȯϰ ֵ ؾ Ѵ. - - Ʈ ؼ Ʈ ݺ - Ǹ ȣѴ: (1) ۱ ν α׷ -ڵ Ǹ ȣѴ. (2) ۱ 絵 ؼ ȿ -ȿ GPL ؼ Ʈ ,  Ǿ絵 - Ѵ. - - Ʈ ϴ 絵 ؼ Ʈ ü - Ͼ , ̴ ڰ Ʈ  - ִ ƴ ִٴ νϰ ־ Ѵ. GPL Ʈ -  ̷ Ǿ -̸ ̴ α׷ ڿ Ʈ ο Ȱ ϴ - ̱⵵ ϴ. - -Ư Ʈ ϴ ۿ . -Ʈ 쿡 Ư㸦 ۹ Բ -Ű ν ̿ ѵ ʵ ϴ ּ ̴. GPL - ̷ ó ϱ ؼ Ư㰡 ۹ ̼ Ư -(, "()" ̶ Ѵ) ϴ 쿡 ؼ -Ʈ Բ ֵ ϰ ִ. - -(copying) (modification), (distribution)  õ ü - . - - , ǰ - - 1 . ̼ GNU General Public License ִ - ۱ڿ ؼ õ ǻ α׷ ۹ ؼ ϰ -ȴ. ǻ α׷ ۹(, "α׷"̶ Ѵ) ̶ Ư α׷ -̳ ̿ õ Ÿ ۹ ǹ ϰ "2 α׷" ̶ ۱ǹ - α׷ Ǵ κ ϰų ٸ α׷ - ִ ؼ â۵ ο α׷ ̿ õ ۹ -ǹѴ. (ķ ٸ α׷ ٸ -ԵǴ Ѵ) "Ǿ絵" GPL ؼ α׷ 絵 - ǹѴ. - - ̼ α׷ , ؼ ȴ. -α׷ Ű ѵ α׷ ࿡ - ü ο 2 α׷ - ؼ ̼ ִ. 2 α׷ δ 2 - α׷ ȿ α׷ ǴѴ. - - 2 . Ǿ絵ڴ α׷ ʴ´ٴ ǰ ۱ - ϴ , 絵 ҽڵ Ǵ Ϻθ  ü ؼ -ؼ ִ. Ǿ絵ڰ α׷ ҽ ڵ带 Ҷ α׷ - ῩǾ ִٴ ǰ ̼ ؼ ׵ 絵 - ״ Ѿ ϸ GPL Բ ؾ Ѵ. - - 쿡 ϱ ؼ ҿ ϱ ؼ - Ǹ Ǹſ ȯ ϴ - ִ. - - 3 . Ǿ絵ڴ ڽ 絵 α׷ Ǵ Ϻθ -̸ ؼ 2 α׷ â ִ. ۵ α׷̳ â۵ 2 -α׷ ҽ ڵ 1 ؼ ׵ Ű ǿ -ؼ Ǵٽ ؼ ִ. - - a) ۵ ۵ ǰ ۵ ¥ Ȯεɼ ֵ - ۼ Ǿ Ѵ. - - b) ϰų Ϸ ۹ Ǵ Ϻΰ 絵 α׷κ - Ļ ̶ ۵ α׷ ̳ ǹ ü - ߿ ؾ Ѵ. - - c) ۵ α׷ Ϲ ° ɾ Է Ŀ ȭ - , ۵ α׷ ̷ ȭ ϰ Ǿ ۱ - װ α׷ ῩǾ ִٴ ׸ ۵ - α׷ ̼ ؼ Ǵٽ ؼ ִٴ - GPL ִ Ŀ Ǵ ȭ ؼ Բ - µ ֵ ۼǾ Ѵ. ( : 絵 α׷ ȭ - ߰ ִٰ ϴ ȯ ׵ µ - ʴ ¿ 쿡 ̸ α׷ û׵ ½Ű - Ƶ ϴ) - - ׵ ۵ κ ԵǾ ִ 2 α׷ ü ȴ. , - ۹ Ư 2 α׷ ԵǾ ִ κа ϴ ϴ - 絵 α׷κ Ļ ƴ϶ ۹ ɸ - 쿡 ش ۹ ̼ - ʴ´. ׷, ̷ ۹ 2 α׷ ԵǾ Բ - ȴٸ ۱ǰ ؿ Ե ۹ ΰ - ̼ ؼ Ǿ ϸ ü۹ Ϻ Ǵ ο - Ǹ ߿ 絵Ǿ Ѵ. - -̷ ۹ ۱ Ǹ Ű ƴ϶ -2 α׷κ ݺ Ļǰų ̷ α׷ - ؼ ̼ ϰ ϱ ̴. - -α׷̳ 2 α׷ α׷κ Ļ α׷ - Բ ġ ü 쿡 ̵ Ļ ۹ - ʴ ̼ ؼ ȴ. - - 4 . Ǿ絵ڴ ϳ ׸ Ű ǿ ؼ 1װ 2 - α׷(Ǵ 2 2 α׷) ڵ峪 - · ؼ ִ. - - a) ڵ峪 ¿ شϴ ҽ ڵ θ 1װ 2 - ǻͰ Է¹ްų ִ · Ʈ ؼ - Ϲ Ǵ ü ؼ Բ ؾ Ѵ. - - b) ڵ峪 ¿ شϴ ҽ ڵ θ ּ 3 ̻ - ִ μ⹰ · 1װ 2 Ʈ - ؼ Ϲ Ǵ ü ؼ ۽Ǻ ϴ 븸 - ؼ ߿ 絵 ֵ Բ ؾ Ѵ. - - c) ڵ峪 ¿ شϴ ҽڵ θ ִ - Բ ؾ Ѵ. ( ׸ 񿵸 ׸ b) ؼ - ڵ峪 ؼ ִ) ۹ - ҽ ڵ ش ۹ ϱ ؼ Ϲ ȣ Ǵ ǥ - ǹϰ, ๰ ҽڵ α׷ ùٸ DZ ؼ - ʿ ̽ , ϰ ġ ؼ ʿ ũƮ - Եȴ. ׷ Ϸ Ŀΰ  ü ֿ κе鿡 - ҽڵ峪 ̳ʸ ´ α׷ ̷ κе - Բ ʾƵ ϴ. - -ڵ峪 ¸ Ư ҷκ ֵ ϴ - , ҷκ ҽ ڵ带 ֵ ϴ Ǿ絵ڿ - ҽڵ带 ڵ峪 ¿ Բ ʾҴ ϴ -ҽ ڵ带 Բ ϴ Ѵ. - - 5 . ̼ ؼ α׷ 絵 ʾҴٸ 絵 -α׷ , ̼ . - õ  ȿ̸ ̼ ϰ ִ - Ǹ ڵ Ҹȴ. , ̼ ʰ 絵 - α׷̶ ϴ ̸ ̼ 絵 ٽ -쿡 α׷ ٽ 絵 3 Ǿ絵ڴ ̼ ؼϴ - Ǹ ִ. - - 6 . Ǿ絵ڴ α׷ 絵 ̼ ν -̼ ޾Ƶ ִ. , Ǿ絵ڿԴ α׷ - ܼ 븸 Ǹ α׷ 2 α׷ ۰ - ʴ´. ̴ Ǿ絵ڰ ̼ ν ߻ - ̴. α׷ (Ǵ 2 α׷) ϰų ϴ - , ̼ ǵ ޾Ƶ̰ڴٴ - Ƿ Ѵ. - - 7 . Ǿ絵ڿ ؼ α׷ (Ǵ 2 α׷) ݺ ɰ -, ܰ迡 Ǿ絵ڴ ̼ α׷ , - α׷ 絵ڷκ 絵 ڵ ֵ -. α׷(Ǵ 2 α׷) 絵 Ǿ絵 Ǹ ִ - ׵ ߰ ̼ ؼ - . - - 8 . ǰ̳ Ư ħؿ Ǵ Ư ѵ -׹ ؼ ̼ ġǴ ߻Ѵ ϴ -̼ ġǴ ̼ 켱 Ե -´. ̳  ؼ ̼ Ǵ ׵ -ȴ ϴ ̼ Բ Ű鼭 α׷ -ٸ ش α׷ ȴ. , Ư Ư ö̼ -Ǵ 絵 ؼ α׷ ϴ ʴ -ٸ ̷ ̼ Ǵ α׷ ̼ ؼ Ǵ -α׷ Բ . - -Ư Ȳ ׵ 쿡 װ 浹 Ͼ - ʴ ٸ Ȳ Ͽ Ϻγ θ ؾ Ѵ. - - Ư㳪 ħ ϰų ش Ǹ - ƴ϶ GPL ؼ Ʈ ü踦 - ȣϱ ̴. ü迡 ŷִ - ν Ʈ پ о߿ ־. Ʈ - ü踦 ؼ ΰ ϴ ڿ ڵ - ޷ Ϲ ڵ ִ ƴ ̴. - - ӵǴ ̼ ؼ ߿ϰ ޵ǰ ִ - Ȯϰ ϴµ ̴. - - 9 . Ưǰ ۱ ó Ŀ ؼ Ư α׷ - Բ Ǵ , ̼ ؼ α׷ - ڴ ߻ ʴ ؼ ̸ Ѵٴ - Ҽ ̷ ̼ Ϻη ֵȴ. - - 10 . Ʈ GPL ϰų ִ. ǰų -Ǵ ο ɿ ǰ ٺ -ٲ ̴. - -GPL ٸ ȣ ̴. 絵 α׷ Ư - ̼ ϰ ִٸ ش Ǵ ̼ Ǹ -  ̼ ص ϴ. - - 11 . α׷ Ϻθ ̼ ٸ α׷ Բ - 쿡 ش α׷ ڷκ ޾ƾ Ѵ. -Ʈ ۱ ִ Ʈ ϱ ؼ Ʈ - Ѵ. Ʈ ǿ ؼ - ִ. Ʈ Ʈ 2 ۹ -ο · Ű Ʈ Ϲ Ȱ -Ű ؿ ٰؼ θ ̴. - - Ῡ - - 12 . ̼ α׷ 絵 ǹǷ ϴ -ѵ  ʴ´. , α׷ ۱ڿ 3 - ڿ ؼ Ǵ Ư α׷ ռ - ϱ 쳪 Ǹſ ȴٴ - õǾ ִ ܷ Ѵ. ׷ ̷ 쿡 ش α׷ -ü ִ ٿ Ῡ . α׷ α׷ -࿡ ߻ ִ Ǿ絵ڿ μ Ǹ ̿ - Ǿ絵ڰ δѴ. - - 13 . ۱ڳ 3 ڰ α׷ ջ ɼ ˰ ־ -ϴ ߻ ս Կ ؼ ȣǰ ְų ۱ڳ α׷ -ü ʴ´ٴ α׷ ۵ α׷ Բ Ǵ - ڰ 찡 ƴ϶ α - ̳ ̼ ؼ ߻ ս Ǿ絵 å̴. -߻ ս Ϲݼ̳ ƯӸ ƴ϶ ߼ ʿ -´. - - , ǰ . - - ǹ ϴ - - α׷ 鿡 ϰ DZ⸦ Ѵٸ α׷ - ̼ Ӱ ǰ ֵ Ʈ - ּ ̴. - - ׵ α׷ ߰ν ش α׷ Ʈ - ִ. α׷ ʴ´ٴ ȿ - ִ ҽ ڵ尡 ԵǾ ִ κп ̷ ׵ - ϴ ̴. ϵ ּ ۱ǰ GPL ִ -ؾ߸ Ѵ. - -α׷ ̸ 뵵 ؼ Ѵ. - - Copyright (C) 19yy α׷ ̸ - - α׷ Ʈ̴. - - Ʈ Ǿ絵ڴ Ʈ GNU General Public License - ؼ α׷ ۵ 2 α׷ Բ Ǵ - ִ. α׷ ϰ ǰ - ǰ  ʴ´. ڼ ׿ ؼ - GNU General Public License ϱ ٶ. GNU General Public License - α׷ Բ ȴ. , Ǿ ִٸ Ʈ - ϱ ٶ. - ( Ʈ : Free Software Foundation, Inc., 59 Temple Place - Suite - 330, Boston, MA 02111-1307, USA) - - -, α׷ ڿ Ǵ ؼ ִ -ؾ Ѵ. - -, α׷ ɾ Է Ŀ ȭ ϰ ִٸ α׷ - ȭ Ǵ ʱ ¿ Ǿ -. - - Gnomovision version 69, Copyright (C) 19yy α׷ ̸ - - Gnomovision ǰ  ʴ´. ڼ - 'show w' ɾ ̿ؼ ִ. α׷ Ʈ - ̸ Ư Ű Ͽ ִ. ش - 'show c' ɾ ؼ ִ. - -'show w' 'show c' GPL ش κ ϱ ɾ̴. - ɾ 콺 ϰų ޴ ϴ α׷ - · ̴. - -, α׷ ڰ б ü Ǿ ִٸ α - ο ؼ ֳ ش α׷ ۱ - Ѵٴ Ǹ Ѵ. , ִ. - - James Hacker ؼ ۼ 'Gnomovision' α׷ - Ѵ. - - 1989 4 1 - Yoyodye, Inc., λ: Ty Coon - : Ty Coon - - ̼ Ʈ α׷ Ʈ Բ - ʴ´. , ۼ α׷ ̺귯 ƾ -׷ 쿡 ̸ Ʈ α׷ Բ ν - ȿ Ȱ ִٰ ̴. ̷ - ſ GNU Library General Public License ν ұ -ų ̴. diff --git a/INSTALL.txt b/INSTALL.txt new file mode 100644 index 00000000..a67bcefa --- /dev/null +++ b/INSTALL.txt @@ -0,0 +1,607 @@ +***** JSBOARD + OOPS administartion Center ********************************* + + : 躴 < redhands@linux.sarang.net > + +Maintainer : â < winchild@kldp.org > + version corder : < admin@oops.org > + version corder : Dimanche < dimanche@dimanche.co.kr > + +CVS Server : 迵 < blhole@hotmail.com > +Homepage : http://www.kldp.org + +****************************************************************************** + + +Title : JSBoard-0.7 + + +ۼ : . http://www.oops.org +ۼ : 2000.1.31 + + + + +==== + +1. 䱸 +2. ȯ +3. +4. Installation (ġ) : root ó ġ +5. Installation (ġ) : ڰ ó ġ +6. Installation (ġ) : ڵ Part +7. + + + + +1. 䱸 +=========== + + 1-1. flatform + + ġ ý. ٸ flatform ȣȯ . + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + apache 1.3 ̻ php3-3.0.7 ̻ 䱸. + + 1-2. Hardware + + ġɼ OK + + 1.3. 䱸 + + MySQL ణ ʿ + + +2. ȯ +============ + +Jsboard linux system Ͽ apache web server php3 module MySQL + Ͽ ۵ Ѵ. ڽ system exec() Լ ۵ +ϴ Ȯؾ Ѵ. + + ) + +
") ; +exec("echo \"execԼ ۵ մϴ\"", $test) ; + +echo $test[0] ; + +?> + + test page 󿡼 + +exec() Լ ׽Ʈ + +execԼ ۵ մϴ + + ޼ ȴ. php mysql Ǵ Ȯؾ +Ѵ. ̴ + +) + + + + test page 󿡼 ҷ MySQL ִ +Ȯؾ Ѵ. Ұ RPM ǰ ִ php MySQL +option ִ ͵ MySQL ΰ /usr/lib/mysql ̾߸ Ѵ. +, MySQL RPM ġ ִ ϴ. + + +3. +=========== + +README file + + +4. Installation (ġ) : root ó ġ +======================================================= + + ******** ******** + + ڵ ڵ ڽ ׸ ãƼ + Ѵ. κ root ִ + ó ϴ 쿡 Ѵ. + + ********************** + + +1. ϴ mysql ġ Ѵ. MySQL RPM Ҽ + + ftp://linux.sarang.net/pub/ + + Ҽ ִ. REDHAT 5.x ϴ + + ftp://ftp.oops.kr.net/pub/Linux/Redhat/RPMS/5.x/i386/MySQL + + ϸ ȴ. + +2. root password Ѵ. + + [root@home /public_html]# mysql mysql + + Reading table information for completion of table and column names + You can turn off this feature to get a quicker startup with -A + + Welcome to the MySQL monitor. Commands end with ; or \g. + Your MySQL connection id is 1961 to server version: 3.22.20a-log + + Type 'help' for help. + + mysql> update user set password = password('н') + > where user = 'root' ; + Query OK, 1 row affected (0.00 sec) + + mysql> flush privileges; + Query OK, 0 rows affected (0.00 sec) + + mysql> quit + Bye + + ̹ Ǿ ִ ܰ ׳ dz ٸ ȴ. + + +3. jsboard ҽ ġ 丮 Ǭ. + + shell> tar xvfpz jsboard-0.7.0.tar.tz + +4. Ǭ jsboard-0.7.0/Install/Config ̵ Ѵ. + ̵ root.sh 丮 Ѵ. + + shell> ./root.sh + + jsboard-0.7.0 directory ٽ ƿͼ + include directory ׷ǰ ۹̼ Ʒ + Ǿ ִ Ȯ Ѵ. + + + [root@oops jsboard-0.7.0]# ll + total 52 + drwxr-xr-x 6 oops oops 1024 Dec 17 16:18 ./ + drwxrwxr-x 7 oops oops 1024 Dec 15 11:24 ../ + -rw-r--r-- 1 oops oops 4160 Dec 17 17:02 INSTALL.txt + drwxr-xr-x 4 oops oops 1024 Dec 17 15:59 Install/ + -rw-r--r-- 1 oops oops 8665 Dec 11 18:12 README + -rw-r--r-- 1 oops oops 5468 Dec 16 22:16 act.php3 + drwxr-xr-x 5 oops oops 1024 Dec 17 15:27 admin/ + -rw-r--r-- 1 oops oops 5149 Dec 6 13:45 delete.php3 + -rw-r--r-- 1 oops oops 4641 Dec 7 16:13 edit.php3 + drwxr-xr-x 2 oops oops 1024 Dec 6 13:45 images/ + + drwxrwxr-x 3 oops nobody 1024 Dec 17 16:12 include/ <----- !!! + ^^^^^^ + -rw-r--r-- 1 oops oops 51 Dec 15 12:36 index.php3 + -rw-r--r-- 1 oops oops 2621 Dec 17 15:45 list.php3 + -rw-r--r-- 1 oops oops 7481 Dec 6 13:45 read.php3 + -rw-r--r-- 1 oops oops 3983 Dec 6 13:45 reply.php3 + -rw-r--r-- 1 oops oops 3505 Dec 7 17:05 write.php3 + + + + + drwxrwxr-x 3 oops nobody 1024 Dec 17 16:12 include/ + + Ǿ ʴ´ٸ ۾ Ѵ. + + shell> chgrp nobody ./include + shell> chmod 775 ./include + + +5. ٽ jsboard-0.7.0/Install ̵ Ѵ. + + Ұ upgrade ϴ ̳ ġ + ڵ Install program ؼ ȵȴ. + + 丮 Ʊ mysql root password + file ִ. + + mysql_user_regist.php3 vi ̿Ͽ + + + : mysql_user_regist.php3 κ + + /****************************************************/ + + // mysql root password + + $passwd = "" ; + $passwd = crypt("$passwd","oo") ; + + /****************************************************/ + + + $passwd = "" ""̿ mysql root password ´. + 丮 act.php3 κп + mysql_user_regis.php3 ϰ Ǿ ִ Ƿ + ⿡ ش. + + : act.php3 κ + + /****************************************************/ + + // mysql root password + + $passwd = "" ; + $passwd = crypt("$passwd","oo") ; + + /****************************************************/ + + +6. + + http://domain.com/jsboard-0.6/Install + + Ѵ. ҹڿ . ϴ ϸ + mysql password ð̴. + Ʊ н带 ϰ enter ŬѴ. + +7. Ѿ + + jsboard DB̸ DB ׸ DB user password ش. + ְ Ѿ. + + ⼭ Ұ ̹ MySQL ϵǾ ִ DB name DB + ؼ ȵȴ. + + ϸ ޼ ߰ ȴ. + + " ϷǾϴ. + Admin Page ̵ մϴ. + Admin Page ʱ Password + 0000 Դϴ" + +8. admin page login page Ʈó 0000 ְ ͸ + ģ. ϴܿ ִ ư н ϴ ̴ ̰ + α ʴ´. α ѹ + ָ Ű Ǵ н带 ϰ ش. + + + ** ** + + admin page Netscape ȭ鸸 ´ٵ + Ǵ Ʒ ޼ ð + + Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: YES) + in /usr/local/apache/htdocs/jsboard-0.7.0/Install/act.php3 on line 46 + Unable to connect to SQL server + + ̶ MySQL reload ٽ ֱ ٶ. ׷ ȵȴٸ + jsboard-0.7.0/include db.ph file ϴ ִٸ + db ̸, db user, db pass Ȯ + mysql α test . + + + +9. CrayWWWBoard ģ ð̴. + ϴ ó  켱 н + ؾ Ѵ. + + ȭ ߰ κп "Admin Info" ̴. + κ administratin center н带 ϴ κ + н ִ.(̵ Ҽ ִ.) + + ̰ ŬϿ н带 Ŀ ٷ logout ư + logout Ŀ ٽ password α Ѵ. + +10. ʹ ϴ Խ ̸ Create DB ־ + ָ Խǵ ϴ. + +11. Խ Խ йȣ 1ۿ + ڵ ǹǷ ̸ Ȯ Ŀ Խ н带 + ֵ Ѵ. + +12. jsboard-0.7.0/jsboard/db.ph б 常 ϰ Ѵ. + + +5. Installation (ġ) : ڰ ó ġ +================================================ + + ******** ******** + + κ root ڰ + ó ϴ 쿡 Ѵ. + + ********************** + + +1. jsboard ҽ ġ 丮 Ǭ. + + shell> tar xvfpz jsboard-0.7.0.tar.gz + +2. ڵ ȿ ΰ ʿ䰡 ִ. + ׷Ƿ κ ϰ Ȯϰ ϱ ٶ. + + ϴ ڽ ID oops Ʒ shell 󿡼 + Ѵ. + + shell> chmod 711 ~oops + + jsboard-0.7.0/Install/Config/ ̵ Ѵ. + ׸ Ʒ Ѵ. + + shell> ./account.sh + + jsboard-0.7.0 directory ٽ ƿͼ + include directory ׷ǰ ۹̼ Ʒ + Ǿ ִ Ȯ Ѵ. + + [root@oops jsboard-0.7.0]# ll + total 52 + drwxr-xr-x 6 oops oops 1024 Dec 17 16:18 ./ + drwxrwxr-x 7 oops oops 1024 Dec 15 11:24 ../ + -rw-r--r-- 1 oops oops 4160 Dec 17 17:02 INSTALL.txt + drwxr-xr-x 4 oops oops 1024 Dec 17 15:59 Install/ + -rw-r--r-- 1 oops oops 8665 Dec 11 18:12 README + -rw-r--r-- 1 oops oops 5468 Dec 16 22:16 act.php3 + drwxr-xr-x 5 oops oops 1024 Dec 17 15:27 admin/ + -rw-r--r-- 1 oops oops 5149 Dec 6 13:45 delete.php3 + -rw-r--r-- 1 oops oops 4641 Dec 7 16:13 edit.php3 + drwxr-xr-x 2 oops oops 1024 Dec 6 13:45 images/ + + drwx---rwx 3 oops oops 1024 Dec 17 16:12 include/ <----- !!! + ^^^^^^^^^^ + -rw-r--r-- 1 oops oops 51 Dec 15 12:36 index.php3 + -rw-r--r-- 1 oops oops 2621 Dec 17 15:45 list.php3 + -rw-r--r-- 1 oops oops 7481 Dec 6 13:45 read.php3 + -rw-r--r-- 1 oops oops 3983 Dec 6 13:45 reply.php3 + -rw-r--r-- 1 oops oops 3505 Dec 7 17:05 write.php3 + + + + drwx---rwx 3 oops oops 1024 Dec 17 16:12 include/ + + Ǿ ʴ´ٸ ۾ Ѵ. + + shell> chmod 707 ./include + +3. ڵ Install program + ؾ Ѵ. + +4. account.sh ϸ jsboard-0.7.0/include directory + db.ph file ȴ. db + Ҽ jsboard-0.7.0/include directory + jsboard-0.7.0/Install/admin_sample ִ db.ph.orig + jsboard-0.7/include db.ph file name copy Ѵ. ׸ + 1 ˾ DB name, DB user name, DB password + ˸° ־ش. $db_server ǵ帮 ȵȴٴ + . + + db.ph include/test ̴. ̰ install/sample + test ̸ copyϰ ۹̼ 707 files directory + 707 ϵ 606 ۹̼ ֵ Ѵ. + +5. jsboard-0.7.0/Install/SQL directory ̵ ؼ + + shell# mysql -u DB_USER_NAME -p DB_NAME < mysql.sql + shell# mysql -u DB_USER_NAME -p DB_NAME < manager.sql + + Ͽ, Խ table table 鵵 Ѵ. + ⼭ DB_USER_NAME ڿ ޶ DB user ̸̸, + DB_NAME DB ̸ ־ ָ ȴ. + + +6. ۾ . + http://domain/~account/jsboard-0.7.0/admin Ѵ. + admin page login page ⺻ н 0000 ְ ͸ + ģ. ϴܿ ִ ư н ϴ ̴ ̰ + α ʴ´. α ѹ + ָ Ű Ǵ н带 ϰ ش. + + + + ** ** + + admin page Netscape ȭ鸸 ´ٵ + Ǵ Ʒ ޼ ð + + Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: YES) + in /usr/local/apache/htdocs/jsboard-0.7.0/Install/act.php3 on line 46 + Unable to connect to SQL server + + ̶ MySQL reload ٽ ֱ ٶ. ׷ ȵȴٸ + jsboard-0.7.0/include db.ph file ϴ ִٸ + db ̸, db user, db pass Ȯ + mysql α test . + + + +7. CrayWWWBoard ģ ð̴. + ϴ ó  켱 н + ؾ Ѵ. + + ȭ ߰ κп "Admin Info" ̴. + κ administratin center н带 ϴ κ + н ִ.(̵ Ҽ ִ.) + + ̰ ŬϿ н带 Ŀ ٷ logout ư + logout Ŀ ٽ password α Ѵ. + +8 ʹ ϴ Խ ̸ Create DB ־ + ָ Խǵ ϴ. + +9. Խ Խ йȣ 1ۿ + ڵ ǹǷ ̸ Ȯ Ŀ Խ н带 + ֵ Ѵ. + + + + +6. Installation (ġ) : ڵ Part +================================================== + +0.6 . ٸ ˾Ƽ ¥ ߱ ϵ ^^; + Ұ ۹̼ǰ κ и 񱳸 ٶ. +0.7pre3 ̻ ڵ ҽ ȴ. +0.7pre1-pre2 ڵ DB Ͽ + Ѵ. + +mysql> alter table BoardInformation add lang varchar(5); + + +************ ************** + + κп 0.6 Ͽ ȴ. +̹ 0.7 ϰ ִ ׳ ϵ鸸 + ٶ. ׿ . + +******************************** + + +1. jsboard ҽ ġ 丮 Ǭ. + + shell# tar xvfpz jsboard-0.7.0.tar.tz + + ϴ Ұ ε Ѵ. + file jsboard-0.7.0 ̶ directory Ǯ + ġ ʰ ϶. (׷ϵ ^^:) + + +2. DB ϰ ״ ׳ Ѿ. + jsboard-0.7.0/Install/SQL directory mysql.sql ̶ + ϰ table ٶ. + 0.5 KEY date (date) ִ. 0.6 ʹ + date key indexing ̿ϱ ALTER κ + ߰ϱ ٶ. 0.6 ̻ ϴ ׸ + ص ȴ. + + ALTER TABLE table_name ADD INDEX (date); + + ָ ȴ. ٵ, ̹ Ǿ ִ + ϸ Ǵ 𸥴. (SQL ʺ T.T) + +3. ٸ ̸ ϰ ġ + . + +4. ۹̼ǰ Ǿ ִ Ȯ Ѵ. + ׸ admin/include/info.ph Ѵ. + admin/include ۹̼ ̿ Ǿ ִٸ + ̸ . + + ڵ 쿡 ġ κ ۹̼ ؾ + ^^^^^^^^^^^^^^^^^^^^ + Ѵٴ ؾ Ѵ. ϵ Ѵ. + ^^^^^^^^^^^^^^^^ + +5. jsboard-0.7.0/Install/SQL/manager.sql convert.sql copy Ѵ. + convert.sql  Ʒ ִ + + *********************************************************************************** + + INSERT INTO BoardInformation VALUES ('','superuser','ooK/oSLfDJOUI','','','', + '','','','','','','','','','','','','','','','','', + '','','','','','','','','','','','','en'); + + INSERT INTO BoardInformation VALUES ('','test','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#d5b5c5','#ffffff','#ffffff','#555555', + '#99aabb','#555555','#a5b5c5','#ffffff','#a5c5c5','#ffffff','#d5b5c5', + '#555555','#ffffff','#555555','#778899','yes','no', + './include/table_account_name/files','2000000','','no','','yes','yes','127.0.0.1','ko'); + + *********************************************************************************** + + insert 2 ϰ Ѵ. + + oops, bbuwoo, love ̸ Խ ϰ + ־ٸ insert ι° insert ι° filed ִ 'test' + ̸ ش. Ʒ ؾ Ѵ. + + INSERT INTO BoardInformation VALUES ('','oops','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#d5b5c5','#ffffff','#ffffff','#555555', + '#99aabb','#555555','#a5b5c5','#ffffff','#a5c5c5','#ffffff','#d5b5c5', + '#555555','#ffffff','#555555','#778899','yes','no', + './include/table_account_name/files','2000000','','no','','yes','yes','127.0.0.1','ko'); + + INSERT INTO BoardInformation VALUES ('','bbuwoo','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#d5b5c5','#ffffff','#ffffff','#555555', + '#99aabb','#555555','#a5b5c5','#ffffff','#a5c5c5','#ffffff','#d5b5c5', + '#555555','#ffffff','#555555','#778899','yes','no', + './include/table_account_name/files','2000000','','no','','yes','yes','127.0.0.1','ko'); + + INSERT INTO BoardInformation VALUES ('','love','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#d5b5c5','#ffffff','#ffffff','#555555', + '#99aabb','#555555','#a5b5c5','#ffffff','#a5c5c5','#ffffff','#d5b5c5', + '#555555','#ffffff','#555555','#778899','yes','no', + './include/table_account_name/files','2000000','','no','','yes','yes','127.0.0.1','ko'); + + ϴ Խ 5 insert 5 Ǿ Ұ̴. + ذ Ǹ ϰڴ. + + 󿡼 + + shell> mysql -u USER_NAME -d DB_NAME < convert.sql + + Ѵ. + + +6. ۾ ϴ ʱȭ Ͽ + DB ۾ Ǹ, Խ + 󿡼 ٽ Ѵ. Խǵ н嵵 + 0000 ʱȭ ȴ. + +7. 0.6 version ڵ jsboard/admin/include/info.php3 + Ѵ ׸ ü page н 0000 ʱȭ Ǵ + ̸ ٽ ֵ Ѵ. + +8. ü admin page(http://domain/jsboard/admin/) login ؼ + 0000 ְ ͸ ģ. ϴܿ ִ ư н + ϴ ̴ ̰ α ʴ´. α + ѹ ָ Ű Ǵ н带 ϰ ش. + + ** ** + + admin page Netscape ȭ鸸 ´ٵ + Ǵ Ʒ ޼ ð + + Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: YES) + in /usr/local/apache/htdocs/jsboard-0.7.0/Install/act.php3 on line 46 + Unable to connect to SQL server + + ̶ MySQL reload ٽ ֱ ٶ. ׷ ȵȴٸ + jsboard-0.7.0/include db.ph file ϴ ִٸ + db ̸, db user, db pass Ȯ + mysql α test . + + + +9. CrayWWWBoard ģ ð̴. + ϴ ó  켱 н + ؾ Ѵ. + + ȭ ߰ κп "Admin Info" ̴. + κ administratin center н带 ϴ κ + н ִ.(̵ Ҽ ִ.) + + ̰ ŬϿ н带 Ŀ ٷ logout ư + logout Ŀ ٽ password α Ѵ. + +10. ʹ ϴ Խ ̸ Create DB ־ + ָ Խǵ ϴ. + + Ƹ ڵ ̹ ϵǾ ִ $table ̴. + +11. Խ Խ йȣ 1ۿ + ڵ ǹǷ ̸ Ȯ Ŀ Խ н带 + ֵ Ѵ. + +12. admin page ۾ , Խ admin page + α Ͽ ѹ ش. ۾ config.ph + ο config.ph Ų. config.ph κ + DB  , config.ph ޴ ִ. + +13. jsboard-0.7.0/jsboard/db.ph б 常 ϰ Ѵ. + +׷ ϱ ٶ ^^; + + + +7. +======= + +ġ Ŀ Install directory ۹̼ ݾƵη +ϱ⸦ Ѵ. 700 ϱ⸦ ٶ. +׳ θ  ư Ҽ ִٴ ̴. + + diff --git a/Install/Config/account.sh b/Install/Config/account.sh new file mode 100755 index 00000000..2fc6fb7a --- /dev/null +++ b/Install/Config/account.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +cp -aRp ../admin_sample/db.ph.orig ../../include/db.ph +cp -aRp ../sample ../../include/test +chmod 707 ../../include +chmod 644 ../../include/db.ph +chmod 707 ../../include/test -R +chmod 644 ../../include/*.* + +exit 0 diff --git a/Install/Config/root.sh b/Install/Config/root.sh new file mode 100755 index 00000000..6f0aa7f3 --- /dev/null +++ b/Install/Config/root.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +chgrp nobody ../../include +chmod 775 ../../include + +exit 0 diff --git a/Install/SQL/manager.sql b/Install/SQL/manager.sql new file mode 100644 index 00000000..68e13065 --- /dev/null +++ b/Install/SQL/manager.sql @@ -0,0 +1,60 @@ +# MySQL dump 6.0 +# +# Host: localhost Database: board +#-------------------------------------------------------- +# Server version 3.22.23b + +# +# Table structure for table 'BoardInformation' +# +CREATE TABLE BoardInformation ( + id int(8) DEFAULT '0' NOT NULL auto_increment, + t_name tinytext, + super_user tinytext, + board_user tinytext, + pern varchar(3), + namel varchar(3), + titll varchar(5), + width varchar(5), + l0_bg varchar(16), + l0_fg varchar(16), + l1_bg varchar(16), + l1_fg varchar(16), + l2_bg varchar(16), + l2_fg varchar(16), + l3_bg varchar(16), + l3_fg varchar(16), + r0_bg varchar(16), + r0_fg varchar(16), + r1_bg varchar(16), + r1_fg varchar(16), + r2_bg varchar(16), + r2_fg varchar(16), + r3_bg varchar(16), + r3_fg varchar(16), + t0_bg varchar(16), + menuallow varchar(5), + file_upload varchar(5), + filesavedir tinytext, + maxfilesize tinytext, + mailtoadmin tinytext, + mailtowriter varchar(5), + bbshome tinytext, + use_url varchar(5), + use_email varchar(5), + user_ip_addr tinytext, + lang varchar(5), + PRIMARY KEY (id) +); + +INSERT INTO BoardInformation VALUES ('','superuser','ooK/oSLfDJOUI','','','', + '','','','','','','','','','','','','','','','','', + '','','','','','','','','','','','','en'); + + +INSERT INTO BoardInformation VALUES ('','test','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#d5b5c5','#ffffff','#ffffff','#555555', + '#dcdcdc','#555555','#a5b5c5','#ffffff','#a5c5c5','#ffffff','#dcdcdc', + '#555555','#ffffff','#555555','#778899','no','no', + './include/table_account_name/files','2000000','','no','','yes','yes','127.0.0.1','en'); + diff --git a/Install/SQL/mysql.sql b/Install/SQL/mysql.sql new file mode 100644 index 00000000..942287d6 --- /dev/null +++ b/Install/SQL/mysql.sql @@ -0,0 +1,38 @@ +# MySQL dump 6.0 +# +# Host: localhost Database: board +#-------------------------------------------------------- +# Server version 3.22.23b + +# +# Table structure for table 'test' +# +CREATE TABLE test ( + no int(8) DEFAULT '0' NOT NULL auto_increment, + num int(8) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + passwd varchar(13), + email tinytext, + url tinytext, + title tinytext, + text mediumtext, + refer int(8) DEFAULT '0' NOT NULL, + reyn int(1) DEFAULT '0' NOT NULL, + reno int(8) DEFAULT '0' NOT NULL, + rede int(8) DEFAULT '0' NOT NULL, + reto int(8) DEFAULT '0' NOT NULL, + bofile varchar(100), + bcfile varchar(100), + bfsize int(4), + PRIMARY KEY (no), + KEY num (num), + KEY date (date), + KEY reno (reno) +); + +Insert into test values('',1,'948894390','127.0.0.1','bbuwoo','0000', + 'admin@oops.org','http://www.oops.org','̱ Ͻʽÿ.', + 'Խ ó ϽǶ Ͻ Դϴ. ϴ ⺻ Admin mode password 0000 ߾ ֽϴ. Խ admin ŬϿ ̰͵ Ͽ ֽʽÿ. + ',0,0,0,0,0,'','',''); diff --git a/Install/act.php3 b/Install/act.php3 new file mode 100644 index 00000000..7b9eee42 --- /dev/null +++ b/Install/act.php3 @@ -0,0 +1,265 @@ +\n" . + "alert('$no_pass_alert')\n" . + "document.location='./index.php3'\n" . + "" ); + exit ; +} + + +if ($mysql_root != $auth) { + echo ("" ); + exit ; +} + + + +/* db */ + +$connect = mysql_connect( localhost, root , $passwd ) or die( "Unable to connect to SQL server" ); +$db_list = mysql_list_dbs($connect); +$db_num = mysql_num_rows($db_list); + +mysql_select_db('mysql', $connect); + +/* Password */ + +if (!$pass_db) { + echo ("" ); + exit ; +} + + +/* DB check */ + +for ($i=0; $i<$db_num; $i++) { + + $dbname = mysql_dbname($db_list,$i) ; + + if (!$name_db) { + + echo ("" ); + exit ; + } + + if (eregi("^[0-9]", $name_db)) { + + echo ("" ); + exit ; + + } + + else if ($name_db == $dbname) { + + echo ("" ); + exit ; + } + +} + +/* Ϸ User check */ +$user_check = "select user from user where user = '$user_db'" ; +$result = mysql_query($user_check, $connect ); +$row=mysql_fetch_array($result); + +if ($row) { + echo ("" ); + exit ; +} + + +/* DB chek MySQL DB */ +$create_db = "create database $name_db" ; +$result = mysql_query($create_db, $connect ); + +/* User chek User user table */ +$create_user = "insert into user (Host,User,Password) values('localhost','$user_db',password('$pass_db')) "; +$result = mysql_query($create_user, $connect ); + +/* ش User DB User db table */ +$regist_db_name_db = "insert into db values('localhost','$name_db','$user_db','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y') "; +$result = mysql_query($regist_db_name_db, $connect ); + + +/* test Խ table */ + +mysql_select_db($name_db,$connect); + +$date = time(); +$host_ext = "127.0.0.1"; +$name_ext = "bbuwoo"; +$passwd_ext = "asdf"; +$email_ext = "admin@oops.org"; +$url_ext = "http://www.oops.org"; +$subject_msg = "$title_ext" ; +$text_msg = "$text_ext" ; + +$create_table = "CREATE TABLE test ( + no int(8) DEFAULT '0' NOT NULL auto_increment, + num int(8) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + passwd varchar(13), + email tinytext, + url tinytext, + title tinytext, + text mediumtext, + refer int(8) DEFAULT '0' NOT NULL, + reyn int(1) DEFAULT '0' NOT NULL, + reno int(8) DEFAULT '0' NOT NULL, + rede int(8) DEFAULT '0' NOT NULL, + reto int(8) DEFAULT '0' NOT NULL, + bofile varchar(100), + bcfile varchar(100), + bfsize int(4), + PRIMARY KEY (no), + KEY num (num), + KEY date (date), + KEY reno (reno))"; + +$insert_data = "Insert into test values('',1,$date,'$host_ext','$name_ext','$passwd_ext', + '$email_ext','$url_ext','$subject_msg','$text_msg',0,0,0,0,0,'','','')"; + + +$result = mysql_query($create_table, $connect ); +$result_insert = mysql_query( $insert_data, $connect ); + + + +/* Խ Table */ +$create_boardinfo = "CREATE TABLE BoardInformation ( + id int(8) DEFAULT '0' NOT NULL auto_increment, + t_name tinytext, + super_user tinytext, + board_user tinytext, + pern varchar(3), + namel varchar(3), + titll varchar(5), + width varchar(5), + l0_bg varchar(16), + l0_fg varchar(16), + l1_bg varchar(16), + l1_fg varchar(16), + l2_bg varchar(16), + l2_fg varchar(16), + l3_bg varchar(16), + l3_fg varchar(16), + r0_bg varchar(16), + r0_fg varchar(16), + r1_bg varchar(16), + r1_fg varchar(16), + r2_bg varchar(16), + r2_fg varchar(16), + r3_bg varchar(16), + r3_fg varchar(16), + t0_bg varchar(16), + menuallow varchar(5), + file_upload varchar(5), + filesavedir tinytext, + maxfilesize tinytext, + mailtoadmin tinytext, + mailtowriter varchar(5), + bbshome tinytext, + use_url varchar(5), + use_email varchar(5), + user_ip_addr tinytext, + lang varchar(5), + PRIMARY KEY (id))" ; + +/* Խ ü ڸ Է */ +$boardinfo_data_superdb = "INSERT INTO BoardInformation VALUES + ('','superuser','ooK/oSLfDJOUI','','','', + '','','','','','','','','','','','','','','','', + '','','','','','','','','','','','','','$lang')" ; +/* test Խǿ Է */ +$boardinfo_data_testdb = "INSERT INTO BoardInformation VALUES + ('','test','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#a5c5c5','#ffffff', + '#ffffff','#555555','#dcdcdc','#555555','#a5b5c5', + '#ffffff','#a5c5c5','#ffffff','#dcdcdc','#555555', + '#ffffff','#555555','#778899','no','no', + './include/table_account_name/files','2000000','','no','','yes', + 'yes','127.0.0.1','$lang')" ; + +$sbresult = mysql_query($create_boardinfo, $connect ); +$sbresult_insert = mysql_query( $boardinfo_data_superdb, $connect ); +$stresult_insert = mysql_query( $boardinfo_data_testdb, $connect ); + + +/* mysql reload */ +exec("mysqladmin -u root --password=$passwd reload"); + + + +/* include/db.ph file */ + +exec("cp ./admin_sample/db.ph.orig ../include/db.ph"); +exec("cp -aRp ./sample ../include/test"); + +$fp = fopen("../include/db.ph", "r"); +while(!feof($fp)) { + $cha_str .= fgets($fp, 100); +} +fclose($fp); + +$cha_str = ereg_replace( DBuser, $user_db, $cha_str ) ; +$cha_str = ereg_replace( DBname, $name_db, $cha_str ) ; +$cha_str = ereg_replace( DBpass, $pass_db, $cha_str ) ; + +$fp = fopen( "../include/db.ph", "w" ) ; +fwrite($fp, $cha_str); +fclose($fp); + +/* test db file ġ */ + +/* ϰ refleshɶ ʱȭ */ +$user_db = "" ; +$name_db = "" ; +$pass_db = "" ; + +mysql_close(); + +echo(" ") ; + +?> diff --git a/Install/admin_sample/db.ph.orig b/Install/admin_sample/db.ph.orig new file mode 100644 index 00000000..9cdd2315 --- /dev/null +++ b/Install/admin_sample/db.ph.orig @@ -0,0 +1,7 @@ + diff --git a/Install/admin_sample/info.php3.orig b/Install/admin_sample/info.php3.orig new file mode 100644 index 00000000..afb35667 --- /dev/null +++ b/Install/admin_sample/info.php3.orig @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Install/cookie.php3 b/Install/cookie.php3 new file mode 100644 index 00000000..c0004116 --- /dev/null +++ b/Install/cookie.php3 @@ -0,0 +1,42 @@ +\n" . + " alert('$alert')\n" . + " document.location='../admin/index.php3'\n" . + " ") ; + exit ; +} + +?> diff --git a/Install/crypt.php3 b/Install/crypt.php3 new file mode 100644 index 00000000..0c1f958f --- /dev/null +++ b/Install/crypt.php3 @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + +
+ + + +
Password ȣȭ ϱ
+
+ + + +
+ +"); +} + + +else if ($mode == "crypt") { + +$encrypt_pass = crypt("$crypt_pass","oo"); + +echo(" + + + + + + + + + + + + +
Password ȣȭ
password: $crypt_pass
ȣȭ: $encrypt_pass
+ +[ư] + +"); +} + +else { echo ("޷") ; } + + +?> + + + + + + \ No newline at end of file diff --git a/admin/img/blank.gif b/Install/img/blank.gif similarity index 100% rename from admin/img/blank.gif rename to Install/img/blank.gif diff --git a/admin/img/first.gif b/Install/img/first.gif similarity index 100% rename from admin/img/first.gif rename to Install/img/first.gif diff --git a/admin/img/last.gif b/Install/img/last.gif similarity index 100% rename from admin/img/last.gif rename to Install/img/last.gif diff --git a/admin/img/title.gif b/Install/img/title.gif similarity index 100% rename from admin/img/title.gif rename to Install/img/title.gif diff --git a/Install/index.php3 b/Install/index.php3 new file mode 100644 index 00000000..f3172630 --- /dev/null +++ b/Install/index.php3 @@ -0,0 +1,67 @@ + + + + + +Board Manager v1.3 [LoGin Page] + + + + + + +
+ + +
+Mysql User Registration Page +
+ + + + + + + + + + + + + + + + + + + + + + +

MySQL Password
+
+Korean +English +
 
+ +
+ +
+ + diff --git a/Install/mysql_user_regist.php3 b/Install/mysql_user_regist.php3 new file mode 100644 index 00000000..82d11cb2 --- /dev/null +++ b/Install/mysql_user_regist.php3 @@ -0,0 +1,103 @@ +\n" . + "alert('$no_pass_alert')\n" . + "document.location='./index.php3'\n" . + "" ); + exit ; +} + + +if ($mysql_root != $passwd) { + echo ("" ); + exit ; +} + +?> + + + +Board Manager v1.3 [DB Create Page] + + + + + + +
+ + +
+Mysql User Registration Page +
+ + + + + + + + + + + + + + + + + + + + + + + +> + +

  DB name  
  DB user  
  DB pass  
 
+ +
+ +
+ + diff --git a/Install/sample/config.ph b/Install/sample/config.ph new file mode 100644 index 00000000..df46953a --- /dev/null +++ b/Install/sample/config.ph @@ -0,0 +1,31 @@ + diff --git a/Install/sample/desc.ph b/Install/sample/desc.ph new file mode 100644 index 00000000..4d004217 --- /dev/null +++ b/Install/sample/desc.ph @@ -0,0 +1,27 @@ + + + +ԽԴϴ. <? echo $title ?> + + + + + + + + + + + + +
\ No newline at end of file diff --git a/Install/sample/menu.ph b/Install/sample/menu.ph new file mode 100644 index 00000000..c676892a --- /dev/null +++ b/Install/sample/menu.ph @@ -0,0 +1,19 @@ + + + + + +
+ +[HOME] +[LIST] + +
+ +"); +?> \ No newline at end of file diff --git a/Install/sample/tail.ph b/Install/sample/tail.ph new file mode 100644 index 00000000..a6a78499 --- /dev/null +++ b/Install/sample/tail.ph @@ -0,0 +1,6 @@ +
+Copyleft 1999 by JSBoard Open Project +
+ + + \ No newline at end of file diff --git a/README b/README index 28f61e9f..299faad2 100644 --- a/README +++ b/README @@ -1,7 +1,372 @@ -$Id: README,v 1.3 2009-11-16 21:52:45 oops Exp $ - -ENGLISH message -goto doc/en - -KOREAN message -goto doc/ko +***** JSBOARD + OOPS administartion Center ********************************* + +Original Developer : Byung Chan Kim < redhands@linux.sarang.net > + +Maintainer : Cahng Hyun Bang < winchild@kldp.org > +Devel version corder : Joung Kyun Kim < admin@oops.org > +Shipping version corder : Dimanche < dimanche@dimanche.co.kr > + +CVS Server administrator : Young Min Kim < blhole@hotmail.com > + + +## Warning ## + +This package used only Linux system. +And users of any other flatform are must DIY :-) + +****************************************************************************** + + + ## JSBoard History ## + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 31 + : jsboard-0.7.0 (Խ 0.7 ) + +* + +1. Install/SQL/mysql.sql table ߸Ȱ ϳ¥ + +2. INSTALL.txt ۼ +3. Խ ( , ѱ ) +4. DB . (config.ph, info.php3) + info.php3 Ǿ, config.ph ޴ 鸸 + . + + table : BoardInformation + + : jsboard/Install/SQL/manager.sql + +5. ټ ϵ鿡 db ҷ κ ÷. +6. delete.php3 table +7. ޼ и. (ڸ κ) + + include/multi_lang.ph (߾ ) + include/ko.ph (ѱ ޼ ) + + κ ٸ  ߰ ޼ ڵ ̸ + Ͽ ־ , multi_lang.ph else if ̿Ͽ + ش ڵ带 ޾ 鿩 ش ҷ ȴ. + + multi_lnag.ph ϴܿ ̴ Լ ־ Ѵ. + +8. ñ ǥ (Re^3 -> ° ñ) +9. SQL time ǥ +10. ̸, , ۿ space ־ ϵǴ ġ +11. ۾⿡ ũƮ ǥ +12. sendmail() Լ ñ 涧 ڿ + ʰ ñ Է ġ +13. a_gent() Լ nt ߰ (misc.ph) +14. read.php3 delete.php3 upload file ش ʵ +15. delete.php3 autolink() Լ ȣ. (ũ ̺ + ) +16. include mail.ph, cmd_var.ph, check.ph ߰ (misc.ph ʹ + ɺ и) +17. ޴ θ admin page Ҽ ֵ . + ÿ user ip address +18. ⸦ ڸ Ҽ ֵ Ҽ ְԲ (admin mode + ) +19. remote ip address ߺ +20. mail.ph Խ ۾ adminԸ ÿ + reply path üũ ϴ + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 25 + : jsboard-0.6.10 (Խ 0.6 ) + +* + +1. file uploadÿ ϱɿ jpg, gif file ̸ ⸦ Ҷ + ̸ blank ũ ġ. +2. read.php3 miss code Ͽ error ߻ϴ° ġ +3. ǥ κ +4. Խ ο ° + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 22 + : jsboard-0.6.9 (Խ 0.6 ) + +* + +1. misc.ph auto_link() Լ ǥĿ system regex + php regex κ + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 20 + : jsboard-0.6.8 (Խ 0.6 ) + +* + +1. list name subject ڿ(ѱ ó) ڸ κ + ġ +2. html enable ÿ tag ϴ +
+ tag 밡. +3. table tag table tag(table,tr,td) nl2br() 鿩 + ʰ +4. auto_link() Լ ǥ . +5. read.php3 command bar double quote ϳ 徲 + κп +6. command bar ϰ . (â ġ ) +7. list field width +8. delete.php3 autolink() Լ ȣ ߰. + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 16 + : jsboard-0.6.7 (Խ 0.6 ) + +* + +1. ̸, , ۿ space ־ ϵǴ ġ +2. ۾⿡ ũƮ ǥ +3. sendmail() Լ ñ 涧 ڿ + ʰ ñ Է ġ +4. a_gent() Լ nt ߰ (misc.ph) +5. ۾, , ñ textarea size (30->34) + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 12 + : jsboard-0.6.6 (Խ 0.6 ) + +* + +1. Auto Link ǥ +2. Install/SQL/mysql.sql . + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 6 + : jsboard-0.6.5 (Խ 0.6 ) + +* + +1. Auto Link ǥ ( ξ + Ǿ) + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 5 + : jsboard-0.6.4 (Խ 0.6 ) + +* + +1. Email, URL link Ҷ ̻ϰ Ǵ κ +2. Table color + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 4 + : jsboard-0.6.3 (Խ 0.6 ) + +* + +1. Ʈ 2000 00 ǥ Ǵ + Y2K ǥ ǰ . - east egg :-) +2. misc.ph get_page Լ SQL query + Count(no) -> Count(*) +3. user_admin page html bug (׽ + ̺ Ƽ ʰ Ŭ ) + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 2 + : jsboard-0.6.2 (Խ 0.6 ) + +* + +1. permission script + Install/Config account.sh root.ph + + INSTALL.txt + + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 2000 1 1 + : jsboard-0.6.1 (Խ 0.6 ) + +* + +1. cookie (act.php3) + +----------------------------------------------------------------------------- +ۼ : (admin@oops.org) +ۼ : 1999 12 27 + : jsboard-0.6.0 (Խ 0.6 ) + +* + +1. Installation 󿡼 Ҽ ְԲ ߰. + (߰ DB user, , table ٷ . test table ) +2. Խ 󿡼 ų ֵ + ο. +3. Խ Ҽ ִ admin page ߰ + (CrazyWWWBoard admin center ) +4. db table + date field Ű ε ߰. +5. Խ ڿ ü н Ҽ ְԲ + jsborad-version/act.php3 del, edit κ . +6. jsborad-version/include/db.ph admin . + Խ ڿ ߺǹǷ . +7. jsborad-version/include/$table/menu.ph 뿩θ Խ adminɿ + ϰų Ҽ ְԲ . +8. jsborad-version/include/$table/head.html . desc.ph ߺ. + html header κ desc.ph ó . (Խ adminɿ html header + κ) +9. jsboard-version/list.php3 ϴܿ tail.ph include. + tail.ph include/$table/tail.ph . Խ ɿ tail.ph 󿡼 + +10. н crypt() ȣȭ Ͽ Ͽ. +11. replyÿ ۾ tab Դ° . (reply.php3) +12. misc.ph send_mail() function + Դٴ ޼ ƴ϶ + . + + act.php3 send_mail(....) + + config.ph $webboard_version Լ ( ) +13. reply.php3 write.php3, edit.php3 delete.php3 + file_upload no ϶ file_upload ̴ κ +14. $use_url, $use_email (config.ph) + reply.php3 write.php3, edit.php3 . +15. delete.php3 ׿ ͽ÷η ̺  + Ǵ (blank.gif ̿Ͽ ) +16. INSTALL.txt db ϴ + ġ ߰ +17. ۾⿡ html 뿩 Ʈ +18. list.php3 searchκ form . + ׷ ̰ + ʾƼ tailκп form ǻ + ߻. patch +19. read.ph space   ȯ +20. reply.php3 file_upload no + file_upload κ ߴ +21. delete.php3 font colorÿ "="  + ȭ ȵǴ κ +22. admin page DB DB ʰ Ҷ + include 丮 ϵ Ǵ +23. 0 byte file uploadҶ ߻ϴ 0 byte file upload Ҽ . +24. Admin center ڷθ ̸ Խ + DB table ʴ . ''θ + Խ̸ Ҽ . +25. ε带 ϰ + ʴ +26. admin center α н ޼ Ÿ +27. menu allow ÿ list.php3 ̿ܿ ȵǴ +28. file_upload Ǿ ִ file type icon size . +29. upload file mime type ˻Ͽ gif, jgp, txt + 쿡 ÷Ͽ . (̶ file_upload + yes ̵ no ̵ ʰ ÷file ˻Ͽ ) +30. Searchÿ admin link ȵǴ +31. ".." searchÿ Ʈ ѱ + "\.", "\.." ˻Ǵ +32. windog netscape input size ̴ . + ׿ netcape Ҷ ѱ + ϴ Ŵ. +33. misc.ph mail() Լ $from κ . +34. INSTALL.txt . + + - ó ġϴ ġ + - ġ ϴ ġ + - ڵ ġ + + Ͽ . + + +----------------------------------------------------------------------------- +ۼ : 迵 (blhole@hotmail.com) +ۼ : 1999 12 10 + : jsboard-0.5 (Խ 0.5) + +ٸ е , ׷ + κ ڽϴ. + + Ե ﶧ ׸ ħ + Ե ۿ X ǥð Ǵ κ + ּҸ ֵ + , ڿ + , + , ̸ textarea ԽŴ + ԵǾ ־ ̸ ߰ +o file ε ȭ̸ ־ ε .. + + +----------------------------------------------------------------------------- +ۼ : () jinoos@hanmail.net +ۼ : 19991130 + : jsboard-0.4 (Խ 0.4) + +* ϵ ߰ +* ε ̵Ͻ "Ȧ" "X" ü +* list.ph Լ߿ ִ ũȵǾ include ذ(global ) +* read.php3 ǥ ( ƴ, ǥ ̺귯 ) +* ȸ IP / . ؼ db.php3 ġ +* ε ƾ filesystem function äϿϴ. +* ۼ file κ ÷ + + +----------------------------------------------------------------------------- + +ۼ: â (ܿ) winchild@kldp.org +ۼ: 19991126 +: jsboard-0.3 (Խ 0.3) + +1. test.sql include ̺ ٸϴ. + include 丮 ؿ study Ͽϴ. +2. desc.ph header.phtml menu.phtml о̴µ include + phtml Ȯڰ ϴ. header.ph menu.ph + ־ϴ. +3. desc.ph header.ph о̴µ ̹ list.php3 о鿴 + redeclation ߻մϴ. desc.ph header.ph (header.phtml) + Ͽϴ. +4. desc.ph $DOCUMENT_ROOT ̿Ͽ include ϴµ htdocs Ͽ + ٷ ġ ش ã ٴ ޼ ɴϴ. ̰ + $DOCUMENT_ROOT  α׷ ۽ÿ list.php3?table=
+ Խǿ ̿ <޴>.php3 ̿Ͽ + ϵ Ͽ մϴ. + + + + + + test.sql ǵ manual.php3  ̰ + ҷָ directory н Ǿ $DOCUMENT_ROOT + ذ Ҽ ֽϴ. +5. ϵ ϵ κп act.php3 ϴ ϸ ϻ + ʱȭ ʾƼ DB Ͻÿ ߻ ֽϴ. (࿡ + 0 NULL õǸ ߻ .) ̺κ ʱȭ ׽ϴ. + + +----------------------------------------------------------------------------- + +ۼ : +ۼ : 1999.11.17 +: jsboard-0.2 (Խ 0.2) + + +- ε ߰ +-board/include/table̸/config.ph ε ȭ ų ʵ +** .ph php ؼϵ ϴ° 鿡 . + ׷? +** Ƽ ãƺҴµ regex ǥĿ +̺κ . + +----------------------------------------------------------------------------- + +ۼ : +ۼ: + +: jsboard-0.1 (Խ 0.1) + +----------------------------------------------------------------------------- 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 deleted file mode 100644 index 4ae20259..00000000 --- a/act.php +++ /dev/null @@ -1,667 +0,0 @@ -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); - } - - # Խù ۼ Լ - function article_post($table, $atc) { - global $jsboard, $board, $upload, $cupload, $rmail, $_, $agent; - global $print, $max_file_size, $c, $db, $o; - - if($board['mode'] == 4 && $board['super'] != 1 && !$board['adm']) print_error($_('login_err')); - - $atc['date'] = time(); # ð - $atc['host'] = get_hostname(0); # ۾ ּ - - # Injection html Ѵ. - # phpbb bb tag ó - $atc['html'] = 2; - - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); - - $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']) { - $bfilename = date("YmdHis",$atc['date']); - $upfile = file_upload("userfile",$bfilename); - - if(!trim($upfile['name'])) { - $bfilename = ""; - $upfile['size'] = 0; - $upfile['name'] = ""; - } - } else { - # winchild 99/11/26 fileupload = "no" 쿡 ʱȭ ־ Ѵ. - $bfilename = ""; - $upfile['size'] = 0; - $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; # ְ ε ȣ - - sql_free_result($result); - - sql_query("INSERT INTO $table (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']}', - '{$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); - - # mail κ - if ($rmail['uses']) { - if ($rmail['admin'] || $rmail['user']) { - $rmail['name'] = $atc['rtname']; - $rmail['text'] = $atc['text']; - $rmail['title'] = $atc['rtitle']; - $rmail['url'] = $atc['url']; - $rmail['email'] = $atc['email']; - $rmail['version'] = $board['ver']; - $rmail['path'] = $board['path']; - $rmail['table'] = $table; - $rmail['noquery'] = sql_query("SELECT MAX(no) AS no FROM $table", $c); - $rmail['no'] = sql_result($rmail['noquery'], 0, "no"); # ְ ȣ - $rmail['reply_orig_email'] = $rmail['origmail']; - $rmail['theme'] = $print['theme']; - $rmail['html'] = $atc['html']; - - if(sendmail($rmail)) $page['m_err'] = 0; - else $page['m_err'] = 1; - } - } - - set_cookie($atc); - return $page; - } - - # Խù Լ - function article_reply($table, $atc) { - global $board,$upload,$cupload,$rmail,$_,$agent,$jsboard,$page; - global $print, $max_file_size, $c, $db, $referer; - - $atc['date'] = time(); # ð - $atc['host'] = get_hostname(0); # ۾ ּ - - # Injection html Ѵ. - # phpbb bb tag ó - $atc['html'] = 2; - - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); - - # ۿ : и Ѵ. - $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']); - - # 亯 file upload κ, ü ڰ ÿ - if ($upload['yesno'] && $cupload['yesno'] && !$agent['tx']) { - $bfilename = date("YmdHis",$atc['date']); - $upfile = file_upload("userfile",$bfilename); - if(!trim($upfile['name'])) { - $bfilename = ""; - $upfile['size'] = 0; - $upfile['name'] = ""; - } - } else { - # winchild 99/11/26 fileupload = "no" 쿡 ʱȭ ־ Ѵ. - $bfilename = ""; - $upfile['size'] = 0; - $upfile['name'] = ""; - } - - # referer ȣ θ ȣ ٸ ó - if ( $atc['reno'] != $referer['no'] ) - print_error($_('act_s'),250,150,1); - - # ۿ - table_lock ($c, $table, 1); - $reply = get_article($table, $atc['reno']); - $atc['rede'] = $reply['rede'] + 1; # - $atc['idx'] = $reply['idx']; # θ ε ȣ - - 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, - title,text,refer,reyn,reno,rede,reto,html,comm,bofile, - bcfile,bfsize) - 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); - - # mail κ - if ($rmail['uses']) { - if ($rmail['admin'] || $rmail['user']) { - $result = sql_query("SELECT MAX(no) AS no FROM $table", $c); - $rmail['no'] = sql_result($result, 0, "no"); # ְ ȣ - $rmail['name'] = $atc['rtname']; - $rmail['text'] = $atc['text']; - $rmail['title'] = $atc['rtitle']; - $rmail['url'] = $atc['url']; - $rmail['email'] = $atc['email']; - $rmail['version'] = $board['ver']; - $rmail['path'] = $board['path']; - $rmail['table'] = $table; - $rmail['reply_orig_email'] = $rmail['origmail']; - $rmail['theme'] = $print['theme']; - $rmail['html'] = $atc['html']; - - if(sendmail($rmail)) $gopage['m_err'] = 0; - else $gopage['m_err'] = 1; - } - } - - set_cookie($atc); - $gopage['no'] = !$page ? get_current_page($table, $atc['idx']) : $page; - return $gopage; - } - - # Խù Լ - function article_edit($table, $atc, $passwd) { - global $max_file_size, $jsboard, $board, $_, $agent, $rmail; - global $upload, $cupload, $c, $db; - - # 尡 ƴ н - if($board['super'] != 1 && !$board['adm']) { - if(!check_passwd($table,$atc['no'],trim($passwd))) print_error($_('act_pw'), 250, 150, 1); - } - - $atc['date'] = time(); # ð - $atc['host'] = get_hostname(0); # ۾ ּ - $atc = article_check($table, $atc); - - # ȣȯ ÿ html header tag ϴ Ѵ. - delete_tag($atc); - - # ۿ : и Ѵ. - $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); - $fdelinfo = sql_fetch_array($fdelqy); - sql_free_result($fdelqy); - - sql_query("UPDATE $table SET bcfile='', bofile='', bfsize='' WHERE no = '{$atc['no']}'", $c); - if(file_exists("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}")) { - unlink("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}"); - rmdir("data/$table/files/{$fdelinfo['bcfile']}"); - } - } - - # file ƾ - if($upload['yesno'] && $cupload['yesno'] && !$agent['tx']) { - # 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); - $fdelinfo = sql_fetch_array($fdelqy); - sql_free_result($fdelqy); - if(file_exists("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}") && trim($fdelinfo['bofile'])) { - unlink("data/$table/files/{$fdelinfo['bcfile']}/{$fdelinfo['bofile']}"); - rmdir("data/$table/files/{$fdelinfo['bcfile']}"); - } - - $upquery = ",\n bofile = '{$upfile['name']}', bcfile = '{$bfilename}', bfsize = '{$upfile['size']}'\n"; - } - } - - sql_query(" - 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); - - set_cookie($atc); - - return $atc['no']; - } - - # Խù Լ - function article_delete($table, $no, $passwd) { - global $jsboard, $o, $_, $board, $page, $c, $db; - 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($atc['reyn'] && ($board['super'] != 1 && !$board['adm'] && $admchk != 2)) - print_error($_('act_c'),250,150,1); - - sql_escape ($c, $table); - sql_escape ($c, $atc); - - # θ ڽ ۿ θ 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); - 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); - - if(!$atc['reyn']) { - # upload file - if ($delete_filename && file_exists("$delete_filename")) { - unlink("$delete_filename"); - rmdir("$delete_dir"); - } - } - - # ñ ñ ( ) - if($atc['reyn'] && ($board['super'] == 1 || $board['adm'] || $admchk == 2)) { - $result = sql_query("SELECT no,bofile,bcfile FROM $table WHERE reno = '{$atc['no']}'", $c); - while($list = sql_fetch_array($result)) { - table_lock ($c, $table, 0); - article_delete($table, $list['no'], $passwd); - # upload file - if ($list['bofile'] && file_exists("./data/$table/{$upload['dir']}/{$list['bcfile']}/{$list['bofile']}")) { - unlink("./data/$table/{$upload['dir']}/{$list['bcfile']}/{$list['bofile']}"); - rmdir("./data/$table/{$upload['dir']}/{$list['bcfile']}"); - } - } - } - - $page = !$page ? get_current_page($table, $atc['idx']) : $page; - table_lock ($c, $table, 0); - - return $page; - } - - function comment_post($table,$atc) { - global $jsboard, $board, $_, $ccompare, $compare; - global $c, $db; - - $host = get_hostname(0); - $dates = time(); - - # blank check - $blankChk = "(\xA1A1|\s| )+"; - $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); - } - } - - if (!empty($compare['name']) && eregi($compare['name'],$atc['name'])) $cmp['name'] = 1; - if (!empty($ccompare['name']) && eregi($ccompare['name'],$atc['name'])) $ccmp['name'] = 1; - - # Ī üũ - if((!$board['mode'] || $board['mode'] == 4) && $board['super'] != 1 && !$board['adm']) { - - # ü н - $result = sql_query("SELECT passwd FROM userdb WHERE position = 1", $c); - $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($ccmp['name'] && $notsuper) { - $arrayadm = explode(";",$board['ad']); - - for($k=0;$k]*)>!i","!<(/(iframe|script|img))>!i"); - $editsrc = array("<\\1>","<\\1>"); - $atc['text'] = preg_replace($denysrc,$editsrc,$atc['text']); - } - - $compare['email'] = trim($compare['email']) ? $compare['email'] : "mail check"; - $ccompare['email'] = trim($ccompare['email']) ? $ccompare['email'] : "mail check"; - $compare['name'] = trim($compare['name']) ? $compare['name'] : "name check"; - $ccompare['name'] = trim($ccompare['name']) ? $ccompare['name'] : "name check"; - - if (eregi($compare['name'],$atc['name'])) $cmp['name'] = 1; - if (eregi($compare['email'],$atc['email'])) $cmp['email'] = 1; - if (eregi($ccompare['name'],$atc['name'])) $ccmp['name'] = 1; - if (eregi($ccompare['email'],$atc['email'])) $ccmp['email'] = 1; - - # Ī üũ - if((!$board['mode'] || $board['mode'] == 4) && $board['super'] != 1 && !$board['adm']) { - if($o['at'] == "edit") $atc['passwd'] = $passwd; - - # ü н - $result = sql_query("SELECT passwd FROM userdb WHERE position = 1", $c); - $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 (($ccmp['name'] || $ccmp['email']) && $notsuper) { - $arrayadm = explode(";",$board['ad']); - for($k=0;$k IE ÿ ѱ - $atc['name'] = ugly_han(htmlspecialchars($atc['name'])); - $atc['title'] = ugly_han(htmlspecialchars($atc['title'])); - - # ö (ߺ ˻) - $_limit = compatible_limit (0, 1); - $result = sql_query("SELECT * FROM $table ORDER BY no DESC {$_limit}", $c); - $list = sql_fetch_array($result); - sql_free_result($result); - - if ($list && $atc['name'] == $list['name'] && - $atc['text'] == $list['text'] && - $atc['title'] == $list['title'] && - $atc['email'] == $list['email'] && - $atc['url'] == $list['url'] && - $atc['html'] == $list['html']) { - - # , , ÷ ȭ . - if ($o['at'] == 'edit') { - if ($atc['fdel']) { - $chkpass = 1; - } elseif (is_uploaded_file($_FILES['userfile']['tmp_name']) && $_FILES['userfile']['size'] > 0) { - $chkpass = 1; - } else $chkpass = 0; - } else $chkpass = 0; - - if (!$chkpass) { - switch ($o['at']) { - case 'write': - print_error($_('act_same'),250,150,1); - break; - case 'edit': - print_error($_('act_dc'),250,150,1); - break; - } - } - } - - return $atc; - } - - # Ű Լ - function set_cookie($atc,$comment=0) { - global $board,$agent; - $month = 60 * 60 * 24 * $board['cookie']; - $cookietime = time() + $month; - - setcookie("board_cookie[name]", $atc['name'], $cookietime); - if(!$comment) { - setcookie("board_cookie[email]", $atc['email'], $cookietime); - setcookie("board_cookie[url]", $atc['url'], $cookietime); - } - } - - switch($o['at']) { - case 'write': - $page = article_post($table, $atc); - if(!$page['m_err']) Header("Location: list.php?table=$table"); - else move_page("list.php?table=$table"); - break; - case 'reply': - $gopage = article_reply($table, $atc); - if(!$gopage['m_err']) Header("Location: list.php?table=$table&page={$gopage['no']}"); - else move_page("list.php?table=$table&page={$gopage['no']}"); - break; - case 'edit': - $no = article_edit($table, $atc, $passwd); - Header("Location: read.php?table=$table&no=$no"); - break; - case 'del': - $gopage = article_delete($table, $no, $passwd, $o['am']); - Header("Location: list.php?table=$table&page=$gopage"); - break; - case 'c_write': - comment_post($table,$atc); - Header("Location: read.php?table=$table&no={$atc['no']}&page=$page"); - break; - case 'c_del': - comment_del($table,$atc['no'],$atc['cid'],$lp); - Header("Location: read.php?table=$table&no={$atc['no']}&page=$page"); - } -} elseif ($o['at'] == "dn") { - include "include/header.php"; - - # ش meta character ϴ üũ - meta_char_check($dn['tb'],0,1); - meta_char_check($dn['cd']); - meta_char_check($upload['dir']); - upload_name_chk($dn['name']); - - $dn['path'] = "data/{$dn['tb']}/{$upload['dir']}/{$dn['cd']}/{$dn['name']}"; - - if($dn['dl'] = readfile_r ($dn['path'])) { - if(extension_loaded('fileinfo')) { - $finfo = finfo_open(FILEINFO_MIME); - if(is_resource($finfo)) { - $mimes = finfo_file($finfo, $dn['path']); - $mimes = preg_replace('!^([^/]+/[a-z0-9+.-]+).*!i', '\\1', $mimes); - finfo_close($finfo); - } - } - - $dn['encode'] = content_disposition($dn['name']); - - if($agent['br'] == "MSIE" && $agent['vr'] == 5.5) { - $mimes = $mimes ? $mimes : 'doesn/matter'; - header('Content-Transfer-Encoding: binary'); - } else { - $mimes = $mimes ? $mimes : 'file/unknown'; - Header('Content-Description: PHP Generated Data'); - } - Header('Content-type: '.$mimes); - header('Content-Length: '.filesize("{$dn['path']}")); - Header('Content-Disposition: attachment; '.$dn['encode']); - Header('Pragma: no-cache'); - Header('Expires: 0'); - - echo $dn['dl']; - } -} else { - echo ""; - exit; -} -?> diff --git a/act.php3 b/act.php3 new file mode 100644 index 00000000..d92d8406 --- /dev/null +++ b/act.php3 @@ -0,0 +1,200 @@ +", "?>", $text); + $text = eregi_replace("<(style|script)([^>]*)>", "", $text); + $text = eregi_replace("<(body|div|meta)([^>]*)>", "", $text); + $text = eregi_replace("+([^<]*)+", "", $text); + $text = eregi_replace("[<\/]+(html|head|div|body|layer)>","",$text) ; + $text = eregi_replace(""; + + if (mysql_num_rows($result) > 0) { + $prev_title = mysql_result($result, 0, "title"); + $prev_name = mysql_result($result, 0, "name"); + $prev_text = mysql_result($result, 0, "text"); + if($title == $prev_title && $name == $prev_name && $text == $prev_text) { + error("$duble_post_error"); + } + } + if ($passwd) { + $passwd = crypt($passwd); + } + + // ø . 99.11.17. taejun + + if($file_upload =='yes') + { + + /* file size 0byte upload - 1999.12.21 JoungKyun */ + + if ( $userfile_name ) { + if( $userfile_size == '0' ) { + echo("") ; + exit ; + } + } + + /* file size 0byte upload */ + + if($userfile_size !=0 || $userfile !="none" || $userfile_name !="") + { + if($userfile_size > $maxfilesize) { + echo("") ; + exit ; + } + $bfilename=strstr("$userfile","php"); + mkdir("$filesavedir/$bfilename",0755); + exec("mv \"$userfile\" \"$filesavedir/$bfilename/$userfile_name\""); + chmod("$filesavedir/$bfilename/$userfile_name",0644); + } + } + // winchild 99/11/26 fileupload = "no" 쿡 ʱȭ ־ Ѵ. + else + { + $userfile_size = 0; + $userfile_name = ""; + } + + + if (!$reno) { + // + dquery("INSERT INTO $table VALUES ('', $last, $date, '$host', + '$name', '$passwd', '$email', '$url', '$title', '$text', 0, + 0, 0, 0, 0,'$userfile_name','$bfilename',$userfile_size)"); + $page = 1; + } else { + // + $result = dquery("SELECT rede, reto FROM $table WHERE no = $reno"); + $rede = mysql_result($result, 0, "rede"); + $reto = mysql_result($result, 0, "reto"); + if (!$reto) { + $reto = $reno; + } + + dquery("INSERT INTO $table VALUES ('', 0, $date, '$host', '$name', + '$passwd', '$email', '$url', '$title', '$text', 0, 0, + $reno, $rede + 1, $reto, '$userfile_name','$bfilename', + $userfile_size)"); + dquery("UPDATE $table SET reyn = 1 WHERE no = $reno"); + } + +// ڳ 忡 ۾̿ + $result = dquery("SELECT no, num, reno FROM $table ORDER BY no DESC"); + $no = mysql_result($result, 0, "no"); + $num = mysql_result($result, 0, "num"); + $reno = mysql_result($result, 0, "reno"); + $reply_writer_email = $origmail ; + $email_tmp = ""; + if ($num == 0) { + $result = dquery("SELECT email FROM $table where no = $reno"); + $email_tmp = mysql_result($result, 0, "email"); + } + send_mail($no, $bbshome, $mailtoadmin, $mailtowriter, $table, $reno, $name, + $email, $reply_writer_email, $url, $webboard_version, $text, $title); + + } +} else if ($act == "del") { + if (check_passwd($passwd, $no) || $user_admin == $board_manager || $super_admin == $super_user) { + if ($reyn) { + error("$delete_error"); + } + + if (!$reno) { + dquery("DELETE FROM $table WHERE no = $no"); + } else { + $result = dquery("SELECT no FROM $table WHERE reno = $reno"); + if (mysql_num_rows($result) == 1) { + dquery("UPDATE $table SET reyn = 0 WHERE no = $reno"); + } + dquery("DELETE FROM $table WHERE no = $no"); + + } + // jinoos -- exec() Լ filesystem function + if ($delete_filename) { + unlink("$delete_filename"); + rmdir("$delete_dir"); + } + } else { + error("$pass_error"); + } +} + +if ($act != "del" && $act != "edit") { + setcookie("lsn_board_c_name", $name, time()+604800); + setcookie("lsn_board_c_email", $email, time()+604800); + setcookie("lsn_board_c_url", $url, time()+604800); +} + +if ($act == "edit") { + Header("Location: read.php3?table=$table&no=$no"); +} else { + Header("Location: list.php3?page=$page&table=$table"); +} +?> diff --git a/admin/act.php b/admin/act.php deleted file mode 100644 index f6ccc7d4..00000000 --- a/admin/act.php +++ /dev/null @@ -1,171 +0,0 @@ - A-Za-z0-9_ - if ( preg_match ('/[^a-z0-9_]/i', $new_table) ) - print_error ($_('tb_rule'), 250, 150, 1); - - # θ ̸ üũ - table_name_check ($new_table); - - # ̸ Խ ִ Ȯ - 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); - - # ο Խǿ ʿ Ϲ 丮 - 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); -} - -else if( $mode == 'global_chg' ) { - sql_close ($c); - # quot ȯ ڸ un quot Ѵ - - $vars = ""; - $spam = stripslashes ($glob['spam']); - - writefile_r ('../config/global.php', $vars); - writefile_r ('../config/spam_list.txt', $spam); - - $_lang['act_complete'] = str_replace ("\n", "\\n", $_('act_complete')); - $_lang['act_complete'] = str_replace ("'", "\'", $_lang['act_complete']); - - echo "\n". - ""; - exit; - -} - -Header("Location:admin.php$tslink"); - -?> diff --git a/admin/act.php3 b/admin/act.php3 new file mode 100644 index 00000000..58de69f1 --- /dev/null +++ b/admin/act.php3 @@ -0,0 +1,209 @@ +\n" . + "alert('$nodb')\n" . + "history.back() \n" . + "" ); + exit ; + } + + /* table delete */ + $table_del = "drop table $table_name"; + $result = mysql_query($table_del, $connect ); + + + /* config delete */ + $config_del = "delete from BoardInformation where t_name = '$table_name'" ; + $result = mysql_query($config_del, $connect ); + + + + exec("rm -rf ../include/$table_name"); + + mysql_close(); + + Header("Location:admin.php3") ; + + } + + if ( $mode == 'db_create') { + + if ( !$new_table ) { + echo ("" ); + exit ; + } + + /* θ ̸ üũ */ + new_table_check() ; + + $tbl_list = mysql_list_tables($db_name); + + /* table list üũ */ + table_list_check() ; + + + // DB ִ Ȯմϴ. + + same_db_check() ; + + + $create_table = "CREATE TABLE $new_table ( + no int(8) DEFAULT '0' NOT NULL auto_increment, + num int(8) DEFAULT '0' NOT NULL, + date int(11) DEFAULT '0' NOT NULL, + host tinytext, + name tinytext, + passwd varchar(13), + email tinytext, + url tinytext, + title tinytext, + text mediumtext, + refer int(8) DEFAULT '0' NOT NULL, + reyn int(1) DEFAULT '0' NOT NULL, + reno int(8) DEFAULT '0' NOT NULL, + rede int(8) DEFAULT '0' NOT NULL, + reto int(8) DEFAULT '0' NOT NULL, + bofile varchar(100), + bcfile varchar(100), + bfsize int(4), + PRIMARY KEY (no), + KEY num (num), + KEY date (date), + KEY reno (reno))"; + + + include("./include/first_reg.ph"); + + $insert_data = "insert into $new_table values ('',1,$date,'$host_ext','$name_ext','$passwd_ext', + '$email_ext','$url_ext','$subj_msg','$text_msg',0,0,0,0,0,'','','')"; + + + $result = mysql_query($create_table, $connect ); + $result_insert = mysql_query( $insert_data, $connect ); + + + + $create_boardinfo = "CREATE TABLE BoardInformation ( + id int(8) DEFAULT '0' NOT NULL auto_increment, + t_name tinytext, + super_user tinytext, + board_user tinytext, + pern varchar(3), + namel varchar(3), + titll varchar(5), + width varchar(5), + l0_bg varchar(16), + l0_fg varchar(16), + l1_bg varchar(16), + l1_fg varchar(16), + l2_bg varchar(16), + l2_fg varchar(16), + l3_bg varchar(16), + l3_fg varchar(16), + r0_bg varchar(16), + r0_fg varchar(16), + r1_bg varchar(16), + r1_fg varchar(16), + r2_bg varchar(16), + r2_fg varchar(16), + r3_bg varchar(16), + r3_fg varchar(16), + t0_bg varchar(16), + menuallow varchar(5), + file_upload varchar(5), + filesavedir tinytext, + maxfilesize tinytext, + mailtoadmin tinytext, + mailtowriter varchar(5), + bbshome tinytext, + use_url varchar(5), + use_email varchar(5), + user_ip_addr tinytext, + lang varchar(5), + PRIMARY KEY (id))" ; + + + /* ϴ Խǿ Է */ + $boardinfo_data_userdb = "INSERT INTO BoardInformation VALUES + ('','$new_table','','ooK/oSLfDJOUI','10','8', + '40','550','#a5b5c5','#ffffff','#a5c5c5','#ffffff', + '#ffffff','#555555','#dcdcdc','#555555','#a5b5c5', + '#ffffff','#a5c5c5','#ffffff','#dcdcdc','#555555', + '#ffffff','#555555','#778899','no','no', + './include/table_account_name/files','2000000','','no','','yes', + 'yes','127.0.0.1','$lang')" ; + + $result = mysql_query($create_boardinfo, $connect ); + $result_insert = mysql_query( $boardinfo_data_userdb, $connect ); + + + exec("cp -aRp ./include/sample ../include/$new_table") ; + + mysql_close(); + + Header("Location:admin.php3") ; + + } + +} + +else { + + if ($admincenter_pass && $readmincenter_pass) { + if ($admincenter_pass == $readmincenter_pass) { + admin_pass_change() ; + } + else { + admin_pass_error(); + } + } else { + echo ("" ); + exit ; + } +} + +?> diff --git a/admin/admin.php b/admin/admin.php deleted file mode 100644 index 1e11316c..00000000 --- a/admin/admin.php +++ /dev/null @@ -1,376 +0,0 @@ -\n". - "Administration Center\n"; -} else { - echo "
\n". - "\n
\n\n". - "\n\n
\n". - "\n\n". - "\n". - "\n". - "\n\n\n". - "\n". - "\n
\n". - "J SBoard
Administration Center
\n". - "
\n\n"; -} - -# db_name Ʒ մϴ. -exsit_dbname_check ($db['name']); - -if( $db['name'] && ! $table ) { - echo "\n". - "\n"; - - if ( $agent['tx'] ) { - echo '\n". - '\n". - '\n". - '\n"; - } else { - echo "\n". - "\n". - "\n". - "\n\n". - "\n". - "\n". - "\n"; - } - echo ""; - - - $table_name = db_table_list ($c, $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']; - - $nowpage = $page; - $until = $start + $sadmin['pern']; - $priv = $page - 1; - $next = $page + 1; - - # ¥ data ¥ ϵ մϴ. - $current_time = 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); - - # table ϵ check մϴ. - $total = "SELECT COUNT(*) AS cnt FROM {$table_name[$i]}"; - $result = sql_query ($total, $c); - - $total_count = sql_result ($result, 0, 'cnt'); - - # table ϵ ۵ մϴ. - if ($chk_result) - $to = $to + $total_count; - $total = "SELECT COUNT(*) AS cnt 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; - - # ϵ ۵ մϴ. - 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"; - } else { - 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"; - } - } - } - } else { - 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; - } - - # 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'); - - # 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'); - - # ϵ ۵ մϴ. - $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; - $to_today_t = !$to_today_t ? "0" : $to_today_t; - - # ܺ DB JSBoard ڿ user - $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"; - - 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
' . $_('a_t1') . "' . $_('a_t3') . "' . $_('a_t4') . "' . $_('a_t5') . "" . $_('a_t1') . "" . $_('a_t2') . "" . $_('a_t5') . "
" . $_('a_t3') . "" . $_('a_t4') . "
   {$table_name[$i]}{$total_today}   {$total_count}   \n". - "" . $_('a_t7') . "\n". - "" . $_('a_t8') . "\n". - "" . $_('a_t17') . "\n". - "" . $_('a_t9') . "\n". - "
\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "
\n". - "{$table_explain}\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "

" . - $_('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 "$userclick\n". - "[ " . $_('a_t11') . " ]\n"; - } else { - echo "\n". - "\n"; - } - echo "
\n" . - "
\n". - "  " . $_('a_t12') . " :\n". - "\n". - "\n". - "\n". - "\n". - "
\n" . - "
\n" . - "  " . $_('a_t14') . " :\n". - "\n". - "\n". - "\n". - "\n". - "
\n"; - } else { - echo "
\n" . - "
\n". - "  " . $_('a_t12') . " :\n". - "\n". - "\n". - "\n". - "\n". - "
\n". - "". - "Powered By
JSBoard OPEN PROJECT
\n". - "
\n". - "
\n". - "  " . $_('a_t14') . " :\n". - "\n". - "\n". - "\n". - "\n". - "
\n"; - } - - $total = $tbl_num; - $lastpage_check = $total%$sadmin['pern']; - - if(!$lastpage_check) { - $lastpage = $total/$sadmin['pern']; - $lastpage = explode(".",$lastpage); - $lastpage = $lastpage[0]; - } else { - $lastpage = $total/$sadmin['pern']+1; - $lastpage = explode(".",$lastpage); - $lastpage = $lastpage[0]; - } - - $lastpage_basic = strlen($lastpage); - $lastpage_basic1 = $lastpage_basic-1; - for ($i=0; $i<$lastpage_basic; $i++) { - if($i == $lastpage_basic1) $lastpage_basic = $lastpage[$i]; - } - - if($lastpage_basic == 1 || $lastpage_basic == 6) { - $last_scale_lastpage = $lastpage; - $last_page_num = $last_scale_lastpage-5; - } elseif($lastpage_basic == 2 || $lastpage_basic == 7) { - $last_scale_lastpage = $lastpage+4; - $last_page_num = $last_scale_lastpage-5; - } elseif($lastpage_basic == 3 || $lastpage_basic == 8) { - $last_scale_lastpage = $lastpage+3; - $last_page_num = $last_scale_lastpage-5; - } elseif($lastpage_basic == 4 || $lastpage_basic == 9) { - $last_scale_lastpage = $lastpage+2; - $last_page_num = $last_scale_lastpage-5; - } elseif($lastpage_basic == 5 || $lastpage_basic == 0) { - $last_scale_lastpage = $lastpage+1; - $last_page_num = $last_scale_lastpage-5; - } - - if(!$page || $page == 1) { $page_num = 1; $scale_lastpage = $page_num+5; } - - $foo = $page / 5; - $foo = explode (".", $foo); - $pfoo = $foo[1]; - $nfoo = $foo[0]; - - if($page > 6 && $foo == 0) $page_num = $page; - - if($total == 0) echo " "; - else { - if($page < 2) echo " "; - else echo "\"""; - - if($page >= $lastpage) echo " "; - else - echo "" . - "\"" "; - - for($i=$page_num; $i<$scale_lastpage; $i++) { - if($i <= $lastpage) { - $page_view = $i; - if ($i == $nowpage) echo "$page_view "; - else - echo "" . - "$page_view "; - } - } - - $p_page_num = $page_num-5; - $n_page_num = $page_num+5; - $p_scale_lastpage = $scale_lastpage-5; - $n_scale_lastpage = $scale_lastpage+5; - - if($page < 2) echo " "; - else { - if($page > 5 && $pfoo == 2) - echo ""; - else - echo ""; - } - - if($lastpage-$page <= 0) echo " "; - else { - if($page >= 5 && $pfoo == 0) - echo ""; - else - echo ""; - } - } - - if ( $ts ) - $_lang['ts'] = "" . $_('a_t18') . ""; - else - $_lang['ts'] = $_('a_t19'); - - echo "\n"; - - if ( $agent['tx'] ) echo "[ " . $_('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"; -} - -echo "
"; -echo "\n
\n"; - -if ( $agent['tx'] ) - echo "Powered By JSBoard Open Project\n"; - -htmltail(); -?> diff --git a/admin/admin.php3 b/admin/admin.php3 new file mode 100644 index 00000000..02bd0e2b --- /dev/null +++ b/admin/admin.php3 @@ -0,0 +1,343 @@ +\n" . + "alert('$nopasswd')\n" . + "history.back() \n" . + "" ); + exit ; +} + +if ( $login_pass != $super_user ) { + echo ("" ); + exit ; +} + +if ($lang == "ko") { netscape_browser() ; } + +/* MySQL Ѵ */ + +$connect=mysql_connect( $db_server, "$db_user" , "$db_pass" ) or + die( "Unable to connect to SQL server" ); + +// db_name Ʒ մϴ. +if(!$db_name) { + + echo("\n" . + "\n" . + "\n" . + "


$nodb


"); + +} + + +if($db_name && !$table) { + + $tbl_list = mysql_list_tables($db_name); + + + if(!mysql_list_tables($db_name)) { + + echo("\n" . + "\n" . + "\n" . + "


$nodb


"); + + } + + $tbl_num=mysql_num_rows($tbl_list); + + echo ("\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "" ); + + + if (!$start && !$page) { $start = 0 ; $page = 1; } + else if ($page > 1) { $start = $page*$scale-$scale ; } + + $nowpage = $page ; + $until = $start+$scale ; + $priv = $page-1 ; + $next = $page+1 ; + + if ($tbl_num > "1") { + + for($i=$start ; $i<$until ; $i++) { + + if ($i < $tbl_num) { + + // table list ҷ ɴϴ. + $table_name[$i] = mysql_tablename($tbl_list,$i) ; + + if ( $table_name[$i] != "BoardInformation" ) { + + // table ϵ check մϴ. + $total = "select count(*) from $table_name[$i]"; + $result = mysql_query($total,$connect ); + + $total_count = mysql_result($result, 0, "COUNT(*)") ; + + // table ϵ ۵ մϴ. + $to = $to + $total_count ; + + // ڿ data ڿ ϵ մϴ. + $current = "SELECT UNIX_TIMESTAMP(CURDATE()) as curdate"; + $result = mysql_query($current,$connect ); + $current_time = mysql_result($result, 0, "curdate") ; + + $total = "select count(*) from $table_name[$i] where date > '$current_time'"; + + $result = mysql_query($total,$connect ); + + $total_today = mysql_result($result, 0, "COUNT(*)") ; + + // ϵ ۵ մϴ. + $to_today = $to_today + $total_today ; + } + + if ( $table_name[$i] != "BoardInformation" ) { + + echo("\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + " "); + + } + else { + + echo("\n" . + "\n" . + "\n" . + "\n" . + " "); + + } + + } + + } + + } + else { + + echo("\n" . + "\n" . + "") ; + + } + + + echo ("" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + + "\n" . + "\n" . + + "\n" . + "\n" . + "\n" . + + + "\n" . + "\n" . + "
Board NameArticlesOptionsRemove
TodayTotal
   $table_name[$i]$total_today   $total_count   
\n" . + "\n" . + "\n" . + "
\n" . + "\n" . + "\n" . + "\n" . + "
   $table_name[$i]JSBoard Management Information Table

$nodb
 
TOTAL$to_today   $to   \n" . + "
\n" . + "\n" . + "
  $create_ment :\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "OOPS Development
\n" . + "Organization
\n" . + "
  $delete_ment :\n" . + "\n" . + "\n" . + "\n" . + "
+ "); + + + $total = $tbl_num ; + $lastpage_check = $total%$scale ; + + + if ($lastpage_check == "0") { + $lastpage = $total/$scale ; + $lastpage = explode(".",$lastpage) ; + $lastpage = $lastpage[0] ; + } + else { + $lastpage = $total/$scale+1 ; + $lastpage = explode(".",$lastpage) ; + $lastpage = $lastpage[0] ; + } + + $lastpage_basic = strlen($lastpage) ; + $lastpage_basic1 = $lastpage_basic-1 ; + for ($i=0; $i<$lastpage_basic ; $i++) { + if ($i == $lastpage_basic1) { + $lastpage_basic = $lastpage[$i]; + } + } + + if ($lastpage_basic == 1 || $lastpage_basic == 6) { + + $last_scale_lastpage = $lastpage ; + $last_page_num = $last_scale_lastpage-5 ; + + } + else if ($lastpage_basic == 2 || $lastpage_basic == 7) { + + $last_scale_lastpage = $lastpage+4 ; + $last_page_num = $last_scale_lastpage-5 ; + + } + else if ($lastpage_basic == 3 || $lastpage_basic == 8) { + + $last_scale_lastpage = $lastpage+3 ; + $last_page_num = $last_scale_lastpage-5 ; + + } + else if ($lastpage_basic == 4 || $lastpage_basic == 9) { + + $last_scale_lastpage = $lastpage+2 ; + $last_page_num = $last_scale_lastpage-5 ; + + } + else if ($lastpage_basic == 5 || $lastpage_basic == 0) { + + $last_scale_lastpage = $lastpage+1 ; + $last_page_num = $last_scale_lastpage-5 ; + + } + + + if(!$page || $page == 1) { $page_num = 1 ; $scale_lastpage = $page_num+5 ; } + + $foo = $page/5 ; + $foo = explode(".",$foo) ; + $pfoo = $foo[1] ; + $nfoo = $foo[0] ; + + if ($page > 6 && $foo == 0) { + $page_num = $page ; + } + + if ($total == 0) { echo " " ; } + else { + + if ($page < 2) { echo " " ; } + else { + echo "\"$mv_first_ment\"" ; + } + + if ($page >= $lastpage) { echo " " ; } + else { + echo "\"$mv_last_ment\" " ; + } + + for($i=$page_num ; $i<$scale_lastpage ; $i++) { + + if ($i <= $lastpage) { + + $page_view = $i ; + if ($i == $nowpage) { echo "$page_view " ; } + else { echo "$page_view " ; } + + } + + } + + $p_page_num = $page_num-5 ; + $n_page_num = $page_num+5 ; + $p_scale_lastpage = $scale_lastpage-5 ; + $n_scale_lastpage = $scale_lastpage+5 ; + + + if ($page < 2) { echo " " ; } + else { + + if ($page > 5 && $pfoo == 2) { + echo "" ; + } + else { + echo "" ; + } + } + + if ($lastpage-$page <= 0) { echo " " ; } + else { + if ($page >= 5 && $pfoo == 0) { + echo "" ; + } + else { + echo "" ; + } + } + } + + echo ("
+ "); + +} + +mysql_close(); + +include("./include/html_tail.ph") ; + +?> diff --git a/admin/admin_info.php b/admin/admin_info.php deleted file mode 100644 index 06b88600..00000000 --- a/admin/admin_info.php +++ /dev/null @@ -1,58 +0,0 @@ -/i","",$global_con); - -# spam list -if ( file_exists ($spamlistfile) ) $spamlist = readfile_r ($spamlistfile); -else $spamlist = "spam_list.txt is not found into jsboard/config"; - -$global_con = trim ($global_con); -$spamlist = trim ($spamlist); -?> - -
-
- - -
- - - - - - - - - -
Global Configuration
- -
SPAMER LIST
  -
-
-
- - - -
- -
-
- - diff --git a/admin/admin_info.php3 b/admin/admin_info.php3 new file mode 100644 index 00000000..63bda841 --- /dev/null +++ b/admin/admin_info.php3 @@ -0,0 +1,179 @@ + + + +\n" . + "alert('$nopasswd')\n" . + "history.back() \n" . + "" ); + exit ; +} + +if ( $login_pass != $super_user ) { + echo ("" ); + exit ; +} + +?> + + + + + + +OOPS Adminitration v1.3 [ Whole ADMIN Password Change ] + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +Admin Center Password Change + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Passwd
Re Passwd
+$lang_ko\n" . + "$lang_en"); + +} else { +echo("$lang_ko\n" . + "$lang_en"); +} +?> +
+ id=input> + id=input> +
+ + + + + +
+ +Scripted by JoungKyun Kim
+and all right reserved +
+ +
+ + +
+ + + diff --git a/admin/auth.php3 b/admin/auth.php3 new file mode 100644 index 00000000..9cbf292f --- /dev/null +++ b/admin/auth.php3 @@ -0,0 +1,36 @@ + +$ment
+ + + + +
+ +$ment1 +
+ +"); + +include("./include/html_tail.ph"); + +?> \ No newline at end of file diff --git a/admin/cookie.php3 b/admin/cookie.php3 new file mode 100644 index 00000000..31556ed6 --- /dev/null +++ b/admin/cookie.php3 @@ -0,0 +1,32 @@ + \ No newline at end of file diff --git a/admin/include/admin_head.php b/admin/include/admin_head.php deleted file mode 100644 index 8710bfc5..00000000 --- a/admin/include/admin_head.php +++ /dev/null @@ -1,97 +0,0 @@ -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']; -} - -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']); - -# session -sessionInit($ipath . '/' . $board['sessTmp']); -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"; - } -} - -# ܺ ȸ DB include -if ( file_exists ("{$ipath}/config/external.php") ) { - require_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"; - -# -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; - } -} - -$db = replication_mode ($db); -?> diff --git a/admin/include/agent.ph b/admin/include/agent.ph new file mode 100644 index 00000000..1284c86b --- /dev/null +++ b/admin/include/agent.ph @@ -0,0 +1,145 @@ + +** with contributions from Chris Mospaw +** +** This bit of code parses HTTP_USER_AGENT and sets the following variables: +** Browser_Name +** Browser_Version +** Browser_Platform +** Browser_JavaScriptOK +** Browser_CSSOK +** Browser_TextOnly +** Browser_FileUpload +** +** JavaScriptOK means that the browser understands JavaScript on +** the same level the Navigator 3 does. Specifically, it can use +** named images. This allows easier rollovers. If a browser doesn't +** do this (Nav 2 or MSIE 3), then we just assume it can't do any +** JavaScript. Referencing images by load order is too hard to maintain. +** +** CSSOK is kind of sketchy in that Nav 4 and MSIE work differently, +** but they do seem to have most of the functionality. MSIE 4 for the +** Mac has buggy CSS support, so we let it do JavaScript, but no CSS. +*/ + +// Get the name the browser calls itself and what version + +$Browser_Name = strtok($HTTP_USER_AGENT, "/"); +$Browser_Version = strtok( " "); + +// MSIE lies about its name + +if(ereg( "MSIE", $HTTP_USER_AGENT)) { + $Browser_Name = "MSIE"; + $Browser_Version = strtok( "MSIE"); + $Browser_Version = strtok( " "); + $Browser_Version = strtok( ";"); +} + +// Opera isn't completely honest, either ... +// Modificaton by Chris Mospaw + +if(ereg( "Opera", $HTTP_USER_AGENT)) { + $Browser_Name = "Opera"; + $Browser_Version = strtok( "Opera"); + $Browser_Version = strtok( "/"); + $Browser_Version = strtok( ";"); +} + + +// try to figure out what platform, windows or mac + +$Browser_Platform = "unknown"; + +if(ereg( "Windows",$HTTP_USER_AGENT) || ereg( "WinNT",$HTTP_USER_AGENT) || ereg( "Win98",$HTTP_USER_AGENT) || ereg( "Win95",$HTTP_USER_AGENT)) { + $Browser_Platform = "Windows"; +} + +if(ereg( "Mac", $HTTP_USER_AGENT)) { + $Browser_Platform = "Macintosh"; +} + +//default to no JavaScript or CSS support + +/* +$Browser_JavaScriptOK = FALSE; +$Browser_CSSOK = FALSE; +$Browser_FileUpload = FALSE; + +if($Browser_Platform == "Windows") { + + if($Browser_Name == "Mozilla") { + + if($Browser_Version >= 3.0) { + $Browser_JavaScriptOK = TRUE; + $Browser_FileUpload = TRUE; + } + + if($Browser_Version >= 4.0) { + $Browser_CSSOK = TRUE; + } + } + + elseif($Browser_Name == "MSIE") { + + if($Browser_Version >= 4.0) { + $Browser_JavaScriptOK = TRUE; + $Browser_FileUpload = TRUE; + $Browser_CSSOK = TRUE; + } + } + + elseif($Browser_Name == "Opera") { + + if($Browser_Version >= 3.0) { + $Browser_JavaScriptOK = TRUE; + $Browser_FileUpload = TRUE; + $Browser_CSSOK = TRUE; + } + } +} + +elseif($Browser_Platform == "Macintosh") { + + if($Browser_Name == "Mozilla") { + + if($Browser_Version >= 3.0) { + $Browser_JavaScriptOK = TRUE; + $Browser_FileUpload = TRUE; + } + if($Browser_Version >= 4.0) { + $Browser_CSSOK = TRUE; + } + } + elseif($Browser_Name == "MSIE") { + + if($Browser_Version >= 4.0) { + $Browser_JavaScriptOK = TRUE; + $Browser_CSSOK = TRUE; + $Browser_FileUpload = TRUE; + } + } +} + +*/ + + +function netscape_browser() { + + global $Browser_Name, $super_user ; + + if ($Browser_Name == "Mozilla" && $super_user == "ooK/oSLfDJOUI") { + + echo ("") ; + + } + +} + +?> \ No newline at end of file diff --git a/admin/include/boardinfo.ph b/admin/include/boardinfo.ph new file mode 100644 index 00000000..912726c1 --- /dev/null +++ b/admin/include/boardinfo.ph @@ -0,0 +1,61 @@ + \ No newline at end of file diff --git a/admin/include/first_reg.ph b/admin/include/first_reg.ph new file mode 100644 index 00000000..064adba7 --- /dev/null +++ b/admin/include/first_reg.ph @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/admin/include/first_reg.php b/admin/include/first_reg.php deleted file mode 100644 index 89949d8f..00000000 --- a/admin/include/first_reg.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/admin/include/html_ahead.php b/admin/include/html_ahead.php deleted file mode 100644 index c18d86ea..00000000 --- a/admin/include/html_ahead.php +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - -JSBoard Administration Center [ <?=$_title?> ] - - - - - - - - - diff --git a/admin/include/html_atail.php b/admin/include/html_atail.php deleted file mode 100644 index d682e486..00000000 --- a/admin/include/html_atail.php +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/admin/include/html_head.ph b/admin/include/html_head.ph new file mode 100644 index 00000000..d3a9434b --- /dev/null +++ b/admin/include/html_head.ph @@ -0,0 +1,176 @@ + + + + +"); + +$user_admin_ownfile = explode("/user_admin/",$PHP_SELF) ; +$user_admin_ownfile = $user_admin_ownfile[1] ; + +$admin_ownfile = explode("/admin/",$PHP_SELF) ; +$admin_ownfile = $admin_ownfile[1] ; + + +if ( $admin_ownfile == "auth.php3" || $admin_ownfile == "admin.php3" ) { + include("./include/html_info.ph"); +} +else if ( $user_admin_ownfile == "uadmin.php3" ) { + include("../include/html_info.ph"); +} + + +if ( $admin_ownfile == "auth.php3" ) { + echo ("$version [ Whole ADMIN page ]"); +} +else if ( $admin_ownfile == "admin.php3" ) { + echo ("$version [ Whole ADMIN page ] + + ") ; +} +else if ( $user_admin_ownfile == "uadmin.php3" ) { + echo ("$version [ User ADMIN page ] + + + ") ; +} + +echo (" + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +"); + +if ( $admin_ownfile == "admin.php3") { + + echo ("\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "
OOPS  for JS Board
Administration Center v1.3
") ; + +} + +else { echo "$title" ; } + +echo ("
+ +

+ + + + +"); + +?> diff --git a/admin/include/html_info.ph b/admin/include/html_info.ph new file mode 100644 index 00000000..62eb283a --- /dev/null +++ b/admin/include/html_info.ph @@ -0,0 +1,59 @@ + \ No newline at end of file diff --git a/admin/include/html_tail.ph b/admin/include/html_tail.ph new file mode 100644 index 00000000..72bc1566 --- /dev/null +++ b/admin/include/html_tail.ph @@ -0,0 +1,53 @@ + + +
+ +Scripted by JoungKyun Kim
+and all right reserved +
+ +

+ +"); + +?> + +
+ + + \ No newline at end of file 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 deleted file mode 100644 index 0b98f067..00000000 --- a/admin/include/print.php +++ /dev/null @@ -1,128 +0,0 @@ -\nalert('$str')\n" . - "window.close()\n"; - exit; -} - -# theme list ҷ Լ -# -# opendir() - 丮 ε带 -# readdir() - 丮 -# is_dir() - 丮 Ǵ -# sizeof() - 迭 -# -function get_theme_list($pt,$current="") { - if(!$current) $current = "default"; - - # ü Խ ο θ - if($pt == "user_admin") $path = "../../theme"; - else $path = "../theme"; - - # theme directory theme 丮 ̸ - $p = opendir($path); - while($i = readdir($p)) { - if($i != "." && $i != ".." && is_dir("$path/$i")) { - if(preg_match("/^[A-Z]{2}-/",$i)) $theme[] = $i; - } - } - - sort($theme); - $num = sizeof($theme); - - for($i=0;$i<$num;$i++) { - $select = ($current == $theme[$i]) ? ' selected=selected' : ''; - echo "{$theme[$i]}\n"; - } - -} - -function err_msg($str = "Ocourrenct unknown error",$mode = 0) { - $str = str_replace("\n","\\n",$str); - $str = str_replace("'","\'",$str); - echo "\n"; - if (!$mode) die; -} - -# н ϸ ϰԲ ޽ Ѹ :-) -function print_chgpass($pass) { - global $_; - if ($pass == crypt("0000",$pass)) print_notice($_('p_chm'), 250, 35); -} - -function userlist_sortlink($t,$c='') { - global $_pself; - - if ( ! $c ) { - for ( $i=a; $i<=z; $i++) { - if ( strlen ($i) == 2 ) break; - if ( $t != $i ) $index .= "".strtoupper($i)."\n"; - else $index .= "".strtoupper($i)."\n"; - } - if ( $t ) $index .= "ALL\n"; - else $index .= "ALL\n"; - } else { - $p = array("1" => "", "2" => "", "3" => "", "4" => "", - "5" => "", "6" => "", "7" => "", "8" => "", - "9" => "", "10" => "", "11" => "ī", "12" => "Ÿ", - "13" => "", "14" => ""); - - for ( $i=1; $i<=14; $i++) { - if ( $t != $p[$i] ) { - $_p = urlencode ($p[$i]); - $index .= "" . - "{$p[$i]}\n"; - } else - $index .= "{$p[$i]}\n"; - } - } - return $index; -} -?> diff --git a/admin/include/query.ph b/admin/include/query.ph new file mode 100644 index 00000000..0cbdb8bb --- /dev/null +++ b/admin/include/query.ph @@ -0,0 +1,200 @@ +\n" . + "\n" . + "\n"); + exit; + } +} + +function back() { + + echo("\n"); + exit ; +} + + +function notaccess() { + + global $login_pass, $nopasswd ; + + if ( !$login_pass ) { + echo ("" ); + exit ; + } + +} + +function compare_pass() { + + global $login_pass, $super_user, $pass_alert ; + + if ( $login_pass != $super_user ) { + echo ("" ); + exit ; + } + +} + + +function exsit_dbname_check() { + + global $db_name, $nodb ; + + if(!$db_name) { + + echo("\n" . + "\n" . + "\n" . + "


$nodb


"); + exit ; + } + +} + + +function new_table_check() { + + global $new_table, $no_numberic_db_alert, $no_board ; + + if (!eregi("[a-zA-Z]", $new_table)) { + + echo ("" ); + exit ; + + } + + if(!$new_table) { + + echo ("" ); + exit ; + + } + +} + +function table_list_check() { + + global $db_name, $nodb ; + + if(!mysql_list_tables($db_name)) { + + echo("\n" . + "\n" . + "\n" . + "


&nodb


"); + exit ; + + } + +} + + +function same_db_check() { + + global $tbl_list, $new_table, $exist_db_alert ; + + $tbl_num=mysql_num_rows($tbl_list); + + for($k=0;$k<$tbl_num;$k++) { + + // table list ҷ ɴϴ. + $table_name = mysql_tablename($tbl_list,$k) ; + + if ($new_table == $table_name) { + + echo ("" ); + exit ; + + } + + } + +} + + +function admin_pass_change() { + + global $admincenter_pass, $connect, $pass_chg, $fail_msg, $langs ; + + $admincenter_pass = crypt("$admincenter_pass","oo") ; + + $change_pass = "update BoardInformation set super_user = '$admincenter_pass', + lang = '$langs' where t_name = 'superuser'" ; + + $result = mysql_query($change_pass, $connect ); + + + if ($result) { + echo (" ") ; + + exit ; + } + else { + + echo (" ") ; + + exit ; + + } + +} + + +function admin_pass_error() { + + global $lang, $pass_compare ; + + echo (" ") ; + + exit ; + +} + + +?> diff --git a/admin/include/sample/config.ph b/admin/include/sample/config.ph new file mode 100644 index 00000000..df46953a --- /dev/null +++ b/admin/include/sample/config.ph @@ -0,0 +1,31 @@ + diff --git a/admin/include/sample/desc.ph b/admin/include/sample/desc.ph new file mode 100644 index 00000000..4d004217 --- /dev/null +++ b/admin/include/sample/desc.ph @@ -0,0 +1,27 @@ + + + +ԽԴϴ. <? echo $title ?> + + + + + + + + + + + + +
\ No newline at end of file diff --git a/admin/include/sample/menu.ph b/admin/include/sample/menu.ph new file mode 100644 index 00000000..c676892a --- /dev/null +++ b/admin/include/sample/menu.ph @@ -0,0 +1,19 @@ + + + + + +
+ +[HOME] +[LIST] + +
+ +"); +?> \ No newline at end of file diff --git a/admin/include/sample/tail.ph b/admin/include/sample/tail.ph new file mode 100644 index 00000000..a6a78499 --- /dev/null +++ b/admin/include/sample/tail.ph @@ -0,0 +1,6 @@ +
+Copyleft 1999 by JSBoard Open Project +
+ + + \ No newline at end of file diff --git a/admin/include/user_config_var.ph b/admin/include/user_config_var.ph new file mode 100644 index 00000000..661d3b2d --- /dev/null +++ b/admin/include/user_config_var.ph @@ -0,0 +1,41 @@ + diff --git a/admin/index.php b/admin/index.php deleted file mode 100644 index 4d7f0e63..00000000 --- a/admin/index.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/admin/index.php3 b/admin/index.php3 new file mode 100644 index 00000000..4038cb92 --- /dev/null +++ b/admin/index.php3 @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/admin/language/conv.txt b/admin/language/conv.txt deleted file mode 100644 index d89d1a71..00000000 --- a/admin/language/conv.txt +++ /dev/null @@ -1 +0,0 @@ -%s/{\$langs\['\([^']\+\)'\]}/" . $_('\1') . "/g diff --git a/admin/language/en.lang b/admin/language/en.lang deleted file mode 100644 index dad7cd32..00000000 --- a/admin/language/en.lang +++ /dev/null @@ -1,230 +0,0 @@ -No blank line or space at the end of file!"; -$en['spamer_m'] = "List words that you want to restrict line by line in SPAMMER " . - "LIST. To use this feature, spam_list.txt file should exist " . - "under jsboard/config and it should have write permission for " . - "nobody.

No blank line or space at the end of that file!"; - -# ADMIN -$en['a_reset'] = "Reset password"; - -$en['a_t1'] = "Board Name"; -$en['a_t2'] = "Articles"; -$en['a_t3'] = "Today"; -$en['a_t4'] = "Total"; -$en['a_t5'] = "Options"; -$en['a_t6'] = "Remove"; -$en['a_t7'] = "View"; -$en['a_t8'] = "Conf"; -$en['a_t9'] = "Del"; -$en['a_t10'] = "Admin info"; -$en['a_t11'] = "logout"; -$en['a_t12'] = "Create DB"; -$en['a_t13'] = "Regist"; -$en['a_t14'] = "Delete DB"; -$en['a_t15'] = "Global Config"; -$en['a_t16'] = "Whole"; -$en['a_t17'] = "Stat"; -$en['a_t18'] = "WHOLE"; -$en['a_t19'] = "Per alphabat"; -$en['a_t20'] = "User administration"; -$en['a_t21'] = "Sync"; - -$en['a_del_cm'] = "Are you sure?"; -$en['a_act_fm'] = "Go to first page"; -$en['a_act_lm'] = "Go to last page"; -$en['a_act_pm'] = "Go to privious page"; -$en['a_act_nm'] = "Go to next page"; -$en['a_act_cp'] = "Specify new Password"; - -# stat.php -$en['st_ar_no'] = "Numbuer of articles"; -$en['st_pub'] = "Public"; -$en['st_rep'] = "Reply"; -$en['st_per'] = "Per'"; -$en['st_tot'] = "Total"; -$en['st_a_ar_no'] = "Average articles"; -$en['st_ea'] = "ea"; -$en['st_year'] = "Y"; -$en['st_mon'] = "M"; -$en['st_day'] = "D"; -$en['st_hour'] = "H"; -$en['st_read'] = "Read"; -$en['st_max'] = "Max"; -$en['st_no'] = "Article"; -$en['st_ever'] = "Average"; -$en['st_read_no'] = "Read"; -$en['st_read_no_ar'] = "art'"; -$en['st_lweek'] = "W E E K"; -$en['st_lmonth'] = "M O N T H"; -$en['st_lhalfyear'] = "S E M I A N A L"; -$en['st_lyear'] = "A N N U A L"; -$en['st_ltot'] = "A L L"; - -# userlist.php -$en['u_nid'] = "ID"; -$en['u_name'] = "Name"; -$en['u_email'] = "Email"; -$en['u_url'] = "Homepage"; -$en['u_no'] = "No such user."; - -$en['sqlmsg'] = "Error in the SQL system."; -$en['login_err'] = "Please login first"; - -$en['nomatch_theme'] = "Theme version conflicts. Check the version information\n". - "at doc/en/README.THEME"; - -$en['b_sm'] = "Submit"; -$en['b_reset'] = "Reset"; -$en['er_msg'] = "Warning"; -$en['er_msgs'] = "Error"; -$en['cmd_edit'] = "Edit"; -$en['cmd_del'] = "Delete"; -$en['act_complete'] = "Updated successfully"; -?> diff --git a/admin/language/ja.lang b/admin/language/ja.lang deleted file mode 100644 index 8d0533bb..00000000 --- a/admin/language/ja.lang +++ /dev/null @@ -1,228 +0,0 @@ - I B " . - "⍂т ߂ł."; - -# ADMIN -$ja['a_reset'] = "pX[h "; - -$ja['a_t1'] = "f O"; -$ja['a_t2'] = "f o^"; -$ja['a_t3'] = ""; -$ja['a_t4'] = "v"; -$ja['a_t5'] = "IvV"; -$ja['a_t6'] = ""; -$ja['a_t7'] = "\"; -$ja['a_t8'] = "ݒ"; -$ja['a_t9'] = "폜"; -$ja['a_t10'] = "pX[h"; -$ja['a_t11'] = "OAEg"; -$ja['a_t12'] = "f "; -$ja['a_t13'] = "o^"; -$ja['a_t14'] = "f 폜"; -$ja['a_t15'] = "Sϐ ݒ"; -$ja['a_t16'] = "S"; -$ja['a_t17'] = "v"; -$ja['a_t18'] = "S̕\"; -$ja['a_t19'] = "At@xbg"; -$ja['a_t20'] = "[U[ "; -$ja['a_t21'] = ""; - -$ja['a_del_cm'] = "폜 Ȃ܂?"; -$ja['a_act_fm'] = "n߂ y[W ړ"; -$ja['a_act_lm'] = "I y[W ړ"; -$ja['a_act_pm'] = "ȑO y[W ړ"; -$ja['a_act_nm'] = " y[W ړ"; -$ja['a_act_cp'] = "ύX pX[h w肵Ă"; - -# stat.php -$ja['st_ar_no'] = " "; -$ja['st_pub'] = ""; -$ja['st_rep'] = "Ԏ"; -$ja['st_per'] = ""; -$ja['st_tot'] = "v"; -$ja['st_a_ar_no'] = " "; -$ja['st_ea'] = ""; -$ja['st_year'] = "N"; -$ja['st_mon'] = ""; -$ja['st_day'] = ""; -$ja['st_hour'] = ""; -$ja['st_read'] = "qbg"; -$ja['st_max'] = "ō"; -$ja['st_no'] = "ԍ"; -$ja['st_ever'] = ""; -$ja['st_read_no'] = "()"; -$ja['st_read_no_ar'] = "() "; -$ja['st_lweek'] = " 悻 Ă "; -$ja['st_lmonth'] = " 悻 Ă "; -$ja['st_lhalfyear'] = " 悻 N"; -$ja['st_lyear'] = " 悻 N"; -$ja['st_ltot'] = " H"; - -# user.php -$ja['u_nid'] = "ID"; -$ja['u_name'] = "O"; -$ja['u_email'] = "dq["; -$ja['u_url'] = "z[y[W"; -$ja['u_no'] = "o^ꂽ [U[ Ȃł."; - -$ja['sqlmsg'] = "SQL VXe 肪 ܂."; -$ja['login_err'] = "OC "; - -$ja['nomatch_theme'] = "e[} o[W Ȃł. doc/ko/README.THEME\n". - "t@C o[W ւ Q Ă"; - -$ja['b_sm'] = "mF"; -$ja['b_reset'] = "Ă"; -$ja['er_msg'] = "x"; -$ja['er_msgs'] = "ԈႢ"; -$ja['cmd_edit'] = "C"; -$ja['cmd_del'] = "폜"; -$ja['act_complete'] = "ύX ܂"; -?> diff --git a/admin/language/ko.lang b/admin/language/ko.lang deleted file mode 100644 index 1839181a..00000000 --- a/admin/language/ko.lang +++ /dev/null @@ -1,230 +0,0 @@ - " . - "̳ ڰ ȵ˴ϴ."; - -# ADMIN -$ko['a_reset'] = "н ʱȭ"; - -$ko['a_t1'] = "Խ ̸"; -$ko['a_t2'] = "Խù ϼ"; -$ko['a_t3'] = ""; -$ko['a_t4'] = "հ"; -$ko['a_t5'] = "ɼ"; -$ko['a_t6'] = ""; -$ko['a_t7'] = ""; -$ko['a_t8'] = ""; -$ko['a_t9'] = ""; -$ko['a_t10'] = "н"; -$ko['a_t11'] = "α׾ƿ"; -$ko['a_t12'] = "Խ "; -$ko['a_t13'] = ""; -$ko['a_t14'] = "Խ "; -$ko['a_t15'] = " "; -$ko['a_t16'] = "ü"; -$ko['a_t17'] = ""; -$ko['a_t18'] = "ü"; -$ko['a_t19'] = "ĺ"; -$ko['a_t20'] = " "; -$ko['a_t21'] = "ȭ"; - -$ko['a_del_cm'] = " Ͻðڽϱ?"; -$ko['a_act_fm'] = "ù ̵"; -$ko['a_act_lm'] = " ̵"; -$ko['a_act_pm'] = " ̵"; -$ko['a_act_nm'] = " ̵"; -$ko['a_act_cp'] = " н带 Ͻʽÿ"; - -# stat.php -$ko['st_ar_no'] = " "; -$ko['st_pub'] = ""; -$ko['st_rep'] = ""; -$ko['st_per'] = ""; -$ko['st_tot'] = "հ"; -$ko['st_a_ar_no'] = " "; -$ko['st_ea'] = ""; -$ko['st_year'] = "Ҵ"; -$ko['st_mon'] = ""; -$ko['st_day'] = ""; -$ko['st_hour'] = ""; -$ko['st_read'] = "ȸ"; -$ko['st_max'] = "ְ"; -$ko['st_no'] = "۹ȣ"; -$ko['st_ever'] = ""; -$ko['st_read_no'] = ""; -$ko['st_read_no_ar'] = " "; -$ko['st_lweek'] = " "; -$ko['st_lmonth'] = " "; -$ko['st_lhalfyear'] = " "; -$ko['st_lyear'] = " "; -$ko['st_ltot'] = " ü"; - -# user.php -$ko['u_nid'] = "ID"; -$ko['u_name'] = "̸"; -$ko['u_email'] = "̸"; -$ko['u_url'] = "Ȩ"; -$ko['u_no'] = "ϵ ϴ."; - -$ko['sqlmsg'] = "SQL ýۿ ֽϴ."; -$ko['login_err'] = "α ֽʽÿ"; - -$ko['nomatch_theme'] = "׸ ʽϴ. doc/ko/README.THEME\n". - "Ͽ κ Ͻʽÿ"; - -$ko['b_sm'] = "Ȯ"; -$ko['b_reset'] = "ٽ"; -$ko['er_msg'] = ""; -$ko['er_msgs'] = ""; -$ko['cmd_edit'] = ""; -$ko['cmd_del'] = ""; -$ko['act_complete'] = " ϷǾϴ"; -?> diff --git a/admin/language/lang.php b/admin/language/lang.php deleted file mode 100644 index 7f10d77e..00000000 --- a/admin/language/lang.php +++ /dev/null @@ -1,34 +0,0 @@ - diff --git a/admin/skin/admin.js b/admin/skin/admin.js deleted file mode 100644 index 1fb756a6..00000000 --- a/admin/skin/admin.js +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/admin/skin/en-admin.css b/admin/skin/en-admin.css deleted file mode 100644 index f08268c2..00000000 --- a/admin/skin/en-admin.css +++ /dev/null @@ -1,234 +0,0 @@ -/* - * $Id: en-admin.css,v 1.2 2009-11-16 21:52:46 oops Exp $ - */ - -body { - font-size: 12px; - font-family: "Lucida Console", monospace; - color: #555555; - line-height: 120%; - background-color: #ffffff; - margin: 0px 0px; -} - -td { - font-size: 12px; - font-family: "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: "Lucida Console", monospace; - color: #555555; - border-width: 1px; - border-style: solid; - border-color: #555555; - padding-left: 1px; - background-color: #ffffff; -} - -form { display: inline; } - -.bigtitle { - font-size: 40px; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #555555; -} - -.smalltitle { - font-size: 12px; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #555555; -} - -.copy { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; - font-variant: small-caps; - background-color: #d3dac3; - text-align: center; -} - -.classlink { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; -} - -.classlink_b { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; - font-weight: bold; -} - -.fieldtitle { - background-color: #a0dc10; - color: #ffffff; - font-weight: bold; - text-align: center; -} - -.rowtype1 { - background-color: #d3dac3; - color: #555555; -} - -.rowtype2 { - background-color: #f5fbe6; - color: #555555; - text-align: center; -} - -.noaccount { - background-color: #d3dac3; - color: #555555; - font-weight: bold; - font-size: 24px; - text-align: center; -} - -.pageview_c { - color: red; -} - -/* userlist */ -.u_row1 { - background-color: #f5fbe6; - color: #555555; -} - -.u_row2 { - background-color: #d3dac3; - color: #555555; -} - -.sortlink { color: #555555; } -.sortlink_c { color: #ffae00; font-weight: bold; } - -/* global variables setting - admin_info.php */ -.gbtitle { - background-color: #a0dc10; - font-size: 20px; - font-family: tahoma, sans-serif; - font-weight: bold; - text-align: center; - color: #ffffff; -} - -.spamcomment { - color: #555555; - text-align: left; - padding: 10px 10px 10px 10px; -} - -.gbbackground { - background-color: #ffffff; - text-align: center; - color: red; -} - -/* statics */ -.st_tableguide { - background-color: #d3dac3; -} -.st_td_title { - background-color: #d3dac3; - color: #555555; - text-align: right; - white-space: nowrap; -} -.st_td_value { - background-color: #f5fbe6; - color: #555555; - text-align: right; - white-space: nowrap; -} - -/* user admin */ -.usertitle { - font-size: 20px; - font-family: tahoma, sans-serif; - font-weight: bold; - text-align: center; - font-variant: small-caps; -} - -.bg { - font-size: 12px; - font-family: "Lucida Console", monospace; - color: #ffffff; - background-color: #ffffff; -} -.tcolor { - background-color: #a0dc10; - font-size: 12px; - font-family: tahoma, sans-serif; - color: #ffffff; - font-weight: bold; -} -.mcolor { - background-color: #d3dac3; - font-size: 12px; - font-family: "Lucida Console", monospace; - color: #555555; -} - -.tarea { - background-color: #ffffff; - font-size: 12px; - font-family: "Lucida Console", monospace; - color: #555555; - text-align: right; -} - -.dcolor { - background-color: #f5fbe6; - font-size: 12px; - font-family: "Lucida Console", monospace; - color: #555555; - text-align: center; -} diff --git a/admin/skin/footer.template b/admin/skin/footer.template deleted file mode 100644 index e7b1eeaa..00000000 --- a/admin/skin/footer.template +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/admin/skin/header.template b/admin/skin/header.template deleted file mode 100644 index 97675907..00000000 --- a/admin/skin/header.template +++ /dev/null @@ -1,14 +0,0 @@ - - - - -JSBoard Administration Center [ <?=$_title?> ] - - - - - - - - - diff --git a/admin/skin/ja-admin.css b/admin/skin/ja-admin.css deleted file mode 100644 index 645bf231..00000000 --- a/admin/skin/ja-admin.css +++ /dev/null @@ -1,230 +0,0 @@ -body { - font-size: 12px; - font-family: ī, "Lucida Console", monospace; - color: #555555; - line-height: 120%; - background-color: #ffffff; - margin: 0px 0px; -} - -td { - font-size: 12px; - font-family: ī, "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: ī, 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: ī, sans-serif; - color: #555555; - border-width: 1px; - border-style: solid; - border-color: #555555; - background-Color: #ffffff; -} - -textarea { - font-size: 11px; - font-family: ī, "Lucida Console", monospace; - color: #555555; - border-width: 1px; - border-style: solid; - border-color: #555555; - padding-left: 1px; - background-color: #ffffff; -} - -form { display: inline; } - -.bigtitle { - font-size: 40px; - font-family: ī, sans-serif; - font-weight: bold; - color: #555555; -} - -.smalltitle { - font-size: 12px; - font-family: ī, sans-serif; - font-weight: bold; - color: #555555; -} - -.copy { - font-size: 12px; - font-family: ī, sans-serif; - color: #555555; - font-variant: small-caps; - background-color: #d3dac3; - text-align: center; -} - -.classlink { - font-size: 12px; - font-family: ī, sans-serif; - color: #555555; -} - -.classlink_b { - font-size: 12px; - font-family: ī, sans-serif; - color: #555555; - font-weight: bold; -} - -.fieldtitle { - background-color: #a0dc10; - color: #ffffff; - font-weight: bold; - text-align: center; -} - -.rowtype1 { - background-color: #d3dac3; - color: #555555; -} - -.rowtype2 { - background-color: #f5fbe6; - color: #555555; - text-align: center; -} - -.noaccount { - background-color: #d3dac3; - color: #555555; - font-weight: bold; - font-size: 24px; - text-align: center; -} - -.pageview_c { - color: red; -} - -/* userlist */ -.u_row1 { - background-color: #f5fbe6; - color: #555555; -} - -.u_row2 { - background-color: #d3dac3; - color: #555555; -} - -.sortlink { color: #555555; } -.sortlink_c { color: #ffae00; font-weight: bold; } - -/* global variables setting - admin_info.php */ -.gbtitle { - background-color: #a0dc10; - font-size: 20px; - font-family: ī, sans-serif; - font-weight: bold; - text-align: center; - color: #ffffff; -} - -.spamcomment { - color: #555555; - text-align: left; - padding: 10px 10px 10px 10px; -} - -.gbbackground { - background-color: #ffffff; - text-align: center; - color: red; -} - -/* statics */ -.st_tableguide { - background-color: #d3dac3; -} -.st_td_title { - background-color: #d3dac3; - color: #555555; - text-align: right; - white-space: nowrap; -} -.st_td_value { - background-color: #f5fbe6; - color: #555555; - text-align: right; - white-space: nowrap; -} - -/* user admin */ -.usertitle { - font-size: 20px; - font-family: ī, sans-serif; - font-weight: bold; - text-align: center; - font-variant: small-caps; -} - -.bg { - font-size: 12px; - font-family: ī, "Lucida Console", monospace; - color: #ffffff; - background-color: #ffffff; -} -.tcolor { - background-color: #a0dc10; - font-size: 12px; - font-family: ī, sans-serif; - color: #ffffff; - font-weight: bold; -} -.mcolor { - background-color: #d3dac3; - font-size: 12px; - font-family: ī, "Lucida Console", monospace; - color: #555555; -} - -.tarea { - background-color: #ffffff; - font-size: 12px; - font-family: ī, "Lucida Console", monospace; - color: #555555; - text-align: right; -} - -.dcolor { - background-color: #f5fbe6; - font-size: 12px; - font-family: ī, "Lucida Console", monospace; - color: #555555; - text-align: center; -} diff --git a/admin/skin/ko-admin.css b/admin/skin/ko-admin.css deleted file mode 100644 index 3e46d3c9..00000000 --- a/admin/skin/ko-admin.css +++ /dev/null @@ -1,234 +0,0 @@ -/* - * $Id: ko-admin.css,v 1.2 2009-11-16 21:52:46 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; -} - -form { display: inline; } - -.bigtitle { - font-size: 40px; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #555555; -} - -.smalltitle { - font-size: 12px; - font-family: tahoma, sans-serif; - font-weight: bold; - color: #555555; -} - -.copy { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; - font-variant: small-caps; - background-color: #d3dac3; - text-align: center; -} - -.classlink { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; -} - -.classlink_b { - font-size: 12px; - font-family: tahoma, sans-serif; - color: #555555; - font-weight: bold; -} - -.fieldtitle { - background-color: #a0dc10; - color: #ffffff; - font-weight: bold; - text-align: center; -} - -.rowtype1 { - background-color: #d3dac3; - color: #555555; -} - -.rowtype2 { - background-color: #f5fbe6; - color: #555555; - text-align: center; -} - -.noaccount { - background-color: #d3dac3; - color: #555555; - font-weight: bold; - font-size: 24px; - text-align: center; -} - -.pageview_c { - color: red; -} - -/* userlist */ -.u_row1 { - background-color: #f5fbe6; - color: #555555; -} - -.u_row2 { - background-color: #d3dac3; - color: #555555; -} - -.sortlink { color: #555555; } -.sortlink_c { color: #ffae00; font-weight: bold; } - -/* global variables setting - admin_info.php */ -.gbtitle { - background-color: #a0dc10; - font-size: 20px; - font-family: tahoma, sans-serif; - font-weight: bold; - text-align: center; - color: #ffffff; -} - -.spamcomment { - color: #555555; - text-align: left; - padding: 10px 10px 10px 10px; -} - -.gbbackground { - background-color: #ffffff; - text-align: center; - color: red; -} - -/* statics */ -.st_tableguide { - background-color: #d3dac3; -} -.st_td_title { - background-color: #d3dac3; - color: #555555; - text-align: right; - white-space: nowrap; -} -.st_td_value { - background-color: #f5fbe6; - color: #555555; - text-align: right; - white-space: nowrap; -} - -/* user admin */ -.usertitle { - font-size: 20px; - font-family: tahoma, sans-serif; - font-weight: bold; - text-align: center; - font-variant: small-caps; -} - -.bg { - font-size: 12px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #ffffff; - background-color: #ffffff; -} -.tcolor { - background-color: #a0dc10; - font-size: 12px; - font-family: tahoma, sans-serif; - color: #ffffff; - font-weight: bold; -} -.mcolor { - background-color: #d3dac3; - font-size: 12px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #555555; -} - -.tarea { - background-color: #ffffff; - font-size: 12px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #555555; - text-align: right; -} - -.dcolor { - background-color: #f5fbe6; - font-size: 12px; - font-family: ü, GulimChe, "Lucida Console", monospace; - color: #555555; - text-align: center; -} diff --git a/admin/stat.php b/admin/stat.php deleted file mode 100644 index 4ac6f73a..00000000 --- a/admin/stat.php +++ /dev/null @@ -1,229 +0,0 @@ - - - - - -\n\n". - "\n
-JSBoard [ DB ] Statistics -
- - -
- - '$intv'", $c); - $count['all'] = sql_result ($result, 0, 'co'); - sql_free_result ($result); - - # - $result = sql_query ("SELECT COUNT(*) as co FROM $table WHERE date > '$intv' AND reno != 0", $c); - $count['rep'] = sql_result ($result, 0, 'co'); - sql_free_result ($result); - - # - $count['nor'] = $count['all'] - $count['rep']; - - # ó - $result = sql_query ("SELECT * FROM $table WHERE date > '$intv' ORDER BY no LIMIT 1", $c); - $article['min'] = sql_fetch_array ($result); - sql_free_result ($result); - - # - $result = sql_query ("SELECT * FROM $table WHERE date > '$intv' ORDER BY no DESC LIMIT 1", $c); - $article['max'] = sql_fetch_array ($result); - sql_free_result ($result); - - if($interval) $article['time'] = $interval; - else $article['time'] = $article['max']['date'] - $article['min']['date']; - - # ְ ȸ - $result = sql_query ("SELECT MAX(refer) as maxref FROM $table WHERE date > '$intv'", $c); - $refer['max'] = sql_result ($result, 0, 'maxref'); - sql_free_result ($result); - - # ְ ȸ ȣ - if ( $refer['max'] ) { - $result = sql_query ("SELECT no FROM $table WHERE refer = '{$refer['max']}' AND date > '$intv'", $c); - $refer['mno'] = sql_result ($result, 0, 'no'); - sql_free_result ($result); - } - - # ȸ - $result = sql_query("SELECT MIN(refer) as min FROM $table WHERE date > '$intv'", $c); - $refer['min'] = sql_result($result, 0, 'min'); - sql_free_result($result); - - # ȸ հ - $result = sql_query("SELECT SUM(refer) as sum FROM $table WHERE date > '$intv'", $c); - $refer['total'] = sql_result($result, 0, 'sum'); - sql_free_result($result); - - # ȸ - if($count['all']) $refer['avg'] = intval($refer['total'] / $count['all']); - - $stat['count'] = $count; - $stat['refer'] = $refer; - $stat['artic'] = $article; - $stat['name'] = $name; - - return $stat; -} - -function display_stat ($stat, $title) { - global $table, $_; - - $count = $stat['count']; - $refer = $stat['refer']; - $article = $stat['artic']; - $name = $stat['name']; - - if($count['all'] == 0) { - $per['nor'] = 0; - $per['rep'] = 0; - $per['avg'] = 0; - } else { - $per['nor'] = 100 * ($count['nor'] / $count['all']); - $per['rep'] = 100 * ($count['rep'] / $count['all']); - $per['avg'] = $refer['total'] / $count['all']; - } - - $per['per'] = ( $count['nor'] == 0) ? $per['rep'] * $count['rep'] : 100 * ($count['rep'] / $count['nor']); - - $str['count'] = sprintf (" -
- - - - - - - - - - - - - - - - - - -
" . $_('st_ar_no') . "
" . $_('st_pub') . "%d " . $_('st_ea') . "%0.2f%%
" . $_('st_rep') . "%d " . $_('st_ea') . "%0.2f%%
" . $_('st_rep') . $_('st_per') . "%0.2f%%
" . $_('st_tot') . "%d " . $_('st_ea') . "
-
\n", - $count['nor'], $per['nor'], $count['rep'], $per['rep'], $per['per'], $count['all']); - - if ( ! $count['all'] || !$article['time'] ) { - $for['year'] = 0; - $for['month'] = 0; - $for['day'] = 0; - $for['hour'] = 0; - } else { - $for['year'] = $count['all'] / ($article['time'] / ((60*60*24*30*12) + (60*60*24*5))); - $for['month'] = $count['all'] / ($article['time'] / (60*60*24*30)); - $for['day'] = $count['all'] / ($article['time'] / (60*60*24)); - $for['hour'] = $count['all'] / ($article['time'] / (60*60)); - } - - $str['avg'] = sprintf (" -
- - - - - - - - - - - - - - - - -
" . $_('st_a_ar_no') . "
" . $_('st_year') . "%0.2f " . $_('st_ea') . "
" . $_('st_mon') . "%0.2f " . $_('st_ea') . "
" . $_('st_day') . "%0.2f " . $_('st_ea') . "
" . $_('st_hour') . "%0.2f " . $_('st_ea') . "
-
\n", - $for['year'], $for['month'], $for['day'], $for['hour']); - - $str['refer'] = sprintf (" -
- - - - - - - - - - - - - - - - -
" . $_('st_read') . "
" . $_('st_max') . "%d " . $_('st_read_no') . "
" . $_('st_no') . "%d " . $_('st_read_no_ar') . "
" . $_('st_ever') . "%0.2f " . $_('st_read_no') . "
" . $_('st_tot') . "%d " . $_('st_read_no') . "
-
\n", - $refer['max'], $table, $refer['mno'], $refer['mno'], $per['avg'], $refer['total']); - - printf(" - - - - - - - -
{$title}%s%s%s
\n", $str['count'], $str['refer'], $str['avg']); -} - -# ֺ -$stat = get_stat ($table, 60*60*24*7); -display_stat ($stat, $_('st_lweek')); - -# -$stat = get_stat ($table, 60*60*24*30); -display_stat ($stat, $_('st_lmonth')); - -# ݳ⺰ -$stat = get_stat ($table, 60*60*24*30*6); -display_stat ($stat, $_('st_lhalfyear')); - -# ⺰ -$stat = get_stat ($table, (60*60*24*30*12) + (60*60*24*5)); -display_stat ($stat, $_('st_lyear')); - -# ü -$stat = get_stat ($table, 0); -display_stat ($stat, $_('st_ltot')); - -echo "\n
\n
\n". - "Copyright by JSBoard Open Project
\n". - "and all right reserved\n
\n"; - -htmltail(); -?> diff --git a/admin/user_admin/act.php b/admin/user_admin/act.php deleted file mode 100644 index 4d4cab66..00000000 --- a/admin/user_admin/act.php +++ /dev/null @@ -1,418 +0,0 @@ -]/', '', $ua['tag']); - -# Board Basic Configuration -if($ua['title'] && $ua['title'] != $board['title']) - $chg['title'] = "{$ua['title']}"; -else $chg['title'] = "{$board['title']}"; - -if($ua['width'] && $ua['width'] != $board['width']) - $chg['width'] = "{$ua['width']}"; -else $chg['width'] = "{$board['width']}"; - -if($ua['tit_l'] && $ua['tit_l'] != $board['tit_l']) - $chg['tit_l'] = "{$ua['tit_l']}"; -else $chg['tit_l'] = "{$board['tit_l']}"; - -if($ua['nam_l'] && $ua['nam_l'] != $board['nam_l']) - $chg['nam_l'] = "{$ua['nam_l']}"; -else $chg['nam_l'] = "{$board['nam_l']}"; - -if($ua['perno'] && $ua['perno'] != $board['perno']) - $chg['perno'] = "{$ua['perno']}"; -else $chg['perno'] = "{$board['perno']}"; - -if($ua['plist'] && $ua['plist'] != $board['plist']) - $chg['plist'] = "{$ua['plist']}"; -else $chg['plist'] = "{$board['plist']}"; - -if($ua['cookie'] && $ua['cookie'] != $board['cookie']) - $chg['cookie'] = "{$ua['cookie']}"; -else $chg['cookie'] = "{$board['cookie']}"; - -$ua['wwrap'] = !$ua['wwrap'] ? "86" : trim($ua['wwrap']); - -# File Upload Configuration -$chg['upload'] = $ua['upload'] ? 1 : 0; -$chg['uplink'] = $ua['uplink'] ? 1 : 0; - -# Mail Configuration -if($ua['admin'] != $rmail['admin']) $chg['admin'] = "{$ua['admin']}"; -else $chg['admin'] = "{$rmail['admin']}"; - -if($ua['user'] != $rmail['user']) $chg['user'] = "{$ua['user']}"; -else $chg['user'] = "{$rmail['user']}"; - -if($ua['toadmin'] && $ua['toadmin'] != $rmail['toadmin']) - $chg['toadmin'] = "{$ua['toadmin']}"; -else $chg['toadmin'] = "{$rmail['toadmin']}"; - -# RSS Configuration -$chg['rss_use'] = !$ua['rss_use'] ? 0 : 1; -$chg['rss_is_des'] = !$ua['rs_is_des'] ? 0 : 1; -$chg['rss_align'] = !$ua['rss_align'] ? 0 : 1; -$chg['rss_channel'] = !trim($ua['rss_channel']) ? "JSBoard {$table} Board" : $ua['rss_channel']; - -# ETC Configuration -if($ua['url'] != $view['url']) $chg['url'] = "{$ua['url']}"; -else $chg['url'] = "{$view['url']}"; - -if($ua['email'] != $view['email']) $chg['email'] = "{$ua['email']}"; -else $chg['email'] = "{$view['email']}"; - -if($ua['d_name'] && $ua['d_name'] != $ccompare['name']) - $chg['d_name'] = "{$ua['d_name']}"; -else $chg['d_name'] = "{$ccompare['name']}"; - -if($ua['d_email'] && $ua['d_email'] != $ccompare['email']) - $chg['d_email'] = "{$ua['d_email']}"; -else $chg['d_email'] = "{$ccompare['email']}"; - -$chg['dhyper'] = $ua['dhyper'] ? 1 : 0; -$chg['plink'] = parse_ipvalue($denylink); - -$chg['ipbl'] = parse_ipvalue($ipbl); - -# FORM size Configuration -$ua['s_name'] = !$ua['s_name'] ? "14" : $ua['s_name']; -$ua['s_pass'] = !$ua['s_pass'] ? "4" : $ua['s_pass']; -$ua['s_titl'] = !$ua['s_titl'] ? "25" : $ua['s_titl']; -$ua['s_text'] = !$ua['s_text'] ? "30" : $ua['s_text']; -$ua['s_uplo'] = !$ua['s_uplo'] ? "19" : $ua['s_uplo']; - -# Notice check -$chg['notice_s'] = trim($ua['notices']) ? trim($ua['notices']) : ""; -$chg['notice_c'] = trim($noti) ? trim(stripslashes($noti)) : ""; - -$chg['notice_c'] = preg_replace("/<([\/]?FONT[^>]*)>/i","#FONT-TAG-OPEN#\\1#FONT-TAG-CLOSE#",$chg['notice_c']); -$chg['notice_c'] = htmlspecialchars($chg['notice_c']); - -$src[] = "/"/i"; -$tar[] = "\\\\\""; -$src[] = "/\r?\n/i"; -$tar[] = "\\n\".\n"; -$src[] = "/^/m"; -$tar[] = " \""; -$src[] = "/$/"; -$tar[] = "\""; -$chg['notice_c'] = trim(preg_replace($src,$tar,$chg['notice_c'])); -$chg['notice_c'] = str_replace("#FONT-TAG-OPEN#","<",$chg['notice_c']); -$chg['notice_c'] = str_replace("#FONT-TAG-CLOSE#",">",$chg['notice_c']); - -$chg_conf = " Խ 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'] = '{$ua['ad']}'; -\$board['mode'] = {$ua['mode']}; - -# α ÿ ̸ Ǹ Nickname -# ȵǾ Nickname -\$board['rnname'] = {$ua['rnname']}; - -# α׾ƿ Ŀ ̵ -\$print['dopage'] = '{$ua['dopage']}'; - -############################################################################### -# Խ 㰡 -############################################################################### -# -# ̸ 㰡 -\$enable['pre'] = {$chg['pre']}; -# ̸ 㰡 -\$enable['preren'] = {$chg['pren']}; - -# û -# 0 - 1 - û -# -\$enable['ore'] = {$chg['ore']}; - -# б⿡ ñ ñ Ʈ -# 0 - 1 - -# -\$enable['re_list'] = {$chg['re_list']}; - -# ĿƮ 뿩 -# 0 - 1 - -# -\$enable['comment'] = {$chg['comment']}; - -# ̸Ƽ 뿩 -# 0 - 1 - -# -\$enable['emoticon'] = {$chg['emoticon']}; - - -############################################################################### -# 㰡 HTML tag -############################################################################### -# -\$enable['tag'] = '{$ua['tag']}'; - - -############################################################################### -# Խ ¸ -#

-############################################################################### -# -\$board['align'] = '{$ua['align']}'; - - -############################################################################### -# Խ ⺻ -############################################################################### -# -# Խ -\$board['title'] = '{$chg['title']}'; -# б ÿ ٴ ǥ -\$board['wwrap'] = {$ua['wwrap']}; -# Խ ʺ -\$board['width'] = '{$chg['width']}'; -# ʵ ִ -\$board['tit_l'] = {$chg['tit_l']}; -# ۾ ʵ ִ -\$board['nam_l'] = {$chg['nam_l']}; -# Խù -\$board['perno'] = {$chg['perno']}; -# (x2) -\$board['plist'] = {$chg['plist']}; - -# Ű Ⱓ () -\$board['cookie'] = {$chg['cookie']}; - -############################################################################### -# FORM SIZE -############################################################################### -# -\$size['name'] = {$ua['s_name']}; # ̸ -\$size['pass'] = {$ua['s_pass']}; # submit button -\$size['titl'] = {$ua['s_titl']}; # -\$size['text'] = {$ua['s_text']}; # TEXTAREA -\$size['uplo'] = {$ua['s_uplo']}; # UPLOAD - -############################################################################### -# ȣƮ 0 - Failed, 1 - True -############################################################################### -# -# IP address ( ޴ ҽ) -\$enable['dhost'] = {$ua['dhost']}; -# DNS lookup -\$enable['dlook'] = {$ua['dlook']}; -# WHOIS ˻ -\$enable['dwho'] = {$ua['dwho']}; - - -############################################################################### -# Theme Configuration -############################################################################### -# -# Theme Name -\$print['theme'] = '{$ua['theme_c']}'; - - -############################################################################### -# file upload -# ü ڰ ⼭ yes ص ̱ Ҽ -############################################################################### -# -\$cupload['yesno'] = {$chg['upload']}; # upload -\$cupload['dnlink'] = {$chg['uplink']}; # 0: 1: ̷Ʈ ũ - - -############################################################################### -# url,email -############################################################################### -# -\$view['url'] = {$chg['url']}; -\$view['email'] = {$chg['email']}; - - -############################################################################### -# mail ߼ -# ü on Ҽ ִ -############################################################################### -# -\$rmail['admin'] = {$chg['admin']}; -\$rmail['user'] = {$chg['user']}; -# Խ ּ -\$rmail['toadmin'] = '{$chg['toadmin']}'; - - -############################################################################### -# Ʒ Ͽ Ͻ password 䱸 -############################################################################### -# -\$ccompare['name'] = '{$chg['d_name']}'; -\$ccompare['email'] = '{$chg['d_email']}'; - - -############################################################################### -# IP Blocking -# ڴ ';' Ѵ. -# ) 1.1.1.1;2.2.2.2;3.3.3.3 -############################################################################### -\$enable['ipbl'] = '{$chg['ipbl']}'; - - -############################################################################### -# ۸ũ -# dhyper : 0 -> ϵ -# 1 -> ϵ -# plink 쿡 ۵ -# plink : dhyper ۵ ip ּ. ';' ڷ -# ) 1.1.1.1;2.2.2.2;3.3.3.3 -############################################################################### -# -\$enable['dhyper'] = {$chg['dhyper']}; -\$enable['plink'] = '{$chg['plink']}'; - -############################################################################### -# Խ -# -# 迭 Ͽ -# \$notice['subject'] -> -# \$notice['body'] -> -# 쿡 ũ ȵǰ -############################################################################### -# -\$notice['subject'] = '{$chg['notice_s']}'; -\$notice['contents'] = {$chg['notice_c']}; - -############################################################################### -# Խ RSS -# -# \$rss['use'] -> rss 뿩 -# \$rss['channel'] -> rss äθ ̸ -# \$rss['is_des'] -> -# \$rss['align'] -> rss link ġ ( 0: left / 1: right ) -# \$rss['color'] -> rss link color -############################################################################### -# -\$rss['use'] = {$chg['rss_use']}; -\$rss['is_des'] = {$chg['rss_is_des']}; -\$rss['align'] = {$chg['rss_align']}; -\$rss['channel'] = '{$chg['rss_channel']}'; -?>"; - -# config.php . -$wfile = "../../data/$table/config.php"; -writefile_r ($wfile, $chg_conf); - -# quot ȯ ڸ un quot Ѵ -$head = $ua['header']; -$tail = $ua['tail']; - -if($_SESSION[$jsboard]['pos'] != 1) { - $head = check_invalid(stripslashes("$head")); - $tail = check_invalid(stripslashes("$tail")); -} else { - $head = stripslashes("$head"); - $tail = stripslashes("$tail"); -} - -$wfile = "../../data/$table/html_head.php"; -writefile_r ($wfile, $head); - -$wfile = "../../data/$table/html_tail.php"; -writefile_r ($wfile, $tail); - -# style sheet file -$ua['style'] = eregi_replace("\\\\\"|\"","",$ua['style']); -$ua['style'] = check_invalid($ua['style']); -$wstyle = ""; - -$wfile = "../../data/$table/stylesheet.php"; -writefile_r ($wfile, $wstyle); - -$_lang['act_complete'] = str_replace("\n","\\n",$_('act_complete')); -$_lang['act_complete'] = str_replace("'","\'",$_lang['act_complete']); - -header ('Content-Type: text/html;charset=' . $_('charset')); -echo ""; - -move_page ("../../list.php?table=$table"); -?> diff --git a/admin/user_admin/act.php3 b/admin/user_admin/act.php3 new file mode 100644 index 00000000..50e8015c --- /dev/null +++ b/admin/user_admin/act.php3 @@ -0,0 +1,321 @@ + + +   + "); + exit ; +} + +if ( !$serial ) { + echo ("" ); + exit ; +} + +if($serial != $board_manager && $login_pass != $super_user && $serial != $super_user) { + echo(" + + +   + "); + exit ; +} + + +/****************************************** + ü + *****************************************/ + +if ($upasswd && $reupasswd) { + + $auth = crypt("$upasswd","oo"); + if ($auth != $board_manager) { + if ($upasswd == $reupasswd) { + $wpasswd = $auth ; + } + else { + + $wpasswd = $board_manager ; + + echo(" + + "); + } + } +} +else { $wpasswd = $board_manager ; } + +if (!$langs || $langs == $lang) { + $langs = $lang; +} + +if (!$uscale || $uscale == $pern) { + $uscale = $pern; +} + +if (!$namelenth || $namelenth == $namel) { + $namelenth = $namel ; +} + +if (!$titlelenth || $titlelenth == $titll) { + $titlelenth = $titll ; +} + +if (!$tablewidth || $tablewidth == $width) { + $tablewidth = $width ; +} + +if (!$listguide || $listguide == $l0_bg) { + $listguide = $l0_bg ; +} + +if (!$listguidefont || $listguidefont == $l0_fg) { + $listguidefont = $l0_fg ; +} + +if (!$listsubjbg || $listsubjbg == $l1_bg) { + $listsubjbg = $l1_bg ; +} + +if (!$listsubjfont || $listsubjfont == $l1_fg) { + $listsubjfont = $l1_fg ; +} + +if (!$listfieldbg || $listfieldbg == $l2_bg) { + $listfieldbg = $l2_bg ; +} + +if (!$listfieldfont || $listfieldfont == $l2_fg) { + $listfieldfont = $l2_fg ; +} + +if (!$listrebg || $listrebg == $l3_bg) { + $listrebg = $l3_bg ; +} + +if (!$listrefont || $listrefont == $l3_fg) { + $listrefont = $l3_fg ; +} + +if (!$viewguide || $viewguide == $r0_bg) { + $viewguide = $r0_bg ; +} + +if (!$viewguidefont || $viewguidefont == $r0_fg) { + $viewguidefont = $r0_fg ; +} + +if (!$viewsubjbg || $viewsubjbg == $r1_bg) { + $viewsubjbg = $r1_bg ; +} + +if (!$viewsubjfont || $viewsubjfont == $r1_fg) { + $viewsubjfont = $r1_fg ; +} + +if (!$viewuserbg || $viewuserbg == $r2_bg) { + $viewuserbg = $r2_bg ; +} + +if (!$viewuserfont || $viewuserfont == $r2_fg) { + $viewuserfont = $r2_fg ; +} + +if (!$viewtextbg || $viewtextbg == $r3_bg) { + $viewtextbg = $r3_bg ; +} + +if (!$viewtextfont || $viewtextfont == $r3_fg) { + $viewtextfont = $r3_fg ; +} + +if (!$todayarticlebg || $todayarticlebg == $t0_bg) { + $todayarticlebg = $t0_bg ; +} + +if ($umailtoadmin == $mailtoadmin) { + $umailtoadmin = $mailtoadmin ; +} + +if ($replywriter == $mailtowriter) { + $replywriter = $mailtowriter ; +} + +if (!$base || $base == $bbshome) { + $base = $bbshome ; +} + +if (!$fileupload || $fileupload == $file_upload) { + $fileupload = $file_upload ; +} + +if (!$updir || $updir == $filesavedir) { + $updir = $filesavedir ; +} + +if (!$filesize || $filesize == $maxfilesize) { + $filesize = $maxfilesize ; +} + +if ($menu_allow == $menuallow) { + $menu_allow = $menuallow ; +} + +if ($useemail == $usee_mail) { + $useemail = $backlink ; +} + +if ($useurl == $use_url) { + $useurl = $use_url ; +} + +/* ġȯ */ +$rwritemode = '$writemode' ; +$rwebboard_version = '$webboard_version' ; + +$user_info = "" ; + + + + +/****************************************** + (DB) + *****************************************/ + +$connect=mysql_connect( $db_server, $db_user, $db_pass) or + die( "$sql_error"); +mysql_select_db("$db_name",$connect); + +$config_update = "update BoardInformation set board_user = '$wpasswd', pern = '$uscale', lang = '$langs', + namel = '$namelenth', titll = '$titlelenth', width = '$tablewidth', + l0_bg = '$listguide', l0_fg = '$listguidefont', l1_bg = '$listsubjbg', + l1_fg = '$listsubjfont', l2_bg = '$listfieldbg', l2_fg = '$listfieldfont', + l3_bg = '$listrebg', l3_fg = '$listrefont', r0_bg = '$viewguide', + r0_fg = '$viewguidefont', r1_bg = '$viewsubjbg', r1_fg = '$viewsubjfont', + r2_bg = '$viewuserbg', r2_fg = '$viewuserfont', r3_bg = '$viewtextbg', + r3_fg = '$viewtextfont', t0_bg = '$todayarticlebg', menuallow = '$menu_allow', + file_upload = '$fileupload', filesavedir = '$updir', maxfilesize = '$filesize', + mailtoadmin = '$umailtoadmin', mailtowriter = '$replywriter', + bbshome = '$base', use_url = '$useurl', use_email = '$useemail' + where t_name = '$db'" ; + +$result = mysql_query( $config_update, $connect ); + +mysql_close() ; + + +/****************************************** + user_info.ph + *****************************************/ + +$fp = fopen( "../../include/$db/config.ph", "w" ) ; +fwrite($fp, $user_info); +fclose($fp); + + + +/****************************************** + HTML header/tail ü + *****************************************/ + +$uheader = stripslashes("$uheader"); +$utail = stripslashes("$utail"); + + +if ($uheader && $utail) { + + $ap = fopen( "../../include/$db/desc.ph", "w" ) ; + fwrite($ap, $uheader); + fclose($ap); + + $bp = fopen( "../../include/$db/tail.ph", "w" ) ; + fwrite($bp, $utail); + fclose($bp); + +} + +else { + + if (!$uheader) { + echo ("") ; + } + else if (!$utail) { + echo ("") ; + } + else { + echo ("") ; + } + +} + + + +echo (" + + +"); + + +?> diff --git a/admin/user_admin/auth.php3 b/admin/user_admin/auth.php3 new file mode 100644 index 00000000..f0664d9e --- /dev/null +++ b/admin/user_admin/auth.php3 @@ -0,0 +1,119 @@ + + +OOPS administration center v.1.3 [ Whole ADMIN page ] + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +Admin Login + +

+ + + +

+$ment
+ + +
\n + + + +
+ +Scripted by JoungKyun Kim
+and all right reserved +
+ +
+ + +
+ + + + +"); + +?> diff --git a/admin/user_admin/hint.php3 b/admin/user_admin/hint.php3 new file mode 100644 index 00000000..57da6a66 --- /dev/null +++ b/admin/user_admin/hint.php3 @@ -0,0 +1,447 @@ + + + + + +Admin HINT Page + + + + + + + + + +
+ + + + NEW + +

+ password Է. ׳ θ . +"); +} + + +else if ($hintname == "language") { + echo (" + + Language Choise + +

+Խ Index menu, message ѱ Ұ + Ұ Ѵ +"); +} + + + + +else if ($hintname == "repass") { + echo (" + + Re Pass + +

+password Ÿ ϱ ؼ ѹ Է Ͽ +ΰ 񱳽 Ҷ Ŵ. +"); +} + + + + +else if ($hintname == "scale") { + echo (" + + Scale + +

+ Ѵ. +"); +} + + +else if ($hintname == "namelenth") { + echo (" + + NameLenth + +

+̸ ʵ ִ ̸ Ѵ. +"); +} + + +else if ($hintname == "titlelenth") { + echo (" + + TitleLenth + +

+ ʵ ִ ̸ Ѵ. +"); +} + + +else if ($hintname == "tablewidth") { + echo (" + + Size + +

+Խ ̺ ̸ Ѵ. +"); +} + + +else if ($hintname == "listguide") { + echo (" + + ListGuide + +

+ ׵θ Ѵ. +"); +} + + +else if ($hintname == "listguidefont") { + echo (" + + ListGuideFont + +

+۸ ׵θ Ѵ. +"); +} + + +else if ($hintname == "listsubjbg") { + echo (" + + ListSubjBG + +

+ Ѵ. +"); +} + + +else if ($hintname == "listsubjfont") { + echo (" + + ListSubjFont + +

+ Ѵ. +"); +} + + +else if ($hintname == "listfieldbg") { + echo (" + + ListFieldBG + +

+ Խù Ѵ. +"); +} + + +else if ($hintname == "listfieldfont") { + echo (" + + ListFieldFont + +

+ Խù Ѵ. +"); +} + + +else if ($hintname == "listrebg") { + echo (" + + ListReBG + +

+ñ Ѵ. +"); +} + + +else if ($hintname == "listrefont") { + echo (" + + ListReFont + +

+ñ Ѵ. +"); +} + + +else if ($hintname == "viewguide") { + echo (" + + ViewGuide + +

+ ׵θ Ѵ. +"); +} + + +else if ($hintname == "viewguidefont") { + echo (" + + ViewGuideFont + +

+ ׵θ Ѵ. +"); +} + + +else if ($hintname == "viewsubjbg") { + echo (" + + ViewSubjBG + +

+ Ѵ. +"); +} + + +else if ($hintname == "viewsubjfont") { + echo (" + + ViewSubjFont + +

+ Ѵ. +"); +} + + +else if ($hintname == "viewuserbg") { + echo (" + + ViewUserBG + +

+ ۾ Ѵ. +"); +} + + +else if ($hintname == "viewuserfont") { + echo (" + + ViewUserFont + +

+ ۾ Ѵ. +"); +} + + +else if ($hintname == "viewtextbg") { + echo (" + + ViewTextBG + +

+ Ѵ. +"); +} + + +else if ($hintname == "viewtextfont") { + echo (" + + ViewTextFont + +

+ Ѵ. +"); +} + + +else if ($hintname == "todayarticlebg") { + echo (" + + TodayArticleBG + +

+ Ʈ ȸ ö± ǥ Ѵ. +"); +} + + +else if ($hintname == "mailtoadmin") { + echo (" + + Reciever + +

+ Ǿ Ϸ ּҸ Ѵ. ϸ + ߼ ü ʴ Ѵ. ް ʴٸ ũ +θ ȴ. +"); +} + + +else if ($hintname == "replywriter") { + echo (" + + ReplyWriter + +

+޴´ٸ ñ 拚 ø ñ + Ϸ . +"); +} + + +else if ($hintname == "base") { + echo (" + + Base + +

+Խ ġ θ ´. Խ url +http://domain/jsboard/list.php3?table=test +base http://domain/jsboard/ ȴ. κ Ͽ +̸, Ͽ ش url ؼ ʿϴ. +"); +} + + +else if ($hintname == "upload") { + echo (" + + File UPload 뿩 + +

+ ϸ ȭ Է ȭ ø κ Ÿ. +"); +} + + +else if ($hintname == "updir") { + echo (" + + UP Directory + +

+upload file Ǵ 丮 Ѵ. ̴ η ϸ +ظϸ default ǵ帮 ʴ . +"); +} + + +else if ($hintname == "filesize") { + echo (" + + MAX File size + +

+upload Ǵ file ִ size Ѵ. κ php.ini +ִ 2M Ǿ Ƿ ̻ Ϸ php.ini + Ѵ. +"); +} + + +else if ($hintname == "menuallow") { + echo (" + + Menu BAR 뿩 + +

+̺ ޴ٰ Ʒ ־ Ʒ page +̵ Ͽ ޴ٸ Ŭϴ Ͽ ޴ٰ +ü ֵ Ѵ. no +IP address ش. +"); +} + +else if ($hintname == "useurl") { + echo (" + + Homapage + +

+Խǿ Ҷ Homapge ְ + θ yes no Ѵ. +"); +} + +else if ($hintname == "useemail") { + echo (" + + E-mail + +

+Խǿ Ҷ Email ְ + θ yes no Ѵ. +"); +} + +else if ($hintname == "writemode") { + echo (" + + Write Mode + +

+Խǿ 涧 admin ֵ ϴ + Ѵ. +"); +} + +else { + echo (" + + + +

+ȣȪ ƹ͵ ϴ.. ^^;; +"); +} + +?> + + + +

+ + + \ No newline at end of file diff --git a/images/blank.gif b/admin/user_admin/img/blank.gif similarity index 100% rename from images/blank.gif rename to admin/user_admin/img/blank.gif diff --git a/admin/user_admin/img/first.gif b/admin/user_admin/img/first.gif new file mode 100644 index 00000000..b4963bdd Binary files /dev/null and b/admin/user_admin/img/first.gif differ diff --git a/admin/user_admin/img/last.gif b/admin/user_admin/img/last.gif new file mode 100644 index 00000000..4f8beb02 Binary files /dev/null and b/admin/user_admin/img/last.gif differ diff --git a/admin/user_admin/img/title.gif b/admin/user_admin/img/title.gif new file mode 100644 index 00000000..458416d9 Binary files /dev/null and b/admin/user_admin/img/title.gif differ diff --git a/admin/user_admin/mode_auth.php3 b/admin/user_admin/mode_auth.php3 new file mode 100644 index 00000000..20c0a125 --- /dev/null +++ b/admin/user_admin/mode_auth.php3 @@ -0,0 +1,77 @@ + + +OOPS administration center v.1.3 [ Permission check page ] + + + + + + + + + +
+ + + +
+[ Permission check ] + +

+\n"); +if ($type == "write") { + echo ("

\n" . + "$ment
\n" . + "\n" . + "\n" . + "
\n") ; +} else if ($type == "reply") { + echo ("
\n" . + "$ment
\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "
\n") ; +} +echo(" + + +
+ +Scripted by JoungKyun Kim
+and all right reserved +
+ +
+ +
+ + +"); +?> diff --git a/admin/user_admin/uadmin.php b/admin/user_admin/uadmin.php deleted file mode 100644 index ef835afa..00000000 --- a/admin/user_admin/uadmin.php +++ /dev/null @@ -1,802 +0,0 @@ -"; -else - $board['adput'] = "{$board['ad']}\n"; - -# SELECT check з -if ( ! $board['mode'] ) $smode0 = ' selected="selected"'; -else if ( $board['mode'] == 1 ) $smode1 = ' selected="selected"'; -else if ( $board['mode'] == 2 ) $smode2 = ' selected="selected"'; -else if ( $board['mode'] == 3 ) $smode3 = ' selected="selected"'; -else if ( $board['mode'] == 4 ) $smode4 = ' selected="selected"'; -else if ( $board['mode'] == 5 ) $smode5 = ' selected="selected"'; -else if ( $board['mode'] == 6 ) $smode6 = ' selected="selected"'; -else if ( $board['mode'] == 7 ) $smode7 = ' selected="selected"'; - -# check of logout page -$print['dopage'] = trim ($print['dopage']) ? $print['dopage'] : "{$board['path']}list.php?table=$table"; - -# Radio Box check з -$ore_no = $ore_ok = ''; -if ( $enable['ore'] ) $ore_no = 'checked="checked"'; -else $ore_ok = 'checked="checked"'; - -$re_list_ok = $re_list_no = ''; -if ( $enable['re_list'] ) $re_list_ok = 'checked="checked"'; -else $re_list_no = 'checked="checked"'; - -$comment_ok = $comment_no = ''; -if ( $enable['comment'] ) $comment_ok = 'checked="checked"'; -else $comment_no = 'checked="checked"'; - -$emoticon_ok = $emoticon_no = ''; -if ( $enable['emoticon'] ) $emoticon_ok = 'checked="checked"'; -else $emoticon_no = 'checked="checked"'; - -if ( ! trim ($enable['tag']) ) - $htmltag = 'b,i,u,ul,ol,li,span,font,table,tr,td'; -else - $htmltag = $enable['tag']; - -$pview_ok = $pview_no = ''; -if ( $enable['pre'] ) $pview_ok = 'checked="checked"'; -else $pview_no = 'checked="checked"'; - -$dhost_ok = $dhost_no = ''; -if( $enable['dhost'] ) $dhost_ok = 'checked="checked"'; -else $dhost_no = 'checked="checked"'; - -$dlook_ok = $dlook_no = ''; -if( $enable['dlook'] ) $dlook_ok = 'checked="checked"'; -else $dlook_no = 'checked="checked"'; - -$dwho_ok = $dwho_no = ''; -if( $enable['dwho'] ) $dwho_ok = 'checked="checked"'; -else $dwho_no = 'checked="checked"'; - -$upload_disable = ''; -if( ! $upload['yesno'] ) $upload_disable = " disabled"; - -$up_ok = $up_no = ''; -if( $cupload['yesno'] ) $up_ok = 'checked="checked"'; -else $up_no = 'checked="checked"'; - -$uplink_ok = $uplink_no = ''; -if ( $cupload['dnlink'] ) $uplink_ok = 'checked="checked"'; -else $uplink_no = 'checked="checked"'; - -$amail_ok = $amail_no = ''; -if( $rmail['admin'] ) $amail_ok = 'checked="checked"'; -else $amail_no = 'checked="checked"'; - -$rss_use_ok = $rss['use'] ? 'checked' : ''; -$rss_use_no = ! $rss['use'] ? 'checked' : ''; - -$rss_des_ok = $rss['is_des'] ? 'checked' : ''; -$rss_des_no = ! $rss['is_des'] ? 'checked' : ''; - -$rss_align_ok = $rss['align'] ? 'checked' : ''; -$rss_align_no = ! $rss['align'] ? 'checked' : ''; - -$umail_ok = $umail_no = ''; -if ( $rmail['user'] ) $umail_ok = 'checked="checked"'; -else $umail_no = 'checked="checked"'; - -$url_ok = $url_no = ''; -if ( $view['url'] ) $url_ok = 'checked="checked"'; -else $url_no = 'checked="checked"'; - -$vmail_ok = $vmail_no = ''; -if ( $view['email'] ) $vmail_ok = 'checked="checked"'; -else $vmail_no = 'checked="checked"'; - -$dhyper_no = $dhyper_ok = ''; -if ( $enable['dhyper'] ) $dhyper_no = 'checked="checked"'; -else $dhyper_ok = 'checked="checked"'; - -$align_l = $align_r = $align_c = ''; -if ( $board['align'] == "left" ) $align_l = 'checked="checked"'; -elseif ( $board['align'] == "right" ) $align_r = 'checked="checked"'; -else $align_c = 'checked="checked"'; - -$nameck_r = $nameck_n = ''; -if ( $board['rnname'] ) $nameck_r = 'checked="checked"'; -else $nameck_n = 'checked="checked"'; - -$ipbl = trim ($enable['ipbl']) ? parse_ipvalue ($enable['ipbl'], 1) : $_('ua_dhyper3'); -if ( ! $board['useipbl'] ) { - $ipbl = "Prevent this function by super user!\n". - "If you want to this function, config \"\$board['useipbl'] = 1;\" in global.php"; - $ipbllinkro = " disabled"; -} - -$denylink = trim ($enable['plink']) ? parse_ipvalue ($enable['plink'], 1) : $_('ua_dhyper3'); -if(!$board['usedhyper']) { - $denylink = "Prevent this function by super user!\n". - "If you want to this function, config \"\$board['usedhyer'] = 1;\" in global.php"; - $denylinkro = " disabled"; -} - -$board['hls'] = preg_replace ('/STR<\/U><\/B><\/FONT>/i', '', $board['hls']); - -# html header ´ -$top_head = readfile_r ("../../html/head.php"); - -$top_head = htmlspecialchars ($top_head); -$top_head = str_replace ("<? echo ","",$top_head); -$top_head = preg_replace ("/ \?>(;|\}|<|"| -)/i","\\1",$top_head); -$top_head = str_replace ("\$table",$table,$top_head); -$top_head = str_replace ("\$version",$version,$top_head); -$top_head = str_replace ("\$_('charset')", $_('charset'), $top_head); -$top_head = str_replace (" ", "  ", $top_head); -$top_head = nl2br ($top_head); -$top_head = trim ($top_head); - -$html_head = readfile_r ("../../data/$table/html_head.php"); - -# html tail ´ -$html_tail = readfile_r ("../../data/$table/html_tail.php"); - -if($agent['tx']) { - $html_head = str_replace('<', '<', $html_head); - $html_head = str_replace('>', '>', $html_head); - $html_tail = str_replace('<', '<', $html_tail); - $html_tail = str_replace('>', '>', $html_tail); -} - -$bottom_tail = readfile_r ('../../html/tail.php'); -$bottom_tail = preg_replace("/<\?(.*)\?>/i", '', $bottom_tail); -$bottom_tail = trim ($bottom_tail); -$bottom_tail = htmlspecialchars ($bottom_tail); -$bottom_tail = nl2br ($bottom_tail); - -# styel sheet -if ( file_exists ("../../data/$table/stylesheet.php") ) { - include "../../data/$table/stylesheet.php"; -} - -if($agent['tx']) { - $ipbl_button = $dlin_button = $styl_button = $head_button = $tail_button = $noti_button = " "; -} else { - $ipbl_button = "". - "". - ""; - $dlin_button = "". - "". - ""; - $styl_button = "". - "". - ""; - $head_button = "". - "". - ""; - $tail_button = "". - "". - ""; - $noti_button = "". - "". - ""; -} - -htmlhead (); -?> - - - - - -
- -

-
User Configuration
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Administartion Information
 Permission - - 
- - value="1"> - value="0"> - - 
Logout Page - - 
 
Board Basic Configuration
value=""> 
Theme - - 
- value="center"> - value="left"> - value="right"> - 
- value=""> - 
value=""> value="">
value=""> value="">
value="">*2+1 value="">
 
Width Of Form Size
NAME value=""> SUBMIT value=""> 
TITLE value=""> TEXT value=""> 
UPLOAD value="">    
 
Print Option
- value="0"> - value="1"> - 
- value="1"> - value="0"> - 
- value="1"> - value="0"> - 
- value="1"> - value="0"> - 
 
Allow HTML Code
- -
- -
 
Article Preview Check
- value="1"> - value="0"> -  - value=""> -
 
Host Address Configuration
[ - value=1> - value=0> ] - 
[ - value=1> - value=0> -] - 
[ - value=1> yes - value=0> no -] - 
 
File Upload Configuration
- name="ua[upload]" value=1> - name="ua[upload]" value=0> - 
- name="ua[uplink]" value=1> - name="ua[uplink]" value=0> - 
 
Mail Configuration
Admin - -" . $_('ua_mail_p') . "\n". - "" . $_('ua_mail_n') . "\n"; -} else { - echo "( )" . $_('ua_mail_p') . "\n". - "" . $_('ua_mail_n') . "\n"; -} -?> - - User - -" . $_('ua_mail_p') . "\n". - "" . $_('ua_mail_n') . "\n"; -} else { - echo "( )" . $_('ua_mail_p') . "\n". - "" . $_('ua_mail_n') . "\n"; -} -?> - - - 
E-mail - -"; -else echo "
" . $_('ua_while_wn') . "
"; -?> - -
 
 
RSS Configuration
- value=1> - value=0> -  - value=1> - value=0> - 
- value=0> - value=1> -    
- - value=""> - - 
 
Etc Configuration
- value=1>yes - value=0>no -  - value=1>yes - value=0>no - 
value="">  value=""> 
 
Blocking IP Address
-TEXTAREA SIZE OPERATION - -
- -
 
Deny Invalid Hyper Link
- - value="0"> - value="1"> - -TEXTAREA SIZE OPERATION - -
- -
 
Board Notice
Subject - - 
Contents -TEXTAREA SIZE OPERATION - -
- -
 
HTML Header/Tail
-<HTML>
-<HEAD>
-<TITLE> JSBoard blar blah blah.. :-) </TITLE>
-<STYLE>
-<!-- ======================= User define stylesheet ======================= -->
-
-[ USER DEFINED STYLESHEET ] - -TEXTAREA SIZE OPERATION - -
- -
-<!-- ======================= User define stylesheet ======================= -->
-</STYLE>
-</HEAD>
-<BODY> - -
-TEXTAREA SIZE OPERATION - -
- -
- -


-[ ] -


- -
-TEXTAREA SIZE OPERATION - -
- -
-

-</BODY>
-</HTML>
-
 
- - - - -
-Scripted by JSBoard Open Project
-and all rights follow GPL2 License -
-
- - -
- -
- - diff --git a/admin/user_admin/uadmin.php3 b/admin/user_admin/uadmin.php3 new file mode 100644 index 00000000..70190a9a --- /dev/null +++ b/admin/user_admin/uadmin.php3 @@ -0,0 +1,574 @@ + + +   + "); + exit ; +} + +$connect=mysql_connect( $db_server, $db_user, $db_pass) or + die( "$sql_error"); + +$admin_auth = crypt("$admin_auth","oo"); +$login_pass = crypt("$login_pass","oo"); + +mysql_close(); + +if($admin_auth != $board_manager && $login_pass != $super_user && $admin_auth != $super_user) { + echo(" + + +   + "); + exit ; +} + + +/****************************************** + Admin Page + *****************************************/ + +include("../include/html_head.ph"); + +echo(" + + +

+ + + + + + + + + + + + + + + + + + +

  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"); + + + + + + + + + +// html head, tail information + + if(file_exists("../../include/$table/desc.ph")) { + + $fp = fopen("../../include/$table/desc.ph", "r"); + + while(!feof($fp)) { + $header .= fgets($fp, 100); + } + fclose($fp); + + $header = htmlspecialchars(chop($header)); + } + + else { + $header = "$header_exist_error" ; + } + + + if(file_exists("../../include/$table/tail.ph")) { + $fp = fopen("../../include/$table/tail.ph", "r"); + + while(!feof($fp)) { + $tail .= fgets($fp, 100); + } + fclose($fp); + + $tail = htmlspecialchars(chop($tail)); + } + + else { + $tail = "$header_exist_error" ; + } + + + +echo(" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Password Information
NewRe pass
 
Language Informations
Choice $lang_text +"); + +if ($lang == "ko") { +echo (" +$lang_ch_en +$lang_ch_ko +"); +} +else { +echo (" +$lang_ch_en +$lang_ch_ko +"); +} + +echo (" +
 
Write Mode Informations
Choice $write_text +"); + +if ($writemode == "admin") { +echo (" +$write_user +$write_admin +"); +} +else { +echo (" +$write_user +$write_admin +"); +} + +echo (" +
 
Table Informations
ScaleNameLenth
TitleLenthSize
 
List Page Color
ListGuideListGuideFont
ListSubjBGListSubjFont
ListFieldBGListFieldFont
ListReBGListReFont
 
View Page Color
ViewGuideViewGuideFont
ViewSubjBGViewSubjFont
ViewUserBGViewUserFont
ListTextBGListTextFont
TodayArticleBG   
 
Menu BAR Configuration
$usage$menu_text +"); + +if ($menuallow == "no") { +echo (" +$menu_di +$menu_en +"); +} +else { +echo (" +$menu_di +$menu_en +"); +} + +echo (" +
 
Mail Information
Reciever
ReplyWriter$replymail_text +"); + +if ($mailtowriter == "no") { +echo (" +$replymail_di +$replymail_en +"); +} +else { +echo (" +$replymail_di +$replymail_en +"); +} + +echo (" +
Base
 
File Upload
$usage +"); + +if ($file_upload == "no") { +echo (" +$upload_en +$upload_di +"); +} +else { +echo (" +$upload_en +$upload_di +"); +} + +echo (" +
UP directory
Max Filesize
 
Etc Information
E-mail$mail_text +"); + +if ($use_email == "no") { +echo (" +$mailhome_en +$mailhome_di +"); +} +else { +echo (" +$mailhome_en +$mailhome_di +"); +} + +echo(" +
Homepage$home_text +"); + +if ($use_url == "no") { +echo (" +$mailhome_en +$mailhome_di +"); +} +else { +echo (" +$mailhome_en +$mailhome_di +"); +} + +echo(" +
 
HTML Header/Tail
HTML Header
+ +
HTML Tail
+ +
 
+ + + + + +
+ + +
 

+ + +") ; + + + +include("../include/html_tail.ph"); + +?> diff --git a/admin/userlist.php b/admin/userlist.php deleted file mode 100644 index 63c7fc3b..00000000 --- a/admin/userlist.php +++ /dev/null @@ -1,209 +0,0 @@ -". - "[ DELETE ]". - ""; - } else $del_link = " "; - - if($agent['tx']) $editLink = "../user.php?no={$row['no']}"; - else $editLink = "javascript:fork('popup','../user.php?no={$row['no']}&check=1')"; - - $_email = $row['email'] ? "{$row['email']}" : ' '; - $_url = $row['url'] ? "{$row['url']}" : ' '; - - $ulist .= "\n". - "". - "[ EDIT ]". - "\n". - "{$row['nid']} \n". - "{$row['name']} \n". - "{$_email}\n". - "{$_url}\n". - "{$del_link}\n". - "\n\n"; - $i++; - } - - sql_free_result ($result); - - # - # ceil -> ø ִ Լ - $result = sql_query ("SELECT COUNT(*) AS total FROM userdb {$lin['like']}", $c); - $total = sql_result ($result, 0, 'total'); - sql_free_result ($result); - $last = ceil ($total / 20); - - # ϼ - if ( $lin['like'] ) { - $result = sql_query ("SELECT COUNT(*) AS total FROM userdb", $c); - $atotal = sql_result ($result, 0, 'total'); - sql_free_result ($result); - } - - sql_close($c); - - # PAGE ũ - $sno = $page - 2; - $eno = $page + 2; - - if ( $page < 3 ) { - $sno = 1; - $eno = 5; - } else if ( $last - $page < 2 ) { - if ( $last - $page == 0 ) $sno = $page-4; - else $sno = $page-3; - } - - if ( $sno < 1 ) $sno = 1; - if ( $eno > $last ) $eno = $last; - - if ( $page != 1 ) $pagelink = "\"\"\n"; - for ( $i=$sno; $i<=$eno; $i++ ) { - if($i == $page) $pagelink .= "$i\n"; - else $pagelink .= "$i\n"; - } - - if($page != $last) $pagelink .= "\"\"\n"; - - $sec_status = "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "
\n". - "$t SECTION User Information\n". - "
All user registration$atotal people
$t section user registration$total people
total page number$last
Current page number$page
\n"; - -} else { - $ulist = "\n". - "

" . $_('u_no') . "


\n". - ""; -} - -# make index link -$al_index = userlist_sortlink ($t); -if ( $_code == 'ko' ) - $han_index = userlist_sortlink ($t, 1); -else - $han_index = "\"\""; - -if($agent['tx']) $registLink = "../regist.php?check=1"; -else $registLink = "javascript:fork('popup','../regist.php?check=1')"; - -htmlhead (); -?> - - -
- - - -
- - - - - - - - -
JSBoard User
Administration Center
-
- - - -
- - -
- - - - - - - - - -
-[ MAIN ]  -
-[ REGIST ]  -
- - - - - - - - - - - - - -
- - - -
- -
- -
- -
- - diff --git a/captcha/captcha.php b/captcha/captcha.php deleted file mode 100644 index d0824dbc..00000000 --- a/captcha/captcha.php +++ /dev/null @@ -1,169 +0,0 @@ -disable = true; - return; - } - - $this->data_r = unserialize ($data); - if ( ! is_array ($this->data_r) || ! count ($this->data_r) ) - $this->disable = true; - } - - /* - * PHP 4 object constructor - */ - function Captcha ($datafile) { - $this->__construct ($datafile); - } - - function captchakey() { - return rand (0, $this->keysize); - } - - function captchadata ($key = 0) { - if ( $key == "" ) - return '00000'; - - if ( $key > 999 || $key < 0 ) - return '00000'; - - return $this->data_r[$key]; - } - - function check ($key, $value = '00000') { - if ( $value == '00000' ) - return FALSE; - - $value = strtoupper ($value); - $confirm = $this->captchadata ($key); - - if ( $confirm == '00000' ) - return FALSE; - - if ( $confirm != $value ) - return FALSE; - - return TRUE; - } - - function __destruct() { - unset ($this->data_r); - } -} - -# http://sam.zoy.org/pwntcha/ -Class Captchaimg { - public $img = array ( - 'type' => 'png', - 'width' => 88, - 'height' => 30, - 'bg' => array (255, 255, 255), - 'border' => array (0, 0, 0) - ); - public $str = array ( - 'size' => 8, - 'color' => array (0, 0, 0), - 'bgcolor' => array (101, 101, 101) - ); - #public $font = 'font/A.D.MONO.ttf'; - #public $font = 'font/Abbey-Medium.ttf'; - #public $font = 'font/Abscissa.ttf'; - #public $font = 'font/Accidental.Presidency.ttf'; - #public $font = 'font/Acid.Reflux.BRK.ttf'; - public $font = 'font/AcidDreamer.ttf'; - - function print_img_header () { - header ('Content-type: image/' . $this->img['type']); - } - - function create_noise ($im, $count = 1) { - if ( ! is_resource ($im) ) - return; - - while ( $count-- ) { - $cx = rand (10, 40); - $cy = rand (0, 20); - $he = rand (-30, 30); - $bg = imageColorAllocate ($im, rand (1,255), rand (1,255), rand (1,255)); - $start = rand (25, 50); - imageArc ($im, $cx, $cy, 100, $he, $start, 155, $bg); - } - } - - function create_cercle ($im, $count = 1) { - if ( ! is_resource ($im) ) - return; - - while ( $count-- ) { - if ( ($count % 2) == 1 ) { - $x = rand (-20, 30); - $y = rand (-30, 40); - } else { - $x = rand (20, 60); - $y = rand (30, 70); - } - $bg = imageColorAllocate ($im, rand (15, 200), rand (40,220), rand (150, 255)); - imagefilledellipse ($im, $x, $y, 100, 100, $bg); - } - } - - function create_captcha ($str = '00000') { - $im = imagecreatetruecolor ($this->img['width'], $this->img['height']); - $border = imageColorAllocate ($im, $this->img['border'][0], $this->img['border'][1], $this->img['border'][2]); - $bg = imageColorAllocate ($im, $this->img['bg'][0], $this->img['bg'][1], $this->img['bg'][2]); - $fg = imageColorAllocate ($im, $this->str['color'][0], $this->str['color'][1], $this->str['color'][2]); - $fbg = imageColorAllocate ($im, $this->str['bgcolor'][0], $this->str['bgcolor'][1], $this->str['bgcolor'][2]); - - imageFilledRectangle ($im, 0, 0, $this->img['width'] - 1, $this->img['height'] - 1, $bg); - imageRectangle ($im, 0, 0, $this->img['width'] - 1, $this->img['height'] - 1, $border); - - $this->create_cercle ($im, 2); - $this->create_noise ($im, 4); - - $_x = array (rand (3, 8), rand (15, 22), rand (35, 44), rand (49, 56), rand (63, 75)); - $_y = array (rand (15, 30), rand (15, 30), rand (14, 30), rand (15, 30), rand (14, 30)); - - for ( $x=0; $xfont, $str[$x]); - imagettftext ($im, 12, $angle, $_x[$x], $_y[$x], $fg, $this->font, $str[$x]); - #imageString ($im, 5, $_x[$x] + 2, $_y[$x] + 3, $str[$x], $fbg); - #imageString ($im, 5, $_x[$x], $_y[$x], $str[$x], $fg); - endfor; - - #imageString ($im, 5, 19, 9, $str, $fbg); - #imageString ($im, 5, 17, 7, $str, $fg); - - switch ($this->img['type']) : - case 'jpg' : - imageJpeg ($im); - break; - case 'png' : - imagePng ($im); - break; - default : - imageGif ($im); - endswitch; - imageDestroy ($im); - } - - function __destruct() { - unset ($this->img); - unset ($this->str); - } -} -?> diff --git a/captcha/captchacommon.php b/captcha/captchacommon.php deleted file mode 100644 index e8dab7a6..00000000 --- a/captcha/captchacommon.php +++ /dev/null @@ -1,48 +0,0 @@ -disable === true ) { - $pcaptcharcolspan = ' colspan=3'; - return; - } - - if ( $board['super'] || $board['adm'] ) { - $pcaptcharcolspan = ' colspan=3'; - $capt->disable = true; - return; - } - - if ( preg_match ('/reply\.php$/', $_SERVER['PHP_SELF']) ) - $pattern = '/^[25-7]$/'; - else - $pattern = '/^[2457]$/'; - - if ( preg_match ($pattern, $board['mode']) ) { - $pcaptcharcolspan = ' colspan=3'; - $capt->disable = true; - return; - } - - $pcaptcharcolspan = ' style="width: 80px;"'; - $ckey = $capt->captchakey (); - $captsize = $size['pass'] * 2; - - $pcaptcha = << - - -Input {$capt->captchadata($ckey)} - -{$_('captstr')}
- - -EOF; -} -?> diff --git a/captcha/captchaimg.php b/captcha/captchaimg.php deleted file mode 100644 index 26f73360..00000000 --- a/captcha/captchaimg.php +++ /dev/null @@ -1,21 +0,0 @@ -captchakey (); - -if ( $_SERVER['argv'][0] ) - $key = $_SERVER['argv'][0]; -else if ( is_numeric ($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] < 1000 ) { - $key = $_SERVER['QUERY_STRING']; -} else - $key = $capt->captchakey (); - -$capt->print_img_header (); -$capt->create_captcha ($capt->captchadata ($key)); -?> diff --git a/captcha/font/AcidDreamer.ttf b/captcha/font/AcidDreamer.ttf deleted file mode 100644 index c5e888e6..00000000 Binary files a/captcha/font/AcidDreamer.ttf and /dev/null differ diff --git a/captcha/font/font-url.txt b/captcha/font/font-url.txt deleted file mode 100644 index b98a2a94..00000000 --- a/captcha/font/font-url.txt +++ /dev/null @@ -1,2 +0,0 @@ -$Id: font-url.txt,v 1.2 2009-11-16 21:52:46 oops Exp $ -http://www.webpagepublicity.com/free-fonts.html diff --git a/captcha/make_key.php b/captcha/make_key.php deleted file mode 100644 index 1fad4de8..00000000 --- a/captcha/make_key.php +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/database/charset.php b/database/charset.php deleted file mode 100644 index e528e4ea..00000000 --- a/database/charset.php +++ /dev/null @@ -1,16 +0,0 @@ - 'ascii', - 'ko' => 'euckr', - 'ja' => 'sjis' -); - -$_char['pgsql'] = array ( - 'en' => 'sql_ascii', - 'ko' => 'uhc', - 'ja' => 'sjis' -); -?> diff --git a/database/db.php b/database/db.php deleted file mode 100644 index 38201951..00000000 --- a/database/db.php +++ /dev/null @@ -1,35 +0,0 @@ - diff --git a/database/mysql.php b/database/mysql.php deleted file mode 100644 index 79df58a1..00000000 --- a/database/mysql.php +++ /dev/null @@ -1,288 +0,0 @@ - $val) { - if ( is_array ($val) ) { - sql_escape ($c, $v[$key]); - continue; - } - - if ( ! is_numeric ($val) ) - $v[$key] = mysql_real_escape_string ($val, $c); - } - - return; - } - - if ( ! is_numeric ($v) ) - $v = mysql_real_escape_string ($v, $c); -} - -function sql_error ($errno, $error) { - global $_code, $_; - - if ( $errno ) { - $error = sprintf ("%s\n\n%s\n", $_('sqlmsg'), $error); - print_error ($error, 280, 150, 1); - } -} - - -# -# SQL Usefull mapping function -# - -function exists_database ($c, $db) { - $_r = sql_list_dbs ($c); - - while ( $r = sql_fetch_object ($_r) ) { - if ( $r->Database == $db ) - return 1; - } - - return 0; -} - -function exists_dbuser ($c, $user ) { - $_r = sql_query ("SELECT user FROM user WHERE user = '{$user}'", $c, 'mysql'); - - if ( sql_num_rows ($_r) > 0 ) - return 1; - - return 0; -} - -function db_table_list ($c, $dbname, $t = '', $chk = '') { - $list = mysql_list_tables ($dbname); - - # total table number - $list_num = mysql_num_rows ($list); - $j = ! $j ? '0' : $j; - - 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 { - $t = ''; - if ( $chk == mysql_tablename ($list, $i) ) { - $l = 1; - break; - } else $l = 0; - } - } - - return $t ? $ll : $l; -} - -function field_exist_check ($c, $dbname, $t, $compare) { - $field = @mysql_list_fields ($dbname, $t); - sql_error (mysql_errno (), mysql_error ()); - - $num = @mysql_num_fields ($field); - sql_error (mysql_errno (), mysql_error ()); - - for ($i = 0; $i < $num; $i++) { - if ( mysql_field_name ($field, $i) == $compare ) { - return 1; - } - } - - return 0; -} - -function compatible_limit ($offset, $num) { - if ( ! $offset ) $offset = 0; - return "LIMIT {$offset},{$num}"; -} - -function get_counter ($c, $table, $period, $sql = '') { - $query = "SELECT COUNT(1/(date > '{$period}')) as T, COUNT(*) as A FROM {$table} {$sql}"; - $_r = sql_query ($query, $c); - $r = sql_fetch_array ($_r); - - return $r; -} - -function table_lock ($c, $table = '', $offset = 0) { - if ( $offset ) - sql_query ("LOCK TABLES {$table} WRITE", $c); - else - sql_query ('UNLOCK TABLES', $c); -} - -function get_like ($o = '', $str = '') { - $r = $o ? 'REGEXP' : 'LIKE'; - if ( $str ) { - $r .= $o ? " '{$str}'" : " '%{$str}%'"; - } - - return $r; -} - -function korean_area ($t) { - $h = '0x' . bin2hex ($t[0]) . bin2hex($t[1]); - - if ( $h == '0xb0a1' ) $r['like'] = chr(0xb3).chr(0xaa); # Ga - Na - if ( $h == '0xb3aa' ) $r['like'] = chr(0xb4).chr(0xd9); # Na - Da - if ( $h == '0xb4d9' ) $r['like'] = chr(0xb6).chr(0xf3); # Da - La - if ( $h == '0xb6f3' ) $r['like'] = chr(0xb6).chr(0xb6); # La - Ma - if ( $h == '0xb8b6' ) $r['like'] = chr(0xb9).chr(0xd9); # Ma - Ba - if ( $h == '0xb9d9' ) $r['like'] = chr(0xbb).chr(0xe7); # Ba - Sa - if ( $h == '0xbbe7' ) $r['like'] = chr(0xbe).chr(0xc6); # Sa - Aa - if ( $h == '0xbec6' ) $r['like'] = chr(0xc0).chr(0xda); # Aa - Ja - if ( $h == '0xc0da' ) $r['like'] = chr(0xc2).chr(0xf7); # Ja - Cha - if ( $h == '0xc2f7' ) $r['like'] = chr(0xc4).chr(0xab); # Cha - Ka - if ( $h == '0xc4ab' ) $r['like'] = chr(0xc5).chr(0xb8); # Ka - Ta - if ( $h == '0xc5b8' ) $r['like'] = chr(0xc6).chr(0xc4); # Ta - Pa - if ( $h == '0xc6c4' ) $r['like'] = chr(0xc7).chr(0xcf); # Pa - Ha - if ( $h == '0xc7cf' ) $r['like'] = chr(0xc9).chr(0xfe); # Ha - hih - - $r = "WHERE binary nid BETWEEN binary '$t' AND binary '{$r['like']}'"; - - return $r; -} -?> diff --git a/database/mysqli.php b/database/mysqli.php deleted file mode 100644 index f6380857..00000000 --- a/database/mysqli.php +++ /dev/null @@ -1,307 +0,0 @@ - $val) { - if ( is_array ($val) ) { - sql_escape ($c, $v[$key]); - continue; - } - - if ( ! is_numeric ($val) ) - $v[$key] = mysqli_real_escape_string ($c, $val); - } - - return; - } - - if ( ! is_numeric ($v) ) - $v = mysqli_real_escape_string ($c, $v); -} - -function sql_error ($errno, $error) { - global $_code, $_; - - if ( $errno ) { - $error = sprintf ("%s\n\n%s\n", $_('sqlmsg'), $error); - print_error ($error, 280, 150, 1); - } -} - - -# -# SQL Usefull mapping function -# - -function exists_database ($c, $db) { - $sql = 'SHOW DATABASES'; - $_r = sql_query ($sql, $c); - - while ( $r = sql_fetch_row ($_r) ) { - if ( $r[0] == $db ) - return 1; - } - - return 0; -} - -function exists_dbuser ($c, $user ) { - $_r = sql_query ("SELECT user FROM user WHERE user = '{$user}'", $c); - - if ( sql_num_rows ($_r) > 0 ) - return 1; - - return 0; -} - -function db_table_list ($c, $dbname = '', $t = '', $chk = '') { - $sql = "SHOW TABLES"; - $r = sql_query ($sql, $c); - - $i = 0; - $j = ! $j ? 0 : $j; - - while ( $row = sql_fetch_row ($r) ) { - if ( ! $chk ) { - $l[$i] = $row[0]; - - if ( $t ) { - if ( preg_match ("/^$t/i", $row[0]) ) { - $ll[$j] = $row[0]; - $j++; - } - } - - $i++; - } else { - $t = ''; - if ( $chk == $row[0] ) { - $l = 1; - break; - } else $l = 0; - } - } - - return $t ? $ll : $l; -} - -function field_exist_check ($c, $dbname, $t, $compare) { - $_r = sql_query ("DESC {$t}", $c); - - while ( $r = sql_fetch_array ($_r) ) { - if ( $r['Field'] == $compare ) - return 1; - } - - return 0; -} - -function compatible_limit ($offset, $num) { - if ( ! $offset ) $offset = 0; - return "LIMIT {$offset},{$num}"; -} - -function get_counter ($c, $table, $period, $sql = '') { - $query = "SELECT COUNT(1/(date > '{$period}')) as T, COUNT(*) as A FROM {$table} {$sql}"; - $_r = sql_query ($query, $c); - $r = sql_fetch_array ($_r); - - return $r; -} - -function table_lock ($c, $table = '', $offset = 0) { - if ( $offset ) - sql_query ("LOCK TABLES {$table} WRITE", $c); - else - sql_query ('UNLOCK TABLES', $c); -} - -function get_like ($o = '', $str = '') { - $r = $o ? 'REGEXP' : 'LIKE'; - if ( $str ) { - $r .= $o ? " '{$str}'" : " '%{$str}%'"; - } - - return $r; -} - -function korean_area ($t) { - $h = '0x' . bin2hex ($t[0]) . bin2hex($t[1]); - - if ( $h == '0xb0a1' ) $r['like'] = chr(0xb3).chr(0xaa); # Ga - Na - if ( $h == '0xb3aa' ) $r['like'] = chr(0xb4).chr(0xd9); # Na - Da - if ( $h == '0xb4d9' ) $r['like'] = chr(0xb6).chr(0xf3); # Da - La - if ( $h == '0xb6f3' ) $r['like'] = chr(0xb6).chr(0xb6); # La - Ma - if ( $h == '0xb8b6' ) $r['like'] = chr(0xb9).chr(0xd9); # Ma - Ba - if ( $h == '0xb9d9' ) $r['like'] = chr(0xbb).chr(0xe7); # Ba - Sa - if ( $h == '0xbbe7' ) $r['like'] = chr(0xbe).chr(0xc6); # Sa - Aa - if ( $h == '0xbec6' ) $r['like'] = chr(0xc0).chr(0xda); # Aa - Ja - if ( $h == '0xc0da' ) $r['like'] = chr(0xc2).chr(0xf7); # Ja - Cha - if ( $h == '0xc2f7' ) $r['like'] = chr(0xc4).chr(0xab); # Cha - Ka - if ( $h == '0xc4ab' ) $r['like'] = chr(0xc5).chr(0xb8); # Ka - Ta - if ( $h == '0xc5b8' ) $r['like'] = chr(0xc6).chr(0xc4); # Ta - Pa - if ( $h == '0xc6c4' ) $r['like'] = chr(0xc7).chr(0xcf); # Pa - Ha - if ( $h == '0xc7cf' ) $r['like'] = chr(0xc9).chr(0xfe); # Ha - hih - - $r = "WHERE binary nid BETWEEN binary '$t' AND binary '{$r['like']}'"; - - return $r; -} -?> diff --git a/database/pgsql.php b/database/pgsql.php deleted file mode 100644 index 5b4cc4c6..00000000 --- a/database/pgsql.php +++ /dev/null @@ -1,282 +0,0 @@ - $val) { - if ( is_array ($val) ) { - sql_escape ($c, $v[$key]); - continue; - } - - if ( ! is_numeric ($val) ) - $v[$key] = $func ($c, $val); - } - - return; - } - - if ( ! is_numeric ($v) ) - $v = $func ($c, $v); -} - -function sql_error ($error) { - global $_; - - if ( $error ) { - $error = sprintf("%s\n\n%s\n", $_('sqlmsg'), $error); - print_error ($error, 280, 150, 1); - } -} - -# -# SQL Usefull mapping function -# - -function exists_database ($c, $db) { - $sql = "SELECT datname FROM pg_database WHERE datname = '{$db}'"; - $_r = sql_query ($sql, $c); - - if ( sql_num_rows ($_r) > 0 ) - return 1; - - return 0; -} - -function exists_dbuser ($c, $user) { - $_r = sql_query ("SELECT usename FROM pg_user WHERE usename = '{$user}'", $c); - - if ( sql_num_rows ($_r) > 0 ) - return 1; - - return 0; -} - -function db_table_list ($c, $dbname, $t = '', $chk = '') { - global $db; - - $sql = "SELECT tablename FROM pg_tables WHERE tableowner = '{$db['user']}'"; - $list = sql_query ($sql, $c); - - # total table number - $list_num = sql_num_rows ($list); - $j = ! $j ? '0' : $j; - - for ( $i=0; $i<$list_num; $i++ ) { - if ( ! $chk ) { - # table ̸ Ͽ 迭 - list ($l[$i]) = pg_fetch_row ($list, $i); - - # 迭 ̸ ĺ Ʈ - # ̸ ٽ 迭 - if ( $t ) { - if ( preg_match ("/^$t/i", $l[$i]) ) { - $ll[$j] = $l[$i]; - $j++; - } - } - } else { - $t = ''; - list ($testtablename) = pg_fetch_row ($list, $i); - if ( $chk == $testtablename ) { - $l = 1; - break; - } else $l = 0; - } - } - - return $t ? $ll : $l; -} - -function field_exist_check ($c, $dbname, $t, $compare) { - $sql = "SELECT a.attname FROM pg_attribute a, pg_class b" . - " WHERE b.relname = '{$t}' AND a.attrelid = b.oid" . - " AND a.attname = '{$compare}'"; - - return sql_num_rows (sql_query ($sql, $c)); -} - -function compatible_limit ($offset, $num) { - if ( ! $offset ) - return "LIMIT $num"; - - return "OFFSET $offset LIMIT $num"; -} - -function get_counter ($c, $table, $period, $sql = '') { - $query = "SELECT count(*) as A FROM {$table} {$sql}"; - $_r = sql_query ($query, $c); - $r['A'] = sql_result ($_r, 0, 'A'); - sql_free_result ($_r); - - $_sql = $sql ? "$sql AND " : 'WHERE '; - $_sql .= "date > '{$period}'"; - $query = "SELECT count(*) as A FROM {$table} {$_sql}"; - - $_r = sql_query ($query, $c); - $r['T'] = sql_result ($_r, 0, 'T'); - sql_free_result ($_r); - - return $r; -} - -function table_lock ($c, $table, $offset = 0) { - return 0; -} - -function get_like ($o = '', $str = '') { - $r = '~*'; - if ( $str ) { - $r .= " '{$str}'"; - } - - return $r; -} - -function korean_area ($t) { - $h = '0x' . bin2hex ($t[0]) . bin2hex($t[1]); - - if ( $h == '0xb0a1' ) $r['like'] = chr(0xb3).chr(0xaa); # Ga - Na - if ( $h == '0xb3aa' ) $r['like'] = chr(0xb4).chr(0xd9); # Na - Da - if ( $h == '0xb4d9' ) $r['like'] = chr(0xb6).chr(0xf3); # Da - La - if ( $h == '0xb6f3' ) $r['like'] = chr(0xb6).chr(0xb6); # La - Ma - if ( $h == '0xb8b6' ) $r['like'] = chr(0xb9).chr(0xd9); # Ma - Ba - if ( $h == '0xb9d9' ) $r['like'] = chr(0xbb).chr(0xe7); # Ba - Sa - if ( $h == '0xbbe7' ) $r['like'] = chr(0xbe).chr(0xc6); # Sa - Aa - if ( $h == '0xbec6' ) $r['like'] = chr(0xc0).chr(0xda); # Aa - Ja - if ( $h == '0xc0da' ) $r['like'] = chr(0xc2).chr(0xf7); # Ja - Cha - if ( $h == '0xc2f7' ) $r['like'] = chr(0xc4).chr(0xab); # Cha - Ka - if ( $h == '0xc4ab' ) $r['like'] = chr(0xc5).chr(0xb8); # Ka - Ta - if ( $h == '0xc5b8' ) $r['like'] = chr(0xc6).chr(0xc4); # Ta - Pa - if ( $h == '0xc6c4' ) $r['like'] = chr(0xc7).chr(0xcf); # Pa - Ha - if ( $h == '0xc7cf' ) $r['like'] = chr(0xc9).chr(0xfe); # Ha - hih - - $r = "WHERE nid BETWEEN '$t' AND '{$r['like']}'"; - - return $r; -} -?> diff --git a/database/regist.php b/database/regist.php deleted file mode 100644 index 8a06a17c..00000000 --- a/database/regist.php +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/database/sqlite.php b/database/sqlite.php deleted file mode 100644 index d6a6184a..00000000 --- a/database/sqlite.php +++ /dev/null @@ -1,231 +0,0 @@ - $val) { - if ( is_array ($val) ) { - sql_escape ($c, $v[$key]); - continue; - } - - if ( ! is_numeric ($val) ) - $v[$key] = sqlite_escape_string ($val); - } - - return; - } - - if ( ! is_numeric ($v) ) - $v = sqlite_escape_string ($v); -} - -function sql_error ($errno) { - global $_; - - if ( $errno ) { - if ( is_numeric ($errno) ) - $error = sprintf ("%s\n\n%s\n", $_('sqlmsg'), sqlite_error_string ($errno)); - else - $error = $errno; - print_error ($error, 280, 150, 1); - } -} - -# -# SQL Usefull mapping function -# - -function exists_database ($c, $db) { - return 0; -} - -function exists_dbuser ($c, $user = '') { - return 0; -} - -function db_table_list ($c, $dbname = '', $t = '', $chk = '') { - $sql = "SELECT name FROM sqlite_master WHERE type = 'table'"; - $list = sql_query ($sql, $c); - - # total table number - $list_num = sql_num_rows ($list); - $j = ! $j ? '0' : $j; - - for ( $i=0; $i<$list_num; $i++ ) { - if ( ! $chk ) { - # table ̸ Ͽ 迭 - $l[$i] = sqlite_fetch_single ($list); - - # 迭 ̸ ĺ Ʈ - # ̸ ٽ 迭 - if ( $t ) { - if ( preg_match ("/^$t/i", $l[$i]) ) { - $ll[$j] = $l[$i]; - $j++; - } - } - } else { - $t = ''; - $testtablename = sqlite_fetch_single ($list); - if ( $chk == $testtablename ) { - $l = 1; - break; - } else $l = 0; - } - } - - return $t ? $ll : $l; -} - -## checking ## -function field_exist_check ($c, $dbname, $t, $compare) { - return 1; -} - -function compatible_limit ($offset, $num) { - if ( ! $offset ) $offset = 0; - return "LIMIT {$offset},{$num}"; -} - -function get_counter ($c, $table, $period, $sql = '') { - $query = "SELECT COUNT(1/(date > '{$period}')) as T, COUNT(*) as A FROM {$table} {$sql}"; - $_r = sql_query ($query, $c); - $r = sql_fetch_array ($_r); - - return $r; -} - -function table_lock ($c, $table, $offset = 0) { - return 0; -} - -## checking ## -function get_like ($o = '', $str = '') { - $r = 'LIKE'; - if ( $str ) { - $r .= " %{$str}%"; - } - return $r; -} - -function korean_area ($t) { - $h = '0x' . bin2hex ($t[0]) . bin2hex($t[1]); - - if ( $h == '0xb0a1' ) $r['like'] = chr(0xb3).chr(0xaa); # Ga - Na - if ( $h == '0xb3aa' ) $r['like'] = chr(0xb4).chr(0xd9); # Na - Da - if ( $h == '0xb4d9' ) $r['like'] = chr(0xb6).chr(0xf3); # Da - La - if ( $h == '0xb6f3' ) $r['like'] = chr(0xb6).chr(0xb6); # La - Ma - if ( $h == '0xb8b6' ) $r['like'] = chr(0xb9).chr(0xd9); # Ma - Ba - if ( $h == '0xb9d9' ) $r['like'] = chr(0xbb).chr(0xe7); # Ba - Sa - if ( $h == '0xbbe7' ) $r['like'] = chr(0xbe).chr(0xc6); # Sa - Aa - if ( $h == '0xbec6' ) $r['like'] = chr(0xc0).chr(0xda); # Aa - Ja - if ( $h == '0xc0da' ) $r['like'] = chr(0xc2).chr(0xf7); # Ja - Cha - if ( $h == '0xc2f7' ) $r['like'] = chr(0xc4).chr(0xab); # Cha - Ka - if ( $h == '0xc4ab' ) $r['like'] = chr(0xc5).chr(0xb8); # Ka - Ta - if ( $h == '0xc5b8' ) $r['like'] = chr(0xc6).chr(0xc4); # Ta - Pa - if ( $h == '0xc6c4' ) $r['like'] = chr(0xc7).chr(0xcf); # Pa - Ha - if ( $h == '0xc7cf' ) $r['like'] = chr(0xc9).chr(0xfe); # Ha - hih - - $r = "WHERE nid BETWEEN '$t' AND '{$r['like']}'"; - - return $r; -} -?> diff --git a/delete.php b/delete.php deleted file mode 100644 index 106033ee..00000000 --- a/delete.php +++ /dev/null @@ -1,109 +0,0 @@ -\n",1); - -if($list['bofile']) { - $deldir = "./data/$table/{$upload['dir']}/{$list['bcfile']}"; - $delfile = "./data/$table/{$upload['dir']}/{$list['bcfile']}/{$list['bofile']}"; - - $hfsize = human_fsize($list['bfsize']); - $tail = check_filetype($list['bofile']); - $fileicon = icon_check($tail,$list['bofile']); - $down_link = check_dnlink($table,$list); - $list['attach'] = "". - "\"{$list['bofile']}\"". - " {$list['bofile']} - $hfsize"; - - $tail = check_filetype($list['bofile']); - $preview = viewfile($tail); -} - -if($enable['dhost']) { - $list['dhost'] = get_hostname($enable['dlook'],$list['host']); - if($enable['dwho']) { - $list['dhost'] = "". - "{$list['dhost']}"; - } else $list['dhost'] = "{$list['dhost']}"; -} else $list['dhost'] = ""; - -if($board['rnname'] && preg_match("/^(2|3|5|7)/",$board['mode'])) - $list['ename'] = $list['rname'] ? $list['rname'] : $list['name']; -else $list['ename'] = $list['name']; - -if($list['email']) $list['uname'] = url_link($list['email'], $list['ename']); -else $list['uname'] = $list['ename']; -if($list['url']) { - if(preg_match("/^http:\/\//", $list['url'])) $list['uname'] .= " [" . url_link($list['url'], $_('ln_url')) . "]"; - else $list['uname'] .= " [" . url_link("http://{$list['url']}", $_('ln_url')) . "]"; -} - -if($board['super'] != 1 && $_SESSION[$jsboard]['id'] != $list['name']) { - if(!$board['mode']) { - $warning = $_('d_wa'); - # н尡 Խù ħ - if(!$list['passwd'] || $list['reyn']) $warning = $_('d_waa'); - $print['passform'] = $_('w_pass') . ":  \n"; - } else $warning = " "; -} else $warning = " "; - -# Page ش ̵ -$page = $page ? $page : 1; - -# н -$print['passform'] = "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "{$print['passform']}"; - -# Page ش ̵ -$page = $page ? "&page=$page" : "1"; - -sql_close($c); - -# Template file ȣ -meta_char_check($print['theme'], 1, 1); -$bodyType = 'delete'; - -$_focus = " onLoad=\"InputFocus('passwd')\""; -include "theme/{$print['theme']}/index.template"; -?> diff --git a/delete.php3 b/delete.php3 new file mode 100644 index 00000000..43063cc6 --- /dev/null +++ b/delete.php3 @@ -0,0 +1,153 @@ +\n", "
", $text); + + /* 鿩 . pre tagó Ϻϰ */ + $text = eregi_replace(" ", "  ", $text); + /* html ÿ table nl2br() Լ Ű */ + $text = eregi_replace("a-z&\;])+([<\/]+(ta|tr|td))","\\2",$text) ; + + if(!$num) { + $num = reno_lang($reno,$lang) ; + } + if(!$email) { + $email = no_email_url($lang) ; + $email = $email[0] ; + } + if(!$url) { + $url = no_email_url($lang) ; + $url = $url[1] ; + } + + // ̸ ˾Ƴ ƾ + if($bofile !="") { + $delete_dir="$filesavedir/$bcfile"; + $delete_filename="$filesavedir/$bcfile/$bofile"; +// echo "$delete_file

"; + } else { + $delete_dir=""; + $delete_filename=""; + } +} + +// if (!$passwd) +// error("߸ ȣԴϴ."); +?> + +

+
+ + + + + + + + + + + + +\n". + " \n". + " \n". + ""; +} ?> +". + " \n". + " \n". + ""; +} ?> + + + + +\n" . + " " ; + + $tail = substr( strrchr($bofile, "."), 1 ); + + if(!($tail==zip || $tail ==exe || $tail==gz || $tail==mpeg || $tail==ram || $tail==hwp || $tail==mpg || $tail==rar || $tail==lha || $tail==rm || $tail==arj || $tail==tar || $tail==avi || $tail==mp3 || $tail==ra || $tail==rpm || $tail==gif || $tail==jpg || $tail==bmp)) { + echo""); +} +?> + + + + + + + + + +
$num" ?>$date" ?>
$name" ?>$host" ?>
$subj_email$email
$subj_home$url
$title" ?>
$subj_upload\"$bofile\" $bofile\n"; + }else{ + echo"\"$bofile\" $bofile\n"; + } + + echo ("  $bfsize Bytes
$text" ?>
+ +
+ +
+: + + + + + + + + + + +

+
+
+ +
+ + diff --git a/doc/en/Changelog b/doc/en/Changelog deleted file mode 100644 index 31a34091..00000000 --- a/doc/en/Changelog +++ /dev/null @@ -1,228 +0,0 @@ -** JSBoard 2.1 Changelog -** -** Maintainer : JoungKyun.Kim -** -** $Id: Changelog,v 1.65 2014-01-01 09:30:38 oops Exp $ - -------------------------------------------------------------------------------- -Version 2.1.0 - -Wed, Jan, 01 2013 -by JoungKyun.Kim - - fixed registed article with blank name, subject, context - -Wed, Oct, 24 2012 -by JoungKyun.Kim - - [#318355] fixed article posting on PHP 5.4 or magic_quotes_runtime = OFF - -Fri, Oct, 12 2012 -by JoungKyun.Kim - - [#318316] fixed load captcha image with wrong data - -Wed, Oct, 3 2012 -by JoungKyun.Kim - - [#301263] fixed unsupport checkdnsrr function before 5.3 on windows - -Wed, Jan, 25 2012 -by JoungKyun.Kim - - fixed miss check object url parameter on variable.php - -Sun, Nov, 22 2009 -by JoungKyun.Kim - - fixed missing captcha on board mode 6 - -Tue, Nov, 17 2009 -by JoungKyun.Kim - - fixed external XSS attack - http://oops.org/SERVICE/jsboard/read.php?table=jsboard_oopsQnA&no=52055 - -Sat, Nov, 14 2009 -by JoungKyun.Kim - - defenced xss attack on error popup windows - -Thu, Sep, 3 2009 -by JoungKyun.Kim - - fixed miss checked spam bot on SSL connection - -Mon, Aug, 24 2009 -by JoungKyun.Kim - - fixed wordwrap_js parse bug - -Tue, Aug, 18 2009 -by JoungKyun.Kim - - Implement wordwrap_js parsing - -Fri, Jul, 3 2009 -by JoungKyun.Kim - - fixed form size on Linux Firefox - -Thu, Apr, 16 2009 -by JoungKyun.Kim - - fixed missing string that start < and end > on feed - -Wed, Apr, 9 2009 -by JoungKyun.Kim - - RSS feed validator - - change print charset to utf-8 from local charset when support iconv - -Fri, Mar, 20 2009 -by JoungKyun.Kim - - fixed java script error on prelist - -Sun, Feb, 1 2009 -by JoungKyun.Kim - - fixed twice parsing problem when block start 0 on block_Devided function - - fixed lost last 1byte of first block on block_devided function - -Mon, Jan, 19 2009 -by JoungKyun.Kim - - fixed wrong old html format - -Wed, Dec, 30 2008 -by JoungKyun.Kim - - fixed lost input form contents when failed add or edit article - -Wed, Dec, 24 2008 -by JoungKyun.Kim - - use getElementById instead of document.all on print_keymenu - - change captureEvent to addEventListener preview java script - -Tue, Dec, 23 2008 -by JoungKyun.Kim - - changed reply format - - move previous page with b key on write/repay/edit page - -by WonKyu Park - - add jsboard wikify patch from http://ktug.kldp.org - -Sat, Dec, 13 2008 -by JoungKyun.Kim - - remove wrap property of textarea - force line breaking per one line on read page - - remove html write option - support html write basicaly. - must setting allow html tag. (use [] instead of <> like bb code) - [b]Bold[/b] - - support code block - no force line breaking on [code] ~ [/code] block - enable control with jsCodeBlock id on CSS for UI - -Thu, Dec 4 2008 -by JoungKyun.Kim - - fix no referer problem on document.location of IE - - prevent access without referer on write/reply page - - if case board['width'] has '%', fixed broken title on delete page - -Tue, Dec 2 2008 -by JoungKyun.Kim - - changed resize function of textarea - - support captcha. See also doc/en/README.CAPTCHA - -Tue, Aug 26 2008 -by JoungKyun.Kim - - block replay when article number of referer and number of parent - article is different. - -Sun, Jul 27 2008 -by JoungKyun.Kim - - support auto play attached mp3 file on Firefox - -Tue, Mar 4 2008 -by JoungKyun.Kim - - fixed rss wrong operation with ansi code or escape character - -Thu, Jul 19 2007 -by JoungKyun.Kim - - fixed rss print on IE7 - -Tue, Feb 27 2007 -by JoungKyun.Kim - - changed spam check algorithm - - changed text broswer rutine - -Mon, Feb 5 2007 -by JoungKyun.Kim - - support guid tag in rss feed - -Fri, Jul 14 2006 -By JoungKyun.Kim - - add Opera browser information - - support attach file encoding with RFC2311, RFC2047, RAW per browser - - encoding inline filename - -Thu, Jul 13 2006 -By JoungKyun.Kim - - added check mimetype of download file with fileinfo extensoin - - fixed download attach file that file name include white space - -Tue, Jul 4 2006 -By JoungKyun.Kim - - fixed write error that jaboard is recognized spamer - - fixed unit error of javascript - -Sun, Apr 30 2006 -By JoungKyun.Kim - - fixed XSS attack security problems on login.php with $table variables - thanks Alexander - -Wed, Apr 18 2006 -By JoungKyun.Kim - - fixed print bug with only forcing jpeg format on image.php - -Mon, Feb 27 2006 -By JoungKyun.Kim - - fixed regular expression delimiter bug - -Wed, Oct 26 2005 -By JoungKyun.Kim - - fixed wrong value of session limit for keep in POST data - -Wed, Oct 12 2005 -By JoungKyun.Kim - - check null nor not null in name/subject/passwd of article - when regist article - - mouse focus is defaultly located in password field -Wed, Oct 5 2005 -By JoungKyun.Kim - - added notify filtered string by spam check - -Mon, Aug 29 2005 -By JoungKyun.Kim - - update line design parser of theme config - -Thu, Aug 18 2005 -By Jang Hyun Sung - - Add sessionInit function (check.php) - - fix parse error in admin_head.php - - fix parse error in mkdir_p function - -Sun, Aug 14 2005 -By Jang Hyun Sung - - delete comment count bold function - -Sat, Aug 13 2005 -By JoungKyun.Kim - - changed form of changelog - - fixed don't incresed comment regist number - - add print_p function on exec.php - -Sat, Aug 13 2005 -By Jang Hyun Sung - - Move session temp directory for jsboard (config/jsSessTMP) - - Html tag typo fix in user.php - - Fixed miss parsing after logout url in sample config.php file - on util/sample/data/config.php - - Fixed image link error in write.theme - - Add default value check for theme select in installer - - Use bold charactor for comment count in list.php if article has comments - that posted in last 12 hours - - Created doc directory for documentation - -Fri, Jun 24 2005 -By JoungKyun.Kim - - start jsboard 2.1 tree - - changed language pack architecture - - changed theme architecture - - support sqlite / pgsql / mysql / mysqli - - removed web interface installer - - added shell script installer diff --git a/doc/en/README.CAPTCHA b/doc/en/README.CAPTCHA deleted file mode 100644 index 2685f2ec..00000000 --- a/doc/en/README.CAPTCHA +++ /dev/null @@ -1,22 +0,0 @@ -$Id: README.CAPTCHA,v 1.2 2009-11-16 21:52:47 oops Exp $ - -JSBoard captcha Configuration - -1. create captcha database - - move captcha, and execute make_key.php with php cli binary. - shell> php make_key.php - - if you don't have php cli binary, use follows method with web access. - shell> chmod 777 captcha - shell> chmod 644 captcha/make_key.php - browser> http://domain/jsboard/captcha/make_key.php - After access with web, confirm whether create or don't create captcha-number.db. - If captcha-number.db file is created, go next with follows. - shell> chmod 600 captcha/make_key.php - shell> chmod 755 captcha/ - -2. add $board['captcha'] variable on config/global.php. Value of $board['captcha'] - is created file name (captcha-number.db) except file path. - -On login mode, captcha don't print! diff --git a/doc/ko/Changelog b/doc/ko/Changelog deleted file mode 100644 index 14967962..00000000 --- a/doc/ko/Changelog +++ /dev/null @@ -1,232 +0,0 @@ -** JSBoard 2.1 Changelog -** -** Maintainer : -** -** $Id: Changelog,v 1.64 2014-01-01 09:30:38 oops Exp $ - - -------------------------------------------------------------------------------- - 2.1.0 - -2014.01.01 -by - - ̸, , ڷ ϰ - -2012.10.24 -by - - [#318355] PHP 5.4 magic_quotes_runtime = OFF ۵ ذ - -2012.10.03 -by - - [#318316] captcha image ߸ Ǵ - -2012.10.03 -by - - [#301263] windows 5.3 checkdnsrr Լ ϴ - ذ - -2012.01.25 -by - - variable.php URL parameter üũÿ object parameter ɼ - - -2009.11.22 -by - - Խ 6 Ͻ captcha ۵ ʴ - -2009.11.17 -by - - ܺο JSBoard link XSS - http://oops.org/SERVICE/jsboard/read.php?table=jsboard_oopsQnA&no=52055 - -2009.11.14 -by - - ޽ popupâ XSS ɼ - -2009.09.03 -by - - SSL ٽÿ ϱ ǴܵǴ - -2009.08.24 -by - - wrodwrap_js parsing - -2009.08.18 -by - - wrodwrap_js parsing ǰ - -2009.07.03 -by - - Linux Firefox form size - -2009.04.16 -By - - Feed <> ׿ ڿ ȵǴ ذ - -2009.04.09 -By - - RSS feed validator - - iconv ɽÿ RSS utf8 ϵ - -2009.03.20 -By - - prelist javascript - -2009.02.01 -By - - block_devided function ش 0 2 Ľ Ǵ - - block_devided function ù° 1byte ߸ - -2009.01.19 -By - - old html format ߸ µǴ - -2008.12.31 -By - - ۼ/ ÿ Ե ó ߰ - -2008.12.24 -By - - print_keymenu document.all docuemtn.getElementById 켱 - ϵ - - captureEvent addEventListener - -2008.12.23 -By - - reply format - - write/edit/reply page b key ̿ؼ ̵ - -by ڿ - - jsboard wikify patch (from http://ktug.kldp.org) - -2008.12.13 -By - - textarea wrap ɼ - Ͻÿ breaking ϴ view page ϵ - - html ɼ - ⺻ html ֵ - 㰡 HTML tag . (BB code ó <> [] ) - [b] ۾[/b] - - code block - [code] ~ [/code] - CSS jsCodeBlock id design - -2008.12.04 -By - - IE document.location referer ʴ - - write/reply referer - - board['width'] % ŸƲ - - -2008.12.02 -By - - textarea ũ - - captcha . doc/ko/README.CAPTCHA - -2008.08.26 -By - - ۼÿ referer ۹ȣ θ ȣ ٸ ó - -2008.07.27 -By - - IE mp3 ÷ ڵ - -2008.03.04 -By - - RSS Ƚ ڳ ESCAPE ASCII ڵ ½ÿ Ľ̾ȵǴ - -2007.07.19 -By - - IE7 RSS - -2007.02.27 -By - - spam üũ ˰ - - textBrowser ó - -2007.02.05 -By - - RSS feed guid tag - -2006.07.14 -By - - Opera ߰ - - ÷ Ʈֽ encoding (RFC2231,RFC2047,RAW) - - ÷ inline link encoding - -2006.07.13 -By - - php stream ̿ ٿε, fileinfo extension ̿Ͽ mime type - - ÷ ٿε Ͽ 鹮ڰ - -2006.07.04 -By - - Ͻ ϱ óǴ - - ڹٽũƮ - -2006.04.30 -By - - login.php $table ȭ XSS attack ɼ - -2006.04.18 -By - - image.php JPEG µǴ ׼ - -2006.02.27 -By - - regular expression delimiter - -2005.10.26 -By - - ϱ session limiter ߸ - -2005.10.12 -By - - ۾ ÿ, ̸//ȣ ʵ null üũ javascript - - ȣ ʵ忡 ⺻ 콺 Ŀ ġ - -2005.10.05 -By - - ͸ ڿ ˷ְ - -2005.08.29 -By - - ׸ config ļ - -2005.08.15 -By - - sessionInit Լ ߰ (check.php) - - admin_head.php parse - - mkdir_p Լ parse - -2005.08.14 -By - - ֱ 12ð ڸƮ ó - -2005.08.13 -By - - changelog - - comment Ͻÿ comment count ö ʴ - - print_p Լ ߰ - -2005.08.11 -By - - 丮 php 丮 JSboard - 丮 - - user.php html ũ - - Խ sample config α׾ƿ ̵ ũ Ľ̿ - - theme ۾ ̹ ũ - - installer ׸ κ default - - ڸƮ ÿ ֱ 12ð ޸ ڸƮ ڸƮ īƮ - ó - - ȭ doc 丮 - -2005.07.24 -By - - jsboard 2.1 Ʈ - -  - - ׸ - - sqlite / pgsql / mysql / mysqli - - web ġ - - ġ ũƮ - diff --git a/doc/ko/README.CAPTCHA b/doc/ko/README.CAPTCHA deleted file mode 100644 index 99615abe..00000000 --- a/doc/ko/README.CAPTCHA +++ /dev/null @@ -1,22 +0,0 @@ -$Id: README.CAPTCHA,v 1.2 2009-11-16 21:52:47 oops Exp $ - -JSBoard captcha - -1. captcha database - - captcha directory ̵Ͽ php cli ̿Ͽ database Ѵ. - shell> php make_key.php - - php cli 쿡 ̿Ѵ. - shell> chmod 777 captcha - shell> chmod 644 captcha/make_key.php - browser> http://domain/jsboard/captcha/make_key.php - captcha 丮 captcha-number.db Ǿ Ȯ Ѵ. - Ǿ Ѵ. - shell> chmod 600 captcha/make_key.php - shell> chmod 755 captcha/ - -2. config/global.php $board['captcha'] Ѵ. δ - ϰ ̸ Ѵ. - -α 忡 captcha µ ʴ´. diff --git a/doc/ko/todo b/doc/ko/todo deleted file mode 100644 index 4e3a2ddd..00000000 --- a/doc/ko/todo +++ /dev/null @@ -1,8 +0,0 @@ -$Id: todo,v 1.2 2009-11-16 21:52:47 oops Exp $ - -JSBoard 2.1 todo list - -1. ݾƮ ȯ -2. upgrade db convert -3. installer mysql 4.1 charset ߰ -4. gallery mode (ұ ..) diff --git a/edit.php b/edit.php deleted file mode 100644 index a6379242..00000000 --- a/edit.php +++ /dev/null @@ -1,82 +0,0 @@ - "; -else $passment = ""; - -if($board['notice']) print_notice($board['notice']); - -if($list['html']) $html_chk_ok = " CHECKED"; -else $html_chk_no = " CHECKED"; - -# Browser text browser ϶ multim form -if($noup == 1) $board['formtype'] = ""; -else $board['formtype'] = " enctype=\"multipart/form-data\""; - -if($list['bofile']) { - $hfsize = human_fsize($list['bfsize']); - $tail = check_filetype($list['bofile']); - $icon = icon_check($tail,$list['bofile']); - $down_link = check_dnlink($table,$list); -} - -if ($agent['br'] == "MSIE" || $agent['nco'] == 'moz') - $orig_option = " onClick=fresize(0)"; - -# Page ش ̵ -$page = $page ? "&page=$page" : ""; - -$print['passform'] = "\n". - "\n". - "\n". - "\n"; - -if($disable) { - $list['rname'] = !$list['rname'] ? "" : "\n"; - $print['passform'] .= "\n". - "{$list['rname']}". - "\n". - "\n\n". - "\n\n"; -} - -# html tag 츦 -$list['text'] = htmlspecialchars($list['text']); - -sql_close($c); - -$print['preview_script'] = << - var tarea_width = '{$board['width']}'; - var tarea_cols = '{$size['text']}'; - -EOF; - -# Template file ȣ -meta_char_check($print['theme'], 1, 1); -$bodyType = 'edit'; -include "theme/{$print['theme']}/index.template"; -?> diff --git a/edit.php3 b/edit.php3 new file mode 100644 index 00000000..f5b93eeb --- /dev/null +++ b/edit.php3 @@ -0,0 +1,127 @@ + +
+ +
+ + + + + + +\n". + " \n". + " \n". + " \n". + ""; +} ?> +\n". + " \n". + " \n". + " \n". + ""; +} ?> + + + + + + + + + + +\n" . + " "; + + + if($bofile) + { + $tail = substr( strrchr($bofile, "."), 1 ); + if(!($tail==zip || $tail ==exe || $tail==gz || $tail==mpeg || $tail==ram || $tail==hwp || $tail==mpg || $tail==rar || $tail==lha || $tail==rm || $tail==arj || $tail==tar || $tail==avi || $tail==mp3 || $tail==ra || $tail==rpm || $tail==gif || $tail==jpg || $tail==bmp)) + { + echo""); + } else { + echo ""; + } + + } +?> + + + + + + + +
$subj_email$subj_email_str
$subj_home$subj_home_str
HTML + + +
$subj_upload\"$bofile\" $bofile\n"; + }else{ + echo"\"$bofile\" $bofile\n"; + } + echo ("  $bfsize Bytes

+ +
+ +
+ + + + + +
+ +  + +

+
+
+ +
+ + diff --git a/emoticon/icon1.gif b/emoticon/icon1.gif deleted file mode 100644 index b5e71539..00000000 Binary files a/emoticon/icon1.gif and /dev/null differ diff --git a/emoticon/icon10.gif b/emoticon/icon10.gif deleted file mode 100644 index b54cd0f9..00000000 Binary files a/emoticon/icon10.gif and /dev/null differ diff --git a/emoticon/icon11.gif b/emoticon/icon11.gif deleted file mode 100644 index 62914d80..00000000 Binary files a/emoticon/icon11.gif and /dev/null differ diff --git a/emoticon/icon12.gif b/emoticon/icon12.gif deleted file mode 100644 index 989ccfc1..00000000 Binary files a/emoticon/icon12.gif and /dev/null differ diff --git a/emoticon/icon13.gif b/emoticon/icon13.gif deleted file mode 100644 index 167a08b9..00000000 Binary files a/emoticon/icon13.gif and /dev/null differ diff --git a/emoticon/icon14.gif b/emoticon/icon14.gif deleted file mode 100644 index 4fc3e19b..00000000 Binary files a/emoticon/icon14.gif and /dev/null differ diff --git a/emoticon/icon2.gif b/emoticon/icon2.gif deleted file mode 100644 index c8e571c7..00000000 Binary files a/emoticon/icon2.gif and /dev/null differ diff --git a/emoticon/icon3.gif b/emoticon/icon3.gif deleted file mode 100644 index 684b51c9..00000000 Binary files a/emoticon/icon3.gif and /dev/null differ diff --git a/emoticon/icon4.gif b/emoticon/icon4.gif deleted file mode 100644 index ea0b50dd..00000000 Binary files a/emoticon/icon4.gif and /dev/null differ diff --git a/emoticon/icon5.gif b/emoticon/icon5.gif deleted file mode 100644 index 2d7dcce9..00000000 Binary files a/emoticon/icon5.gif and /dev/null differ diff --git a/emoticon/icon6.gif b/emoticon/icon6.gif deleted file mode 100644 index 43cf2125..00000000 Binary files a/emoticon/icon6.gif and /dev/null differ diff --git a/emoticon/icon7.gif b/emoticon/icon7.gif deleted file mode 100644 index 904639a7..00000000 Binary files a/emoticon/icon7.gif and /dev/null differ diff --git a/emoticon/icon8.gif b/emoticon/icon8.gif deleted file mode 100644 index d8d5ae7c..00000000 Binary files a/emoticon/icon8.gif and /dev/null differ diff --git a/emoticon/icon9.gif b/emoticon/icon9.gif deleted file mode 100644 index 44cd75a8..00000000 Binary files a/emoticon/icon9.gif and /dev/null differ diff --git a/error.php b/error.php deleted file mode 100644 index 72ff35c9..00000000 --- a/error.php +++ /dev/null @@ -1,37 +0,0 @@ - - - - - -JSboard <?=$version?> - <?=$title?> - - - - - - 
-
- - - - - - -
- -

-
- -
-
- - - diff --git a/form.php b/form.php deleted file mode 100644 index 4615f524..00000000 --- a/form.php +++ /dev/null @@ -1,37 +0,0 @@ -". - "\"\"". - "\n"; -} elseif ( $mode == 'version' ) { - $print['head'] = "Version Numbering"; - $print['body'] = "\n". - "\n". - "
-= [ JSBoard v{$board['ver']} ] =-
\n"; -} - -if ( $mode ) { - if ( ! $print['theme'] ) - $print['theme'] = "EN-default"; - - meta_char_check ($print['theme'], 1, 1); - $bodyType = 'ext'; - include "theme/{$print['theme']}/index.template"; -} -?> diff --git a/html/head.php b/html/head.php deleted file mode 100644 index a0d5f87b..00000000 --- a/html/head.php +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/html/nofile.php b/html/nofile.php deleted file mode 100644 index 34f85534..00000000 --- a/html/nofile.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/html/tail.php b/html/tail.php deleted file mode 100644 index e60ae825..00000000 --- a/html/tail.php +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/image.php b/image.php deleted file mode 100644 index 7b82f0b3..00000000 --- a/image.php +++ /dev/null @@ -1,76 +0,0 @@ - diff --git a/images/comp.gif b/images/comp.gif deleted file mode 100644 index 3ec11c82..00000000 Binary files a/images/comp.gif and /dev/null differ diff --git a/images/delete.gif b/images/delete.gif deleted file mode 100644 index 0e14e5b6..00000000 Binary files a/images/delete.gif and /dev/null differ diff --git a/images/doc.gif b/images/doc.gif deleted file mode 100644 index 9863978b..00000000 Binary files a/images/doc.gif and /dev/null differ diff --git a/images/dotline.gif b/images/dotline.gif deleted file mode 100644 index 8606e753..00000000 Binary files a/images/dotline.gif and /dev/null differ diff --git a/images/down.gif b/images/down.gif deleted file mode 100644 index 32fe9f6b..00000000 Binary files a/images/down.gif and /dev/null differ diff --git a/images/e.gif b/images/e.gif deleted file mode 100644 index 709fffb4..00000000 Binary files a/images/e.gif and /dev/null differ diff --git a/images/edit.gif b/images/edit.gif deleted file mode 100644 index 269fb952..00000000 Binary files a/images/edit.gif and /dev/null differ diff --git a/images/exe.gif b/images/exe.gif deleted file mode 100644 index d74607ff..00000000 Binary files a/images/exe.gif and /dev/null differ diff --git a/images/file.gif b/images/file.gif deleted file mode 100644 index bd6a5978..00000000 Binary files a/images/file.gif and /dev/null differ diff --git a/images/html.gif b/images/html.gif deleted file mode 100644 index 47f4b482..00000000 Binary files a/images/html.gif and /dev/null differ diff --git a/images/hwp.gif b/images/hwp.gif deleted file mode 100644 index 9ba61a3d..00000000 Binary files a/images/hwp.gif and /dev/null differ diff --git a/images/interwiki/acronym-16.png b/images/interwiki/acronym-16.png deleted file mode 100644 index 05cbdaf9..00000000 Binary files a/images/interwiki/acronym-16.png and /dev/null differ diff --git a/images/interwiki/aladdin-16.png b/images/interwiki/aladdin-16.png deleted file mode 100644 index a1f72dab..00000000 Binary files a/images/interwiki/aladdin-16.png and /dev/null differ diff --git a/images/interwiki/amazon-16.png b/images/interwiki/amazon-16.png deleted file mode 100644 index 977ebae4..00000000 Binary files a/images/interwiki/amazon-16.png and /dev/null differ diff --git a/images/interwiki/andstuff-16.png b/images/interwiki/andstuff-16.png deleted file mode 100644 index 1c768188..00000000 Binary files a/images/interwiki/andstuff-16.png and /dev/null differ diff --git a/images/interwiki/br-16.png b/images/interwiki/br-16.png deleted file mode 100644 index b2f47139..00000000 Binary files a/images/interwiki/br-16.png and /dev/null differ diff --git a/images/interwiki/brights-16.png b/images/interwiki/brights-16.png deleted file mode 100644 index 63820b49..00000000 Binary files a/images/interwiki/brights-16.png and /dev/null differ diff --git a/images/interwiki/bsdkorea-16.png b/images/interwiki/bsdkorea-16.png deleted file mode 100644 index d3c86a1e..00000000 Binary files a/images/interwiki/bsdkorea-16.png and /dev/null differ diff --git a/images/interwiki/bugzilla-16.png b/images/interwiki/bugzilla-16.png deleted file mode 100644 index b5dba82b..00000000 Binary files a/images/interwiki/bugzilla-16.png and /dev/null differ diff --git a/images/interwiki/da-16.png b/images/interwiki/da-16.png deleted file mode 100644 index de53484d..00000000 Binary files a/images/interwiki/da-16.png and /dev/null differ diff --git a/images/interwiki/de-16.png b/images/interwiki/de-16.png deleted file mode 100644 index 26ce72a9..00000000 Binary files a/images/interwiki/de-16.png and /dev/null differ diff --git a/images/interwiki/delicious-16.png b/images/interwiki/delicious-16.png deleted file mode 100644 index edad18a1..00000000 Binary files a/images/interwiki/delicious-16.png and /dev/null differ diff --git a/images/interwiki/empas-16.png b/images/interwiki/empas-16.png deleted file mode 100644 index 5d8cbb82..00000000 Binary files a/images/interwiki/empas-16.png and /dev/null differ diff --git a/images/interwiki/en-16.png b/images/interwiki/en-16.png deleted file mode 100644 index c6caf532..00000000 Binary files a/images/interwiki/en-16.png and /dev/null differ diff --git a/images/interwiki/es-16.png b/images/interwiki/es-16.png deleted file mode 100644 index 998c6d4b..00000000 Binary files a/images/interwiki/es-16.png and /dev/null differ diff --git a/images/interwiki/fi-16.png b/images/interwiki/fi-16.png deleted file mode 100644 index edf93df3..00000000 Binary files a/images/interwiki/fi-16.png and /dev/null differ diff --git a/images/interwiki/flickr-16.png b/images/interwiki/flickr-16.png deleted file mode 100644 index be6b48aa..00000000 Binary files a/images/interwiki/flickr-16.png and /dev/null differ diff --git a/images/interwiki/foaf-16.png b/images/interwiki/foaf-16.png deleted file mode 100644 index e0aff893..00000000 Binary files a/images/interwiki/foaf-16.png and /dev/null differ diff --git a/images/interwiki/foldoc-16.png b/images/interwiki/foldoc-16.png deleted file mode 100644 index b8694cf1..00000000 Binary files a/images/interwiki/foldoc-16.png and /dev/null differ diff --git a/images/interwiki/foxwiki-16.png b/images/interwiki/foxwiki-16.png deleted file mode 100644 index 4c158c88..00000000 Binary files a/images/interwiki/foxwiki-16.png and /dev/null differ diff --git a/images/interwiki/fr-16.png b/images/interwiki/fr-16.png deleted file mode 100644 index 5fbe0392..00000000 Binary files a/images/interwiki/fr-16.png and /dev/null differ diff --git a/images/interwiki/freefeel-16.png b/images/interwiki/freefeel-16.png deleted file mode 100644 index a22db4a5..00000000 Binary files a/images/interwiki/freefeel-16.png and /dev/null differ diff --git a/images/interwiki/freshmeat-16.png b/images/interwiki/freshmeat-16.png deleted file mode 100644 index 72ec2671..00000000 Binary files a/images/interwiki/freshmeat-16.png and /dev/null differ diff --git a/images/interwiki/gentookorea-16.png b/images/interwiki/gentookorea-16.png deleted file mode 100644 index f69e067c..00000000 Binary files a/images/interwiki/gentookorea-16.png and /dev/null differ diff --git a/images/interwiki/gnome-16.png b/images/interwiki/gnome-16.png deleted file mode 100644 index 95c4ff6e..00000000 Binary files a/images/interwiki/gnome-16.png and /dev/null differ diff --git a/images/interwiki/gnome2-16.png b/images/interwiki/gnome2-16.png deleted file mode 100644 index bd34e1bb..00000000 Binary files a/images/interwiki/gnome2-16.png and /dev/null differ diff --git a/images/interwiki/gnomekorea-16.png b/images/interwiki/gnomekorea-16.png deleted file mode 100644 index cd6ff4ba..00000000 Binary files a/images/interwiki/gnomekorea-16.png and /dev/null differ diff --git a/images/interwiki/gnu-16.png b/images/interwiki/gnu-16.png deleted file mode 100644 index 9e1e19f0..00000000 Binary files a/images/interwiki/gnu-16.png and /dev/null differ diff --git a/images/interwiki/google-16.png b/images/interwiki/google-16.png deleted file mode 100644 index 9bca6749..00000000 Binary files a/images/interwiki/google-16.png and /dev/null differ diff --git a/images/interwiki/gr-16.png b/images/interwiki/gr-16.png deleted file mode 100644 index 47a1a556..00000000 Binary files a/images/interwiki/gr-16.png and /dev/null differ diff --git a/images/interwiki/gtkref-16.png b/images/interwiki/gtkref-16.png deleted file mode 100644 index ca3e2cca..00000000 Binary files a/images/interwiki/gtkref-16.png and /dev/null differ diff --git a/images/interwiki/il-16.png b/images/interwiki/il-16.png deleted file mode 100644 index b34c46d4..00000000 Binary files a/images/interwiki/il-16.png and /dev/null differ diff --git a/images/interwiki/imdb-16.png b/images/interwiki/imdb-16.png deleted file mode 100644 index decdfcc5..00000000 Binary files a/images/interwiki/imdb-16.png and /dev/null differ diff --git a/images/interwiki/inter.png b/images/interwiki/inter.png deleted file mode 100644 index 9a623248..00000000 Binary files a/images/interwiki/inter.png and /dev/null differ diff --git a/images/interwiki/isbn-16.png b/images/interwiki/isbn-16.png deleted file mode 100644 index 977ebae4..00000000 Binary files a/images/interwiki/isbn-16.png and /dev/null differ diff --git a/images/interwiki/it-16.png b/images/interwiki/it-16.png deleted file mode 100644 index a6d0d35f..00000000 Binary files a/images/interwiki/it-16.png and /dev/null differ diff --git a/images/interwiki/ja-16.png b/images/interwiki/ja-16.png deleted file mode 100644 index ca4d983f..00000000 Binary files a/images/interwiki/ja-16.png and /dev/null differ diff --git a/images/interwiki/jangnan-16.png b/images/interwiki/jangnan-16.png deleted file mode 100644 index 89050f21..00000000 Binary files a/images/interwiki/jangnan-16.png and /dev/null differ diff --git a/images/interwiki/jargonfile-16.png b/images/interwiki/jargonfile-16.png deleted file mode 100644 index 67cfa3c8..00000000 Binary files a/images/interwiki/jargonfile-16.png and /dev/null differ diff --git a/images/interwiki/joiwiki-16.png b/images/interwiki/joiwiki-16.png deleted file mode 100644 index ccefd6ba..00000000 Binary files a/images/interwiki/joiwiki-16.png and /dev/null differ diff --git a/images/interwiki/kde-16.png b/images/interwiki/kde-16.png deleted file mode 100644 index e9a35387..00000000 Binary files a/images/interwiki/kde-16.png and /dev/null differ diff --git a/images/interwiki/kdekorea-16.png b/images/interwiki/kdekorea-16.png deleted file mode 100644 index 2c8c1da6..00000000 Binary files a/images/interwiki/kdekorea-16.png and /dev/null differ diff --git a/images/interwiki/kldpwiki-16.png b/images/interwiki/kldpwiki-16.png deleted file mode 100644 index bc29e4b0..00000000 Binary files a/images/interwiki/kldpwiki-16.png and /dev/null differ diff --git a/images/interwiki/kle-16.png b/images/interwiki/kle-16.png deleted file mode 100644 index 18d22560..00000000 Binary files a/images/interwiki/kle-16.png and /dev/null differ diff --git a/images/interwiki/ko-16.png b/images/interwiki/ko-16.png deleted file mode 100644 index 3e910af4..00000000 Binary files a/images/interwiki/ko-16.png and /dev/null differ diff --git a/images/interwiki/ktug-16.png b/images/interwiki/ktug-16.png deleted file mode 100644 index 29e298e6..00000000 Binary files a/images/interwiki/ktug-16.png and /dev/null differ diff --git a/images/interwiki/lovolnet-16.png b/images/interwiki/lovolnet-16.png deleted file mode 100644 index 50581b6b..00000000 Binary files a/images/interwiki/lovolnet-16.png and /dev/null differ diff --git a/images/interwiki/mailing-16.png b/images/interwiki/mailing-16.png deleted file mode 100644 index a11e872a..00000000 Binary files a/images/interwiki/mailing-16.png and /dev/null differ diff --git a/images/interwiki/mathworld-16.png b/images/interwiki/mathworld-16.png deleted file mode 100644 index 3d443d96..00000000 Binary files a/images/interwiki/mathworld-16.png and /dev/null differ diff --git a/images/interwiki/meatball-16.png b/images/interwiki/meatball-16.png deleted file mode 100644 index c71fcac3..00000000 Binary files a/images/interwiki/meatball-16.png and /dev/null differ diff --git a/images/interwiki/moinmoin-16.png b/images/interwiki/moinmoin-16.png deleted file mode 100644 index e731a751..00000000 Binary files a/images/interwiki/moinmoin-16.png and /dev/null differ diff --git a/images/interwiki/moniwiki-16.png b/images/interwiki/moniwiki-16.png deleted file mode 100644 index 8c9451ff..00000000 Binary files a/images/interwiki/moniwiki-16.png and /dev/null differ diff --git a/images/interwiki/mozilla-16.png b/images/interwiki/mozilla-16.png deleted file mode 100644 index 769c6363..00000000 Binary files a/images/interwiki/mozilla-16.png and /dev/null differ diff --git a/images/interwiki/nl-16.png b/images/interwiki/nl-16.png deleted file mode 100644 index 8c6d77fe..00000000 Binary files a/images/interwiki/nl-16.png and /dev/null differ diff --git a/images/interwiki/nosmoke-16.png b/images/interwiki/nosmoke-16.png deleted file mode 100644 index 4fc8c0ef..00000000 Binary files a/images/interwiki/nosmoke-16.png and /dev/null differ diff --git a/images/interwiki/nsmk-16.png b/images/interwiki/nsmk-16.png deleted file mode 100644 index 60980f7d..00000000 Binary files a/images/interwiki/nsmk-16.png and /dev/null differ diff --git a/images/interwiki/openwiki-16.png b/images/interwiki/openwiki-16.png deleted file mode 100644 index a7b6c340..00000000 Binary files a/images/interwiki/openwiki-16.png and /dev/null differ diff --git a/images/interwiki/php-16.png b/images/interwiki/php-16.png deleted file mode 100644 index 187f737a..00000000 Binary files a/images/interwiki/php-16.png and /dev/null differ diff --git a/images/interwiki/pt-16.png b/images/interwiki/pt-16.png deleted file mode 100644 index 08e90cad..00000000 Binary files a/images/interwiki/pt-16.png and /dev/null differ diff --git a/images/interwiki/python-16.png b/images/interwiki/python-16.png deleted file mode 100644 index b601b717..00000000 Binary files a/images/interwiki/python-16.png and /dev/null differ diff --git a/images/interwiki/rdfweb-16.png b/images/interwiki/rdfweb-16.png deleted file mode 100644 index 3f4cd8f6..00000000 Binary files a/images/interwiki/rdfweb-16.png and /dev/null differ diff --git a/images/interwiki/ru-16.png b/images/interwiki/ru-16.png deleted file mode 100644 index 9527711e..00000000 Binary files a/images/interwiki/ru-16.png and /dev/null differ diff --git a/images/interwiki/self-16.png b/images/interwiki/self-16.png deleted file mode 100644 index 8c9451ff..00000000 Binary files a/images/interwiki/self-16.png and /dev/null differ diff --git a/images/interwiki/sfreaders-16.png b/images/interwiki/sfreaders-16.png deleted file mode 100644 index a055cfa9..00000000 Binary files a/images/interwiki/sfreaders-16.png and /dev/null differ diff --git a/images/interwiki/sourceforge-16.png b/images/interwiki/sourceforge-16.png deleted file mode 100644 index e046f948..00000000 Binary files a/images/interwiki/sourceforge-16.png and /dev/null differ diff --git a/images/interwiki/sv-16.png b/images/interwiki/sv-16.png deleted file mode 100644 index 30568868..00000000 Binary files a/images/interwiki/sv-16.png and /dev/null differ diff --git a/images/interwiki/technorati-16.png b/images/interwiki/technorati-16.png deleted file mode 100644 index 0ff40e28..00000000 Binary files a/images/interwiki/technorati-16.png and /dev/null differ diff --git a/images/interwiki/twiki-16.png b/images/interwiki/twiki-16.png deleted file mode 100644 index 1e12952e..00000000 Binary files a/images/interwiki/twiki-16.png and /dev/null differ diff --git a/images/interwiki/twinpages-16.png b/images/interwiki/twinpages-16.png deleted file mode 100644 index ef843ae7..00000000 Binary files a/images/interwiki/twinpages-16.png and /dev/null differ diff --git a/images/interwiki/uploads-16.png b/images/interwiki/uploads-16.png deleted file mode 100644 index 8f7fe9ad..00000000 Binary files a/images/interwiki/uploads-16.png and /dev/null differ diff --git a/images/interwiki/us-16.png b/images/interwiki/us-16.png deleted file mode 100644 index c8ccde80..00000000 Binary files a/images/interwiki/us-16.png and /dev/null differ diff --git a/images/interwiki/usemod-16.png b/images/interwiki/usemod-16.png deleted file mode 100644 index f5bf7336..00000000 Binary files a/images/interwiki/usemod-16.png and /dev/null differ diff --git a/images/interwiki/user-16.png b/images/interwiki/user-16.png deleted file mode 100644 index 154ba78c..00000000 Binary files a/images/interwiki/user-16.png and /dev/null differ diff --git a/images/interwiki/wiki-16.png b/images/interwiki/wiki-16.png deleted file mode 100644 index 328621c9..00000000 Binary files a/images/interwiki/wiki-16.png and /dev/null differ diff --git a/images/interwiki/wikipedia-16.png b/images/interwiki/wikipedia-16.png deleted file mode 100644 index 49bf1bc7..00000000 Binary files a/images/interwiki/wikipedia-16.png and /dev/null differ diff --git a/images/interwiki/xper-16.png b/images/interwiki/xper-16.png deleted file mode 100644 index fed39f81..00000000 Binary files a/images/interwiki/xper-16.png and /dev/null differ diff --git a/images/interwiki/xxx-16.png b/images/interwiki/xxx-16.png deleted file mode 100644 index bc29e4b0..00000000 Binary files a/images/interwiki/xxx-16.png and /dev/null differ diff --git a/images/interwiki/yahoo-16.png b/images/interwiki/yahoo-16.png deleted file mode 100644 index bbe95097..00000000 Binary files a/images/interwiki/yahoo-16.png and /dev/null differ diff --git a/images/interwiki/zh-16.png b/images/interwiki/zh-16.png deleted file mode 100644 index d2196f40..00000000 Binary files a/images/interwiki/zh-16.png and /dev/null differ diff --git a/images/interwiki/zwiki-16.png b/images/interwiki/zwiki-16.png deleted file mode 100644 index e5823a3b..00000000 Binary files a/images/interwiki/zwiki-16.png and /dev/null differ diff --git a/images/mov.gif b/images/mov.gif deleted file mode 100644 index 791cfb1e..00000000 Binary files a/images/mov.gif and /dev/null differ diff --git a/images/mp3.gif b/images/mp3.gif deleted file mode 100644 index 3e0fa85d..00000000 Binary files a/images/mp3.gif and /dev/null differ diff --git a/images/mpeg.gif b/images/mpeg.gif deleted file mode 100644 index f12adeef..00000000 Binary files a/images/mpeg.gif and /dev/null differ diff --git a/images/n.gif b/images/n.gif deleted file mode 100644 index 1102ac2a..00000000 Binary files a/images/n.gif and /dev/null differ diff --git a/images/php.gif b/images/php.gif deleted file mode 100644 index 4c9fb83f..00000000 Binary files a/images/php.gif and /dev/null differ diff --git a/images/pic.gif b/images/pic.gif deleted file mode 100644 index 021e064b..00000000 Binary files a/images/pic.gif and /dev/null differ diff --git a/images/quote.gif b/images/quote.gif deleted file mode 100644 index d1992273..00000000 Binary files a/images/quote.gif and /dev/null differ diff --git a/images/ra.gif b/images/ra.gif deleted file mode 100644 index 58e1ea46..00000000 Binary files a/images/ra.gif and /dev/null differ diff --git a/images/rep.gif b/images/rep.gif deleted file mode 100644 index 270bed99..00000000 Binary files a/images/rep.gif and /dev/null differ diff --git a/images/rm.gif b/images/rm.gif deleted file mode 100644 index 7c5e2bc5..00000000 Binary files a/images/rm.gif and /dev/null differ diff --git a/images/rpm.gif b/images/rpm.gif deleted file mode 100644 index d74607ff..00000000 Binary files a/images/rpm.gif and /dev/null differ diff --git a/images/t.gif b/images/t.gif deleted file mode 100644 index 0c1b5b9d..00000000 Binary files a/images/t.gif and /dev/null differ diff --git a/images/txt.gif b/images/txt.gif deleted file mode 100644 index 9012ce07..00000000 Binary files a/images/txt.gif and /dev/null differ diff --git a/images/up.gif b/images/up.gif deleted file mode 100644 index 300246a7..00000000 Binary files a/images/up.gif and /dev/null differ diff --git a/include/check.ph b/include/check.ph new file mode 100644 index 00000000..c2b79639 --- /dev/null +++ b/include/check.ph @@ -0,0 +1,172 @@ += 0xa1 && $char <= 0xfe) + return 1; +} + +// ĺ ׸ 빮(0x41 - 0x5a) ҹ(0x61 - 0x7a) +// ˻ϴ Լ +// +// ord - ASCII +// http://www.php.net/manual/function.ord.php3 +function is_alpha($char) { + $char = ord($char); + + if($char >= 0x61 && $char <= 0x7a) + return 1; + if($char >= 0x41 && $char <= 0x5a) + return 2; +} + +function mode_check ($up,$op,$sp) { + + global $nopass, $pass_alert ; + + if (!$up) { + echo("\n") ; + exit ; + } else { + if ($up != $op && $up != $sp) { + echo("\n") ; + exit ; + } + } +} + +?> diff --git a/include/check.php b/include/check.php deleted file mode 100644 index 6985e374..00000000 --- a/include/check.php +++ /dev/null @@ -1,607 +0,0 @@ - -# $i -> null ̶ 1 -# $t -> table ̸ ˻ 1 -# -function meta_char_check($name,$i=0,$t=0) { - if (!$i && !trim($name)) print_error("Table Value Name Missing! You must specify a value",250,150,1); - if ($t && !preg_match("/^[a-z]/i",$name)) print_error("$name Value must start with an alphabet",250,150,1); - if (preg_match("/[^a-z0-9_-]/i",$name)) print_error("Can't use special characters except alphabat, numberlic , _, - charcters",250,150,1); - if ($t && preg_match("/^as$/i",$name)) print_error("Cat't use table name as "as"",250,150,1); -} - -# αο Ǵ Password Լ -# -function compare_pass($l) { - global $_, $edb; - $r = get_authinfo($l['id'],$edb['crypts']); - - if($edb['uses'] && $edb['crypts']) { - if (crypt($r['passwd'],$l['pass']) != $l['pass']) print_pwerror($_('ua_pw_c')); - } else { - if ($r['passwd'] != $l['pass']) print_pwerror($_('ua_pw_c')); - } -} - -# ڿ ѱ ԵǾ ִ ˻ϴ Լ -# -# ord - ASCII -# http://www.php.net/manual/function.ord.php -function is_hangul($char) { - # Ư ڰ ѱ (0xA1A1 - 0xFEFE) ִ ˻ - $char = ord($char); - - if($char >= 0xa1 && $char <= 0xfe) - return 1; -} - -# ĺ ׸ 빮(0x41 - 0x5a) ҹ(0x61 - 0x7a) -# ˻ϴ Լ -# -# ord - ASCII -# http://www.php.net/manual/function.ord.php -function is_alpha($char) { - $char = ord($char); - - if($char >= 0x61 && $char <= 0x7a) - return 1; - if($char >= 0x41 && $char <= 0x5a) - return 2; -} - -# URL Ȯ ˻ϴ Լ -# -function check_url($url) { - $url = trim($url); - - # (http://, ftp://...) Ÿ κ ⺻ - # http:// - if(!preg_match("/^(http|https|ftp|telnet|news):\/\//i", $url)) - $url = "http://$url"; - - if(!preg_match("/(http|https|ftp|telnet|news):\/\/[\xA1-\xFEa-z0-9-]+\.[\xA1-\xFEa-zA-Z0-9,:&#@=_~%?\/.+-]+$/i", $url)) - return; - - return $url; -} - -# E-MAIL ּҰ Ȯ ˻ϴ Լ -# -# gethostbynamel - ȣƮ ̸ ip -# http://www.php.net/manual/function.gethostbynamel.php -# checkdnsrr - ͳ ȣƮ ̳ IP 巹 Ǵ DNS ڵ带 üũ -# http://www.php.net/manual/function.checkdnsrr.php -function check_email($email,$hchk=0) { - $url = trim($email); - if($hchk) { - $host = explode("@",$url); - if(preg_match("/^[\xA1-\xFEa-z0-9_-]+@[\xA1-\xFEa-z0-9_-]+\.[a-z0-9._-]+$/i", $url)) { - if(!check_windows() || version_compare('5.3.0',phpversion(),'>=') { - if(checkdnsrr($host[1],"MX") || gethostbynamel($host[1])) return $url; - else return; - } else { - if(gethostbynamel($host[1])) return $url; - else return; - } - } - } else { - if(preg_match("/^[\xA1-\xFEa-z0-9_-]+@[\xA1-\xFEa-z0-9_-]+\.[a-z0-9._-]+$/i", $url)) return $url; - else return; - } -} - -# н Լ -# -# crpyt - ڿ DES ȣȭ -# http://www.php.net/manual/function.crypt.php -function check_passwd($table,$no,$passwd) { - global $jsboard, $board, $o, $c, $db; - - if($board['mode'] && session_is_registered("$jsboard")) $sql_field = "name"; - else $sql_field = "passwd"; - - $passwd = !trim($passwd) ? "null passwd" : $passwd; - - $table = ($table && $o['at'] == "c_del") ? $table."_comm" : $table; - - if ($table && $no) { - $result = sql_query("SELECT $sql_field FROM $table WHERE no = '$no'", $c); - $r['chk'] = sql_result($result,0,"$sql_field"); - sql_free_result($result); - } - - if (session_is_registered("$jsboard")) { - if($_SESSION[$jsboard]['id'] == $r['chk']) $chk = 1; - if($_SESSION[$jsboard]['pos'] == 1) $chk = 2; - } - - if(!$chk) { - if(crypt($passwd,$r['chk']) == $r['chk']) $chk = 1; - } - - if(!$chk || $chk == 1) { - # ü н - $result = sql_query("SELECT passwd FROM userdb WHERE position = 1", $c); - $r['su'] = sql_result($result,0,"passwd"); - sql_free_result($result); - - if($r['su'] == crypt($passwd,$r['su'])) $chk =2; - - if($chk != 2) { - $arrayadm = explode(";",$board['ad']); - for($i=0;$i
$page ° page Դϴ" ; + } else { + if ($apage == "0") { + $page_msg = "No page .. " ; + } else if ($page == "1") { + $page_msg = "Current page is $page th page of Total $apage page" ; + } else { + $page_msg = "Current page is $page th page of Total $apage pages" ; + } + } + return $page_msg ; + +} + + +?> \ No newline at end of file diff --git a/include/ostype.php b/include/ostype.php deleted file mode 100644 index 657bb859..00000000 --- a/include/ostype.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/include/parse.php b/include/parse.php deleted file mode 100644 index d4c1708c..00000000 --- a/include/parse.php +++ /dev/null @@ -1,796 +0,0 @@ - GET ȯ) -# -# trim - ڿ ڸ -# http://www.php.net/manual/function.trim.php -# rawurlencode - RFC1738 ° URL ȣȭ -# http://www.php.net/manual/function.rawurlencode.php -function search2url($o, $method = "get") { - if($o['at'] != "s" && $o['at'] != "d") return; - - $str = trim($o['ss']); - $str = stripslashes($str); - - unset($o['go']); - - for($i = 0; $i < count($o); $i++) { - $key = key($o); - $value = current($o); - - if($method == "get") { - $value = rawurlencode($value); - $url .= "&o[$key]=$value"; - } else $url .= "\n"; - - next($o); - } - - $url = preg_replace("/(%5C)%5C/i","\\1",$url); - return $url; -} - -# ˻ Ѿ SQL ǹ ٲ -# -# trim - ڿ ڸ -# http://www.php.net/manual/function.trim.php -# rawurldecode - ȣȭ URL ȣȭ -# http://www.php.net/manual/function.rawurldecode.php -function search2sql($o, $wh = 1, $join = 0) { - global $_; - if($o['at'] != "s" && $o['at'] != "d") return; - - $str = rawurldecode($o['ss']); # ˻ ڿ ȣȭ - $str = trim($str); - $join = $join ? "tb." : ""; - - if(strlen(stripslashes($str)) < 3 && !$o['op']) { - if($o['sc'] != "r" && $o['st'] != "t") - print_error($_('nsearch'),250,150,1); - } - - if(!$o['er']) { - # % SQL ǿ And ̹Ƿ \ ٿ Ϲ Ÿ - $str = str_replace("%","\%",$str); - if($o['at'] != "d") { - # \%\% and Ͽ % - $str = str_replace("\%\%","%",$str); - } - $str = addslashes($str); - - if (preg_match("/[\"']/",$str)) print_error($_('nochar'),250,150,1); - } else { - # ǥ: ˻ "[,(" "],)" üũ - $chk = preg_replace("/\\\([\]\[()])/i","",$str); - $chk = preg_replace("/[^\[\]()]/i","",$chk); - - $chkAOpen = strlen(preg_replace("/\]/i","",$chk)); - $chkAClos = strlen(preg_replace("/\[/i","",$chk)); - $chkBOpen = strlen(preg_replace("/\)/i","",$chk)); - $chkBClos = strlen(preg_replace("/\(/i","",$chk)); - - if($chkAOpen !== $chkAClos) $str .= "]"; - elseif($chkBOpen !== $chkBClos) $str .= ")"; - } - - if($o['at'] == "d") { - # ˻ ڿ ˻ и - $src = array("/\\\\\\\\/i","/\\\\\+/i","/\\\\\-/i","/\+/i","/\-/i"); - $tar = array("\\","!pluschar!","!minuschar!","!explode!p!","!explode!m!"); - $strs = preg_replace($src,$tar,$str); - $strs = str_replace("!pluschar!","+",$strs); - $strs = str_replace("!minuschar!","-",$strs); - $strs = explode("!explode",$strs); - - for($i=0;$i', ''); - if(!$o['ss']) return $list; - - $str = rawurldecode($o['ss']); - $str = trim($str); - $str = stripslashes($str); - - # ǥ: ˻ "[,(" "],)" üũ - if ($o['er']) { - $chk = preg_replace("/\\\([\]\[()])/i","",$str); - $chk = preg_replace("/[^\[\]()]/i","",$chk); - - $chkAOpen = strlen(preg_replace("/\]/i","",$chk)); - $chkAClos = strlen(preg_replace("/\[/i","",$chk)); - $chkBOpen = strlen(preg_replace("/\)/i","",$chk)); - $chkBClos = strlen(preg_replace("/\(/i","",$chk)); - - if($chkAOpen !== $chkAClos) { - $str .= "]"; - $o['ss'] .= "]"; - } elseif($chkBOpen !== $chkBClos) { - $str .= ")"; - $o['ss'] .= ")"; - } - } - - # regex 浹Ǵ escape ó - $dead = array("/\?|\)|\(|\*|\.|\^|\+|\%/i"); - $live = array("\\\\\\0"); - $str = preg_replace($dead,$live,$str); - - if($o['at'] != "d") { - # %% ˻ ʿ - $strs = explode("%%",str_replace("/","\/",$str)); - } else { - $src = array("/\\\\\\\\/i","/\\\\\+/i","/\\\\\-/i","/\+/i","/\-/i","/\//i"); - $tar = array("\\","!pluschar!","!minuschar!","!explode!","!explode!","\/"); - $strs = preg_replace($src,$tar,$str); - $strs = str_replace("!pluschar!","+",$strs); - $strs = str_replace("!minuschar!","-",$strs); - $strs = explode("!explode!",$strs); - } - - $regex1 = "(<\/?)]+>([^<]+)<\/FONT>([^>]*>)"; - $regex2 = "(<\/?FONT[^<>]+)]+>([^<]+)<\/FONT>([^>]*>)"; - $regex3 = "(HREF|SRC)=([^<>]*){$hl[0]}([^<]*)<\/FONT>([^>]*)"; - - $src = array("/$regex1/i","/$regex2/i"); - $tar = array("\\1\\2\\3","\\1\\2\\3"); - $tsrc = array("/$regex1/i","/$regex2/i","/$regex3/i"); - $ttar = array("\\1\\2\\3","\\1\\2\\3","\\1=\\2\\3\\4"); - - if(!$o['er']) $str = checkquote($str); - - switch($o['sc']) { - case 'n': - for($i=0;$i $len ) { - if ( ord ($_bufs[$len - 1]) & 0x80 ) { - $z = strlen(preg_replace ('/[\x00-\x7F]/', '', substr ($_bufs, 0, $len))); - $cut = ( $z % 2 ) ? $len - 1 : $len; - } else - $cut = $len; - - $_bufs = substr ($_buf[$i], 0, $cut); - $_bufsno = quote_len ($_bufs); - $cut += $_bufsno; - $buf .= substr ($_buf[$i], 0, $cut) . "\n"; - - if ( preg_match ('/^(: )+/', $_buf[$i], $matches) ) { - $next = $matches[0] . substr ($_buf[$i], $cut); - if ( ! strncmp ($matches[0], $_buf[$i+1], strlen ($matches[0])) ) - $_buf[$i+1] = $next . ' ' . preg_replace ('/^(: )+/', '', $_buf[$i+1]); - else - $buf .= $next . "\n"; - } else { - if ( preg_match ('/^[\s]*$/', $_buf[$i+1]) ) { - $next = substr ($_buf[$i], $cut); - if ( strlen ($next) > $len ) { - $_buf[$i] = $next; - $i--; - } else - $buf .= $next . "\n"; - } else - $_buf[$i+1] = substr ($_buf[$i], $cut) . ' ' . $_buf[$i+1]; - } - } else - $buf .= $_buf[$i] . "\n"; - } - $buf = htmlspecialchars ($buf); -} - -function js_htmlcode(&$buf) { - global $enable, $agent; - - if(!is_object($enable['tag'])) - return; - - foreach($enable['tag'] as $v) { - if($v == 'code') - continue; - $reg .= $v . '|'; - } - $reg = preg_replace ('/\|$/', '', $reg); - $reg = "!\[(/?({$reg}))\]!i"; - - $buf = preg_replace ($reg, '<\\1>', $buf); - unset($reg); - $reg[] = "/\[code\][\r\n]*/i"; - $reg[] = "/[\r\n]*\[\/code\]/i"; - $reg[] = '/^[: ]*:
  • /i","/]+>/i","/\r\n/", - "/<(\/*(script|style|pre|xmp|xml|base|span|html)[^>]*)>/i","/(=[0-9]+%)>/i"); - $target = array("<\\1","\\1>","","\n","<\\1>","\\1>"); - $text = preg_replace($source,$target,$text); - if(!preg_match("/<--no-autolink>/i",$text)) $text = auto_link($text); - else $text = chop(str_replace("<--no-autolink>","",$text)); - - $text = preg_replace("/(\n)?(\n)?/i","
    ",$text);
    -    $text = !$text ? "No Contents" : $text;
    -    $text = "
    $text
    "; - } else { - $text = htmlspecialchars($text); - # ѱ ° - if ($_code == 'ko') $text = ugly_han($text); - if ($html) - new_read_format($text); - else - $text = "
    \n$text\n
    "; - $text = auto_link($text); - } -} - -function delete_tag(&$var) { - if ( $var['html'] != 1 ) - return; - - $src = array("/\n/i","/]*>/i","/<\/body.*<\/html>.*/i", - "/<\/*(div|span|layer|body|html|head|meta|input|select|option|form)[^>]*>/i", - "/<(style|script|title).*<\/(style|script|title)>/i", - "/<\/*(script|style|title|xmp|xml)>/i","/<(\\?|%)/i","/(\\?|%)>/i","/(=[0-9]+%)>/i", - "/#\^--ENTER--\^#/i"); - $tar = array("#^--ENTER--^#","","","","","","<\\1","\\1>","\\1>","\n"); - - $var['text'] = chop(preg_replace($src,$tar,$var['text'])); -} - -# ڿ ̷ ڸ Լ -# -# substr - ڿ ߶ -# http://www.php.net/manual/function.substr.php -function cut_string($s,$l) { - if(strlen($s) > $l) { - $s = substr($s,0,$l); - $s = preg_replace("/(([\x80-\xFE].)*)[\x80-\xFE]?$/","\\1",$s); - } - return $s; -} - - -# 뿡 ִ URL ãƳ ڵ ũ ִ Լ -# -# preg_replace - ǥ ̿ ġȯ -# http://www.php.net/manual/function.preg-replace.php -function auto_link($str) { - global $agent,$rmail,$print; - - $regex['file'] = "gz|tgz|tar|gzip|zip|rar|mpeg|mpg|exe|rpm|dep|rm|ram|asf|ace|viv|avi|mid|gif|jpg|png|bmp|eps|mov"; - $regex['file'] = "(\.({$regex['file']})\") TARGET=\"_blank\""; - $regex['http'] = "(http|https|ftp|telnet|news|mms):\/\/(([\xA1-\xFEa-z0-9:_\-]+\.[\xA1-\xFEa-z0-9,:;&#=_~%\[\]?\/.,+\-]+)([.]*[\/a-z0-9\[\]]|=[\xA1-\xFE]+))"; - $regex['mail'] = "([\xA1-\xFEa-z0-9_.-]+)@([\xA1-\xFEa-z0-9_-]+\.[\xA1-\xFEa-z0-9._-]*[a-z]{2,3}(\?[\xA1-\xFEa-z0-9=&\?]+)*)"; - - # < ؼ 3ٵڿ > - # IMG tag A tag ũ ٿ ̷ - # ̸ ٷ ħ (ġ鼭 ΰ ɼǵ ) - $src[] = "/<([^<>\n]*)\n([^<>\n]+)\n([^<>\n]*)>/i"; - $tar[] = "<\\1\\2\\3>"; - $src[] = "/<([^<>\n]*)\n([^\n<>]*)>/i"; - $tar[] = "<\\1\\2>"; - $src[] = "/<(A|IMG)[^>]*(HREF|SRC)[^=]*=[ '\"\n]*({$regex['http']}|mailto:{$regex['mail']})[^>]*>/i"; - $tar[] = "<\\1 \\2=\"\\3\">"; - - # email ̳ URL Ե URL ȣ @ ġȯ - $src[] = "/(http|https|ftp|telnet|news|mms):\/\/([^ \n@]+)@/i"; - $tar[] = "\\1://\\2_HTTPAT_\\3"; - - # Ư ڸ ġȯ html link ȣ - $src[] = "/&(quot|gt|lt)/i"; - $tar[] = "!\\1"; - $src[] = "/]*)href=[\"' ]*({$regex['http']})[\"']*[^>]*>/i"; - $tar[] = ""; - $src[] = "/href=[\"' ]*mailto:({$regex['mail']})[\"']*>/i"; - $tar[] = "href=\"mailto:\\2#-#\\3\">"; - $src[] = "/<([^>]*)(background|codebase|src)[ \n]*=[\n\"' ]*({$regex['http']})[\"']*/i"; - $tar[] = "<\\1\\2=\"\\4_orig://\\5\""; - - # ũ ȵ url email address ڵũ - $src[] = "/((SRC|HREF|BASE|GROUND)[ ]*=[ ]*|[^=]|^)({$regex['http']})/i"; - $tar[] = "\\1\\3"; - $src[] = "/({$regex['mail']})/i"; - $tar[] = "\\1"; - $src[] = "/]+>(]+>)/i"; - $tar[] = "\\1"; - $src[] = "/<\/a><\/a>/i"; - $tar[] = ""; - - # ȣ ġȯ ͵ - $src[] = "/!(quot|gt|lt)/i"; - $tar[] = "&\\1"; - $src[] = "/(http|https|ftp|telnet|news|mms)_orig/i"; - $tar[] = "\\1"; - $src[] = "'#-#'"; - $tar[] = "@"; - $src[] = "/{$regex['file']}/i"; - $tar[] = "\\1"; - - # email ּҸ Ŵ - $src[] = "/mailto:[ ]*{$regex['mail']}/i"; - $tar[] = "javascript:sendform('\\1','\\2','');"; - $src[] = "/{$regex['mail']}/i"; - #$tar[] = "\\1at\\2"; - $tar[] = "\\1at\\2"; - $src[] = "/<>/"; - $tar[] = ">>"; - - # email ּҸ URL @ - $src[] = "/_HTTPAT_/"; - $tar[] = "@"; - - # ̹ 0 - $src[] = "/<(img src=\"[^\"]+\")>/i"; - $tar[] = "<\\1 border=0>"; - - # IE ƴ embed tag - if($agent['br'] != "MSIE" && $agent['br'] != 'Firefox') { - $src[] = "/]+>/i', '', $str); - } else { - $strs = $str; - } - - $strs = str_replace ("'", "\'", $strs); - $_div = explode ('@', $url); - - $str = "$str"; - } else if(check_url($url)) { - $str = "{$str}"; - } else { - if($str == $url) $str = ""; - $str = "$str"; - } - - return $str; -} - -# File upload Լ -# -# -# mkdir -> directory -# is_upload_file -> upload file 缺 -# move_upload_file -> tmp uploadǾ ִ ϴ 丮 ġ -# chmod -> file, direcoty -# -function file_upload($fn,$updir) { - global $upload, $_, $table; - - $ufile['name'] = $_FILES[$fn]['name']; - $ufile['size'] = $_FILES[$fn]['size']; - $ufile['type'] = $_FILES[$fn]['type']; - $ufile['tmp_name'] = $_FILES[$fn]['tmp_name']; - - if(is_uploaded_file($ufile['tmp_name']) && $ufile['size'] > 0) { - if ($ufile['size'] > $upload['maxsize']) { - print_error($_('act_md'),250,150,1); - exit; - } - - # file name - $ufile['name'] = str_replace(" ","",urldecode($ufile['name'])); - - # file name Ư ڰ ź - upload_name_chk($ufile['name']); - - # php, cgi, pl file uploadҽÿ Ҽ phps, cgis, pls filename - $_parseName = explode ('.', $ufile['name']); - $_parsePart = count ($_parseName); - - $ufile['name'] = ''; - for ( $i=0; $i<$_parsePart; $i++ ) { - $_sep = ( $i && $i != $_parsePart - 1 ) ? '_' : '.'; - if ( ! $i ) $_sep = ""; - $ufile['name'] .= "$_sep{$_parseName[$i]}"; - } - - $fcname[0] = "/\.*$/"; - $fvname[0] = ""; - $fcname[1] = "/\.(ph|inc|php[0-9a-z]*|phtml)$/i"; - $fvname[1] = ".phps"; - $fcname[2] = "/(.*)\.(cgi|pl|sh|html|htm|shtml|vbs)$/i"; - $fvname[2] = "\\1_\\2.phps"; - $fcname[3] = "/(_tar)\.(gz|bz2)$/i"; - $fvname[3] = ".\\1.\\2"; - - $ufile['name'] = preg_replace($fcname, $fvname, $ufile['name']); - - mkdir("data/$table/{$upload['dir']}/$updir",0755); - move_uploaded_file($ufile['tmp_name'],"data/$table/{$upload['dir']}/$updir/".$ufile['name']); - chmod("data/$table/{$upload['dir']}/$updir/{$ufile['name']}",0644); - - $up = 1; - } elseif($ufile['name']) { - if($ufile['size'] == '0') { - print_error($_('act_ud'),250,150,1); - } else { - print_error($_('act_ed'),250,150,1); - } - exit; - } - if($up) return $ufile; -} - -# HTML entry Ư Ư ڷ ȯ -# (htmlspecialchars Լ Լ) -# -# get_html_translation_table - htmlspecialchars() htmlentities() Լ -# ϴ ȯ ̺ 迭 ȯ -# array_flip - 迭 ݴ -# -function unhtmlspecialchars($t) { - $tr = array_flip(get_html_translation_table(HTML_SPECIALCHARS)); - $t = strtr(str_replace("'","'",$t),$tr); - $t = strtr(str_replace("&","&",$t),$tr); - - return $t; -} - -# Emoticon ȯ Լ -function conv_emoticon(&$str, $opt=0) { - if (!$opt) return $str; - - $src[] = "/\^\^|\^\.\^/"; - $con[] = "emoticon"; - $src[] = '/([^0-9a-z])T\.T([^0-9a-z])/i'; - $con[] = "\\1emoticon\\2"; - $src[] = '/\?\.\?/'; - $con[] = "emoticon"; - $src[] = '/([^0-9a-z]):-?(\(|<)([^0-9a-z])/'; - $con[] = "\\1emoticon\\3"; - $src[] = '/([^0-9a-z])(:-?(\)|>)|n\.n)([^0-9a-z])/'; - $con[] = "\\1emoticon\\4"; - $src[] = '/([^0-9])0\.0([^0-9])/'; - $con[] = "\\1emoticon\\2"; - $src[] = '/([^0-9a-z])O\.O([^0-9a-z])/i'; - $con[] = "\\1emoticon\\2"; - $src[] = '/-\.?-V/'; - $con[] = "emoticon"; - $src[] = '/([^0-9a-z])(-_-|-\.-)([^0-9a-z])/'; - $con[] = "\\1emoticon\\3"; - $src[] = '/-0-|^0^|-O-|^O^/'; - $con[] = "emoticon"; - $src[] = '/([^0-9a-z]):-?D([^0-9a-z])/'; - $con[] = "\\1emoticon\\2"; - $src[] = '/([^0-9a-z]);-?\)([^0-9a-z])/'; - $con[] = "\\1emoticon\\2"; - $src[] = '/([^0-9a-z])\^_\^([^0-9a-z])/'; - $con[] = "\\1emoticon\\2"; - $src[] = '/([^0-9a-z]):-P|:P([^0-9a-z])/'; - $con[] = "\\1emoticon\\2"; - - $str = preg_replace($src, $con, $str); - $str = str_replace(".", "emoticon", $str); - $str = str_replace(".", "emoticon", $str); - $str = str_replace("_", "emoticon", $str); - $str = str_replace("̤", "emoticon", $str); - $str = str_replace("Ф", "emoticon", $str); -} - -function checkquote ( $str ) { - $str = preg_quote ($str); - $str = str_replace ("\\\\/", "\\/", $str); - - return $str; -} - -function sql_parser () { - $_argno = func_num_args (); - $_arg = func_get_args (); - - $type = $_arg[0]; - $table = $_arg[1]; - - switch ( $_argno) { - case 4 : - if ( is_numeric ($_arg[2]) ) { - $acc = $_arg[2]; - $name = $_arg[3]; - } else { - $acc = $_arg[3]; - $name = $_arg[2]; - } - break; - case 3 : - if ( is_numeric ($_arg[2]) ) { - $acc = $_arg[2]; - $name = ''; - } else { - $acc = 0; - $name = $_arg[2]; - } - break; - default : - $acc = 0; - $name = ''; - } - - - switch ( $acc ) { - case 2 : $_base = '../../SQL'; break; - case 1 : $_base = '../SQL'; break; - default : $_base = './SQL'; - } - - $_file = "{$_base}/{$type}/{$table}.sql"; - - #$_rr = trim (readfile_r ($_file)); - #if ( ! $_rr ) return ''; - #$_rr = preg_replace ('/#.*|[\s]+$/', '', $_rr); - #$_r = explode (';', $_rr); - #$_r = preg_replace ('/^[\s]+/', '', $_r); - - $_rr = @file ($_file); - $_rr = preg_replace ('/[\s]+$|#.*/', '', $_rr); - - $i = -1; - foreach ( $_rr as $_v ) { - if ( $_v == '') - continue; - - if ( $_v[0] == "\t" || $_v[0] == ' ' ) - $_r[$i] .= "\n" . $_v; - else { - if ( $_r[$i] ) - $_r[$i] = preg_replace ('/;$/', '', trim ($_r[$i])); - - $i++; - $_r[$i] = trim ($_v); - } - } - - if ( $name ) - $_r = preg_replace ('/@table@/', $name, $_r); - - return $_r; -} - -function parse_referer () { - $referer = parse_url ($_SERVER['HTTP_REFERER']); - $referer['basename'] = basename ($referer['path']); - - if ( ! is_array ($referer) ) - return; - - parse_str ($referer['query'], $ref); - - if ( ! is_array ($ref) ) - return; - - return array_merge ($ref, $referer); -} -?> diff --git a/include/prelist.php b/include/prelist.php deleted file mode 100644 index 2ff1d347..00000000 --- a/include/prelist.php +++ /dev/null @@ -1,124 +0,0 @@ -\n" . - "
    \n" . - "\n"; -} - -$_prlist_init++; - -$prcode = isset ($prlist['code']) ? $prlist['code'] : 'en'; -putenv ("JSLANG={$prcode}"); - -require_once "{$prlist['path']}/language/lang.php"; -include_once "{$prlist['path']}/include/variable.php"; - -include_once "{$prlist['path']}/config/global.php"; -include_once "{$prlist['path']}/include/error.php"; -include_once "{$prlist['path']}/include/parse.php"; -include_once "{$prlist['path']}/include/check.php"; -include_once "{$prlist['path']}/database/db.php"; -include_once "{$prlist['path']}/include/get.php"; -include_once "{$prlist['path']}/include/print.php"; - -# ۸Ʈ ϴ design -# echo "" ̿ -# Ұ ǥ(") \" ǥ⸦ ؾ -# $p['link'] -> Ʈ ũ -# $p['name'] -> ۾ -# $p['date'] -> -# $p['count'] -> ȸ -# -# table tag ϱ ؼ Ʒ prelist() Լ -# ؾ -# -# $prlistTemplate Ǿ 쿡 -# ̿Ͽ -# -function print_prlist($p) { - $temp = trim($GLOBALS['prlistTemplate']) ? $GLOBALS['prlistTemplate'] : ""; - if ($temp) { - $src[] = "/P_SUBJECT_/i"; - $des[] = $p['link']; - $src[] = "/P_NAME_/i"; - $des[] = $p['name']; - $src[] = "/P_DATE_/i"; - $des[] = $p['date']; - $src[] = "/P_EMAIL_/i"; - $des[] = $p['email']; - $src[] = "/P_REFER_/i"; - $des[] = $p['count']; - if ($p['email']) { - $src[] = "/P_LNAME_/i"; - $des[] = "{$p['name']}"; - } else { - $src[] = "/P_LNAME_/i"; - $des[] = $p['name']; - } - - echo preg_replace($src,$des,$temp)."\n"; - } else { - echo "{$p['link']} {$p['name']} {$p['date']} {$p['count']}
    \n"; - } -} - -# PHP ؼ 𸣽Ŵٰ Ͻô е ǵ帮 !!! -# table ̸ -# $limit ۼ -# $cut ±ڼ -# -function prelist($t,$limit=3,$cut=30) { - global $prlist, $db; - - $_pvc = sql_connect($db['server'], $db['user'], $db['pass'], $db['name']); - $GLOBALS['_pvc'] = $_pvc; - - $_limit = compatible_limit (0, $limit); - $sql = "SELECT * FROM $t ORDER BY date DESC $_limit"; - $result = sql_query($sql, $_pvc); - - while ( $row = sql_fetch_array ($result) ) { - $p['no'] = $row['no']; - $p['title'] = $row['title']; - - $p['name'] = $row['name']; - $p['date'] = date("y.m.d",$row['date']); - $p['email'] = $row['email']; - $p['count'] = $row['refer']; - if ( $GLOBALS['prlistOpt'] ) - $p['l'] = " ".$GLOBALS['prlistOpt']; - - $p['preview'] = cut_string(htmlspecialchars($row['text']),100); - $p['preview'] = preg_replace_callback ('/[#\'\x5c]/','escape_callback',$p['preview']); - $p['preview'] = htmlspecialchars(htmlspecialchars($p['preview'])); - $p['preview'] = preg_replace("/\r?\n/i","
    ",$p['preview']); - $p['preview'] = trim(str_replace("&amp;","&",$p['preview'])); - $p['preview'] = " onMouseOver=\"drs('{$p['preview']}'); return true;\" onMouseOut=\"nd(); return true;\""; - - if($cut) { - if(strlen($p['title']) > $cut) - { $p['title'] = cut_string($p['title'],$cut).".."; } - } - - $p['link'] = "{$p['title']}"; - - #Ʈ - print_prlist($p); - } - - sql_free_result($result); - sql_close($_pvc); -} - -function escape_callback ($matches) { - return '&#x' . strtoupper (dechex (ord ($matches[0]))) . ';'; -} -?> diff --git a/include/print.php b/include/print.php deleted file mode 100644 index 76cc2181..00000000 --- a/include/print.php +++ /dev/null @@ -1,777 +0,0 @@ - $value) { - global ${$key}; - confirm_variable ($key, $value); - ${$key} = $value; - } - } - - if(count($_POST)) { - foreach($_POST as $key => $value) { - global ${$key}; - confirm_variable ($key, $value); - ${$key} = $value; - } - } -} - -# ϴ ̵Ű Լ -function move_page($path,$time = 0) { - $path = str_replace(" ","%20",$path); - echo ""; -} - -function move_page_js ($path) { - $path = str_replace(" ","%20",$path); - echo "\n"; - exit; -} - -# ݽ ͽ FORM Էâ ũ ̸ ϱ -# intval - ȯ -# http://www.php.net/manual/function.intval.php -function form_size($size, $print = 0) { - global $_code, $agent; - - # for Nescape - if($agent['br'] == 'NS' && $agent['vr'] <= 4) { - if($agent['os'] == 'NT') { - if($agent['ln'] == 'KO') $size *= 1.1; # ѱ - else { - if ($_code == 'ko') $size *= 2.6; - else $size *= 1.4; - } - } else if($agent['os'] == 'WIN') { - if($agent['ln'] == 'KO') $size *= 1.1; # ѱ - else $size *= 1.3; - } elseif($agent['os'] == 'LINUX') { - if($agent['ln'] == 'KO') $size *= 2.8; # ѱ - else $size *= 1.0; - } - } - - # Nescape 6 or Mozilla - else if($agent['nco'] == 'moz') { - if($agent['os'] == 'NT') { - if($agent['ln'] == 'KO') $size *= 2.2; # ѱ - else { - if ($_code == 'ko') $size *= 2.3; - else $size *= 1.8; - } - } else $size *= 1.9; - } - - # ͳ ͽ÷η - else if($agent['br'] == 'MSIE' || $agent['br'] == 'Firefox') { - if ($agent['os'] == 'NT') - if ($_code == 'ko') $size *= 2.3; - else $size *= 2.0; - else $size *= 2.3; - } - - else if($agent['tx']) $size *= 2; - else if($agent['br'] == 'KONQ') $size *= 2.6; - - $size = intval($size); - if($print) echo $size; - - return $size; -} - -# , ($num)ŭ ϴ Լ -function page_list($table, $pages, $count, $num, $print = 0) { - global $o; # ˻ - - $search = search2url($o); - - if(!$pages['cur']) { - if($print) echo " "; - return " "; - } - - $d0 = $pages['cur'] - $num - 1; - $d1 = $pages['all'] - ($pages['cur'] + $num); - - if($d0 < 1) { - $num_p = $num - $d0; - $num_m = $num_p - ($num * 2); - } else if($d1 < 1) { - $num_p = $num + $d1; - $num_m = $num_p - ($num * 2); - } else { - $num_p = $num; - $num_m = -$num; - } - - # ó ũ - $str .= "\n\n"; - if ($pages['cur'] != "1" && $d0 > 0) - $str .= "" . - "[F]..\n"; - - # ŭ ũ - if($pages['all'] < $num*2+1) { - $pagechk = $num*2; - for($co = $num_m; $co <= $num_p; $co++) { - $repages = $pages['cur'] + $co; - if($repages > "0" && $repages > $num_p - $num * 2 && $repages <= $pages['all']) { - if($co) { - $page = $pages['cur'] + $co; - $str .= "". - "[$page]\n"; - } else $str .= '[' . $pages['cur'] . "]\n"; - } - } - } else { - $pagechk = $pages['all']; - for($co = $num_m; $co <= $num_p; $co++) { - if($pages['cur'] + $co <= $pages['all']) { - if($co) { - $page = $pages['cur'] + $co; - $str .= "". - "[$page]\n"; - } else $str .= "[{$pages['cur']}]\n"; - } - } - } - - # ũ - if($pages['cur'] != $pages['all'] && $d1 > 0) - $str .= "". - "..[L]\n"; - - $str .= "\n"; - - if($print) - echo $str; - - return $str; -} - -function page_form($pages,$o) { - $s['post'] = search2url($o, "post"); - $s['value'] = !$pages['cur'] ? "" : $pages['cur']; - - return $s; -} - -function search_form($o) { - $s['ss'] = htmlspecialchars(stripslashes($o['ss'])); - - if($o['er']) { - # ǥ: ˻ "[,(" "],)" üũ - $chk = preg_replace("/\\\([\]\[()])/i","",$s['ss']); - $chk = preg_replace("/[^\[\]()]/i","",$chk); - - $chkAOpen = strlen(preg_replace("/\]/i","",$chk)); - $chkAClos = strlen(preg_replace("/\[/i","",$chk)); - $chkBOpen = strlen(preg_replace("/\)/i","",$chk)); - $chkBClos = strlen(preg_replace("/\(/i","",$chk)); - - if($chkAOpen !== $chkAClos) $s['ss'] .= "]"; - elseif($chkBOpen !== $chkBClos) $s['ss'] .= ")"; - } - - $s['sc'][$o['sc']] = ( $o['sct'] && $o['sct'] != "s") ? ' checked="checked"' : ' selected="selected"'; - $s['st'][$o['st']] = ( $o['sct'] && $o['stt'] != "s") ? ' checked="checked"' : ' selected="selected"'; - $s['er'][$o['er']] = ' checked="checked"'; - - return $s; -} - -function print_reply($table, $list, $print = 0) { - if($list['reto']) { - $result = get_article($table, $list['reto'], "num"); - $num = "Reply from No. {$result['num']}"; - } else - $num = "No. {$list['num']}"; - - if($print) echo $num; - return $num; -} - -# list page ,ϴ ũ Լ -function list_cmd($img=0,$prt=0) { - global $jsboard, $o, $table, $pages, $enable; - global $board, $_, $page, $print, $_lang; - - if (!$page) $page = 1; - $str['search'] = search2url($o); - - if($img) { - $menu['pre'] = "" . $_("; - $menu['nxt'] = "" . $_("; - $menu['all'] = "" . $_("; - $menu['write'] = "" . $_("; - $menu['today'] = "" . $_("; - } else { - $menu['pre'] = '' . $_('cmd_priv') . ''; - $menu['nxt'] = '' . $_('cmd_next') . ''; - $menu['all'] = '' . $_('cmd_all') . ''; - $menu['write'] = '' . $_('cmd_write') . ''; - $menu['today'] = '' . $_('cmd_today') . ''; - } - - $str['prev'] = !$pages['pre'] ? "" : "{$menu['pre']}\n"; - $str['next'] = !$pages['nex'] ? "" : "{$menu['nxt']}\n"; - $str['write'] = "{$menu['write']}\n"; - - if($o['at'] == "s" || $o['at'] == "d") - $str['all'] = "{$menu['all']}\n"; - if($o['st'] != "t") - $str['today'] = "{$menu['today']}\n"; - - if($board['mode'] != 0 && $board['mode'] != 2 && $board['mode'] != 6 && $board['mode'] != 7) { - # ƴϸ ũ - if($_SESSION[$jsboard]['pos'] != 1 && !$board['adm']) $str['write'] = ""; - } - - # Խ ,ϴܿ , , ۾ ũ Լ - $link = "{$str['all']}{$str['prev']}{$str['next']}{$str['write']}{$str['today']}"; - - if($prt) echo $link; - return $link; -} - -# read page ,ϴ ũ Լ -function read_cmd($img=0,$prt=0) { - global $jsboard, $o, $table, $pages, $enable, $board; - global $pos, $list, $no, $page, $_, $print, $alert, $_lang; - - $str['search'] = search2url($o); - #if (!$o['ck']) $str['search'] = ""; - - if($img) { - $menu['pre'] = "" . $_("; - $menu['nxt'] = "" . $_("; - $menu['del'] = "" . $_("; - $menu['edit'] = "" . $_("; - $menu['lists'] = "" . $_("; - $menu['reply'] = "" . $_("; - $menu['write'] = "" . $_("; - $menu['conj'] = "" . $_("; - } else { - $menu['pre'] = '' . $_('cmd_upp') . ''; - $menu['nxt'] = '' . $_('cmd_down') . ''; - $menu['del'] = '' . $_('cmd_del') . ''; - $menu['edit'] = '' . $_('cmd_edit') . ''; - $menu['lists'] = '' . $_('cmd_list') . ''; - $menu['reply'] = '' . $_('cmd_reply') . ''; - $menu['write'] = '' . $_('cmd_write') . ''; - $menu['conj'] = '' . $_('cmd_con') . ''; - } - - $str['prev'] = "{$menu['pre']}"; - $str['next'] = "{$menu['nxt']}"; - $str['write'] = "{$menu['write']}"; - - if ($rmail['user']) - $str['reply'] = "{$menu['reply']}"; - else - $str['reply'] = "{$menu['reply']}"; - - $str['edit'] = "{$menu['edit']}"; - $str['dele'] = "{$menu['del']}"; - if(!$enable['re_list']) $str['rep'] = '' . $_('cmd_con') . ''; - - if(!$pos['prev']) $str['prev'] = $img ? "" : '' . $_('cmd_upp') . ""; - if(!$pos['next']) $str['next'] = $img ? "" : '' . $_('cmd_down') . ""; - if(!session_is_registered("$jsboard") && !$list['passwd']) { - if(!$img) { - $menu['edit'] = '' . $_('cmd_edit') . ""; - $menu['dele'] = '' . $_('cmd_del') . ""; - } - $str['edit'] = "{$menu['edit']}"; - $str['dele'] = "{$menu['del']}"; - } - if($list['reyn'] && !$_SESSION[$jsboard]['pos']) { - if(!$img) $menu['del'] = '' . $_('cmd_del') . ''; - $str['dele'] = "{$menu['del']}"; - } - if(!$enable['re_list'] && ($list['reto'] || $list['reyn'])) { - $reto = $list['reto'] ? $list['reto'] : $list['no']; - $str['rep'] = "{$menu['conj']}"; - } else $str['rep'] = ""; - - # α mode ڰ ƴϰ ڽ ƴҰ ũ - if(preg_match("/^(1|2|3|5|7)$/i",$board['mode']) && session_is_registered("$jsboard")) { - if($_SESSION[$jsboard]['id'] != $list['name'] && $_SESSION[$jsboard]['pos'] != 1 && !$board['adm']) { - $str['edit'] = ""; - $str['dele'] = ""; - } - } - - # admin only mode anonymous ڰ ƴ ũ - if(!preg_match("/^(0|2|6|7)$/i",$board['mode']) && $_SESSION[$jsboard]['pos'] != 1 && !$board['adm']) { - $str['write'] = ""; - if($board['mode'] != 4 && $board['mode'] != 5) { - $str['reply'] = ""; - $str['dele'] = ""; - $str['edit'] = ""; - } - } - - # reply ڰ ƴϸ reply ũ - if(preg_match("/^(6|7)$/i",$board['mode']) && $_SESSION[$jsboard]['pos'] != 1 && !$board['adm']) - $str['reply'] = ""; - - $t = "{$menu['lists']}\n". - "{$str['prev']}\n". - "{$str['next']}\n". - "{$str['write']}\n". - "{$str['reply']}\n". - "{$str['edit']}\n". - "{$str['dele']}\n". - "{$str['rep']}\n"; - - if($alert) { - $t = "{$menu['lists']}\n". - "{$str['write']}\n"; - } - - if($prt) echo $t; - else return $t; -} - - -# ش ñ Ʈ ѷش. -function article_reply_list($table,$pages,$print=0) { - global $list, $_, $upload, $td_width, $lines, $td_array; - - $td_array = !trim($td_array) ? "nTNFDR" : $td_array; - - for($i=0;$i\n". - "\n". - " \n". - " \n". - " \n"; - - if ($upload['yesno'] && $cupload['yesno']) - $t .= " \n"; - - $t .= "\n". - " \n". - "\n"; - $t .= get_list($table,$pages,$o); - $t .= "\n"; - - if($print) echo $t; - else return $t; -} - -function detail_searchform($p='') { - global $table,$board,$_,$o; - global $c, $db; - - $res= sql_query("SELECT min(date) AS min,max(date) AS max FROM $table", $c); - $period = sql_fetch_array($res); - - $max = explode(".",date("Y.m.d",$period['max'])); - $min = explode(".",date("Y.m.d",$period['min'])); - - # ˻Ⱓ ⵵ Ʈ - for($i=$max[0];$i>=$min[0];$i--) { - if(!$o['y1']) $_check = ($i == $min[0]) ? ' selected="selected"' : ''; - else $_check = ($i == $o['y1']) ? ' selected="selected"' : ''; - if($i == $max[0]) $nxthang = "\n"; - $print['peys'] .= "$nxthang $i\n"; - } - - # ˻Ⱓ Ʈ - for($i=1;$i<13;$i++) { - if(!$o['m1']) $_check = ($i == $min[1]) ? ' selected="selected"' : ''; - else $_check = ($i == $o['m1']) ? ' selected="selected"' : ''; - if($i == 1) $nxthang = "\n"; - $print['pems'] .= "$nxthang $i\n"; - } - - # ˻Ⱓ Ʈ - for($i=1;$i<32;$i++) { - if(!$o['d1']) $_check = ($i == $min[2]) ? ' selected="selected"' : ''; - else $_check = ($i == $o['d1']) ? ' selected="selected"' : ''; - if($i == 2) $nxthang = "\n"; - $print['peds'] .= "$nxthang $i\n"; - } - - # ˻Ⱓ ⵵ Ʈ - for($i=$max[0];$i>=$min[0];$i--) { - if(!$o['y2']) $_check = ($i == $max[0]) ? ' selected="selected"' : ''; - else $_check = ($i == $o['y2']) ? ' selected="selected"' : ''; - if($i == $max[0]) $nxthang = "\n"; - $print['peye'] .= "$nxthang $i\n"; - } - - # ˻Ⱓ Ʈ - for($i=1;$i<13;$i++) { - if(!$o['m2']) $_check = ($i == $max[1]) ? ' selected="selected"' : ''; - else $_check = ($i == $o['m2']) ? ' selected="selected"' : ''; - if($i == 1) $nxthang = "\n"; - $print['peme'] .= "$nxthang $i\n"; - } - - # ˻Ⱓ Ʈ - for($i=1;$i<32;$i++) { - if(!$o['d2']) $_check = ($i == $max[2]) ? ' selected="selected"' : ''; - else $_check = ($i == $o['d2']) ? ' selected="selected"' : ''; - if($i == 2) $nxthang = "\n"; - $print['pede'] .= "$nxthang $i\n"; - } - - $ERCHK = ($o['er']) ? ' checked="checked"' : ''; - $TCHK = ($o['sc'] == "t") ? ' checked="checked"' : ''; - $CCHK = ($o['sc'] == "c") ? ' checked="checked"' : ''; - $NCHK = ($o['sc'] == "n") ? ' checked="checked"' : ''; - $ACHK = ($o['sc'] == "a") ? ' checked="checked"' : ''; - if(!$o['sc']) $TCHK = ' checked="checked"'; - - $o['ss'] = preg_replace("/\\\\+/i","\\",$o['ss']); - - $form = "\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". - "
    " . $_('sh_str') . ":\n". - "\n". - "\n". - "\n". - "
    " . $_('sh_pat') . ":\n". - " TITLE\n". - " Contents\n". - " Writer\n". - " ALL\n". - "
    " . $_('sh_dat') . ":\n". - "\n\n". - - "\n\n". - - "\n". - "-\n". - "\n\n". - - "\n\n". - - "\n". - "
    " . $_('check_y') . ":\n". - "\n". - "\n". - "
    \n". - "
    \n".
    -          $_('sh_ment').
    -          "
    \n". - "
    \n". - "
    \n". - "
    \n". - "\n\n". - "
    \n"; - - if($p) echo $form; - else return $form; -} - -function print_comment($table,$no,$print=0) { - global $board, $size, $rname, $page, $_; - global $pre_regist; - $textareasize = $size['text']-form_size(9); - - if (preg_match("/^(2|3|5|7)$/",$board['mode'])) { - if($board['super'] != 1) $disable = " readonly"; - else $disable = ""; - } else $disable = ""; - - $t = "\n". - get_comment($table, $no, 0). - "\n". - "
    \n". - "
    \n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "\n". - "
    ". - "". - "\n". - $_('c_na') . "
    \n". - $_('c_ps') . "
    \n". - "\n". - "
    \n". - "\n". - "\n". - "\n". - "
    \n". - "\n". - "\n". - "\n". - "\n". - "\n". - "
    \n". - "
    \n"; - - if ( $print ) echo $t; - else return $t; -} - -function print_keymenu($type=0) { - global $table, $pages, $pos, $page, $no, $nolenth; - - switch ($type) { - case '3' : - case '2' : - /* write/reply/edit mode */ - $plink = "./read.php?table={$table}&no={$no}"; - $anycmd = "else if(ch == ':' || strs == ':') {\n". - " strs = strs + ch;\n". - " if(strs == ':q') { self.close(); }\n". - " }\n"; - break; - case '1' : - /* read mode */ - $nlink = "./read.php?table={$table}&no={$pos['prev']}"; - $plink = "./read.php?table={$table}&no={$pos['next']}"; - $ment = "Article"; - - $anycmd = "else if(ch == 'l' || ch == '.' || ch == 'L') {\n". - " location_ref('./list.php?table={$table}&page={$page}');\n". - " } else if(ch == 'r' || ch == 'R' || ch == '/') {\n". - " location_ref('./reply.php?table={$table}&no={$no}&page={$page}');\n". - " } else if(ch == 'e' || ch == 'E') {\n". - " location_ref('./edit.php?table={$table}&no={$no}&page={$page}');\n". - " } else if(ch == 'd' || ch == 'D') {\n". - " location_ref('./delete.php?table={$table}&no={$no}&page={$page}');\n". - " } else if(ch == ':' || strs == ':') {\n". - " strs = strs + ch;\n". - " if(strs == ':q') { self.close(); }\n". - " }\n"; - break; - default : - /* list mode */ - $nextpage = $pages['nex'] ? $pages['nex'] : $pages['all']; - $prevpage = $pages['pre'] ? $pages['pre'] : 1; - $nlink = "./list.php?table={$table}&page={$nextpage}"; - $plink = "./list.php?table={$table}&page={$prevpage}"; - $ment = "Page"; - - $precmd = " if (cc == 13) {\n". - " if(strs.length > 0) location_ref('read.php?table={$table}&num=' + strs + '&page={$page}');\n". - " else strs = \"\";\n". - " } else"; - - $anycmd = "else if(ch == ':' || strs == ':') {\n". - " strs = strs + ch;\n". - " if(strs == ':q') { self.close(); }\n". - " } else {\n". - " strs = strs + ch;\n". - " if(strs.length > {$nolenth}) strs = \"\";\n". - " document.getElementById(\"num\").innerHTML=strs;\n". - " }\n"; - } - - switch ($type) { - case '3' : - case '2' : - if ( $type == 3 ) - $plink = 'history.back();'; - else - $plink = 'location_ref(\'' . $plink . '\');'; - $cmds = " ${precmd} if(ch == 'p' || ch == 'P') {\n". - " location_ref('./list.php?table=$table&page=1');\n". - " } else if(ch == 'b' || ch == 'B' || ch == '-') {\n". - " {$plink}\n". - " } else if(ch == 'w' || ch == 'W' || ch == '*') {\n". - " location_ref('./write.php?table=$table&page=$page');\n". - " } $anycmd\n"; - break; - case '1' : - default : - $cmds = " ${precmd} if(ch == 'p' || ch == 'P') {\n". - " location_ref('./list.php?table=$table&page=1');\n". - " } else if(ch == 'n' || ch == 'N' || ch == '+') {\n". - " location_ref('$nlink');\n". - " } else if(ch == 'b' || ch == 'B' || ch == '-') {\n". - " location_ref('$plink');\n". - " } else if(ch == 's' || ch == 'S') {\n". - " document.getElementById('searchstr').focus();\n". - " } else if(ch == 'w' || ch == 'W' || ch == '*') {\n". - " location_ref('./write.php?table=$table&page=$page');\n". - " } $anycmd\n"; - break; - } - - echo " \n"; -} - -function print_spam_trap() { - echo "
    \n" . - "\n" . - "
    \n"; -} - -function debug_block ($ipaddr, $var) { - if($_SERVER['REMOTE_ADDR'] === $ipaddr) { - echo "
    \n";
    -    print_r($var);
    -    echo "
    \n"; - exit; - } -} - -function new_reply_read_format (&$buf, $html) { - $src[] = '/\[[\s]*quote[\s]*\]/i'; - if ( $html != 1 ) - $dsc[] = '
    ';
    -  else
    -    $dsc[] = '
    '; - $src[] = '/\[[\s]*\/quote[\s]*\]/i'; - if ( $html != 1 ) - $dsc[] = '
    ';
    -  else
    -    $dsc[] = '';
    -  $src[] = '/\[[\s]*quote[\s]*=[\s]*"([^\]]*)"[\s]*\]/i';
    -  if ( $html != 1 )
    -    $dsc[] = "
    \\1 wrote:
    \n";
    -  else
    -    $dsc[] = "
    \\1 wrote:\n"; - - $buf = preg_replace ($src, $dsc, $buf); -} - -function utf8_fallback (&$obj, $charset, $skip = false) { - if ( $skip === false ) { - if ( check_utf8_conv ($charset) === false ) - return $str; - } - - if ( is_array ($obj) || is_object ($obj) ) { - foreach ( $obj as $key => $val ) - utf8_fallback ($obj[$key], $charset, true); - } else { - $obj = iconv ($charset, 'utf-8//ignore', $obj); - } -} -?> diff --git a/include/replicate.php b/include/replicate.php deleted file mode 100644 index 715c6237..00000000 --- a/include/replicate.php +++ /dev/null @@ -1,28 +0,0 @@ - diff --git a/include/sURI.php b/include/sURI.php deleted file mode 100644 index 16eec1b1..00000000 --- a/include/sURI.php +++ /dev/null @@ -1,84 +0,0 @@ - - * @copyright 1997-2008 OOPS.ORG - * @license BSD License - * @version CVS: $Id: sURI.php,v 1.3 2009-02-01 14:08:04 oops Exp $ - * @since File available since Release 0.1 - */ - -function block_devided ($string, $block = null) { - if ( ! is_array ($block) ) - return false; - - while ( ($p = array_pos ($string, $block)) !== false ) { - if ( $p->pos > 0 ) { - $_r = substr ($string, 0, $p->pos); - if ( preg_match ("/\n([: ]*:)$/", rtrim ($_r), $matches) ) { - $r[] = preg_replace ("/\n[: ]+$/", '', $_r); - } else { - $r[]= $_r; - } - $string = substr ($string, $p->pos); - } - - $end = preg_replace ('/[\[<]/', '\\0/', $p->needle); - if ( ($pp = strpos ($string, $end)) !== false ) { - $r[] = substr ($string, 0, $pp + strlen ($end)); - $string = substr ($string, $pp + strlen ($end) + 1); - } else - break; - } - - if ( $string ) - $r[] = $string; - - return $r; -} - -function array_pos ($haystack, $needle = null) { - if ( ! is_array ($needle) ) - return false; - - $p = null; - $r = (object) array ('needle' => false, 'pos' => false); - - foreach ( $needle as $val ) - $p[] = strpos ($haystack, $val); - - if ( ! is_array ($p) ) - return false; - - $mlen = false; - $chkkey = 0; - - foreach ( $p as $key => $v ) { - if ( $v === false ) - continue; - - if ( $mlen !== false ) { - $mlen = ($mlen > $v) ? $v : $mlen; - $chkkey = $key; - } else - $mlen = $v; - } - - if ( $mlen === false ) - return false; - - $r->needle = $needle[$chkkey]; - $r->pos = $mlen; - - return $r; -} -?> diff --git a/include/search.ph b/include/search.ph new file mode 100644 index 00000000..5267d4fb --- /dev/null +++ b/include/search.ph @@ -0,0 +1,50 @@ + + + +> + +
    + +
    + + + +

    +
    + +\n" . + "\n"); + + $article = article_message($acount,$tcount,$lang,$act) ; + if($act != "reply" && $act != "relate" && $act != "search") { + echo "$article " ; + } else if($act == "search") { + echo "$article " ; + } + echo("\n" . + "\n" . + "
    \n" . + "\n
    " ) ; + nlist($page) ; + echo(" 
    "); + +} else if ( eregi("read.php3",$page_value)) { + echo("\n" . + "Writer's IP: $host
    SQL Time: [ $sqltime sec ]
    " . + "\n" . + ""); +} +?> \ No newline at end of file diff --git a/include/sendmail.php b/include/sendmail.php deleted file mode 100644 index 82101b63..00000000 --- a/include/sendmail.php +++ /dev/null @@ -1,357 +0,0 @@ - debug Ѵ. -# ofhtml -> 󿡼 󿡼 Ѵ. -# from -> ߼ϴ ּ -# to -> ּ -# text -> -# -class maildaemon { - var $failed = 0; - - function maildaemon($v) { - $this->debug = $v['debug']; - $this->ofhtml = $v['ofhtml']; - if($_SERVER['SERVER_NAME']) $this->helo = $_SERVER['SERVER_NAME']; - if(!$this->helo || preg_match("/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/i",$this->helo)) - $this->helo = "JSBoardMessage"; - - $this->from = $v['from']; - $this->to = $v['to']; - $this->body = $v['text']."\r\n."; - $this->newline = $this->ofhtml ? "
    \n" : "\n"; - - $this->mx = $this->getMX($this->to); - - if($this->debug) { - echo "DEBUG: ".$this->mx." start".$this->newline; - echo "################################################################".$this->newline; - } - $this->sockets("open"); - $this->send("HELO ".$this->helo); - $this->send("MAIL FROM: <".$this->from.">"); - $this->send("RCPT TO: <".$this->to.">"); - $this->send("data"); - $this->send($this->body); - $this->send("quit"); - $this->sockets("close"); - } - - function getMX($email) { - $dev = explode("@",$email); - $account = $dev[0]; - $host = $dev[1]; - - if(checkdnsrr($host,"MX") && getmxrr($host,$mx,$weight)) { - $idx = 0; - for($i=0;$i $weight[$i]) { - $dest = $weight[$i]; - $idx = $i; - } - } - } else return $host; - return $mx[$idx]; - } - - # Լ - # $t -> 1 (debug of socket open,close) - # 0 (regular smtp message) - # $p -> 1 (print detail debug) - # - # return 1 -> success - # return 0 -> failed - # - function debug($str,$t=0,$p=0) { - if($t) { - if(!$str) $this->failed = 1; - if($this->sock) $returnmsg = trim(fgets($this->sock,1024)); - } else { - if(!preg_match("/^(220|221|250|251|354)$/",substr(trim($str),0,3))) - $this->failed = 1; - } - - # DEBUG mode -> ޼ - if($p) { - if($t) { - $str = "Conncet ".$this->mx; - $str .= $this->failed ? " Failed" : " Success"; - $str .= $this->newline."DEBUG: $returnmsg"; - } - echo "DEBUG: $str".$this->newline; - } - - # DEBUG 尡 ƴҶ, ޼ - if(!$p && $this->failed) { - if($this->ofhtml) echo "\n"; - else "ERROR: $str\n"; - } - } - - function sockets($option=0) { - switch($option) { - case "open" : - $this->sock = @fsockopen($this->mx,25,$this->errno,$this->errstr,30); - $this->debug($this->sock,1,$this->debug); - break; - default : - if($this->sock) fclose($this->sock); - break; - } - } - - function send($str,$chk=0) { - if(!$this->failed) { - if($this->debug) { - if(preg_match("/\r\n/",trim($str))) - $str_debug = trim(str_replace("\r\n","\r\n ",$str)); - else $str_debug = $str; - } - fputs($this->sock,"$str\r\n"); - $recv = trim(fgets($this->sock,1024)); - $recvchk = $recv; - $this->debug($recv,0,$this->debug); - - if(preg_match("/Mail From:/i",$str) && preg_match("/exist|require|error/i",$recvchk) && !$chk) { - $this->failed = 0; - $this->send("MAIL FROM: <".$this->to.">",1); - } - } - } -} - -function mailcheck($to,$from,$title,$body) { - global $_; - if(!trim($to)) print_error($_('mail_to_chk_err'),250,150,1); - if(!trim($from)) print_error($_('mail_from_chk_err'),250,150,1); - if(!trim($title)) print_error($_('mail_title_chk_err'),250,150,1); - if(!trim($body)) print_error($_('mail_body_chk_drr'),250,150,1); -} - -function get_boundary_msg() { - $uniqchr = uniqid(""); - $one = strtoupper($uniqchr[0]); - $two = strtoupper(substr($uniqchr,0,8)); - $three = strtoupper(substr(strrev($uniqchr),0,8)); - return "----=_NextPart_000_000${one}_${two}.${three}"; -} - -function generate_mail_id($uid) { - $id = date("YmdHis",time()); - mt_srand((float) microtime() * 1000000); - $randval = mt_rand(); - $id .= $randval."@$uid"; - return $id; -} - -function body_encode_lib($str) { - $return = base64_encode(trim($str)); - $return = wordwrap($return,60,"\r\n",1); - return $return; -} - -function html_to_plain_lib($str) { - $src[] = "/\n|\r\n/i"; - $des[] = "||ENTER||"; - $src[] = "/^.*]*>/i"; - $des[] = ""; - $src[] = "/<\/body>.*$/i"; - $des[] = ""; - $src[] = "/\|\|ENTER\|\|/i"; - $des[] = "\r\n"; - $str = preg_replace($src,$des,$str); - - return $str; -} - -function get_htmltext($rmail,$year,$day,$ampm,$hms,$nofm) { - global $_; - - if($nofm) $nofm = auto_link($nofm); - if($rmail['url']) $homeurl = "HomeURL : ".auto_link($rmail['url'])."\r\n"; - if($rmail['email']) { - $rmail['pemail'] = (preg_match("/^nobody@/i",$rmail['email'])) ? "" : $rmail['email']; - if($rmail['pemail']) { - $rmail['pemail'] = preg_replace("/{$rmail['pemail']}/i","mailto:\\0",$rmail['pemail']); - $mailurl = "Email : {$rmail['pemail']}\r\n"; - } - } - $addressinfo = trim($mailurl.$homeurl); - $rmail['text'] = !$rmail['html'] ? html_to_plain_lib($rmail['text']) : $rmail['text']; - $servername = strtoupper($_SERVER['SERVER_NAME']); - - $themepath = "theme/{$rmail['theme']}/mail.template"; - $htmltext = readfile_r ($themepath); - - $htmltext = str_replace ("\$_('charset')", $_('charset'), $htmltext); - $htmltext = str_replace ("\$_('html_msg')", $_('html_msg'), $htmltext); - $htmltext = str_replace ("\$_('u_name')", $_('u_name'), $htmltext); - $htmltext = str_replace ("\$_('reg')", $_('reg'), $htmltext); - $htmltext = str_replace ("\"", "\\\"", $htmltext); - eval("\$htmltext = \"$htmltext\";"); - - return $htmltext; -} - -function mail_header($to,$from,$title,$mta=0) { - global $_, $boundary; - - # mail header ۼ - $boundary = get_boundary_msg(); - $header = "Message-ID: <".generate_mail_id(preg_replace("/@.+$/i","",$to)).">\r\n". - "From: JSBoard Message <$from>\r\n". - "MIME-Version: 1.0\r\n"; - - if(!$mta) $header .= "Date: ".date ("D, j M Y H:i:s T",time())."\r\n". - "To: $to\r\n". - "Subject: $title\r\n"; - - $header .= "Content-Type: multipart/alternative;\r\n". - " boundary=\"$boundary\"\r\n\r\n"; - - return $header; -} - -function socketmail($mta,$to,$from,$title,$pbody,$hbody) { - global $_,$boundary; - - # ڿ üũ - mailcheck($to,$from,$title,$pbody); - - $title = "=?" . $_('charset') . "?B?".trim(base64_encode($title))."?="; - $title = preg_replace("/[\s]+/i"," ",str_replace("\r\n","\n",$title)); - - # mail header ۼ - $mail_header = mail_header($to,$from,$title,$mta); - - # body - $body = "This is a multi-part message in MIME format.\r\n". - "\r\n--$boundary\r\n". - "Content-Type: text/plain; charset=" . $_('charset') . "\r\n". - "Content-Transfer-Encoding: base64\r\n\r\n". - body_encode_lib($pbody). - "\r\n\r\n--$boundary\r\n". - "Content-Type: text/html; charset=" . $_('charset') . "\r\n". - "Content-Transfer-Encoding: base64\r\n\r\n". - body_encode_lib($hbody). - "\r\n--$boundary--\r\n"; - - $mails['debug'] = 0; - $mails['ofhtml'] = 0; - $mails['to'] = $to; - $mails['from'] = $from; - $mails['text'] = $mail_header.$body; - - if($mta) { - ini_set("SMTP","$smtp"); - $body = str_replace("\r\n","\n",$body); - $mail_header = str_replace("\r\n","\n",$mail_header); - mail($mails['to'],$title,$body,$mail_header,"-f{$mails['from']}"); - } else { - new maildaemon($mails); - } -} - -function sendmail($rmail) { - global $_, $_code; - - if($rmail['smtp']) $rmail['mta'] = $rmail['smtp']; - $rmail['mta'] = $rmail['mta'] ? $rmail['mta'] : 0; - $mail_msg_head = $_('sm_dr'); - - if ($_code == "ko") $time = date("Y/m/d (D) a hi"); - else $time = date("Y/m/d (D) a h:i"); - - $time=explode(" ",$time); - - $year=$time[0]; - $day=$time[1]; - $ampm=$time[2]; - $hms=$time[3]; - - # Ͽ double quote single quote ó - $rmail['text'] = stripslashes($rmail['text']); - $rmail['name'] = stripslashes($rmail['name']); - $rmail['title'] = stripslashes($rmail['title']); - $rmail['email'] = !trim($rmail['email']) ? "nobody@{$_SERVER['SERVER_NAME']}" : $rmail['email']; - if(preg_match("/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/i",$_SERVER['SERVER_NAME'])) - $rmail['email'] = "nobody@[".$_SERVER['SERVER_NAME']."]"; - - $rmail['pemail'] = (preg_match("/^nobody@/i",$rmail['email'])) ? "" : "mailto:{$rmail['email']}"; - - if ($_code == "ko") { - if ($day == "(Mon)") $day="()"; - else if ($day == "(Tue)") $day="(ȭ)"; - else if ($day == "(Wed)") $day="()"; - else if ($day == "(Thu)") $day="()"; - else if ($day == "(Fri)") $day="()"; - else if ($day == "(Sat)") $day="()"; - else if ($day == "(Sun)") $day="()"; - } else if ($__code == "jp") { - if ($day == "(Mon)") $day="()"; - else if ($day == "(Tue)") $day="()"; - else if ($day == "(Wed)") $day="()"; - else if ($day == "(Thu)") $day="()"; - else if ($day == "(Fri)") $day="()"; - else if ($day == "(Sat)") $day="()"; - else if ($day == "(Sun)") $day="()"; - } - - $webboard_address = sprintf("%s%s",$rmail['path'],"read.php?table={$rmail['table']}&no={$rmail['no']}"); - $reply_article = sprintf("%s%s",$rmail['path'],"reply.php?table={$rmail['table']}&no={$rmail['no']}"); - - $dbname = "DB Name : {$rmail['table']}"; - $dbloca = "DB Location : $webboard_address"; - #$repart = "Reply Article : $reply_article"; - $nofm = "\r\n$dbname\r\n$dbloca\r\n$repart"; - $mailurl = "Email : {$rmail['pemail']}\r\n"; - $homeurl = "HomeURL : {$rmail['url']}\r\n"; - - $message = "\r\n". - "\r\n". - "$mail_msg_header\r\n". - "\r\n". - " JSBOARD {$rmail['table']} message\r\n". - "\r\n". - "[ Server Infomation ]------------------------------------------------------\r\n". - "ServerWare : JSBoard-{$rmail['version']}\r\n". - "Server Name : {$_SERVER['SERVER_NAME']}$nofm\r\n". - "\r\n". - "\r\n". - "[ Article Infomation ]-----------------------------------------------------\r\n". - $_('u_name') . " : {$rmail['name']}\r\n". - "$mailurl". - "$homeurl". - $_('a_t13') . " : $year $day $ampm $hms\r\n". - "---------------------------------------------------------------------------\r\n". - "\r\n". - html_to_plain_lib($rmail['text'])."\r\n". - "\r\n". - "\r\n". - "\r\n". - "---------------------------------------------------------------------------\r\n". - "REMOTE_ADDR : {$_SERVER['REMOTE_ADDR']}\r\n". - "HTTP_USER_AGENT : {$_SERVER['HTTP_USER_AGENT']}\r\n". - "HTTP_ACCEPT_LANGUAGE : {$_SERVER['HTTP_ACCEPT_LANGUAGE']}\r\n". - "---------------------------------------------------------------------------\r\n". - "\r\n". - "JSBoard Form mail service - http://jsboard.kldp.net\r\n"; - - $htmltext = get_htmltext($rmail,$year,$day,$ampm,$hms,$nofm); - - if ($rmail['user'] && $rmail['reply_orig_email'] && $rmail['email'] != $rmail['toadmin']) { - socketmail($rmail['mta'],$rmail['reply_orig_email'],$rmail['email'],$rmail['title'],$message,$htmltext); - } - - if ($rmail['admin'] && $rmail['toadmin'] != "" && $rmail['email'] != $rmail['toadmin']) { - socketmail($rmail['mta'],$rmail['toadmin'],$rmail['email'],$rmail['title'],$message,$htmltext); - } -} -?> diff --git a/include/spam b/include/spam new file mode 100644 index 00000000..9e70b215 --- /dev/null +++ b/include/spam @@ -0,0 +1,18 @@ +alladvantage.com +epipo.com +gotoworld.com +nomoney.co.kr +targetshop.com +utopiad.com +goldbank.co.kr +bi.co.kr +woowanet.com +at21.com +will.co.kr +zig.et.co.kr +a114.com +freeweb.co.kr +freetour.co.kr +panel.co.kr +research.co.kr +ͳ.* diff --git a/include/spam.ph b/include/spam.ph new file mode 100644 index 00000000..6a2c2c95 --- /dev/null +++ b/include/spam.ph @@ -0,0 +1,24 @@ + diff --git a/include/spam_check.php b/include/spam_check.php deleted file mode 100644 index 72645579..00000000 --- a/include/spam_check.php +++ /dev/null @@ -1,24 +0,0 @@ -\n", $spam[$i]); - } -} -?> diff --git a/include/sql.ph b/include/sql.ph new file mode 100644 index 00000000..cef958e5 --- /dev/null +++ b/include/sql.ph @@ -0,0 +1,58 @@ +\n" . + "\n" . + "\n"); + if($debug) + echo(mysql_error()); + exit; + } +} + +function dquery($query) +{ + $result = mysql_query($query); + derror(); + return $result; +} + +function dconnect($server, $name, $passwd="") +{ + mysql_connect($server, $name, $passwd); + derror(); +} + +function dselect_db($name) +{ + mysql_select_db($name); + derror(); +} + +function dfetch_row($result) +{ + $tmp = mysql_fetch_row($result); + derror(); + return $tmp; +} + +function drow_check($result) +{ + global $no_article ; + + if(!mysql_num_rows($result)) { + error("$no_article"); + + } +} +?> diff --git a/include/variable.php b/include/variable.php deleted file mode 100644 index 980d40a9..00000000 --- a/include/variable.php +++ /dev/null @@ -1,87 +0,0 @@ - (object) array ( - 'ckeyv' => '/[^[:alnum:]#$%&\/?@]/', - 'ckey' => '/[^0-9]/', - 'reno' => '/[^0-9]/', - 'html' => '/[^0-9]/', - 'no' => '/[^0-9]/', - 'delete_dir' => '/[^a-z0-9\/_-]/i', - 'delete_filename' => '/[^a-z0-9_-.]/i', - ), - 'cenable' => (object) array ( - 'ore' => '/[^0-9]/', - ), - 'check' => '/[^0-9]/', - 'goaway' => '/[^0-9]/', - 'lu' => '/[^\xA1-\xFEa-z0-9.]/', - 'm' => '/[^[:alpha:]]/', - 'nd' => '/[^0-9]/', - 'no' => '/[^0-9]/', - 'o' => (object) array ( - 'at' => '/[^a-z_]/i', - 'er' => '/[^[:alpha:]]/', - 'sc' => '/[^[:alpha:]]/', - 'sct' => '/[^[:alpha:]]/', - 'stt' => '/[^[:alpha:]]/', - 'st' => '/[^[:alpha:]]/', - 'y1' => '/[^0-9]/', - 'y2' => '/[^0-9]/', - 'm1' => '/[^0-9]/', - 'm2' => '/[^0-9]/', - 'd1' => '/[^0-9]/', - 'd2' => '/[^0-9]/' - ), - 'page' => '/[^0-9]/', - 't' => '/[^[:alpha:]]/', - 'table' => '/[^A-Za-z0-9_-]/', - 'type' => '/[^[:alpha:]]/', -); - -function fatal_error ($msg) { - echo << - alert('$msg'); - -EOF; - exit; -} - -function confirm_variable ($key, $value) { - global $jsvari; - if (!isset($jsvari->$key)) - return; - - if (is_array($value)) { - foreach ($value as $k => $v) { - if (!isset($jsvari->$key->$k)) continue; - - if (!is_string ($jsvari->$key->$k)) { - fatal_error ('You send invalid parameter'); - exit; - } - - if (preg_match($jsvari->$key->$k,$v)) { - $msg = sprintf('You can not access with %s[%s]=%s', $key, $k, $v); - fatal_error($msg); - exit; - } - } - return; - } - - if (!is_string ($jsvari->$key)) { - fatal_error ('You send invalid parameter'); - exit; - } - - if (preg_match($jsvari->$key,$value)) { - $msg = sprintf('You can\\\'t access with %s=%s', $key, $value); - fatal_error($msg); - exit; - } - return; -} -?> diff --git a/include/version.php b/include/version.php deleted file mode 100644 index a427892f..00000000 --- a/include/version.php +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/include/wikify.php b/include/wikify.php deleted file mode 100644 index 3ec1a98f..00000000 --- a/include/wikify.php +++ /dev/null @@ -1,234 +0,0 @@ -". - "$wiki:"; - #if (!$text) $text=str_replace("%20"," ",$page); - if (!$text) $text=urldecode($page); - else if (preg_match("/^(http|ftp|attachment):.*\.(png|gif|jpeg|jpg)$/i",$text)) { - if (substr($text,0,11)=='attachment:') { - $fname=substr($text,11); - $ntext=macro_repl('Attachment',$fname,1); - if (!file_exists($ntext)) - $text=macro_repl('Attachment',$fname); - else { - $text=qualifiedUrl($_config['url_prefix'].'/'.$ntext); - $text= "$text"; - } - } else - $text= "$text"; - $img=''; - } - - if (preg_match("/\.(png|gif|jpeg|jpg)$/i",$url)) - return "$text$extra"; - - return $img. "$text$extra"; -} - -function link_repl($url,$attr='') { - #if ($url[0]=='<') { print $url;return $url;} - $url=str_replace('\"','"',$url); - if ($url[0]=="[") { - $url=substr($url,1,-1); - $force=1; - } -# - switch ($url[0]) { - case '{': - $url=substr($url,3,-3); - if ($url[0]=='#' and ($p=strpos($url,' '))) { - $col=strtok($url,' '); $url=strtok(''); - if (!preg_match('/^#[0-9a-f]{6}$/',$col)) $col=substr($col,1); - return "$url"; - } else if (preg_match('/^((?:\+|\-)([1-6]?))(?=\s)(.*)$/',$url,$m)) { - if ($m[2]=='') $m[1].='1'; - return "$m[3]"; - } - return "$url"; # No link - break; - } - if (strpos($url,":")) { - - if ($url[0] == '^') { - $attr.=' target="_blank" '; - $url=substr($url,1); - $external_icon=$_config['icon']['external']; - } - - if (preg_match("/^(w|[A-Z])/",$url)) { # InterWiki or wiki: - if (strpos($url," ")) { # have a space ? - $dum=explode(" ",$url,2); - return interwiki_repl($dum[0],$dum[1],$attr,$external_icon); - } - - return interwiki_repl($url,'',$attr,$external_icon); - } - } - return $url; -} - -function wikify(&$line,$options=array()) { - global $_config; - - if(!file_exists($_config['intermap'])) - return; - - $_config['wordrule'] ="({{{(?U)(.+)}}})|"; - $_config['wordrule'].="(\b|\^?)([A-Z][a-zA-Z]+):([^\(\)<>\s\']*[^\(\)<>\s\'\",\.:\?\!]*(\s(?![\x33-\x7e]))?)"; - - $_config['baserule']="''''''"; - $_config['baserepl']=""; - $line=preg_replace("/(".$_config['baserule'].")/",$_config['baserepl'],$line); - - $line=preg_replace("/(".$_config['wordrule'].")/e","link_repl('\\1')",$line); -} - -# test -#macro_interwiki(); -# -#$line='hello Wiki:FrontPage gello'; -#wikify($line); -# -#echo $line; - -?> diff --git a/index.php b/index.php deleted file mode 100644 index 9d19c28d..00000000 --- a/index.php +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/index.php3 b/index.php3 new file mode 100644 index 00000000..53cc29f4 --- /dev/null +++ b/index.php3 @@ -0,0 +1,3 @@ + diff --git a/language/en.lang b/language/en.lang deleted file mode 100644 index c07a29c5..00000000 --- a/language/en.lang +++ /dev/null @@ -1,176 +0,0 @@ -ATTENSION !!
    \n\n". - "[ ID ]\n". - "ID should be alphanumeric or Korean only.\n". - "After input ID, check duplication button.\n\n". - "[ NAME ]\n". - "Name should be alphanumeric, Korean or dot.\n\n". - "[ PASSWORD ]\n". - "Password is within 8 charactors. Password is saved as encrypted string.\n\n". - "[ EMAIL,HOMEPAGE ]\n". - "You can ignore the homepage column but email is mandatory.\n". - "You can modify these information after registration.\n"; - -# ext -$en['nomatch_theme'] = "Theme version conflicts. Check the version information\n". - "at doc/en/README.THEME"; -$en['detable_search_link'] = "Detailed search"; -$en['captstr'] = "Click left image!"; -$en['captnokey'] = "No key for regist article"; -$en['captinvalid'] = "Invalid access!"; -?> diff --git a/language/ja.lang b/language/ja.lang deleted file mode 100644 index d3390703..00000000 --- a/language/ja.lang +++ /dev/null @@ -1,179 +0,0 @@ -[ ID ]\n". - "ID nO,,At@xbg w肷 ܂. ID Ȃ \n". - "dmF {^ p ꂽ IDFm mFĂ.\n\n". - "[ O ]\n". - "O nO, At@xbg . p Ȃ ܂.\n\n". - "[ pX[h ]\n". - "8 ȓ pX[h ߂ Ȃ܂. pX[h Í Ȃ ۑ\n". - " Ȃ̂ Ǘ҂ Rk Sz Ď ȂĂ Ȃ܂.\n\n". - "[ dq[,z[y[W ]\n". - "z[y[W Ȃ X Kn ȂĂ Ȃ܂ dq[ K G\n". - " ܂. Ȃ OC Ȃ w肵 \n". - " C ܂.\n"; - -# ext -$ja['nomatch_theme'] = "e[} o[W Ȃł. doc/en/README.THEME\n". - "t@C o[W ւ Q Ă"; -$ja['detable_search_link'] = "ڍ "; -$ja['captstr'] = " C[W NbN Ă"; -$ja['captnokey'] = " o^ ߂ w Ȃł."; -$ja['captinvalid'] = "ےI ڋ߂ł."; -?> diff --git a/language/ko.lang b/language/ko.lang deleted file mode 100644 index 7c65bcf1..00000000 --- a/language/ko.lang +++ /dev/null @@ -1,180 +0,0 @@ -[ ID ]\n". - "ID ѱ,,ĺ Ͻ ֽϴ. ID Ŀ\n". - "ߺȮ ư ̿Ͽ ̹ Ե ID ȮϽʽÿ.\n\n". - "[ ̸ ]\n". - "̸ ѱ, ĺ ׸ . ̿ϼ ּž մϴ.\n\n". - "[ н ]\n". - "8 ̳ н带 Ͻø ˴ϴ. н ȣȭ Ǿ \n". - " ǹǷ ڿ ŵ ˴ϴ.\n\n". - "[ ̸,Ȩ ]\n". - "Ȩ е ŵ ˴ϴٸ ̸ \n". - " ּž մϴ. ϽĿ α Ͻø ⼭ \n". - " Ͻ ֽϴ.\n"; - -# ext -$ko['nomatch_theme'] = "׸ ʽϴ. doc/ko/README.THEME\n". - "Ͽ κ Ͻʽÿ"; -$ko['detable_search_link'] = " ˻"; -$ko['captstr'] = " ̹ Ŭ Ͻʽÿ"; -$ko['captnokey'] = " Ű ϴ."; -$ko['captinvalid'] = " Դϴ."; -?> diff --git a/language/lang.php b/language/lang.php deleted file mode 100644 index 448047e3..00000000 --- a/language/lang.php +++ /dev/null @@ -1,36 +0,0 @@ - diff --git a/list.php b/list.php deleted file mode 100644 index e5951e64..00000000 --- a/list.php +++ /dev/null @@ -1,148 +0,0 @@ -"; - else $print['adpath'] = ">> admin "; - $print['admin'] = "". - "{$print['adpath']}"; -} - -# SQL ð üũ -$a_time[] = microtime(); - -$c = sql_connect($db['server'], $db['user'], $db['pass'], $db['name']); - -# Խ ü, , , ö -$count = get_board_info($table); -# ü õ -$pages = get_page_info($count, $page); - -# SQL ð üũ -$a_time[] = microtime(); -$sqltime1= get_microtime($a_time[0], $a_time[1]); - -if($count['all']) { - if ($o['at'] == 's') $count['search'] = "searched"; - else $count['search'] = "registered"; - $count['today'] = !$count['today'] ? "" : "[ In 12H : {$count['today']} ] "; - $print['count'] = " ". - "Total {$count['all']} articles / {$pages['all']} Pages {$count['search']} {$count['today']}"; -} else { - $print['count'] = " ". - "no article .."; -} - -# RSS ƾ -if ( $rss['use'] ) { - $rss['title'] = $_SERVER['SERVER_NAME'] . " {$board['title']}"; - $rss['link'] = "\n"; - - $rss['color'] = trim($rss['color']) ? " color: {$rss['color']};" : ""; - - if ( $rss['align'] ) { - $print['count'] .= " [" . - "RSS]"; - } else { - $print['count'] = "[" . - "RSS] {$print['count']}"; - } -} - - -# SQL ð üũ -$b_time[] = microtime(); - -# Ʈ -$colspan_no = $upload['yesno'] ? "6" : "5"; - -if(trim($notice['subject'])) { - $notice_filno = $colspan_no - 1; - - if($notice['contents']) { - $notice['subject'] = "". - "{$notice['subject']}"; - } else { - $notice['subject'] = "{$notice['subject']}"; - } - - $print['lists'] = "\n". - "\"\"". - "\n". - "{$notice['subject']}\n\n\n"; - - # Ʈ ̿ ֱ ڵ - if($lines['design']) { - $lines['design'] = preg_replace("/=[\"']?AA[\"']?/","=\"$colspan_no\"",$lines['design']); - $print['lists'] .= "\n{$lines['design']}\n\n"; - } -} - -$print['lists'] .= get_list($table, $pages); - -# Խ յ ũ -$print['p_list'] = page_list($table, $pages, $count, $board['plist']); - -# SQL ð üũ -$b_time[] = microtime(); -$sqltime2 = get_microtime($b_time[0], $b_time[1]); - -# SQL ð -$print['sqltime'] = $sqltime1 + $sqltime2; -$print['sqltime'] = "SQL Time [ {$print['sqltime']} Sec ]"; - -# ˻ ̺ -if($o['at'] == "d" || $o['at'] == "dp") - $print['dsearch'] = detail_searchform(); -else { - $page = $page ? $page : "1"; - $print['dserlink'] = "" . - "[ " . $_('detable_search_link') . " ]"; -} - -# ˻, -$sform = search_form($o); -$pform = page_form($pages,$o); - -# ñ Ʈ ½ preview Ҷ ʿ JavaScript -#if ($enable['pre']) $print['preview_script'] = print_preview_src(); -if ($enable['pre']) - $print['preview_script'] = ''; - -# ۵ ǥ -if($enable['dhost']) { - $list['dhost'] = get_hostname($enable['dlook']); - if($enable['dwho']) - $list['dhost'] = "". - "{$list['dhost']}"; - $print['times'] = "Access [ {$list['dhost']} ] {$print['sqltime']}"; -} else $print['times'] = "{$print['pagetime']} {$print['sqltime']}"; - -# ε ð -$p_time[] = microtime(); -$print['pagetime'] = get_microtime($p_time[0], $p_time[1]); -$print['pagetime'] = "Page Loading [ {$print['pagetime']} Sec ]"; - -sql_close($c); - -$sform['ss'] = preg_replace("/\\\\+/i","\\",$sform['ss']); - -# PAGE DISPLAY -meta_char_check($print['theme'], 1, 1); -$bodyType = 'list'; -include "./theme/{$print['theme']}/index.template"; -?> diff --git a/list.php3 b/list.php3 new file mode 100644 index 00000000..3751c71a --- /dev/null +++ b/list.php3 @@ -0,0 +1,56 @@ + 0"); + $rcount = mysql_result($result, 0, "COUNT(*)"); // + + $count = $acount - $rcount; + + $result = dquery("SELECT COUNT(*) FROM $table WHERE date > $today"); + $tcount = mysql_result($result, 0, "COUNT(*)"); // ö + + if ($count % $pern) { + $apage = intval($count / $pern) + 1; + } else { + $apage = intval($count / $pern); + } +} + +if (!$page) { $page = 1; } +if ($apage && $page > $apage) { $page = $apage; } +if (!$act) { $act = "normal"; } +if (!$no) { $no = ($page - 1) * $pern; } + +$prev = $page - 1; +$next = $page + 1; + +plist($no, $act); // + +echo ("
    \n") ; +list_cmd_bar ($page, $l0_bg, $table, $sc_column); +echo("
    \n\n"); + +include("include/$table/tail.ph"); + +?> + diff --git a/locate.php b/locate.php deleted file mode 100644 index 8c3432c6..00000000 --- a/locate.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/login.php b/login.php deleted file mode 100644 index f65ca91a..00000000 --- a/login.php +++ /dev/null @@ -1,41 +0,0 @@ -"; -$tin = ( $type == 'admin' ) ? "" : ""; -$board['align'] = $board['align'] ? $board['align'] : "center"; -$print['theme'] = ! $print['theme'] ? 'KO-default' : $print['theme']; - -meta_char_check ($print['theme'], 1, 1); - -require_once "./theme/{$print['theme']}/config.php"; -require_once "./theme/{$print['theme']}/login.template"; -?> diff --git a/read.php b/read.php deleted file mode 100644 index 929de038..00000000 --- a/read.php +++ /dev/null @@ -1,192 +0,0 @@ -\n".auto_link($notice['contents'])."\n
    "; - $list['date'] = filemtime("data/$table/config.php"); - $list['date'] = date("Y.m.d H:i:s",$list['date']); - $list['uname'] = "Board Admin"; - $list['refer'] = "Don't Check"; - - # Admin Link - if($board['super'] == 1 || $board['adm']) { - if(@file_exists("./theme/{$print['theme']}/img/admin.gif")) - $print['adpath'] = "" . $_("; - else $print['adpath'] = "[ admin ]"; - $print['admin'] = "". - "{$print['adpath']}"; - } - - # PAGE DISPLAY - meta_char_check($print['theme'], 1, 1); - $bodyType = 'read'; - include "theme/{$print['theme']}/index.template"; -} else{ - if((preg_match("/^(2|3|5|7)$/",$board['mode']) && $_SESSION[$jsboard]['id']) || $board['super']) { - $pre_regist['name'] = $_SESSION[$jsboard]['id']; - $pre_regist['rname'] = $_SESSION[$jsboard]['name']; - $pre_regist['email'] = $_SESSION[$jsboard]['email']; - $pre_regist['url'] = $_SESSION[$jsboard]['url']; - } else { - $pre_regist['name'] = str_replace("\\","",$_COOKIE['board_cookie']['name']); - $pre_regist['email'] = str_replace("\\","",$_COOKIE['board_cookie']['email']); - $pre_regist['url'] = str_replace("\\","",$_COOKIE['board_cookie']['url']); - } - - if ($corder && $_COOKIE['cookie_sort'] != $corder) { - # ڸƮ Ű - $month = 60 * 60 * 24 * $board['cookie']; - $cookietime = time() + $month; - - setcookie("cookie_sort", $corder, $cookietime); - } else { - $corder = $corder ? $corder : $_COOKIE['cookie_sort']; - } - - $a_time[] = microtime(); # ӵ üũ - $c = sql_connect($db['server'], $db['user'], $db['pass'], $db['name']); - - if($num && !$no) { - $num = get_article($table, $num, "no", "num"); - $no = $num['no']; - } - - $list = get_article($table, $no); - $page = !$page ? get_current_page($table, $list['idx']) : $page; # ġ - $pos = get_pos($table, $list['idx']); # , ȣ - - $a_time[] = microtime(); # ӵ üũ - $sqltime1 = get_microtime($a_time[0], $a_time[1]); - - # 左 ȵǾ ⺻ - $board['wwrap'] = !$board['wwrap'] ? 120 : $board['wwrap']; - - $list['num'] = print_reply($table, $list); - $list['date'] = date("Y-m-d H:i:s", $list['date']); - $list['text'] = $list['html'] ? $list['text'] : wordwrap($list['text'],$board['wwrap']); - text_nl2br($list['text'], $list['html']); - conv_emoticon($list['text'], $enable['emoticon']); - new_reply_read_format ($list['text'], $list['html']); - - macro_interwiki(); - wikify($list['text']); - - # ̸ ̺ ũ⿡ ٷ ѱ - if (!preg_match("/%$/", $board['width'])) { - $title_width = $board['width'] / 8; - settype($title_width,"integer"); - $list['title'] = wordwrap($list['title'],$title_width,"
    \n",1); - } - $list['title'] = preg_replace("/&(amp|lt|gt)/i","&\\1",$list['title']); - - # title Ʈ Ҽ ְ - $list['title'] = preg_replace("/<((\/)*font[^&]*)>/i","<\\1>",$list['title']); - $list['title'] = preg_replace("/]*color=([a-z0-9#]+)[^>]*>/i","",$list['title']); - - # ˻ ڿ - $list = search_hl($list); - - if($board['rnname'] && preg_match("/^(2|3|5|7)/",$board['mode'])) - $list['cname'] = $list['rname'] ? $list['rname'] : $list['name']; - else $list['cname'] = $list['name']; - - if($list['email']) $list['uname'] = url_link($list['email'], $list['cname']); - else $list['uname'] = $list['cname']; - if($list['url']) { - if(preg_match("/^http:\/\//i", $list['url'])) $list['uname'] .= " [" . url_link($list['url'], $_('ln_url')) . "]"; - else $list['uname'] .= " [" . url_link("http://{$list['url']}", $_('ln_url')) . "]"; - } - - # Admin Link - if($board['super'] == 1 || $board['adm']) { - if(@file_exists("./theme/{$print['theme']}/img/admin.gif")) - $print['adpath'] = "" . $_("; - else $print['adpath'] = "[ admin ]"; - $print['admin'] = "". - "{$print['adpath']}"; - } - - # Խ б ܿ , , ۾ ũ - if($enable['dhost']) { - $list['dhost'] = get_hostname($enable['dlook'],$list['host']); - if($enable['dwho']) - $_lang['hlinked'] = "". - "{$list['dhost']}"; - else $_lang['hlinked'] = "{$list['dhost']}"; - $print['regist'] = "Register [ {$_lang['hlinked']} ]"; - } - - # ÷ - if($list['bofile']) { - $hfsize = human_fsize($list['bfsize']); - $tail = check_filetype($list['bofile']); - $fileicon = icon_check($tail,$list['bofile']); - $down_link = check_dnlink($table,$list); - $list['attach'] = "". - "\"{$list['bofile']}\"". - " {$list['bofile']} - $hfsize"; - } - - if ($list['bofile']) { - $tail = check_filetype($list['bofile']); - $preview = viewfile($tail); - } - - # ñ Ʈ ½ preview Ҷ ʿ JavaScript - if ($enable['pre'] && $enable['re_list'] && ($list['reto'] || $list['reyn'])) - $print['preview_script'] = ''; - - $b_time[] = microtime(); # ӵ üũ - - # б⿡ ñ Ʈ - if($enable['re_list'] && ($list['reto'] || $list['reyn'])) $print['rlists'] = "\n".article_reply_list($table,$pages,0); - - # ĿƮ Ʈ - $print['comment'] = $enable['comment'] ? print_comment($table,$no,0) : ""; - - # о ȸ 1 ø - #if (get_hostname(0) != $list['host']) sql_query("UPDATE $table SET refer = refer + 1 WHERE no = '$no'", $c); - replication_addrefer($db); - - $b_time[] = microtime(); # ӵ üũ - $sqltime2 = get_microtime($b_time[0], $b_time[1]); - - # ˻ ̺ - if($o['at'] == "d" || $o['at'] == "dp") - $print['dsearch'] = detail_searchform(); - else { - $page = $page ? $page : "1"; - $print['dserlink'] = "[ " . $_('detable_search_link') . " ]"; - } - - # ˻, - $sform = search_form($o); - $pform = page_form($pages,$o); - - # SQL ð - $print['sqltime'] = $sqltime1 + $sqltime2; - - # PAGE ε ð - $print['pagetime'] = get_microtime($p_time[0],$b_time[1]); - - sql_close($c); - - $sform['ss'] = preg_replace("/\\\\+/i","\\",$sform['ss']); - - # PAGE DISPLAY - meta_char_check($print['theme'], 1, 1); - $bodyType = 'read'; - include "theme/{$print['theme']}/index.template"; - echo $preview['bo']; -} -?> diff --git a/read.php3 b/read.php3 new file mode 100644 index 00000000..2c963809 --- /dev/null +++ b/read.php3 @@ -0,0 +1,169 @@ +\n", "
    ", $text); + + /* 鿩 . pre tagó Ϻϰ */ + $text = eregi_replace(" ", "  ", $text); + /* html ÿ table nl2br() Լ Ű */ + $text = eregi_replace("a-z&\;])+([<\/]+(ta|tr|td))","\\2",$text) ; + + + if ($reto) { + $result = dquery("SELECT num FROM $table WHERE no = $reto"); + $num = mysql_result($result, 0, "num"); + + $reno = $num ; + $num = reno_lang($reno,$lang) ; + + } + if (!$page) // page ȣ + $page = get_page($no); + + if($email) + $name = "$name"; + + $next = get_next($no); + $prev = get_prev($no); + + echo("\n" . + "\n" . + "
    \n" . + "[admin]\n" . + "\n" ) ; + + if ($menuallow == "yes") { read_cmd_bar($no, $page, $prev, $next, $r0_bg, $act, $table, $passwd, $email); } + else { echo "$remote_ip_ment [ $remotes ] " ; } + + echo("
    \n" . + "\n
    \n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n" . + "\n"); + + // jinoos -- ȭϿ Ȯڸ ˻ؼ ˸ ȭ Ų. + + if($file_upload == "yes" && $bofile) { + + $tail = substr( strrchr($bofile, "."), 1 ); + if(!($tail==zip || $tail ==exe || $tail==gz || $tail==mpeg || $tail==ram || $tail==hwp || $tail==mpg || $tail==rar || $tail==lha || $tail==rm || $tail==arj || $tail==tar || $tail==avi || $tail==mp3 || $tail==ra || $tail==rpm || $tail==gif || $tail==jpg || $tail==bmp)) { + echo"\n"); + + } + + echo("\n" . + "\n\n\n" . + "
    $num $title
    $subj_writer: $name"); + if ($url) + echo(" $subj_home_link"); + + $hostip = getenv('REMOTE_ADDR'); + + // jinoos -- $admin_ip_addr ̿Ͽ ڷ ؼ ȸ ö ʵ + // Ǹ ؼ db.ph ϵ سҴ. + + if ($hostip != $admin_ip_addr) { + ++$refer; // ȸ ø + } + echo("$subj_date: $date$subj_read: $refer
    \"$bofile\" $bofile\n"; + }else{ + echo"
    \"$bofile\" $bofile\n"; + } + echo (" $bfsize Bytes
    \n" . + "") ; + + /* ϵ gif Ǵ jpg ̸ Ѵ */ + if ($bofile) { + + $tail = substr( strrchr($bofile, "."), 1 ); + + if ($tail == "gif" || $tail == "jpg") { + echo ("

    "); + } + + } + + echo("\n$text\n") ; + + /* ϵ txt file ̸ Ѵ */ + if ($bofile) { + + $tail = substr( strrchr($bofile, "."), 1 ); + + if ($tail == "txt") { + echo ("


    \n" . + "---- $subj_attach -------------------------- \n

    \n

    ");
    +        include("$filesavedir/$bcfile/$bofile");
    +        echo("\n
    \n

    "); + + } + + } + + echo("
    \n
    "); + + + $end_sql_time = microtime(); //ӵ üũ + $sqltime = get_microtime($start_sql_time, $end_sql_time); + + include("include/search.ph"); + + echo("
    \n
    \n\n
    "); + + read_cmd_bar($no, $page, $prev, $next, $r0_bg, $act, $table, $passwd, $email); + + echo("\n
    \n"); + + dquery("UPDATE $table SET refer = $refer WHERE no = $no"); +} + +include("include/$table/tail.ph"); + +?> diff --git a/regist.php b/regist.php deleted file mode 100644 index 925d1e45..00000000 --- a/regist.php +++ /dev/null @@ -1,176 +0,0 @@ -", str_replace ("\r\n","\n", $_('reg_attention'))); -$_lang['reg_attention'] = str_replace (' ',' ', $_lang['reg_attention']); -$_lang['reg_attention'] = str_replace ('__',' ', $_lang['reg_attention']); - -$print['head'] = get_title (); - -if ( $agent['tx'] ) $backbutton = ""; -else $backbutton = "\n"; - -if ( ! $m ) { - $print['body'] = " - -
    -


    -User Registration - -
    - - -
    -{$_lang['reg_attention']} -
    - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - -
    " . $_('u_nid') . " - - -" . $_('u_pass') . "
    " . $_('u_name') . "" . $_('u_email') . "
    " . $_('u_url') . "
    - -$backbutton - - -
    -
    -
    \n"; - - $p_time[] = microtime(); - $print['pagetime'] = get_microtime ($p_time[0], $b_time[1]); - - meta_char_check ($print['theme'], 1, 1); - $bodyType = 'ext'; - require_once "theme/{$print['theme']}/index.template"; -} else if ( $m == 'chkid') { - if ( ! trim ($id)) print_notice ('INPUT UR ID', 250, 150, 1); - if ( preg_match ("/[^\xA1-\xFEa-z0-9]/i", $id) ) print_notice ($_('chk_id_s'), 250, 150, 1); - if ( ! trim ($id) || preg_match ("/[^\xA1-\xFEa-z0-9]/i", $id) ) { - echo ""; - exit; - } - - $query = "SELECT nid FROM userdb WHERE nid = '$id'"; - $r = sql_query ($query, $c); - $row = sql_num_rows ($r); - sql_close ($c); - - if ( $row ) $ment = $_('chk_id_n'); - else $ment = $_('chk_id_y'); - - $board['width'] = 0; - $print['body'] = "

    \n\n". - "
    \n\n". - "ID CHECK\n\n". - "

    \n". - "\n". - "\n". - "\n". - "
    $ment
    " . - "
    \n". - "
    \n". - "
    \n"; - - $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"; -} -?> diff --git a/reply.php b/reply.php deleted file mode 100644 index 23412137..00000000 --- a/reply.php +++ /dev/null @@ -1,125 +0,0 @@ -\n]+)\n([^\n<>]+)>/i"; -$resu_list[0] = "<\\1 \\2>"; -$conv_list[1] = "/^/"; -$resu_list[1] = ": "; -$conv_list[2] = "/\n/"; -$resu_list[2] = "\n: "; -$list['text'] = preg_replace($conv_list, $resu_list, $list['text']); - */ -$list['text'] = <<"; - $orig_button = "\n" . - "\n" . - "\n"; -} else { - $text_area = ""; - $orig_button = "\n"; -} - -$page = $page ? $page : 1; -$print['passform'] = "\n". - "\n". - "\n". - "\n". - "". - ""; - -$pre_regist['rname'] = !$pre_regist['rname'] ? "" : "\n"; - -if(!$nodisable) { - $print['passform'] .= "\n". - "{$pre_regist['rname']}". - "\n". - "\n\n"; -} elseif($_SESSION[$jsboard]['pos'] == 1) { - $print['passform'] .= "{$pre_regist['rname']}\n"; -} - -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']; - -$pages = "&page=$page"; - -sql_close($c); - -$print['preview_script'] = << - var tarea_width = '{$board['width']}'; - var tarea_cols = '{$size['text']}'; - -EOF; - -# Template file ȣ -meta_char_check($print['theme'], 1, 1); -$bodyType = 'reply'; -require_once 'captcha/captchacommon.php'; -include "theme/{$print['theme']}/index.template"; -?> diff --git a/reply.php3 b/reply.php3 new file mode 100644 index 00000000..708d3a56 --- /dev/null +++ b/reply.php3 @@ -0,0 +1,137 @@ + +
    + +
    +
    + + + + + + +\n" . + " \n" . + " \n" . + " \n" . + ""; +} ?> +\n" . + " \n" . + " \n" . + " \n" . + ""; +} ?> + + + + + + + + + + + + +". + "". + "". + ""); +} +?> + + + + +
    $subj_email$subj_email_str
    $subj_home$subj_home_str
    HTML + + +
    $subj_upload". + "
    + +
    + +
    + + + + + +\n"); +} +?> + +
    + +  + +

    +
    +
    + +
    + + diff --git a/rss.php b/rss.php deleted file mode 100644 index d444add7..00000000 --- a/rss.php +++ /dev/null @@ -1,147 +0,0 @@ -\nalert('Don\'t exist header file');\n" . - "history.back();\nexit;\n\n"; - exit(); -} else { - include 'include/header.php'; -} - -# RSS üũ (user config file ) -# -if ( ! $rss['use'] ) { - echo "Don't rss support on this board\n"; - exit(); -} - -# rss Ʈ -# -$rss['default_article_number'] = '30'; - -# Խ ּ -# -$rss['link'] = $board['path'] . "list.php?table=" . $table; - -if (!$no) - $no = $rss['default_article_number']; - -# DB -# -$c = sql_connect($db['server'], $db['user'], $db['pass'], $db['name']); - -# Description ְ ƴ üũ (config file üũ) -# -if ($rss['is_des']) - $sql = "select no, date, name, rname, title, text from {$table} order by date DESC limit {$no}"; -else - $sql = "select no, date, name, rname, title from {$table} order by date DESC limit $no"; - -$result = sql_query ($sql, $c); -$i = 0; - -while( $rss_article[$i] = sql_fetch_array($result) ) { - $rss_article[$i]['title'] = htmlspecialchars ($rss_article[$i]['title'], ENT_QUOTES); - $rss_article[$i]['link'] = "{$board['path']}read.php?table={$table}&no={$rss_article[$i]['no']}"; - $rss_article[$i]['date'] = date ("r", $rss_article[$i]['date']); - #$rss_article[$i]['date'] = date("Y-m-d",$rss_article[$i]['date'] ) . 'T' . date("H:i:sO", $rss_article[$i]['date']); - - if ( $rss['is_des'] ) { - #$rss_article[$i]['text'] = preg_replace ("!\n!", "
    \n", $rss_article[$i]['text']); - $rss_article[$i]['text'] = preg_replace ("!([0-9]+;[0-9]+m)?!", "", $rss_article[$i]['text']); - $rss_article[$i]['text'] = htmlspecialchars ($rss_article[$i]['text']); - $rss_article[$i]['text'] = auto_link ($rss_article[$i]['text']); - - $_body = "\n" . - "\n" . - "\n" . - "
    \n" . - "\n" . - "\n" . - "
    \n" . - "REPLY : " . - "{$board['path']}reply.php?table={$table}&no={$rss_article[$i]['no']}
    \n" . - "DELETE: " . - "{$board['path']}delete.php?table={$table}&no={$rss_article[$i]['no']}\n" . - "
    \n" . - "
    \n" . - "\n" . - "\n" . - "
    \n" .
    -             "{$rss_article[$i]['text']}\n" .
    -             "
    \n" . - "
    \n"; - - $_body = htmlspecialchars ($_body, ENT_QUOTES); - $rss_article[$i]['text'] = $_body; - } - - if (!$rss_article[$i]['name']) - $rss_article[$i]['name'] = $rss_article[$i]['rname']; - - $i++; -} - -$rss_article_num = $i; -unset($result, $i); -sql_close($c); - -$now = time (); -$cYear = date ("Y", $now); -$bdate = date ("r", $now); -$_charset = strtolower ($_('charset')); - -$gotoUTF8 = check_utf8_conv ($_charset); -$cset = $gotoUTF8 ? 'utf-8' : $_charset; - -# ̻ , RSS -# -header ('Cache-Control: no-cache, pre-check=0, post-check=0, max-age=0'); -header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT'); -header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header ('Content-Type: text/xml; charset=' . $cset); - -utf8_fallback ($rss['channel'], $_charset); -utf8_fallback ($board['title'], $_charset); - -echo "\n"; -?> - - - - <?=$rss['channel']?> - - - - 1999- JSBoard Open Project - - JSBoard - -\n" . - " {$rss_article[$i]['title']}\n" . - " {$rss_article[$i]['link']}\n" . - " {$rss_article[$i]['link']}\n"; - - if ( $rss['is_des'] ) { - echo " {$rss_article[$i]['text']}\n"; - } - - echo " {$rss_article[$i]['date']}\n" . - " {$rss_article[$i]['name']}\n" . - "\n"; -} -?> - - - diff --git a/session.php b/session.php deleted file mode 100644 index 00e47f28..00000000 --- a/session.php +++ /dev/null @@ -1,109 +0,0 @@ - $r['nid'], 'pass' => $r['passwd'], - 'name' => $r['name'], 'email' => $r['email'], - 'url' => $r['url'], 'pos' => $r['position'], - 'external' => $edb['uses']); - - if ( ! $edb['uses'] ) { - if ( ! ${$jsboard}['pos'] ) { - $result = sql_query ("SELECT nid FROM userdb WHERE position = 1", $c); - ${$jsboard}['super'] = sql_result ($result, 0, "nid"); - sql_free_result ($result); - sql_close ($c); - } else - ${$jsboard}['super'] = ${$jsboard}['id']; - } else { - if ( $r['position'] == 1 ) - ${$jsboard}['super'] = $r['nid']; - else - ${$jsboard}['super'] = $edb['super']; - } - - # - session_register ($jsboard); - $_SESSION[$jsboard] = $$jsboard; - - if( $type == "admin" && ${$jsboard}['pos'] == 1 ) { - header ("Location: admin/admin.php"); - } else if ( ! $table ) { - header ("Location: {$print['dpage']}"); - } else { - header ("Location: list.php?table={$table}"); - } - } else { - move_page ("./session.php?m=logout&logins=fail{$opt}{$var}",0); - } -} else if ( $m == "logout" ) { - require_once './config/global.php'; - require_once './include/check.php'; - - sessionInit($board['sessTmp']); - session_start (); - - # - session_destroy (); - - if ( $logins == 'fail' ) { - if ( $type == 'admin' ) - $var = '?type=admin'; - else if ( $table ) - $var = "?table={$table}"; - - if ( ! trim ($var) && $print['dopage'] ) { - header ("Location: {$print['dopage']}"); - } else { - header ("Location: ./login.php{$var}"); - } - } else { - require_once './include/error.php'; - require_once './include/get.php'; - require_once './include/check.php'; - - $urls = $edb['logout']; - - if ( $url && preg_match ("/^http:/i", $url) ) { - $urls = rawurldecode ($url); - } - - if ( ! trim ($urls) ) { - if ( $table ) { - meta_char_check ($table, 0, 1); - require_once "./data/{$table}/config.php"; - } - $urls = trim ($print['dopage']) ? $print['dopage'] : "./login.php{$var}"; - } - - header ("Location: {$urls}"); - } -} else if ( $m == 'back' ) { - header ('Location:admin.php'); -} -?> diff --git a/theme/Changelog.theme b/theme/Changelog.theme deleted file mode 100644 index e6abbdf7..00000000 --- a/theme/Changelog.theme +++ /dev/null @@ -1,55 +0,0 @@ -$Id: Changelog.theme,v 1.7 2009-11-16 21:52:47 oops Exp $ - -Version: A9 -- new type -- tag id ߰ -- tag $_focus ߰ -- write.php/reply.php ߰ -- textarea tag class="resizable" ߰ -- include textarea.js -- write/edit/reply reset button button type -- password field textarea Լ -- write/reply td colspan -- write/reply captcha image ߰ (passwd ʵ ..) - -Version: A8 -- rss tag ߰ (list.template) - -Version: A7 -- .ph ҷ⸦ .php Ϸ - -Version: A6 -- Լ̸ (pirnt_keymenu -> print_keymenu) -- SYTLE SHEET -- edit.template - - - . - -Version: A5 -- edit, replay, write template textarea tab - ̵ǰ - -Version: A4 -- Ű ڵ ߰ : -- edit.template, reply.template, write.template - if ($upload[yesno] && $cupload[yesno] && $agent[br] != "LYNX") { - - if ($upload[yesno] && $cupload[yesno] && $noup != 1) { - - -Version: A3 -- logout ũ ߰ ( - list.template, read.template) -- img/notice.gif ߰ ( ICON) -- ,Ʈ ߰ (config.ph) - -Version: A2 -- INPUT password MAXLENGTH=8 MAXLENGTH=16 -- INPUT password style sheet STYLE=\"font: 10px tahoma\" ߰ - (IE 6.x -xp- н ʵ带 ̻ϰ ϴ ) -- mail ߼ 濡 mail html design ø ߰ (mail.template) -- login.php read.php ĿƮ -- reply design - -Version: A1 -- theme diff --git a/theme/EN-default/config.php b/theme/EN-default/config.php deleted file mode 100644 index e96f7c9b..00000000 --- a/theme/EN-default/config.php +++ /dev/null @@ -1,64 +0,0 @@ - -$lines['height'] = "25"; - -# Follow configuration is support to add design between each -# article rows and must compose with ... pattern. -# $lines['design'] variavles must be include COLSPAN=AA string -# in tag as follow exmapl. -# -# $lines['comment_design'] is for comment rows to add design, -# and is composed .. block. This variables don't need -# COLSPAN=AA string in tag. -#$lines['design'] = "
    "; -$lines['design'] = ""; -$lines['comment_design'] = "" . - "" . - "" . - ""; - -############################################################## -# Width Configuration -############################################################## - -# list paget table ratio =================================== -$td_width['no'] = "5%"; # No Field Width - -# title filed width -if ($upload['yesno'] && $cupload['yesno']) $td_width['title'] = "54%"; -else $td_width['title'] = "63%"; - -$td_width['name'] = "14%"; # Writer Field Width -$td_width['upload'] = "9%"; # Upload File Field Width -$td_width['dates'] = "13%"; # Date Field Width -$td_width['refer'] = "5%"; # Read Field Width - -############################################################## -# Field Array Configuration -############################################################## -# Config field order in article lists -# n -> Number of Article -# T -> Subject of Article -# N -> Register of Article -# F -> Attached file -# D -> Date of Article Registration -# R -> Read of Article -# -$td_array = "nTNFDR"; -?> diff --git a/theme/EN-default/default.css b/theme/EN-default/default.css deleted file mode 100644 index e134f95e..00000000 --- a/theme/EN-default/default.css +++ /dev/null @@ -1,491 +0,0 @@ -/* - * User Define CSS - * $Id: default.css,v 1.7 2009-11-16 21:52:47 oops Exp $ - */ - -body { - font-size: 12px; - font-family: "Lucida Console", monospace; - color: #555555; - line-height: 120%; - background-color: #ffffff; - margin: 0px 0px; -} - -td { - font-size: 12px; - font-family: "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: "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: "Lucida Console", monospace; - 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: "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/EN-default/delete.template b/theme/EN-default/delete.template deleted file mode 100644 index e69206d9..00000000 --- a/theme/EN-default/delete.template +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - -\n/i","\\0",$list['title']); ?> - - - - - - - -
    - ->> Delete article -
    -No. - -
    - - - - - - - - - - - - - - - - - - -
    -
    -Date     -Read
    -Name     - {$list['attach']}" ?>
    -
    -
    - - - -
    - - - - - - - - -
    -
    - - - - - - -
    -
    - - - - - - - - - -
    - -[ List | Back ] -
    - -  - -
    -
    - diff --git a/theme/EN-default/edit.template b/theme/EN-default/edit.template deleted file mode 100644 index b1579e22..00000000 --- a/theme/EN-default/edit.template +++ /dev/null @@ -1,161 +0,0 @@ - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - -
    - ->> Edit article -
    - -Edit -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -\n"; -} -?> - - - - - - - - -\n"; -} -?> - - - - -\n". - "\n". - "\n". - "\n"; -} - -if ($upload['yesno'] && $cupload['yesno'] && $noup != 1) { - echo "\n". - "\n". - "\n". - "\n"; -} -?> - - - - - - - - - - - - - - - -Password\n". - "\n"; -} -?> - - - - - -


    Name maxlength=50 value="" tabindex="1">
    Email
    Homepage
    File\n". - "\n". - "{$list['bofile']}\n". - "{$list['bofile']} - $hfsize    \n". - " ϻ\n". - "
    Edit File\n". - "\n". - "\n". - "
    Subject maxlength=100 value="" tabindex="6">
    \n". - "$passment\n". - "

    - - - -
    - - - -
    - - - - - - - - - - -
    - - - - - - - - - -
    - - - - - -
    -
    diff --git a/theme/EN-default/img/admin.gif b/theme/EN-default/img/admin.gif deleted file mode 100644 index b51ac0ac..00000000 Binary files a/theme/EN-default/img/admin.gif and /dev/null differ diff --git a/theme/EN-default/img/at.gif b/theme/EN-default/img/at.gif deleted file mode 100644 index 538f817f..00000000 Binary files a/theme/EN-default/img/at.gif and /dev/null differ diff --git a/theme/EN-default/img/bnw-shape.gif b/theme/EN-default/img/bnw-shape.gif deleted file mode 100644 index a1d25bcf..00000000 Binary files a/theme/EN-default/img/bnw-shape.gif and /dev/null differ diff --git a/theme/EN-default/img/bnw.gif b/theme/EN-default/img/bnw.gif deleted file mode 100644 index 63137aac..00000000 Binary files a/theme/EN-default/img/bnw.gif and /dev/null differ diff --git a/theme/EN-default/img/board_no.gif b/theme/EN-default/img/board_no.gif deleted file mode 100644 index 9ee4f105..00000000 Binary files a/theme/EN-default/img/board_no.gif and /dev/null differ diff --git a/theme/EN-default/img/dot.gif b/theme/EN-default/img/dot.gif deleted file mode 100644 index 34b97d93..00000000 Binary files a/theme/EN-default/img/dot.gif and /dev/null differ diff --git a/theme/EN-default/img/dotted_gray.gif b/theme/EN-default/img/dotted_gray.gif deleted file mode 100644 index 8342733e..00000000 Binary files a/theme/EN-default/img/dotted_gray.gif and /dev/null differ diff --git a/theme/EN-default/img/grippie.png b/theme/EN-default/img/grippie.png deleted file mode 100644 index 7bfd3d38..00000000 Binary files a/theme/EN-default/img/grippie.png and /dev/null differ diff --git a/theme/EN-default/img/icon_over.gif b/theme/EN-default/img/icon_over.gif deleted file mode 100644 index ce9eef93..00000000 Binary files a/theme/EN-default/img/icon_over.gif and /dev/null differ diff --git a/theme/EN-default/img/login.gif b/theme/EN-default/img/login.gif deleted file mode 100644 index 858d9515..00000000 Binary files a/theme/EN-default/img/login.gif and /dev/null differ diff --git a/theme/EN-default/img/logout.gif b/theme/EN-default/img/logout.gif deleted file mode 100644 index 02b042fc..00000000 Binary files a/theme/EN-default/img/logout.gif and /dev/null differ diff --git a/theme/EN-default/img/notice.gif b/theme/EN-default/img/notice.gif deleted file mode 100644 index 0a881937..00000000 Binary files a/theme/EN-default/img/notice.gif and /dev/null differ diff --git a/theme/EN-default/index.template b/theme/EN-default/index.template deleted file mode 100644 index 78c9f3ea..00000000 --- a/theme/EN-default/index.template +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - -<?=get_title()?> - JSBoard <?=$board['ver']?> - - - - - - - -> -
    - - - - - - - - - - - - - -
    - - - - - - - - - - -
    -Copyleft -1999- by - -JSBoard Open Project
    -Theme Designed by -IDOO -All right reserved -
    - - - -
    - - - - - - - diff --git a/theme/EN-default/list.template b/theme/EN-default/list.template deleted file mode 100644 index eb45b7ca..00000000 --- a/theme/EN-default/list.template +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
    >>  
    - - - - - - - - - - - - - - - -File\n"; -?> - - - - - - - - -
    No.SubjectNameDateRead
    - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    >> Fast Page Link : -
    - -
    - - - - - - -
    - - maxlength=255 value=""> - -
    - -> -REGEX -
    - - - - -
    - -
    -
    - -
    - - - - -
    - - - maxlength=6 value=''> - -
    - -
    - diff --git a/theme/EN-default/login.template b/theme/EN-default/login.template deleted file mode 100644 index 0b4ff7a9..00000000 --- a/theme/EN-default/login.template +++ /dev/null @@ -1,96 +0,0 @@ - - - - - -JSBoard <?=$board['ver']?> Login page - - - - - - - - - -
    - -
    - - - - - - - - -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    -Password - - -
    -
    User
    Password
    -Session Reset - -
    -
    - -
    - - - - - - - - - -
    - - -
    - -
    - - - - diff --git a/theme/EN-default/mail.template b/theme/EN-default/mail.template deleted file mode 100644 index 676b6669..00000000 --- a/theme/EN-default/mail.template +++ /dev/null @@ -1,102 +0,0 @@ - - - - -JSBoard Reply Notice - - - - - - 
    -
    - - -
    - - - -
    -JSBoard Reply Notice -
    - - - -
    -
    -
    -$_('html_msg')
    -
    -Server Name       : $servername$nofm
    -
    -
    - - - -
    - - - -
    -
    -
    -$_('u_name')              : {$rmail['name']}
    -$addressinfo
    -$_('reg')              : $year $day $ampm $hms
    -
    -
    - - - -
    - - - -
    -
    -
    -{$rmail['text']}
    -
    -
    -
    - - - -
    - -Scripted by JSBoard Open Project - -
    - -
    -
    - -
    -
    -
    - - diff --git a/theme/EN-default/read.template b/theme/EN-default/read.template deleted file mode 100644 index 4231e2fb..00000000 --- a/theme/EN-default/read.template +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -\n/i", "\\0\"\"", $list['title']); ?> - - - - - - - -
    - ->> Read article -
    -TITLE: - -
    - - - - - - - - - - - - - - - - - -
    -
    -Date     -Read
    -Name     -File {$list['attach']}" : "" ?>
    -
    -
    - - - -
    - - - - - - - - - - -
    -
    - - - - - - -
    - - - - -
    - - -
    - - - - - -
    -
    ->> - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - maxlength=255 value=""> - -
    - -> -REGEX -
    - - - - -
    - -
    - -Page Loading [ Sec ] -SQL Time [ Sec ]
    -
    - -
    - - - - -
    - - - maxlength=6 value=""> - -
    - -
    - diff --git a/theme/EN-default/reply.template b/theme/EN-default/reply.template deleted file mode 100644 index 1abeec09..00000000 --- a/theme/EN-default/reply.template +++ /dev/null @@ -1,159 +0,0 @@ - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - -
    - ->> Write reply article -
    - -Reply -
    - - border=0 cellpadding=1 cellspacing=0> - - - - - - - - - - - - - - - - - - - - - - - - -\n"; -} -?> - - - - - - - - -\n"; -} -?> - - - - -\n". - "\n". - "\n". - "\n"; -} elseif(!$upload['yesno'] && $cupload['yesno']) { - echo "\n". - "\n". - "\n". - "\n"; -} -?> - - - - - - - - - - - - - - - - -Password\n". - "\n"; -} -?> - - - - - -


    Name maxlength=50 value="" tabindex="1">
    Email
    Homepage
    \n". - "\n". - "\n". - "
    " . $_('upload') . "
    Subject maxlength=100 value="" tabindex="5">
    \n". - "\n". - "{$pcaptcha}\n" . - "

    - - - -
    - - - -
    - - - - - - - - - - -
    - - - - - - - - - - -
    - - - - - -
    - -
    - diff --git a/theme/EN-default/write.template b/theme/EN-default/write.template deleted file mode 100644 index b8d52115..00000000 --- a/theme/EN-default/write.template +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - -
    - ->> Write new article -
    - -Write -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -END; -} -?> - - - - - - - - - -END; -} -?> - - - - -\n". - "\n". - "\n". - "\n"; -} elseif(!$upload['yesno'] && $cupload['yesno']) { - echo "\n". - "\n". - "\n". - "\n"; -} -?> - - - - - - - - - - - - - - -Password - -END; -} -?> - - - - - -


    Name maxlength=50 value="" tabindex="1">
    Email
    Homepage
    File\n". - "\n". - "\n". - "
    File" . $_('upload') . "
    Subject maxlength=100 tabindex="5">
    - -{$pcaptcha} -

    - - - -
    - - - -
    - - - - - - - - - -
    - - - - - - - - - -
    - - - - - -
    -
    - diff --git a/theme/JP-default/config.php b/theme/JP-default/config.php deleted file mode 100644 index 597ad6ce..00000000 --- a/theme/JP-default/config.php +++ /dev/null @@ -1,62 +0,0 @@ - -$lines['height'] = "25"; - -# Xg ̊Ԃ fUC 邽߂ R[h -# $lines['design'] ݒ ݒ ו. -# K COLSPAN=AA X čs n. ݒ Xg colspan -# 킹 ̂߂ list.php ϊ 悤 Ȃ -# p eXg \ -# $lines['comment'] comment rows g H -# n. COLSPAN=AA Kv Ȃ. -#$lines['design'] = "
    "; -$lines['design'] = ""; -$lines['comment_design'] = "\n" . - "" . - "" . - ""; - -############################################################## -# Width Configuration -############################################################## - -# list paget table ratio =================================== -$td_width['no'] = "5%"; # ԍ tB[h - -# tB[h -if ($upload['yesno'] && $cupload['yesno']) $td_width['title'] = "54%"; -else $td_width['title'] = "63%"; - -$td_width['name'] = "14%"; # tB[h -$td_width['upload'] = "9%"; # t@C tB[h -$td_width['dates'] = "13%"; # t tB[h -$td_width['refer'] = "5%"; # CbNEX tB[h - -############################################################## -# Field Array Configuration -############################################################## -# Xg tB[h 菇 `. -# n -> ԍ -# T -> -# N -> -# F -> Abv[h t@C -# D -> o^ t -# R -> ǂ -# -$td_array = "nTNFDR"; -?> diff --git a/theme/JP-default/default.css b/theme/JP-default/default.css deleted file mode 100644 index 16f7c53e..00000000 --- a/theme/JP-default/default.css +++ /dev/null @@ -1,491 +0,0 @@ -/* - * User Define CSS - * $Id: default.css,v 1.7 2009-11-16 21:52:47 oops Exp $ - */ - -body { - font-size: 12px; - font-family: ī, "Lucida Console", monospace; - color: #555555; - line-height: 120%; - background-color: #ffffff; - margin: 0px 0px; -} - -td { - font-size: 12px; - font-family: ī, "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: ī, "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: ī, "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: ī, "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/JP-default/delete.template b/theme/JP-default/delete.template deleted file mode 100644 index 0f37468b..00000000 --- a/theme/JP-default/delete.template +++ /dev/null @@ -1,95 +0,0 @@ - -
    - - - - - - - - - -\n/i","\\0\"\"",$list['title']); ?> - - - - - - - -
    >> Delete article
    -No. - -
    - - - - - - - - - - - - - - - - - - -
    -
    -o^     -ǂ
    -O     -t@C {$list['attach']} -EOF; -?>
    -
    -
    - - - -
    - - - - - - - - -
    -
    - - - - - - -
    -
    - - - - - - - - - -
    - -[ Xg | ȑO ] -
    - -  - -
    -
    - diff --git a/theme/JP-default/edit.template b/theme/JP-default/edit.template deleted file mode 100644 index 5e2471fd..00000000 --- a/theme/JP-default/edit.template +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - - -
    >> Edit article
    - - C -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -EOF; -} -?> - - - - - - - - - - -EOF; -} -?> - - - - - - - - - -EOF; -} - -if ($upload['yesno'] && $cupload['yesno'] && $noup != 1) { - echo << - - - - -EOF; -} -?> - - - - - - - - - - - - - - - -pX[h - -EOF; -} -?> - - - - - -


    O tabindex="1">
    [
    z[y[W
    t@C - -{$list['bofile']} -{$list['bofile']} - $hfsize     - t@C폜 -
    t@CC - - -
    -$passment - -

    - - - -
    - - - -
    - - - - - - - - - - -
    - - - - - - - - - -
    - - - - - -
    -
    - diff --git a/theme/JP-default/img/admin.gif b/theme/JP-default/img/admin.gif deleted file mode 100644 index b51ac0ac..00000000 Binary files a/theme/JP-default/img/admin.gif and /dev/null differ diff --git a/theme/JP-default/img/at.gif b/theme/JP-default/img/at.gif deleted file mode 100644 index 538f817f..00000000 Binary files a/theme/JP-default/img/at.gif and /dev/null differ diff --git a/theme/JP-default/img/bnw-shape.gif b/theme/JP-default/img/bnw-shape.gif deleted file mode 100644 index a1d25bcf..00000000 Binary files a/theme/JP-default/img/bnw-shape.gif and /dev/null differ diff --git a/theme/JP-default/img/bnw.gif b/theme/JP-default/img/bnw.gif deleted file mode 100644 index 63137aac..00000000 Binary files a/theme/JP-default/img/bnw.gif and /dev/null differ diff --git a/theme/JP-default/img/board_no.gif b/theme/JP-default/img/board_no.gif deleted file mode 100644 index 9ee4f105..00000000 Binary files a/theme/JP-default/img/board_no.gif and /dev/null differ diff --git a/theme/JP-default/img/dot.gif b/theme/JP-default/img/dot.gif deleted file mode 100644 index 34b97d93..00000000 Binary files a/theme/JP-default/img/dot.gif and /dev/null differ diff --git a/theme/JP-default/img/dotted_gray.gif b/theme/JP-default/img/dotted_gray.gif deleted file mode 100644 index 8342733e..00000000 Binary files a/theme/JP-default/img/dotted_gray.gif and /dev/null differ diff --git a/theme/JP-default/img/grippie.png b/theme/JP-default/img/grippie.png deleted file mode 100644 index 7bfd3d38..00000000 Binary files a/theme/JP-default/img/grippie.png and /dev/null differ diff --git a/theme/JP-default/img/icon_over.gif b/theme/JP-default/img/icon_over.gif deleted file mode 100644 index ce9eef93..00000000 Binary files a/theme/JP-default/img/icon_over.gif and /dev/null differ diff --git a/theme/JP-default/img/login.gif b/theme/JP-default/img/login.gif deleted file mode 100644 index 858d9515..00000000 Binary files a/theme/JP-default/img/login.gif and /dev/null differ diff --git a/theme/JP-default/img/logout.gif b/theme/JP-default/img/logout.gif deleted file mode 100644 index 02b042fc..00000000 Binary files a/theme/JP-default/img/logout.gif and /dev/null differ diff --git a/theme/JP-default/img/notice.gif b/theme/JP-default/img/notice.gif deleted file mode 100644 index 0a881937..00000000 Binary files a/theme/JP-default/img/notice.gif and /dev/null differ 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 deleted file mode 100644 index 48178c3a..00000000 --- a/theme/JP-default/list.template +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - -
    >>  
    - - - - - - - - - - - - - - - -t@C\n -EOF; -?> - - - - - - - - -
    No.Otǂ
    - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    >> Fast Page Link : -
    - -
    - - - - - - -
    - - - -
    - -> -K\ -
    - - - - -
    - -
    -
    - -
    - - - - -
    - - -'> - -
    - -
    - - diff --git a/theme/JP-default/login.template b/theme/JP-default/login.template deleted file mode 100644 index 795ad465..00000000 --- a/theme/JP-default/login.template +++ /dev/null @@ -1,96 +0,0 @@ - - - - - -JSBoard <?=$board['ver']?> Login page - - - - - - - - - -
    - -
    - - - - - - - - -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    -Password - - -
    -
    User
    Password
    -Session Reset - -
    -
    - -
    - - - - - - - - - -
    - - -
    - -
    - - - - diff --git a/theme/JP-default/mail.template b/theme/JP-default/mail.template deleted file mode 100644 index 077adc66..00000000 --- a/theme/JP-default/mail.template +++ /dev/null @@ -1,102 +0,0 @@ - - - - -JSBoard Reply Notice - - - - - - 
    -
    - - -
    - - - -
    -JSBoard Reply Notice -
    - - - -
    -
    -
    -$_('html_msg')
    -
    -Server Name       : $servername$nofm
    -
    -
    - - - -
    - - - -
    -
    -
    -$_('u_name')              : {$rmail['name']}
    -$addressinfo
    -$_('reg')              : $year $day $ampm $hms
    -
    -
    - - - -
    - - - -
    -
    -
    -{$rmail['text']}
    -
    -
    -
    - - - -
    - -Scripted by JSBoard Open Project - -
    - -
    -
    - -
    -
    -
    - - diff --git a/theme/JP-default/read.template b/theme/JP-default/read.template deleted file mode 100644 index 7eb4a863..00000000 --- a/theme/JP-default/read.template +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n/i", "\\0\"\"", $list['title']); ?> - - - - - - - -
    >> Read article
    -TITLE: - -
    - - - - - - - - - - - - - - - - - -
    -
    -o^     -ǂ
    -O     -t@C {$list['attach']}" : "" ?>
    -
    -
    - - - -
    - - - - - - - - - -
    -
    - - - - - - -
    - - - - -
    - - -
    - - - - - -
    -
    ->> - - - -
    - - - - - - - - - - - - -
    -
    - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - -
    - -> -K\ -
    - - - - -
    - -
    - -Page Loading [ Sec ] -SQL Time [ Sec ]
    -
    - -
    - - - - -
    - - - - -
    - -
    - - diff --git a/theme/JP-default/reply.template b/theme/JP-default/reply.template deleted file mode 100644 index 3b6e0c83..00000000 --- a/theme/JP-default/reply.template +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - - -
    >> Write reply article
    - -fbO -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -EOF; -} -?> - - - - - - - - - - -EOF; -} -?> - - - - - - - - - -EOF; -} elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; -} -?> - - - - - - - - - - - - - - - - -pX[h - -EOF; -} -?> - - - - - -


    O tabindex="1">
    [
    z[y[W
    t@C - - -
    t@C" . $_('upload') . "
    " tabindex="5">
    - -{$pcaptcha} -

    - - - -
    - - - -
    - - - - - - - - - - -
    - - - - - - - - - - -
    - - - - - -
    - -
    - diff --git a/theme/JP-default/write.template b/theme/JP-default/write.template deleted file mode 100644 index ff04860c..00000000 --- a/theme/JP-default/write.template +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - - -
    >> Write new article
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -END; -} -?> - - - - - - - - - -END; -} -?> - - - - - - - - - -EOF; -} elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; -} -?> - - - - - - - - - - - - - - -pX[h - -END; -} -?> - - - - - -


    O tabindex="1">
    [
    z[y[W
    t@C - - -
    t@C" . $_('upload') . "
    - -{$pcaptcha} -

    - - - -
    - - - -
    - - - - - - - - - -
    - - - - - - - - - -
    - - - - - -
    -
    - diff --git a/theme/KO-default/config.php b/theme/KO-default/config.php deleted file mode 100644 index 56ccb834..00000000 --- a/theme/KO-default/config.php +++ /dev/null @@ -1,63 +0,0 @@ - -$lines['height'] = '25'; - -# Ʈ ̿ ֱ ڵ -# $lines['design'] ̷ . -# COLSPAN=AA  . ̼ Ʈ colspan -# ߱ list.php ȯ ϰ Ǿ -# ̿Ͽ ׽Ʈ ٶ -# $lines['comment'] comment rows Ǹ -# . COLSPAN=AA ʿ . -#$lines['design'] = '
    '; -$lines['design'] = ''; -$lines['comment_design'] = '' . - '' . - '' . - ''; - -############################################################## -# Width Configuration -############################################################## - -# list paget table ratio =================================== -$td_width['no'] = '5%'; # ȣ ʵ ʺ - -# ʵ ʺ -if ($upload['yesno'] && $cupload['yesno']) $td_width['title'] = '54%'; -else $td_width['title'] = '63%'; - -$td_width['name'] = '14%'; # ۾ ʵ ʺ -$td_width['upload'] = '9%'; # ʵ ʺ -$td_width['dates'] = '13%'; # ¥ ʵ ʺ -$td_width['refer'] = '5%'; # ʵ ʺ - -############################################################## -# Field Array Configuration -############################################################## -# Ʈ ʵ Ѵ. -# n -> ۹ȣ -# T -> -# N -> ۾ -# F -> ε -# D -> ۵ ¥ -# R -> -# -$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 deleted file mode 100644 index d0e4f771..00000000 --- a/theme/KO-default/delete.template +++ /dev/null @@ -1,95 +0,0 @@ - -
    - - - - - - - - - -\n/i","\\0\"\"",$list['title']); ?> - - - - - - - -
    >> Delete article
    -No. - -
    - - - - - - - - - - - - - - - - - - -
    -
    -     -ȸ
    -̸     - {$list['attach']} -EOF; -?>
    -
    -
    - - - -
    - - - - - - - - -
    -
    - - - - - - -
    -
    - - - - - - - - - -
    - -[ | ] -
    - -  - -
    -
    - diff --git a/theme/KO-default/edit.template b/theme/KO-default/edit.template deleted file mode 100644 index d79b5378..00000000 --- a/theme/KO-default/edit.template +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - - -
    >> Edit article
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -EOF; -} -?> - - - - - - - - - - -EOF; -} -?> - - - - - - - - - -EOF; -} - -if ($upload['yesno'] && $cupload['yesno'] && $noup != 1) { - echo << - - - - -EOF; -} -?> - - - - - - - - - - - - - - - -н - -EOF; -} -?> - - - - - -


    ̸ tabindex="1">
    Ȩ
    - -{$list['bofile']} -{$list['bofile']} - $hfsize     - ϻ -
    ϼ - - -
    -$passment - -

    - - - -
    - - - -
    - - - - - - - - - - -
    - - - - - - - - - -
    - - - - - -
    -
    diff --git a/theme/KO-default/img/admin.gif b/theme/KO-default/img/admin.gif deleted file mode 100644 index b51ac0ac..00000000 Binary files a/theme/KO-default/img/admin.gif and /dev/null differ diff --git a/theme/KO-default/img/at.gif b/theme/KO-default/img/at.gif deleted file mode 100644 index 538f817f..00000000 Binary files a/theme/KO-default/img/at.gif and /dev/null differ diff --git a/theme/KO-default/img/bnw-shape.gif b/theme/KO-default/img/bnw-shape.gif deleted file mode 100644 index a1d25bcf..00000000 Binary files a/theme/KO-default/img/bnw-shape.gif and /dev/null differ diff --git a/theme/KO-default/img/bnw.gif b/theme/KO-default/img/bnw.gif deleted file mode 100644 index 63137aac..00000000 Binary files a/theme/KO-default/img/bnw.gif and /dev/null differ diff --git a/theme/KO-default/img/board_no.gif b/theme/KO-default/img/board_no.gif deleted file mode 100644 index 9ee4f105..00000000 Binary files a/theme/KO-default/img/board_no.gif and /dev/null differ diff --git a/theme/KO-default/img/dot.gif b/theme/KO-default/img/dot.gif deleted file mode 100644 index 34b97d93..00000000 Binary files a/theme/KO-default/img/dot.gif and /dev/null differ diff --git a/theme/KO-default/img/dotted_gray.gif b/theme/KO-default/img/dotted_gray.gif deleted file mode 100644 index 8342733e..00000000 Binary files a/theme/KO-default/img/dotted_gray.gif and /dev/null differ diff --git a/theme/KO-default/img/grippie.png b/theme/KO-default/img/grippie.png deleted file mode 100644 index 7bfd3d38..00000000 Binary files a/theme/KO-default/img/grippie.png and /dev/null differ diff --git a/theme/KO-default/img/icon_over.gif b/theme/KO-default/img/icon_over.gif deleted file mode 100644 index ce9eef93..00000000 Binary files a/theme/KO-default/img/icon_over.gif and /dev/null differ diff --git a/theme/KO-default/img/login.gif b/theme/KO-default/img/login.gif deleted file mode 100644 index 858d9515..00000000 Binary files a/theme/KO-default/img/login.gif and /dev/null differ diff --git a/theme/KO-default/img/logout.gif b/theme/KO-default/img/logout.gif deleted file mode 100644 index 02b042fc..00000000 Binary files a/theme/KO-default/img/logout.gif and /dev/null differ diff --git a/theme/KO-default/img/notice.gif b/theme/KO-default/img/notice.gif deleted file mode 100644 index 0a881937..00000000 Binary files a/theme/KO-default/img/notice.gif and /dev/null differ 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 deleted file mode 100644 index 128fe2aa..00000000 --- a/theme/KO-default/list.template +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - -
    >>  
    - - - - - - - - - - - - - - - -\n -EOF; -?> - - - - - - - - -
    No.̸¥ȸ
    - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    >> Fast Page Link : -
    - -
    - - - - - - -
    - - - -
    - -> -ǥ -
    - - - - -
    - -
    -
    - -
    - - - - -
    - - -'> - -
    - -
    - diff --git a/theme/KO-default/login.template b/theme/KO-default/login.template deleted file mode 100644 index da9c07da..00000000 --- a/theme/KO-default/login.template +++ /dev/null @@ -1,96 +0,0 @@ - - - - - -JSBoard <?=$board['ver']?> Login page - - - - - - - - - -
    - -
    - - - - - - - - -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    -Password - - -
    -
    User
    Password
    -Session Reset - -
    -
    - -
    - - - - - - - - - -
    - - -
    - -
    - - - - diff --git a/theme/KO-default/mail.template b/theme/KO-default/mail.template deleted file mode 100644 index e7c0b16b..00000000 --- a/theme/KO-default/mail.template +++ /dev/null @@ -1,102 +0,0 @@ - - - - -JSBoard Reply Notice - - - - - - 
    -
    - - -
    - - - -
    -JSBoard Reply Notice -
    - - - -
    -
    -
    -$_('html_msg')
    -
    -Server Name       : $servername$nofm
    -
    -
    - - - -
    - - - -
    -
    -
    -$_('u_name')              : {$rmail['name']}
    -$addressinfo
    -$_('reg')              : $year $day $ampm $hms
    -
    -
    - - - -
    - - - -
    -
    -
    -{$rmail['text']}
    -
    -
    -
    - - - -
    - -Scripted by JSBoard Open Project - -
    - -
    -
    - -
    -
    -
    - - diff --git a/theme/KO-default/read.template b/theme/KO-default/read.template deleted file mode 100644 index 5aaeaae9..00000000 --- a/theme/KO-default/read.template +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n/i", "\\0\"\"", $list['title']); ?> - - - - - - - -
    >> Read article
    -TITLE: - -
    - - - - - - - - - - - - - - - - - -
    -
    -     -ȸ
    -̸     - {$list['attach']}" : "" ?>
    -
    -
    - - - -
    - - - - - - - - - -
    -
    - - - - - - -
    - - - - -
    - - -
    - - - - - -
    -
    ->> - - - -
    - - - - - - - - - - - - -
    -
    - - - - - - - - - - - - -
    - -
    - - - - - - -
    - - - -
    - -> -ǥ -
    - - - - -
    - -
    - -Page Loading [ Sec ] -SQL Time [ Sec ]
    -
    - -
    - - - - -
    - - - - -
    - -
    - diff --git a/theme/KO-default/reply.template b/theme/KO-default/reply.template deleted file mode 100644 index 593e0801..00000000 --- a/theme/KO-default/reply.template +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - - -
    >> Write reply article
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -EOF; -} -?> - - - - - - - - - - -EOF; -} -?> - - - - - - - - - -EOF; -} elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; -} -?> - - - - - - - - - - - - - - - - -н - -EOF; -} -?> - - - - - -


    ̸ tabindex="1">
    Ȩ
    - - -
    " . $_('upload') . "
    " tabindex="5">
    - -{$pcaptcha} -

    - - - -
    - - - -
    - - - - - - - - - - -
    - - - - - - - - - - -
    - - - - - -
    - -
    - diff --git a/theme/KO-default/write.template b/theme/KO-default/write.template deleted file mode 100644 index bd2d704b..00000000 --- a/theme/KO-default/write.template +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - -
    onsubmit="return registCheck();"> - - - - - - - - - - - - - -
    >> Write new article
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -END; -} -?> - - - - - - - - - -END; -} -?> - - - - - - - - - -EOF; -} elseif(!$upload['yesno'] && $cupload['yesno']) { - echo << - - - - -EOF; -} -?> - - - - - - - - - - - - - - -н - -END; -} -?> - - - - - -


    ̸ tabindex="1">
    Ȩ
    - - -
    " . $_('upload') . "
    - -{$pcaptcha} -

    - - - -
    - - - -
    - - - - - - - - - -
    - - - - - - - - - -
    - - - - - -
    -
    - 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 df966d9d..00000000 Binary files a/theme/player/dewplayer-vol.swf and /dev/null differ diff --git a/user.php b/user.php deleted file mode 100644 index 253c7595..00000000 --- a/user.php +++ /dev/null @@ -1,129 +0,0 @@ -window.close()"; - 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"; - -$chjsboard = $_SESSION[$jsboard]['id']; -$where = ($_SESSION[$jsboard]['pos'] == 1 && $check) ? "no = '$no'" : "nid = '$chjsboard'"; - -$result = sql_query ("SELECT * FROM userdb WHERE $where", $c); -$row = sql_fetch_array($result); -sql_free_result($result); -sql_close($c); -$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 ( $row['position'] == 1 ) $row['status'] = $_('u_le1') . " " . $_('u_le2'); -elseif ( check_admin ($row['nid']) ) $row['status'] = $_('u_le2'); -else $row['status'] = $_('u_le3'); - -$sform = form_size (10); -$lform = form_size (25); - -if ( ! $check ) $backbutton = ""; -if ( $agent['tx'] ) $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') . "
    -$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"; -?> 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/global.php.orig b/utils/sample/admin/global.php.orig deleted file mode 100644 index 4e948551..00000000 --- a/utils/sample/admin/global.php.orig +++ /dev/null @@ -1,121 +0,0 @@ - everyone -# 0 -> admin only -$board['regist'] = 0; - -############################################################################## -# Theme Configuration -############################################################################## -# Theme Name -$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 - - -############################################################################## -# 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; - - -############################################################################## -# 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; -# 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'; - - -############################################################################## -# Preview article 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'; -?> 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 deleted file mode 100644 index 1f8d520d..00000000 --- a/whois.php +++ /dev/null @@ -1,92 +0,0 @@ -\n" . - "\nremoteWindow();\nhistory.back();\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"; } - -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"; } - -putenv ("JSLANG={$_code}"); -include "language/lang.php"; - -$ohost= $host; -$host = gethostbyname ($host); -?> - - - - -<? echo $host ?> WHOIS Information - - - - -
    - 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;
    -      }
    -      $count++;
    -  }
    -  fclose($fp);
    -} else echo "$errno $errstr whois.krnic.net ῡ  ߽ϴ.";
    -?>
    -
    -
    - - - diff --git a/write.php b/write.php deleted file mode 100644 index 4a85211a..00000000 --- a/write.php +++ /dev/null @@ -1,76 +0,0 @@ -\n". - "\n"; - -$pre_regist['rname'] = !$pre_regist['rname'] ? "" : "\n"; - -if(!$nodisable) { - $print['passform'] .= "". - "{$pre_regist['rname']}". - "\n". - "\n\n"; -} elseif($_SESSION[$jsboard]['pos'] == 1) { - $print['passform'] .= "{$pre_regist['rname']}\n"; -} - -$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"; -?> diff --git a/write.php3 b/write.php3 new file mode 100644 index 00000000..ce6c4c6f --- /dev/null +++ b/write.php3 @@ -0,0 +1,100 @@ + +
    +
    + + + + + + +\n". + " \n". + " \n". + " \n". + ""; +} ?> +\n". + " \n". + " \n". + " \n". + ""; +} ?> + + + + + + + + + + + + +". + "". + "". + ""); +} +?> + + + + +
    $subj_email$subj_email_str
    $subj_home$subj_home_str
    HTML + + +
    $subj_upload". + "
    + +
    + +
    + + + +
    + +  + +

    +
    +
    + +
    + +